Commit f59de3de by Alan Mishchenko

Fixes to Verilog parser.

parent 723f85ef
...@@ -192,8 +192,8 @@ struct Abc_Ntk_t_ ...@@ -192,8 +192,8 @@ struct Abc_Ntk_t_
int iStep; // the generation number for the given network int iStep; // the generation number for the given network
// hierarchy // hierarchy
Abc_Lib_t * pDesign; Abc_Lib_t * pDesign;
short fHieVisited; // flag to mark the visited network int fHieVisited; // flag to mark the visited network
short fHiePath; // flag to mark the network on the path int fHiePath; // flag to mark the network on the path
int Id; // model ID int Id; // model ID
double dTemp; // temporary value double dTemp; // temporary value
// miscellaneous data members // miscellaneous data members
......
...@@ -197,6 +197,12 @@ int IoCommandRead( Abc_Frame_t * pAbc, int argc, char ** argv ) ...@@ -197,6 +197,12 @@ int IoCommandRead( Abc_Frame_t * pAbc, int argc, char ** argv )
for ( pTemp = pFileName; *pTemp; pTemp++ ) for ( pTemp = pFileName; *pTemp; pTemp++ )
if ( *pTemp == '>' ) if ( *pTemp == '>' )
*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 // read the file using the corresponding file reader
pNtk = Io_Read( pFileName, Io_ReadFileType(pFileName), fCheck ); pNtk = Io_Read( pFileName, Io_ReadFileType(pFileName), fCheck );
if ( pNtk == NULL ) if ( pNtk == NULL )
......
...@@ -2538,7 +2538,7 @@ int Ver_ParseDriveFormal( Ver_Man_t * pMan, Abc_Ntk_t * pNtk, Ver_Bundle_t * pBu ...@@ -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 ) Vec_PtrForEachEntry( Abc_Obj_t *, pBundle->vNetsActual, pNetAct, m )
if ( Abc_ObjFaninNum(pNetAct) > 0 ) 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 ); Ver_ParsePrintErrorMessage( pMan );
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment