Stefan Schippers
03/22/2024, 8:50 AMFUNC="{expression}"
the braces are ngspice syntax. You can also use single quotes:
FUNC="'expression'"
the example shown in image produces this line;
B1 IOUT 0 V = {OFFSET + AMPLITUDE/2*(tanh(V(IPLUS,IMINUS)*GAIN*2/AMPLITUDE))}
Christoph Maier
03/22/2024, 11:35 AMdevices/asrc.sym
and used it here:
https://github.com/tatzelbrumm/sky130_cm_ip__biasgen/blame/main/xschem/test_isweep.sch, line 84.
The problem here is not that I don't know how to do B source magic,
cf.
https://github.com/tatzelbrumm/teachingskilldemo/blame/master/LTspice/TimeVariableCoupling.asc, lines 69 and 72
(sorry, too busy right now trying to meet an arbitrary and capricious chipalooza deadline that could be used as chokepoint to enforce the Welch Matrix, cf.
https://www.12manage.com/images/picture_welch_matrix_performance_values_match.png▾
xschem
is inconsistent and subject to change without notice.
That makes the various and sundry, inconsistent shotgun parsers
[https://langsec.org/brucon/ShotgunParsersBruCON.pdf]
in your tool chain (including, prominently, xschem) a chokepoint
(by accident or by design, cf.
https://chokepointcapitalism.com/)
for any reliable, predictable design based on your open source tool chain.
Nearly everything that matters is a side effect.
— Meredith L. Patterson