abc-master
|
Go to the source code of this file.
Data Structures | |
struct | Scl_Pair_t_ |
struct | Scl_Item_t_ |
struct | Scl_Tree_t_ |
Macros | |
#define | ABC_MAX_LIB_STR_LEN 5000 |
DECLARATIONS ///. More... | |
#define | Scl_ItemForEachChild(p, pItem, pChild) for ( pChild = Scl_LibertyItem(p, pItem->Child); pChild; pChild = Scl_LibertyItem(p, pChild->Next) ) |
#define | Scl_ItemForEachChildName(p, pItem, pChild, pName) for ( pChild = Scl_LibertyItem(p, pItem->Child); pChild; pChild = Scl_LibertyItem(p, pChild->Next) ) if ( Scl_LibertyCompare(p, pChild->Key, pName) ) {} else |
Typedefs | |
typedef struct Scl_Pair_t_ | Scl_Pair_t |
typedef struct Scl_Item_t_ | Scl_Item_t |
typedef struct Scl_Tree_t_ | Scl_Tree_t |
Enumerations | |
enum | Scl_LibertyType_t { SCL_LIBERTY_NONE = 0, SCL_LIBERTY_PROC, SCL_LIBERTY_EQUA, SCL_LIBERTY_LIST } |
#define ABC_MAX_LIB_STR_LEN 5000 |
DECLARATIONS ///.
CFile****************************************************************
FileName [sclLiberty.c]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [Standard-cell library representation.]
Synopsis [Liberty parser.]
Author [Alan Mishchenko, Niklas Een]
Affiliation [UC Berkeley]
Date [Ver. 1.0. Started - August 24, 2012.]
Revision [
]
Definition at line 32 of file sclLiberty.c.
#define Scl_ItemForEachChild | ( | p, | |
pItem, | |||
pChild | |||
) | for ( pChild = Scl_LibertyItem(p, pItem->Child); pChild; pChild = Scl_LibertyItem(p, pChild->Next) ) |
Definition at line 82 of file sclLiberty.c.
#define Scl_ItemForEachChildName | ( | p, | |
pItem, | |||
pChild, | |||
pName | |||
) | for ( pChild = Scl_LibertyItem(p, pItem->Child); pChild; pChild = Scl_LibertyItem(p, pChild->Next) ) if ( Scl_LibertyCompare(p, pChild->Key, pName) ) {} else |
Definition at line 84 of file sclLiberty.c.
typedef struct Scl_Item_t_ Scl_Item_t |
Definition at line 49 of file sclLiberty.c.
typedef struct Scl_Pair_t_ Scl_Pair_t |
Definition at line 42 of file sclLiberty.c.
typedef struct Scl_Tree_t_ Scl_Tree_t |
Definition at line 61 of file sclLiberty.c.
enum Scl_LibertyType_t |
Enumerator | |
---|---|
SCL_LIBERTY_NONE | |
SCL_LIBERTY_PROC | |
SCL_LIBERTY_EQUA | |
SCL_LIBERTY_LIST |
Definition at line 35 of file sclLiberty.c.
SC_Lib* Abc_SclReadLiberty | ( | char * | pFileName, |
int | fVerbose, | ||
int | fVeryVerbose | ||
) |
Definition at line 1626 of file sclLiberty.c.
int Scl_LibertyBuildItem | ( | Scl_Tree_t * | p, |
char ** | ppPos, | ||
char * | pEnd | ||
) |
Function*************************************************************
Synopsis [Returns free item.]
Description []
SideEffects []
SeeAlso []
Definition at line 375 of file sclLiberty.c.
|
inlinestatic |
Definition at line 215 of file sclLiberty.c.
|
inlinestatic |
int Scl_LibertyComputeWorstCase | ( | Vec_Ptr_t * | vTables, |
Vec_Flt_t ** | pvInd0, | ||
Vec_Flt_t ** | pvInd1, | ||
Vec_Flt_t ** | pvValues | ||
) |
Definition at line 1131 of file sclLiberty.c.
int Scl_LibertyCountItems | ( | char * | pBeg, |
char * | pEnd | ||
) |
Function*************************************************************
Synopsis [Gets the name to write.]
Description []
SideEffects []
SeeAlso []
Definition at line 168 of file sclLiberty.c.
void Scl_LibertyDumpTables | ( | Vec_Str_t * | vOut, |
Vec_Flt_t * | vInd1, | ||
Vec_Flt_t * | vInd2, | ||
Vec_Flt_t * | vValues | ||
) |
Definition at line 978 of file sclLiberty.c.
char* Scl_LibertyFileContents | ( | char * | pFileName, |
int | nContents | ||
) |
Definition at line 503 of file sclLiberty.c.
int Scl_LibertyFileSize | ( | char * | pFileName | ) |
Definition at line 488 of file sclLiberty.c.
|
inlinestatic |
Definition at line 262 of file sclLiberty.c.
void Scl_LibertyFixFileName | ( | char * | pFileName | ) |
Function*************************************************************
Synopsis [File management.]
Description []
SideEffects []
SeeAlso []
Definition at line 481 of file sclLiberty.c.
|
inlinestatic |
Definition at line 76 of file sclLiberty.c.
|
inlinestatic |
Definition at line 80 of file sclLiberty.c.
int Scl_LibertyItemNum | ( | Scl_Tree_t * | p, |
Scl_Item_t * | pRoot, | ||
char * | pName | ||
) |
Definition at line 355 of file sclLiberty.c.
|
inlinestatic |
Definition at line 320 of file sclLiberty.c.
Scl_Tree_t* Scl_LibertyParse | ( | char * | pFileName, |
int | fVerbose | ||
) |
Definition at line 573 of file sclLiberty.c.
int Scl_LibertyParseDump | ( | Scl_Tree_t * | p, |
char * | pFileName | ||
) |
Definition at line 136 of file sclLiberty.c.
void Scl_LibertyParseDumpItem | ( | FILE * | pFile, |
Scl_Tree_t * | p, | ||
Scl_Item_t * | pItem, | ||
int | nOffset | ||
) |
FUNCTION DEFINITIONS ///.
Function*************************************************************
Synopsis [Prints parse tree in Liberty format.]
Description []
SideEffects []
SeeAlso []
Definition at line 102 of file sclLiberty.c.
Vec_Str_t* Scl_LibertyParseGenlibStr | ( | char * | pFileName, |
int | fVerbose | ||
) |
Definition at line 735 of file sclLiberty.c.
void Scl_LibertyPrintTemplates | ( | Vec_Ptr_t * | vRes | ) |
Definition at line 1323 of file sclLiberty.c.
char* Scl_LibertyReadCellArea | ( | Scl_Tree_t * | p, |
Scl_Item_t * | pCell | ||
) |
Definition at line 615 of file sclLiberty.c.
int Scl_LibertyReadCellIsFlop | ( | Scl_Tree_t * | p, |
Scl_Item_t * | pCell | ||
) |
Function*************************************************************
Synopsis [Fetching attributes.]
Description []
SideEffects []
SeeAlso []
Definition at line 606 of file sclLiberty.c.
int Scl_LibertyReadCellIsThreeState | ( | Scl_Tree_t * | p, |
Scl_Item_t * | pCell | ||
) |
Definition at line 646 of file sclLiberty.c.
char* Scl_LibertyReadCellLeakage | ( | Scl_Tree_t * | p, |
Scl_Item_t * | pCell | ||
) |
Definition at line 622 of file sclLiberty.c.
int Scl_LibertyReadCellOutputNum | ( | Scl_Tree_t * | p, |
Scl_Item_t * | pCell | ||
) |
Definition at line 654 of file sclLiberty.c.
float Scl_LibertyReadDefaultMaxTrans | ( | Scl_Tree_t * | p | ) |
Definition at line 801 of file sclLiberty.c.
char* Scl_LibertyReadDefaultWireLoad | ( | Scl_Tree_t * | p | ) |
Function*************************************************************
Synopsis [Parsing Liberty into internal data representation.]
Description []
SideEffects []
SeeAlso []
Definition at line 787 of file sclLiberty.c.
char* Scl_LibertyReadDefaultWireLoadSel | ( | Scl_Tree_t * | p | ) |
Definition at line 794 of file sclLiberty.c.
int Scl_LibertyReadDeriveStrength | ( | Scl_Tree_t * | p, |
Scl_Item_t * | pCell | ||
) |
Definition at line 905 of file sclLiberty.c.
Vec_Flt_t* Scl_LibertyReadFloatVec | ( | char * | pName | ) |
Definition at line 969 of file sclLiberty.c.
Vec_Str_t* Scl_LibertyReadGenlibStr | ( | Scl_Tree_t * | p, |
int | fVerbose | ||
) |
Function*************************************************************
Synopsis [Parses the standard cell library in Liberty format.]
Description [Writes the resulting file in Genlib format.]
SideEffects []
SeeAlso []
Definition at line 675 of file sclLiberty.c.
void Scl_LibertyReadLoadUnit | ( | Scl_Tree_t * | p, |
Vec_Str_t * | vOut | ||
) |
Definition at line 828 of file sclLiberty.c.
float Scl_LibertyReadPinCap | ( | Scl_Tree_t * | p, |
Scl_Item_t * | pPin, | ||
char * | pName | ||
) |
Definition at line 926 of file sclLiberty.c.
int Scl_LibertyReadPinDirection | ( | Scl_Tree_t * | p, |
Scl_Item_t * | pPin | ||
) |
Definition at line 912 of file sclLiberty.c.
char* Scl_LibertyReadPinFormula | ( | Scl_Tree_t * | p, |
Scl_Item_t * | pPin | ||
) |
Definition at line 639 of file sclLiberty.c.
Scl_Item_t* Scl_LibertyReadPinTiming | ( | Scl_Tree_t * | p, |
Scl_Item_t * | pPinOut, | ||
char * | pNameIn | ||
) |
Definition at line 933 of file sclLiberty.c.
Vec_Ptr_t* Scl_LibertyReadPinTimingAll | ( | Scl_Tree_t * | p, |
Scl_Item_t * | pPinOut, | ||
char * | pNameIn | ||
) |
Definition at line 942 of file sclLiberty.c.
Vec_Str_t* Scl_LibertyReadSclStr | ( | Scl_Tree_t * | p, |
int | fVerbose, | ||
int | fVeryVerbose | ||
) |
Definition at line 1394 of file sclLiberty.c.
char* Scl_LibertyReadString | ( | Scl_Tree_t * | p, |
Scl_Pair_t | Pair | ||
) |
Function*************************************************************
Synopsis [Gets the name to write.]
Description []
SideEffects []
SeeAlso []
Definition at line 341 of file sclLiberty.c.
int Scl_LibertyReadTable | ( | Scl_Tree_t * | p, |
Vec_Str_t * | vOut, | ||
Scl_Item_t * | pTiming, | ||
char * | pName, | ||
Vec_Ptr_t * | vTemples | ||
) |
Definition at line 1174 of file sclLiberty.c.
Vec_Ptr_t* Scl_LibertyReadTemplates | ( | Scl_Tree_t * | p | ) |
Definition at line 1340 of file sclLiberty.c.
int Scl_LibertyReadTimeUnit | ( | Scl_Tree_t * | p | ) |
Definition at line 808 of file sclLiberty.c.
int Scl_LibertyReadTimingSense | ( | Scl_Tree_t * | p, |
Scl_Item_t * | pPin | ||
) |
Definition at line 953 of file sclLiberty.c.
void Scl_LibertyReadWireLoad | ( | Scl_Tree_t * | p, |
Vec_Str_t * | vOut | ||
) |
Definition at line 849 of file sclLiberty.c.
void Scl_LibertyReadWireLoadSelect | ( | Scl_Tree_t * | p, |
Vec_Str_t * | vOut | ||
) |
Definition at line 877 of file sclLiberty.c.
|
inlinestatic |
Definition at line 75 of file sclLiberty.c.
int Scl_LibertyScanTable | ( | Scl_Tree_t * | p, |
Vec_Ptr_t * | vOut, | ||
Scl_Item_t * | pTiming, | ||
char * | pName, | ||
Vec_Ptr_t * | vTemples | ||
) |
Definition at line 1011 of file sclLiberty.c.
|
inlinestatic |
Definition at line 237 of file sclLiberty.c.
|
inlinestatic |
Definition at line 219 of file sclLiberty.c.
Scl_Tree_t* Scl_LibertyStart | ( | char * | pFileName | ) |
Function*************************************************************
Synopsis [Starts the parsing manager.]
Description []
SideEffects []
SeeAlso []
Definition at line 537 of file sclLiberty.c.
void Scl_LibertyStop | ( | Scl_Tree_t * | p, |
int | fVerbose | ||
) |
Definition at line 560 of file sclLiberty.c.
void Scl_LibertyStringDump | ( | char * | pFileName, |
Vec_Str_t * | vStr | ||
) |
Definition at line 513 of file sclLiberty.c.
void Scl_LibertyTest | ( | ) |
Function*************************************************************
Synopsis [Experiments with Liberty parsing.]
Description []
SideEffects []
SeeAlso []
Definition at line 1662 of file sclLiberty.c.
|
inlinestatic |
Definition at line 294 of file sclLiberty.c.
void Scl_LibertyWipeOutComments | ( | char * | pBeg, |
char * | pEnd | ||
) |
Definition at line 191 of file sclLiberty.c.
|
inlinestatic |
Definition at line 79 of file sclLiberty.c.
|
inlinestatic |
|
inlinestatic |
Definition at line 773 of file sclLiberty.c.
|
inlinestatic |
Definition at line 771 of file sclLiberty.c.
|
inlinestatic |
Function*************************************************************
Synopsis [Enabling debug output.]
Description []
SideEffects []
SeeAlso []
Definition at line 769 of file sclLiberty.c.
|
inlinestatic |
Definition at line 772 of file sclLiberty.c.
Definition at line 770 of file sclLiberty.c.