Merge pull request #1094 from mkj/matt/sim-regular-comb

litex_sim: Allow regular_comb=False argument
This commit is contained in:
enjoy-digital 2021-11-02 15:04:42 +01:00 committed by GitHub
commit c13be522ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -189,6 +189,7 @@ class SimVerilatorToolchain:
trace_fst = False, trace_fst = False,
trace_start = 0, trace_start = 0,
trace_end = -1, trace_end = -1,
regular_comb = False,
interactive = True, interactive = True,
pre_run_callback = None): pre_run_callback = None):
@ -203,6 +204,9 @@ class SimVerilatorToolchain:
fragment = fragment.get_fragment() fragment = fragment.get_fragment()
platform.finalize(fragment) platform.finalize(fragment)
if regular_comb:
raise ValueError("SimVerilatorToolchain disallows regular_comb=True")
# Generate verilog # Generate verilog
v_output = platform.get_verilog(fragment, name=build_name) v_output = platform.get_verilog(fragment, name=build_name)
named_sc, named_pc = platform.resolve_signals(v_output.ns) named_sc, named_pc = platform.resolve_signals(v_output.ns)