diff options
author | whitequark <whitequark@whitequark.org> | 2021-01-18 20:20:52 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-18 20:20:52 +0000 |
commit | 056c12eb6ffcb0c0c24e9fa5b994292bec18b187 (patch) | |
tree | 534ff61ddf5a24d17bfb237bf135887b2b9e17f6 /frontends/ast/simplify.cc | |
parent | 339848b954491e6bb63a3062c60f840730123436 (diff) | |
parent | d69ddf19da47242a5fde4d0beca65fa95c453884 (diff) | |
download | yosys-056c12eb6ffcb0c0c24e9fa5b994292bec18b187.tar.gz yosys-056c12eb6ffcb0c0c24e9fa5b994292bec18b187.tar.bz2 yosys-056c12eb6ffcb0c0c24e9fa5b994292bec18b187.zip |
Merge pull request #2312 from antmicro/typedef-inout
Add support for user types in IOs
Diffstat (limited to 'frontends/ast/simplify.cc')
-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; } |