diff options
Diffstat (limited to 'src/base/abci/abc.c')
-rw-r--r-- | src/base/abci/abc.c | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/src/base/abci/abc.c b/src/base/abci/abc.c index 86500d7a..3a846433 100644 --- a/src/base/abci/abc.c +++ b/src/base/abci/abc.c @@ -15178,7 +15178,11 @@ int Abc_CommandIf( Abc_Frame_t * pAbc, int argc, char ** argv ) if ( pPars->fUserRecLib ) { - assert( Abc_NtkRecIsRunning3() ); + if ( !Abc_NtkRecIsRunning3() ) + { + printf( "LMS manager is not running (use \"rec_start3\").\n" ); + return 0; + } if ( Abc_NtkRecInputNum3() != pPars->nLutSize ) { printf( "The number of library inputs (%d) different from the K parameters (%d).\n", Abc_NtkRecInputNum3(), pPars->nLutSize ); @@ -29945,6 +29949,20 @@ int Abc_CommandAbc9If( Abc_Frame_t * pAbc, int argc, char ** argv ) Abc_FrameSetManDsd( If_DsdManAlloc(pPars->nLutSize, LutSize) ); } + if ( pPars->fUserRecLib ) + { + if ( !Abc_NtkRecIsRunning3() ) + { + printf( "LMS manager is not running (use \"rec_start3\").\n" ); + return 0; + } + if ( Abc_NtkRecInputNum3() != pPars->nLutSize ) + { + printf( "The number of library inputs (%d) different from the K parameters (%d).\n", Abc_NtkRecInputNum3(), pPars->nLutSize ); + return 0; + } + } + // complain if truth tables are requested but the cut size is too large if ( pPars->fTruth && pPars->nLutSize > IF_MAX_FUNC_LUTSIZE ) { |