diff options
author | Eddie Hung <eddie@fpgeh.com> | 2019-08-21 13:37:45 -0700 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2019-08-21 13:37:45 -0700 |
commit | b808123e7183dbb4077c1d2ea87d3c702cc98e57 (patch) | |
tree | 8e6b4f77d712a45018842ca2620ec2e19b95a5b1 /frontends/ast/simplify.cc | |
parent | 5ce0c31d0e01603264b23cff8f6d431902f08b63 (diff) | |
parent | a6776ee35ee5404ca7d5b63fd2daccc46354112c (diff) | |
download | yosys-b808123e7183dbb4077c1d2ea87d3c702cc98e57.tar.gz yosys-b808123e7183dbb4077c1d2ea87d3c702cc98e57.tar.bz2 yosys-b808123e7183dbb4077c1d2ea87d3c702cc98e57.zip |
Merge branch 'eddie/fix_mem2reg' into eddie/xilinx_srl
Diffstat (limited to 'frontends/ast/simplify.cc')
-rw-r--r-- | frontends/ast/simplify.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/frontends/ast/simplify.cc b/frontends/ast/simplify.cc index 54b9efaad..8493aa513 100644 --- a/frontends/ast/simplify.cc +++ b/frontends/ast/simplify.cc @@ -150,6 +150,10 @@ bool AstNode::simplify(bool const_fold, bool at_zero, bool in_lvalue, int stage, reg->str = stringf("%s[%d]", node->str.c_str(), i); reg->is_reg = true; reg->is_signed = node->is_signed; + for (auto &it : node->attributes) + reg->attributes.emplace(it.first, it.second->clone()); + reg->filename = node->filename; + reg->linenum = node->linenum; children.push_back(reg); while (reg->simplify(true, false, false, 1, -1, false, false)) { } } |