mirror of https://github.com/YosysHQ/abc.git
Supporting unitialized flops in NDR.
This commit is contained in:
parent
1b82a38718
commit
caaca11032
|
|
@ -344,9 +344,10 @@ void Wlc_NtkCheckIntegrity( void * pData )
|
|||
}
|
||||
Ndr_ModForEachObj( p, Mod, Obj )
|
||||
{
|
||||
int Type = Ndr_ObjReadBody( p, Obj, NDR_OPERTYPE );
|
||||
int i, * pArray, nArray = Ndr_ObjReadArray( p, Obj, NDR_INPUT, &pArray );
|
||||
for ( i = 0; i < nArray; i++ )
|
||||
if ( Vec_IntGetEntry(vMap, pArray[i]) == 0 )
|
||||
if ( Vec_IntGetEntry(vMap, pArray[i]) == 0 && !(Type == ABC_OPER_DFFRSE && i == 7) )
|
||||
printf( "Input name %d appearing as fanin %d of obj %d is not used as output name in any object.\n", pArray[i], i, Obj );
|
||||
}
|
||||
Vec_IntFree( vMap );
|
||||
|
|
|
|||
|
|
@ -366,7 +366,7 @@ void Wlc_WriteVerInt( FILE * pFile, Wlc_Ntk_t * p, int fNoFlops )
|
|||
fprintf( pFile, " " );
|
||||
fprintf( pFile, "%s (", "ABC_DFFRSE" );
|
||||
Wlc_ObjForEachFanin( pObj, iFanin, k )
|
||||
fprintf( pFile, " .%s(%s),", pInNames[k], Wlc_ObjName(p, iFanin) );
|
||||
if ( iFanin ) fprintf( pFile, " .%s(%s),", pInNames[k], Wlc_ObjName(p, iFanin) );
|
||||
fprintf( pFile, " .%s(%s) ) ;\n", "q", Wlc_ObjName(p, i) );
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue