mirror of
https://git.code.sf.net/p/ngspice/ngspice
synced 2026-08-28 16:54:20 +02:00
Netlist that describe the use of .func feature (Phil Barker).
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
* func_cap.sp
|
||||
|
||||
|
||||
.func icap_calc(A,B,C,D) '2*A*sqrt(B*C*D)'
|
||||
|
||||
.param cap_val = 'max(icap_calc(1,2,3,4))'
|
||||
VDD 1 0 DC 1
|
||||
C1 1 0 'cap_val'
|
||||
|
||||
.measure tran capacitance param='cap_val'
|
||||
|
||||
.tran 1ps 100ps
|
||||
|
||||
.end
|
||||
Reference in New Issue
Block a user