Commit 931e5882 by Alan Mishchenko

Infrastructure to support full Liberty format and unitification of library representations.

parent ff5d3591
...@@ -19,6 +19,8 @@ ...@@ -19,6 +19,8 @@
***********************************************************************/ ***********************************************************************/
#include "sclLib.h" #include "sclLib.h"
#include "misc/st/st.h"
#include "map/mio/mio.h"
ABC_NAMESPACE_IMPL_START ABC_NAMESPACE_IMPL_START
...@@ -476,7 +478,8 @@ char * Scl_LibertyFileContents( char * pFileName, int nContents ) ...@@ -476,7 +478,8 @@ char * Scl_LibertyFileContents( char * pFileName, int nContents )
{ {
FILE * pFile = fopen( pFileName, "rb" ); FILE * pFile = fopen( pFileName, "rb" );
char * pContents = ABC_ALLOC( char, nContents+1 ); char * pContents = ABC_ALLOC( char, nContents+1 );
int RetValue = fread( pContents, nContents, 1, pFile ); int RetValue;
RetValue = fread( pContents, nContents, 1, pFile );
fclose( pFile ); fclose( pFile );
pContents[nContents] = 0; pContents[nContents] = 0;
return pContents; return pContents;
...@@ -1240,7 +1243,6 @@ Vec_Str_t * Scl_LibertyReadSclStr( Scl_Tree_t * p, int fVerbose, int fVeryVerbos ...@@ -1240,7 +1243,6 @@ Vec_Str_t * Scl_LibertyReadSclStr( Scl_Tree_t * p, int fVerbose, int fVeryVerbos
// output pins // output pins
Scl_ItemForEachChildName( p, pCell, pPin, "pin" ) Scl_ItemForEachChildName( p, pCell, pPin, "pin" )
{ {
extern Vec_Wrd_t * Mio_ParseFormulaTruth( char * pFormInit, char ** ppVarNames, int nVars );
if ( !Scl_LibertyReadPinFormula(p, pPin) ) // skip input pin if ( !Scl_LibertyReadPinFormula(p, pPin) ) // skip input pin
continue; continue;
assert( Scl_LibertyReadPinDirection(p, pPin) == 1 ); assert( Scl_LibertyReadPinDirection(p, pPin) == 1 );
......
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