Skip to content

Commit

Permalink
Adding a warning in retiming when no node delays are given.
Browse files Browse the repository at this point in the history
  • Loading branch information
alanminko committed Jan 24, 2020
1 parent 62c4c8b commit 8eb6aed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/base/wln/wlnRetime.c
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ void Wln_NtkRetimeCreateDelayInfo( Wln_Ntk_t * pNtk )
{
printf( "Using delays given by the user in the input file.\n" );
Wln_NtkForEachObj( pNtk, iObj )
if ( !Wln_ObjIsCio(pNtk, iObj) && Wln_ObjInstId(pNtk, iObj) == 0 )
if ( !Wln_ObjIsCio(pNtk, iObj) && !Wln_ObjIsConst(pNtk, iObj) && Wln_ObjInstId(pNtk, iObj) == 0 )
printf( "Warning: Object %d of type %s has zero delay. Retiming will not work correctly.\n", iObj, Abc_OperName(Wln_ObjType(pNtk, iObj)) );
}
else
Expand Down

0 comments on commit 8eb6aed

Please sign in to comment.