mirror of
https://github.com/verilator/verilator.git
synced 2026-10-07 18:42:58 +02:00
Internals: Set fabricated variable lifetimes
Set implicit net and traced coverage var lifetimes. No functional change.
This commit is contained in:
@@ -199,6 +199,7 @@ class CoverageVisitor final : public VNVisitor {
|
||||
AstVar* const varp = new AstVar{fl_nowarn, VVarType::MODULETEMP, trace_var_name,
|
||||
incp->findUInt32DType()};
|
||||
varp->setIgnoreSchedWrite(); // Ignore the increment output, so no UNOPTFLAT
|
||||
varp->lifetime(VLifetime::STATIC_IMPLICIT);
|
||||
varp->trace(true);
|
||||
m_modp->addStmtsp(varp);
|
||||
UINFO(5, "New coverage trace: " << varp);
|
||||
|
||||
Reference in New Issue
Block a user