pack arrays in ternary expressions assigned to other arrays

This commit is contained in:
Zachary Snow
2020-06-06 13:42:30 -04:00
parent 5b4fdfe7df
commit 355b62da70
3 changed files with 32 additions and 4 deletions
+7
View File
@@ -2,4 +2,11 @@ module top;
reg [5:0] a;
wire [5:0] b;
always @(*) a = b;
reg x;
wire [5:0] c;
wire [5:0] d;
wire [5:0] e;
initial x = 0;
assign c = x ? d : e;
endmodule