Modify level computation to take discretized arrival times into account.

This commit is contained in:
Alan Mishchenko 2013-09-02 11:07:05 -07:00
parent 5023be4aa0
commit 57b9a9fe13
1 changed files with 7 additions and 3 deletions

View File

@ -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 );