Skip to content

Commit cb649e6

Browse files
author
Matthias Koefferlein
committed
Merge branch 'master' of github.com:KLayout/klayout
2 parents 43310e7 + e76e9b7 commit cb649e6

27 files changed

+768
-200
lines changed

src/buddies/src/bd/bdConverterMain.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
#include "dbReader.h"
2828
#include "dbWriter.h"
2929
#include "tlCommandLineParser.h"
30+
#include "tlTimer.h"
3031

3132
namespace bd
3233
{
@@ -53,6 +54,8 @@ int converter_main (int argc, char *argv[], const std::string &format)
5354

5455
db::Layout layout;
5556

57+
tl::SelfTimer timer (tl::verbosity () >= 11, tl::to_string (tr ("Total")));
58+
5659
{
5760
db::LoadLayoutOptions load_options;
5861
generic_reader_options.configure (load_options);

src/buddies/src/bd/bdReaderOptions.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,9 @@ GenericReaderOptions::GenericReaderOptions ()
120120
m_lefdef_separate_groups = load_options.get_option_by_name ("lefdef_config.separate_groups").to_bool ();
121121
m_lefdef_joined_paths = load_options.get_option_by_name ("lefdef_config.joined_paths").to_bool ();
122122
m_lefdef_map_file = load_options.get_option_by_name ("lefdef_config.map_file").to_string ();
123-
m_lefdef_macro_resolution_mode = load_options.get_option_by_name ("lefdef_config.macro_resolution_mode").to_int ();
123+
// Don't take the default, as in practice, it's more common to substitute LEF macros by layouts
124+
// m_lefdef_macro_resolution_mode = load_options.get_option_by_name ("lefdef_config.macro_resolution_mode").to_int ();
125+
m_lefdef_macro_resolution_mode = 2; // "assume FOREIGN always"
124126
}
125127

126128
void

src/buddies/src/bd/strmclip.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#include "dbSaveLayoutOptions.h"
3030
#include "tlLog.h"
3131
#include "tlCommandLineParser.h"
32+
#include "tlTimer.h"
3233

3334

3435
struct ClipData
@@ -200,6 +201,8 @@ BD_PUBLIC int strmclip (int argc, char *argv[])
200201

201202
cmd.parse (argc, argv);
202203

204+
tl::SelfTimer timer (tl::verbosity () >= 11, tl::to_string (tr ("Total")));
205+
203206
clip (data);
204207

205208
return 0;

src/buddies/src/bd/strmcmp.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include "dbLayoutDiff.h"
2626
#include "dbReader.h"
2727
#include "tlCommandLineParser.h"
28+
#include "tlTimer.h"
2829

2930
BD_PUBLIC int strmcmp (int argc, char *argv[])
3031
{
@@ -141,6 +142,8 @@ BD_PUBLIC int strmcmp (int argc, char *argv[])
141142
throw tl::Exception ("Both -ta|--top-a and -tb|--top-b top cells must be given");
142143
}
143144

145+
tl::SelfTimer timer (tl::verbosity () >= 11, tl::to_string (tr ("Total")));
146+
144147
db::Layout layout_a;
145148
db::Layout layout_b;
146149

src/buddies/src/bd/strmrun.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include "tlLog.h"
2929
#include "tlCommandLineParser.h"
3030
#include "tlFileUtils.h"
31+
#include "tlTimer.h"
3132
#include "rba.h"
3233
#include "pya.h"
3334
#include "gsi.h"
@@ -97,5 +98,8 @@ BD_PUBLIC int strmrun (int argc, char *argv[])
9798
lym::Macro macro;
9899
macro.load_from (script);
99100
macro.set_file_path (script);
101+
102+
tl::SelfTimer timer (tl::verbosity () >= 11, tl::to_string (tr ("Total")));
103+
100104
return macro.run ();
101105
}

0 commit comments

Comments
 (0)