diff options
| author | Alejandro Soto <alejandro@34project.org> | 2022-11-10 10:12:46 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2022-11-10 10:12:46 -0600 |
| commit | 0b05ae5258dabba240c54cd83dcef66849137d46 (patch) | |
| tree | 230513eb76a69e85b451adacc70dae83fe7aa0fe | |
| parent | acca3eb31a051f335c51306786bb972c21634998 (diff) | |
Implement support for predictable x-values in sim
| -rwxr-xr-x | tb/sim/sim.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tb/sim/sim.py b/tb/sim/sim.py index 4e0bdf1..bef1b73 100755 --- a/tb/sim/sim.py +++ b/tb/sim/sim.py @@ -264,7 +264,9 @@ for r, value in init_regs.items(): init_regs = None exec_args.append(image) -exec_args.extend([f'+verilator+seed+{seed}', '+verilator+rand+reset+2']) +exec_args.append(f'+verilator+seed+{seed}') +if not os.getenv('SIM_PULLX', 0): + exec_args.append('+verilator+rand+reset+2') output = subprocess.run(exec_args, stdout=subprocess.PIPE, text=True) if output.returncode != 0: |
