Skip to content

Commit

Permalink
tests/bufnorm: add test for bufnorm of constant
Browse files Browse the repository at this point in the history
  • Loading branch information
georgerennie committed Nov 7, 2024
1 parent 8f6058a commit a31c968
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/techmap/bufnorm.ys
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit a31c968

Please sign in to comment.