Fix spfile Xyce netlist entry

This commit is contained in:
Vadim Kuznetsov 2024-01-14 18:26:39 +03:00
parent 43eebdb71e
commit 260651f8d2

View File

@ -207,7 +207,7 @@ QString SParamFile::spice_netlist(bool isXyce)
QString s_mod = "YLIN_" + Name + "_model";
for(int i = 0; i < Np; i++) {
QString p_in = spicecompat::normalize_node_name(Ports.at(i)->Connection->Name);
QString p_com = spicecompat::normalize_node_name(Ports.at(Np-1)->Connection->Name);
QString p_com = spicecompat::normalize_node_name(Ports.at(Np)->Connection->Name);
s += QString(" %1 %2").arg(p_in).arg(p_com);
}
s += QString(" %1\n").arg(s_mod);