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:
parent
b454582f54
commit
c0f1654028
3 changed files with 9 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
4
tests/sim/undriven_replay_nocheck.ys
Normal file
4
tests/sim/undriven_replay_nocheck.ys
Normal 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
|
||||
5
tests/sim/undriven_replay_warn.ys
Normal file
5
tests/sim/undriven_replay_warn.ys
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue