diff options
author | 2019-11-25 22:28:41 +0100 | |
---|---|---|
committer | 2019-11-25 22:28:41 +0100 | |
commit | c50bf9a698c8dc3e99ab6f703fc8bb9d1da41ad6 (patch) | |
tree | 96f0910ad76c2ef23d87f5626f3c30768ec04c3e /nl_examples/cdelay.c | |
parent | ceae2fdc3ebbd1c54e21190aa16957af8724b4b5 (diff) |
netlist: move nl_examples to src/lib/netlist/examples. (nw)
One folder less in the top-level.
Diffstat (limited to 'nl_examples/cdelay.c')
-rw-r--r-- | nl_examples/cdelay.c | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/nl_examples/cdelay.c b/nl_examples/cdelay.c deleted file mode 100644 index 5f4f8d04440..00000000000 --- a/nl_examples/cdelay.c +++ /dev/null @@ -1,53 +0,0 @@ -// license:GPL-2.0+ -// copyright-holders:Couriersud -/* - * cdelay.c - * - */ - -#include "netlist/devices/net_lib.h" - -NETLIST_START(perf) - - SOLVER(Solver, 48000) - PARAM(Solver.ACCURACY, 1e-20) - MAINCLOCK(clk, 50000000) - - TTL_7400_NAND(n1,clk,clk) - -NETLIST_END() - -#ifndef P_FREQ -#define P_FREQ 4800 -#endif - -#ifndef P_DTS -#define P_DTS 1 -#endif - -NETLIST_START(cap_delay) - - /* - * delay circuit - * - */ - - /* Standard stuff */ - - SOLVER(Solver, P_FREQ) - PARAM(Solver.ACCURACY, 1e-20) - PARAM(Solver.DYNAMIC_TS, P_DTS) - PARAM(Solver.DYNAMIC_MIN_TIMESTEP, 1e-6) - CLOCK(clk, 5000) - - TTL_7400_NAND(n1,clk,clk) - CAP(C, 1e-6) - NET_C(n1.Q, C.2) - NET_C(GND, C.1) - TTL_7400_NAND(n2,n1.Q, n1.Q) - - LOG(logclk, clk) - LOG(logn1Q, C.2) - LOG(logn2Q, n1.Q) - -NETLIST_END() |