mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 17:15:33 +00:00
Merge pull request #4733 from antmicro/fix-setundef-pass-for-params
Fix setting bits of parameters in setundef pass
This commit is contained in:
commit
ec8b745929
3 changed files with 19 additions and 1 deletions
10
tests/various/setundef.sv
Normal file
10
tests/various/setundef.sv
Normal file
|
@ -0,0 +1,10 @@
|
|||
module foo #(parameter [1:0] a) (output [1:0] o);
|
||||
assign o = a;
|
||||
endmodule
|
||||
|
||||
module top(output [1:0] o);
|
||||
foo #(2'b0x) foo(o);
|
||||
always_comb begin
|
||||
assert(o == 2'b00);
|
||||
end
|
||||
endmodule
|
8
tests/various/setundef.ys
Normal file
8
tests/various/setundef.ys
Normal file
|
@ -0,0 +1,8 @@
|
|||
read_verilog -sv setundef.sv
|
||||
setundef -zero -params
|
||||
hierarchy -top top
|
||||
flatten
|
||||
proc
|
||||
async2sync
|
||||
write_json
|
||||
sat -seq 5 -prove-asserts
|
Loading…
Add table
Add a link
Reference in a new issue