Skip to content

Commit

Permalink
Fixed #448 and updated test data
Browse files Browse the repository at this point in the history
  • Loading branch information
klayoutmatthias committed Dec 15, 2019
1 parent 06a68b7 commit fccd78a
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/db/db/dbLayoutToNetlistWriter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -199,12 +199,12 @@ void std_writer_impl<Keys>::write (bool nested, std::map<const db::Circuit *, st

if (mp_netlist->begin_device_classes () != mp_netlist->end_device_classes () && ! Keys::is_short ()) {
*mp_stream << endl << indent << "# Device class section" << endl;
for (db::Netlist::const_device_class_iterator c = mp_netlist->begin_device_classes (); c != mp_netlist->end_device_classes (); ++c) {
db::DeviceClassTemplateBase *temp = db::DeviceClassTemplateBase::is_a (c.operator-> ());
if (temp) {
*mp_stream << indent << Keys::class_key << "(" << tl::to_word_or_quoted_string (c->name ()) << " " << tl::to_word_or_quoted_string (temp->name ()) << ")" << endl;
m_progress.set (mp_stream->pos ());
}
}
for (db::Netlist::const_device_class_iterator c = mp_netlist->begin_device_classes (); c != mp_netlist->end_device_classes (); ++c) {
db::DeviceClassTemplateBase *temp = db::DeviceClassTemplateBase::is_a (c.operator-> ());
if (temp) {
*mp_stream << indent << Keys::class_key << "(" << tl::to_word_or_quoted_string (c->name ()) << " " << tl::to_word_or_quoted_string (temp->name ()) << ")" << endl;
m_progress.set (mp_stream->pos ());
}
}

Expand Down
2 changes: 2 additions & 0 deletions testdata/algo/l2n_writer_au_2s.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ C(ptie diff_cont ptie)
C(nsd diff_cont nsd)
G(rbulk BULK)
G(ptie BULK)
K(PMOS MOS4)
K(NMOS MOS4)
D(D$PMOS PMOS
T(S
R(psd (-650 -475) (525 950))
Expand Down
2 changes: 2 additions & 0 deletions testdata/algo/l2n_writer_au_s.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ C(metal2 via1 metal2 metal2_lbl)
C(metal2_lbl metal2)
C(psd diff_cont psd)
C(nsd diff_cont nsd)
K(PMOS MOS3)
K(NMOS MOS3)
D(D$PMOS PMOS
T(S
R(psd (-650 -475) (525 950))
Expand Down
4 changes: 4 additions & 0 deletions testdata/lvs/inv2.lvsdb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ J(
C(l10 l8 l10)
G(l7 SUBSTRATE)
G(l10 SUBSTRATE)
K(PMOS MOS4)
K(NMOS MOS4)
D(D$PMOS PMOS
T(S
R(l2 (-575 -750) (450 1500))
Expand Down Expand Up @@ -146,6 +148,8 @@ J(
)
)
H(
K(PMOS MOS4)
K(NMOS MOS4)
X(INVERTER_WITH_DIODES
N(1 I(VSS))
N(2 I(IN))
Expand Down
4 changes: 4 additions & 0 deletions testdata/lvs/invchain_cheat.lvsdb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ J(
C(l2 l6 l2)
C(l5 l6 l5)
G(l14 SUBSTRATE)
K(PMOS MOS3)
K(NMOS MOS3)
D(D$PMOS PMOS
T(S
R(l2 (-900 -475) (775 950))
Expand Down Expand Up @@ -265,6 +267,8 @@ J(
)
)
H(
K(PMOS MOS3)
K(NMOS MOS3)
X(INV
N(1 I('1'))
N(2 I('2'))
Expand Down
4 changes: 4 additions & 0 deletions testdata/lvs/ringo_simple_io.lvsdb.1
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ J(
C(l10 l8 l10)
G(l7 SUBSTRATE)
G(l10 SUBSTRATE)
K(PMOS MOS4)
K(NMOS MOS4)
D(D$PMOS PMOS
T(S
R(l2 (-550 -750) (425 1500))
Expand Down Expand Up @@ -518,6 +520,8 @@ J(
)
)
H(
K(PMOS MOS4)
K(NMOS MOS4)
X(ND2X1
N(1 I(VDD))
N(2 I(OUT))
Expand Down
4 changes: 4 additions & 0 deletions testdata/lvs/ringo_simple_io.lvsdb.2
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ J(
C(l10 l8 l10)
G(l7 SUBSTRATE)
G(l10 SUBSTRATE)
K(PMOS MOS4)
K(NMOS MOS4)
D(D$PMOS PMOS
T(S
R(l2 (-550 -750) (425 1500))
Expand Down Expand Up @@ -518,6 +520,8 @@ J(
)
)
H(
K(PMOS MOS4)
K(NMOS MOS4)
X(ND2X1
N(1 I(VDD))
N(2 I(OUT))
Expand Down
2 changes: 2 additions & 0 deletions testdata/lvs/ringo_simple_io2.l2n.1
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ C(l6 l8 l6)
C(l10 l8 l10)
G(l7 SUBSTRATE)
G(l10 SUBSTRATE)
K(PMOS MOS4)
K(NMOS MOS4)
D(D$PMOS PMOS
T(S
R(l2 (-550 -750) (425 1500))
Expand Down

0 comments on commit fccd78a

Please sign in to comment.