mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 00:55:32 +00:00
tests/bufnorm: add test for bufnorm of constant
This commit is contained in:
parent
8f6058a7d6
commit
a31c968340
1 changed files with 11 additions and 0 deletions
11
tests/techmap/bufnorm.ys
Normal file
11
tests/techmap/bufnorm.ys
Normal file
|
@ -0,0 +1,11 @@
|
|||
# Check wires driven by constants are kept
|
||||
read_verilog <<EOT
|
||||
module top(output wire [7:0] y);
|
||||
assign y = 27;
|
||||
endmodule
|
||||
EOT
|
||||
|
||||
equiv_opt -assert bufnorm
|
||||
design -load postopt
|
||||
select -assert-count 1 t:$buf
|
||||
select -assert-count 1 w:y %ci t:$buf %i
|
Loading…
Add table
Add a link
Reference in a new issue