mirror of
https://github.com/verilator/verilator.git
synced 2026-09-05 16:45:23 +02:00
This commit is contained in:
@@ -456,6 +456,13 @@ class GateOkVisitor final : public VNVisitorConst {
|
||||
clearSimple("Not a buffer (goes to a clock)");
|
||||
}
|
||||
}
|
||||
void visit(AstCReset* nodep) override {
|
||||
if (!m_isSimple) return;
|
||||
// CReset is pure because we can optimize assignments, but if is
|
||||
// the only assignment to a variable we still need to initial
|
||||
// assign to get randomization etc
|
||||
clearSimple("CReset");
|
||||
}
|
||||
//--------------------
|
||||
void visit(AstNode* nodep) override {
|
||||
if (!m_isSimple) return; // Fastpath
|
||||
|
||||
Reference in New Issue
Block a user