mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-27 19:05:52 +00:00
Correct hierarchical path names for structs and unions
This commit is contained in:
parent
df65634e07
commit
1bbea13f80
2 changed files with 23 additions and 19 deletions
|
@ -45,12 +45,12 @@ module top;
|
|||
localparam W = 10;
|
||||
typedef T U;
|
||||
typedef logic [W-1:0] V;
|
||||
struct packed {
|
||||
typedef struct packed {
|
||||
logic [W-1:0] x; // width 10
|
||||
U y; // width 5
|
||||
V z; // width 10
|
||||
} shadow;
|
||||
// This currently only works as long as long as shadow is not typedef'ed
|
||||
} shadow_t;
|
||||
shadow_t shadow;
|
||||
always @(*) assert($bits(shadow.x) == 10);
|
||||
always @(*) assert($bits(shadow.y) == 5);
|
||||
always @(*) assert($bits(shadow.z) == 10);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue