diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2017-02-05 10:43:07 -0800 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2017-02-05 10:43:07 -0800 |
commit | afcbb09717b9b76b6895dee66d42b9f9be0160e2 (patch) | |
tree | 9774a2a8194a7e26599d6c62f15c01efe458e746 | |
parent | 2c4c464ab0a0f5a7ff91dd3abb1c39dbadefa1de (diff) | |
download | abc-afcbb09717b9b76b6895dee66d42b9f9be0160e2.tar.gz abc-afcbb09717b9b76b6895dee66d42b9f9be0160e2.tar.bz2 abc-afcbb09717b9b76b6895dee66d42b9f9be0160e2.zip |
Corner-case bug-fix in library preprocessor for standard-cell mapping.
-rw-r--r-- | src/map/mio/mioUtils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/mio/mioUtils.c b/src/map/mio/mioUtils.c index 7572b27c..428eb92b 100644 --- a/src/map/mio/mioUtils.c +++ b/src/map/mio/mioUtils.c @@ -569,7 +569,7 @@ Mio_Cell_t * Mio_CollectRootsNew( Mio_Library_t * pLib, int nInputs, int * pnGat if ( ppCells[3].pName == NULL ) { printf( "Error: Cannot find inverter gate in the library.\n" ); return NULL; } // sort by delay - if ( iCell > 1 ) + if ( iCell > 5 ) { qsort( (void *)(ppCells + 4), iCell - 4, sizeof(Mio_Cell_t), (int (*)(const void *, const void *)) Mio_AreaCompare ); @@ -726,7 +726,7 @@ Mio_Cell2_t * Mio_CollectRootsNew2( Mio_Library_t * pLib, int nInputs, int * pnG if ( ppCells[3].pName == NULL ) { printf( "Error: Cannot find inverter gate in the library.\n" ); return NULL; } // sort by delay - if ( iCell > 1 ) + if ( iCell > 5 ) { qsort( (void *)(ppCells + 4), iCell - 4, sizeof(Mio_Cell2_t), (int (*)(const void *, const void *)) Mio_AreaCompare2 ); |