summaryrefslogtreecommitdiffstats
path: root/src/base/io
diff options
context:
space:
mode:
Diffstat (limited to 'src/base/io')
-rw-r--r--src/base/io/io.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/base/io/io.c b/src/base/io/io.c
index aed809b3..37774a8c 100644
--- a/src/base/io/io.c
+++ b/src/base/io/io.c
@@ -197,6 +197,12 @@ int IoCommandRead( Abc_Frame_t * pAbc, int argc, char ** argv )
for ( pTemp = pFileName; *pTemp; pTemp++ )
if ( *pTemp == '>' )
*pTemp = '\\';
+ // check if the library is available
+ if ( glo_fMapped && Abc_FrameReadLibGen() == NULL )
+ {
+ Abc_Print( 1, "Cannot read mapped design when the library is not given.\n" );
+ return 0;
+ }
// read the file using the corresponding file reader
pNtk = Io_Read( pFileName, Io_ReadFileType(pFileName), fCheck );
if ( pNtk == NULL )