summaryrefslogtreecommitdiffstats
path: root/src/base
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2012-09-20 11:29:37 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2012-09-20 11:29:37 -0700
commitf59de3decc1daad5c2d27c8b9d8b680db9dbd574 (patch)
tree4a4ac268a7e27df3433b64b80418d968c1a8a4b7 /src/base
parent723f85ef1b4ad35bc7708f7b8208dafe0406078c (diff)
downloadabc-f59de3decc1daad5c2d27c8b9d8b680db9dbd574.tar.gz
abc-f59de3decc1daad5c2d27c8b9d8b680db9dbd574.tar.bz2
abc-f59de3decc1daad5c2d27c8b9d8b680db9dbd574.zip
Fixes to Verilog parser.
Diffstat (limited to 'src/base')
-rw-r--r--src/base/abc/abc.h4
-rw-r--r--src/base/io/io.c6
-rw-r--r--src/base/ver/verCore.c2
3 files changed, 9 insertions, 3 deletions
diff --git a/src/base/abc/abc.h b/src/base/abc/abc.h
index 683bb76b..3c9c4c7b 100644
--- a/src/base/abc/abc.h
+++ b/src/base/abc/abc.h
@@ -192,8 +192,8 @@ struct Abc_Ntk_t_
int iStep; // the generation number for the given network
// hierarchy
Abc_Lib_t * pDesign;
- short fHieVisited; // flag to mark the visited network
- short fHiePath; // flag to mark the network on the path
+ int fHieVisited; // flag to mark the visited network
+ int fHiePath; // flag to mark the network on the path
int Id; // model ID
double dTemp; // temporary value
// miscellaneous data members
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 )
diff --git a/src/base/ver/verCore.c b/src/base/ver/verCore.c
index d9af5401..b4a4c9f2 100644
--- a/src/base/ver/verCore.c
+++ b/src/base/ver/verCore.c
@@ -2538,7 +2538,7 @@ int Ver_ParseDriveFormal( Ver_Man_t * pMan, Abc_Ntk_t * pNtk, Ver_Bundle_t * pBu
Vec_PtrForEachEntry( Abc_Obj_t *, pBundle->vNetsActual, pNetAct, m )
if ( Abc_ObjFaninNum(pNetAct) > 0 )
{
- sprintf( pMan->sError, "Internal error while trying to connect undefined boxes. It is likely that the algorithm currently used has its limitations." );
+ sprintf( pMan->sError, "Missing specification of the I/Os of undefined box \"%s\".", Abc_NtkName(pNtk) );
Ver_ParsePrintErrorMessage( pMan );
return 0;
}