Incorrect export of Spice net-list from EESchema
Bug #1511552 reported by
xarx
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KiCad |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
EESchema incorrectly exports transistors (and probably also other components) into Spice net-lists.
In Spice, the pin order must be CBE, but EESchema seems to export the pins in the order of their pin numbers. The pin numbers change with the transistor physical package (TO126, TO220,...), but the pin order in the Spice net-list must not. It seems to me that currently I have to choose an el. component symbol according to what I'm planning to do with the schema - different pin-out for simulations, and different pin-out for PCB.
Originally discussed here: https:/
Changed in kicad: | |
status: | New → Incomplete |
tags: | added: export |
Changed in kicad: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
The current situation in KiCad is as follows:
By default, the pins are generated in the order of their numbers. But this can be changed by using the user field named "Spice_ Node_Sequence" . However, this is impractical, as either one has to use modified libraries that have this field set, or he must not forget to set this field manually for each component. The same situation is with the reference prefix - the prefixes used by KiCad differ from those required by Spice (e.g. "Q" in KiCad should be "Q", "M", "J" or "Z" in Spice). So, one is forced to name component references according to the needs of Spice, if he is planning to use the schema for simulations. And there is currently no user field analogical to "Spice_ Node_Sequence" concerning the prefixes.
The KiCad -> Spice netlist export has also other problems, for instance is doesn't convert values properly (or rather at all), forcing the use of Spice syntax in KiCad schemas. (E.g. 1k5 or 1M resistor - the first one would be syntactically incorrect for Spice, the second one would be interpreted as 1 milli Ohm, as Spice is case insensitive.