abc-master
|
#include "wlc.h"
Go to the source code of this file.
Data Structures | |
struct | Wlc_Prs_t_ |
Macros | |
#define | WLV_PRS_MAX_LINE 1000 |
DECLARATIONS ///. More... | |
#define | Wlc_PrsForEachLine(p, pLine, i) for ( i = 0; (i < Vec_IntSize((p)->vStarts)) && ((pLine) = Wlc_PrsStr(p, Vec_IntEntry((p)->vStarts, i))); i++ ) |
#define | Wlc_PrsForEachLineStart(p, pLine, i, Start) for ( i = Start; (i < Vec_IntSize((p)->vStarts)) && ((pLine) = Wlc_PrsStr(p, Vec_IntEntry((p)->vStarts, i))); i++ ) |
Typedefs | |
typedef struct Wlc_Prs_t_ | Wlc_Prs_t |
Functions | |
static int | Wlc_PrsOffset (Wlc_Prs_t *p, char *pStr) |
static char * | Wlc_PrsStr (Wlc_Prs_t *p, int iOffset) |
static int | Wlc_PrsStrCmp (char *pStr, char *pWhat) |
Wlc_Prs_t * | Wlc_PrsStart (char *pFileName) |
FUNCTION DEFINITIONS ///. More... | |
void | Wlc_PrsStop (Wlc_Prs_t *p) |
int | Wlc_PrsWriteErrorMessage (Wlc_Prs_t *p, char *pCur, const char *format,...) |
void | Wlc_PrsPrintErrorMessage (Wlc_Prs_t *p) |
static int | Wlc_PrsIsDigit (char *pStr) |
static int | Wlc_PrsIsChar (char *pStr) |
static char * | Wlc_PrsSkipSpaces (char *pStr) |
static char * | Wlc_PrsFindSymbol (char *pStr, char Symb) |
static char * | Wlc_PrsFindSymbolTwo (char *pStr, char Symb, char Symb2) |
static char * | Wlc_PrsFindClosingParanthesis (char *pStr, char Open, char Close) |
int | Wlc_PrsRemoveComments (Wlc_Prs_t *p) |
int | Wlc_PrsPrepare (Wlc_Prs_t *p) |
char * | Wlc_PrsStrtok (char *s, const char *delim) |
static char * | Wlc_PrsFindRange (char *pStr, int *End, int *Beg) |
static char * | Wlc_PrsFindWord (char *pStr, char *pWord, int *fFound) |
static char * | Wlc_PrsFindName (char *pStr, char **ppPlace) |
static char * | Wlc_PrsReadConstant (Wlc_Prs_t *p, char *pStr, Vec_Int_t *vFanins, int *pRange, int *pSigned) |
static char * | Wlc_PrsReadName (Wlc_Prs_t *p, char *pStr, Vec_Int_t *vFanins) |
static int | Wlc_PrsFindDefinition (Wlc_Prs_t *p, char *pStr, Vec_Int_t *vFanins) |
int | Wlc_PrsReadDeclaration (Wlc_Prs_t *p, char *pStart) |
int | Wlc_PrsDerive (Wlc_Prs_t *p) |
Wlc_Ntk_t * | Wlc_ReadVer (char *pFileName) |
void | Io_ReadWordTest (char *pFileName) |
#define Wlc_PrsForEachLine | ( | p, | |
pLine, | |||
i | |||
) | for ( i = 0; (i < Vec_IntSize((p)->vStarts)) && ((pLine) = Wlc_PrsStr(p, Vec_IntEntry((p)->vStarts, i))); i++ ) |
Definition at line 53 of file wlcReadVer.c.
#define Wlc_PrsForEachLineStart | ( | p, | |
pLine, | |||
i, | |||
Start | |||
) | for ( i = Start; (i < Vec_IntSize((p)->vStarts)) && ((pLine) = Wlc_PrsStr(p, Vec_IntEntry((p)->vStarts, i))); i++ ) |
Definition at line 55 of file wlcReadVer.c.
#define WLV_PRS_MAX_LINE 1000 |
DECLARATIONS ///.
CFile****************************************************************
FileName [wlcReadVer.c]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [Verilog parser.]
Synopsis [Parses several flavors of word-level Verilog.]
Author [Alan Mishchenko]
Affiliation [UC Berkeley]
Date [Ver. 1.0. Started - August 22, 2014.]
Revision [
]
Definition at line 31 of file wlcReadVer.c.
typedef struct Wlc_Prs_t_ Wlc_Prs_t |
Definition at line 33 of file wlcReadVer.c.
void Io_ReadWordTest | ( | char * | pFileName | ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 1114 of file wlcReadVer.c.
int Wlc_PrsDerive | ( | Wlc_Prs_t * | p | ) |
Definition at line 789 of file wlcReadVer.c.
|
inlinestatic |
Definition at line 196 of file wlcReadVer.c.
Definition at line 567 of file wlcReadVer.c.
|
inlinestatic |
Definition at line 455 of file wlcReadVer.c.
|
inlinestatic |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 416 of file wlcReadVer.c.
|
inlinestatic |
Definition at line 175 of file wlcReadVer.c.
|
inlinestatic |
Definition at line 189 of file wlcReadVer.c.
|
inlinestatic |
Definition at line 446 of file wlcReadVer.c.
|
inlinestatic |
Definition at line 162 of file wlcReadVer.c.
|
inlinestatic |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 158 of file wlcReadVer.c.
|
inlinestatic |
Definition at line 49 of file wlcReadVer.c.
int Wlc_PrsPrepare | ( | Wlc_Prs_t * | p | ) |
Definition at line 282 of file wlcReadVer.c.
void Wlc_PrsPrintErrorMessage | ( | Wlc_Prs_t * | p | ) |
Definition at line 140 of file wlcReadVer.c.
|
inlinestatic |
Definition at line 478 of file wlcReadVer.c.
int Wlc_PrsReadDeclaration | ( | Wlc_Prs_t * | p, |
char * | pStart | ||
) |
Definition at line 738 of file wlcReadVer.c.
Definition at line 528 of file wlcReadVer.c.
int Wlc_PrsRemoveComments | ( | Wlc_Prs_t * | p | ) |
Definition at line 219 of file wlcReadVer.c.
|
inlinestatic |
Definition at line 169 of file wlcReadVer.c.
Wlc_Prs_t* Wlc_PrsStart | ( | char * | pFileName | ) |
FUNCTION DEFINITIONS ///.
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 75 of file wlcReadVer.c.
void Wlc_PrsStop | ( | Wlc_Prs_t * | p | ) |
Definition at line 91 of file wlcReadVer.c.
|
inlinestatic |
Definition at line 50 of file wlcReadVer.c.
|
inlinestatic |
char* Wlc_PrsStrtok | ( | char * | s, |
const char * | delim | ||
) |
Function*************************************************************
Synopsis [Modified version of strtok().]
Description []
SideEffects []
SeeAlso []
Definition at line 355 of file wlcReadVer.c.
Function*************************************************************
Synopsis [Prints the error message including the file name and line number.]
Description []
SideEffects []
SeeAlso []
Definition at line 116 of file wlcReadVer.c.
Wlc_Ntk_t* Wlc_ReadVer | ( | char * | pFileName | ) |
Definition at line 1080 of file wlcReadVer.c.