summaryrefslogtreecommitdiff
path: root/sim/sim.py
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2022-12-12 14:34:05 -0600
committerAlejandro Soto <alejandro@34project.org>2022-12-16 16:29:10 -0600
commit02712d69cdd859d702cc7577e72db27d6f0c9ad5 (patch)
tree01d0c36111a99f596588816a2529f661ba56d023 /sim/sim.py
parent397245139af754af07e61a10a91fdc9b9e72153f (diff)
Implement fast video
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 \