diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2008-01-23 08:01:00 -0800 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2008-01-23 08:01:00 -0800 |
commit | 6c68b76bff33daa7cd94b78c51bdd4cdaf65059c (patch) | |
tree | feb304b4b8bf8e9a7ae7039b4ff745e997208b41 /src/map/if/ifMan.c | |
parent | d4fecf91efcd090caa9a5cbfb05059361e84c4ec (diff) | |
download | abc-6c68b76bff33daa7cd94b78c51bdd4cdaf65059c.tar.gz abc-6c68b76bff33daa7cd94b78c51bdd4cdaf65059c.tar.bz2 abc-6c68b76bff33daa7cd94b78c51bdd4cdaf65059c.zip |
Version abc80123
Diffstat (limited to 'src/map/if/ifMan.c')
-rw-r--r-- | src/map/if/ifMan.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/map/if/ifMan.c b/src/map/if/ifMan.c index 977d69c9..6b21919b 100644 --- a/src/map/if/ifMan.c +++ b/src/map/if/ifMan.c @@ -56,7 +56,7 @@ If_Man_t * If_ManStart( If_Par_t * pPars ) p->vCis = Vec_PtrAlloc( 100 ); p->vCos = Vec_PtrAlloc( 100 ); p->vObjs = Vec_PtrAlloc( 100 ); - p->vMapped = Vec_PtrAlloc( 100 ); +// p->vMapped = Vec_PtrAlloc( 100 ); p->vTemp = Vec_PtrAlloc( 100 ); // prepare the memory manager p->nTruthWords = p->pPars->fTruth? If_CutTruthWords( p->pPars->nLutSize ) : 0; @@ -100,7 +100,7 @@ void If_ManRestart( If_Man_t * p ) Vec_PtrClear( p->vCis ); Vec_PtrClear( p->vCos ); Vec_PtrClear( p->vObjs ); - Vec_PtrClear( p->vMapped ); +// Vec_PtrClear( p->vMapped ); Vec_PtrClear( p->vTemp ); Mem_FixedRestart( p->pMemObj ); // create the constant node @@ -128,10 +128,11 @@ void If_ManStop( If_Man_t * p ) Vec_PtrFree( p->vCis ); Vec_PtrFree( p->vCos ); Vec_PtrFree( p->vObjs ); - Vec_PtrFree( p->vMapped ); +// Vec_PtrFree( p->vMapped ); Vec_PtrFree( p->vTemp ); + if ( p->vObjsRev ) Vec_PtrFree( p->vObjsRev ); if ( p->vLatchOrder ) Vec_PtrFree( p->vLatchOrder ); - if ( p->vLags ) Vec_IntFree( p->vLags ); + if ( p->vLags ) Vec_IntFree( p->vLags ); Mem_FixedStop( p->pMemObj, 0 ); FREE( p->pMemCi ); FREE( p->pMemAnd ); @@ -141,6 +142,8 @@ void If_ManStop( If_Man_t * p ) FREE( p->pPars->pTimesArr ); if ( p->pPars->pTimesReq ) FREE( p->pPars->pTimesReq ); + if ( p->pManTim ) + Tim_ManStop( p->pManTim ); free( p ); } @@ -160,6 +163,7 @@ If_Obj_t * If_ManCreateCi( If_Man_t * p ) If_Obj_t * pObj; pObj = If_ManSetupObj( p ); pObj->Type = IF_CI; + pObj->IdPio = Vec_PtrSize( p->vCis ); Vec_PtrPush( p->vCis, pObj ); p->nObjs[IF_CI]++; return pObj; @@ -180,10 +184,12 @@ If_Obj_t * If_ManCreateCo( If_Man_t * p, If_Obj_t * pDriver ) { If_Obj_t * pObj; pObj = If_ManSetupObj( p ); + pObj->IdPio = Vec_PtrSize( p->vCos ); Vec_PtrPush( p->vCos, pObj ); pObj->Type = IF_CO; pObj->fCompl0 = If_IsComplement(pDriver); pDriver = If_Regular(pDriver); pObj->pFanin0 = pDriver; pDriver->nRefs++; + pObj->Level = pDriver->Level; p->nObjs[IF_CO]++; return pObj; } |