summaryrefslogtreecommitdiffstats
path: root/src/map/mapper/mapperMatch.c
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2015-04-24 14:51:34 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2015-04-24 14:51:34 -0700
commit9e20b3016ddb16993687cffc050c3cee127f677d (patch)
treef92058fe08605320b4a3ed42318821c5fafed29e /src/map/mapper/mapperMatch.c
parent3708acbf469432e540fe5075f746028fcdaa27cb (diff)
downloadabc-9e20b3016ddb16993687cffc050c3cee127f677d.tar.gz
abc-9e20b3016ddb16993687cffc050c3cee127f677d.tar.bz2
abc-9e20b3016ddb16993687cffc050c3cee127f677d.zip
Adding switch 'map -f' to not use large gates for high-fanout nodes (disabled by default).
Diffstat (limited to 'src/map/mapper/mapperMatch.c')
-rw-r--r--src/map/mapper/mapperMatch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/mapper/mapperMatch.c b/src/map/mapper/mapperMatch.c
index 97b3737a..6e1287b2 100644
--- a/src/map/mapper/mapperMatch.c
+++ b/src/map/mapper/mapperMatch.c
@@ -288,7 +288,7 @@ int Map_MatchNodePhase( Map_Man_t * p, Map_Node_t * pNode, int fPhase )
for ( pCut = pNode->pCuts->pNext; pCut; pCut = pCut->pNext )
{
// limit gate sizes based on fanout count
- if ( (pNode->nRefs > 3 && pCut->nLeaves > 2) || (pNode->nRefs > 1 && pCut->nLeaves > 3) )
+ if ( p->fSkipFanout && (pNode->nRefs > 3 && pCut->nLeaves > 2) || (pNode->nRefs > 1 && pCut->nLeaves > 3) )
continue;
pMatch = pCut->M + fPhase;
if ( pMatch->pSupers == NULL )