summaryrefslogtreecommitdiffstatshomepage
path: root/nl_examples/vs_cs.c
diff options
context:
space:
mode:
author couriersud <couriersud@gmx.org>2019-11-25 22:28:41 +0100
committer couriersud <couriersud@gmx.org>2019-11-25 22:28:41 +0100
commitc50bf9a698c8dc3e99ab6f703fc8bb9d1da41ad6 (patch)
tree96f0910ad76c2ef23d87f5626f3c30768ec04c3e /nl_examples/vs_cs.c
parentceae2fdc3ebbd1c54e21190aa16957af8724b4b5 (diff)
netlist: move nl_examples to src/lib/netlist/examples. (nw)
One folder less in the top-level.
Diffstat (limited to 'nl_examples/vs_cs.c')
-rw-r--r--nl_examples/vs_cs.c52
1 files changed, 0 insertions, 52 deletions
diff --git a/nl_examples/vs_cs.c b/nl_examples/vs_cs.c
deleted file mode 100644
index 9b39106a540..00000000000
--- a/nl_examples/vs_cs.c
+++ /dev/null
@@ -1,52 +0,0 @@
-// license:GPL-2.0+
-// copyright-holders:Couriersud
-/*
- * vs_cs.c
- *
- * Voltage and current source test
- *
- */
-
-#include "netlist/devices/net_lib.h"
-
-NETLIST_START(rc)
-
- /*
- * delay circuit
- *
- */
-
- /* Standard stuff */
-
- SOLVER(Solver, 48000)
- PARAM(Solver.ACCURACY, 1e-6)
- CLOCK(clk, 20000)
-
- /* Voltage source. Inner resistance will make clock visible */
-
- RES(R1, 1000)
- VS(VS1, 1)
- NET_C(R1.1, clk)
- NET_C(R1.2, VS1.P)
- NET_C(GND, VS1.N)
-
- /* Current source. Current flows from "+" to "-", thus for a source we
- * need negative current
- */
-
- RES(R2, 1000)
- RES(R3, 1000)
- CS(CS1, -0.001)
- NET_C(CS1.P, R2.1)
- NET_C(R2.2, R3.1)
- NET_C(GND, CS1.N, R3.2)
-
- CAP(C1, CAP_U(1))
- NET_C(C1.1, R3.1)
- NET_C(C1.2, R3.2)
-
-
- LOG(tt, VS1.P)
- LOG(tx, R2.2)
-
-NETLIST_END()