simulator parse error on library file
Description
Assigning library with line
.MODEL DVNF D KF={PWR(FLWF,0.5)/1E11} IS=1.0E-16
to schematic symbol rises error "expected newline not following by a line continuation" while rewriting this line to
.PARAM kf_={PWR(FLWF,0.5)/1E11}
.MODEL DVN D KF={kf_} IS=1.0E-16
seems to be parsed correctly
Steps to reproduce
- Open schematic, place symbol, open simulation parameters
- Try to assign library containitg following code:
.SUBCKT FEMT_INV 1 2
.PARAM NLFF = 100000
.PARAM FLWF = 100
.PARAM NVRF = 20000
.PARAM GLFF={PWR(FLWF,0.25)*NLFF/1164}
.PARAM RNVF={1.184*PWR(NVRF,2)}
.MODEL DVNF D KF={PWR(FLWF,0.5)/1E11} IS=1.0E-16
I1 0 7 10E-3
I2 0 8 10E-3
D1 7 0 DVNF
D2 8 0 DVNF
E1 3 6 7 8 {GLFF}
R1 3 0 1E9
R2 3 0 1E9
R3 3 6 1E9
E2 6 4 5 0 10
R4 5 0 {RNVF}
R5 5 0 {RNVF}
R6 3 4 1E9
R7 4 0 1E9
G1 1 2 3 4 1E-6
C1 1 0 1E-15
C2 2 0 1E-15
C3 1 2 1E-15
.ENDS
KiCad Version
Application: KiCad Schematic Editor
Version: (6.99.0-3887-ga02d156e5d), release build
Libraries:
wxWidgets 3.0.5
FreeType 2.11.1
HarfBuzz 2.7.4
FontConfig 2.13.1
libcurl/7.81.0 OpenSSL/3.0.2 zlib/1.2.11 brotli/1.0.9 zstd/1.4.8 libidn2/2.3.2 libpsl/0.21.0 (+libidn2/2.3.2) libssh/0.9.6/openssl/zlib nghttp2/1.43.0 librtmp/2.3 OpenLDAP/2.5.13
Platform: Linux 5.15.0-48-generic x86_64, 64 bit, Little endian, wxGTK, cinnamon, x11
Build Info:
Date: Oct 12 2022 13:33:58
wxWidgets: 3.0.5 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.24
Boost: 1.74.0
OCC: 7.5.1
Curl: 7.81.0
ngspice: 31
Compiler: GCC 11.2.0 with C++ ABI 1016
Build settings:
KICAD_SPICE=ON
Edited by Sergey A. Borshch