From af7be215913024c00b1cb36cae5bd357bcfb8b4b Mon Sep 17 00:00:00 2001 From: David Shah Date: Fri, 6 Mar 2020 15:21:28 +0000 Subject: Improve handling of unflattened netlists Signed-off-by: David Shah --- frontend/frontend_base.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'frontend') 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 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 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 -- cgit v1.2.3