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;
logic [1:0] a [3];
logic [1:0] b [3];
always_comb a = b;
logic x;
logic [1:0] c [3];
logic [1:0] d [3];
logic [1:0] e [3];
initial x = 0;
assign c = x ? d : e;
endmodule