ABC: A System for Sequential Synthesis and Verification
 
Loading...
Searching...
No Matches
abcEspresso.c File Reference
Include dependency graph for abcEspresso.c:

Go to the source code of this file.

Functions

void Abc_NtkEspresso (Abc_Ntk_t *pNtk, int fVerbose)
 FUNCTION DEFINITIONS ///.
 

Function Documentation

◆ Abc_NtkEspresso()

void Abc_NtkEspresso ( Abc_Ntk_t * pNtk,
int fVerbose )

FUNCTION DEFINITIONS ///.

Function*************************************************************

Synopsis [Minimizes SOP representations using Espresso.]

Description []

SideEffects []

SeeAlso []

Definition at line 51 of file abcEspresso.c.

52{
53 Abc_Obj_t * pNode;
54 int i;
55 assert( Abc_NtkIsLogic(pNtk) );
56 // convert the network to have SOPs
57 if ( Abc_NtkHasMapping(pNtk) )
58 Abc_NtkMapToSop(pNtk);
59 else if ( Abc_NtkHasBdd(pNtk) )
60 {
61 if ( !Abc_NtkBddToSop(pNtk, -1, ABC_INFINITY, 1) )
62 {
63 printf( "Abc_NtkEspresso(): Converting to SOPs has failed.\n" );
64 return;
65 }
66 }
67 // minimize SOPs of all nodes
68 Abc_NtkForEachNode( pNtk, pNode, i )
69 if ( i ) Abc_NodeEspresso( pNode );
70}
struct Abc_Obj_t_ Abc_Obj_t
Definition abc.h:116
ABC_DLL int Abc_NtkMapToSop(Abc_Ntk_t *pNtk)
Definition abcFunc.c:1228
ABC_DLL int Abc_NtkBddToSop(Abc_Ntk_t *pNtk, int fMode, int nCubeLimit, int fCubeSort)
Definition abcFunc.c:866
#define Abc_NtkForEachNode(pNtk, pNode, i)
Definition abc.h:464
#define ABC_INFINITY
MACRO DEFINITIONS ///.
Definition abc_global.h:250
#define assert(ex)
Definition util_old.h:213
Here is the call graph for this function: