summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist/examples/nld_74393_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/netlist/examples/nld_74393_test.c')
-rw-r--r--src/lib/netlist/examples/nld_74393_test.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/lib/netlist/examples/nld_74393_test.c b/src/lib/netlist/examples/nld_74393_test.c
new file mode 100644
index 00000000000..6b954b65ccf
--- /dev/null
+++ b/src/lib/netlist/examples/nld_74393_test.c
@@ -0,0 +1,27 @@
+// license:CC0-1.0
+// copyright-holders:Couriersud
+/*
+ * cdelay.c
+ *
+ */
+
+#include "netlist/devices/net_lib.h"
+
+NETLIST_START(perf)
+{
+
+ SOLVER(Solver, 48000)
+
+ ANALOG_INPUT(V5, 5)
+
+ CLOCK(CLK, 100) // clock for driving the 74393
+ CLOCK(CLK2, 3) // off-beat clock for master reset
+ TTL_74393_DIP(TESTCHIP)
+
+ NET_C(V5, CLK.VCC, CLK2.VCC, TESTCHIP.14)
+ NET_C(GND, CLK.GND, CLK2.GND, TESTCHIP.7)
+
+ NET_C(CLK, TESTCHIP.1, TESTCHIP.13)
+ NET_C(CLK2, TESTCHIP.2, TESTCHIP.12)
+
+}