Skip to content

Commit

Permalink
Don't emit VL_RAND_RESET for crave generator
Browse files Browse the repository at this point in the history
Signed-off-by: Ryszard Rozak <[email protected]>
  • Loading branch information
RRozak committed Nov 17, 2023
1 parent 04a1023 commit 2341a2e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/V3EmitCFunc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -719,6 +719,8 @@ string EmitCFunc::emitVarResetRecurse(const AstVar* varp, const string& varNameP
return "";
} else if (basicp && basicp->isDynamicTriggerScheduler()) {
return "";
} else if (basicp && basicp->isRandomGenerator()) {
return "";
} else if (basicp) {
const bool zeroit
= (varp->attrFileDescr() // Zero so we don't do file IO if never $fopen
Expand Down

0 comments on commit 2341a2e

Please sign in to comment.