summaryrefslogtreecommitdiffstats
path: root/src/map/if/ifLib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/if/ifLib.c')
-rw-r--r--src/map/if/ifLib.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/map/if/ifLib.c b/src/map/if/ifLib.c
index 455f43d9..b3e6ad4c 100644
--- a/src/map/if/ifLib.c
+++ b/src/map/if/ifLib.c
@@ -228,6 +228,37 @@ int If_LutLibDelaysAreDiscrete( If_Lib_t * pLutLib )
/**Function*************************************************************
+ Synopsis [Returns 1 if the delays are discrete.]
+
+ Description []
+
+ SideEffects []
+
+ SeeAlso []
+
+***********************************************************************/
+int If_LutLibDelaysAreDifferent( If_Lib_t * pLutLib )
+{
+ int i, k;
+ float Delay = pLutLib->pLutDelays[1][0];
+ if ( pLutLib->fVarPinDelays )
+ {
+ for ( i = 2; i <= pLutLib->LutMax; i++ )
+ for ( k = 0; k < i; k++ )
+ if ( pLutLib->pLutDelays[i][k] != Delay )
+ return 1;
+ }
+ else
+ {
+ for ( i = 2; i <= pLutLib->LutMax; i++ )
+ if ( pLutLib->pLutDelays[i][0] != Delay )
+ return 1;
+ }
+ return 0;
+}
+
+/**Function*************************************************************
+
Synopsis [Sets simple LUT library.]
Description []