summaryrefslogtreecommitdiffstats
path: root/src/base/abci/abc.c
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2012-05-20 17:27:53 +0700
committerAlan Mishchenko <alanmi@berkeley.edu>2012-05-20 17:27:53 +0700
commitc6af9094c092170b14d735097cdf805b90105287 (patch)
tree7cad398e7cc88aa2e07fd8a0856a3e25b1333c0f /src/base/abci/abc.c
parent38214f01c20227cfca6617c4b2ac55e090ec47fa (diff)
downloadabc-c6af9094c092170b14d735097cdf805b90105287.tar.gz
abc-c6af9094c092170b14d735097cdf805b90105287.tar.bz2
abc-c6af9094c092170b14d735097cdf805b90105287.zip
Changing 'if' to allow for delay optimization on sequential paths only.
Diffstat (limited to 'src/base/abci/abc.c')
-rw-r--r--src/base/abci/abc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/base/abci/abc.c b/src/base/abci/abc.c
index 1b64803c..955ba66b 100644
--- a/src/base/abci/abc.c
+++ b/src/base/abci/abc.c
@@ -13499,7 +13499,8 @@ int Abc_CommandIf( Abc_Frame_t * pAbc, int argc, char ** argv )
pPars->pLutStruct = NULL;
// internal parameters
pPars->fTruth = 0;
- pPars->nLatches = pNtk? Abc_NtkLatchNum(pNtk) : 0;
+ pPars->nLatchesCi = pNtk? Abc_NtkLatchNum(pNtk) : 0;
+ pPars->nLatchesCo = pNtk? Abc_NtkLatchNum(pNtk) : 0;
pPars->fLiftLeaves = 0;
pPars->pLutLib = (If_Lib_t *)Abc_FrameReadLibLut();
pPars->pTimesArr = NULL;
@@ -13695,7 +13696,7 @@ int Abc_CommandIf( Abc_Frame_t * pAbc, int argc, char ** argv )
}
*/
- if ( pPars->fSeqMap && pPars->nLatches == 0 )
+ if ( pPars->fSeqMap && (pPars->nLatchesCi == 0 || pPars->nLatchesCo == 0) )
{
Abc_Print( -1, "The network has no latches. Use combinational mapping instead of sequential.\n" );
return 1;