build/vhd2v_converter: Make instance rename when multiple instance more robust.

This commit is contained in:
Florent Kermarrec 2024-06-12 15:16:03 +02:00
parent 8d8dd117b6
commit eb3aca2a46
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ class VHD2VConverter(Module):
# more than one instance of this core? rename top entity to avoid conflict
if inst_name != self._top_entity:
tools.replace_in_file(verilog_out, f"module {self._top_entity}(", f"module {inst_name}(")
tools.replace_in_file(verilog_out, f"module {self._top_entity}", f"module {inst_name}")
self._platform.add_source(verilog_out)
if self._add_instance: