build/sim/verilator: add regular_comb parameter (that defaults to False) and pass...
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Wed, 27 May 2020 17:54:52 +0000 (19:54 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Wed, 27 May 2020 17:54:52 +0000 (19:54 +0200)
litex/build/sim/verilator.py

index d489ab8c635f052bd2a15ea65447377ef794ac68..2f5e8fca48814481edd115701d551ca562c14e00 100644 (file)
@@ -173,7 +173,8 @@ class SimVerilatorToolchain:
     def build(self, platform, fragment, build_dir="build", build_name="sim",
             serial="console", build=True, run=True, threads=1,
             verbose=True, sim_config=None, coverage=False, opt_level="O0",
-            trace=False, trace_fst=False, trace_start=0, trace_end=-1):
+            trace=False, trace_fst=False, trace_start=0, trace_end=-1,
+            regular_comb=False):
 
         # create build directory
         os.makedirs(build_dir, exist_ok=True)
@@ -187,7 +188,7 @@ class SimVerilatorToolchain:
 
             # generate top module
             top_output = platform.get_verilog(fragment,
-                name=build_name, dummy_signal=False, regular_comb=False, blocking_assign=True)
+                name=build_name, dummy_signal=False, regular_comb=regular_comb, blocking_assign=True)
             named_sc, named_pc = platform.resolve_signals(top_output.ns)
             top_file = build_name + ".v"
             top_output.write(top_file)