3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-03-01 11:16:55 +00:00

Expand test into three tests for three cases

(1) no check, (2) check with warning, (3) check
with error. Previously the single test was not
testing all cases, as it was exiting after the
first error.
This commit is contained in:
Gus Smith 2026-02-23 10:27:36 -08:00
parent b454582f54
commit c0f1654028
3 changed files with 9 additions and 5 deletions

View file

@ -3,8 +3,3 @@ prep -top undriven_replay
logger -expect error "Found 1 undriven signal in the replay trace" 1
sim -r undriven_replay.vcd -scope undriven_replay -q
logger -expect warning "Input trace contains undriven signal" 1
sim -r undriven_replay.vcd -scope undriven_replay -q -undriven-warn
sim -r undriven_replay.vcd -scope undriven_replay -q -no-undriven-check

View file

@ -0,0 +1,4 @@
read_verilog undriven_replay.v
prep -top undriven_replay
sim -r undriven_replay.vcd -scope undriven_replay -q -no-undriven-check

View file

@ -0,0 +1,5 @@
read_verilog undriven_replay.v
prep -top undriven_replay
logger -expect warning "Input trace contains undriven signal" 1
sim -r undriven_replay.vcd -scope undriven_replay -q -undriven-warn