Spice model parameters

Bug #1766931 reported by JKB
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
Unknown

Bug Description

I use sometimes model parameters. For example, I have created a library with potentiometers :

.SUBCKT POT 1 2 3 wiper=0.5 Rtot=1k
.param w=limit(wiper, 0, 1)
R0 1 2 {Rtot*(1-w)}
R1 2 3 {Rtot*(w)}
.ENDS

With kicad 4.0.7, it was possible to indicate parameters in value fied (for example POT wiper=0.1 Rtot=50k). WIth 5.0rc2, only POT is written in spice netlist.

Regards,

JKB

tags: added: eeschema spice
Revision history for this message
Maciej Suminski (orsonmmz) wrote :

The value field is used directly only for passive components which do not have an explicit Spice model assigned. Once there are Spice_* fields defined they are used for simulation, so it means you can add the desired parameters to Spice_Model field.

Revision history for this message
Jeff Young (jeyjey) wrote :

@Orson, do we want to mark this as a Wishlist to possibly support the shorthand syntax in the future, or is this a Won't Fix?

Revision history for this message
Maciej Suminski (orsonmmz) wrote :

I think a request for a dialog to define model parameters is fine, though it is not like it is completely broken now. I use parameters in the way described in my previous answer and they work as expected.

Changed in kicad:
importance: Undecided → Wishlist
milestone: none → 6.0.0-rc1
tags: added: ngspice
removed: spice
Revision history for this message
KiCad Janitor (kicad-janitor) wrote :

KiCad bug tracker has moved to Gitlab. This report is now available here: https://gitlab.com/kicad/code/kicad/-/issues/2130

Changed in kicad:
status: New → Expired
Changed in kicad:
importance: Wishlist → Unknown
status: Expired → New
Changed in kicad:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.