ABC: A System for Sequential Synthesis and Verification
 
Loading...
Searching...
No Matches
abcapis_old.h File Reference

Go to the source code of this file.

Functions

void Abc_Start ()
 INCLUDES ///.
 
void Abc_Stop ()
 
void * Abc_FrameGetGlobalFrame ()
 
int Cmd_CommandExecute (void *pAbc, char *pCommandLine)
 
void Abc_NtkInputMiniAig (void *pAbc, void *pMiniAig)
 
void * Abc_NtkOutputMiniAig (void *pAbc)
 
void Abc_FrameGiaInputMiniAig (void *pAbc, void *p)
 
void * Abc_FrameGiaOutputMiniAig (void *pAbc)
 
void Abc_NtkSetFlopNum (void *pAbc, int nFlops)
 
void Abc_FrameGiaInputMiniLut (void *pAbc, void *pMiniLut)
 
void * Abc_FrameGiaOutputMiniLut (void *pAbc)
 
void Abc_NtkSetCiArrivalTime (void *pAbc, int iCi, float Rise, float Fall)
 
void Abc_NtkSetCoRequiredTime (void *pAbc, int iCo, float Rise, float Fall)
 
void Abc_NtkSetAndGateDelay (void *pAbc, float Delay)
 
int * Abc_NtkOutputMiniMapping (void *pAbc)
 
void Abc_NtkPrintMiniMapping (int *pArray)
 
int Abc_FrameReadProbStatus (void *pAbc)
 
void * Abc_FrameReadCex (void *pAbc)
 

Function Documentation

◆ Abc_FrameGetGlobalFrame()

void * Abc_FrameGetGlobalFrame ( )
extern

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

◆ Abc_FrameGiaInputMiniAig()

void Abc_FrameGiaInputMiniAig ( void * pAbc,
void * p )
extern

◆ Abc_FrameGiaInputMiniLut()

void Abc_FrameGiaInputMiniLut ( void * pAbc,
void * pMiniLut )
extern

◆ Abc_FrameGiaOutputMiniAig()

void * Abc_FrameGiaOutputMiniAig ( void * pAbc)
extern

◆ Abc_FrameGiaOutputMiniLut()

void * Abc_FrameGiaOutputMiniLut ( void * pAbc)
extern

◆ Abc_FrameReadCex()

void * Abc_FrameReadCex ( void * pAbc)
extern

◆ Abc_FrameReadProbStatus()

int Abc_FrameReadProbStatus ( void * pAbc)
extern

◆ Abc_NtkInputMiniAig()

void Abc_NtkInputMiniAig ( void * pAbc,
void * pMiniAig )
extern

◆ Abc_NtkOutputMiniAig()

void * Abc_NtkOutputMiniAig ( void * pAbc)
extern

◆ Abc_NtkOutputMiniMapping()

int * Abc_NtkOutputMiniMapping ( void * pAbc)
extern

◆ Abc_NtkPrintMiniMapping()

void Abc_NtkPrintMiniMapping ( int * pArray)
extern

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

Synopsis [Prints mapped network represented in mini-mapped format.]

Description []

SideEffects []

SeeAlso []

Definition at line 1030 of file abcMap.c.

1031{
1032 int nCis, nCos, nNodes, nFlops;
1033 int i, k, nLeaves, Pos = 4;
1034 char * pBuffer, * pName;
1035 nCis = pArray[0];
1036 nCos = pArray[1];
1037 nNodes = pArray[2];
1038 nFlops = pArray[3];
1039 printf( "Mapped network has %d CIs, %d COs, %d gates, and %d flops.\n", nCis, nCos, nNodes, nFlops );
1040 printf( "The first %d object IDs (from 0 to %d) are reserved for the CIs.\n", nCis, nCis - 1 );
1041 for ( i = 0; i < nNodes; i++ )
1042 {
1043 nLeaves = pArray[Pos++];
1044 printf( "Node %d has %d fanins {", nCis + i, nLeaves );
1045 for ( k = 0; k < nLeaves; k++ )
1046 printf( " %d", pArray[Pos++] );
1047 printf( " }\n" );
1048 }
1049 for ( i = 0; i < nCos; i++ )
1050 printf( "CO %d is driven by node %d\n", i, pArray[Pos++] );
1051 pBuffer = (char *)(pArray + Pos);
1052 for ( i = 0; i < nNodes; i++ )
1053 {
1054 pName = pBuffer;
1055 pBuffer += strlen(pName) + 1;
1056 printf( "Node %d has gate \"%s\"\n", nCis + i, pName );
1057 }
1058 for ( i = 0; i < nCis; i++ )
1059 {
1060 pName = pBuffer;
1061 pBuffer += strlen(pName) + 1;
1062 printf( "CI %d has name \"%s\"\n", i, pName );
1063 }
1064 for ( i = 0; i < nCos; i++ )
1065 {
1066 pName = pBuffer;
1067 pBuffer += strlen(pName) + 1;
1068 printf( "CO %d has name \"%s\"\n", i, pName );
1069 }
1070}
ush Pos
Definition deflate.h:88
int strlen()

◆ Abc_NtkSetAndGateDelay()

void Abc_NtkSetAndGateDelay ( void * pAbc,
float Delay )
extern

◆ Abc_NtkSetCiArrivalTime()

void Abc_NtkSetCiArrivalTime ( void * pAbc,
int iCi,
float Rise,
float Fall )
extern

◆ Abc_NtkSetCoRequiredTime()

void Abc_NtkSetCoRequiredTime ( void * pAbc,
int iCo,
float Rise,
float Fall )
extern

◆ Abc_NtkSetFlopNum()

void Abc_NtkSetFlopNum ( void * pAbc,
int nFlops )
extern

◆ Abc_Start()

void Abc_Start ( )
extern

INCLUDES ///.

CFile****************************************************************

FileName [abcapis.h]

SystemName [ABC: Logic synthesis and verification system.]

PackageName [Include this file in the external code calling ABC.]

Synopsis [External declarations.]

Author [Alan Mishchenko]

Affiliation [UC Berkeley]

Date [Ver. 1.0. Started - September 29, 2012.]

Revision [

Id
abcapis.h,v 1.00 2012/09/29 00:00:00 alanmi Exp

] PARAMETERS /// BASIC TYPES /// MACRO DEFINITIONS /// FUNCTION DECLARATIONS ///

INCLUDES ///.

FUNCTION DECLARATIONS ///.

CFile****************************************************************

FileName [main.c]

SystemName [ABC: Logic synthesis and verification system.]

PackageName [The main package.]

Synopsis [Here everything starts.]

Author [Alan Mishchenko]

Affiliation [UC Berkeley]

Date [Ver. 1.0. Started - June 20, 2005.]

Revision [

Id
main.c,v 1.00 2005/06/20 00:00:00 alanmi Exp

] FUNCTION DEFINITIONS /// Function*************************************************************

Synopsis [Initialization procedure for the library project.]

Description [Note that when Abc_Start() is run in a static library project, it does not load the resource file by default. As a result, ABC is not set up the same way, as when it is run on a command line. For example, some error messages while parsing files will not be produced, and intermediate networks will not be checked for consistancy. One possibility is to load the resource file after Abc_Start() as follows: Abc_UtilsSource( Abc_FrameGetGlobalFrame() );]

SideEffects []

SeeAlso []

Definition at line 52 of file mainLib.c.

53{
54 Abc_Frame_t * pAbc;
55 // added to detect memory leaks:
56#if defined(_DEBUG) && defined(_MSC_VER)
57 _CrtSetDbgFlag( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF );
58#endif
59 // start the glocal frame
61 // source the resource file
62// Abc_UtilsSource( pAbc );
63}
typedefABC_NAMESPACE_HEADER_START struct Abc_Frame_t_ Abc_Frame_t
INCLUDES ///.
Definition abcapis.h:38
ABC_DLL Abc_Frame_t * Abc_FrameGetGlobalFrame()
Definition mainFrame.c:643

◆ Abc_Stop()

void Abc_Stop ( )
extern

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

Synopsis [Deallocation procedure for the library project.]

Description []

SideEffects []

SeeAlso []

Definition at line 76 of file mainLib.c.

77{
78 Abc_Frame_t * pAbc;
80 // perform uninitializations
81 Abc_FrameEnd( pAbc );
82 // stop the framework
83 Abc_FrameDeallocate( pAbc );
84}
void Abc_FrameDeallocate(Abc_Frame_t *p)
Definition mainFrame.c:204
void Abc_FrameEnd(Abc_Frame_t *pAbc)
Definition mainInit.c:145

◆ Cmd_CommandExecute()

int Cmd_CommandExecute ( void * pAbc,
char * pCommandLine )
extern