mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-19 12:23:39 +00:00
Fixed parsing of "parameter integer"
This commit is contained in:
parent
e5b974fa2a
commit
63060dcd2e
1 changed files with 2 additions and 2 deletions
|
@ -386,8 +386,8 @@ param_integer:
|
||||||
if (astbuf1->children.size() != 1)
|
if (astbuf1->children.size() != 1)
|
||||||
frontend_verilog_yyerror("Syntax error.");
|
frontend_verilog_yyerror("Syntax error.");
|
||||||
astbuf1->children.push_back(new AstNode(AST_RANGE));
|
astbuf1->children.push_back(new AstNode(AST_RANGE));
|
||||||
astbuf1->children[0]->children.push_back(AstNode::mkconst_int(31, true));
|
astbuf1->children.back()->children.push_back(AstNode::mkconst_int(31, true));
|
||||||
astbuf1->children[0]->children.push_back(AstNode::mkconst_int(0, true));
|
astbuf1->children.back()->children.push_back(AstNode::mkconst_int(0, true));
|
||||||
} | /* empty */;
|
} | /* empty */;
|
||||||
|
|
||||||
param_range:
|
param_range:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue