mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-07 06:33:24 +00:00
Tests: Add svtypes/typedef_struct_global.ys
This commit is contained in:
parent
209df95fb9
commit
995a893afd
1 changed files with 13 additions and 0 deletions
13
tests/svtypes/typedef_struct_global.ys
Normal file
13
tests/svtypes/typedef_struct_global.ys
Normal file
|
@ -0,0 +1,13 @@
|
|||
read_verilog -sv << EOF
|
||||
typedef struct packed {
|
||||
logic y;
|
||||
logic x;
|
||||
} Vec_2_B;
|
||||
|
||||
module top;
|
||||
|
||||
Vec_2_B two_dee;
|
||||
wire foo = two_dee.x;
|
||||
|
||||
endmodule
|
||||
EOF
|
Loading…
Add table
Add a link
Reference in a new issue