mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-26 18:45:34 +00:00
Improved scope resolution of local regs in Verilog+AST frontend
This commit is contained in:
parent
0129d41efa
commit
91dd87e60b
4 changed files with 90 additions and 9 deletions
|
@ -599,12 +599,11 @@ wire_name:
|
|||
if (node->is_input || node->is_output)
|
||||
frontend_verilog_yyerror("Module port `%s' is not declared in module header.", $1->c_str());
|
||||
}
|
||||
ast_stack.back()->children.push_back(node);
|
||||
} else {
|
||||
if (node->is_input || node->is_output)
|
||||
node->port_id = current_function_or_task_port_id++;
|
||||
current_function_or_task->children.push_back(node);
|
||||
}
|
||||
ast_stack.back()->children.push_back(node);
|
||||
delete $1;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue