frontend: Fix hang when loading very large designs

Signed-off-by: David Shah <dave@ds0.me>
This commit is contained in:
David Shah 2020-01-16 12:15:16 +00:00
parent 54c1bc1538
commit b67ba18590

View File

@ -446,7 +446,7 @@ template <typename FrontendType> struct GenericFrontend
NetInfo *net;
if (impl.is_vector_bit_constant(bits, i)) {
// Create a constant driver if one is needed
net = create_constant_net(m, name + "." + port_bit_name + "$const",
net = create_constant_net(m, inst_name.str(ctx) + "." + port_bit_name + "$const",
impl.get_vector_bit_constval(bits, i));
} else {
// Otherwise, lookup (creating if needed) the net with this index