abc-master
|
Go to the source code of this file.
Data Structures | |
struct | Mio_Cell_t_ |
Macros | |
#define | Mio_LibraryForEachGate(Lib, Gate) |
GLOBAL VARIABLES ///. More... | |
#define | Mio_LibraryForEachGateSafe(Lib, Gate, Gate2) |
#define | Mio_GateForEachPin(Gate, Pin) |
#define | Mio_GateForEachPinSafe(Gate, Pin, Pin2) |
Typedefs | |
typedef struct Mio_LibraryStruct_t_ | Mio_Library_t |
typedef struct Mio_GateStruct_t_ | Mio_Gate_t |
typedef struct Mio_PinStruct_t_ | Mio_Pin_t |
typedef struct Mio_Cell_t_ | Mio_Cell_t |
Enumerations | |
enum | Mio_PinPhase_t { MIO_PHASE_UNKNOWN, MIO_PHASE_INV, MIO_PHASE_NONINV } |
INCLUDES ///. More... | |
#define Mio_GateForEachPin | ( | Gate, | |
Pin | |||
) |
#define Mio_GateForEachPinSafe | ( | Gate, | |
Pin, | |||
Pin2 | |||
) |
#define Mio_LibraryForEachGate | ( | Lib, | |
Gate | |||
) |
GLOBAL VARIABLES ///.
MACRO DEFINITIONS ///
#define Mio_LibraryForEachGateSafe | ( | Lib, | |
Gate, | |||
Gate2 | |||
) |
typedef struct Mio_Cell_t_ Mio_Cell_t |
typedef struct Mio_GateStruct_t_ Mio_Gate_t |
typedef struct Mio_LibraryStruct_t_ Mio_Library_t |
typedef struct Mio_PinStruct_t_ Mio_Pin_t |
enum Mio_PinPhase_t |
INCLUDES ///.
CFile****************************************************************
FileName [mio.h]
PackageName [MVSIS 2.0: Multi-valued logic synthesis system.]
Synopsis [File reading/writing for technology mapping.]
Author [MVSIS Group]
Affiliation [UC Berkeley]
Date [Ver. 1.0. Started - September 8, 2003.]
Revision [
]PARAMETERS ///STRUCTURE DEFINITIONS ///
Enumerator | |
---|---|
MIO_PHASE_UNKNOWN | |
MIO_PHASE_INV | |
MIO_PHASE_NONINV |
Mio_Library_t* Abc_SclDeriveGenlib | ( | void * | pScl, |
float | Slew, | ||
float | Gain, | ||
int | nGatesMin, | ||
int | fVerbose | ||
) |
Definition at line 818 of file sclLibUtil.c.
Mio_Library_t* Abc_SclDeriveGenlibSimple | ( | void * | pScl | ) |
Definition at line 710 of file sclLibUtil.c.
int Abc_SclHasDelayInfo | ( | void * | pScl | ) |
Function*************************************************************
Synopsis [Returns 1 if the library has delay info.]
Description []
SideEffects []
SeeAlso []
Definition at line 292 of file sclLibUtil.c.
Mio_Gate_t** Mio_CollectRoots | ( | Mio_Library_t * | pLib, |
int | nInputs, | ||
float | tDelay, | ||
int | fSkipInv, | ||
int * | pnGates, | ||
int | fVerbose | ||
) |
Function*************************************************************
Synopsis [Collects the set of root gates.]
Description [Only collects the gates with unique functionality, which have fewer inputs and shorter delay than the given limits.]
SideEffects []
SeeAlso []
Definition at line 302 of file mioUtils.c.
Mio_Cell_t* Mio_CollectRootsNew | ( | Mio_Library_t * | pLib, |
int | nInputs, | ||
int * | pnGates, | ||
int | fVerbose | ||
) |
Definition at line 404 of file mioUtils.c.
Mio_Cell_t* Mio_CollectRootsNewDefault | ( | int | nInputs, |
int * | pnGates, | ||
int | fVerbose | ||
) |
Definition at line 498 of file mioUtils.c.
void Mio_DeriveGateDelays | ( | Mio_Gate_t * | pGate, |
float ** | ptPinDelays, | ||
int | nPins, | ||
int | nInputs, | ||
float | tDelayZero, | ||
float * | ptDelaysRes, | ||
float * | ptPinDelayMax | ||
) |
Function*************************************************************
Synopsis [Derives the area and delay of the root of the gate.]
Description [Array of the resulting delays should be initialized to the (negative) SUPER_NO_VAR value.]
SideEffects []
SeeAlso []
Definition at line 725 of file mioUtils.c.
void Mio_DeriveTruthTable | ( | Mio_Gate_t * | pGate, |
unsigned | uTruthsIn[][2], | ||
int | nSigns, | ||
int | nInputs, | ||
unsigned | uTruthRes[] | ||
) |
Function*************************************************************
Synopsis [Derives the truth table of the gate.]
Description []
SideEffects []
SeeAlso []
Definition at line 608 of file mioUtils.c.
word Mio_DeriveTruthTable6 | ( | Mio_Gate_t * | pGate | ) |
Function*************************************************************
Synopsis [Derives the truth table of the gate.]
Description []
SideEffects []
SeeAlso []
Definition at line 514 of file mioUtils.c.
Mio_Gate_t* Mio_GateCreatePseudo | ( | int | nInputs | ) |
Function*************************************************************
Synopsis [Creates a pseudo-gate.]
Description [The pseudo-gate is a N-input gate with all info set to 0.]
SideEffects []
SeeAlso []
Definition at line 771 of file mioUtils.c.
void Mio_GateDelete | ( | Mio_Gate_t * | pGate | ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 81 of file mioUtils.c.
double Mio_GateReadArea | ( | Mio_Gate_t * | pGate | ) |
double Mio_GateReadDelayMax | ( | Mio_Gate_t * | pGate | ) |
char* Mio_GateReadForm | ( | Mio_Gate_t * | pGate | ) |
Mio_Library_t* Mio_GateReadLib | ( | Mio_Gate_t * | pGate | ) |
char* Mio_GateReadName | ( | Mio_Gate_t * | pGate | ) |
Mio_Gate_t* Mio_GateReadNext | ( | Mio_Gate_t * | pGate | ) |
char* Mio_GateReadOutName | ( | Mio_Gate_t * | pGate | ) |
float Mio_GateReadPinDelay | ( | Mio_Gate_t * | pGate, |
int | iPin | ||
) |
Definition at line 201 of file mioApi.c.
char* Mio_GateReadPinName | ( | Mio_Gate_t * | pGate, |
int | iPin | ||
) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 192 of file mioApi.c.
int Mio_GateReadPinNum | ( | Mio_Gate_t * | pGate | ) |
Mio_Pin_t* Mio_GateReadPins | ( | Mio_Gate_t * | pGate | ) |
char* Mio_GateReadSop | ( | Mio_Gate_t * | pGate | ) |
word Mio_GateReadTruth | ( | Mio_Gate_t * | pGate | ) |
Mio_Gate_t* Mio_GateReadTwin | ( | Mio_Gate_t * | pGate | ) |
int Mio_GateReadValue | ( | Mio_Gate_t * | pGate | ) |
void Mio_GateSetValue | ( | Mio_Gate_t * | pGate, |
int | Value | ||
) |
Function*************************************************************
Synopsis [Derives SOP representation.]
Description [The SOP is guaranteed to be SCC-free but not minimal.]
SideEffects []
SeeAlso []
Definition at line 257 of file mioSop.c.
void Mio_LibraryDelete | ( | Mio_Library_t * | pLib | ) |
DECLARATIONS ///.
CFile****************************************************************
FileName [mioUtils.c]
PackageName [MVSIS 1.3: Multi-valued logic synthesis system.]
Synopsis [File reading/writing for technology mapping.]
Author [MVSIS Group]
Affiliation [UC Berkeley]
Date [Ver. 1.0. Started - September 8, 2003.]
Revision [
]FUNCTION DEFINITIONS /// Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 48 of file mioUtils.c.
void Mio_LibraryMultiArea | ( | Mio_Library_t * | pLib, |
double | Multi | ||
) |
Function*************************************************************
Synopsis [Multiply areas/delays by values proportional to fanin count.]
Description []
SideEffects []
SeeAlso []
Definition at line 829 of file mioUtils.c.
void Mio_LibraryMultiDelay | ( | Mio_Library_t * | pLib, |
double | Multi | ||
) |
Definition at line 841 of file mioUtils.c.
int Mio_LibraryParseFormulas | ( | Mio_Library_t * | pLib | ) |
FUNCTION DEFINITIONS ///.
Function*************************************************************
Synopsis [Deriving the functionality of the gates.]
Description []
SideEffects []
SeeAlso []
Definition at line 58 of file mioForm.c.
Mio_Library_t* Mio_LibraryRead | ( | char * | FileName, |
char * | pBuffer, | ||
char * | ExcludeFile, | ||
int | fVerbose | ||
) |
Function*************************************************************
Synopsis [Read the genlib type of library.]
Description []
SideEffects []
SeeAlso []
Definition at line 54 of file mioRead.c.
Mio_Gate_t* Mio_LibraryReadAnd2 | ( | Mio_Library_t * | pLib | ) |
float Mio_LibraryReadAreaBuf | ( | Mio_Library_t * | pLib | ) |
float Mio_LibraryReadAreaInv | ( | Mio_Library_t * | pLib | ) |
float Mio_LibraryReadAreaNand2 | ( | Mio_Library_t * | pLib | ) |
Mio_Gate_t* Mio_LibraryReadBuf | ( | Mio_Library_t * | pLib | ) |
Mio_Gate_t* Mio_LibraryReadConst0 | ( | Mio_Library_t * | pLib | ) |
Mio_Gate_t* Mio_LibraryReadConst1 | ( | Mio_Library_t * | pLib | ) |
float Mio_LibraryReadDelayAnd2Max | ( | Mio_Library_t * | pLib | ) |
float Mio_LibraryReadDelayInvFall | ( | Mio_Library_t * | pLib | ) |
float Mio_LibraryReadDelayInvMax | ( | Mio_Library_t * | pLib | ) |
float Mio_LibraryReadDelayInvRise | ( | Mio_Library_t * | pLib | ) |
float Mio_LibraryReadDelayNand2Fall | ( | Mio_Library_t * | pLib | ) |
float Mio_LibraryReadDelayNand2Max | ( | Mio_Library_t * | pLib | ) |
float Mio_LibraryReadDelayNand2Rise | ( | Mio_Library_t * | pLib | ) |
int Mio_LibraryReadExclude | ( | char * | ExcludeFile, |
st__table * | tExcludeGate | ||
) |
Mio_Gate_t** Mio_LibraryReadGateArray | ( | Mio_Library_t * | pLib | ) |
Mio_Gate_t* Mio_LibraryReadGateByName | ( | Mio_Library_t * | pLib, |
char * | pName, | ||
char * | pOutName | ||
) |
Function*************************************************************
Synopsis [Read Mvc of the gate by name.]
Description []
SideEffects []
SeeAlso []
Definition at line 99 of file mioApi.c.
int Mio_LibraryReadGateNameMax | ( | Mio_Library_t * | pLib | ) |
Function*************************************************************
Synopsis [Returns the longest gate name.]
Description []
SideEffects []
SeeAlso []
Definition at line 75 of file mioApi.c.
int Mio_LibraryReadGateNum | ( | Mio_Library_t * | pLib | ) |
Mio_Gate_t* Mio_LibraryReadGates | ( | Mio_Library_t * | pLib | ) |
Mio_Gate_t* Mio_LibraryReadInv | ( | Mio_Library_t * | pLib | ) |
char* Mio_LibraryReadName | ( | Mio_Library_t * | pLib | ) |
DECLARATIONS ///.
CFile****************************************************************
FileName [mioApi.c]
PackageName [MVSIS 1.3: Multi-valued logic synthesis system.]
Synopsis [File reading/writing for technology mapping.]
Author [MVSIS Group]
Affiliation [UC Berkeley]
Date [Ver. 1.0. Started - September 8, 2003.]
Revision [
]FUNCTION DEFINITIONS /// Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 43 of file mioApi.c.
Mio_Gate_t* Mio_LibraryReadNand2 | ( | Mio_Library_t * | pLib | ) |
char* Mio_LibraryReadSopByName | ( | Mio_Library_t * | pLib, |
char * | pName | ||
) |
Function*************************************************************
Synopsis [Read Mvc of the gate by name.]
Description []
SideEffects []
SeeAlso []
Definition at line 124 of file mioApi.c.
void Mio_LibraryShiftDelay | ( | Mio_Library_t * | pLib, |
double | Shift | ||
) |
Function*************************************************************
Synopsis [Adds constant value to all delay values.]
Description [The pseudo-gate is a N-input gate with all info set to 0.]
SideEffects []
SeeAlso []
Definition at line 802 of file mioUtils.c.
void Mio_LibraryTransferDelays | ( | Mio_Library_t * | pLibD, |
Mio_Library_t * | pLibS | ||
) |
Function*************************************************************
Synopsis [Transfers delays from the second to the first.]
Description []
SideEffects []
SeeAlso []
Definition at line 872 of file mioUtils.c.
int Mio_ParseCheckFormula | ( | Mio_Gate_t * | pGate, |
char * | pForm | ||
) |
Definition at line 444 of file mioParse.c.
Vec_Int_t* Mio_ParseFormula | ( | char * | pFormInit, |
char ** | ppVarNames, | ||
int | nVars | ||
) |
Function*************************************************************
Synopsis [Derives the AIG corresponding to the equation.]
Description [Takes the stream to output messages, the formula, the vector of variable names and the AIG manager.]
SideEffects []
SeeAlso []
Definition at line 105 of file mioParse.c.
Vec_Wrd_t* Mio_ParseFormulaTruth | ( | char * | pFormInit, |
char ** | ppVarNames, | ||
int | nVars | ||
) |
Function*************************************************************
Synopsis [Derives the TT corresponding to the equation.]
Description []
SideEffects []
SeeAlso []
Definition at line 396 of file mioParse.c.
void Mio_PinDelete | ( | Mio_Pin_t * | pPin | ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 108 of file mioUtils.c.
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 125 of file mioUtils.c.
char* Mio_PinReadName | ( | Mio_Pin_t * | pPin | ) |
Mio_PinPhase_t Mio_PinReadPhase | ( | Mio_Pin_t * | pPin | ) |
char* Mio_ReadFile | ( | char * | FileName, |
int | fAddEnd | ||
) |
Function*************************************************************
Synopsis [Read contents of the file.]
Description []
SideEffects []
SeeAlso []
Definition at line 111 of file mioRead.c.
void Mio_UpdateGenlib | ( | Mio_Library_t * | pLib | ) |
FUNCTION DEFINITIONS ///.
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 124 of file mio.c.
Definition at line 141 of file mio.c.
void Mio_WriteLibrary | ( | FILE * | pFile, |
Mio_Library_t * | pLib, | ||
int | fPrintSops | ||
) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 251 of file mioUtils.c.