Skip to content

Commit

Permalink
Create RTL_LIBRARY for questa verilog simulations
Browse files Browse the repository at this point in the history
  • Loading branch information
themperek committed Nov 15, 2020
1 parent 1e0d7eb commit 1c5dafa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cocotb_test/simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ def build_command(self):
cmd.append(["vsim"] + ["-c"] + ["-do"] + [do_script])

if self.verilog_sources:
do_script = "vlog -mixedsvvh -work {RTL_LIBRARY} +define+COCOTB_SIM -sv {DEFINES} {INCDIR} {EXTRA_ARGS} {VERILOG_SOURCES}; quit".format(
do_script = "vlib {RTL_LIBRARY}; vlog -mixedsvvh -work {RTL_LIBRARY} +define+COCOTB_SIM -sv {DEFINES} {INCDIR} {EXTRA_ARGS} {VERILOG_SOURCES}; quit".format(
RTL_LIBRARY=as_tcl_value(self.rtl_library),
VERILOG_SOURCES=" ".join(as_tcl_value(v) for v in self.verilog_sources),
DEFINES=" ".join(self.get_define_commands(self.defines)),
Expand Down

0 comments on commit 1c5dafa

Please sign in to comment.