abc-master
|
#include "misc/zlib/zlib.h"
#include "misc/bzlib/bzlib.h"
#include "base/abc/abc.h"
#include "misc/vec/vecPtr.h"
#include "ioAbc.h"
#include "map/mio/mio.h"
#include "base/main/main.h"
Go to the source code of this file.
Data Structures | |
struct | Io_MvVar_t_ |
struct | Io_MvMod_t_ |
struct | Io_MvMan_t_ |
struct | buflist |
Macros | |
#define | IO_BLIFMV_MAXVALUES 256 |
DECLARATIONS ///. More... | |
Typedefs | |
typedef struct Io_MvVar_t_ | Io_MvVar_t |
typedef struct Io_MvMod_t_ | Io_MvMod_t |
typedef struct Io_MvMan_t_ | Io_MvMan_t |
typedef struct buflist | buflist |
Functions | |
static Io_MvMan_t * | Io_MvAlloc () |
static void | Io_MvFree (Io_MvMan_t *p) |
static Io_MvMod_t * | Io_MvModAlloc () |
static void | Io_MvModFree (Io_MvMod_t *p) |
static char * | Io_MvLoadFile (char *pFileName) |
static void | Io_MvReadPreparse (Io_MvMan_t *p) |
static int | Io_MvReadInterfaces (Io_MvMan_t *p) |
static Abc_Des_t * | Io_MvParse (Io_MvMan_t *p) |
static int | Io_MvParseLineModel (Io_MvMod_t *p, char *pLine) |
static int | Io_MvParseLineInputs (Io_MvMod_t *p, char *pLine) |
static int | Io_MvParseLineOutputs (Io_MvMod_t *p, char *pLine) |
static int | Io_MvParseLineConstrs (Io_MvMod_t *p, char *pLine) |
static int | Io_MvParseLineLatch (Io_MvMod_t *p, char *pLine) |
static int | Io_MvParseLineFlop (Io_MvMod_t *p, char *pLine) |
static int | Io_MvParseLineSubckt (Io_MvMod_t *p, char *pLine) |
static Vec_Int_t * | Io_MvParseLineOnehot (Io_MvMod_t *p, char *pLine) |
static int | Io_MvParseLineMv (Io_MvMod_t *p, char *pLine) |
static int | Io_MvParseLineNamesMv (Io_MvMod_t *p, char *pLine, int fReset) |
static int | Io_MvParseLineNamesBlif (Io_MvMod_t *p, char *pLine) |
static int | Io_MvParseLineShortBlif (Io_MvMod_t *p, char *pLine) |
static int | Io_MvParseLineLtlProperty (Io_MvMod_t *p, char *pLine) |
static int | Io_MvParseLineGateBlif (Io_MvMod_t *p, Vec_Ptr_t *vTokens) |
static Io_MvVar_t * | Abc_NtkMvVarDup (Abc_Ntk_t *pNtk, Io_MvVar_t *pVar) |
static int | Io_MvCharIsSpace (char s) |
static int | Io_MvCharIsMvSymb (char s) |
void | Abc_NtkStartMvVars (Abc_Ntk_t *pNtk) |
DECLARATIONS ///. More... | |
Abc_Ntk_t * | Io_ReadBlifMv (char *pFileName, int fBlifMv, int fCheck) |
FUNCTION DEFINITIONS ///. More... | |
static int | Io_MvCountChars (char *pLine, char Char) |
static char * | Io_MvFindArrow (char *pLine) |
static void | Io_MvCollectTokens (Vec_Ptr_t *vTokens, char *pInput, char *pOutput) |
static void | Io_MvSplitIntoTokens (Vec_Ptr_t *vTokens, char *pLine, char Stop) |
static void | Io_MvSplitIntoTokensMv (Vec_Ptr_t *vTokens, char *pLine) |
static void | Io_MvSplitIntoTokensAndClear (Vec_Ptr_t *vTokens, char *pLine, char Stop, char Char) |
static int | Io_MvGetLine (Io_MvMan_t *p, char *pToken) |
char * | Io_MvLoadFileBz2 (char *pFileName, int *pnFileSize) |
static char * | Io_MvLoadFileGz (char *pFileName, int *pnFileSize) |
static int | Io_MvWriteValues (Abc_Obj_t *pNode, Vec_Str_t *vFunc) |
static int | Io_MvParseLiteralMv (Io_MvMod_t *p, Abc_Obj_t *pNode, char *pToken, Vec_Str_t *vFunc, int iLit) |
static char * | Io_MvParseTableMv (Io_MvMod_t *p, Abc_Obj_t *pNode, Vec_Ptr_t *vTokens2, int nInputs, int nOutputs, int iOut) |
static Abc_Obj_t * | Io_MvParseAddResetCircuit (Io_MvMod_t *p, char *pName) |
static int | Io_MvParseLineNamesMvOne (Io_MvMod_t *p, Vec_Ptr_t *vTokens, Vec_Ptr_t *vTokens2, int nInputs, int nOutputs, int iOut, int fReset) |
static char * | Io_MvParseTableBlif (Io_MvMod_t *p, char *pTable, int nFanins) |
static char * | Io_ReadBlifCleanName (char *pName) |
static void | Abc_MapBoxSetPrevNext (Vec_Ptr_t *vDrivers, Vec_Int_t *vMapIn, Vec_Int_t *vMapOut, int Id) |
static int | Abc_MapBox2Next (Vec_Ptr_t *vDrivers, Vec_Int_t *vMapIn, Vec_Int_t *vMapOut, int Id) |
static int | Abc_MapBox2Prev (Vec_Ptr_t *vDrivers, Vec_Int_t *vMapIn, Vec_Int_t *vMapOut, int Id) |
Variables | |
Vec_Ptr_t * | vGlobalLtlArray |
#define IO_BLIFMV_MAXVALUES 256 |
DECLARATIONS ///.
CFile****************************************************************
FileName [ioReadBlifMv.c]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [Command processing package.]
Synopsis [Procedures to read BLIF-MV file.]
Author [Alan Mishchenko]
Affiliation [UC Berkeley]
Date [Ver. 1.0. Started - January 8, 2007.]
Revision [
]
Definition at line 33 of file ioReadBlifMv.c.
Function*************************************************************
Synopsis [Reads the file into a character buffer.]
Description []
SideEffects []
SeeAlso []
typedef struct Io_MvMan_t_ Io_MvMan_t |
Definition at line 38 of file ioReadBlifMv.c.
typedef struct Io_MvMod_t_ Io_MvMod_t |
Definition at line 37 of file ioReadBlifMv.c.
typedef struct Io_MvVar_t_ Io_MvVar_t |
Definition at line 36 of file ioReadBlifMv.c.
|
inlinestatic |
Definition at line 2346 of file ioReadBlifMv.c.
|
inlinestatic |
Definition at line 2351 of file ioReadBlifMv.c.
|
inlinestatic |
Function*************************************************************
Synopsis [Box mapping procedures.]
Description []
SideEffects []
SeeAlso []
Definition at line 2338 of file ioReadBlifMv.c.
|
static |
Function*************************************************************
Synopsis [Duplicate the MV variable.]
Description []
SideEffects []
SeeAlso []
Definition at line 2181 of file ioReadBlifMv.c.
void Abc_NtkStartMvVars | ( | Abc_Ntk_t * | pNtk | ) |
DECLARATIONS ///.
CFile****************************************************************
FileName [abcBlifMv.c]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [Network and node package.]
Synopsis [Procedures to process BLIF-MV networks and AIGs.]
Author [Alan Mishchenko]
Affiliation [UC Berkeley]
Date [Ver. 1.0. Started - June 20, 2005.]
Revision [
]FUNCTION DEFINITIONS /// Function*************************************************************
Synopsis [Starts the Mv-Var manager.]
Description []
SideEffects []
SeeAlso []
Definition at line 46 of file abcBlifMv.c.
|
static |
Function*************************************************************
Synopsis [Allocates the BLIF parsing structure.]
Description []
SideEffects []
SeeAlso []
Definition at line 269 of file ioReadBlifMv.c.
|
static |
Definition at line 123 of file ioReadBlifMv.c.
|
static |
Definition at line 122 of file ioReadBlifMv.c.
|
static |
Function*************************************************************
Synopsis [Collects the already split tokens.]
Description []
SideEffects []
SeeAlso []
Definition at line 434 of file ioReadBlifMv.c.
|
static |
Function*************************************************************
Synopsis [Counts the number of given chars.]
Description []
SideEffects []
SeeAlso []
Definition at line 389 of file ioReadBlifMv.c.
|
static |
Function*************************************************************
Synopsis [Returns the place where the arrow is hiding.]
Description []
SideEffects []
SeeAlso []
Definition at line 410 of file ioReadBlifMv.c.
|
static |
Function*************************************************************
Synopsis [Frees the BLIF parsing structure.]
Description []
SideEffects []
SeeAlso []
Definition at line 293 of file ioReadBlifMv.c.
|
static |
Function*************************************************************
Synopsis [Returns the 1-based number of the line in which the token occurs.]
Description []
SideEffects []
SeeAlso []
Definition at line 524 of file ioReadBlifMv.c.
|
static |
Function*************************************************************
Synopsis [Reads the file into a character buffer.]
Description []
SideEffects []
SeeAlso []
Definition at line 665 of file ioReadBlifMv.c.
char* Io_MvLoadFileBz2 | ( | char * | pFileName, |
int * | pnFileSize | ||
) |
Definition at line 551 of file ioReadBlifMv.c.
|
static |
Function*************************************************************
Synopsis [Reads the file into a character buffer.]
Description []
SideEffects []
SeeAlso []
Definition at line 631 of file ioReadBlifMv.c.
|
static |
Function*************************************************************
Synopsis [Allocates the BLIF parsing structure for one model.]
Description []
SideEffects []
SeeAlso []
Definition at line 326 of file ioReadBlifMv.c.
|
static |
Function*************************************************************
Synopsis [Allocates the BLIF parsing structure for one model.]
Description []
SideEffects []
SeeAlso []
Definition at line 357 of file ioReadBlifMv.c.
|
static |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 903 of file ioReadBlifMv.c.
|
static |
Function*************************************************************
Synopsis [Adds reset circuitry corresponding to latch with pName.]
Description [Returns the reset node's net.]
SideEffects []
SeeAlso []
Definition at line 1792 of file ioReadBlifMv.c.
|
static |
Function*************************************************************
Synopsis [Parses the outputs line.]
Description []
SideEffects []
SeeAlso []
Definition at line 1138 of file ioReadBlifMv.c.
|
static |
Function*************************************************************
Synopsis [Parses the latches line.]
Description []
SideEffects []
SeeAlso []
Definition at line 1273 of file ioReadBlifMv.c.
|
static |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 2236 of file ioReadBlifMv.c.
|
static |
Function*************************************************************
Synopsis [Parses the inputs line.]
Description []
SideEffects []
SeeAlso []
Definition at line 1090 of file ioReadBlifMv.c.
|
static |
Function*************************************************************
Synopsis [Parses the latches line.]
Description []
SideEffects []
SeeAlso []
Definition at line 1205 of file ioReadBlifMv.c.
|
static |
Function*************************************************************
Synopsis [Parses the LTL property line.]
Description []
SideEffects []
SeeAlso []
Definition at line 1162 of file ioReadBlifMv.c.
|
static |
Function*************************************************************
Synopsis [Parses the model line.]
Description []
SideEffects []
SeeAlso []
Definition at line 1047 of file ioReadBlifMv.c.
|
static |
Function*************************************************************
Synopsis [Parses the mv line.]
Description []
SideEffects []
SeeAlso []
Definition at line 1541 of file ioReadBlifMv.c.
|
static |
Function*************************************************************
Synopsis [Parses the nodes line.]
Description []
SideEffects []
SeeAlso []
Definition at line 2073 of file ioReadBlifMv.c.
|
static |
Function*************************************************************
Synopsis [Parses the nodes line.]
Description []
SideEffects []
SeeAlso []
Definition at line 1904 of file ioReadBlifMv.c.
|
static |
Function*************************************************************
Synopsis [Parses the nodes line.]
Description []
SideEffects []
SeeAlso []
Definition at line 1846 of file ioReadBlifMv.c.
|
static |
Function*************************************************************
Synopsis [Parses the subckt line.]
Description []
SideEffects []
SeeAlso []
Definition at line 1483 of file ioReadBlifMv.c.
|
static |
Function*************************************************************
Synopsis [Parses the outputs line.]
Description []
SideEffects []
SeeAlso []
Definition at line 1114 of file ioReadBlifMv.c.
|
static |
Function*************************************************************
Synopsis [Parses the nodes line.]
Description []
SideEffects []
SeeAlso []
Definition at line 2121 of file ioReadBlifMv.c.
|
static |
Function*************************************************************
Synopsis [Parses the subckt line.]
Description []
SideEffects []
SeeAlso []
Definition at line 1348 of file ioReadBlifMv.c.
|
static |
Function*************************************************************
Synopsis [Translated one literal.]
Description []
SideEffects []
SeeAlso []
Definition at line 1657 of file ioReadBlifMv.c.
|
static |
Function*************************************************************
Synopsis [Constructs the SOP cover from the file parsing info.]
Description []
SideEffects []
SeeAlso []
Definition at line 1999 of file ioReadBlifMv.c.
|
static |
Function*************************************************************
Synopsis [Constructs the MV-SOP cover from the file parsing info.]
Description []
SideEffects []
SeeAlso []
Definition at line 1738 of file ioReadBlifMv.c.
|
static |
Function*************************************************************
Synopsis [Parses interfaces of the models.]
Description []
SideEffects []
SeeAlso []
Definition at line 846 of file ioReadBlifMv.c.
|
static |
Function*************************************************************
Synopsis [Prepares the parsing.]
Description [Performs several preliminary operations:
SideEffects []
SeeAlso []
Definition at line 716 of file ioReadBlifMv.c.
|
static |
Function*************************************************************
Synopsis [Splits the line into tokens.]
Description []
SideEffects []
SeeAlso []
Definition at line 458 of file ioReadBlifMv.c.
|
static |
Function*************************************************************
Synopsis [Splits the line into tokens.]
Description []
SideEffects []
SeeAlso []
Definition at line 502 of file ioReadBlifMv.c.
|
static |
Function*************************************************************
Synopsis [Splits the line into tokens when .default may be present.]
Description []
SideEffects []
SeeAlso []
Definition at line 480 of file ioReadBlifMv.c.
Function*************************************************************
Synopsis [Writes the values into the BLIF-MV representation for the node.]
Description []
SideEffects []
SeeAlso []
Definition at line 1627 of file ioReadBlifMv.c.
|
static |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 2215 of file ioReadBlifMv.c.
Abc_Ntk_t* Io_ReadBlifMv | ( | char * | pFileName, |
int | fBlifMv, | ||
int | fCheck | ||
) |
FUNCTION DEFINITIONS ///.
Function*************************************************************
Synopsis [Reads the network from the BLIF or BLIF-MV file.]
Description []
SideEffects []
SeeAlso []
Definition at line 142 of file ioReadBlifMv.c.
Vec_Ptr_t* vGlobalLtlArray |
Definition at line 40 of file ioReadBlifMv.c.