FUNCTION DEFINITIONS ///.
55{
56 int fShowSwitching = 1;
60 float * pSwitching = NULL;
61 int Num;
62
63 assert( Abc_NtkIsStrash(pNtk) );
64
65
67 Abc_Print( 0, "Performing LUT mapping with %d choices.\n", Num );
68
69
70 fShowSwitching |= fSwitching;
71 if ( fShowSwitching )
72 {
75 pSwitching = (float *)vSwitching->pArray;
76 }
77
78
79 pMan = Abc_NtkToFpga( pNtk, fRecovery, pSwitching, fLatchPaths, fVerbose );
80 if ( pSwitching ) {
assert(vSwitching); Vec_IntFree( vSwitching ); }
81 if ( pMan == NULL )
82 return NULL;
88 {
90 return NULL;
91 }
92
93
94 pNtkNew = Abc_NtkFromFpga( pMan, pNtk );
95 if ( pNtkNew == NULL )
96 return NULL;
98
99
101
104
105
107 {
108 printf( "Abc_NtkFpga: The network check has failed.\n" );
110 return NULL;
111 }
112 return pNtkNew;
113}
ABC_DLL int Abc_NtkGetChoiceNum(Abc_Ntk_t *pNtk)
ABC_DLL int Abc_NtkCheck(Abc_Ntk_t *pNtk)
FUNCTION DEFINITIONS ///.
struct Abc_Ntk_t_ Abc_Ntk_t
ABC_DLL int Abc_NtkMinimumBase(Abc_Ntk_t *pNtk)
DECLARATIONS ///.
ABC_DLL void Abc_NtkDelete(Abc_Ntk_t *pNtk)
ABC_DLL Abc_Ntk_t * Abc_NtkDup(Abc_Ntk_t *pNtk)
typedefABC_NAMESPACE_IMPL_START struct Vec_Int_t_ Vec_Int_t
DECLARATIONS ///.
void Fpga_ManFree(Fpga_Man_t *pMan)
struct Fpga_ManStruct_t_ Fpga_Man_t
STRUCTURE DEFINITIONS ///.
void Fpga_ManSetDelayTarget(Fpga_Man_t *p, float DelayTarget)
void Fpga_ManSetSwitching(Fpga_Man_t *p, int fSwitching)
int Fpga_Mapping(Fpga_Man_t *p)
FUNCTION DEFINITIONS ///.
void Fpga_ManSetLatchPaths(Fpga_Man_t *p, int fLatchPaths)
void Fpga_ManSetLatchNum(Fpga_Man_t *p, int nLatches)
Vec_Int_t * Sim_NtkComputeSwitching(Abc_Ntk_t *pNtk, int nPatterns)
FUNCTION DEFINITIONS ///.