Skip to content

Commit

Permalink
small fix in parent module assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
oleeng committed Jul 16, 2024
1 parent a3a0d56 commit f956666
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/netlist_modifier/src/netlist_modifier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ namespace hal
new_gate->set_location(position);
}

module->assign_gate(new_gate);
if (module != new_gate->get_module())
module->assign_gate(new_gate);

return true;
}
Expand Down

0 comments on commit f956666

Please sign in to comment.