mirror of
https://github.com/YosysHQ/abc.git
synced 2026-09-03 00:19:39 +02:00
Adding procedures to specify permutations with unused flops.
This commit is contained in:
@@ -1043,6 +1043,27 @@ static inline Vec_Int_t * Vec_IntInvert( Vec_Int_t * p, int Fill )
|
||||
return vRes;
|
||||
}
|
||||
|
||||
/**Function*************************************************************
|
||||
|
||||
Synopsis []
|
||||
|
||||
Description []
|
||||
|
||||
SideEffects []
|
||||
|
||||
SeeAlso []
|
||||
|
||||
***********************************************************************/
|
||||
static inline Vec_Int_t * Vec_IntCondense( Vec_Int_t * p, int Fill )
|
||||
{
|
||||
int Entry, i;
|
||||
Vec_Int_t * vRes = Vec_IntAlloc( Vec_IntSize(p) );
|
||||
Vec_IntForEachEntry( p, Entry, i )
|
||||
if ( Entry != Fill )
|
||||
Vec_IntPush( vRes, Entry );
|
||||
return vRes;
|
||||
}
|
||||
|
||||
/**Function*************************************************************
|
||||
|
||||
Synopsis []
|
||||
|
||||
Reference in New Issue
Block a user