mirror of https://github.com/YosysHQ/abc.git
Preserving outputs names in the &-space.
This commit is contained in:
parent
6730e21e12
commit
1efdd3726d
|
|
@ -25030,6 +25030,18 @@ int Abc_CommandAbc9Put( Abc_Frame_t * pAbc, int argc, char ** argv )
|
|||
}
|
||||
}
|
||||
}
|
||||
// transfer PO names to pNtk
|
||||
if ( pAbc->pGia->vNamesOut )
|
||||
{
|
||||
Abc_Obj_t * pObj;
|
||||
int i;
|
||||
Abc_NtkForEachCo( pNtk, pObj, i ) {
|
||||
if (i < Vec_PtrSize(pAbc->pGia->vNamesOut)) {
|
||||
Nm_ManDeleteIdName(pNtk->pManName, pObj->Id);
|
||||
Abc_ObjAssignName( pObj, (char *)Vec_PtrEntry(pAbc->pGia->vNamesOut, i), NULL );
|
||||
}
|
||||
}
|
||||
}
|
||||
// replace the current network
|
||||
Abc_FrameReplaceCurrentNetwork( pAbc, pNtk );
|
||||
if ( fStatusClear )
|
||||
|
|
|
|||
Loading…
Reference in New Issue