diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2012-04-28 04:19:26 +0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2012-04-28 04:19:26 +0700 |
commit | 78855cc952a099a4b1ceab93db16558b11f59f94 (patch) | |
tree | 3fabff321accb5207e3965ea89c469b8b26e68ac /src/base | |
parent | 8a89f1c3f6e09bbb42aefdef0772d1900b18fa45 (diff) | |
download | abc-78855cc952a099a4b1ceab93db16558b11f59f94.tar.gz abc-78855cc952a099a4b1ceab93db16558b11f59f94.tar.bz2 abc-78855cc952a099a4b1ceab93db16558b11f59f94.zip |
Added supporting dual-output seq miters in &trim.
Diffstat (limited to 'src/base')
-rw-r--r-- | src/base/abci/abc.c | 11 |
1 files changed, 8 insertions, 3 deletions
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; } |