mirror of
https://github.com/YosysHQ/yosys
synced 2026-07-14 19:25:40 +00:00
Test.
This commit is contained in:
parent
391c0e5f89
commit
43b631fc9d
1 changed files with 14 additions and 0 deletions
|
|
@ -22,6 +22,20 @@ logger -check-expected
|
|||
|
||||
design -reset
|
||||
|
||||
# always_latch is exempt
|
||||
read_verilog -sv <<EOT
|
||||
module top(input g, d, output reg q);
|
||||
always_latch if (g) q <= d;
|
||||
endmodule
|
||||
EOT
|
||||
logger -expect-no-warnings
|
||||
logger -expect log "Latch inferred for signal .* from always_latch process" 1
|
||||
proc -latches error
|
||||
logger -check-expected
|
||||
select -assert-count 1 t:$dlatch a:always_latch %i
|
||||
|
||||
design -reset
|
||||
|
||||
# error
|
||||
read_verilog <<EOT
|
||||
module top(input g, rn, d, output reg q);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue