diff options
author | 2016-12-24 01:01:17 +0100 | |
---|---|---|
committer | 2016-12-24 01:01:17 +0100 | |
commit | 522362e2d26654b9736ea311ce91edf1e133f964 (patch) | |
tree | 19d7f7bda8c7567a85f2bb47fcc12259030366b0 /nl_examples/rl.c | |
parent | 3506240e198084966715e1dcbe3e74d9a6e100e4 (diff) |
Add some files to nl_examples. (nw)
Diffstat (limited to 'nl_examples/rl.c')
-rw-r--r-- | nl_examples/rl.c | 32 |
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() |