From 0b3d3c855868d91100f57f4e536895c182fd9360 Mon Sep 17 00:00:00 2001 From: pnenzi Date: Thu, 6 Nov 2008 21:19:21 +0000 Subject: [PATCH] Netlist that describe the use of .func feature (Phil Barker). --- examples/func_cap.sp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 examples/func_cap.sp diff --git a/examples/func_cap.sp b/examples/func_cap.sp new file mode 100644 index 000000000..7894fb146 --- /dev/null +++ b/examples/func_cap.sp @@ -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