mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 17:15:33 +00:00
opt_clean: handle undriven and x-bit driven bits consistently
This commit is contained in:
parent
0c689091e2
commit
8eb48fe446
2 changed files with 32 additions and 4 deletions
14
tests/opt/opt_clean_x.ys
Normal file
14
tests/opt/opt_clean_x.ys
Normal file
|
@ -0,0 +1,14 @@
|
|||
read_verilog <<EOT
|
||||
module alu(
|
||||
);
|
||||
wire [1:0] p1, p2;
|
||||
assign p1 = 2'bx1;
|
||||
assign p2[0] = 1'b1;
|
||||
endmodule
|
||||
EOT
|
||||
|
||||
proc
|
||||
opt_clean
|
||||
dump
|
||||
select -assert-count 1 w:p1 a:unused_bits=1 %i
|
||||
select -assert-count 1 w:p2 a:unused_bits=1 %i
|
Loading…
Add table
Add a link
Reference in a new issue