Tests: Add test coverage for stream to packed N-dim arrays (#6039)

This commit is contained in:
Paul Swirhun 2025-05-26 06:50:40 -07:00 committed by GitHub
parent 9cc4cc0efd
commit e84fe36518
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 0 deletions

View File

@ -31,6 +31,8 @@ module t (/*AUTOARG*/);
logic [15:0] d;
logic [3:0] e [2];
logic f [8];
logic [1:0][7:0] g;
logic [1:0][1:0][3:0] h;
{ >> bit {arr}} = bit6;
`checkp(arr, "'{'h1, 'h1, 'h1, 'h0, 'h0, 'h0} ");
@ -211,6 +213,12 @@ module t (/*AUTOARG*/);
`checkp(e, "'{'h1, 'h7} ");
`checkp(f, "'{'h0, 'h0, 'h1, 'h0, 'h0, 'h0, 'h1, 'h1} ");
g = { << 8 {16'hABCD}};
`checkh(g, 16'hCDAB);
h = { << 8 {16'hABCD}};
`checkh(h, 16'hCDAB);
$write("*-* All Finished *-*\n");
$finish;
end