abc-master
|
#include "ver.h"
Go to the source code of this file.
Data Structures | |
struct | Ver_Stream_t_ |
Macros | |
#define | VER_BUFFER_SIZE 1048576 |
DECLARATIONS ///. More... | |
#define | VER_OFFSET_SIZE 65536 |
#define | VER_WORD_SIZE 65536 |
#define | VER_MINIMUM(a, b) (((a) < (b))? (a) : (b)) |
Functions | |
static void | Ver_StreamReload (Ver_Stream_t *p) |
Ver_Stream_t * | Ver_StreamAlloc (char *pFileName) |
FUNCTION DEFINITIONS ///. More... | |
void | Ver_StreamFree (Ver_Stream_t *p) |
char * | Ver_StreamGetFileName (Ver_Stream_t *p) |
int | Ver_StreamGetFileSize (Ver_Stream_t *p) |
int | Ver_StreamGetCurPosition (Ver_Stream_t *p) |
int | Ver_StreamGetLineNumber (Ver_Stream_t *p) |
int | Ver_StreamIsOkey (Ver_Stream_t *p) |
char | Ver_StreamScanChar (Ver_Stream_t *p) |
char | Ver_StreamPopChar (Ver_Stream_t *p) |
void | Ver_StreamSkipChars (Ver_Stream_t *p, char *pCharsToSkip) |
void | Ver_StreamSkipToChars (Ver_Stream_t *p, char *pCharsToStop) |
char * | Ver_StreamGetWord (Ver_Stream_t *p, char *pCharsToStop) |
#define VER_BUFFER_SIZE 1048576 |
DECLARATIONS ///.
CFile****************************************************************
FileName [verStream.c]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [Verilog parser.]
Synopsis [Input file stream, which knows nothing about Verilog.]
Author [Alan Mishchenko]
Affiliation [UC Berkeley]
Date [Ver. 1.0. Started - August 19, 2006.]
Revision [
]
Definition at line 30 of file verStream.c.
#define VER_MINIMUM | ( | a, | |
b | |||
) | (((a) < (b))? (a) : (b)) |
Definition at line 34 of file verStream.c.
#define VER_OFFSET_SIZE 65536 |
Definition at line 31 of file verStream.c.
#define VER_WORD_SIZE 65536 |
Definition at line 32 of file verStream.c.
Ver_Stream_t* Ver_StreamAlloc | ( | char * | pFileName | ) |
FUNCTION DEFINITIONS ///.
Function*************************************************************
Synopsis [Starts the file reader for the given file.]
Description []
SideEffects []
SeeAlso []
Definition at line 74 of file verStream.c.
void Ver_StreamFree | ( | Ver_Stream_t * | p | ) |
Function*************************************************************
Synopsis [Stops the file reader.]
Description []
SideEffects []
SeeAlso []
Definition at line 157 of file verStream.c.
int Ver_StreamGetCurPosition | ( | Ver_Stream_t * | p | ) |
Function*************************************************************
Synopsis [Returns the current reading position.]
Description []
SideEffects []
SeeAlso []
Definition at line 208 of file verStream.c.
char* Ver_StreamGetFileName | ( | Ver_Stream_t * | p | ) |
Function*************************************************************
Synopsis [Returns the file size.]
Description []
SideEffects []
SeeAlso []
Definition at line 176 of file verStream.c.
int Ver_StreamGetFileSize | ( | Ver_Stream_t * | p | ) |
Function*************************************************************
Synopsis [Returns the file size.]
Description []
SideEffects []
SeeAlso []
Definition at line 192 of file verStream.c.
int Ver_StreamGetLineNumber | ( | Ver_Stream_t * | p | ) |
Function*************************************************************
Synopsis [Returns the line number for the given token.]
Description []
SideEffects []
SeeAlso []
Definition at line 224 of file verStream.c.
char* Ver_StreamGetWord | ( | Ver_Stream_t * | p, |
char * | pCharsToStop | ||
) |
Function*************************************************************
Synopsis [Returns current word delimited by the set of symbols.]
Description [Modifies the stream by inserting 0 at the first encounter of one of the symbols in the list.]
SideEffects []
SeeAlso []
Definition at line 397 of file verStream.c.
int Ver_StreamIsOkey | ( | Ver_Stream_t * | p | ) |
Function*************************************************************
Synopsis [Returns current symbol.]
Description []
SideEffects []
SeeAlso []
Definition at line 242 of file verStream.c.
char Ver_StreamPopChar | ( | Ver_Stream_t * | p | ) |
Function*************************************************************
Synopsis [Returns current symbol and moves to the next.]
Description []
SideEffects []
SeeAlso []
Definition at line 275 of file verStream.c.
|
static |
Function*************************************************************
Synopsis [Loads new data into the file reader.]
Description []
SideEffects []
SeeAlso []
Definition at line 124 of file verStream.c.
char Ver_StreamScanChar | ( | Ver_Stream_t * | p | ) |
Function*************************************************************
Synopsis [Returns current symbol.]
Description []
SideEffects []
SeeAlso []
Definition at line 258 of file verStream.c.
void Ver_StreamSkipChars | ( | Ver_Stream_t * | p, |
char * | pCharsToSkip | ||
) |
Function*************************************************************
Synopsis [Skips the current symbol and all symbols from the list.]
Description []
SideEffects []
SeeAlso []
Definition at line 304 of file verStream.c.
void Ver_StreamSkipToChars | ( | Ver_Stream_t * | p, |
char * | pCharsToStop | ||
) |
Function*************************************************************
Synopsis [Skips all symbols until encountering one from the list.]
Description []
SideEffects []
SeeAlso []
Definition at line 349 of file verStream.c.