projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6541246
)
Fix $global_clock handling vs autowire
author
Clifford Wolf
<clifford@clifford.at>
Sat, 2 Mar 2019 18:38:13 +0000
(10:38 -0800)
committer
Clifford Wolf
<clifford@clifford.at>
Sat, 2 Mar 2019 18:38:13 +0000
(10:38 -0800)
Signed-off-by: Clifford Wolf <clifford@clifford.at>
frontends/ast/simplify.cc
patch
|
blob
|
history
diff --git
a/frontends/ast/simplify.cc
b/frontends/ast/simplify.cc
index 1c35516d4be03daacecb8803fe75c65ff595a83e..d0b31078a2ea1c0d23022bddbe1f5798b319fa0d 100644
(file)
--- a/
frontends/ast/simplify.cc
+++ b/
frontends/ast/simplify.cc
@@
-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);