Bugfixed MAG reader.

This commit is contained in:
Matthias Koefferlein 2019-11-26 23:03:55 +01:00
parent 814b8df516
commit 6399f4693a
1 changed files with 5 additions and 3 deletions

View File

@ -283,6 +283,8 @@ MAGReader::do_read_part (db::Layout &layout, db::cell_index_type cell_index, tl:
error (tl::to_string (tr ("Could not find 'magic' header line - is this a MAGIC file?")));
}
layout.add_meta_info (db::MetaInfo ("magic_lambda", "MAGIC lambda value", tl::to_string (m_lambda)));
bool valid_layer = false;
unsigned int current_layer = 0;
bool in_labels = false;
@ -496,9 +498,9 @@ MAGReader::read_cell_instance (tl::Extractor &ex, tl::TextInputStream &stream, L
ex2.read (ysep);
na = (unsigned long) std::max (0, xhi - xlo + 1);
a = db::DVector (xsep, 0);
a = db::DVector (xsep, 0) * m_lambda;
nb = (unsigned long) std::max (0, yhi - ylo + 1);
b = db::DVector (ysep, 0);
b = db::DVector (ysep, 0) * m_lambda;
} else if (ex2.test ("timestamp")) {
// ignored
@ -514,7 +516,7 @@ MAGReader::read_cell_instance (tl::Extractor &ex, tl::TextInputStream &stream, L
ex2.read (m22);
ex2.read (dy);
trans = db::DCplxTrans (db::Matrix2d (m11, m12, m21, m22), db::DVector (dx, dy));
trans = db::DCplxTrans (db::Matrix2d (m11, m12, m21, m22), db::DVector (dx, dy) * m_lambda);
} else if (ex2.test ("box")) {
// ignored