Commit 17c32289 by Alan Mishchenko

Bug with in signed MUX.

parent 8452f5cf
...@@ -549,8 +549,10 @@ Gia_Man_t * Wlc_NtkBitBlast( Wlc_Ntk_t * p, Vec_Int_t * vBoxIds ) ...@@ -549,8 +549,10 @@ Gia_Man_t * Wlc_NtkBitBlast( Wlc_Ntk_t * p, Vec_Int_t * vBoxIds )
{ {
if ( !k ) continue; if ( !k ) continue;
//assert( nRange == Wlc_ObjRange(Wlc_NtkObj(p, iFanin)) ); //assert( nRange == Wlc_ObjRange(Wlc_NtkObj(p, iFanin)) );
pPrev = Wlc_NtkObj(p, iFanin);
nRange1 = Wlc_ObjRange(pPrev);
pFans1 = Vec_IntEntryP( vBits, Wlc_ObjCopy(p, iFanin) ); pFans1 = Vec_IntEntryP( vBits, Wlc_ObjCopy(p, iFanin) );
Vec_IntPush( vTemp0, b < Wlc_ObjRange(Wlc_NtkObj(p, iFanin)) ? pFans1[b] : 0 ); Vec_IntPush( vTemp0, b < nRange1 ? pFans1[b] : (pPrev->Signed? pFans1[nRange1-1] : 0) );
} }
Vec_IntPush( vRes, Wlc_NtkMuxTree_rec(pNew, pFans0, nRange0, vTemp0, 0) ); Vec_IntPush( vRes, Wlc_NtkMuxTree_rec(pNew, pFans0, nRange0, vTemp0, 0) );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment