abc-master
|
Go to the source code of this file.
Macros | |
#define | AMAP_STRING_GATE "GATE" |
DECLARATIONS ///. More... | |
#define | AMAP_STRING_PIN "PIN" |
#define | AMAP_STRING_NONINV "NONINV" |
#define | AMAP_STRING_INV "INV" |
#define | AMAP_STRING_UNKNOWN "UNKNOWN" |
#define | AMAP_SYMB_AND '*' |
#define | AMAP_SYMB_OR1 '+' |
#define | AMAP_SYMB_OR2 '|' |
#define | AMAP_SYMB_XOR '^' |
#define | AMAP_SYMB_NOT '!' |
#define | AMAP_SYMB_AFTNOT '\'' |
#define | AMAP_SYMB_OPEN '(' |
#define | AMAP_SYMB_CLOSE ')' |
Enumerations | |
enum | Amap_PinPhase_t { AMAP_PHASE_UNKNOWN, AMAP_PHASE_INV, AMAP_PHASE_NONINV } |
Functions | |
static Amap_Gat_t * | Amap_ParseGateAlloc (Aig_MmFlex_t *p, int nPins) |
static char * | Amap_ParseStrsav (Aig_MmFlex_t *p, char *pStr) |
char * | Amap_LoadFile (char *pFileName) |
FUNCTION DEFINITIONS ///. More... | |
void | Amap_RemoveComments (char *pBuffer, int *pnDots, int *pnLines) |
Vec_Ptr_t * | Amap_DeriveTokens (char *pBuffer) |
int | Amap_ParseCountPins (Vec_Ptr_t *vTokens, int iPos) |
int | Amap_GateCollectNames (Aig_MmFlex_t *pMem, char *pForm, char *pPinNames[]) |
Amap_Gat_t * | Amap_ParseGateWithSamePins (Amap_Gat_t *p) |
int | Amap_CollectFormulaTokens (Vec_Ptr_t *vTokens, char *pToken, int iPos) |
Amap_Lib_t * | Amap_ParseTokens (Vec_Ptr_t *vTokens, int fVerbose) |
Amap_Lib_t * | Amap_LibReadBuffer (char *pBuffer, int fVerbose) |
Amap_Lib_t * | Amap_LibReadFile (char *pFileName, int fVerbose) |
#define AMAP_STRING_GATE "GATE" |
DECLARATIONS ///.
CFile****************************************************************
FileName [amapRead.c]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [Technology mapper for standard cells.]
Synopsis []
Author [Alan Mishchenko]
Affiliation [UC Berkeley]
Date [Ver. 1.0. Started - June 20, 2005.]
Revision [
]
Definition at line 31 of file amapRead.c.
#define AMAP_STRING_INV "INV" |
Definition at line 34 of file amapRead.c.
#define AMAP_STRING_NONINV "NONINV" |
Definition at line 33 of file amapRead.c.
#define AMAP_STRING_PIN "PIN" |
Definition at line 32 of file amapRead.c.
#define AMAP_STRING_UNKNOWN "UNKNOWN" |
Definition at line 35 of file amapRead.c.
#define AMAP_SYMB_AFTNOT '\'' |
Definition at line 43 of file amapRead.c.
#define AMAP_SYMB_AND '*' |
Definition at line 38 of file amapRead.c.
#define AMAP_SYMB_CLOSE ')' |
Definition at line 45 of file amapRead.c.
#define AMAP_SYMB_NOT '!' |
Definition at line 42 of file amapRead.c.
#define AMAP_SYMB_OPEN '(' |
Definition at line 44 of file amapRead.c.
#define AMAP_SYMB_OR1 '+' |
Definition at line 39 of file amapRead.c.
#define AMAP_SYMB_OR2 '|' |
Definition at line 40 of file amapRead.c.
#define AMAP_SYMB_XOR '^' |
Definition at line 41 of file amapRead.c.
enum Amap_PinPhase_t |
Enumerator | |
---|---|
AMAP_PHASE_UNKNOWN | |
AMAP_PHASE_INV | |
AMAP_PHASE_NONINV |
Definition at line 47 of file amapRead.c.
int Amap_CollectFormulaTokens | ( | Vec_Ptr_t * | vTokens, |
char * | pToken, | ||
int | iPos | ||
) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 300 of file amapRead.c.
Vec_Ptr_t* Amap_DeriveTokens | ( | char * | pBuffer | ) |
Function*************************************************************
Synopsis [Splits the stream into tokens.]
Description []
SideEffects []
SeeAlso []
Definition at line 176 of file amapRead.c.
int Amap_GateCollectNames | ( | Aig_MmFlex_t * | pMem, |
char * | pForm, | ||
char * | pPinNames[] | ||
) |
Function*************************************************************
Synopsis [Collect the pin names used in the formula.]
Description []
SideEffects []
SeeAlso []
Definition at line 228 of file amapRead.c.
Amap_Lib_t* Amap_LibReadBuffer | ( | char * | pBuffer, |
int | fVerbose | ||
) |
Function*************************************************************
Synopsis [Reads the library from the input file.]
Description []
SideEffects []
SeeAlso []
Definition at line 446 of file amapRead.c.
Amap_Lib_t* Amap_LibReadFile | ( | char * | pFileName, |
int | fVerbose | ||
) |
Function*************************************************************
Synopsis [Reads the library from the input file.]
Description []
SideEffects []
SeeAlso []
Definition at line 473 of file amapRead.c.
char* Amap_LoadFile | ( | char * | pFileName | ) |
FUNCTION DEFINITIONS ///.
Function*************************************************************
Synopsis [Loads the file into temporary buffer.]
Description []
SideEffects []
SeeAlso []
Definition at line 73 of file amapRead.c.
int Amap_ParseCountPins | ( | Vec_Ptr_t * | vTokens, |
int | iPos | ||
) |
Function*************************************************************
Synopsis [Finds the number of pins.]
Description []
SideEffects []
SeeAlso []
Definition at line 205 of file amapRead.c.
|
inlinestatic |
Definition at line 53 of file amapRead.c.
Amap_Gat_t* Amap_ParseGateWithSamePins | ( | Amap_Gat_t * | p | ) |
Function*************************************************************
Synopsis [Creates a duplicate gate with pins specified.]
Description []
SideEffects []
SeeAlso []
Definition at line 270 of file amapRead.c.
|
inlinestatic |
Definition at line 55 of file amapRead.c.
Amap_Lib_t* Amap_ParseTokens | ( | Vec_Ptr_t * | vTokens, |
int | fVerbose | ||
) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 326 of file amapRead.c.
void Amap_RemoveComments | ( | char * | pBuffer, |
int * | pnDots, | ||
int * | pnLines | ||
) |
Function*************************************************************
Synopsis [Eliminates comments from the input file.]
Description [As a byproduct, this procedure also counts the number lines and dot-statements in the input file. This also joins non-comment lines that are joined with a backspace '\']
SideEffects []
SeeAlso []
Definition at line 120 of file amapRead.c.