Typo in LefImport, the conf variable name is "lefImport.unmatchedlayers".

This commit is contained in:
Jean-Paul Chaput 2022-10-30 10:08:43 +01:00
parent 47b26476b7
commit 3613ce0b5d
2 changed files with 13 additions and 11 deletions

View File

@ -566,26 +566,26 @@ namespace CRL {
Cell* AllianceFramework::createCell ( const string& name, AllianceLibrary* library )
{
Catalog::State* state = _catalog.getState ( name );
Catalog::State* state = _catalog.getState( name );
// The cell is not in the CATAL : add an entry.
if ( state == NULL ) state = _catalog.getState ( name, true );
if (not state) state = _catalog.getState( name, true );
if ( library == NULL ) {
if (not library) {
if (_libraries.empty())
throw Error( "AllianceFramework::createCell(): Libraries are not set up, maybe an initialization problem." );
library = _libraries[0];
}
if ( !state->getCell() ) {
state->setPhysical ( true );
state->setLogical ( true );
state->setDepth ( 1 );
if (not state->getCell()) {
state->setPhysical( true );
state->setLogical ( true );
state->setDepth ( 1 );
state->setCell ( Cell::create ( library->getLibrary() , name ) );
state->getCell ()->put ( CatalogProperty::create(state) );
state->getCell ()->setTerminalNetlist ( false );
state->setCell( Cell::create ( library->getLibrary(), name ));
state->getCell()->put( CatalogProperty::create(state) );
state->getCell()->setTerminalNetlist( false );
}
return state->getCell ();

View File

@ -241,7 +241,7 @@ namespace {
if (not _cellGauge)
throw Error( "LefParser::LefParser(): No default cell gauge defined in Alliance framework." );
string unmatcheds = Cfg::getParamString("LefImport.unmatchedLayers","")->asString();
string unmatcheds = Cfg::getParamString("lefImport.unmatchedLayers","")->asString();
if (not unmatcheds.empty()) {
size_t ibegin = 0;
size_t iend = unmatcheds.find( ',', ibegin );
@ -321,6 +321,7 @@ namespace {
Layer* layer = techno->getNthCut( parser->getNthCut() );
while (parser->isUnmatchedLayer(getString(layer->getName()))) {
parser->incNthCut();
cerr << " - Unmapped techno layer \"" << layer->getName() << "\"" << endl;
layer = techno->getNthCut( parser->getNthCut() );
}
if (layer) {
@ -335,6 +336,7 @@ namespace {
Layer* layer = techno->getNthMetal( parser->getNthMetal() );
while (parser->isUnmatchedLayer(getString(layer->getName()))) {
parser->incNthMetal();
cerr << " - Unmapped techno layer \"" << layer->getName() << "\"" << endl;
layer = techno->getNthMetal( parser->getNthMetal() );
}