From cef868d77401fcf149857b38c34067b3504a3ac8 Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Thu, 28 Nov 2019 01:03:25 +0100 Subject: [PATCH] WIP: ongoing development. --- src/plugins/streamers/magic/db_plugin/dbMAGWriter.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/plugins/streamers/magic/db_plugin/dbMAGWriter.cc b/src/plugins/streamers/magic/db_plugin/dbMAGWriter.cc index 5b2651f8d..f585c8c88 100644 --- a/src/plugins/streamers/magic/db_plugin/dbMAGWriter.cc +++ b/src/plugins/streamers/magic/db_plugin/dbMAGWriter.cc @@ -143,7 +143,9 @@ MAGWriter::filename_for_cell (db::cell_index_type ci, db::Layout &layout) { tl::URI uri (m_base_uri); if (uri.path ().empty ()) { - uri.set_path (std::string (layout.cell_name (ci)) + m_ext); + uri.set_path (std::string (layout.cell_name (ci)) + "." + m_ext); + } else { + uri.set_path (uri.path () + "/" + std::string (layout.cell_name (ci)) + "." + m_ext); } return uri.to_string (); } @@ -155,6 +157,7 @@ MAGWriter::write_cell (db::cell_index_type ci, db::Layout &layout, tl::OutputStr os << "magic\n"; // @@@ write tech + os << "tech scmos\n"; os << "timestamp " << m_timestamp << "\n"; @@ -280,7 +283,7 @@ MAGWriter::write_instance (const db::CellInstArray &inst, const db::Layout &layo } { - db::DBox b = db::DBox (inst.bbox (db::box_convert ())) * m_sf; + db::DBox b = db::DBox (inst.bbox (db::box_convert (layout))) * m_sf; os << "box " << b.left () << " " << b.bottom () << " " << b.right () << " " << b.top () << "\n"; } }