aboutsummaryrefslogtreecommitdiffstats
path: root/common/nextpnr.cc
diff options
context:
space:
mode:
authorSergiusz Bazanski <q3k@q3k.org>2018-07-14 18:50:23 +0100
committerSergiusz Bazanski <q3k@q3k.org>2018-07-14 18:50:23 +0100
commitade67ecf21c274c73c99543e51eda99ac847686c (patch)
treed2464ef182805d07139089d86522f190fcb8b153 /common/nextpnr.cc
parentcb1a5974f4ca087df3729dc3d8576db9029a7874 (diff)
downloadnextpnr-ade67ecf21c274c73c99543e51eda99ac847686c.tar.gz
nextpnr-ade67ecf21c274c73c99543e51eda99ac847686c.tar.bz2
nextpnr-ade67ecf21c274c73c99543e51eda99ac847686c.zip
Revert "Move read methods to ReadMethods, remove some legacy access to Arch"
This reverts commit 3352ff4abbcac563e08d78ed8aa77728d00284a8.
Diffstat (limited to 'common/nextpnr.cc')
-rw-r--r--common/nextpnr.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/common/nextpnr.cc b/common/nextpnr.cc
index 01c1397e..33230db0 100644
--- a/common/nextpnr.cc
+++ b/common/nextpnr.cc
@@ -170,21 +170,20 @@ uint32_t Context::checksum() const
void Context::check() const
{
- auto &&proxy = rproxy();
for (auto &n : nets) {
auto ni = n.second.get();
NPNR_ASSERT(n.first == ni->name);
for (auto &w : ni->wires) {
- NPNR_ASSERT(n.first == proxy.getBoundWireNet(w.first));
+ NPNR_ASSERT(n.first == getBoundWireNet(w.first));
if (w.second.pip != PipId()) {
NPNR_ASSERT(w.first == getPipDstWire(w.second.pip));
- NPNR_ASSERT(n.first == proxy.getBoundPipNet(w.second.pip));
+ NPNR_ASSERT(n.first == getBoundPipNet(w.second.pip));
}
}
}
for (auto w : getWires()) {
- IdString net = proxy.getBoundWireNet(w);
+ IdString net = getBoundWireNet(w);
if (net != IdString()) {
NPNR_ASSERT(nets.at(net)->wires.count(w));
}
@@ -193,7 +192,7 @@ void Context::check() const
for (auto &c : cells) {
NPNR_ASSERT(c.first == c.second->name);
if (c.second->bel != BelId())
- NPNR_ASSERT(proxy.getBoundBelCell(c.second->bel) == c.first);
+ NPNR_ASSERT(getBoundBelCell(c.second->bel) == c.first);
for (auto &port : c.second->ports) {
NetInfo *net = port.second.net;
if (net != nullptr) {