Fixed issue #1925 (MAGIC import fails)

This commit is contained in:
Matthias Koefferlein 2024-11-17 21:42:29 +01:00
parent b4dabe29e5
commit 85caa4b397
4 changed files with 17 additions and 0 deletions

View File

@ -531,6 +531,9 @@ MAGReader::read_rlabel (tl::Extractor &ex, Layout &layout, cell_index_type cell_
std::string lname;
ex.read (lname);
// skip sticky flag (optional)
ex.test ("s");
double l, b, r, t;
ex.read (l);
ex.read (b);

View File

@ -156,3 +156,8 @@ TEST(3)
run_test (_this, tl::testdata (), "ringo/RINGO.mag", "ringo_au.cif.gz");
}
TEST(4)
{
run_test (_this, tl::testdata (), "issue_1925/redux.mag", "redux_au.cif.gz");
}

9
testdata/magic/issue_1925/redux.mag vendored Normal file
View File

@ -0,0 +1,9 @@
magic
tech sky130A
timestamp 1731684784
<< metal4 >>
rect 0 0 10000 100
<< labels >>
rlabel metal4 s 10500 -9100 10600 12800 6 vccd1
port 1 nsew power input
<< end >>

BIN
testdata/magic/redux_au.cif.gz vendored Normal file

Binary file not shown.