aboutsummaryrefslogtreecommitdiffstats
path: root/frontend
diff options
context:
space:
mode:
authorDavid Shah <dave@ds0.me>2020-03-06 15:21:28 +0000
committerDavid Shah <dave@ds0.me>2020-03-06 15:21:28 +0000
commitaf7be215913024c00b1cb36cae5bd357bcfb8b4b (patch)
treea4962d1f9e12c3e82f938ee0abca2794f1f03658 /frontend
parenta957e9039642c1f5fe4270895d7a23452fab281b (diff)
downloadnextpnr-af7be215913024c00b1cb36cae5bd357bcfb8b4b.tar.gz
nextpnr-af7be215913024c00b1cb36cae5bd357bcfb8b4b.tar.bz2
nextpnr-af7be215913024c00b1cb36cae5bd357bcfb8b4b.zip
Improve handling of unflattened netlists
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'frontend')
-rw-r--r--frontend/frontend_base.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/frontend/frontend_base.h b/frontend/frontend_base.h
index fa0e30b9..e262c943 100644
--- a/frontend/frontend_base.h
+++ b/frontend/frontend_base.h
@@ -342,6 +342,7 @@ template <typename FrontendType> struct GenericFrontend
// Add to the flat index of nets
net->udata = int(net_flatindex.size());
net_flatindex.push_back(net);
+ net_old_indices.emplace_back();
// Add to the module-level index of netsd
midx = net->udata;
// Create aliases for all possible names
@@ -508,6 +509,7 @@ template <typename FrontendType> struct GenericFrontend
impl.get_vector_bit_constval(bits, i));
cnet->udata = int(net_flatindex.size());
net_flatindex.push_back(cnet);
+ net_old_indices.emplace_back();
net_ref = cnet->udata;
} else {
// Otherwise, lookup (creating if needed) the net with given in-module index