ABC: A System for Sequential Synthesis and Verification
 
Loading...
Searching...
No Matches
bacCom.c File Reference
#include "bac.h"
#include "bacPrs.h"
#include "proof/cec/cec.h"
#include "base/main/mainInt.h"
Include dependency graph for bacCom.c:

Go to the source code of this file.

Functions

void Abc_FrameImportPtr (Vec_Ptr_t *vPtr)
 FUNCTION DEFINITIONS ///.
 
Vec_Ptr_tAbc_FrameExportPtr ()
 
void Bac_Init (Abc_Frame_t *pAbc)
 
void Bac_End (Abc_Frame_t *pAbc)
 

Function Documentation

◆ Abc_FrameExportPtr()

Vec_Ptr_t * Abc_FrameExportPtr ( )

Definition at line 73 of file bacCom.c.

74{
75 Vec_Ptr_t * vPtr;
76 Bac_Man_t * p;
77 if ( Abc_FrameGetGlobalFrame() == NULL )
78 {
79 printf( "ABC framework is not started.\n" );
80 return NULL;
81 }
82 p = Bac_AbcGetMan( Abc_FrameGetGlobalFrame() );
83 if ( p == NULL )
84 printf( "There is no CBA design present.\n" );
85 vPtr = Bac_PtrDeriveFromCba( p );
86 if ( vPtr == NULL )
87 printf( "Converting to Ptr has failed.\n" );
88 return vPtr;
89}
ABC_DLL Abc_Frame_t * Abc_FrameGetGlobalFrame()
Definition mainFrame.c:643
struct Bac_Man_t_ Bac_Man_t
Definition bac.h:142
Vec_Ptr_t * Bac_PtrDeriveFromCba(Bac_Man_t *p)
Definition bacPtrAbc.c:459
Cube * p
Definition exorList.c:222
typedefABC_NAMESPACE_HEADER_START struct Vec_Ptr_t_ Vec_Ptr_t
INCLUDES ///.
Definition vecPtr.h:42
Here is the call graph for this function:

◆ Abc_FrameImportPtr()

void Abc_FrameImportPtr ( Vec_Ptr_t * vPtr)

FUNCTION DEFINITIONS ///.

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

Synopsis [Accessing current Bac_Ntk_t.]

Description []

SideEffects []

SeeAlso []

Definition at line 60 of file bacCom.c.

61{
62 Bac_Man_t * p;
63 if ( Abc_FrameGetGlobalFrame() == NULL )
64 {
65 printf( "ABC framework is not started.\n" );
66 return;
67 }
68 p = Bac_PtrTransformToCba( vPtr );
69 if ( p == NULL )
70 printf( "Converting from Ptr failed.\n" );
71 Bac_AbcUpdateMan( Abc_FrameGetGlobalFrame(), p );
72}
Bac_Man_t * Bac_PtrTransformToCba(Vec_Ptr_t *vDes)
Definition bacPtrAbc.c:355
Here is the call graph for this function:

◆ Bac_End()

void Bac_End ( Abc_Frame_t * pAbc)

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

Synopsis []

Description []

SideEffects []

SeeAlso []

Definition at line 125 of file bacCom.c.

126{
127 Bac_AbcFreeMan( pAbc );
128}
Here is the caller graph for this function:

◆ Bac_Init()

void Bac_Init ( Abc_Frame_t * pAbc)

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

Synopsis []

Description []

SideEffects []

SeeAlso []

Definition at line 102 of file bacCom.c.

103{
104 Cmd_CommandAdd( pAbc, "New word level", "@_read", Bac_CommandRead, 0 );
105 Cmd_CommandAdd( pAbc, "New word level", "@_write", Bac_CommandWrite, 0 );
106 Cmd_CommandAdd( pAbc, "New word level", "@_ps", Bac_CommandPs, 0 );
107 Cmd_CommandAdd( pAbc, "New word level", "@_put", Bac_CommandPut, 0 );
108 Cmd_CommandAdd( pAbc, "New word level", "@_get", Bac_CommandGet, 0 );
109 Cmd_CommandAdd( pAbc, "New word level", "@_clp", Bac_CommandClp, 0 );
110 Cmd_CommandAdd( pAbc, "New word level", "@_cec", Bac_CommandCec, 0 );
111 Cmd_CommandAdd( pAbc, "New word level", "@_test", Bac_CommandTest, 0 );
112}
void Cmd_CommandAdd(Abc_Frame_t *pAbc, const char *sGroup, const char *sName, Cmd_CommandFuncType pFunc, int fChanges)
Definition cmdApi.c:63
Here is the call graph for this function:
Here is the caller graph for this function: