Commit 82102903 by Mathias Soeken

Used wrong truth table function in exact synthesis.

parent 077f8bdb
...@@ -237,7 +237,7 @@ static inline int Ses_StoreTableHash( word * pTruth, int nVars ) ...@@ -237,7 +237,7 @@ static inline int Ses_StoreTableHash( word * pTruth, int nVars )
static int s_Primes[4] = { 1291, 1699, 1999, 2357 }; static int s_Primes[4] = { 1291, 1699, 1999, 2357 };
int i; int i;
unsigned uHash = 0; unsigned uHash = 0;
for ( i = 0; i < Kit_TruthWordNum( nVars ); ++i ) for ( i = 0; i < Abc_TtWordNum( nVars ); ++i )
uHash ^= pTruth[i] * s_Primes[i & 0xf]; uHash ^= pTruth[i] * s_Primes[i & 0xf];
return (int)(uHash % SES_STORE_TABLE_SIZE ); return (int)(uHash % SES_STORE_TABLE_SIZE );
} }
...@@ -249,7 +249,7 @@ static inline int Ses_StoreTruthEqual( Ses_TruthEntry_t * pEntry, word * pTruth, ...@@ -249,7 +249,7 @@ static inline int Ses_StoreTruthEqual( Ses_TruthEntry_t * pEntry, word * pTruth,
if ( pEntry->nVars != nVars ) if ( pEntry->nVars != nVars )
return 0; return 0;
for ( i = 0; i < Kit_TruthWordNum( nVars ); ++i ) for ( i = 0; i < Abc_TtWordNum( nVars ); ++i )
if ( pEntry->pTruth[i] != pTruth[i] ) if ( pEntry->pTruth[i] != pTruth[i] )
return 0; return 0;
return 1; return 1;
...@@ -259,7 +259,7 @@ static inline void Ses_StoreTruthCopy( Ses_TruthEntry_t * pEntry, word * pTruthS ...@@ -259,7 +259,7 @@ static inline void Ses_StoreTruthCopy( Ses_TruthEntry_t * pEntry, word * pTruthS
{ {
int i; int i;
pEntry->nVars = nVars; pEntry->nVars = nVars;
for ( i = 0; i < Kit_TruthWordNum( nVars ); ++i ) for ( i = 0; i < Abc_TtWordNum( nVars ); ++i )
pEntry->pTruth[i] = pTruthSrc[i]; pEntry->pTruth[i] = pTruthSrc[i];
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment