From 78855cc952a099a4b1ceab93db16558b11f59f94 Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Sat, 28 Apr 2012 04:19:26 +0700 Subject: Added supporting dual-output seq miters in &trim. --- src/base/abci/abc.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/base/abci/abc.c') diff --git a/src/base/abci/abc.c b/src/base/abci/abc.c index 5fde1ca0..cb22493c 100644 --- a/src/base/abci/abc.c +++ b/src/base/abci/abc.c @@ -22949,8 +22949,9 @@ int Abc_CommandAbc9Trim( Abc_Frame_t * pAbc, int argc, char ** argv ) int c; int fTrimCis = 1; int fTrimCos = 1; + int fDualOut = 0; Extra_UtilGetoptReset(); - while ( ( c = Extra_UtilGetopt( argc, argv, "ioh" ) ) != EOF ) + while ( ( c = Extra_UtilGetopt( argc, argv, "iodh" ) ) != EOF ) { switch ( c ) { @@ -22960,6 +22961,9 @@ int Abc_CommandAbc9Trim( Abc_Frame_t * pAbc, int argc, char ** argv ) case 'o': fTrimCos ^= 1; break; + case 'd': + fDualOut ^= 1; + break; case 'h': goto usage; default: @@ -22971,15 +22975,16 @@ int Abc_CommandAbc9Trim( Abc_Frame_t * pAbc, int argc, char ** argv ) Abc_Print( -1, "Abc_CommandAbc9Trim(): There is no AIG.\n" ); return 1; } - pTemp = Gia_ManDupTrimmed( pAbc->pGia, fTrimCis, fTrimCos ); + pTemp = Gia_ManDupTrimmed( pAbc->pGia, fTrimCis, fTrimCos, fDualOut ); Abc_CommandUpdate9( pAbc, pTemp ); return 0; usage: - Abc_Print( -2, "usage: &trim [-ioh]\n" ); + Abc_Print( -2, "usage: &trim [-iodh]\n" ); Abc_Print( -2, "\t removes PIs without fanout and PO driven by constants\n" ); Abc_Print( -2, "\t-i : toggle removing PIs [default = %s]\n", fTrimCis? "yes": "no" ); Abc_Print( -2, "\t-o : toggle removing POs [default = %s]\n", fTrimCos? "yes": "no" ); + Abc_Print( -2, "\t-d : toggle using dual-output miter [default = %s]\n", fDualOut? "yes": "no" ); Abc_Print( -2, "\t-h : print the command usage\n"); return 1; } -- cgit v1.2.3