Internals: Function return values act as vars, not wires.
This commit is contained in:
parent
ea61559ab5
commit
e0b2c46664
|
|
@ -871,7 +871,7 @@ class LinkDotFindVisitor : public AstNVisitor {
|
||||||
// also return the class reference.
|
// also return the class reference.
|
||||||
if (dtypep) dtypep->unlinkFrBack();
|
if (dtypep) dtypep->unlinkFrBack();
|
||||||
else dtypep = new AstBasicDType(nodep->fileline(), AstBasicDTypeKwd::LOGIC);
|
else dtypep = new AstBasicDType(nodep->fileline(), AstBasicDTypeKwd::LOGIC);
|
||||||
AstVar* newvarp = new AstVar(nodep->fileline(), AstVarType::WIRE, nodep->name(),
|
AstVar* newvarp = new AstVar(nodep->fileline(), AstVarType::VAR, nodep->name(),
|
||||||
VFlagChildDType(), dtypep); // Not dtype resolved yet
|
VFlagChildDType(), dtypep); // Not dtype resolved yet
|
||||||
newvarp->direction(VDirection::OUTPUT);
|
newvarp->direction(VDirection::OUTPUT);
|
||||||
newvarp->funcReturn(true);
|
newvarp->funcReturn(true);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue