diff options
author | 2015-05-28 17:07:47 -0500 | |
---|---|---|
committer | 2015-05-28 17:07:47 -0500 | |
commit | ea2762e799e00a09155cd0d1d4a81162a8a1ab03 (patch) | |
tree | 5ecb3cfb04e49341e161c0a5db67ce5446b9febf /nl_examples/todo.c | |
parent | 4332164659ec242c69d3d314a523917955fb9d1c (diff) | |
parent | 8f4d8bf37ee85ff47e4628f9a365abd6d83f9436 (diff) |
Merge branch 'master' of https://github.com/mamedev/mame
Diffstat (limited to 'nl_examples/todo.c')
-rw-r--r-- | nl_examples/todo.c | 39 |
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 + |