diff options
author | Clifford Wolf <clifford@clifford.at> | 2019-03-02 10:38:13 -0800 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2019-03-02 10:38:13 -0800 |
commit | ce6695e22c7d2b8856ec5bb93a94264555aa55b5 (patch) | |
tree | b834072d31a4d5939767f8eef10f8d81a382073c /frontends/ast/simplify.cc | |
parent | 65412466c5fbcb26135f8074aacb2ccd25ae7ce4 (diff) | |
download | yosys-ce6695e22c7d2b8856ec5bb93a94264555aa55b5.tar.gz yosys-ce6695e22c7d2b8856ec5bb93a94264555aa55b5.tar.bz2 yosys-ce6695e22c7d2b8856ec5bb93a94264555aa55b5.zip |
Fix $global_clock handling vs autowire
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'frontends/ast/simplify.cc')
-rw-r--r-- | frontends/ast/simplify.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/ast/simplify.cc b/frontends/ast/simplify.cc index 1c35516d4..d0b31078a 100644 --- 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); |