summaryrefslogtreecommitdiffstats
path: root/src/aig/gia/giaIf.c
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2015-09-30 18:07:54 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2015-09-30 18:07:54 -0700
commit10c31c6576cfee6d070e255b8878e23574529737 (patch)
tree0d540a16356b623876e5ff82f9d9b6f81d890d1c /src/aig/gia/giaIf.c
parentbc1eae790b9fd0346f7d079f2b2e303138521144 (diff)
downloadabc-10c31c6576cfee6d070e255b8878e23574529737.tar.gz
abc-10c31c6576cfee6d070e255b8878e23574529737.tar.bz2
abc-10c31c6576cfee6d070e255b8878e23574529737.zip
Experiments with LUT structure mapping.
Diffstat (limited to 'src/aig/gia/giaIf.c')
-rw-r--r--src/aig/gia/giaIf.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/aig/gia/giaIf.c b/src/aig/gia/giaIf.c
index 7a66410b..956d9d2d 100644
--- a/src/aig/gia/giaIf.c
+++ b/src/aig/gia/giaIf.c
@@ -560,7 +560,7 @@ void Gia_ManPrintPackingStats( Gia_Man_t * p )
int fVerbose = 0;
int nObjToShow = 200;
int nNumStr[5] = {0};
- int i, k, Entry, nEntries, nEntries2, MaxSize = -1;
+ int i, k, Entry, nEntries, nEntries2, MaxSize = -1, Count = 0;
if ( p->vPacking == NULL )
return;
nEntries = Vec_IntEntry( p->vPacking, 0 );
@@ -586,8 +586,12 @@ void Gia_ManPrintPackingStats( Gia_Man_t * p )
MaxSize = 1;
Abc_Print( 1, "Packing (N=%d) : ", MaxSize );
for ( i = 1; i <= MaxSize; i++ )
+ {
Abc_Print( 1, "%d x LUT = %d ", i, nNumStr[i] );
- Abc_Print( 1, "Total = %d", nEntries2 );
+ Count += i * nNumStr[i];
+ }
+ Abc_Print( 1, "Total = %d ", nEntries2 );
+ Abc_Print( 1, "Total LUT = %d", Count );
Abc_Print( 1, "\n" );
}