summaryrefslogtreecommitdiffstats
path: root/src/base/abci/abc.c
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2014-04-09 16:41:58 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2014-04-09 16:41:58 -0700
commit1c582413dad0bbb2bde2e4edf06e0e1e995cae1b (patch)
tree542e4711f91caaa65407b268eab9018170d57081 /src/base/abci/abc.c
parent91d80a63d8f35a523b1805b55d32e390547a7bed (diff)
downloadabc-1c582413dad0bbb2bde2e4edf06e0e1e995cae1b.tar.gz
abc-1c582413dad0bbb2bde2e4edf06e0e1e995cae1b.tar.bz2
abc-1c582413dad0bbb2bde2e4edf06e0e1e995cae1b.zip
Adding new code to support barrier buffers.
Diffstat (limited to 'src/base/abci/abc.c')
-rw-r--r--src/base/abci/abc.c17
1 files changed, 14 insertions, 3 deletions
diff --git a/src/base/abci/abc.c b/src/base/abci/abc.c
index bbb122ca..623bc216 100644
--- a/src/base/abci/abc.c
+++ b/src/base/abci/abc.c
@@ -10295,7 +10295,7 @@ usage:
***********************************************************************/
int Abc_CommandTest( Abc_Frame_t * pAbc, int argc, char ** argv )
{
-// Abc_Ntk_t * pNtk = Abc_FrameReadNtk(pAbc);
+ Abc_Ntk_t * pNtk = Abc_FrameReadNtk(pAbc);
int nCutMax = 1;
int nLeafMax = 10;
int nDivMax = 50;
@@ -10424,8 +10424,19 @@ int Abc_CommandTest( Abc_Frame_t * pAbc, int argc, char ** argv )
// if ( pNtk )
// Abc_NtkMakeLegit( pNtk );
{
- extern void Ifd_ManDsdTest();
- Ifd_ManDsdTest();
+// extern void Ifd_ManDsdTest();
+// Ifd_ManDsdTest();
+ }
+ if ( pNtk )
+ {
+ extern Abc_Ntk_t * Abc_NtkBarBufsOnOffTest( Abc_Ntk_t * pNtk );
+ Abc_Ntk_t * pNtkRes = Abc_NtkBarBufsOnOffTest( pNtk );
+ if ( pNtkRes == NULL )
+ {
+ Abc_Print( -1, "Command has failed.\n" );
+ return 1;
+ }
+ Abc_FrameReplaceCurrentNetwork( pAbc, pNtkRes );
}
return 0;
usage: