summaryrefslogtreecommitdiffstats
path: root/src/base/wlc/wlcNtk.c
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2016-02-12 09:46:49 -0800
committerAlan Mishchenko <alanmi@berkeley.edu>2016-02-12 09:46:49 -0800
commite0616441b3f42131bc2f9cf307ef4e44b29781a7 (patch)
tree51532c6586bca520ce02bbbf59c010b998190a7d /src/base/wlc/wlcNtk.c
parent66796c38088a3ff74c530b3ee4a6dab33382f99a (diff)
downloadabc-e0616441b3f42131bc2f9cf307ef4e44b29781a7.tar.gz
abc-e0616441b3f42131bc2f9cf307ef4e44b29781a7.tar.bz2
abc-e0616441b3f42131bc2f9cf307ef4e44b29781a7.zip
Adding support for a different bit-blasting of a multiplier and squarer.
Diffstat (limited to 'src/base/wlc/wlcNtk.c')
-rw-r--r--src/base/wlc/wlcNtk.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/base/wlc/wlcNtk.c b/src/base/wlc/wlcNtk.c
index 94edebae..6e9be0bc 100644
--- a/src/base/wlc/wlcNtk.c
+++ b/src/base/wlc/wlcNtk.c
@@ -407,6 +407,8 @@ void Wlc_NtkPrintDistrib( Wlc_Ntk_t * p, int fVerbose )
Vec_IntAddToEntry( vAnds, WLC_OBJ_ARI_MINUS, 4 * Wlc_ObjRange(Wlc_ObjFanin0(p, pObj)) );
else if ( pObj->Type == WLC_OBJ_ARI_SQRT )
Vec_IntAddToEntry( vAnds, WLC_OBJ_ARI_SQRT, 11 * Wlc_ObjRange(Wlc_ObjFanin0(p, pObj)) * Wlc_ObjRange(Wlc_ObjFanin0(p, pObj)) / 8 + 5 * Wlc_ObjRange(Wlc_ObjFanin0(p, pObj)) / 2 - 5 );
+ else if ( pObj->Type == WLC_OBJ_ARI_SQUARE )
+ Vec_IntAddToEntry( vAnds, WLC_OBJ_ARI_SQUARE, 5 * Wlc_ObjRange(Wlc_ObjFanin0(p, pObj)) * Wlc_ObjRange(Wlc_ObjFanin1(p, pObj)) );
}
if ( nCountRange )
{