mirror of https://github.com/YosysHQ/abc.git
Disabled duplication of the network while removing POs in 'removepo'.
This commit is contained in:
parent
b2dfa01370
commit
dcd95cac6f
|
|
@ -5889,7 +5889,7 @@ usage:
|
||||||
***********************************************************************/
|
***********************************************************************/
|
||||||
int Abc_CommandRemovePo( Abc_Frame_t * pAbc, int argc, char ** argv )
|
int Abc_CommandRemovePo( Abc_Frame_t * pAbc, int argc, char ** argv )
|
||||||
{
|
{
|
||||||
Abc_Ntk_t * pNtk = Abc_FrameReadNtk(pAbc), * pNtkRes;
|
Abc_Ntk_t * pNtk = Abc_FrameReadNtk(pAbc), * pNtkRes = NULL;
|
||||||
int c, iOutput = -1;
|
int c, iOutput = -1;
|
||||||
extern void Abc_NtkRemovePo( Abc_Ntk_t * pNtk, int iOutput );
|
extern void Abc_NtkRemovePo( Abc_Ntk_t * pNtk, int iOutput );
|
||||||
|
|
||||||
|
|
@ -5938,9 +5938,10 @@ int Abc_CommandRemovePo( Abc_Frame_t * pAbc, int argc, char ** argv )
|
||||||
}
|
}
|
||||||
|
|
||||||
// get the new network
|
// get the new network
|
||||||
pNtkRes = Abc_NtkDup( pNtk );
|
// pNtkRes = Abc_NtkDup( pNtk );
|
||||||
Abc_NtkRemovePo( pNtkRes, iOutput );
|
// Abc_NtkRemovePo( pNtkRes, iOutput );
|
||||||
Abc_FrameReplaceCurrentNetwork( pAbc, pNtkRes );
|
// Abc_FrameReplaceCurrentNetwork( pAbc, pNtkRes );
|
||||||
|
Abc_NtkRemovePo( pNtk, iOutput );
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
usage:
|
usage:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue