Enable "personalizing" of subcircuits by adding parameters to the instance line
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KiCad |
Fix Released
|
Unknown
|
Bug Description
The accompanying example of a potentiometer (device:R_POT) does show it:
In the eeschema circuit drawing, in the line
R_POT wiper=0.3 val=100k
the tokens wiper=0.3 val=100k are ignored when creating the ngspice instance line
XRV1 "/VDD" "/out" 0 POTI
in the netlist. It is desirable to have
XRV1 "/VDD" "/out" 0 POTI wiper=0.3 val=100k
instead. Thus it would be possible to simulate different potentiometers just
by adding some parameters to each symbol value field and finding them at
the end of the instance line XRV1... in the netlist. Of course the
corresponding subcircuit in the lib file has to show the same parameters
in its .subckt line. But only a single subcircuit in its ngspice lib file
would be needed then for all different potentiometers in a circuit.
tags: | added: eeschema |
Changed in kicad: | |
importance: | Undecided → Wishlist |
status: | New → Triaged |
Changed in kicad: | |
milestone: | none → 6.0.0-rc1 |
Changed in kicad: | |
importance: | Wishlist → Unknown |
status: | Expired → New |
Changed in kicad: | |
status: | New → Fix Released |
KiCad version used in the above example:
Application: Eeschema 599-gde055031a) , release build compatible with 2.8)
Version: (5.1.0-
Libraries:
wxWidgets 3.0.4
libcurl/7.61.1 OpenSSL/1.1.1 (WinSSL) zlib/1.2.11 brotli/1.0.6 libidn2/2.0.5 libpsl/0.20.2 (+libidn2/2.0.5) nghttp2/1.34.0
Platform: Windows 7 (build 7601, Service Pack 1), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
wxWidgets: 3.0.4 (wchar_t,wx containers,
Boost: 1.68.0
OpenCASCADE Community Edition: 6.9.1
Curl: 7.61.1
Compiler: GCC 8.2.0 with C++ ABI 1013
Build settings: WX_GRAPHICS_ CONTEXT= OFF WX_OVERLAY= OFF SCRIPTING= ON SCRIPTING_ MODULES= ON SCRIPTING_ PYTHON3= OFF SCRIPTING_ WXPYTHON= ON SCRIPTING_ WXPYTHON_ PHOENIX= OFF SCRIPTING_ ACTION_ MENU=ON GITHUB_ PLUGIN= ON USE_OCE= ON USE_OCC= OFF
USE_
USE_
KICAD_
KICAD_
KICAD_
KICAD_
KICAD_
KICAD_
BUILD_
KICAD_
KICAD_
KICAD_SPICE=ON