fix declaration order of generated enum items

This commit is contained in:
Zachary Snow
2020-06-05 21:32:02 -04:00
parent ecf047e36e
commit 97b2d1d166
3 changed files with 39 additions and 61 deletions
+9
View File
@@ -3,6 +3,15 @@ localparam Y = 5'(Z);
localparam X = 5'(Y);
module top;
parameter W = 3;
typedef enum logic [W-1:0] {
A, B
} E;
initial begin
$display("%b", A);
$display("%b", B);
end
initial begin
$display("%b", X);
$display("%b", Y);
+5
View File
@@ -1,4 +1,9 @@
module top;
initial begin
$display("%b", 3'b000);
$display("%b", 3'b001);
end
initial begin
$display("%b", 5'b1);
$display("%b", 5'b1);