Commit a8faa2b5 by Alan Mishchenko

Adding switch to 'write_pla' to write random onset minterms of the first PO function (bug fix).

parent 75ed8581
...@@ -523,8 +523,14 @@ int Io_WriteMoPlaOneM( FILE * pFile, Abc_Ntk_t * pNtk, int nMints ) ...@@ -523,8 +523,14 @@ int Io_WriteMoPlaOneM( FILE * pFile, Abc_Ntk_t * pNtk, int nMints )
Abc_NtkForEachCo( pNtk, pObj, i ) Abc_NtkForEachCo( pNtk, pObj, i )
Vec_PtrPush( vFuncsGlob, Abc_ObjGlobalBdd(pObj) ); Vec_PtrPush( vFuncsGlob, Abc_ObjGlobalBdd(pObj) );
// consider minterms // get the output function
Io_WriteMoPlaOneIntMintermsM( pFile, pNtk, dd, (DdNode *)Vec_PtrEntry(vFuncsGlob, 0), nMints ); bFunc = (DdNode *)Vec_PtrEntry(vFuncsGlob, 0);
if ( bFunc == Cudd_ReadOne(dd) )
printf( "First primary output has constant 1 function.\n" );
else if ( Cudd_Not(bFunc) == Cudd_ReadOne(dd) )
printf( "First primary output has constant 0 function.\n" );
else
Io_WriteMoPlaOneIntMintermsM( pFile, pNtk, dd, bFunc, nMints );
Abc_NtkFreeGlobalBdds( pNtk, 0 ); Abc_NtkFreeGlobalBdds( pNtk, 0 );
// cleanup // cleanup
......
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