diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2012-09-22 17:57:06 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2012-09-22 17:57:06 -0700 |
commit | a50a38155cd4e99e76775c36987e8bc41c61f0c6 (patch) | |
tree | 9caf7885e0015e423f7d5c01b16d4d71ff7bf3e2 /src/misc/tim/timBox.c | |
parent | 26f3427a1e4cfb908c389b57100166eb2c35434f (diff) | |
download | abc-a50a38155cd4e99e76775c36987e8bc41c61f0c6.tar.gz abc-a50a38155cd4e99e76775c36987e8bc41c61f0c6.tar.bz2 abc-a50a38155cd4e99e76775c36987e8bc41c61f0c6.zip |
Integrating time manager into choice computation.
Diffstat (limited to 'src/misc/tim/timBox.c')
-rw-r--r-- | src/misc/tim/timBox.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/misc/tim/timBox.c b/src/misc/tim/timBox.c index 65b0ae6e..c1176527 100644 --- a/src/misc/tim/timBox.c +++ b/src/misc/tim/timBox.c @@ -189,10 +189,14 @@ int Tim_ManBoxOutputNum( Tim_Man_t * p, int iBox ) ***********************************************************************/ float * Tim_ManBoxDelayTable( Tim_Man_t * p, int iBox ) { + float * pTable; Tim_Box_t * pBox = (Tim_Box_t *)Vec_PtrEntry( p->vBoxes, iBox ); if ( pBox->iDelayTable < 0 ) return NULL; - return (float *)Vec_PtrEntry( p->vDelayTables, pBox->iDelayTable ); + pTable = (float *)Vec_PtrEntry( p->vDelayTables, pBox->iDelayTable ); + assert( (int)pTable[1] == pBox->nInputs ); + assert( (int)pTable[2] == pBox->nOutputs ); + return pTable; } //////////////////////////////////////////////////////////////////////// |