summaryrefslogtreecommitdiffstatshomepage
path: root/nl_examples/rc.c
diff options
context:
space:
mode:
author couriersud <couriersud@arcor.de>2016-12-24 01:01:17 +0100
committer couriersud <couriersud@arcor.de>2016-12-24 01:01:17 +0100
commit522362e2d26654b9736ea311ce91edf1e133f964 (patch)
tree19d7f7bda8c7567a85f2bb47fcc12259030366b0 /nl_examples/rc.c
parent3506240e198084966715e1dcbe3e74d9a6e100e4 (diff)
Add some files to nl_examples. (nw)
Diffstat (limited to 'nl_examples/rc.c')
-rw-r--r--nl_examples/rc.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/nl_examples/rc.c b/nl_examples/rc.c
new file mode 100644
index 00000000000..1850da313da
--- /dev/null
+++ b/nl_examples/rc.c
@@ -0,0 +1,31 @@
+/*
+ * cdelay.c
+ *
+ */
+
+#include "netlist/devices/net_lib.h"
+
+NETLIST_START(rc)
+
+ /*
+ * delay circuit
+ *
+ */
+
+ /* Standard stuff */
+
+ SOLVER(Solver, 48000)
+ PARAM(Solver.ACCURACY, 1e-6)
+ CLOCK(clk, 20000)
+
+ CAP(C1, 0.022e-6)
+ RES(R1, 10000)
+ RES(R2, 20000)
+
+ NET_C(clk, R2.1)
+ NET_C(R2.2, R1.1, C1.1)
+ NET_C(C1.2, R1.2, GND)
+
+ LOG(tt, C1.1)
+
+NETLIST_END()