Internals: No need for 'if' before VL_FFLUSH_I
This commit is contained in:
parent
d28436dccc
commit
a74a3bb689
|
|
@ -974,12 +974,9 @@ public:
|
||||||
if (!nodep->filep()) {
|
if (!nodep->filep()) {
|
||||||
putns(nodep, "Verilated::runFlushCallbacks();\n");
|
putns(nodep, "Verilated::runFlushCallbacks();\n");
|
||||||
} else {
|
} else {
|
||||||
putns(nodep, "if (");
|
|
||||||
iterateAndNextConstNull(nodep->filep());
|
|
||||||
puts(") { ");
|
|
||||||
putns(nodep, "VL_FFLUSH_I(");
|
putns(nodep, "VL_FFLUSH_I(");
|
||||||
iterateAndNextConstNull(nodep->filep());
|
iterateAndNextConstNull(nodep->filep());
|
||||||
puts("); }\n");
|
puts(");\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
void visit(AstFSeek* nodep) override {
|
void visit(AstFSeek* nodep) override {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue