abc-master
|
Go to the source code of this file.
Macros | |
#define | IO_WRITE_LINE_LENGTH 78 |
MACRO DEFINITIONS ///. More... | |
Enumerations | |
enum | Io_FileType_t { IO_FILE_NONE = 0, IO_FILE_AIGER, IO_FILE_BAF, IO_FILE_BBLIF, IO_FILE_BLIF, IO_FILE_BLIFMV, IO_FILE_BENCH, IO_FILE_BOOK, IO_FILE_CNF, IO_FILE_DOT, IO_FILE_EDIF, IO_FILE_EQN, IO_FILE_GML, IO_FILE_LIST, IO_FILE_PLA, IO_FILE_SMV, IO_FILE_VERILOG, IO_FILE_UNKNOWN } |
INCLUDES ///. More... | |
Functions | |
Abc_Ntk_t * | Io_ReadAiger (char *pFileName, int fCheck) |
FUNCTION DECLARATIONS ///. More... | |
Abc_Ntk_t * | Io_ReadBaf (char *pFileName, int fCheck) |
DECLARATIONS ///. More... | |
Abc_Ntk_t * | Io_ReadBblif (char *pFileName, int fCheck) |
Abc_Ntk_t * | Io_ReadBlif (char *pFileName, int fCheck) |
FUNCTION DEFINITIONS ///. More... | |
Abc_Ntk_t * | Io_ReadBlifMv (char *pFileName, int fBlifMv, int fCheck) |
FUNCTION DEFINITIONS ///. More... | |
Abc_Ntk_t * | Io_ReadBench (char *pFileName, int fCheck) |
FUNCTION DEFINITIONS ///. More... | |
void | Io_ReadBenchInit (Abc_Ntk_t *pNtk, char *pFileName) |
Abc_Ntk_t * | Io_ReadEdif (char *pFileName, int fCheck) |
FUNCTION DEFINITIONS ///. More... | |
Abc_Ntk_t * | Io_ReadEqn (char *pFileName, int fCheck) |
FUNCTION DEFINITIONS ///. More... | |
Abc_Ntk_t * | Io_ReadPla (char *pFileName, int fZeros, int fCheck) |
FUNCTION DEFINITIONS ///. More... | |
Abc_Ntk_t * | Io_ReadVerilog (char *pFileName, int fCheck) |
DECLARATIONS ///. More... | |
void | Io_WriteAiger (Abc_Ntk_t *pNtk, char *pFileName, int fWriteSymbols, int fCompact, int fUnique) |
void | Io_WriteAigerCex (Abc_Cex_t *pCex, Abc_Ntk_t *pNtk, void *pG, char *pFileName) |
void | Io_WriteBaf (Abc_Ntk_t *pNtk, char *pFileName) |
DECLARATIONS ///. More... | |
void | Io_WriteBblif (Abc_Ntk_t *pNtk, char *pFileName) |
void | Io_WriteBlifLogic (Abc_Ntk_t *pNtk, char *pFileName, int fWriteLatches) |
FUNCTION DEFINITIONS ///. More... | |
void | Io_WriteBlif (Abc_Ntk_t *pNtk, char *pFileName, int fWriteLatches, int fBb2Wb, int fSeq) |
void | Io_WriteTimingInfo (FILE *pFile, Abc_Ntk_t *pNtk) |
void | Io_WriteBlifSpecial (Abc_Ntk_t *pNtk, char *FileName, char *pLutStruct, int fUseHie) |
void | Io_WriteBlifMv (Abc_Ntk_t *pNtk, char *FileName) |
FUNCTION DEFINITIONS ///. More... | |
int | Io_WriteBench (Abc_Ntk_t *pNtk, const char *FileName) |
FUNCTION DEFINITIONS ///. More... | |
int | Io_WriteBenchLut (Abc_Ntk_t *pNtk, char *FileName) |
void | Io_WriteBook (Abc_Ntk_t *pNtk, char *FileName) |
int | Io_WriteCnf (Abc_Ntk_t *pNtk, char *FileName, int fAllPrimes) |
FUNCTION DEFINITIONS ///. More... | |
void | Io_WriteDot (Abc_Ntk_t *pNtk, char *FileName) |
FUNCTION DEFINITIONS ///. More... | |
void | Io_WriteDotNtk (Abc_Ntk_t *pNtk, Vec_Ptr_t *vNodes, Vec_Ptr_t *vNodesShow, char *pFileName, int fGateNames, int fUseReverse) |
void | Io_WriteDotSeq (Abc_Ntk_t *pNtk, Vec_Ptr_t *vNodes, Vec_Ptr_t *vNodesShow, char *pFileName, int fGateNames, int fUseReverse) |
void | Io_WriteEqn (Abc_Ntk_t *pNtk, char *pFileName) |
FUNCTION DEFINITIONS ///. More... | |
void | Io_WriteGml (Abc_Ntk_t *pNtk, char *pFileName) |
DECLARATIONS ///. More... | |
void | Io_WriteList (Abc_Ntk_t *pNtk, char *pFileName, int fUseHost) |
FUNCTION DEFINITIONS ///. More... | |
int | Io_WritePla (Abc_Ntk_t *pNtk, char *FileName) |
FUNCTION DEFINITIONS ///. More... | |
int | Io_WriteSmv (Abc_Ntk_t *pNtk, char *FileName) |
void | Io_WriteVerilog (Abc_Ntk_t *pNtk, char *FileName) |
FUNCTION DEFINITIONS ///. More... | |
Io_FileType_t | Io_ReadFileType (char *pFileName) |
DECLARATIONS ///. More... | |
Io_FileType_t | Io_ReadLibType (char *pFileName) |
Abc_Ntk_t * | Io_ReadNetlist (char *pFileName, Io_FileType_t FileType, int fCheck) |
Abc_Ntk_t * | Io_Read (char *pFileName, Io_FileType_t FileType, int fCheck, int fBarBufs) |
void | Io_Write (Abc_Ntk_t *pNtk, char *pFileName, Io_FileType_t FileType) |
void | Io_WriteHie (Abc_Ntk_t *pNtk, char *pBaseName, char *pFileName) |
Abc_Obj_t * | Io_ReadCreatePi (Abc_Ntk_t *pNtk, char *pName) |
Abc_Obj_t * | Io_ReadCreatePo (Abc_Ntk_t *pNtk, char *pName) |
Abc_Obj_t * | Io_ReadCreateLatch (Abc_Ntk_t *pNtk, char *pNetLI, char *pNetLO) |
Abc_Obj_t * | Io_ReadCreateResetLatch (Abc_Ntk_t *pNtk, int fBlifMv) |
Abc_Obj_t * | Io_ReadCreateResetMux (Abc_Ntk_t *pNtk, char *pResetLO, char *pDataLI, int fBlifMv) |
Abc_Obj_t * | Io_ReadCreateNode (Abc_Ntk_t *pNtk, char *pNameOut, char *pNamesIn[], int nInputs) |
Abc_Obj_t * | Io_ReadCreateConst (Abc_Ntk_t *pNtk, char *pName, int fConst1) |
Abc_Obj_t * | Io_ReadCreateInv (Abc_Ntk_t *pNtk, char *pNameIn, char *pNameOut) |
Abc_Obj_t * | Io_ReadCreateBuf (Abc_Ntk_t *pNtk, char *pNameIn, char *pNameOut) |
FILE * | Io_FileOpen (const char *FileName, const char *PathVar, const char *Mode, int fVerbose) |
enum Io_FileType_t |
INCLUDES ///.
CFile****************************************************************
FileName [ioAbc.h]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [Command processing package.]
Synopsis [External declarations.]
Author [Alan Mishchenko]
Affiliation [UC Berkeley]
Date [Ver. 1.0. Started - June 20, 2005.]
Revision [
]PARAMETERS ///BASIC TYPES ///
Definition at line 46 of file ioAbc.h.
Function*************************************************************
Synopsis [Provide an fopen replacement with path lookup]
Description [Provide an fopen replacement where the path stored in pathvar MVSIS variable is used to look up the path for name. Returns NULL if file cannot be opened.]
SideEffects []
SeeAlso []
Definition at line 819 of file ioUtil.c.
Abc_Ntk_t* Io_Read | ( | char * | pFileName, |
Io_FileType_t | FileType, | ||
int | fCheck, | ||
int | fBarBufs | ||
) |
Function*************************************************************
Synopsis [Read the network from a file.]
Description []
SideEffects []
SeeAlso []
Definition at line 238 of file ioUtil.c.
Abc_Ntk_t* Io_ReadAiger | ( | char * | pFileName, |
int | fCheck | ||
) |
FUNCTION DECLARATIONS ///.
Function*************************************************************
Synopsis [Reads the AIG in the binary AIGER format.]
Description []
SideEffects []
SeeAlso []
Definition at line 234 of file ioReadAiger.c.
Abc_Ntk_t* Io_ReadBaf | ( | char * | pFileName, |
int | fCheck | ||
) |
DECLARATIONS ///.
CFile****************************************************************
FileName [ioReadBaf.c]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [Command processing package.]
Synopsis [Procedures to read AIG in the binary format.]
Author [Alan Mishchenko]
Affiliation [UC Berkeley]
Date [Ver. 1.0. Started - June 20, 2005.]
Revision [
]FUNCTION DEFINITIONS /// Function*************************************************************
Synopsis [Reads the AIG in the binary format.]
Description []
SideEffects []
SeeAlso []
Definition at line 45 of file ioReadBaf.c.
Abc_Ntk_t* Io_ReadBblif | ( | char * | pFileName, |
int | fCheck | ||
) |
Function*************************************************************
Synopsis [Reads the AIG in the binary format.]
Description []
SideEffects []
SeeAlso []
Definition at line 324 of file ioReadBblif.c.
Abc_Ntk_t* Io_ReadBench | ( | char * | pFileName, |
int | fCheck | ||
) |
FUNCTION DEFINITIONS ///.
Function*************************************************************
Synopsis [Reads the network from a BENCH file.]
Description []
SideEffects []
SeeAlso []
Definition at line 47 of file ioReadBench.c.
void Io_ReadBenchInit | ( | Abc_Ntk_t * | pNtk, |
char * | pFileName | ||
) |
Function*************************************************************
Synopsis [Reads initial state in BENCH format.]
Description []
SideEffects []
SeeAlso []
Definition at line 311 of file ioReadBench.c.
Abc_Ntk_t* Io_ReadBlif | ( | char * | pFileName, |
int | fCheck | ||
) |
FUNCTION DEFINITIONS ///.
Function*************************************************************
Synopsis [Reads the (hierarchical) network from the BLIF file.]
Description []
SideEffects []
SeeAlso []
Definition at line 92 of file ioReadBlif.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.
Function*************************************************************
Synopsis [Create an inverter or buffer for the given net.]
Description [Assumes that the nets already exist.]
SideEffects []
SeeAlso []
Definition at line 795 of file ioUtil.c.
Function*************************************************************
Synopsis [Create a constant 0 node driving the net with this name.]
Description [Assumes that the net already exists.]
SideEffects []
SeeAlso []
Definition at line 754 of file ioUtil.c.
Function*************************************************************
Synopsis [Create an inverter or buffer for the given net.]
Description [Assumes that the nets already exist.]
SideEffects []
SeeAlso []
Definition at line 774 of file ioUtil.c.
Function*************************************************************
Synopsis [Create a latch with the given input/output.]
Description [By default, the latch value is unknown (ABC_INIT_NONE).]
SideEffects []
SeeAlso []
Definition at line 660 of file ioUtil.c.
Function*************************************************************
Synopsis [Create node and the net driven by it.]
Description []
SideEffects []
SeeAlso []
Definition at line 725 of file ioUtil.c.
Function*************************************************************
Synopsis [Creates PI terminal and net.]
Description []
SideEffects []
SeeAlso []
Definition at line 610 of file ioUtil.c.
Function*************************************************************
Synopsis [Creates PO terminal and net.]
Description []
SideEffects []
SeeAlso []
Definition at line 635 of file ioUtil.c.
Function*************************************************************
Synopsis [Create the reset latch with data=1 and init=0.]
Description []
SideEffects []
SeeAlso []
Definition at line 693 of file ioUtil.c.
Abc_Ntk_t* Io_ReadEdif | ( | char * | pFileName, |
int | fCheck | ||
) |
FUNCTION DEFINITIONS ///.
Function*************************************************************
Synopsis [Reads the network from an EDIF file.]
Description [Works only for the ISCAS benchmarks.]
SideEffects []
SeeAlso []
Definition at line 47 of file ioReadEdif.c.
Abc_Ntk_t* Io_ReadEqn | ( | char * | pFileName, |
int | fCheck | ||
) |
FUNCTION DEFINITIONS ///.
Function*************************************************************
Synopsis [Reads the network from a BENCH file.]
Description []
SideEffects []
SeeAlso []
Definition at line 50 of file ioReadEqn.c.
Io_FileType_t Io_ReadFileType | ( | char * | pFileName | ) |
DECLARATIONS ///.
CFile****************************************************************
FileName [ioUtil.c]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [Command processing package.]
Synopsis [Procedures to write the network in BENCH format.]
Author [Alan Mishchenko]
Affiliation [UC Berkeley]
Date [Ver. 1.0. Started - June 20, 2005.]
Revision [
]FUNCTION DEFINITIONS /// Function*************************************************************
Synopsis [Returns the file type.]
Description []
SideEffects []
SeeAlso []
Definition at line 46 of file ioUtil.c.
Io_FileType_t Io_ReadLibType | ( | char * | pFileName | ) |
Abc_Ntk_t* Io_ReadNetlist | ( | char * | pFileName, |
Io_FileType_t | FileType, | ||
int | fCheck | ||
) |
Function*************************************************************
Synopsis [Read the network from a file.]
Description []
SideEffects []
SeeAlso []
Definition at line 98 of file ioUtil.c.
Abc_Ntk_t* Io_ReadPla | ( | char * | pFileName, |
int | fZeros, | ||
int | fCheck | ||
) |
FUNCTION DEFINITIONS ///.
Function*************************************************************
Synopsis [Reads the network from a PLA file.]
Description []
SideEffects []
SeeAlso []
Definition at line 47 of file ioReadPla.c.
Abc_Ntk_t* Io_ReadVerilog | ( | char * | pFileName, |
int | fCheck | ||
) |
DECLARATIONS ///.
CFile****************************************************************
FileName [ioReadVerilog.c]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [Command processing package.]
Synopsis [Procedure to read network from file.]
Author [Alan Mishchenko]
Affiliation [UC Berkeley]
Date [Ver. 1.0. Started - June 20, 2005.]
Revision [
]FUNCTION DEFINITIONS /// Function*************************************************************
Synopsis [Reads hierarchical design from the Verilog file.]
Description []
SideEffects []
SeeAlso []
Definition at line 48 of file ioReadVerilog.c.
void Io_Write | ( | Abc_Ntk_t * | pNtk, |
char * | pFileName, | ||
Io_FileType_t | FileType | ||
) |
Function*************************************************************
Synopsis [Write the network into file.]
Description []
SideEffects []
SeeAlso []
Definition at line 317 of file ioUtil.c.
void Io_WriteAiger | ( | Abc_Ntk_t * | pNtk, |
char * | pFileName, | ||
int | fWriteSymbols, | ||
int | fCompact, | ||
int | fUnique | ||
) |
Function*************************************************************
Synopsis [Writes the AIG in the binary AIGER format.]
Description []
SideEffects []
SeeAlso []
Definition at line 635 of file ioWriteAiger.c.
Function*************************************************************
Synopsis [Writes the AIG in the binary AIGER format.]
Description []
SideEffects []
SeeAlso []
Definition at line 880 of file ioWriteAiger.c.
void Io_WriteBaf | ( | Abc_Ntk_t * | pNtk, |
char * | pFileName | ||
) |
DECLARATIONS ///.
CFile****************************************************************
FileName [ioWriteBaf.c]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [Command processing package.]
Synopsis [Procedures to write AIG in the binary format.]
Author [Alan Mishchenko]
Affiliation [UC Berkeley]
Date [Ver. 1.0. Started - June 20, 2005.]
Revision [
]FUNCTION DEFINITIONS /// Function*************************************************************
Synopsis [Writes the AIG in the binary format.]
Description []
SideEffects []
SeeAlso []
Definition at line 84 of file ioWriteBaf.c.
void Io_WriteBblif | ( | Abc_Ntk_t * | pNtk, |
char * | pFileName | ||
) |
Function*************************************************************
Synopsis [Writes the AIG in the binary format.]
Description []
SideEffects []
SeeAlso []
Definition at line 99 of file ioWriteBblif.c.
FUNCTION DEFINITIONS ///.
Function*************************************************************
Synopsis [Writes the network in BENCH format.]
Description []
SideEffects []
SeeAlso []
Definition at line 53 of file ioWriteBench.c.
int Io_WriteBenchLut | ( | Abc_Ntk_t * | pNtk, |
char * | pFileName | ||
) |
Function*************************************************************
Synopsis [Writes the network in BENCH format with LUTs and DFFRSE.]
Description []
SideEffects []
SeeAlso []
Definition at line 175 of file ioWriteBench.c.
void Io_WriteBlif | ( | Abc_Ntk_t * | pNtk, |
char * | FileName, | ||
int | fWriteLatches, | ||
int | fBb2Wb, | ||
int | fSeq | ||
) |
Function*************************************************************
Synopsis [Write the network into a BLIF file with the given name.]
Description []
SideEffects []
SeeAlso []
Definition at line 84 of file ioWriteBlif.c.
void Io_WriteBlifLogic | ( | Abc_Ntk_t * | pNtk, |
char * | FileName, | ||
int | fWriteLatches | ||
) |
FUNCTION DEFINITIONS ///.
Function*************************************************************
Synopsis [Write the network into a BLIF file with the given name.]
Description []
SideEffects []
SeeAlso []
Definition at line 59 of file ioWriteBlif.c.
void Io_WriteBlifMv | ( | Abc_Ntk_t * | pNtk, |
char * | FileName | ||
) |
FUNCTION DEFINITIONS ///.
Function*************************************************************
Synopsis [Write the network into a BLIF file with the given name.]
Description []
SideEffects []
SeeAlso []
Definition at line 58 of file ioWriteBlifMv.c.
void Io_WriteBlifSpecial | ( | Abc_Ntk_t * | pNtk, |
char * | FileName, | ||
char * | pLutStruct, | ||
int | fUseHie | ||
) |
Function*************************************************************
Synopsis [Write the network into a BLIF file with the given name.]
Description []
SideEffects []
SeeAlso []
Definition at line 1378 of file ioWriteBlif.c.
void Io_WriteBook | ( | Abc_Ntk_t * | pNtk, |
char * | FileName | ||
) |
Function*************************************************************
Synopsis [Write the network into a BOOK file with the given name.]
Description []
SideEffects []
SeeAlso []
Definition at line 100 of file ioWriteBook.c.
int Io_WriteCnf | ( | Abc_Ntk_t * | pNtk, |
char * | pFileName, | ||
int | fAllPrimes | ||
) |
FUNCTION DEFINITIONS ///.
Function*************************************************************
Synopsis [Write the miter cone into a CNF file for the SAT solver.]
Description []
SideEffects []
SeeAlso []
Definition at line 48 of file ioWriteCnf.c.
void Io_WriteDot | ( | Abc_Ntk_t * | pNtk, |
char * | FileName | ||
) |
FUNCTION DEFINITIONS ///.
Function*************************************************************
Synopsis [Writes the graph structure of network for DOT.]
Description [Useful for graph visualization using tools such as GraphViz: http://www.graphviz.org/]
SideEffects []
SeeAlso []
Definition at line 51 of file ioWriteDot.c.
void Io_WriteDotNtk | ( | Abc_Ntk_t * | pNtk, |
Vec_Ptr_t * | vNodes, | ||
Vec_Ptr_t * | vNodesShow, | ||
char * | pFileName, | ||
int | fGateNames, | ||
int | fUseReverse | ||
) |
Function*************************************************************
Synopsis [Writes the graph structure of network for DOT.]
Description [Useful for graph visualization using tools such as GraphViz: http://www.graphviz.org/]
SideEffects []
SeeAlso []
Definition at line 71 of file ioWriteDot.c.
void Io_WriteDotSeq | ( | Abc_Ntk_t * | pNtk, |
Vec_Ptr_t * | vNodes, | ||
Vec_Ptr_t * | vNodesShow, | ||
char * | pFileName, | ||
int | fGateNames, | ||
int | fUseReverse | ||
) |
Function*************************************************************
Synopsis [Writes the graph structure of network for DOT.]
Description [Useful for graph visualization using tools such as GraphViz: http://www.graphviz.org/]
SideEffects []
SeeAlso []
Definition at line 434 of file ioWriteDot.c.
void Io_WriteEqn | ( | Abc_Ntk_t * | pNtk, |
char * | pFileName | ||
) |
FUNCTION DEFINITIONS ///.
Function*************************************************************
Synopsis [Writes the logic network in the equation format.]
Description []
SideEffects []
SeeAlso []
Definition at line 50 of file ioWriteEqn.c.
void Io_WriteGml | ( | Abc_Ntk_t * | pNtk, |
char * | pFileName | ||
) |
DECLARATIONS ///.
CFile****************************************************************
FileName [ioWriteGml.c]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [Command processing package.]
Synopsis [Procedures to write the graph structure of AIG in GML.]
Author [Alan Mishchenko]
Affiliation [UC Berkeley]
Date [Ver. 1.0. Started - June 20, 2005.]
Revision [
]FUNCTION DEFINITIONS /// Function*************************************************************
Synopsis [Writes the graph structure of AIG in GML.]
Description [Useful for graph visualization using tools such as yEd: http://www.yworks.com/]
SideEffects []
SeeAlso []
Definition at line 46 of file ioWriteGml.c.
void Io_WriteHie | ( | Abc_Ntk_t * | pNtk, |
char * | pBaseName, | ||
char * | pFileName | ||
) |
Function*************************************************************
Synopsis [Write the network into file.]
Description []
SideEffects []
SeeAlso []
Definition at line 477 of file ioUtil.c.
void Io_WriteList | ( | Abc_Ntk_t * | pNtk, |
char * | pFileName, | ||
int | fUseHost | ||
) |
FUNCTION DEFINITIONS ///.
Function*************************************************************
Synopsis [Writes the adjacency list for a sequential AIG.]
Description []
SideEffects []
SeeAlso []
Definition at line 102 of file ioWriteList.c.
int Io_WritePla | ( | Abc_Ntk_t * | pNtk, |
char * | pFileName | ||
) |
FUNCTION DEFINITIONS ///.
Function*************************************************************
Synopsis [Writes the network in PLA format.]
Description []
SideEffects []
SeeAlso []
Definition at line 47 of file ioWritePla.c.
int Io_WriteSmv | ( | Abc_Ntk_t * | pNtk, |
char * | pFileName | ||
) |
Function*************************************************************
Synopsis [Writes the network in SMV format.]
Description []
SideEffects []
SeeAlso []
Definition at line 71 of file ioWriteSmv.c.
void Io_WriteTimingInfo | ( | FILE * | pFile, |
Abc_Ntk_t * | pNtk | ||
) |
Function*************************************************************
Synopsis [Writes the timing info.]
Description []
SideEffects []
SeeAlso []
Definition at line 665 of file ioWriteBlif.c.
void Io_WriteVerilog | ( | Abc_Ntk_t * | pNtk, |
char * | pFileName | ||
) |
FUNCTION DEFINITIONS ///.
Function*************************************************************
Synopsis [Write verilog.]
Description []
SideEffects []
SeeAlso []
Definition at line 57 of file ioWriteVerilog.c.