diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2013-10-02 18:22:14 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2013-10-02 18:22:14 -0700 |
commit | e01174c6db703a4d9f50a5ef3d494ea68c7640c2 (patch) | |
tree | 63bc7e087781cd442a874936f02e9cc68bc1e707 /src/map/scl/scl.c | |
parent | fb2ae7c22f42e05c920dd9366313422ff073749f (diff) | |
download | abc-e01174c6db703a4d9f50a5ef3d494ea68c7640c2.tar.gz abc-e01174c6db703a4d9f50a5ef3d494ea68c7640c2.tar.bz2 abc-e01174c6db703a4d9f50a5ef3d494ea68c7640c2.zip |
Bug fixes in the library processing,.
Diffstat (limited to 'src/map/scl/scl.c')
-rw-r--r-- | src/map/scl/scl.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/map/scl/scl.c b/src/map/scl/scl.c index 48295868..70b11288 100644 --- a/src/map/scl/scl.c +++ b/src/map/scl/scl.c @@ -212,6 +212,12 @@ int Scl_CommandReadLib( Abc_Frame_t * pAbc, int argc, char ** argv ) fprintf( pAbc->Err, "Reading SCL library from file \"%s\" has failed. \n", pFileName ); return 1; } + if ( Abc_SclLibClassNum(pLib) < 3 ) + { + fprintf( pAbc->Err, "Library with only %d cell classes cannot be used.\n", Abc_SclLibClassNum(pLib) ); + Abc_SclLibFree(pLib); + return 0; + } Abc_SclLoad( pLib, (SC_Lib **)&pAbc->pLibScl ); // dump the resulting library if ( fDump && pAbc->pLibScl ) |