mirror of
https://github.com/verilator/verilator.git
synced 2026-09-01 10:27:04 +02:00
Fix process comparison compile error with --public-flat-rw (#7592).
Fixes #7592.
This commit is contained in:
+1
-1
@@ -5496,7 +5496,7 @@ AstFunc* V3Randomize::newSRandomFunc(VMemberMap& memberMap, AstClass* nodep) {
|
||||
// For std::process, seed the per-process RNG via m_process->srandom()
|
||||
// For regular classes, seed the per-object RNG via __Vm_rng
|
||||
if (basep->name() == "process") {
|
||||
funcp->addStmtsp(new AstCStmt{basep->fileline(), "__PVT__m_process->srandom(seed);"});
|
||||
funcp->addStmtsp(new AstCStmt{basep->fileline(), "m_process->srandom(seed);"});
|
||||
} else {
|
||||
funcp->addStmtsp(new AstCStmt{basep->fileline(), "__Vm_rng.srandom(seed);"});
|
||||
basep->needRNG(true);
|
||||
|
||||
Reference in New Issue
Block a user