Fix tristates causing "Assigned pin is neither..."
This commit is contained in:
parent
92fbec2294
commit
ea78520220
2
Changes
2
Changes
|
|
@ -7,6 +7,8 @@ indicates the contributor was also the author of the fix; Thanks!
|
|||
|
||||
**** Fix segfault on unrolling for's with bad inits, bug90. [Andreas Olofsson]
|
||||
|
||||
**** Fix tristates causing "Assigned pin is neither...". [by Lane Brooks]
|
||||
|
||||
* Verilator 3.710 2009/05/19
|
||||
|
||||
** Verilator is now licensed under LGPL v3 and/or Artistic v2.0.
|
||||
|
|
|
|||
|
|
@ -1410,7 +1410,7 @@ void EmitCStmts::emitVarList(AstNode* firstp, EisWhich which, const string& pref
|
|||
case EVL_ALL: doit = true; break;
|
||||
case EVL_IO: doit = varp->isIO(); break;
|
||||
case EVL_SIG: doit = (varp->isSignal() && !varp->isIO()); break;
|
||||
case EVL_TEMP: doit = varp->isTemp(); break;
|
||||
case EVL_TEMP: doit = (varp->isTemp() && !varp->isIO()); break;
|
||||
default: v3fatalSrc("Bad Case");
|
||||
}
|
||||
if (varp->isStatic() ? !isstatic : isstatic) doit=false;
|
||||
|
|
|
|||
|
|
@ -207,6 +207,7 @@ private:
|
|||
AstVarType::MODULETEMP,
|
||||
outrefp->name() + "__en" + suffix + cvtToStr(m_unique++),
|
||||
(width>1) ? new AstRange(outp->fileline(), width-1, 0) : (AstRange *) NULL);
|
||||
enp->varType2Out();
|
||||
|
||||
if (enp->width() != enrhsp->width()) {
|
||||
if (enrhsp->width()==1) { // it seems from my futzing that the linter guarantees this condition
|
||||
|
|
|
|||
Loading…
Reference in New Issue