mirror of https://github.com/YosysHQ/yosys.git
Add AST_EDGE support to AstNode::detect_latch(), fixes #2241
Signed-off-by: Claire Wolf <claire@symbioticeda.com>
This commit is contained in:
parent
c0bcbe1f62
commit
f9ed09423e
|
@ -4231,6 +4231,8 @@ bool AstNode::detect_latch(const std::string &var)
|
||||||
case AST_POSEDGE:
|
case AST_POSEDGE:
|
||||||
case AST_NEGEDGE:
|
case AST_NEGEDGE:
|
||||||
return false;
|
return false;
|
||||||
|
case AST_EDGE:
|
||||||
|
break;
|
||||||
case AST_BLOCK:
|
case AST_BLOCK:
|
||||||
if (!c->detect_latch(var))
|
if (!c->detect_latch(var))
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue