abc-master
|
#include "amapInt.h"
Go to the source code of this file.
Data Structures | |
struct | Amap_Pair_t_ |
struct | Amap_Item_t_ |
struct | Amap_Tree_t_ |
Macros | |
#define | ABC_MAX_LIB_STR_LEN 5000 |
DECLARATIONS ///. More... | |
#define | Amap_ItemForEachChild(p, pItem, pChild) for ( pChild = Amap_LibertyItem(p, pItem->Child); pChild; pChild = Amap_LibertyItem(p, pChild->Next) ) |
Typedefs | |
typedef struct Amap_Pair_t_ | Amap_Pair_t |
typedef struct Amap_Item_t_ | Amap_Item_t |
typedef struct Amap_Tree_t_ | Amap_Tree_t |
Enumerations | |
enum | Amap_LibertyType_t { AMAP_LIBERTY_NONE = 0, AMAP_LIBERTY_PROC, AMAP_LIBERTY_EQUA, AMAP_LIBERTY_LIST } |
#define ABC_MAX_LIB_STR_LEN 5000 |
DECLARATIONS ///.
CFile****************************************************************
FileHead [amapLiberty.c]
SystemHead [ABC: Logic synthesis and verification system.]
PackageHead [Technology mapper for standard cells.]
Synopsis [Liberty parser.]
Author [Alan Mishchenko]
Affiliation [UC Berkeley]
Date [Ver. 1.0. Started - June 20, 2005.]
Revision [
]
Definition at line 30 of file amapLiberty.c.
#define Amap_ItemForEachChild | ( | p, | |
pItem, | |||
pChild | |||
) | for ( pChild = Amap_LibertyItem(p, pItem->Child); pChild; pChild = Amap_LibertyItem(p, pChild->Next) ) |
Definition at line 79 of file amapLiberty.c.
typedef struct Amap_Item_t_ Amap_Item_t |
Definition at line 47 of file amapLiberty.c.
typedef struct Amap_Pair_t_ Amap_Pair_t |
Definition at line 40 of file amapLiberty.c.
typedef struct Amap_Tree_t_ Amap_Tree_t |
Definition at line 59 of file amapLiberty.c.
enum Amap_LibertyType_t |
Enumerator | |
---|---|
AMAP_LIBERTY_NONE | |
AMAP_LIBERTY_PROC | |
AMAP_LIBERTY_EQUA | |
AMAP_LIBERTY_LIST |
Definition at line 33 of file amapLiberty.c.
int Amap_LibertyBuildItem | ( | Amap_Tree_t * | p, |
char ** | ppPos, | ||
char * | pEnd | ||
) |
Function*************************************************************
Synopsis [Returns free item.]
Description []
SideEffects []
SeeAlso []
Definition at line 845 of file amapLiberty.c.
Amap_Item_t* Amap_LibertyCellArea | ( | Amap_Tree_t * | p, |
Amap_Item_t * | pCell | ||
) |
Function*************************************************************
Synopsis [Returns cell's area.]
Description []
SideEffects []
SeeAlso []
Definition at line 279 of file amapLiberty.c.
int Amap_LibertyCellCountOutputs | ( | Amap_Tree_t * | p, |
Amap_Item_t * | pCell | ||
) |
Function*************************************************************
Synopsis [Count cell's output pins (pins with a logic function).]
Description []
SideEffects []
SeeAlso []
Definition at line 302 of file amapLiberty.c.
int Amap_LibertyCellIsFlop | ( | Amap_Tree_t * | p, |
Amap_Item_t * | pCell | ||
) |
Function*************************************************************
Synopsis [Returns cell's function.]
Description []
SideEffects []
SeeAlso []
Definition at line 200 of file amapLiberty.c.
Amap_Item_t* Amap_LibertyCellOutput | ( | Amap_Tree_t * | p, |
Amap_Item_t * | pCell | ||
) |
Function*************************************************************
Synopsis [Returns output pin(s).]
Description []
SideEffects []
SeeAlso []
Definition at line 241 of file amapLiberty.c.
Vec_Ptr_t* Amap_LibertyCellOutputs | ( | Amap_Tree_t * | p, |
Amap_Item_t * | pCell | ||
) |
Definition at line 253 of file amapLiberty.c.
|
inlinestatic |
Function*************************************************************
Synopsis [Returns 1 if the character is space.]
Description []
SideEffects []
SeeAlso []
Definition at line 664 of file amapLiberty.c.
|
inlinestatic |
Definition at line 74 of file amapLiberty.c.
int Amap_LibertyCountItems | ( | char * | pBeg, |
char * | pEnd | ||
) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 620 of file amapLiberty.c.
int Amap_LibertyFileSize | ( | char * | pFileName | ) |
Function*************************************************************
Synopsis [Returns the file size.]
Description [The file should be closed.]
SideEffects []
SeeAlso []
Definition at line 574 of file amapLiberty.c.
|
inlinestatic |
Function*************************************************************
Synopsis [Find the matching closing symbol.]
Description []
SideEffects []
SeeAlso []
Definition at line 745 of file amapLiberty.c.
void Amap_LibertyFixFileHead | ( | char * | pFileName | ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 601 of file amapLiberty.c.
char* Amap_LibertyGetString | ( | Amap_Tree_t * | p, |
Amap_Pair_t | Pair | ||
) |
Function*************************************************************
Synopsis [Gets the name to write.]
Description []
SideEffects []
SeeAlso []
Definition at line 327 of file amapLiberty.c.
char* Amap_LibertyGetStringFormula | ( | Amap_Tree_t * | p, |
Amap_Pair_t | Pair | ||
) |
Function*************************************************************
Synopsis [Gets the name to write.]
Description []
SideEffects []
SeeAlso []
Definition at line 347 of file amapLiberty.c.
|
inlinestatic |
Definition at line 73 of file amapLiberty.c.
|
inlinestatic |
Definition at line 77 of file amapLiberty.c.
|
inlinestatic |
Function*************************************************************
Synopsis [Returns free item.]
Description []
SideEffects []
SeeAlso []
Definition at line 825 of file amapLiberty.c.
int Amap_LibertyParse | ( | char * | pFileName, |
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 1012 of file amapLiberty.c.
Vec_Str_t* Amap_LibertyParseStr | ( | char * | pFileName, |
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 1059 of file amapLiberty.c.
Amap_Item_t* Amap_LibertyPinFunction | ( | Amap_Tree_t * | p, |
Amap_Item_t * | pPin | ||
) |
Function*************************************************************
Synopsis [Returns pin's function.]
Description []
SideEffects []
SeeAlso []
Definition at line 221 of file amapLiberty.c.
int Amap_LibertyPrintGenlib | ( | Amap_Tree_t * | p, |
char * | pFileName, | ||
int | fVerbose | ||
) |
Function*************************************************************
Synopsis [Prints parse tree in Genlib format.]
Description []
SideEffects []
SeeAlso []
Definition at line 367 of file amapLiberty.c.
Vec_Str_t* Amap_LibertyPrintGenlibStr | ( | Amap_Tree_t * | p, |
int | fVerbose | ||
) |
Function*************************************************************
Synopsis [Prints parse tree in Genlib format.]
Description []
SideEffects []
SeeAlso []
Definition at line 478 of file amapLiberty.c.
int Amap_LibertyPrintLiberty | ( | Amap_Tree_t * | p, |
char * | pFileName | ||
) |
Function*************************************************************
Synopsis [Prints parse tree in Liberty format.]
Description []
SideEffects []
SeeAlso []
Definition at line 143 of file amapLiberty.c.
void Amap_LibertyPrintLibertyItem | ( | FILE * | pFile, |
Amap_Tree_t * | p, | ||
Amap_Item_t * | pItem, | ||
int | nOffset | ||
) |
FUNCTION DEFINITIONS ///.
Function*************************************************************
Synopsis [Prints parse tree in Liberty format.]
Description []
SideEffects []
SeeAlso []
Definition at line 97 of file amapLiberty.c.
|
inlinestatic |
Definition at line 72 of file amapLiberty.c.
|
inlinestatic |
Function*************************************************************
Synopsis [Skips entry delimited by " :;(){}" ]
Description [Returns 1 if reached the end.]
SideEffects []
SeeAlso []
Definition at line 709 of file amapLiberty.c.
|
inlinestatic |
Function*************************************************************
Synopsis [Skips spaces.]
Description [Returns 1 if reached the end.]
SideEffects []
SeeAlso []
Definition at line 680 of file amapLiberty.c.
Amap_Tree_t* Amap_LibertyStart | ( | char * | pFileName | ) |
Function*************************************************************
Synopsis [Starts the parsing manager.]
Description []
SideEffects []
SeeAlso []
Definition at line 951 of file amapLiberty.c.
void Amap_LibertyStop | ( | Amap_Tree_t * | p | ) |
Function*************************************************************
Synopsis [Stops the parsing manager.]
Description []
SideEffects []
SeeAlso []
Definition at line 992 of file amapLiberty.c.
char* Amap_LibertyTimeStamp | ( | ) |
Function*************************************************************
Synopsis [Returns the time stamp.]
Description [The file should be closed.]
SideEffects []
SeeAlso []
Definition at line 175 of file amapLiberty.c.
|
inlinestatic |
Function*************************************************************
Synopsis [Find the matching closing symbol.]
Description []
SideEffects []
SeeAlso []
Definition at line 788 of file amapLiberty.c.
void Amap_LibertyWipeOutComments | ( | char * | pBeg, |
char * | pEnd | ||
) |
Function*************************************************************
Synopsis [Removes C-style comments.]
Description []
SideEffects []
SeeAlso []
Definition at line 639 of file amapLiberty.c.
|
inlinestatic |
Definition at line 76 of file amapLiberty.c.
|
inlinestatic |