summaryrefslogtreecommitdiff
path: root/sim/sim.py
diff options
context:
space:
mode:
Diffstat (limited to 'sim/sim.py')
-rwxr-xr-xsim/sim.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/sim/sim.py b/sim/sim.py
index dceabb4..4a1dfa8 100755
--- a/sim/sim.py
+++ b/sim/sim.py
@@ -342,7 +342,7 @@ do_output = module_get('do_output')
if init := module_get('init'):
init()
-exec_args = [verilated, '--headless', '--dump-regs']
+exec_args = [verilated, '--dump-regs']
cycles = module_get('cycles', 1024)
if cycles is not None:
@@ -351,6 +351,9 @@ if cycles is not None:
if not module_get('enable_tty', False):
exec_args.append('--no-tty')
+if not module_get('enable_video', False):
+ exec_args.append('--headless')
+
for rng in mem_dumps:
length = rng.stop - rng.start
assert rng.start >= 0 and rng.stop > rng.start \