User-defined fields not fully exported for multi-unit parts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KiCad |
Triaged
|
Medium
|
Unassigned |
Bug Description
For multi-unit parts, only one value for each user-defined field is exported in the generic netlist exporter, even though each unit can have different values for the same user-defined field. This is a well-understood problem (comments in the netlist exporter code lament it). It sounds like the original thinking here was that Eeschema would be changed to enforce uniformity in fields across multi-unit components, but based on the most recent discussions here: https:/
I'm involved in the same project to digitize a bunch of Apollo Guidance Computer schematics that became available recently into KiCAD. What we'd really like to do, in the long run, is generate digital simulations of the computer from netlists exported from KiCAD, both as a means of validating the correctness of the transcription, and for study to help improve our understanding of it.
For this, it would be extremely useful to be able to export all of the user-defined fields for multi-unit parts. The logic of the computer was constructed exclusively using dual three-input NOR gate integrated circuits. For the purposes of the schematics, both "units" (gates) are assigned a unique designator, which we have entered as a user-defined field per unit, and displayed on the schematic. For simulation purposes, we also need to tag the gates with initial conditions of "1" or "0", to stabilize the simulation (otherwise flip-flops would bounce endlessly). And lastly, each pin of the main 276-pin backplane connector is drawn as its own "unit". For these, we adding a field to each pin's unit with the net name of the backplane signal connected to that pin. Here's an image showing all of that: http://
Based on the comments in the exporter, the current way to do this would be to find the first unit in the component, and add uniquely named fields for each gate number, each initial condition, and each backplane net. This would get confusing and error-prone pretty quickly, especially for the big backplane connector.
Would it be possible to get all of this information added to the netlist export? It could be done in a backwards-
...
<comp ref="U41">
<unit_fields>
<unit number="1">
<field name="Gate"
<field name="Initial"
</unit>
<unit number="2">
<field name="Gate"
<field name="Initial"
</unit>
<
<
...
Changed in kicad: | |
importance: | Undecided → Medium |
status: | New → Triaged |