diff options
author | Kamil Rakoczy <krakoczy@antmicro.com> | 2020-06-09 09:53:00 +0200 |
---|---|---|
committer | Kamil Rakoczy <krakoczy@antmicro.com> | 2021-01-18 17:31:22 +0100 |
commit | 61501e3266238f6c4cffafb08ed85ff86f912cf4 (patch) | |
tree | 09245d33fb087de076e5d0c6316182d84d36167f | |
parent | 09071afe15bee8d764062e9175b8f03e20ea9cb5 (diff) | |
download | yosys-61501e3266238f6c4cffafb08ed85ff86f912cf4.tar.gz yosys-61501e3266238f6c4cffafb08ed85ff86f912cf4.tar.bz2 yosys-61501e3266238f6c4cffafb08ed85ff86f912cf4.zip |
Fix input/output attributes when resolving typedef of wire
Signed-off-by: Kamil Rakoczy <krakoczy@antmicro.com>
-rw-r--r-- | frontends/ast/simplify.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/frontends/ast/simplify.cc b/frontends/ast/simplify.cc index d4242f1e7..fc2976c83 100644 --- a/frontends/ast/simplify.cc +++ b/frontends/ast/simplify.cc @@ -1330,6 +1330,9 @@ bool AstNode::simplify(bool const_fold, bool at_zero, bool in_lvalue, int stage, if (template_node->type == AST_STRUCT || template_node->type == AST_UNION) { // replace with wire representing the packed structure newNode = make_packed_struct(template_node, str); + // add original input/output attribute to resolved wire + newNode->is_input = this->is_input; + newNode->is_output = this->is_output; current_scope[str] = this; goto apply_newNode; } |