mirror of https://github.com/YosysHQ/abc.git
Suggested bug fix in 'amap'.
This commit is contained in:
parent
1f93bfb9af
commit
d05fe039e1
|
|
@ -242,8 +242,11 @@ Amap_Gat_t * Amap_LibFindGate( Amap_Lib_t * p, unsigned uTruth )
|
|||
Amap_Gat_t * pGate;
|
||||
int i;
|
||||
Vec_PtrForEachEntry( Amap_Gat_t *, p->vSorted, pGate, i )
|
||||
{
|
||||
if (( pGate == NULL ) || ( pGate->pFunc == NULL )) continue;
|
||||
if ( pGate->nPins <= 5 && pGate->pFunc[0] == uTruth )
|
||||
return pGate;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue