ABC: A System for Sequential Synthesis and Verification
 
Loading...
Searching...
No Matches
mainFrame.c File Reference
#include "base/abc/abc.h"
#include "mainInt.h"
#include "bool/dec/dec.h"
#include "map/if/if.h"
#include "aig/miniaig/ndr.h"
Include dependency graph for mainFrame.c:

Go to the source code of this file.

Functions

Vec_Ptr_tAbc_FrameReadStore ()
 FUNCTION DEFINITIONS ///.
 
int Abc_FrameReadStoreSize ()
 
void * Abc_FrameReadLibLut ()
 
void * Abc_FrameReadLibBox ()
 
void * Abc_FrameReadLibGen ()
 
void * Abc_FrameReadLibGen2 ()
 
void * Abc_FrameReadLibSuper ()
 
void * Abc_FrameReadLibScl ()
 
void * Abc_FrameReadManDec ()
 
void * Abc_FrameReadManDsd ()
 
void * Abc_FrameReadManDsd2 ()
 
char * Abc_FrameReadFlag (char *pFlag)
 
Vec_Ptr_tAbc_FrameReadSignalNames ()
 
char * Abc_FrameReadSpecName ()
 
int Abc_FrameReadBmcFrames (Abc_Frame_t *p)
 
int Abc_FrameReadProbStatus (Abc_Frame_t *p)
 
void * Abc_FrameReadCex (Abc_Frame_t *p)
 
Vec_Ptr_tAbc_FrameReadCexVec (Abc_Frame_t *p)
 
Vec_Int_tAbc_FrameReadStatusVec (Abc_Frame_t *p)
 
Vec_Ptr_tAbc_FrameReadPoEquivs (Abc_Frame_t *p)
 
Vec_Int_tAbc_FrameReadPoStatuses (Abc_Frame_t *p)
 
Vec_Int_tAbc_FrameReadObjIds (Abc_Frame_t *p)
 
Abc_Nam_tAbc_FrameReadJsonStrs (Abc_Frame_t *p)
 
Vec_Wec_tAbc_FrameReadJsonObjs (Abc_Frame_t *p)
 
int Abc_FrameReadCexPiNum (Abc_Frame_t *p)
 
int Abc_FrameReadCexRegNum (Abc_Frame_t *p)
 
int Abc_FrameReadCexPo (Abc_Frame_t *p)
 
int Abc_FrameReadCexFrame (Abc_Frame_t *p)
 
void Abc_FrameInputNdr (Abc_Frame_t *pAbc, void *pData)
 
void * Abc_FrameOutputNdr (Abc_Frame_t *pAbc)
 
int * Abc_FrameOutputNdrArray (Abc_Frame_t *pAbc)
 
void Abc_FrameSetLibLut (void *pLib)
 
void Abc_FrameSetLibBox (void *pLib)
 
void Abc_FrameSetLibGen (void *pLib)
 
void Abc_FrameSetLibGen2 (void *pLib)
 
void Abc_FrameSetLibSuper (void *pLib)
 
void Abc_FrameSetFlag (char *pFlag, char *pValue)
 
void Abc_FrameSetCex (Abc_Cex_t *pCex)
 
void Abc_FrameSetNFrames (int nFrames)
 
void Abc_FrameSetStatus (int Status)
 
void Abc_FrameSetManDsd (void *pMan)
 
void Abc_FrameSetManDsd2 (void *pMan)
 
void Abc_FrameSetInv (Vec_Int_t *vInv)
 
void Abc_FrameSetJsonStrs (Abc_Nam_t *pStrs)
 
void Abc_FrameSetJsonObjs (Vec_Wec_t *vObjs)
 
void Abc_FrameSetSignalNames (Vec_Ptr_t *vNames)
 
void Abc_FrameSetSpecName (char *pFileName)
 
int Abc_FrameIsBatchMode ()
 
void Abc_FrameSetBatchMode (int Mode)
 
int Abc_FrameIsBridgeMode ()
 
void Abc_FrameSetBridgeMode ()
 
char * Abc_FrameReadDrivingCell ()
 
float Abc_FrameReadMaxLoad ()
 
void Abc_FrameSetDrivingCell (char *pName)
 
void Abc_FrameSetMaxLoad (float Load)
 
int * Abc_FrameReadArrayMapping (Abc_Frame_t *pAbc)
 
void Abc_FrameSetArrayMapping (int *p)
 
int * Abc_FrameReadBoxes (Abc_Frame_t *pAbc)
 
void Abc_FrameSetBoxes (int *p)
 
int Abc_FrameIsFlagEnabled (char *pFlag)
 
Abc_Frame_tAbc_FrameAllocate ()
 
void Abc_FrameDeallocate (Abc_Frame_t *p)
 
void Abc_FrameRestart (Abc_Frame_t *p)
 
void Abc_FrameClearVerifStatus (Abc_Frame_t *p)
 
int Abc_FrameShowProgress (Abc_Frame_t *p)
 
Abc_Ntk_tAbc_FrameReadNtk (Abc_Frame_t *p)
 
Gia_Man_tAbc_FrameReadGia (Abc_Frame_t *p)
 
FILE * Abc_FrameReadOut (Abc_Frame_t *p)
 
FILE * Abc_FrameReadErr (Abc_Frame_t *p)
 
int Abc_FrameReadMode (Abc_Frame_t *p)
 
int Abc_FrameSetMode (Abc_Frame_t *p, int fNameMode)
 
void Abc_FrameSetCurrentNetwork (Abc_Frame_t *p, Abc_Ntk_t *pNtkNew)
 
void Abc_FrameSwapCurrentAndBackup (Abc_Frame_t *p)
 
void Abc_FrameReplaceCurrentNetwork (Abc_Frame_t *p, Abc_Ntk_t *pNtk)
 
void Abc_FrameUnmapAllNetworks (Abc_Frame_t *p)
 
void Abc_FrameDeleteAllNetworks (Abc_Frame_t *p)
 
void Abc_FrameSetGlobalFrame (Abc_Frame_t *p)
 
Abc_Frame_tAbc_FrameGetGlobalFrame ()
 
Abc_Frame_tAbc_FrameReadGlobalFrame ()
 
void Abc_FrameSetSave1 (void *pAig)
 
void Abc_FrameSetSave2 (void *pAig)
 
void * Abc_FrameReadSave1 ()
 
void * Abc_FrameReadSave2 ()
 
int Abc_FrameCheckPoConst (Abc_Frame_t *p, int iPoNum)
 
void Abc_FrameCheckPoConstTest (Abc_Frame_t *p)
 

Function Documentation

◆ Abc_FrameAllocate()

Abc_Frame_t * Abc_FrameAllocate ( )

Function*************************************************************

Synopsis []

Description []

SideEffects []

SeeAlso []

Definition at line 162 of file mainFrame.c.

163{
164 Abc_Frame_t * p;
165 extern void define_cube_size( int n );
166 extern void set_espresso_flags();
167 // allocate and clean
168 p = ABC_CALLOC( Abc_Frame_t, 1 );
169 // get version
170 p->sVersion = Abc_UtilsGetVersion( p );
171 // set streams
172 p->Err = stderr;
173 p->Out = stdout;
174 p->Hst = NULL;
175 p->Status = -1;
176 p->nFrames = -1;
177 // set the starting step
178 p->nSteps = 1;
179 p->fBatchMode = 0;
180 // networks to be used by choice
181 p->vStore = Vec_PtrAlloc( 16 );
182 p->vAbcObjIds = Vec_IntAlloc( 0 );
183 // initialize decomposition manager
184// define_cube_size(20);
185// set_espresso_flags();
186 // initialize the trace manager
187// Abc_HManStart();
188 p->vPlugInComBinPairs = Vec_PtrAlloc( 100 );
189 return p;
190}
#define ABC_CALLOC(type, num)
Definition abc_global.h:265
typedefABC_NAMESPACE_HEADER_START struct Abc_Frame_t_ Abc_Frame_t
INCLUDES ///.
Definition abcapis.h:38
void set_espresso_flags()
Definition cubehack.c:129
void define_cube_size(int n)
Definition cubehack.c:51
Cube * p
Definition exorList.c:222
ABC_DLL char * Abc_UtilsGetVersion(Abc_Frame_t *pAbc)
FUNCTION DEFINITIONS ///.
Definition mainUtils.c:52
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Abc_FrameCheckPoConst()

int Abc_FrameCheckPoConst ( Abc_Frame_t * p,
int iPoNum )

Function*************************************************************

Synopsis [Returns 0/1 if pNtkCur is an AIG and PO is 0/1; -1 otherwise.]

Description []

SideEffects []

SeeAlso []

Definition at line 734 of file mainFrame.c.

735{
736 Abc_Obj_t * pObj;
737 if ( p->pNtkCur == NULL )
738 return -1;
739 if ( !Abc_NtkIsStrash(p->pNtkCur) )
740 return -1;
741 if ( iPoNum < 0 || iPoNum >= Abc_NtkPoNum(p->pNtkCur) )
742 return -1;
743 pObj = Abc_NtkPo( p->pNtkCur, iPoNum );
744 if ( !Abc_AigNodeIsConst(Abc_ObjFanin0(pObj)) )
745 return -1;
746 return !Abc_ObjFaninC0(pObj);
747}
struct Abc_Obj_t_ Abc_Obj_t
Definition abc.h:116
Here is the caller graph for this function:

◆ Abc_FrameCheckPoConstTest()

void Abc_FrameCheckPoConstTest ( Abc_Frame_t * p)

Definition at line 748 of file mainFrame.c.

749{
750 Abc_Obj_t * pObj;
751 int i;
752 Abc_NtkForEachPo( p->pNtkCur, pObj, i )
753 printf( "%d = %d\n", i, Abc_FrameCheckPoConst(p, i) );
754}
#define Abc_NtkForEachPo(pNtk, pPo, i)
Definition abc.h:520
int Abc_FrameCheckPoConst(Abc_Frame_t *p, int iPoNum)
Definition mainFrame.c:734
Here is the call graph for this function:

◆ Abc_FrameClearVerifStatus()

void Abc_FrameClearVerifStatus ( Abc_Frame_t * p)

Function*************************************************************

Synopsis []

Description []

SideEffects []

SeeAlso []

Definition at line 292 of file mainFrame.c.

293{
294 p->nFrames = -1;
295 p->Status = -1;
296 ABC_FREE( p->pCex );
297}
#define ABC_FREE(obj)
Definition abc_global.h:267

◆ Abc_FrameDeallocate()

void Abc_FrameDeallocate ( Abc_Frame_t * p)

Function*************************************************************

Synopsis []

Description []

SideEffects []

SeeAlso []

Definition at line 204 of file mainFrame.c.

205{
206 extern void Rwt_ManGlobalStop();
207 extern void undefine_cube_size();
208// extern void Ivy_TruthManStop();
209// Abc_HManStop();
210// undefine_cube_size();
212// Ivy_TruthManStop();
213 if ( p->vAbcObjIds) Vec_IntFree( p->vAbcObjIds );
214 if ( p->vCexVec ) Vec_PtrFreeFree( p->vCexVec );
215 if ( p->vPoEquivs ) Vec_VecFree( (Vec_Vec_t *)p->vPoEquivs );
216 if ( p->vStatuses ) Vec_IntFree( p->vStatuses );
217 if ( p->pManDec ) Dec_ManStop( (Dec_Man_t *)p->pManDec );
218#ifdef ABC_USE_CUDD
219 if ( p->dd ) Extra_StopManager( p->dd );
220#endif
221 if ( p->vStore ) Vec_PtrFree( p->vStore );
222 if ( p->pSave1 ) Aig_ManStop( (Aig_Man_t *)p->pSave1 );
223 if ( p->pSave2 ) Aig_ManStop( (Aig_Man_t *)p->pSave2 );
224 if ( p->pSave3 ) Aig_ManStop( (Aig_Man_t *)p->pSave3 );
225 if ( p->pSave4 ) Aig_ManStop( (Aig_Man_t *)p->pSave4 );
226 if ( p->pManDsd ) If_DsdManFree( (If_DsdMan_t *)p->pManDsd, 0 );
227 if ( p->pManDsd2 ) If_DsdManFree( (If_DsdMan_t *)p->pManDsd2, 0 );
228 if ( p->pNtkBackup) Abc_NtkDelete( p->pNtkBackup );
229 if ( p->vPlugInComBinPairs )
230 {
231 char * pTemp;
232 int i;
233 Vec_PtrForEachEntry( char *, p->vPlugInComBinPairs, pTemp, i )
234 ABC_FREE( pTemp );
235 Vec_PtrFree( p->vPlugInComBinPairs );
236 }
237 Vec_IntFreeP( &p->vIndFlops );
238 Vec_PtrFreeP( &p->vLTLProperties_global );
239 if ( p->vSignalNames )
240 Vec_PtrFreeFree( p->vSignalNames );
241 ABC_FREE( p->pSpecName );
243 ABC_FREE( p->pDrivingCell );
244 ABC_FREE( p->pCex2 );
245 ABC_FREE( p->pCex );
246 Vec_IntFreeP( &p->pAbcWlcInv );
247 Abc_NamDeref( s_GlobalFrame->pJsonStrs );
248 Vec_WecFreeP( &s_GlobalFrame->vJsonObjs );
249 Ndr_Delete( s_GlobalFrame->pNdr );
250 ABC_FREE( s_GlobalFrame->pNdrArray );
251 Abc_FrameStoreStop( s_GlobalFrame );
252
253 Gia_ManStopP( &p->pGiaMiniAig );
254 Gia_ManStopP( &p->pGiaMiniLut );
255 Vec_IntFreeP( &p->vCopyMiniAig );
256 Vec_IntFreeP( &p->vCopyMiniLut );
257 ABC_FREE( p->pArray );
258 ABC_FREE( p->pBoxes );
259
260
261 ABC_FREE( p );
262 s_GlobalFrame = NULL;
263}
ABC_DLL void Abc_NtkDelete(Abc_Ntk_t *pNtk)
Definition abcNtk.c:1421
void Aig_ManStop(Aig_Man_t *p)
Definition aigMan.c:187
typedefABC_NAMESPACE_HEADER_START struct Aig_Man_t_ Aig_Man_t
INCLUDES ///.
Definition aig.h:50
void undefine_cube_size()
Definition cubehack.c:111
struct Dec_Man_t_ Dec_Man_t
Definition dec.h:79
void Dec_ManStop(Dec_Man_t *p)
Definition decMan.c:70
void Extra_StopManager(DdManager *dd)
void Gia_ManStopP(Gia_Man_t **p)
Definition giaMan.c:224
struct If_DsdMan_t_ If_DsdMan_t
Definition if.h:84
void If_DsdManFree(If_DsdMan_t *p, int fVerbose)
Definition ifDsd.c:333
void Abc_FrameDeleteAllNetworks(Abc_Frame_t *p)
Definition mainFrame.c:596
ABC_DLL void Abc_FrameStoreStop(Abc_Frame_t *pAbc)
Definition mainUtils.c:303
void Rwt_ManGlobalStop()
Definition rwtMan.c:68
void Abc_NamDeref(Abc_Nam_t *p)
Definition utilNam.c:212
#define Vec_PtrForEachEntry(Type, vVec, pEntry, i)
MACRO DEFINITIONS ///.
Definition vecPtr.h:55
typedefABC_NAMESPACE_HEADER_START struct Vec_Vec_t_ Vec_Vec_t
INCLUDES ///.
Definition vecVec.h:42
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Abc_FrameDeleteAllNetworks()

void Abc_FrameDeleteAllNetworks ( Abc_Frame_t * p)

Function*************************************************************

Synopsis []

Description []

SideEffects []

SeeAlso []

Definition at line 596 of file mainFrame.c.

597{
598 Abc_Ntk_t * pNtk, * pNtk2;
599 // delete all the currently saved networks
600 for ( pNtk = p->pNtkCur,
601 pNtk2 = pNtk? Abc_NtkBackup(pNtk): NULL;
602 pNtk;
603 pNtk = pNtk2,
604 pNtk2 = pNtk? Abc_NtkBackup(pNtk): NULL )
605 Abc_NtkDelete( pNtk );
606 // set the current network empty
607 p->pNtkCur = NULL;
608// fprintf( p->Out, "All networks have been deleted.\n" );
609 Gia_ManStopP( &p->pGia );
610 Gia_ManStopP( &p->pGia2 );
611 Gia_ManStopP( &p->pGiaBest );
612 Gia_ManStopP( &p->pGiaBest2 );
613 Gia_ManStopP( &p->pGiaSaved );
614}
struct Abc_Ntk_t_ Abc_Ntk_t
Definition abc.h:115
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Abc_FrameGetGlobalFrame()

Abc_Frame_t * Abc_FrameGetGlobalFrame ( )

Function*************************************************************

Synopsis []

Description []

SideEffects []

SeeAlso []

Definition at line 643 of file mainFrame.c.

644{
645 if ( s_GlobalFrame == 0 )
646 {
647 // start the framework
648 s_GlobalFrame = Abc_FrameAllocate();
649 // perform initializations
650 Abc_FrameInit( s_GlobalFrame );
651 }
652 return s_GlobalFrame;
653}
Abc_Frame_t * Abc_FrameAllocate()
Definition mainFrame.c:162
void Abc_FrameInit(Abc_Frame_t *pAbc)
FUNCTION DEFINITIONS ///.
Definition mainInit.c:106
Here is the call graph for this function:

◆ Abc_FrameInputNdr()

void Abc_FrameInputNdr ( Abc_Frame_t * pAbc,
void * pData )

Definition at line 89 of file mainFrame.c.

89{ Ndr_Delete(s_GlobalFrame->pNdr); s_GlobalFrame->pNdr = pData; }
Here is the caller graph for this function:

◆ Abc_FrameIsBatchMode()

int Abc_FrameIsBatchMode ( )

Definition at line 110 of file mainFrame.c.

110{ return s_GlobalFrame ? s_GlobalFrame->fBatchMode : 0; }
Here is the caller graph for this function:

◆ Abc_FrameIsBridgeMode()

int Abc_FrameIsBridgeMode ( )

Definition at line 113 of file mainFrame.c.

113{ return s_GlobalFrame ? s_GlobalFrame->fBridgeMode : 0; }
Here is the caller graph for this function:

◆ Abc_FrameIsFlagEnabled()

int Abc_FrameIsFlagEnabled ( char * pFlag)

Function*************************************************************

Synopsis [Returns 1 if the flag is enabled without value or with value 1.]

Description []

SideEffects []

SeeAlso []

Definition at line 138 of file mainFrame.c.

139{
140 char * pValue;
141 // if flag is not defined, it is not enabled
142 pValue = Abc_FrameReadFlag( pFlag );
143 if ( pValue == NULL )
144 return 0;
145 // if flag is defined but value is not empty (no parameter) or "1", it is not enabled
146 if ( strcmp(pValue, "") && strcmp(pValue, "1") )
147 return 0;
148 return 1;
149}
char * Abc_FrameReadFlag(char *pFlag)
Definition mainFrame.c:69
int strcmp()
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Abc_FrameOutputNdr()

void * Abc_FrameOutputNdr ( Abc_Frame_t * pAbc)

Definition at line 90 of file mainFrame.c.

90{ void * pData = s_GlobalFrame->pNdr; s_GlobalFrame->pNdr = NULL; return pData; }

◆ Abc_FrameOutputNdrArray()

int * Abc_FrameOutputNdrArray ( Abc_Frame_t * pAbc)

Definition at line 91 of file mainFrame.c.

91{ int * pArray = s_GlobalFrame->pNdrArray; s_GlobalFrame->pNdrArray = NULL; return pArray; }

◆ Abc_FrameReadArrayMapping()

int * Abc_FrameReadArrayMapping ( Abc_Frame_t * pAbc)

Definition at line 121 of file mainFrame.c.

121{ return pAbc->pArray; }

◆ Abc_FrameReadBmcFrames()

int Abc_FrameReadBmcFrames ( Abc_Frame_t * p)

Definition at line 73 of file mainFrame.c.

73{ return s_GlobalFrame->nFrames; }

◆ Abc_FrameReadBoxes()

int * Abc_FrameReadBoxes ( Abc_Frame_t * pAbc)

Definition at line 124 of file mainFrame.c.

124{ return pAbc->pBoxes; }

◆ Abc_FrameReadCex()

void * Abc_FrameReadCex ( Abc_Frame_t * p)

Definition at line 75 of file mainFrame.c.

75{ return s_GlobalFrame->pCex; }
Here is the caller graph for this function:

◆ Abc_FrameReadCexFrame()

int Abc_FrameReadCexFrame ( Abc_Frame_t * p)

Definition at line 87 of file mainFrame.c.

87{ return s_GlobalFrame->pCex->iFrame; }

◆ Abc_FrameReadCexPiNum()

int Abc_FrameReadCexPiNum ( Abc_Frame_t * p)

Definition at line 84 of file mainFrame.c.

84{ return s_GlobalFrame->pCex->nPis; }

◆ Abc_FrameReadCexPo()

int Abc_FrameReadCexPo ( Abc_Frame_t * p)

Definition at line 86 of file mainFrame.c.

86{ return s_GlobalFrame->pCex->iPo; }

◆ Abc_FrameReadCexRegNum()

int Abc_FrameReadCexRegNum ( Abc_Frame_t * p)

Definition at line 85 of file mainFrame.c.

85{ return s_GlobalFrame->pCex->nRegs; }

◆ Abc_FrameReadCexVec()

Vec_Ptr_t * Abc_FrameReadCexVec ( Abc_Frame_t * p)

Definition at line 76 of file mainFrame.c.

76{ return s_GlobalFrame->vCexVec; }
Here is the caller graph for this function:

◆ Abc_FrameReadDrivingCell()

char * Abc_FrameReadDrivingCell ( )

Definition at line 116 of file mainFrame.c.

116{ return s_GlobalFrame->pDrivingCell; }
Here is the caller graph for this function:

◆ Abc_FrameReadErr()

FILE * Abc_FrameReadErr ( Abc_Frame_t * p)

Function*************************************************************

Synopsis []

Description []

SideEffects []

SeeAlso []

Definition at line 375 of file mainFrame.c.

376{
377 return p->Err;
378}
Here is the caller graph for this function:

◆ Abc_FrameReadFlag()

char * Abc_FrameReadFlag ( char * pFlag)

Definition at line 69 of file mainFrame.c.

69{ return Cmd_FlagReadByName( s_GlobalFrame, pFlag ); }
char * Cmd_FlagReadByName(Abc_Frame_t *pAbc, char *flag)
DECLARATIONS ///.
Definition cmdFlag.c:47
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Abc_FrameReadGia()

Gia_Man_t * Abc_FrameReadGia ( Abc_Frame_t * p)

Function*************************************************************

Synopsis []

Description []

SideEffects []

SeeAlso []

Definition at line 343 of file mainFrame.c.

344{
345 return p->pGia;
346}
Here is the caller graph for this function:

◆ Abc_FrameReadGlobalFrame()

Abc_Frame_t * Abc_FrameReadGlobalFrame ( )

Function*************************************************************

Synopsis []

Description []

SideEffects []

SeeAlso []

Definition at line 666 of file mainFrame.c.

667{
668 return s_GlobalFrame;
669}
Here is the caller graph for this function:

◆ Abc_FrameReadJsonObjs()

Vec_Wec_t * Abc_FrameReadJsonObjs ( Abc_Frame_t * p)

Definition at line 82 of file mainFrame.c.

82{ return s_GlobalFrame->vJsonObjs; }

◆ Abc_FrameReadJsonStrs()

Abc_Nam_t * Abc_FrameReadJsonStrs ( Abc_Frame_t * p)

Definition at line 81 of file mainFrame.c.

81{ return s_GlobalFrame->pJsonStrs; }

◆ Abc_FrameReadLibBox()

void * Abc_FrameReadLibBox ( )

Definition at line 58 of file mainFrame.c.

58{ return s_GlobalFrame->pLibBox; }
Here is the caller graph for this function:

◆ Abc_FrameReadLibGen()

void * Abc_FrameReadLibGen ( )

Definition at line 59 of file mainFrame.c.

59{ return s_GlobalFrame->pLibGen; }
Here is the caller graph for this function:

◆ Abc_FrameReadLibGen2()

void * Abc_FrameReadLibGen2 ( )

Definition at line 60 of file mainFrame.c.

60{ return s_GlobalFrame->pLibGen2; }
Here is the caller graph for this function:

◆ Abc_FrameReadLibLut()

void * Abc_FrameReadLibLut ( )

Definition at line 57 of file mainFrame.c.

57{ return s_GlobalFrame->pLibLut; }
Here is the caller graph for this function:

◆ Abc_FrameReadLibScl()

void * Abc_FrameReadLibScl ( )

Definition at line 62 of file mainFrame.c.

62{ return s_GlobalFrame->pLibScl; }
Here is the caller graph for this function:

◆ Abc_FrameReadLibSuper()

void * Abc_FrameReadLibSuper ( )

Definition at line 61 of file mainFrame.c.

61{ return s_GlobalFrame->pLibSuper; }
Here is the caller graph for this function:

◆ Abc_FrameReadManDec()

void * Abc_FrameReadManDec ( )

Definition at line 66 of file mainFrame.c.

66{ if ( s_GlobalFrame->pManDec == NULL ) s_GlobalFrame->pManDec = Dec_ManStart(); return s_GlobalFrame->pManDec; }
Dec_Man_t * Dec_ManStart()
DECLARATIONS ///.
Definition decMan.c:45
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Abc_FrameReadManDsd()

void * Abc_FrameReadManDsd ( )

Definition at line 67 of file mainFrame.c.

67{ return s_GlobalFrame->pManDsd; }
Here is the caller graph for this function:

◆ Abc_FrameReadManDsd2()

void * Abc_FrameReadManDsd2 ( )

Definition at line 68 of file mainFrame.c.

68{ return s_GlobalFrame->pManDsd2; }
Here is the caller graph for this function:

◆ Abc_FrameReadMaxLoad()

float Abc_FrameReadMaxLoad ( )

Definition at line 117 of file mainFrame.c.

117{ return s_GlobalFrame->MaxLoad; }
Here is the caller graph for this function:

◆ Abc_FrameReadMode()

int Abc_FrameReadMode ( Abc_Frame_t * p)

Function*************************************************************

Synopsis []

Description []

SideEffects []

SeeAlso []

Definition at line 391 of file mainFrame.c.

392{
393 int fShortNames;
394 char * pValue;
395 pValue = Cmd_FlagReadByName( p, "namemode" );
396 if ( pValue == NULL )
397 fShortNames = 0;
398 else
399 fShortNames = atoi(pValue);
400 return fShortNames;
401}
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Abc_FrameReadNtk()

Abc_Ntk_t * Abc_FrameReadNtk ( Abc_Frame_t * p)

Function*************************************************************

Synopsis []

Description []

SideEffects []

SeeAlso []

Definition at line 327 of file mainFrame.c.

328{
329 return p->pNtkCur;
330}
Here is the caller graph for this function:

◆ Abc_FrameReadObjIds()

Vec_Int_t * Abc_FrameReadObjIds ( Abc_Frame_t * p)

Definition at line 80 of file mainFrame.c.

80{ return s_GlobalFrame->vAbcObjIds; }

◆ Abc_FrameReadOut()

FILE * Abc_FrameReadOut ( Abc_Frame_t * p)

Function*************************************************************

Synopsis []

Description []

SideEffects []

SeeAlso []

Definition at line 359 of file mainFrame.c.

360{
361 return p->Out;
362}
Here is the caller graph for this function:

◆ Abc_FrameReadPoEquivs()

Vec_Ptr_t * Abc_FrameReadPoEquivs ( Abc_Frame_t * p)

Definition at line 78 of file mainFrame.c.

78{ return s_GlobalFrame->vPoEquivs; }

◆ Abc_FrameReadPoStatuses()

Vec_Int_t * Abc_FrameReadPoStatuses ( Abc_Frame_t * p)

Definition at line 79 of file mainFrame.c.

79{ return s_GlobalFrame->vStatuses; }
Here is the caller graph for this function:

◆ Abc_FrameReadProbStatus()

int Abc_FrameReadProbStatus ( Abc_Frame_t * p)

Definition at line 74 of file mainFrame.c.

74{ return s_GlobalFrame->Status; }
Here is the caller graph for this function:

◆ Abc_FrameReadSave1()

void * Abc_FrameReadSave1 ( )

Function*************************************************************

Synopsis []

Description []

SideEffects []

SeeAlso []

Definition at line 720 of file mainFrame.c.

720{ void * pAig = Abc_FrameGetGlobalFrame()->pSave1; Abc_FrameGetGlobalFrame()->pSave1 = NULL; return pAig; }
Abc_Frame_t * Abc_FrameGetGlobalFrame()
Definition mainFrame.c:643
Here is the call graph for this function:

◆ Abc_FrameReadSave2()

void * Abc_FrameReadSave2 ( )

Definition at line 721 of file mainFrame.c.

721{ void * pAig = Abc_FrameGetGlobalFrame()->pSave2; Abc_FrameGetGlobalFrame()->pSave2 = NULL; return pAig; }
Here is the call graph for this function:

◆ Abc_FrameReadSignalNames()

Vec_Ptr_t * Abc_FrameReadSignalNames ( )

Definition at line 70 of file mainFrame.c.

70{ return s_GlobalFrame->vSignalNames; }
Here is the caller graph for this function:

◆ Abc_FrameReadSpecName()

char * Abc_FrameReadSpecName ( )

Definition at line 71 of file mainFrame.c.

71{ return s_GlobalFrame->pSpecName; }
Here is the caller graph for this function:

◆ Abc_FrameReadStatusVec()

Vec_Int_t * Abc_FrameReadStatusVec ( Abc_Frame_t * p)

Definition at line 77 of file mainFrame.c.

77{ return s_GlobalFrame->vStatuses; }

◆ Abc_FrameReadStore()

Vec_Ptr_t * Abc_FrameReadStore ( )

FUNCTION DEFINITIONS ///.

Function*************************************************************

Synopsis [APIs to access parameters in the flobal frame.]

Description []

SideEffects []

SeeAlso []

Definition at line 55 of file mainFrame.c.

55{ return s_GlobalFrame->vStore; }
Here is the caller graph for this function:

◆ Abc_FrameReadStoreSize()

int Abc_FrameReadStoreSize ( )

Definition at line 56 of file mainFrame.c.

56{ return Vec_PtrSize(s_GlobalFrame->vStore); }
Here is the caller graph for this function:

◆ Abc_FrameReplaceCurrentNetwork()

void Abc_FrameReplaceCurrentNetwork ( Abc_Frame_t * p,
Abc_Ntk_t * pNtk )

Function*************************************************************

Synopsis [Replaces the current network by the given one.]

Description [This procedure does not modify the stack of saved networks.]

SideEffects []

SeeAlso []

Definition at line 538 of file mainFrame.c.

539{
540 if ( pNtk == NULL )
541 return;
542
543 if ( Abc_NtkPoNum(pNtk) == 0 )
544 Abc_Print( 0, "The current network has no primary outputs. Some commands may not work correctly.\n" );
545
546 // transfer the parameters to the new network
547 if ( p->pNtkCur && Abc_FrameIsFlagEnabled( "backup" ) )
548 {
549 Abc_NtkSetBackup( pNtk, Abc_NtkBackup(p->pNtkCur) );
550 Abc_NtkSetStep( pNtk, Abc_NtkStep(p->pNtkCur) );
551 // delete the current network
552 Abc_NtkDelete( p->pNtkCur );
553 }
554 else
555 {
556 Abc_NtkSetBackup( pNtk, NULL );
557 Abc_NtkSetStep( pNtk, ++p->nSteps );
558 // delete the current network if present but backup is disabled
559 if ( p->pNtkCur )
560 Abc_NtkDelete( p->pNtkCur );
561 }
562 // set the new current network
563 p->pNtkCur = pNtk;
564}
ABC_DLL int Abc_FrameIsFlagEnabled(char *pFlag)
Definition mainFrame.c:138
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Abc_FrameRestart()

void Abc_FrameRestart ( Abc_Frame_t * p)

Function*************************************************************

Synopsis []

Description []

SideEffects []

SeeAlso []

Definition at line 277 of file mainFrame.c.

278{
279}

◆ Abc_FrameSetArrayMapping()

void Abc_FrameSetArrayMapping ( int * p)

Definition at line 122 of file mainFrame.c.

122{ ABC_FREE( s_GlobalFrame->pArray ); s_GlobalFrame->pArray = p; }

◆ Abc_FrameSetBatchMode()

void Abc_FrameSetBatchMode ( int Mode)

Definition at line 111 of file mainFrame.c.

111{ if ( s_GlobalFrame ) s_GlobalFrame->fBatchMode = Mode; }
Here is the caller graph for this function:

◆ Abc_FrameSetBoxes()

void Abc_FrameSetBoxes ( int * p)

Definition at line 125 of file mainFrame.c.

125{ ABC_FREE( s_GlobalFrame->pBoxes ); s_GlobalFrame->pBoxes = p; }
Here is the caller graph for this function:

◆ Abc_FrameSetBridgeMode()

void Abc_FrameSetBridgeMode ( )

Definition at line 114 of file mainFrame.c.

114{ if ( s_GlobalFrame ) s_GlobalFrame->fBridgeMode = 1; }
Here is the caller graph for this function:

◆ Abc_FrameSetCex()

void Abc_FrameSetCex ( Abc_Cex_t * pCex)

Definition at line 99 of file mainFrame.c.

99{ ABC_FREE( s_GlobalFrame->pCex ); s_GlobalFrame->pCex = pCex; }
Here is the caller graph for this function:

◆ Abc_FrameSetCurrentNetwork()

void Abc_FrameSetCurrentNetwork ( Abc_Frame_t * p,
Abc_Ntk_t * pNtkNew )

Function*************************************************************

Synopsis [Sets the given network to be the current one.]

Description [Takes the network and makes it the current network. The previous current network is attached to the given network as a backup copy. In the stack of backup networks contains too many networks (defined by the paramater "savesteps"), the bottom most network is deleted.]

SideEffects []

SeeAlso []

Definition at line 441 of file mainFrame.c.

442{
443 Abc_Ntk_t * pNtk, * pNtk2, * pNtk3;
444 int nNetsPresent;
445 int nNetsToSave;
446 char * pValue;
447
448 if ( p->pNtkCur == pNtkNew )
449 return;
450
451 // link it to the previous network
452 Abc_NtkSetBackup( pNtkNew, p->pNtkCur );
453 // set the step of this network
454 Abc_NtkSetStep( pNtkNew, ++p->nSteps );
455 // set this network to be the current network
456 p->pNtkCur = pNtkNew;
457
458 // remove any extra network that may happen to be in the stack
459 pValue = Cmd_FlagReadByName( p, "savesteps" );
460 // if the value of steps to save is not set, assume 1-level undo
461 if ( pValue == NULL )
462 nNetsToSave = 1;
463 else
464 nNetsToSave = atoi(pValue);
465
466 // count the network, remember the last one, and the one before the last one
467 nNetsPresent = 0;
468 pNtk2 = pNtk3 = NULL;
469 for ( pNtk = p->pNtkCur; pNtk; pNtk = Abc_NtkBackup(pNtk2) )
470 {
471 nNetsPresent++;
472 pNtk3 = pNtk2;
473 pNtk2 = pNtk;
474 }
475
476 // remove the earliest backup network if it is more steps away than we store
477 if ( nNetsPresent - 1 > nNetsToSave )
478 { // delete the last network
479 Abc_NtkDelete( pNtk2 );
480 // clean the pointer of the network before the last one
481 Abc_NtkSetBackup( pNtk3, NULL );
482 }
483}
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Abc_FrameSetDrivingCell()

void Abc_FrameSetDrivingCell ( char * pName)

Definition at line 118 of file mainFrame.c.

118{ ABC_FREE(s_GlobalFrame->pDrivingCell); s_GlobalFrame->pDrivingCell = pName; }
Here is the caller graph for this function:

◆ Abc_FrameSetFlag()

void Abc_FrameSetFlag ( char * pFlag,
char * pValue )

Definition at line 98 of file mainFrame.c.

98{ Cmd_FlagUpdateValue( s_GlobalFrame, pFlag, pValue ); }
void Cmd_FlagUpdateValue(Abc_Frame_t *pAbc, const char *key, char *value)
Definition cmdFlag.c:65
Here is the call graph for this function:

◆ Abc_FrameSetGlobalFrame()

void Abc_FrameSetGlobalFrame ( Abc_Frame_t * p)

Function*************************************************************

Synopsis []

Description []

SideEffects []

SeeAlso []

Definition at line 627 of file mainFrame.c.

628{
629 s_GlobalFrame = p;
630}

◆ Abc_FrameSetInv()

void Abc_FrameSetInv ( Vec_Int_t * vInv)

Definition at line 104 of file mainFrame.c.

104{ Vec_IntFreeP(&s_GlobalFrame->pAbcWlcInv); s_GlobalFrame->pAbcWlcInv = vInv; }
Here is the caller graph for this function:

◆ Abc_FrameSetJsonObjs()

void Abc_FrameSetJsonObjs ( Vec_Wec_t * vObjs)

Definition at line 106 of file mainFrame.c.

106{ Vec_WecFreeP(&s_GlobalFrame->vJsonObjs ); s_GlobalFrame->vJsonObjs = vObjs; }

◆ Abc_FrameSetJsonStrs()

void Abc_FrameSetJsonStrs ( Abc_Nam_t * pStrs)

Definition at line 105 of file mainFrame.c.

105{ Abc_NamDeref( s_GlobalFrame->pJsonStrs ); s_GlobalFrame->pJsonStrs = pStrs; }
Here is the call graph for this function:

◆ Abc_FrameSetLibBox()

void Abc_FrameSetLibBox ( void * pLib)

Definition at line 94 of file mainFrame.c.

94{ s_GlobalFrame->pLibBox = pLib; }
Here is the caller graph for this function:

◆ Abc_FrameSetLibGen()

void Abc_FrameSetLibGen ( void * pLib)

Definition at line 95 of file mainFrame.c.

95{ s_GlobalFrame->pLibGen = pLib; }
Here is the caller graph for this function:

◆ Abc_FrameSetLibGen2()

void Abc_FrameSetLibGen2 ( void * pLib)

Definition at line 96 of file mainFrame.c.

96{ s_GlobalFrame->pLibGen2 = pLib; }
Here is the caller graph for this function:

◆ Abc_FrameSetLibLut()

void Abc_FrameSetLibLut ( void * pLib)

Definition at line 93 of file mainFrame.c.

93{ s_GlobalFrame->pLibLut = pLib; }
Here is the caller graph for this function:

◆ Abc_FrameSetLibSuper()

void Abc_FrameSetLibSuper ( void * pLib)

Definition at line 97 of file mainFrame.c.

97{ s_GlobalFrame->pLibSuper = pLib; }
Here is the caller graph for this function:

◆ Abc_FrameSetManDsd()

void Abc_FrameSetManDsd ( void * pMan)

Definition at line 102 of file mainFrame.c.

102{ if (s_GlobalFrame->pManDsd && s_GlobalFrame->pManDsd != pMan) If_DsdManFree((If_DsdMan_t *)s_GlobalFrame->pManDsd, 0); s_GlobalFrame->pManDsd = pMan; }
Here is the call graph for this function:

◆ Abc_FrameSetManDsd2()

void Abc_FrameSetManDsd2 ( void * pMan)

Definition at line 103 of file mainFrame.c.

103{ if (s_GlobalFrame->pManDsd2 && s_GlobalFrame->pManDsd2 != pMan) If_DsdManFree((If_DsdMan_t *)s_GlobalFrame->pManDsd2, 0); s_GlobalFrame->pManDsd2 = pMan; }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Abc_FrameSetMaxLoad()

void Abc_FrameSetMaxLoad ( float Load)

Definition at line 119 of file mainFrame.c.

119{ s_GlobalFrame->MaxLoad = Load; }
Here is the caller graph for this function:

◆ Abc_FrameSetMode()

int Abc_FrameSetMode ( Abc_Frame_t * p,
int fNameMode )

Function*************************************************************

Synopsis []

Description []

SideEffects []

SeeAlso []

Definition at line 414 of file mainFrame.c.

415{
416 char Buffer[2];
417 int fNameModeOld;
418 fNameModeOld = Abc_FrameReadMode( p );
419 Buffer[0] = '0' + fNameMode;
420 Buffer[1] = 0;
421 Cmd_FlagUpdateValue( p, "namemode", (char *)Buffer );
422 return fNameModeOld;
423}
int Abc_FrameReadMode(Abc_Frame_t *p)
Definition mainFrame.c:391
Here is the call graph for this function:

◆ Abc_FrameSetNFrames()

void Abc_FrameSetNFrames ( int nFrames)

Definition at line 100 of file mainFrame.c.

100{ ABC_FREE( s_GlobalFrame->pCex ); s_GlobalFrame->nFrames = nFrames; }
Here is the caller graph for this function:

◆ Abc_FrameSetSave1()

void Abc_FrameSetSave1 ( void * pAig)

Function*************************************************************

Synopsis []

Description []

SideEffects []

SeeAlso []

Definition at line 682 of file mainFrame.c.

683{
685 if ( pFrame->pSave1 )
686 Aig_ManStop( (Aig_Man_t *)pFrame->pSave1 );
687 pFrame->pSave1 = pAig;
688}
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Abc_FrameSetSave2()

void Abc_FrameSetSave2 ( void * pAig)

Function*************************************************************

Synopsis []

Description []

SideEffects []

SeeAlso []

Definition at line 701 of file mainFrame.c.

702{
704 if ( pFrame->pSave2 )
705 Aig_ManStop( (Aig_Man_t *)pFrame->pSave2 );
706 pFrame->pSave2 = pAig;
707}
Here is the call graph for this function:

◆ Abc_FrameSetSignalNames()

void Abc_FrameSetSignalNames ( Vec_Ptr_t * vNames)

Definition at line 107 of file mainFrame.c.

107{ if ( s_GlobalFrame->vSignalNames ) Vec_PtrFreeFree( s_GlobalFrame->vSignalNames ); s_GlobalFrame->vSignalNames = vNames; }

◆ Abc_FrameSetSpecName()

void Abc_FrameSetSpecName ( char * pFileName)

Definition at line 108 of file mainFrame.c.

108{ ABC_FREE( s_GlobalFrame->pSpecName ); s_GlobalFrame->pSpecName = pFileName; }

◆ Abc_FrameSetStatus()

void Abc_FrameSetStatus ( int Status)

Definition at line 101 of file mainFrame.c.

101{ ABC_FREE( s_GlobalFrame->pCex ); s_GlobalFrame->Status = Status; }
Here is the caller graph for this function:

◆ Abc_FrameShowProgress()

int Abc_FrameShowProgress ( Abc_Frame_t * p)

Function*************************************************************

Synopsis []

Description []

SideEffects []

SeeAlso []

Definition at line 310 of file mainFrame.c.

311{
312 return Abc_FrameIsFlagEnabled( "progressbar" );
313}
int Abc_FrameIsFlagEnabled(char *pFlag)
Definition mainFrame.c:138
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Abc_FrameSwapCurrentAndBackup()

void Abc_FrameSwapCurrentAndBackup ( Abc_Frame_t * p)

Function*************************************************************

Synopsis [This procedure swaps the current and the backup network.]

Description []

SideEffects []

SeeAlso []

Definition at line 496 of file mainFrame.c.

497{
498 Abc_Ntk_t * pNtkCur, * pNtkBack, * pNtkBack2;
499 int iStepCur, iStepBack;
500
501 pNtkCur = p->pNtkCur;
502 pNtkBack = Abc_NtkBackup( pNtkCur );
503 iStepCur = Abc_NtkStep ( pNtkCur );
504
505 // if there is no backup nothing to reset
506 if ( pNtkBack == NULL )
507 return;
508
509 // remember the backup of the backup
510 pNtkBack2 = Abc_NtkBackup( pNtkBack );
511 iStepBack = Abc_NtkStep ( pNtkBack );
512
513 // set pNtkCur to be the next after the backup's backup
514 Abc_NtkSetBackup( pNtkCur, pNtkBack2 );
515 Abc_NtkSetStep ( pNtkCur, iStepBack );
516
517 // set pNtkCur to be the next after the backup
518 Abc_NtkSetBackup( pNtkBack, pNtkCur );
519 Abc_NtkSetStep ( pNtkBack, iStepCur );
520
521 // set the current network
522 p->pNtkCur = pNtkBack;
523}
Here is the caller graph for this function:

◆ Abc_FrameUnmapAllNetworks()

void Abc_FrameUnmapAllNetworks ( Abc_Frame_t * p)

Function*************************************************************

Synopsis [Removes library binding of all currently stored networks.]

Description [This procedure is called when the library is freed.]

SideEffects []

SeeAlso []

Definition at line 577 of file mainFrame.c.

578{
579 Abc_Ntk_t * pNtk;
580 for ( pNtk = p->pNtkCur; pNtk; pNtk = Abc_NtkBackup(pNtk) )
581 if ( Abc_NtkHasMapping(pNtk) )
582 Abc_NtkMapToSop( pNtk );
583}
ABC_DLL int Abc_NtkMapToSop(Abc_Ntk_t *pNtk)
Definition abcFunc.c:1228
Here is the call graph for this function:
Here is the caller graph for this function: