mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-13 04:28:18 +00:00
Tests for unpacked arrays in packed structs are for the Yosys frontend only
This commit is contained in:
parent
ddb12148e7
commit
a460e0b31c
|
@ -1,6 +1,7 @@
|
||||||
// test for array indexing in structures
|
// test for array indexing in structures
|
||||||
|
|
||||||
module top;
|
module top;
|
||||||
|
|
||||||
struct packed {
|
struct packed {
|
||||||
bit [5:0] [7:0] a; // 6 element packed array of bytes
|
bit [5:0] [7:0] a; // 6 element packed array of bytes
|
||||||
bit [15:0] b; // filler for non-zero offset
|
bit [15:0] b; // filler for non-zero offset
|
||||||
|
@ -80,6 +81,7 @@ module top;
|
||||||
|
|
||||||
always_comb assert(s3_b==80'hFC00_4200_0012_3400_FFFC);
|
always_comb assert(s3_b==80'hFC00_4200_0012_3400_FFFC);
|
||||||
|
|
||||||
|
`ifndef VERIFIC
|
||||||
// Note that the tests below for unpacked arrays in structs rely on the
|
// Note that the tests below for unpacked arrays in structs rely on the
|
||||||
// fact that they are actually packed in Yosys.
|
// fact that they are actually packed in Yosys.
|
||||||
|
|
||||||
|
@ -166,4 +168,6 @@ module top;
|
||||||
end
|
end
|
||||||
|
|
||||||
always_comb assert(s6==80'hFC00_4200_0012_3400_FFFC);
|
always_comb assert(s6==80'hFC00_4200_0012_3400_FFFC);
|
||||||
|
`endif
|
||||||
|
|
||||||
endmodule
|
endmodule
|
||||||
|
|
Loading…
Reference in a new issue