fix declaration order of nested package items

This commit is contained in:
Zachary Snow
2020-06-05 21:31:58 -04:00
parent b6f4f690e7
commit ecf047e36e
3 changed files with 39 additions and 12 deletions
+11
View File
@@ -0,0 +1,11 @@
localparam Z = 1;
localparam Y = 5'(Z);
localparam X = 5'(Y);
module top;
initial begin
$display("%b", X);
$display("%b", Y);
$display("%b", Z);
end
endmodule
+7
View File
@@ -0,0 +1,7 @@
module top;
initial begin
$display("%b", 5'b1);
$display("%b", 5'b1);
$display("%b", 32'b1);
end
endmodule