mirror of https://github.com/YosysHQ/yosys.git
Fix $global_clock handling vs autowire
Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
parent
65412466c5
commit
ce6695e22c
|
@ -941,7 +941,7 @@ bool AstNode::simplify(bool const_fold, bool at_zero, bool in_lvalue, int stage,
|
|||
}
|
||||
}
|
||||
if (current_scope.count(str) == 0) {
|
||||
if (flag_autowire) {
|
||||
if (flag_autowire || str == "\\$global_clock") {
|
||||
AstNode *auto_wire = new AstNode(AST_AUTOWIRE);
|
||||
auto_wire->str = str;
|
||||
current_ast_mod->children.push_back(auto_wire);
|
||||
|
|
Loading…
Reference in New Issue