#include "if.h"
#include "base/main/main.h"
Go to the source code of this file.
int If_CommandPrintBox |
( |
Abc_Frame_t * |
pAbc, |
|
|
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
|
static |
Function*************************************************************
Synopsis [Command procedure to read LUT libraries.]
Description []
SideEffects []
SeeAlso []
Definition at line 321 of file ifCom.c.
358 fprintf( pErr,
"\nusage: print_box [-vh]\n");
359 fprintf( pErr,
"\t print the current box library\n" );
360 fprintf( pErr,
"\t-v : toggles enabling of verbose output [default = %s]\n", (fVerbose?
"yes" :
"no") );
361 fprintf( pErr,
"\t-h : print the command usage\n");
void If_LibBoxPrint(FILE *pFile, If_LibBox_t *p)
ABC_DLL void * Abc_FrameReadLibBox()
ABC_DLL Abc_Ntk_t * Abc_FrameReadNtk(Abc_Frame_t *p)
ABC_DLL FILE * Abc_FrameReadErr(Abc_Frame_t *p)
ABC_DLL FILE * Abc_FrameReadOut(Abc_Frame_t *p)
int If_CommandPrintLut |
( |
Abc_Frame_t * |
pAbc, |
|
|
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
|
static |
Function*************************************************************
Synopsis [Command procedure to read LUT libraries.]
Description []
SideEffects []
SeeAlso []
Definition at line 182 of file ifCom.c.
219 fprintf( pErr,
"\nusage: print_lut [-vh]\n");
220 fprintf( pErr,
"\t print the current LUT library\n" );
221 fprintf( pErr,
"\t-v : toggles enabling of verbose output [default = %s]\n", (fVerbose?
"yes" :
"no") );
222 fprintf( pErr,
"\t-h : print the command usage\n");
void If_LibLutPrint(If_LibLut_t *pLutLib)
ABC_DLL Abc_Ntk_t * Abc_FrameReadNtk(Abc_Frame_t *p)
ABC_DLL FILE * Abc_FrameReadErr(Abc_Frame_t *p)
ABC_DLL FILE * Abc_FrameReadOut(Abc_Frame_t *p)
ABC_DLL void * Abc_FrameReadLibLut()
int If_CommandReadBox |
( |
Abc_Frame_t * |
pAbc, |
|
|
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
|
static |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 237 of file ifCom.c.
279 if ( (pFile = fopen( FileName,
"r" )) == NULL )
281 fprintf( pErr,
"Cannot open input file \"%s\". ", FileName );
283 fprintf( pErr,
"Did you mean \"%s\"?", FileName );
284 fprintf( pErr,
"\n" );
293 fprintf( pErr,
"Reading box library has failed.\n" );
302 fprintf( pErr,
"\nusage: read_box [-evh]\n");
303 fprintf( pErr,
"\t read the box library from the file\n" );
304 fprintf( pErr,
"\t-e : toggles reading extended format [default = %s]\n", (fExtended?
"yes" :
"no") );
305 fprintf( pErr,
"\t-v : toggles enabling of verbose output [default = %s]\n", (fVerbose?
"yes" :
"no") );
306 fprintf( pErr,
"\t-h : print the command usage\n");
void If_LibBoxFree(If_LibBox_t *p)
If_LibBox_t * If_LibBoxRead2(char *pFileName)
If_LibBox_t * If_LibBoxRead(char *pFileName)
ABC_DLL void * Abc_FrameReadLibBox()
ABC_DLL void Abc_FrameSetLibBox(void *pLib)
ABC_DLL Abc_Ntk_t * Abc_FrameReadNtk(Abc_Frame_t *p)
ABC_DLL FILE * Abc_FrameReadErr(Abc_Frame_t *p)
ABC_DLL FILE * Abc_FrameReadOut(Abc_Frame_t *p)
int If_CommandReadLut |
( |
Abc_Frame_t * |
pAbc, |
|
|
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
|
static |
DECLARATIONS ///.
CFile****************************************************************
FileName [ifCom.c]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [FPGA mapping based on priority cuts.]
Synopsis [Command handlers.]
Author [Alan Mishchenko]
Affiliation [UC Berkeley]
Date [Ver. 1.0. Started - November 21, 2006.]
Revision [
- Id:
- ifCom.c,v 1.00 2006/11/21 00:00:00 alanmi Exp
]
Function*************************************************************
Synopsis [Command procedure to read LUT libraries.]
Description []
SideEffects []
SeeAlso []
Definition at line 92 of file ifCom.c.
129 if ( (pFile = fopen( FileName,
"r" )) == NULL )
131 fprintf( pErr,
"Cannot open input file \"%s\". ", FileName );
133 fprintf( pErr,
"Did you mean \"%s\"?", FileName );
134 fprintf( pErr,
"\n" );
143 fprintf( pErr,
"Reading LUT library has failed.\n" );
152 fprintf( pErr,
"\nusage: read_lut [-vh]\n");
153 fprintf( pErr,
"\t read the LUT library from the file\n" );
154 fprintf( pErr,
"\t-v : toggles enabling of verbose output [default = %s]\n", (fVerbose?
"yes" :
"no") );
155 fprintf( pErr,
"\t-h : print the command usage\n");
156 fprintf( pErr,
"\t \n");
157 fprintf( pErr,
"\t File format for a LUT library:\n");
158 fprintf( pErr,
"\t (the default library is shown)\n");
159 fprintf( pErr,
"\t \n");
160 fprintf( pErr,
"\t # The area/delay of k-variable LUTs:\n");
161 fprintf( pErr,
"\t # k area delay\n");
162 fprintf( pErr,
"\t 1 1 1\n");
163 fprintf( pErr,
"\t 2 2 2\n");
164 fprintf( pErr,
"\t 3 4 3\n");
165 fprintf( pErr,
"\t 4 8 4\n");
166 fprintf( pErr,
"\t 5 16 5\n");
167 fprintf( pErr,
"\t 6 32 6\n");
ABC_DLL void Abc_FrameSetLibLut(void *pLib)
If_LibLut_t * If_LibLutRead(char *FileName)
FUNCTION DEFINITIONS ///.
ABC_DLL Abc_Ntk_t * Abc_FrameReadNtk(Abc_Frame_t *p)
void If_LibLutFree(If_LibLut_t *pLutLib)
ABC_DLL FILE * Abc_FrameReadErr(Abc_Frame_t *p)
ABC_DLL FILE * Abc_FrameReadOut(Abc_Frame_t *p)
ABC_DLL void * Abc_FrameReadLibLut()
Function*************************************************************
Synopsis [Package ending procedure.]
Description []
SideEffects []
SeeAlso []
Definition at line 75 of file ifCom.c.
void If_LibBoxFree(If_LibBox_t *p)
ABC_DLL void * Abc_FrameReadLibBox()
void If_LibLutFree(If_LibLut_t *pLutLib)
ABC_DLL void * Abc_FrameReadLibLut()
FUNCTION DEFINITIONS ///.
Function*************************************************************
Synopsis [Package initialization procedure.]
Description []
SideEffects []
SeeAlso []
Definition at line 51 of file ifCom.c.
54 If_LibLut_t s_LutLib = {
"lutlib", 4, 0, {0,1,1,1,1}, {{0},{1},{1},{1},{1}} };
static int If_CommandPrintBox(Abc_Frame_t *pAbc, int argc, char **argv)
static int If_CommandReadBox(Abc_Frame_t *pAbc, int argc, char **argv)
ABC_DLL void Abc_FrameSetLibLut(void *pLib)
void Cmd_CommandAdd(Abc_Frame_t *pAbc, const char *sGroup, const char *sName, Cmd_CommandFuncType pFunc, int fChanges)
static int If_CommandPrintLut(Abc_Frame_t *pAbc, int argc, char **argv)
If_LibLut_t * If_LibLutDup(If_LibLut_t *p)
static ABC_NAMESPACE_IMPL_START int If_CommandReadLut(Abc_Frame_t *pAbc, int argc, char **argv)
DECLARATIONS ///.