3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-06-20 12:53:39 +00:00

Index struct/union members within corresponding wire chunks

This guards against access to bits outside of struct/union
members via dynamic indexing.
This commit is contained in:
Dag Lem 2023-02-28 18:45:55 +01:00
parent 79043cb849
commit 0d3423ddea
5 changed files with 68 additions and 32 deletions

View file

@ -380,6 +380,7 @@ namespace AST
// struct helper exposed from simplify for genrtlil
AstNode *make_struct_member_range(AstNode *node, AstNode *member_node);
AstNode *get_struct_member(const AstNode *node);
// generate standard $paramod... derived module name; parameters should be
// in the order they are declared in the instantiated module