summaryrefslogtreecommitdiffstatshomepage
path: root/nl_examples/todo.c
diff options
context:
space:
mode:
Diffstat (limited to 'nl_examples/todo.c')
-rw-r--r--nl_examples/todo.c39
1 files changed, 38 insertions, 1 deletions
diff --git a/nl_examples/todo.c b/nl_examples/todo.c
index 9da1a2c66f6..1c9815864ed 100644
--- a/nl_examples/todo.c
+++ b/nl_examples/todo.c
@@ -3,6 +3,43 @@
*
*/
+#include "netlist/devices/net_lib.h"
+
+NETLIST_START(7400_TTL)
+ NET_REGISTER_DEV(7400, s1)
+ NET_REGISTER_DEV(7400, s2)
+ NET_REGISTER_DEV(7400, s3)
+ NET_REGISTER_DEV(7400, s4)
+
+ ALIAS(1, s1.A);
+ ALIAS(2, s1.B);
+ ALIAS(3, s1.Q);
+
+ ALIAS(4, s2.A);
+ ALIAS(5, s2.B);
+ ALIAS(6, s2.Q);
+
+ ALIAS(9, s3.A);
+ ALIAS(10, s3.B)
+ ALIAS(8, s3.Q);
+
+ ALIAS(12, s4.A);
+ ALIAS(13, s4.B);
+ ALIAS(11, s4.Q);
+
+NETLIST_END()
+
+NETLIST_START(lib)
+ TRUTHTABLE_START(7400A, 2, 1, 0, "+A,B")
+ TT_HEAD(" A , B | Q ")
+ TT_LINE(" 0 , X | 1 |22")
+ TT_LINE(" X , 0 | 1 |22")
+ TT_LINE(" 1 , 1 | 0 |15")
+ TRUTHTABLE_END()
+NETLIST_END()
+
+
+
#if 0
RES(R1, 10)
RES(R2, 10)
@@ -98,4 +135,4 @@
LOG(logY, 4V)
#endif
-d
+