Commit 57b9a9fe by Alan Mishchenko

Modify level computation to take discretized arrival times into account.

parent 5023be4a
...@@ -1129,9 +1129,13 @@ int Abc_NtkLevel( Abc_Ntk_t * pNtk ) ...@@ -1129,9 +1129,13 @@ int Abc_NtkLevel( Abc_Ntk_t * pNtk )
{ {
Abc_Obj_t * pNode; Abc_Obj_t * pNode;
int i, LevelsMax; int i, LevelsMax;
// set the CI levels to zero // set the CI levels
if ( pNtk->pManTime == NULL || pNtk->AndGateDelay <= 0 )
Abc_NtkForEachCi( pNtk, pNode, i ) Abc_NtkForEachCi( pNtk, pNode, i )
pNode->Level = 0; pNode->Level = 0;
else
Abc_NtkForEachCi( pNtk, pNode, i )
pNode->Level = (int)(Abc_NodeReadArrivalWorst(pNode) / pNtk->AndGateDelay);
// perform the traversal // perform the traversal
LevelsMax = 0; LevelsMax = 0;
Abc_NtkIncrementTravId( pNtk ); Abc_NtkIncrementTravId( pNtk );
......
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