mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-24 06:43:41 +00:00
Fix access to whole sub-structs (#3086)
* Add support for accessing whole struct * Update tests Signed-off-by: Kamil Rakoczy <krakoczy@antmicro.com>
This commit is contained in:
parent
59738c09be
commit
68c67c40ec
7 changed files with 72 additions and 11 deletions
|
@ -77,9 +77,8 @@ module top;
|
|||
`CHECK(s.y.a, 1, 0)
|
||||
`CHECK(s.y.b, 1, 1)
|
||||
|
||||
// TODO(zachjs): support access to whole sub-structs and unions
|
||||
// `CHECK(s.x, 2, 0)
|
||||
// `CHECK(s.y, 2, 1)
|
||||
`CHECK(s.x, 2, 0)
|
||||
`CHECK(s.y, 2, 1)
|
||||
|
||||
assert (fail === 0);
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue