From 02712d69cdd859d702cc7577e72db27d6f0c9ad5 Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Mon, 12 Dec 2022 14:34:05 -0600 Subject: Implement fast video --- sim/sim.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sim') 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 \ -- cgit v1.2.3