Fix error with tasks that have output first, bug78.

This commit is contained in:
Wilson Snyder 2009-04-08 14:33:12 -04:00
parent 3d85cbe6b5
commit 86f08a341c
3 changed files with 5 additions and 2 deletions

View File

@ -5,6 +5,8 @@ indicates the contributor was also the author of the fix; Thanks!
* Verilator 3.7***
**** Fix error with tasks that have output first, bug78. [Andrea Foletto]
**** Fix "cloning" error with -y/--top-module, bug76. [Dimitris Nalbantis]
* Verilator 3.702 2009/03/28

View File

@ -415,6 +415,7 @@ private:
else if (!m_inDly && nodep->lvalue()) {
//UINFO(9,"NBA "<<nodep<<endl);
if (!m_inInitial) {
UINFO(4,"AssignNDlyVar: "<<nodep<<endl);
markVarUsage(nodep->varp(), VU_NONDLY);
}
}

View File

@ -211,10 +211,10 @@ private:
if (AstVar* portp = stmtp->castVar()) {
if (portp->isIO()) {
if (portp->isInput()) {
pinp->iterateAndNext(*this);
pinp->iterate(*this);
} else { // Output or Inout
m_setRefLvalue = true;
pinp->iterateAndNext(*this);
pinp->iterate(*this);
m_setRefLvalue = false;
}
// Advance pin