summaryrefslogtreecommitdiffstats
path: root/src/base
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2008-05-08 08:01:00 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2008-05-08 08:01:00 -0700
commite94ccfd3fb07d22ed426e0386ccf536e470744b7 (patch)
tree395b99b931beee0c3416a098cc647f9b6a5b3080 /src/base
parent6175fcb8026bae3db5b4280b655131322d7944da (diff)
downloadabc-e94ccfd3fb07d22ed426e0386ccf536e470744b7.tar.gz
abc-e94ccfd3fb07d22ed426e0386ccf536e470744b7.tar.bz2
abc-e94ccfd3fb07d22ed426e0386ccf536e470744b7.zip
Version abc80508
Diffstat (limited to 'src/base')
-rw-r--r--src/base/abc/abcShow.c2
-rw-r--r--src/base/abci/abc.c26
-rw-r--r--src/base/abci/abcDar.c36
-rw-r--r--src/base/abci/abcDress.c2
-rw-r--r--src/base/cmd/cmd.c2
-rw-r--r--src/base/io/io.c2
-rw-r--r--src/base/io/ioAbc.h (renamed from src/base/io/io.h)4
-rw-r--r--src/base/io/ioReadAiger.c4
-rw-r--r--src/base/io/ioReadBaf.c2
-rw-r--r--src/base/io/ioReadBench.c2
-rw-r--r--src/base/io/ioReadBlif.c2
-rw-r--r--src/base/io/ioReadBlifMv.c2
-rw-r--r--src/base/io/ioReadDsd.c2
-rw-r--r--src/base/io/ioReadEdif.c2
-rw-r--r--src/base/io/ioReadEqn.c2
-rw-r--r--src/base/io/ioReadPla.c2
-rw-r--r--src/base/io/ioReadVerilog.c2
-rw-r--r--src/base/io/ioUtil.c2
-rw-r--r--src/base/io/ioWriteAiger.c2
-rw-r--r--src/base/io/ioWriteBaf.c2
-rw-r--r--src/base/io/ioWriteBench.c2
-rw-r--r--src/base/io/ioWriteBlif.c2
-rw-r--r--src/base/io/ioWriteBlifMv.c2
-rw-r--r--src/base/io/ioWriteCnf.c2
-rw-r--r--src/base/io/ioWriteDot.c2
-rw-r--r--src/base/io/ioWriteEqn.c2
-rw-r--r--src/base/io/ioWriteGml.c2
-rw-r--r--src/base/io/ioWriteList.c2
-rw-r--r--src/base/io/ioWritePla.c2
-rw-r--r--src/base/io/ioWriteVerilog.c2
-rw-r--r--src/base/io/io_.c2
-rw-r--r--src/base/main/main.h2
32 files changed, 86 insertions, 40 deletions
diff --git a/src/base/abc/abcShow.c b/src/base/abc/abcShow.c
index 40d1dcad..3bac7316 100644
--- a/src/base/abc/abcShow.c
+++ b/src/base/abc/abcShow.c
@@ -24,7 +24,7 @@
#include "abc.h"
#include "main.h"
-#include "io.h"
+#include "ioAbc.h"
////////////////////////////////////////////////////////////////////////
/// DECLARATIONS ///
diff --git a/src/base/abci/abc.c b/src/base/abci/abc.c
index 9b3ec291..d3ac7669 100644
--- a/src/base/abci/abc.c
+++ b/src/base/abci/abc.c
@@ -500,6 +500,11 @@ void Abc_Init( Abc_Frame_t * pAbc )
extern Bdc_ManDecomposeTest( unsigned uTruth, int nVars );
// Bdc_ManDecomposeTest( 0x0f0f0f0f, 3 );
}
+
+ {
+// extern void Aig_ManRandomTest1();
+// Aig_ManRandomTest1();
+ }
}
/**Function*************************************************************
@@ -7253,7 +7258,8 @@ int Abc_CommandTest( Abc_Frame_t * pAbc, int argc, char ** argv )
// extern void Abc_NtkDarTestBlif( char * pFileName );
// extern Abc_Ntk_t * Abc_NtkDarPartition( Abc_Ntk_t * pNtk );
// extern Abc_Ntk_t * Abc_NtkTestExor( Abc_Ntk_t * pNtk, int fVerbose );
- extern Abc_Ntk_t * Abc_NtkNtkTest( Abc_Ntk_t * pNtk, If_Lib_t * pLutLib );
+// extern Abc_Ntk_t * Abc_NtkNtkTest( Abc_Ntk_t * pNtk, If_Lib_t * pLutLib );
+ extern Abc_Ntk_t * Abc_NtkDarRetimeStep( Abc_Ntk_t * pNtk, int fVerbose );
@@ -7440,7 +7446,7 @@ int Abc_CommandTest( Abc_Frame_t * pAbc, int argc, char ** argv )
// Abc_NtkDarPartition( pNtk );
- pNtkRes = Abc_NtkNtkTest( pNtk, Abc_FrameReadLibLut() );
+ pNtkRes = Abc_NtkDarRetimeStep( pNtk, 0 );
if ( pNtkRes == NULL )
{
fprintf( pErr, "Command has failed.\n" );
@@ -17020,6 +17026,9 @@ int Abc_CommandAbc8Sweep( Abc_Frame_t * pAbc, int argc, char ** argv )
int fVerbose;
int c;
extern int Ntl_ManSweep( void * p, int fVerbose );
+ extern void * Ntl_ManInsertNtk( void * p, void * pNtk );
+ extern Aig_Man_t * Ntl_ManExtract( void * p );
+ extern void * Ntl_ManExtractNwk( void * p, Aig_Man_t * pAig, Tim_Man_t * pManTime );
// set defaults
fMapped = 0;
@@ -17332,12 +17341,13 @@ int Abc_CommandAbc8DSec( Abc_Frame_t * pAbc, int argc, char ** argv )
extern Aig_Man_t * Ntl_ManPrepareSec( char * pFileName1, char * pFileName2 );
// set defaults
- nFrames = 16;
- fRetimeFirst = 0;
- fRetimeRegs = 0;
- fFraiging = 1;
- fVerbose = 0;
- fVeryVerbose = 0;
+ nFrames = 8;
+ fPhaseAbstract = 0;
+ fRetimeFirst = 0;
+ fRetimeRegs = 0;
+ fFraiging = 1;
+ fVerbose = 0;
+ fVeryVerbose = 0;
Extra_UtilGetoptReset();
while ( ( c = Extra_UtilGetopt( argc, argv, "Farmfwvh" ) ) != EOF )
{
diff --git a/src/base/abci/abcDar.c b/src/base/abci/abcDar.c
index 88435e3f..329bccf8 100644
--- a/src/base/abci/abcDar.c
+++ b/src/base/abci/abcDar.c
@@ -20,6 +20,7 @@
#include "abc.h"
#include "aig.h"
+#include "saig.h"
#include "dar.h"
#include "cnf.h"
#include "fra.h"
@@ -1538,6 +1539,41 @@ Abc_Ntk_t * Abc_NtkDarRetimeMinArea( Abc_Ntk_t * pNtk, int nMaxIters, int fForwa
SeeAlso []
***********************************************************************/
+Abc_Ntk_t * Abc_NtkDarRetimeStep( Abc_Ntk_t * pNtk, int fVerbose )
+{
+ Abc_Ntk_t * pNtkAig;
+ Aig_Man_t * pMan;
+ assert( Abc_NtkIsStrash(pNtk) );
+ pMan = Abc_NtkToDar( pNtk, 0, 1 );
+ if ( pMan == NULL )
+ return NULL;
+ if ( pMan->vFlopNums )
+ Vec_IntFree( pMan->vFlopNums );
+ pMan->vFlopNums = NULL;
+
+ pMan->nTruePis = Aig_ManPiNum(pMan) - Aig_ManRegNum(pMan);
+ pMan->nTruePos = Aig_ManPoNum(pMan) - Aig_ManRegNum(pMan);
+
+ Aig_ManPrintStats(pMan);
+ Saig_ManRetimeSteps( pMan, 1, 0 );
+ Aig_ManPrintStats(pMan);
+
+ pNtkAig = Abc_NtkFromDarSeqSweep( pNtk, pMan );
+ Aig_ManStop( pMan );
+ return pNtkAig;
+}
+
+/**Function*************************************************************
+
+ Synopsis [Gives the current ABC network to AIG manager for processing.]
+
+ Description []
+
+ SideEffects []
+
+ SeeAlso []
+
+***********************************************************************/
void Abc_NtkDarHaigRecord( Abc_Ntk_t * pNtk )
{
/*
diff --git a/src/base/abci/abcDress.c b/src/base/abci/abcDress.c
index f8182532..f262a5d0 100644
--- a/src/base/abci/abcDress.c
+++ b/src/base/abci/abcDress.c
@@ -19,7 +19,7 @@
***********************************************************************/
#include "abc.h"
-#include "io.h"
+#include "ioAbc.h"
////////////////////////////////////////////////////////////////////////
/// DECLARATIONS ///
diff --git a/src/base/cmd/cmd.c b/src/base/cmd/cmd.c
index 316dd8ad..313ae0ed 100644
--- a/src/base/cmd/cmd.c
+++ b/src/base/cmd/cmd.c
@@ -1085,7 +1085,7 @@ usage:
#ifdef WIN32
-#include <io.h>
+#include <direct.h>
// these structures are defined in <io.h> but are for some reason invisible
typedef unsigned long _fsize_t; // Could be 64 bits for Win32
diff --git a/src/base/io/io.c b/src/base/io/io.c
index 6b802bf1..6efa8b67 100644
--- a/src/base/io/io.c
+++ b/src/base/io/io.c
@@ -18,7 +18,7 @@
***********************************************************************/
-#include "io.h"
+#include "ioAbc.h"
#include "mainInt.h"
////////////////////////////////////////////////////////////////////////
diff --git a/src/base/io/io.h b/src/base/io/ioAbc.h
index eea76efe..e62cc168 100644
--- a/src/base/io/io.h
+++ b/src/base/io/ioAbc.h
@@ -1,6 +1,6 @@
/**CFile****************************************************************
- FileName [io.h]
+ FileName [ioAbc.h]
SystemName [ABC: Logic synthesis and verification system.]
@@ -14,7 +14,7 @@
Date [Ver. 1.0. Started - June 20, 2005.]
- Revision [$Id: io.h,v 1.00 2005/06/20 00:00:00 alanmi Exp $]
+ Revision [$Id: ioAbc.h,v 1.00 2005/06/20 00:00:00 alanmi Exp $]
***********************************************************************/
diff --git a/src/base/io/ioReadAiger.c b/src/base/io/ioReadAiger.c
index 4820bced..3739205d 100644
--- a/src/base/io/ioReadAiger.c
+++ b/src/base/io/ioReadAiger.c
@@ -19,7 +19,7 @@
***********************************************************************/
-#include "io.h"
+#include "ioAbc.h"
////////////////////////////////////////////////////////////////////////
/// DECLARATIONS ///
@@ -327,7 +327,7 @@ Abc_Ntk_t * Io_ReadAiger( char * pFileName, int fCheck )
}
// read the name of the model if given
- if ( *pCur == 'c' )
+ if ( *pCur == 'c' && pCur < pContents + nFileSize )
{
if ( !strncmp( pCur + 2, ".model", 6 ) )
{
diff --git a/src/base/io/ioReadBaf.c b/src/base/io/ioReadBaf.c
index 8dce54af..13f644cc 100644
--- a/src/base/io/ioReadBaf.c
+++ b/src/base/io/ioReadBaf.c
@@ -18,7 +18,7 @@
***********************************************************************/
-#include "io.h"
+#include "ioAbc.h"
////////////////////////////////////////////////////////////////////////
/// DECLARATIONS ///
diff --git a/src/base/io/ioReadBench.c b/src/base/io/ioReadBench.c
index 007147bc..0742ec1f 100644
--- a/src/base/io/ioReadBench.c
+++ b/src/base/io/ioReadBench.c
@@ -18,7 +18,7 @@
***********************************************************************/
-#include "io.h"
+#include "ioAbc.h"
////////////////////////////////////////////////////////////////////////
/// DECLARATIONS ///
diff --git a/src/base/io/ioReadBlif.c b/src/base/io/ioReadBlif.c
index ffa25c7f..68a0bc35 100644
--- a/src/base/io/ioReadBlif.c
+++ b/src/base/io/ioReadBlif.c
@@ -18,7 +18,7 @@
***********************************************************************/
-#include "io.h"
+#include "ioAbc.h"
#include "main.h"
#include "mio.h"
diff --git a/src/base/io/ioReadBlifMv.c b/src/base/io/ioReadBlifMv.c
index 84378024..68602e63 100644
--- a/src/base/io/ioReadBlifMv.c
+++ b/src/base/io/ioReadBlifMv.c
@@ -21,7 +21,7 @@
#include "abc.h"
#include "extra.h"
#include "vecPtr.h"
-#include "io.h"
+#include "ioAbc.h"
////////////////////////////////////////////////////////////////////////
/// DECLARATIONS ///
diff --git a/src/base/io/ioReadDsd.c b/src/base/io/ioReadDsd.c
index 1ab726e5..482b5d06 100644
--- a/src/base/io/ioReadDsd.c
+++ b/src/base/io/ioReadDsd.c
@@ -18,7 +18,7 @@
***********************************************************************/
-#include "io.h"
+#include "ioAbc.h"
////////////////////////////////////////////////////////////////////////
/// DECLARATIONS ///
diff --git a/src/base/io/ioReadEdif.c b/src/base/io/ioReadEdif.c
index 188e5b8c..bea9bf69 100644
--- a/src/base/io/ioReadEdif.c
+++ b/src/base/io/ioReadEdif.c
@@ -18,7 +18,7 @@
***********************************************************************/
-#include "io.h"
+#include "ioAbc.h"
////////////////////////////////////////////////////////////////////////
/// DECLARATIONS ///
diff --git a/src/base/io/ioReadEqn.c b/src/base/io/ioReadEqn.c
index e04f2b1a..6a1360d0 100644
--- a/src/base/io/ioReadEqn.c
+++ b/src/base/io/ioReadEqn.c
@@ -18,7 +18,7 @@
***********************************************************************/
-#include "io.h"
+#include "ioAbc.h"
////////////////////////////////////////////////////////////////////////
/// DECLARATIONS ///
diff --git a/src/base/io/ioReadPla.c b/src/base/io/ioReadPla.c
index 288c3704..cbee81ef 100644
--- a/src/base/io/ioReadPla.c
+++ b/src/base/io/ioReadPla.c
@@ -18,7 +18,7 @@
***********************************************************************/
-#include "io.h"
+#include "ioAbc.h"
////////////////////////////////////////////////////////////////////////
/// DECLARATIONS ///
diff --git a/src/base/io/ioReadVerilog.c b/src/base/io/ioReadVerilog.c
index c64e330c..9847c2da 100644
--- a/src/base/io/ioReadVerilog.c
+++ b/src/base/io/ioReadVerilog.c
@@ -18,7 +18,7 @@
***********************************************************************/
-#include "io.h"
+#include "ioAbc.h"
////////////////////////////////////////////////////////////////////////
/// DECLARATIONS ///
diff --git a/src/base/io/ioUtil.c b/src/base/io/ioUtil.c
index 51a00274..37d57f30 100644
--- a/src/base/io/ioUtil.c
+++ b/src/base/io/ioUtil.c
@@ -18,7 +18,7 @@
***********************************************************************/
-#include "io.h"
+#include "ioAbc.h"
////////////////////////////////////////////////////////////////////////
/// DECLARATIONS ///
diff --git a/src/base/io/ioWriteAiger.c b/src/base/io/ioWriteAiger.c
index 758e5335..fb107e77 100644
--- a/src/base/io/ioWriteAiger.c
+++ b/src/base/io/ioWriteAiger.c
@@ -19,7 +19,7 @@
***********************************************************************/
-#include "io.h"
+#include "ioAbc.h"
////////////////////////////////////////////////////////////////////////
/// DECLARATIONS ///
diff --git a/src/base/io/ioWriteBaf.c b/src/base/io/ioWriteBaf.c
index fc0229a4..33487041 100644
--- a/src/base/io/ioWriteBaf.c
+++ b/src/base/io/ioWriteBaf.c
@@ -18,7 +18,7 @@
***********************************************************************/
-#include "io.h"
+#include "ioAbc.h"
////////////////////////////////////////////////////////////////////////
/// DECLARATIONS ///
diff --git a/src/base/io/ioWriteBench.c b/src/base/io/ioWriteBench.c
index df4a6259..147976da 100644
--- a/src/base/io/ioWriteBench.c
+++ b/src/base/io/ioWriteBench.c
@@ -18,7 +18,7 @@
***********************************************************************/
-#include "io.h"
+#include "ioAbc.h"
////////////////////////////////////////////////////////////////////////
/// DECLARATIONS ///
diff --git a/src/base/io/ioWriteBlif.c b/src/base/io/ioWriteBlif.c
index c0c29d65..a0105a6b 100644
--- a/src/base/io/ioWriteBlif.c
+++ b/src/base/io/ioWriteBlif.c
@@ -18,7 +18,7 @@
***********************************************************************/
-#include "io.h"
+#include "ioAbc.h"
#include "main.h"
#include "mio.h"
diff --git a/src/base/io/ioWriteBlifMv.c b/src/base/io/ioWriteBlifMv.c
index 775a2e07..86891fee 100644
--- a/src/base/io/ioWriteBlifMv.c
+++ b/src/base/io/ioWriteBlifMv.c
@@ -18,7 +18,7 @@
***********************************************************************/
-#include "io.h"
+#include "ioAbc.h"
#include "main.h"
#include "mio.h"
diff --git a/src/base/io/ioWriteCnf.c b/src/base/io/ioWriteCnf.c
index e1b2d956..3df189d1 100644
--- a/src/base/io/ioWriteCnf.c
+++ b/src/base/io/ioWriteCnf.c
@@ -18,7 +18,7 @@
***********************************************************************/
-#include "io.h"
+#include "ioAbc.h"
#include "satSolver.h"
////////////////////////////////////////////////////////////////////////
diff --git a/src/base/io/ioWriteDot.c b/src/base/io/ioWriteDot.c
index 8ae3cc42..b8ca6f67 100644
--- a/src/base/io/ioWriteDot.c
+++ b/src/base/io/ioWriteDot.c
@@ -18,7 +18,7 @@
***********************************************************************/
-#include "io.h"
+#include "ioAbc.h"
#include "main.h"
#include "mio.h"
diff --git a/src/base/io/ioWriteEqn.c b/src/base/io/ioWriteEqn.c
index 95c54577..94c6e032 100644
--- a/src/base/io/ioWriteEqn.c
+++ b/src/base/io/ioWriteEqn.c
@@ -18,7 +18,7 @@
***********************************************************************/
-#include "io.h"
+#include "ioAbc.h"
////////////////////////////////////////////////////////////////////////
/// DECLARATIONS ///
diff --git a/src/base/io/ioWriteGml.c b/src/base/io/ioWriteGml.c
index dc897300..d84e5f67 100644
--- a/src/base/io/ioWriteGml.c
+++ b/src/base/io/ioWriteGml.c
@@ -18,7 +18,7 @@
***********************************************************************/
-#include "io.h"
+#include "ioAbc.h"
////////////////////////////////////////////////////////////////////////
/// DECLARATIONS ///
diff --git a/src/base/io/ioWriteList.c b/src/base/io/ioWriteList.c
index 71af7c53..c06b39d7 100644
--- a/src/base/io/ioWriteList.c
+++ b/src/base/io/ioWriteList.c
@@ -18,7 +18,7 @@
***********************************************************************/
-#include "io.h"
+#include "ioAbc.h"
/*
-------- Original Message --------
diff --git a/src/base/io/ioWritePla.c b/src/base/io/ioWritePla.c
index b119751c..4b316416 100644
--- a/src/base/io/ioWritePla.c
+++ b/src/base/io/ioWritePla.c
@@ -18,7 +18,7 @@
***********************************************************************/
-#include "io.h"
+#include "ioAbc.h"
////////////////////////////////////////////////////////////////////////
/// DECLARATIONS ///
diff --git a/src/base/io/ioWriteVerilog.c b/src/base/io/ioWriteVerilog.c
index 9e71e3e4..c704c6a1 100644
--- a/src/base/io/ioWriteVerilog.c
+++ b/src/base/io/ioWriteVerilog.c
@@ -18,7 +18,7 @@
***********************************************************************/
-#include "io.h"
+#include "ioAbc.h"
#include "main.h"
#include "mio.h"
diff --git a/src/base/io/io_.c b/src/base/io/io_.c
index 62dd60e5..b24d1299 100644
--- a/src/base/io/io_.c
+++ b/src/base/io/io_.c
@@ -18,7 +18,7 @@
***********************************************************************/
-#include "io.h"
+#include "ioAbc.h"
////////////////////////////////////////////////////////////////////////
/// DECLARATIONS ///
diff --git a/src/base/main/main.h b/src/base/main/main.h
index 4433a8b4..b5cc0dfe 100644
--- a/src/base/main/main.h
+++ b/src/base/main/main.h
@@ -52,7 +52,7 @@ typedef struct Abc_Frame_t_ Abc_Frame_t;
// core packages
#include "abc.h"
#include "cmd.h"
-#include "io.h"
+#include "ioAbc.h"
////////////////////////////////////////////////////////////////////////
/// PARAMETERS ///