From 2a028aa147837e83e226a025e0c8d244c59716df Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Mon, 10 Nov 2014 21:43:41 -0800 Subject: Bug fix in blasting MUX with different ranges of inputs and the output. --- src/base/wlc/wlcBlast.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/base/wlc/wlcBlast.c') diff --git a/src/base/wlc/wlcBlast.c b/src/base/wlc/wlcBlast.c index 24b653c8..94d04760 100644 --- a/src/base/wlc/wlcBlast.c +++ b/src/base/wlc/wlcBlast.c @@ -441,9 +441,9 @@ Gia_Man_t * Wlc_NtkBitBlast( Wlc_Ntk_t * p ) Wlc_ObjForEachFanin( pObj, iFanin, k ) { if ( !k ) continue; - assert( nRange == Wlc_ObjRange(Wlc_NtkObj(p, iFanin)) ); + //assert( nRange == Wlc_ObjRange(Wlc_NtkObj(p, iFanin)) ); pFans1 = Vec_IntEntryP( vBits, Wlc_ObjCopy(p, iFanin) ); - Vec_IntPush( vTemp0, pFans1[b] ); + Vec_IntPush( vTemp0, b < Wlc_ObjRange(Wlc_NtkObj(p, iFanin)) ? pFans1[b] : 0 ); } Vec_IntPush( vRes, Wlc_NtkMuxTree_rec(pNew, pFans0, nRange0, vTemp0, 0) ); } -- cgit v1.2.3