Skip to content

Commit

Permalink
Special case in Verilog parser.
Browse files Browse the repository at this point in the history
  • Loading branch information
alanminko committed Dec 6, 2019
1 parent 95a6aa2 commit 24d9ce6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/base/ver/verCore.c
Expand Up @@ -1329,13 +1329,15 @@ int Ver_ParseAssign( Ver_Man_t * pMan, Abc_Ntk_t * pNtk )
***********************************************************************/
int Ver_ParseGateStandard( Ver_Man_t * pMan, Abc_Ntk_t * pNtk, Ver_GateType_t GateType )
{
extern void Ver_StreamMove( Ver_Stream_t * p );
Ver_Stream_t * p = pMan->pReader;
Abc_Obj_t * pNet, * pNode;
char * pWord, Symbol;

// convert from the blackbox into the network with local functions representated by AIGs
if ( !Ver_ParseConvertNetwork( pMan, pNtk, pMan->fMapped ) )
return 0;
Ver_StreamMove( p );

// this is gate name - throw it away
if ( Ver_StreamPopChar(p) != '(' )
Expand Down
18 changes: 18 additions & 0 deletions src/base/ver/verStream.c
Expand Up @@ -441,6 +441,24 @@ char * Ver_StreamGetWord( Ver_Stream_t * p, char * pCharsToStop )
return NULL;
}

/**Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
***********************************************************************/
void Ver_StreamMove( Ver_Stream_t * p )
{
if ( !strncmp(p->pBufferCur+1, "z_g_", 4) )
while ( p->pBufferCur[0] != '(' )
p->pBufferCur++;
}

////////////////////////////////////////////////////////////////////////
/// END OF FILE ///
////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit 24d9ce6

Please sign in to comment.