mirror of https://github.com/YosysHQ/abc.git
Support of init-state in AIGs derived from word-level designs in Wlc_Ntk_t.
This commit is contained in:
parent
ffc7b60d2d
commit
cf83242458
|
|
@ -782,7 +782,7 @@ Gia_Man_t * Wlc_NtkBitBlast( Wlc_Ntk_t * p, Vec_Int_t * vBoxIds )
|
|||
{
|
||||
if ( (int)strlen(p->pInits) != Gia_ManRegNum(pNew) )
|
||||
{
|
||||
printf( "The number of init values (%d) does not match the number of flops (%d).\n", strlen(p->pInits), Gia_ManRegNum(pNew) );
|
||||
printf( "The number of init values (%d) does not match the number of flops (%d).\n", (int)strlen(p->pInits), Gia_ManRegNum(pNew) );
|
||||
printf( "It is assumed that the AIG has constant 0 initial state.\n" );
|
||||
}
|
||||
else
|
||||
|
|
|
|||
|
|
@ -430,7 +430,7 @@ char * Wlc_PrsConvertInitValues( Wlc_Ntk_t * p )
|
|||
pObj = Wlc_NtkObj( p, Value );
|
||||
pInits = pObj->Type == WLC_OBJ_CONST ? Wlc_ObjConstValue(pObj) : NULL;
|
||||
for ( k = 0; k < Wlc_ObjRange(pObj); k++ )
|
||||
Vec_StrPush( vStr, (char)(pInits ? '0' + Abc_InfoHasBit(pInits, k) : 'X') );
|
||||
Vec_StrPush( vStr, (char)(pInits ? '0' + Abc_InfoHasBit((unsigned *)pInits, k) : 'X') );
|
||||
}
|
||||
Vec_StrPush( vStr, '\0' );
|
||||
pResult = Vec_StrReleaseArray( vStr );
|
||||
|
|
|
|||
Loading…
Reference in New Issue