From 3613ce0b5d9d166be415805336c69e23de15bbe6 Mon Sep 17 00:00:00 2001 From: Jean-Paul Chaput Date: Sun, 30 Oct 2022 10:08:43 +0100 Subject: [PATCH] Typo in LefImport, the conf variable name is "lefImport.unmatchedlayers". --- crlcore/src/ccore/AllianceFramework.cpp | 20 ++++++++++---------- crlcore/src/ccore/lefdef/LefImport.cpp | 4 +++- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/crlcore/src/ccore/AllianceFramework.cpp b/crlcore/src/ccore/AllianceFramework.cpp index af4379cd..f0605dfa 100644 --- a/crlcore/src/ccore/AllianceFramework.cpp +++ b/crlcore/src/ccore/AllianceFramework.cpp @@ -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 (); diff --git a/crlcore/src/ccore/lefdef/LefImport.cpp b/crlcore/src/ccore/lefdef/LefImport.cpp index 70d5b6f0..0bca4472 100644 --- a/crlcore/src/ccore/lefdef/LefImport.cpp +++ b/crlcore/src/ccore/lefdef/LefImport.cpp @@ -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() ); }