From eb3aca2a4644726417002f1f55956dab4b347cf9 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Wed, 12 Jun 2024 15:16:03 +0200 Subject: [PATCH] build/vhd2v_converter: Make instance rename when multiple instance more robust. --- litex/build/vhd2v_converter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litex/build/vhd2v_converter.py b/litex/build/vhd2v_converter.py index ddac8fa06..73b8a3fce 100644 --- a/litex/build/vhd2v_converter.py +++ b/litex/build/vhd2v_converter.py @@ -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: