Added regression tests for issues #823 and #840

This commit is contained in:
Bill Lye 2022-12-31 11:57:33 -08:00
parent 56eb91ea9e
commit 6f1165a628
5 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,7 @@
// testcase for Issue #823 on Github
module test;
struct packed {logic a;} s;
assign s.a = 1;
assign s.c = 1;
endmodule

View File

@ -0,0 +1,7 @@
// Testcase for Issue #823 on Github
module test;
struct packed {struct packed {logic a;} t;} u;
assign u.t.a = 1;
assign u.t.c = 1;
endmodule

View File

@ -0,0 +1,10 @@
// Testcase for Issue #840 on Github
module test;
logic [1:0][1:0] a;
logic [1:0][1:0] b;
generate
for(genvar i=0;i<3;i++)
assign b[i] = a[i];
endgenerate
endmodule

View File

@ -0,0 +1,10 @@
// Testcase for Issue #840 on Github
module test;
logic [1:0][1:0] a;
logic [2:0][1:0] b;
generate
for(genvar i=0;i<3;i++)
assign b[i] = a[i];
endgenerate
endmodule

View File

@ -926,3 +926,7 @@ br_gh451 normal,-g2012,-Ptest.foo=4 ivltests gold=br_gh451.gold
br_gh453 normal,-g2012 ivltests br_gh453 normal,-g2012 ivltests
br_gh460 normal,-g2012 ivltests br_gh460 normal,-g2012 ivltests
issue576 normal,-g2012 ivltests issue576 normal,-g2012 ivltests
br_gh823a CE,-g2012 ivltests
br_gh823b CE,-g2012 ivltests
br_gh840a CE,-g2012 ivltests
br_gh840b CE,-g2012 ivltests