mirror of
https://github.com/YosysHQ/yosys
synced 2025-11-11 08:32:04 +00:00
simplify.cc: Fix unsized const in params
This commit is contained in:
parent
5d0847f6fb
commit
a5cc905184
2 changed files with 16 additions and 3 deletions
|
|
@ -6,6 +6,11 @@ module pass_through(
|
|||
endmodule
|
||||
|
||||
module top;
|
||||
localparam logic [63:0]
|
||||
l01 = '0,
|
||||
l02 = '1,
|
||||
l03 = 'x,
|
||||
l04 = 'z;
|
||||
logic [63:0]
|
||||
o01, o02, o03, o04,
|
||||
o05, o06, o07, o08,
|
||||
|
|
@ -36,5 +41,9 @@ module top;
|
|||
assert (o10 === {64 {1'b1}});
|
||||
assert (o11 === {64 {1'bx}});
|
||||
assert (o12 === {64 {1'bz}});
|
||||
assert (l01 === {64 {1'b0}});
|
||||
assert (l02 === {64 {1'b1}});
|
||||
assert (l03 === {64 {1'bx}});
|
||||
assert (l04 === {64 {1'bz}});
|
||||
end
|
||||
endmodule
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue