mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-04 02:10:24 +00:00
Improved ast dumping (ast/verilog frontend)
This commit is contained in:
parent
a860efa8ac
commit
4214561890
4 changed files with 35 additions and 64 deletions
|
@ -243,7 +243,7 @@ bool AstNode::simplify(bool const_fold, bool at_zero, bool in_lvalue, int stage)
|
|||
// resolve constant prefixes
|
||||
if (type == AST_PREFIX) {
|
||||
if (children[0]->type != AST_CONSTANT) {
|
||||
dumpAst(NULL, "> ", NULL);
|
||||
dumpAst(NULL, "> ");
|
||||
log_error("Index in generate block prefix syntax at %s:%d is not constant!\n", filename.c_str(), linenum);
|
||||
}
|
||||
assert(children[1]->type == AST_IDENTIFIER);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue