mirror of
https://github.com/verilator/verilator.git
synced 2026-09-03 04:03:36 +02:00
+4
-1
@@ -75,7 +75,10 @@ private:
|
||||
const string newvarname{"__Vilp"};
|
||||
varp = new AstVar{fl, VVarType::STMTTEMP, newvarname, VFlagLogicPacked{}, 32};
|
||||
UASSERT_OBJ(cfuncp, fl, "Assignment not under a function");
|
||||
cfuncp->addInitsp(varp);
|
||||
if (cfuncp->initsp())
|
||||
cfuncp->initsp()->addNextHere(varp);
|
||||
else
|
||||
cfuncp->addInitsp(varp);
|
||||
cfuncp->user1p(varp);
|
||||
}
|
||||
return varp;
|
||||
|
||||
Reference in New Issue
Block a user