mirror of https://github.com/YosysHQ/abc.git
Modify level computation to take discretized arrival times into account.
This commit is contained in:
parent
5023be4aa0
commit
57b9a9fe13
|
|
@ -1129,9 +1129,13 @@ int Abc_NtkLevel( Abc_Ntk_t * pNtk )
|
|||
{
|
||||
Abc_Obj_t * pNode;
|
||||
int i, LevelsMax;
|
||||
// set the CI levels to zero
|
||||
Abc_NtkForEachCi( pNtk, pNode, i )
|
||||
pNode->Level = 0;
|
||||
// set the CI levels
|
||||
if ( pNtk->pManTime == NULL || pNtk->AndGateDelay <= 0 )
|
||||
Abc_NtkForEachCi( pNtk, pNode, i )
|
||||
pNode->Level = 0;
|
||||
else
|
||||
Abc_NtkForEachCi( pNtk, pNode, i )
|
||||
pNode->Level = (int)(Abc_NodeReadArrivalWorst(pNode) / pNtk->AndGateDelay);
|
||||
// perform the traversal
|
||||
LevelsMax = 0;
|
||||
Abc_NtkIncrementTravId( pNtk );
|
||||
|
|
|
|||
Loading…
Reference in New Issue