diff options
author | Clifford Wolf <clifford@clifford.at> | 2016-07-27 15:41:22 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2016-07-27 15:41:22 +0200 |
commit | 40563129872f5a2287f54cb0dbd79534b493a5d6 (patch) | |
tree | 0ef8462549bafba7356efd94570a19d230b68af9 /frontends/verilog | |
parent | a7b07696238dbfd8e4fb5fd41d597200abef4909 (diff) | |
download | yosys-40563129872f5a2287f54cb0dbd79534b493a5d6.tar.gz yosys-40563129872f5a2287f54cb0dbd79534b493a5d6.tar.bz2 yosys-40563129872f5a2287f54cb0dbd79534b493a5d6.zip |
Added $anyconst and $aconst
Diffstat (limited to 'frontends/verilog')
-rw-r--r-- | frontends/verilog/verilog_parser.y | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/verilog/verilog_parser.y b/frontends/verilog/verilog_parser.y index 4cb65a088..c2327011f 100644 --- a/frontends/verilog/verilog_parser.y +++ b/frontends/verilog/verilog_parser.y @@ -1219,7 +1219,7 @@ rvalue: $$ = new AstNode(AST_IDENTIFIER, $2); $$->str = *$1; delete $1; - if ($2 == nullptr && $$->str == "\\$initstate") + if ($2 == nullptr && formal_mode && ($$->str == "\\$initstate" || $$->str == "\\$anyconst" || $$->str == "\\$aconst")) $$->type = AST_FCALL; } | hierarchical_id non_opt_multirange { |