Adding a warning in retiming when no node delays are given.

This commit is contained in:
Alan Mishchenko 2020-01-23 19:59:11 -08:00
parent 62c4c8b243
commit 8eb6aed5d1
1 changed files with 1 additions and 1 deletions

View File

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