aboutsummaryrefslogtreecommitdiffstats
path: root/frontends/ast/simplify.cc
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2016-07-27 15:41:22 +0200
committerClifford Wolf <clifford@clifford.at>2016-07-27 15:41:22 +0200
commit40563129872f5a2287f54cb0dbd79534b493a5d6 (patch)
tree0ef8462549bafba7356efd94570a19d230b68af9 /frontends/ast/simplify.cc
parenta7b07696238dbfd8e4fb5fd41d597200abef4909 (diff)
downloadyosys-40563129872f5a2287f54cb0dbd79534b493a5d6.tar.gz
yosys-40563129872f5a2287f54cb0dbd79534b493a5d6.tar.bz2
yosys-40563129872f5a2287f54cb0dbd79534b493a5d6.zip
Added $anyconst and $aconst
Diffstat (limited to 'frontends/ast/simplify.cc')
-rw-r--r--frontends/ast/simplify.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/frontends/ast/simplify.cc b/frontends/ast/simplify.cc
index 9f88cddc2..79dc3b7c8 100644
--- a/frontends/ast/simplify.cc
+++ b/frontends/ast/simplify.cc
@@ -1655,6 +1655,10 @@ skip_dynamic_range_lvalue_expansion:;
goto apply_newNode;
}
+ // $anyconst and $aconst are mapped in AstNode::genRTLIL()
+ if (str == "\\$anyconst" || str == "\\$aconst")
+ return false;
+
if (str == "\\$clog2")
{
if (children.size() != 1)