summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist/examples
diff options
context:
space:
mode:
author couriersud <couriersud@gmx.org>2020-05-17 15:17:20 +0200
committer couriersud <couriersud@gmx.org>2020-05-17 19:52:09 +0200
commit22fb995337f7f1d666f411c15873c7fe858e022f (patch)
tree23d551612dcec40d44de58bd9fca7436143518f8 /src/lib/netlist/examples
parent7d8384419f05006e8971aaf7727bbadf03a0cd32 (diff)
netlist: Add working 74125 and 74126 implementations. [Couriersud]
These tristate buffers natively support tristate outputs. For use cases with fixed enable inputs the devices support a parameter FORCE_TRISTATE_LOGIC which if being set to 1 makes the device behave like a logic output. Added additional syntax and consistency checks for tristate outputs. Updated the example and added dip implementations including documentation.
Diffstat (limited to 'src/lib/netlist/examples')
-rw-r--r--src/lib/netlist/examples/74125.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/netlist/examples/74125.cpp b/src/lib/netlist/examples/74125.cpp
index 807d8bf27c8..640e2bd8b86 100644
--- a/src/lib/netlist/examples/74125.cpp
+++ b/src/lib/netlist/examples/74125.cpp
@@ -18,8 +18,9 @@ NETLIST_START(main)
ANALOG_INPUT(VCC, 5.0)
- TTL_74125(X1)
- TTL_74126(X2)
+ TTL_74125_GATE(X1)
+ TTL_74126_GATE(X2)
+ PARAM(X2.FORCE_TRISTATE_LOGIC, 0)
CLOCK(C1, 100)
CLOCK(C2, 300)
@@ -29,9 +30,10 @@ NETLIST_START(main)
NET_C(C1.Q, X1.A)
NET_C(C2.Q, X2.A)
- NET_C(C3.Q, X1.G, X2.G)
+ NET_C(C3.Q, X1.GQ, X2.G)
NET_C(X1.Y, X2.Y, RL.1)
+ //NET_C(X1.Y, RL.1)
NET_C(GND, RL.2, C1.GND, C2.GND, C3.GND, X1.GND, X2.GND)
NET_C(VCC, C1.VCC, C2.VCC, C3.VCC, X1.VCC, X2.VCC)