Fix task output pin connected to non-variables.

git-svn-id: file://localhost/svn/verilator/trunk/verilator@1016 77ca24e4-aefa-0310-84f0-b9a241c72d87
This commit is contained in:
Wilson Snyder
2008-03-28 21:55:23 +00:00
parent 280eb48ba4
commit 957f495314
6 changed files with 47 additions and 19 deletions
+10 -4
View File
@@ -166,10 +166,10 @@ private:
public:
// CONSTUCTORS
LinkLValueVisitor(AstNetlist* rootp) {
m_setRefLvalue = false;
LinkLValueVisitor(AstNode* nodep, bool start) {
m_setRefLvalue = start;
m_ftaskp = NULL;
rootp->accept(*this);
nodep->accept(*this);
}
virtual ~LinkLValueVisitor() {}
};
@@ -179,5 +179,11 @@ public:
void V3LinkLValue::linkLValue(AstNetlist* rootp) {
UINFO(4,__FUNCTION__<<": "<<endl);
LinkLValueVisitor visitor(rootp);
LinkLValueVisitor visitor(rootp, false);
}
void V3LinkLValue::linkLValueSet(AstNode* nodep) {
// Called by later link functions when it is known a node needs
// to be converted to a lvalue.
UINFO(9,__FUNCTION__<<": "<<endl);
LinkLValueVisitor visitor(nodep, true);
}