From 7560201dc50c8fbeeaa56354a813beeda992b768 Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Fri, 6 Oct 2023 23:38:04 +0200 Subject: [PATCH] Fixed issue #1503 (Import LEF/DEF - LEF files given in list are ignored for DEF import) --- src/plugins/streamers/lefdef/lay_plugin/layLEFDEFImport.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/plugins/streamers/lefdef/lay_plugin/layLEFDEFImport.cc b/src/plugins/streamers/lefdef/lay_plugin/layLEFDEFImport.cc index b08d3384a5..49a703a83b 100644 --- a/src/plugins/streamers/lefdef/lay_plugin/layLEFDEFImport.cc +++ b/src/plugins/streamers/lefdef/lay_plugin/layLEFDEFImport.cc @@ -140,6 +140,13 @@ class LEFDEFImportPluginDeclaration } db::LEFDEFReader reader (stream); + + // Add the LEF files specified explicitly + db::LEFDEFReaderOptions *lefdef_options = dynamic_cast (options.get_options (reader.format ())); + auto lef_files = lefdef_options->lef_files (); + lef_files.insert (lef_files.end (), data.lef_files.begin (), data.lef_files.end ()); + lefdef_options->set_lef_files (lef_files); + reader.read_lefdef (*layout, options, import_lef); lay::LayoutView *view = lay::LayoutView::current ();