mirror of
https://github.com/KLayout/klayout.git
synced 2026-09-07 19:51:32 +02:00
Including internal net names in LVS DB
Problem: so far, these names have not been conveyed. But after the net IDs changed in the LVS DB (renumbering), the names should be retained. Otherwise it is difficult to relate log level entries or Spice netlists to them.
This commit is contained in:
@@ -692,6 +692,8 @@ void std_writer_impl<Keys>::write (TokenizedOutput &stream, const db::Net &net,
|
||||
*outp << tl::to_string (id);
|
||||
if (! net.name ().empty ()) {
|
||||
TokenizedOutput (*outp, Keys::name_key, true) << tl::to_word_or_quoted_string (net.name ());
|
||||
} else if (net.id () != id) {
|
||||
TokenizedOutput (*outp, Keys::name_key, true) << tl::to_word_or_quoted_string (net.expanded_name ());
|
||||
}
|
||||
|
||||
*outp << endl;
|
||||
|
||||
@@ -154,7 +154,7 @@ TEST(16_private)
|
||||
TEST(17_private)
|
||||
{
|
||||
test_is_long_runner ();
|
||||
run_test (_this, "test_17.lylvs", "test_17b.cir.gz", "test_17.gds.gz", true, "test_17b_4.lvsdb");
|
||||
run_test (_this, "test_17.lylvs", "test_17b.cir.gz", "test_17.gds.gz", true, "test_17b_5.lvsdb");
|
||||
}
|
||||
|
||||
TEST(18_private)
|
||||
@@ -177,7 +177,7 @@ TEST(20_private)
|
||||
|
||||
TEST(21_private)
|
||||
{
|
||||
run_test (_this, "test_21.lylvs", "test_21.cir.gz", "test_21.gds.gz", true, "test_21_5.lvsdb");
|
||||
run_test (_this, "test_21.lylvs", "test_21.cir.gz", "test_21.gds.gz", true, "test_21_6.lvsdb");
|
||||
}
|
||||
|
||||
// issue #1021
|
||||
|
||||
Reference in New Issue
Block a user