Fixed issue #1485 (Incorrectly set output cell name if using DRC::cell)

This commit is contained in:
Matthias Koefferlein 2023-10-01 18:15:36 +02:00
parent 2558bdec39
commit 75e3c3131f
6 changed files with 34 additions and 1 deletions

View File

@ -1595,7 +1595,7 @@ module DRC
if ! @def_output
if @def_layout
# establish a new default output from the default layout on this occasion
@def_output = LayoutOutputChannel::new(self, @def_layout, cellname.to_s, nil)
@def_output = LayoutOutputChannel::new(self, @def_layout, @def_layout.cell(cellname.to_s), nil)
end
else
@def_output.cellname = cellname.to_s

View File

@ -1547,6 +1547,16 @@ TEST(60d_issue1216)
run_test (_this, "60", true);
}
TEST(61_issue1485)
{
run_test (_this, "61", false);
}
TEST(61d_issue1485)
{
run_test (_this, "61", true);
}
TEST(70_props)
{
run_test (_this, "70", false);

23
testdata/drc/drcSimpleTests_61.drc vendored Normal file
View File

@ -0,0 +1,23 @@
# Moved implementation
source($drc_test_source)
target($drc_test_target)
if $drc_test_deep
deep
end
input(1, 0).output(1, 0)
input(2, 0).output(2, 0)
cell("TOP")
l1 = input(1, 0)
l2 = input(2, 0)
l1.output(10, 0)
l2.output(11, 0)
l1.sized(100.nm).output(20, 0)
(l2 - l1).output(21, 0)

BIN
testdata/drc/drcSimpleTests_61.gds vendored Normal file

Binary file not shown.

BIN
testdata/drc/drcSimpleTests_au61.gds vendored Normal file

Binary file not shown.

BIN
testdata/drc/drcSimpleTests_au61d.gds vendored Normal file

Binary file not shown.