Commit ffaf8b39 by Alan Mishchenko

Improvements and tuning of CBA.

parent d9ed88f6
...@@ -740,8 +740,8 @@ static inline char * Ptr_TypeToSop( Cba_ObjType_t Type ) ...@@ -740,8 +740,8 @@ static inline char * Ptr_TypeToSop( Cba_ObjType_t Type )
} }
/*=== cbaCom.c ===============================================================*/ /*=== cbaCom.c ===============================================================*/
extern void Abc_FrameImportDes( Vec_Ptr_t * vDes ); extern void Abc_FrameImportPtr( Vec_Ptr_t * vPtr );
extern Vec_Ptr_t * Abc_FrameExportDes(); extern Vec_Ptr_t * Abc_FrameExportPtr();
/*=== cbaBlast.c =============================================================*/ /*=== cbaBlast.c =============================================================*/
extern Gia_Man_t * Cba_ManExtract( Cba_Man_t * p, int fBuffers, int fVerbose ); extern Gia_Man_t * Cba_ManExtract( Cba_Man_t * p, int fBuffers, int fVerbose );
......
...@@ -56,7 +56,7 @@ static inline void Cba_AbcUpdateMan( Abc_Frame_t * pAbc, Cba_Man_t * p ) ...@@ -56,7 +56,7 @@ static inline void Cba_AbcUpdateMan( Abc_Frame_t * pAbc, Cba_Man_t * p )
SeeAlso [] SeeAlso []
******************************************************************************/ ******************************************************************************/
void Abc_FrameImportDes( Vec_Ptr_t * vDes ) void Abc_FrameImportPtr( Vec_Ptr_t * vPtr )
{ {
Cba_Man_t * p; Cba_Man_t * p;
if ( Abc_FrameGetGlobalFrame() == NULL ) if ( Abc_FrameGetGlobalFrame() == NULL )
...@@ -64,14 +64,14 @@ void Abc_FrameImportDes( Vec_Ptr_t * vDes ) ...@@ -64,14 +64,14 @@ void Abc_FrameImportDes( Vec_Ptr_t * vDes )
printf( "ABC framework is not started.\n" ); printf( "ABC framework is not started.\n" );
return; return;
} }
p = Cba_PtrTransformToCba( vDes ); p = Cba_PtrTransformToCba( vPtr );
if ( p == NULL ) if ( p == NULL )
printf( "Converting from Ptr failed.\n" ); printf( "Converting from Ptr failed.\n" );
Cba_AbcUpdateMan( Abc_FrameGetGlobalFrame(), p ); Cba_AbcUpdateMan( Abc_FrameGetGlobalFrame(), p );
} }
Vec_Ptr_t * Abc_FrameExportDes() Vec_Ptr_t * Abc_FrameExportPtr()
{ {
Vec_Ptr_t * vDes; Vec_Ptr_t * vPtr;
Cba_Man_t * p; Cba_Man_t * p;
if ( Abc_FrameGetGlobalFrame() == NULL ) if ( Abc_FrameGetGlobalFrame() == NULL )
{ {
...@@ -81,10 +81,10 @@ Vec_Ptr_t * Abc_FrameExportDes() ...@@ -81,10 +81,10 @@ Vec_Ptr_t * Abc_FrameExportDes()
p = Cba_AbcGetMan( Abc_FrameGetGlobalFrame() ); p = Cba_AbcGetMan( Abc_FrameGetGlobalFrame() );
if ( p == NULL ) if ( p == NULL )
printf( "There is no CBA design present.\n" ); printf( "There is no CBA design present.\n" );
vDes = Cba_PtrDeriveFromCba( p ); vPtr = Cba_PtrDeriveFromCba( p );
if ( vDes == NULL ) if ( vPtr == NULL )
printf( "Converting to Ptr has failed.\n" ); printf( "Converting to Ptr has failed.\n" );
return vDes; return vPtr;
} }
/**Function******************************************************************** /**Function********************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment