diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2012-03-02 11:48:13 -0800 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2012-03-02 11:48:13 -0800 |
commit | 7e805e5c9ac3794b469f7bfe21bd933f49689afb (patch) | |
tree | 1e351b1ccaa3855c4c314a61d0b9b0df0f75ee08 /src/map/amap/amapRead.c | |
parent | 7fa9de2da4fe215ddabe4a89d038263df9b9c30f (diff) | |
download | abc-7e805e5c9ac3794b469f7bfe21bd933f49689afb.tar.gz abc-7e805e5c9ac3794b469f7bfe21bd933f49689afb.tar.bz2 abc-7e805e5c9ac3794b469f7bfe21bd933f49689afb.zip |
Making GENLIB parser skip LATCHes.
Diffstat (limited to 'src/map/amap/amapRead.c')
-rw-r--r-- | src/map/amap/amapRead.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map/amap/amapRead.c b/src/map/amap/amapRead.c index 1031ee84..471438d5 100644 --- a/src/map/amap/amapRead.c +++ b/src/map/amap/amapRead.c @@ -183,6 +183,10 @@ Vec_Ptr_t * Amap_DeriveTokens( char * pBuffer ) { Vec_PtrPush( vTokens, pToken ); pToken = strtok( NULL, " =\t\r\n" ); + // skip latches + if ( pToken && strcmp( pToken, "LATCH" ) == 0 ) + while ( pToken && strcmp( pToken, "GATE" ) != 0 ) + pToken = strtok( NULL, " =\t\r\n" ); } return vTokens; } |