Revert "Change var lifetime in v3fork"
This reverts commit 77597cda8c0c22491ca2fbbe135ccdd7ff538132.
This commit is contained in:
parent
1e6fb7ae23
commit
d2f34b9974
|
|
@ -449,17 +449,13 @@ class DynScopeVisitor final : public VNVisitor {
|
|||
<< nodep->varp()->verilogKwd()
|
||||
<< " variable of a function after a timing control is not allowed");
|
||||
} else {
|
||||
if (nodep->varp()->lifetime() == VLifetime::AUTOMATIC_IMPLICIT) {
|
||||
nodep->varp()->lifetime(VLifetime::STATIC_IMPLICIT);
|
||||
} else {
|
||||
nodep->v3warn(E_UNSUPPORTED, "Unsupported: Writing to a captured "
|
||||
nodep->v3warn(E_UNSUPPORTED, "Unsupported: Writing to a captured "
|
||||
<< nodep->varp()->verilogKwd()
|
||||
<< " variable in a "
|
||||
<< (VN_IS(nodep->backp(), AssignDly)
|
||||
? "non-blocking assignment"
|
||||
: "fork")
|
||||
<< " after a timing control");
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!framep->instance().initialized()) framep->createInstancePrototype();
|
||||
|
|
|
|||
Loading…
Reference in New Issue