Commit fc1897fb by Alan Mishchenko

Making flop names after 'retime' more meaningful.

parent be35a13a
...@@ -447,6 +447,7 @@ void Abc_NtkRetimeMinAreaUpdateLatches( Abc_Ntk_t * pNtk, Vec_Ptr_t * vMinCut, i ...@@ -447,6 +447,7 @@ void Abc_NtkRetimeMinAreaUpdateLatches( Abc_Ntk_t * pNtk, Vec_Ptr_t * vMinCut, i
{ {
// add the buffer // add the buffer
pBuffer = Abc_NtkCreateNodeBuf( pNtk, Abc_ObjFanin0(pLatchIn) ); pBuffer = Abc_NtkCreateNodeBuf( pNtk, Abc_ObjFanin0(pLatchIn) );
Abc_ObjAssignName( pBuffer, Abc_ObjName(pObj), "_buf" );
Abc_ObjPatchFanin( pLatchIn, Abc_ObjFanin0(pLatchIn), pBuffer ); Abc_ObjPatchFanin( pLatchIn, Abc_ObjFanin0(pLatchIn), pBuffer );
Vec_PtrPush( vBuffers, pBuffer ); Vec_PtrPush( vBuffers, pBuffer );
// redirect edges to the unvisited fanouts of the node // redirect edges to the unvisited fanouts of the node
...@@ -474,8 +475,8 @@ void Abc_NtkRetimeMinAreaUpdateLatches( Abc_Ntk_t * pNtk, Vec_Ptr_t * vMinCut, i ...@@ -474,8 +475,8 @@ void Abc_NtkRetimeMinAreaUpdateLatches( Abc_Ntk_t * pNtk, Vec_Ptr_t * vMinCut, i
pLatchOut = Abc_NtkCreateBo(pNtk); pLatchOut = Abc_NtkCreateBo(pNtk);
pLatch = Abc_NtkCreateLatch(pNtk); pLatch = Abc_NtkCreateLatch(pNtk);
pLatchIn = Abc_NtkCreateBi(pNtk); pLatchIn = Abc_NtkCreateBi(pNtk);
Abc_ObjAssignName( pLatchOut, Abc_ObjName(pLatch), "_out" ); Abc_ObjAssignName( pLatchOut, Abc_ObjName(pObj), "_out" );
Abc_ObjAssignName( pLatchIn, Abc_ObjName(pLatch), "_in" ); Abc_ObjAssignName( pLatchIn, Abc_ObjName(pObj), "_in" );
// connect // connect
Abc_ObjAddFanin( pLatchOut, pLatch ); Abc_ObjAddFanin( pLatchOut, pLatch );
Abc_ObjAddFanin( pLatch, pLatchIn ); Abc_ObjAddFanin( pLatch, pLatchIn );
......
...@@ -169,8 +169,8 @@ int Abc_NtkRetimeFinalizeLatches( Abc_Ntk_t * pNtk, st__table * tLatches, int nI ...@@ -169,8 +169,8 @@ int Abc_NtkRetimeFinalizeLatches( Abc_Ntk_t * pNtk, st__table * tLatches, int nI
// this is a new latch // this is a new latch
pLatchIn = Abc_NtkCreateBi(pNtk); pLatchIn = Abc_NtkCreateBi(pNtk);
pLatchOut = Abc_NtkCreateBo(pNtk); pLatchOut = Abc_NtkCreateBo(pNtk);
Abc_ObjAssignName( pLatchOut, Abc_ObjName(pLatch), "_out" ); Abc_ObjAssignName( pLatchOut, Abc_ObjName(Abc_ObjFanin0(pLatch)), "_out" );
Abc_ObjAssignName( pLatchIn, Abc_ObjName(pLatch), "_in" ); Abc_ObjAssignName( pLatchIn, Abc_ObjName(Abc_ObjFanin0(pLatch)), "_in" );
} }
else else
{ {
...@@ -375,6 +375,7 @@ void Abc_NtkRetimeNode( Abc_Obj_t * pObj, int fForward, int fInitial ) ...@@ -375,6 +375,7 @@ void Abc_NtkRetimeNode( Abc_Obj_t * pObj, int fForward, int fInitial )
if ( fInitial ) if ( fInitial )
{ {
pLatch->pCopy = Abc_NtkCreateNodeBuf( pNtkNew, NULL ); pLatch->pCopy = Abc_NtkCreateNodeBuf( pNtkNew, NULL );
Abc_ObjAssignName( pLatch->pCopy, Abc_ObjName(pNext), "_buf" );
Abc_ObjAddFanin( pObj->pCopy, pLatch->pCopy ); Abc_ObjAddFanin( pObj->pCopy, pLatch->pCopy );
} }
} }
......
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