Skip to content

Commit 113655f

Browse files
authored
Merge pull request #2807 from verilog-to-routing/fix-flat-sync
Fix name conflicts in sync_netlists_to_routing_flat
2 parents b6094d4 + 93eed6a commit 113655f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

vpr/src/pack/sync_netlists_to_routing_flat.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -367,10 +367,7 @@ static void sync_clustered_netlist_to_routing(void){
367367
* be under this OPIN, so this is valid (we don't need to get the branch explicitly) */
368368
if(node_type == OPIN){
369369
std::string net_name;
370-
if(clb_nets_so_far == 0)
371-
net_name = atom_ctx.nlist.net_name(parent_net_id);
372-
else
373-
net_name = atom_ctx.nlist.net_name(parent_net_id) + "_" + std::to_string(clb_nets_so_far);
370+
net_name = atom_ctx.nlist.net_name(parent_net_id) + "_" + std::to_string(clb_nets_so_far);
374371
clb_net_id = clb_netlist.create_net(net_name);
375372
atom_lookup.add_atom_clb_net(atom_net_id, clb_net_id);
376373
clb_nets_so_far++;

0 commit comments

Comments
 (0)