Netlist that describe the use of .func feature (Phil Barker).

This commit is contained in:
pnenzi 2008-11-06 21:19:21 +00:00
parent 00da122a5e
commit 0b3d3c8558
1 changed files with 14 additions and 0 deletions

14
examples/func_cap.sp Normal file
View File

@ -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