Bugfix: Spice writer added one pin too much to MOS4 transistors.

This commit is contained in:
Matthias Koefferlein
2019-03-04 17:26:35 +01:00
parent 604a634bf1
commit bacd565d05
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -135,7 +135,7 @@ void NetlistSpiceWriterDelegate::write_device (const db::Device &dev) const
os << format_name (dev.expanded_name ());
os << format_terminals (dev);
if (mos3) {
if (! mos4) {
// we assume for the MOS3 type the bulk is connected to Source
os << " ";
os << net_to_string (dev.net_for_terminal (db::DeviceClassMOS3Transistor::terminal_id_S));