summaryrefslogtreecommitdiffstatshomepage
path: root/nl_examples/rl.c
diff options
context:
space:
mode:
Diffstat (limited to 'nl_examples/rl.c')
-rw-r--r--nl_examples/rl.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/nl_examples/rl.c b/nl_examples/rl.c
new file mode 100644
index 00000000000..3b5056b259c
--- /dev/null
+++ b/nl_examples/rl.c
@@ -0,0 +1,32 @@
+/*
+ * lr.c
+ *
+ */
+
+#include "netlist/devices/net_lib.h"
+
+NETLIST_START(lr)
+
+ /*
+ * delay circuit
+ *
+ */
+
+ /* Standard stuff */
+
+ SOLVER(Solver, 48000)
+ PARAM(Solver.ACCURACY, 1e-6)
+ CLOCK(clk, 50)
+ PARAM(Solver.ITERATIVE, "MAT_CR")
+
+ IND(L1, 10)
+ RES(R1, 10000)
+
+ NET_C(clk, L1.1)
+ NET_C(L1.2, R1.1)
+ NET_C(R1.2, GND)
+
+ //LOG(log_1, R1.1)
+ //LOG(log_2, clk)
+
+NETLIST_END()