mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-08 20:21:25 +00:00
Out of bounds checking for struct/union members
Currently, only constant indices are checked.
This commit is contained in:
parent
f0116330bc
commit
79043cb849
3 changed files with 22 additions and 6 deletions
|
@ -18,6 +18,9 @@ module top;
|
|||
end
|
||||
|
||||
always_comb assert(s==64'h4200_0012_3400_FFFC);
|
||||
always_comb assert(s.b[23:16]===8'hxx);
|
||||
always_comb assert(s.b[19:12]===8'hxf);
|
||||
always_comb assert(s.a[0][3:-4]===8'h0x);
|
||||
|
||||
struct packed {
|
||||
bit [7:0] [7:0] a; // 8 element packed array of bytes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue