mirror of https://github.com/YosysHQ/abc.git
Bug fix: abstraction commands not properly updating status when dumping intermediate abstraction.
This commit is contained in:
parent
8a1d439cb1
commit
329831bdac
|
|
@ -2082,6 +2082,7 @@ int Gia_GlaPerform( Gia_Man_t * pAig, Gia_ParVta_t * pPars, int fStartVta )
|
||||||
// dump the model into file
|
// dump the model into file
|
||||||
if ( p->pPars->fDumpVabs )
|
if ( p->pPars->fDumpVabs )
|
||||||
{
|
{
|
||||||
|
Abc_FrameSetStatus( -1 );
|
||||||
Abc_FrameSetCex( NULL );
|
Abc_FrameSetCex( NULL );
|
||||||
Abc_FrameSetNFrames( f+1 );
|
Abc_FrameSetNFrames( f+1 );
|
||||||
Cmd_CommandExecute( Abc_FrameGetGlobalFrame(), "write_status gla.status" );
|
Cmd_CommandExecute( Abc_FrameGetGlobalFrame(), "write_status gla.status" );
|
||||||
|
|
|
||||||
|
|
@ -1639,6 +1639,7 @@ int Ga2_ManPerform( Gia_Man_t * pAig, Gia_ParVta_t * pPars )
|
||||||
// dump the model into file
|
// dump the model into file
|
||||||
if ( p->pPars->fDumpVabs || p->pPars->fDumpMabs )
|
if ( p->pPars->fDumpVabs || p->pPars->fDumpMabs )
|
||||||
{
|
{
|
||||||
|
Abc_FrameSetStatus( -1 );
|
||||||
Abc_FrameSetCex( NULL );
|
Abc_FrameSetCex( NULL );
|
||||||
Abc_FrameSetNFrames( f+1 );
|
Abc_FrameSetNFrames( f+1 );
|
||||||
Cmd_CommandExecute( Abc_FrameGetGlobalFrame(), "write_status gla.status" );
|
Cmd_CommandExecute( Abc_FrameGetGlobalFrame(), "write_status gla.status" );
|
||||||
|
|
|
||||||
|
|
@ -1683,6 +1683,7 @@ int Gia_VtaPerformInt( Gia_Man_t * pAig, Gia_ParVta_t * pPars )
|
||||||
// dump the model
|
// dump the model
|
||||||
if ( p->pPars->fDumpVabs && (f & 1) )
|
if ( p->pPars->fDumpVabs && (f & 1) )
|
||||||
{
|
{
|
||||||
|
Abc_FrameSetStatus( -1 );
|
||||||
Abc_FrameSetCex( NULL );
|
Abc_FrameSetCex( NULL );
|
||||||
Abc_FrameSetNFrames( f+1 );
|
Abc_FrameSetNFrames( f+1 );
|
||||||
Cmd_CommandExecute( Abc_FrameGetGlobalFrame(), "write_status vta.status" );
|
Cmd_CommandExecute( Abc_FrameGetGlobalFrame(), "write_status vta.status" );
|
||||||
|
|
|
||||||
|
|
@ -90,7 +90,7 @@ void Abc_NtkWriteLogFile( char * pFileName, Abc_Cex_t * pCex, int Status, int nF
|
||||||
fprintf( pFile, " " );
|
fprintf( pFile, " " );
|
||||||
// write <engine_name>
|
// write <engine_name>
|
||||||
fprintf( pFile, "%s", pCommand ? pCommand : "unknown" );
|
fprintf( pFile, "%s", pCommand ? pCommand : "unknown" );
|
||||||
if ( Status == 0 )
|
if ( pCex && Status == 0 )
|
||||||
fprintf( pFile, " %d", pCex->iPo );
|
fprintf( pFile, " %d", pCex->iPo );
|
||||||
// write <cyc>
|
// write <cyc>
|
||||||
if ( pCex && pCex->iFrame != nFrames )
|
if ( pCex && pCex->iFrame != nFrames )
|
||||||
|
|
|
||||||
|
|
@ -129,8 +129,7 @@ extern ABC_DLL void Abc_FrameSetLibVer( void * pLib );
|
||||||
extern ABC_DLL void Abc_FrameSetFlag( char * pFlag, char * pValue );
|
extern ABC_DLL void Abc_FrameSetFlag( char * pFlag, char * pValue );
|
||||||
extern ABC_DLL void Abc_FrameSetCex( Abc_Cex_t * pCex );
|
extern ABC_DLL void Abc_FrameSetCex( Abc_Cex_t * pCex );
|
||||||
extern ABC_DLL void Abc_FrameSetNFrames( int nFrames );
|
extern ABC_DLL void Abc_FrameSetNFrames( int nFrames );
|
||||||
|
extern ABC_DLL void Abc_FrameSetStatus( int Status );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ABC_NAMESPACE_HEADER_END
|
ABC_NAMESPACE_HEADER_END
|
||||||
|
|
|
||||||
|
|
@ -78,6 +78,7 @@ void Abc_FrameSetLibVer( void * pLib ) { s_GlobalFrame->pL
|
||||||
void Abc_FrameSetFlag( char * pFlag, char * pValue ) { Cmd_FlagUpdateValue( s_GlobalFrame, pFlag, pValue ); }
|
void Abc_FrameSetFlag( char * pFlag, char * pValue ) { Cmd_FlagUpdateValue( s_GlobalFrame, pFlag, pValue ); }
|
||||||
void Abc_FrameSetCex( Abc_Cex_t * pCex ) { ABC_FREE( s_GlobalFrame->pCex ); s_GlobalFrame->pCex = pCex; }
|
void Abc_FrameSetCex( Abc_Cex_t * pCex ) { ABC_FREE( s_GlobalFrame->pCex ); s_GlobalFrame->pCex = pCex; }
|
||||||
void Abc_FrameSetNFrames( int nFrames ) { ABC_FREE( s_GlobalFrame->pCex ); s_GlobalFrame->nFrames = nFrames; }
|
void Abc_FrameSetNFrames( int nFrames ) { ABC_FREE( s_GlobalFrame->pCex ); s_GlobalFrame->nFrames = nFrames; }
|
||||||
|
void Abc_FrameSetStatus( int Status ) { ABC_FREE( s_GlobalFrame->pCex ); s_GlobalFrame->Status = Status; }
|
||||||
|
|
||||||
int Abc_FrameIsBatchMode() { return s_GlobalFrame ? s_GlobalFrame->fBatchMode : 0; }
|
int Abc_FrameIsBatchMode() { return s_GlobalFrame ? s_GlobalFrame->fBatchMode : 0; }
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue