summaryrefslogtreecommitdiffstats
path: root/src/map
diff options
context:
space:
mode:
Diffstat (limited to 'src/map')
-rw-r--r--src/map/mio/mioUtils.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/map/mio/mioUtils.c b/src/map/mio/mioUtils.c
index 978e1128..a8e11102 100644
--- a/src/map/mio/mioUtils.c
+++ b/src/map/mio/mioUtils.c
@@ -443,6 +443,14 @@ Mio_Cell_t * Mio_CollectRootsNew( Mio_Library_t * pLib, int nInputs, int * pnGat
}
Mio_CollectCopy( ppCells + iCell++, pGate );
}
+ if ( ppCells[0].pName == NULL )
+ { printf( "Error: Cannot find constant 0 gate in the library.\n" ); return NULL; }
+ if ( ppCells[1].pName == NULL )
+ { printf( "Error: Cannot find constant 1 gate in the library.\n" ); return NULL; }
+ if ( ppCells[2].pName == NULL )
+ { printf( "Error: Cannot find buffer gate in the library.\n" ); return NULL; }
+ if ( ppCells[3].pName == NULL )
+ { printf( "Error: Cannot find inverter gate in the library.\n" ); return NULL; }
// sort by delay
if ( iCell > 1 )
{