mirror of
https://github.com/TinyTapeout/tt-support-tools.git
synced 2026-11-03 04:36:09 +01:00
fix: hardening wokwi modules fail
rename `user_module_<wokwi_id>` to `tt_um_<wokwi_id>`
This commit is contained in:
+2
-2
@@ -120,7 +120,7 @@ class Project():
|
||||
self.src_files = self.get_hdl_source()
|
||||
self.top_verilog_filename = self.find_top_verilog()
|
||||
else:
|
||||
self.top_module = f"user_module_{self.wokwi_id}"
|
||||
self.top_module = f"tt_um_wokwi_{self.wokwi_id}"
|
||||
self.src_files = self.get_wokwi_source()
|
||||
self.top_verilog_filename = self.src_files[0]
|
||||
|
||||
@@ -128,7 +128,7 @@ class Project():
|
||||
self.scanchain_instance = f"scanchain_{self.index :03}"
|
||||
|
||||
def get_wokwi_source(self):
|
||||
src_file = "user_module_{}.v".format(self.wokwi_id)
|
||||
src_file = "tt_um_wokwi_{}.v".format(self.wokwi_id)
|
||||
return [src_file, 'cells.v']
|
||||
|
||||
def get_hdl_source(self):
|
||||
|
||||
@@ -9,7 +9,7 @@ TOPLEVEL_LANG ?= verilog
|
||||
ifneq ($(GATES),yes)
|
||||
|
||||
# this is the only part you should need to modify:
|
||||
VERILOG_SOURCES += $(PWD)/cells.v $(PWD)/user_module_WOKWI_ID.v $(PWD)/test_wokwi.v
|
||||
VERILOG_SOURCES += $(PWD)/cells.v $(PWD)/tt_um_wokwi_WOKWI_ID.v $(PWD)/test_wokwi.v
|
||||
|
||||
|
||||
else
|
||||
|
||||
@@ -6,7 +6,7 @@ module test_wokwi ();
|
||||
wire [7:0] io_out;
|
||||
wire [7:0] io_in;
|
||||
|
||||
user_module_WOKWI_ID dut (
|
||||
tt_um_wokwi_WOKWI_ID dut (
|
||||
`ifdef GL_TEST
|
||||
.vccd1( 1'b1),
|
||||
.vssd1( 1'b0),
|
||||
|
||||
Reference in New Issue
Block a user