diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2015-09-24 09:47:05 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2015-09-24 09:47:05 -0700 |
commit | 3f77172a7e619a4739bc7acb0ee41a6cd3f6d47e (patch) | |
tree | f347aa6efa3aaa523b750346fea25f20bfa8adda /src | |
parent | f1bc34689459b984f4b2bbb269a098d7016d7e99 (diff) | |
download | abc-3f77172a7e619a4739bc7acb0ee41a6cd3f6d47e.tar.gz abc-3f77172a7e619a4739bc7acb0ee41a6cd3f6d47e.tar.bz2 abc-3f77172a7e619a4739bc7acb0ee41a6cd3f6d47e.zip |
Adding API to set the number of flops after reading MiniAIG.
Diffstat (limited to 'src')
-rw-r--r-- | src/aig/miniaig/abcapis.h | 1 | ||||
-rw-r--r-- | src/base/abci/abcMini.c | 12 |
2 files changed, 12 insertions, 1 deletions
diff --git a/src/aig/miniaig/abcapis.h b/src/aig/miniaig/abcapis.h index 6f7f9164..036018d4 100644 --- a/src/aig/miniaig/abcapis.h +++ b/src/aig/miniaig/abcapis.h @@ -52,6 +52,7 @@ extern int Cmd_CommandExecute( void * pAbc, char * pCommandLine ); // procedures to input/output 'mini AIG' extern void Abc_NtkInputMiniAig( void * pAbc, void * pMiniAig ); extern void * Abc_NtkOutputMiniAig( void * pAbc ); +extern void Abc_NtkSetFlopNum( void * pAbc, int nFlops ); // procedures to set CI/CO arrival/required times extern void Abc_NtkSetCiArrivalTime( void * pAbc, int iCi, float Rise, float Fall ); diff --git a/src/base/abci/abcMini.c b/src/base/abci/abcMini.c index 8f9e48fe..bd893b5b 100644 --- a/src/base/abci/abcMini.c +++ b/src/base/abci/abcMini.c @@ -175,7 +175,17 @@ void * Abc_NtkOutputMiniAig( Abc_Frame_t * pAbc ) printf( "Current network in ABC framework is not defined.\n" ); return Abc_NtkToMiniAig( pNtk ); } - +void Abc_NtkSetFlopNum( Abc_Frame_t * pAbc, int nFlops ) +{ + extern void Abc_NtkMakeSeq( Abc_Ntk_t * pNtk, int nFlops ); + Abc_Ntk_t * pNtk; + if ( pAbc == NULL ) + printf( "ABC framework is not initialized by calling Abc_Start()\n" ); + pNtk = Abc_FrameReadNtk( pAbc ); + if ( pNtk == NULL ) + printf( "Current network in ABC framework is not defined.\n" ); + Abc_NtkMakeSeq( pNtk, nFlops ); +} /**Function************************************************************* |