diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2014-02-27 21:11:05 -0800 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2014-02-27 21:11:05 -0800 |
commit | b556c2591e8dc6e35d523971aa467bce4ad6200e (patch) | |
tree | c8c3a60b07901c71cdd1d7bfd5c20d7188c424cc /src/map/if/ifMan.c | |
parent | caa2227b1127802e4b35f296106ca19e113ea601 (diff) | |
download | abc-b556c2591e8dc6e35d523971aa467bce4ad6200e.tar.gz abc-b556c2591e8dc6e35d523971aa467bce4ad6200e.tar.bz2 abc-b556c2591e8dc6e35d523971aa467bce4ad6200e.zip |
Changes to LUT mappers.
Diffstat (limited to 'src/map/if/ifMan.c')
-rw-r--r-- | src/map/if/ifMan.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/map/if/ifMan.c b/src/map/if/ifMan.c index ae7552b3..5025429e 100644 --- a/src/map/if/ifMan.c +++ b/src/map/if/ifMan.c @@ -86,9 +86,12 @@ If_Man_t * If_ManStart( If_Par_t * pPars ) if ( pPars->fUseDsd ) { p->pIfDsdMan = If_DsdManAlloc( pPars->nLutSize ); - p->vDsds = Vec_IntAlloc( 1000 ); - Vec_IntPush( p->vDsds, 0 ); - Vec_IntPush( p->vDsds, 2 ); + p->vTtDsds = Vec_IntAlloc( 1000 ); + Vec_IntPush( p->vTtDsds, 0 ); + Vec_IntPush( p->vTtDsds, 2 ); + p->vTtPerms = Vec_StrAlloc( 10000 ); + Vec_StrFill( p->vTtPerms, 2 * p->pPars->nLutSize, IF_BIG_CHAR ); + Vec_StrWriteEntry( p->vTtPerms, p->pPars->nLutSize, 0 ); } // create the constant node p->pConst1 = If_ManSetupObj( p ); @@ -173,7 +176,8 @@ void If_ManStop( If_Man_t * p ) Vec_PtrFreeP( &p->vObjsRev ); Vec_PtrFreeP( &p->vLatchOrder ); Vec_IntFreeP( &p->vLags ); - Vec_IntFreeP( &p->vDsds ); + Vec_IntFreeP( &p->vTtDsds ); + Vec_StrFreeP( &p->vTtPerms ); Vec_MemHashFree( p->vTtMem ); Vec_MemFreeP( &p->vTtMem ); Mem_FixedStop( p->pMemObj, 0 ); |