Commit 4b647de7 by Alan Mishchenko

Bug fix in a standard cell library generator.

parent 3e5e7a25
...@@ -113,6 +113,8 @@ Vec_Int_t * Amap_LibDeriveGatePerm_rec( Amap_Lib_t * pLib, Kit_DsdNtk_t * pNtk, ...@@ -113,6 +113,8 @@ Vec_Int_t * Amap_LibDeriveGatePerm_rec( Amap_Lib_t * pLib, Kit_DsdNtk_t * pNtk,
iDsdFanin = Abc_LitRegular(pDsdObj->pFans[0]); iDsdFanin = Abc_LitRegular(pDsdObj->pFans[0]);
pNodFanin = Amap_LibNod( pLib, Abc_Lit2Var(pNod->iFan0) ); pNodFanin = Amap_LibNod( pLib, Abc_Lit2Var(pNod->iFan0) );
vPermFanin = Amap_LibDeriveGatePerm_rec( pLib, pNtk, iDsdFanin, pNodFanin ); vPermFanin = Amap_LibDeriveGatePerm_rec( pLib, pNtk, iDsdFanin, pNodFanin );
if ( vPermFanin == NULL )
return NULL;
Vec_IntForEachEntry( vPermFanin, Value, k ) Vec_IntForEachEntry( vPermFanin, Value, k )
Vec_IntPush( vPerm, Value ); Vec_IntPush( vPerm, Value );
Vec_IntFree( vPermFanin ); Vec_IntFree( vPermFanin );
...@@ -120,6 +122,8 @@ Vec_Int_t * Amap_LibDeriveGatePerm_rec( Amap_Lib_t * pLib, Kit_DsdNtk_t * pNtk, ...@@ -120,6 +122,8 @@ Vec_Int_t * Amap_LibDeriveGatePerm_rec( Amap_Lib_t * pLib, Kit_DsdNtk_t * pNtk,
iDsdFanin = Abc_LitRegular(pDsdObj->pFans[1]); iDsdFanin = Abc_LitRegular(pDsdObj->pFans[1]);
pNodFanin = Amap_LibNod( pLib, Abc_Lit2Var(pNod->iFan1) ); pNodFanin = Amap_LibNod( pLib, Abc_Lit2Var(pNod->iFan1) );
vPermFanin = Amap_LibDeriveGatePerm_rec( pLib, pNtk, iDsdFanin, pNodFanin ); vPermFanin = Amap_LibDeriveGatePerm_rec( pLib, pNtk, iDsdFanin, pNodFanin );
if ( vPermFanin == NULL )
return NULL;
Vec_IntForEachEntry( vPermFanin, Value, k ) Vec_IntForEachEntry( vPermFanin, Value, k )
Vec_IntPush( vPerm, Value ); Vec_IntPush( vPerm, Value );
Vec_IntFree( vPermFanin ); Vec_IntFree( vPermFanin );
...@@ -127,6 +131,8 @@ Vec_Int_t * Amap_LibDeriveGatePerm_rec( Amap_Lib_t * pLib, Kit_DsdNtk_t * pNtk, ...@@ -127,6 +131,8 @@ Vec_Int_t * Amap_LibDeriveGatePerm_rec( Amap_Lib_t * pLib, Kit_DsdNtk_t * pNtk,
iDsdFanin = Abc_LitRegular(pDsdObj->pFans[2]); iDsdFanin = Abc_LitRegular(pDsdObj->pFans[2]);
pNodFanin = Amap_LibNod( pLib, Abc_Lit2Var(pNod->iFan2) ); pNodFanin = Amap_LibNod( pLib, Abc_Lit2Var(pNod->iFan2) );
vPermFanin = Amap_LibDeriveGatePerm_rec( pLib, pNtk, iDsdFanin, pNodFanin ); vPermFanin = Amap_LibDeriveGatePerm_rec( pLib, pNtk, iDsdFanin, pNodFanin );
if ( vPermFanin == NULL )
return NULL;
Vec_IntForEachEntry( vPermFanin, Value, k ) Vec_IntForEachEntry( vPermFanin, Value, k )
Vec_IntPush( vPerm, Value ); Vec_IntPush( vPerm, Value );
Vec_IntFree( vPermFanin ); Vec_IntFree( vPermFanin );
......
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