diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2012-09-12 14:39:50 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2012-09-12 14:39:50 -0700 |
commit | 9b15f71f2f82dfe5a222fceed135640be8cc5dfb (patch) | |
tree | 4709f96ea03198a1f65bb9e2105d5b7545712411 /src/map/scl/sclSize.c | |
parent | e3d75484ce558d862f7dfc80de9e88b56360b084 (diff) | |
download | abc-9b15f71f2f82dfe5a222fceed135640be8cc5dfb.tar.gz abc-9b15f71f2f82dfe5a222fceed135640be8cc5dfb.tar.bz2 abc-9b15f71f2f82dfe5a222fceed135640be8cc5dfb.zip |
Added new command 'upsize'.
Diffstat (limited to 'src/map/scl/sclSize.c')
-rw-r--r-- | src/map/scl/sclSize.c | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/src/map/scl/sclSize.c b/src/map/scl/sclSize.c index 6b6e2778..a5f99191 100644 --- a/src/map/scl/sclSize.c +++ b/src/map/scl/sclSize.c @@ -246,14 +246,6 @@ Vec_Int_t * Abc_SclCollectTfo( Abc_Ntk_t * p, Abc_Obj_t * pObj, Vec_Int_t * vPiv SeeAlso [] ***********************************************************************/ -static inline SC_Cell * Abc_SclObjResiable( SC_Man * p, Abc_Obj_t * pObj, int fUpsize ) -{ - SC_Cell * pOld = Abc_SclObjCell( p, pObj ); - if ( fUpsize ) - return pOld->pNext->Order > pOld->Order ? pOld->pNext : NULL; - else - return pOld->pPrev->Order < pOld->Order ? pOld->pPrev : NULL; -} float Abc_SclSizingGain( SC_Man * p, Abc_Obj_t * pPivot, Vec_Int_t * vPivots, int fUpsize ) { double dGain = 0; @@ -356,36 +348,6 @@ void Abc_SclUpdateNetwork( SC_Man * p, Abc_Obj_t * pObj, int nCone, int fUpsize, /**Function************************************************************* - Synopsis [Begin by upsizing gates will many fanouts.] - - Description [] - - SideEffects [] - - SeeAlso [] - -***********************************************************************/ -void Abc_SclManUpsize( SC_Man * p ) -{ - SC_Cell * pOld, * pNew; - Abc_Obj_t * pObj; - int i; - Abc_NtkForEachNode1( p->pNtk, pObj, i ) - { - if ( Abc_ObjFanoutNum(pObj) <= 2 ) - continue; - // find new gate - pOld = Abc_SclObjCell( p, pObj ); - pNew = Abc_SclObjResiable( p, pObj, 1 ); - if ( pNew == NULL ) - continue; - Vec_IntWriteEntry( p->vGates, Abc_ObjId(pObj), Abc_SclCellFind(p->pLib, pNew->pName) ); - } -} - - -/**Function************************************************************* - Synopsis [] Description [] |