Comment 2 for bug 1161063

Revision history for this message
tvrusso (russo-bogodyn) wrote :

This file is a tar file containing a simple hierarchical schematic (a common emitter amplifier and a driver circuit for it). When netlisted with :
    gnetlist -g spice-sdb CE_Amplifier.sch

the resulting netlist incorrectly has the lower-level resistors and capacitors named "S1/R1", "S1/C1", etc. SPICE will not simulate that netlist correctly, as it will treat all of those devices as switches instead.

With the attached patch, these devices are output as "RS1/R1", "CS1/C1" etc. The resulting netlist simulates properly in SPICE.

Again, my patch only fixes the three simple passives, not all of the devices that are missing "write-prefix" calls.