From 056426059f84f18638dd53930fc44c9cb7d1321a Mon Sep 17 00:00:00 2001 From: Aaron Giles Date: Wed, 5 Aug 2020 21:43:54 +0200 Subject: [PATCH] netlist: Added documentation for devices in nlm_ttl74xxx.cpp * Documentation for all devices in nlm_ttl74xxx now is available in the doxygen documentation. --- src/lib/netlist/macro/nlm_ttl74xx.cpp | 3318 +++++++++++++++---------- 1 file changed, 1973 insertions(+), 1345 deletions(-) diff --git a/src/lib/netlist/macro/nlm_ttl74xx.cpp b/src/lib/netlist/macro/nlm_ttl74xx.cpp index cacbb8b4157..62c4207e904 100644 --- a/src/lib/netlist/macro/nlm_ttl74xx.cpp +++ b/src/lib/netlist/macro/nlm_ttl74xx.cpp @@ -17,24 +17,24 @@ // #endif -/* - * DM7400: Quad 2-Input NAND Gates - * - * _ - * Y = AB - * +---+---++---+ - * | A | B || Y | - * +===+===++===+ - * | 0 | 0 || 1 | - * | 0 | 1 || 1 | - * | 1 | 0 || 1 | - * | 1 | 1 || 0 | - * +---+---++---+ - * - * Naming conventions follow National Semiconductor datasheet - * - */ - +//- Identifier: 5400/DM5400/DM7400 +//- Title: Quad 2-Input NAND Gates +//- Description: This device contains four independent gates each of which performs the logic NAND function. +//- Pinalias: A1,B1,Y1,A2,B2,Y2,GND,Y3,A3,B3,Y4,A4,B4,VCC +//- Package: DIP +//- NamingConvention: Naming conventions follow National Semiconductor datasheet +//- FunctionTable: +//- http://pdf.datasheetcatalog.com/datasheet/nationalsemiconductor/DS006613.PDF +//- +//- +---+---++---+ +//- | A | B || Y | +//- +===+===++===+ +//- | 0 | 0 || 1 | +//- | 0 | 1 || 1 | +//- | 1 | 0 || 1 | +//- | 1 | 1 || 0 | +//- +---+---++---+ +//- static NETLIST_START(TTL_7400_DIP) TTL_7400_GATE(A) TTL_7400_GATE(B) @@ -44,35 +44,36 @@ static NETLIST_START(TTL_7400_DIP) NET_C(A.VCC, B.VCC, C.VCC, D.VCC) NET_C(A.GND, B.GND, C.GND, D.GND) - DIPPINS( /* +--------------+ */ - A.A, /* A1 |1 ++ 14| VCC */ A.VCC, - A.B, /* B1 |2 13| B4 */ D.B, - A.Q, /* Y1 |3 12| A4 */ D.A, - B.A, /* A2 |4 7400 11| Y4 */ D.Q, - B.B, /* B2 |5 10| B3 */ C.B, - B.Q, /* Y2 |6 9| A3 */ C.A, - A.GND,/* GND |7 8| Y3 */ C.Q - /* +--------------+ */ + DIPPINS( /* +--------------+ */ + A.A, /* A1 |1 ++ 14| VCC */ A.VCC, + A.B, /* B1 |2 13| B4 */ D.B, + A.Q, /* Y1 |3 12| A4 */ D.A, + B.A, /* A2 |4 7400 11| Y4 */ D.Q, + B.B, /* B2 |5 10| B3 */ C.B, + B.Q, /* Y2 |6 9| A3 */ C.A, + A.GND, /* GND |7 8| Y3 */ C.Q + /* +--------------+ */ ) NETLIST_END() -/* - * DM7402: Quad 2-Input NOR Gates - * - * Y = A+B - * +---+---++---+ - * | A | B || Y | - * +===+===++===+ - * | 0 | 0 || 1 | - * | 0 | 1 || 0 | - * | 1 | 0 || 0 | - * | 1 | 1 || 0 | - * +---+---++---+ - * - * Naming conventions follow National Semiconductor datasheet - * - */ - +//- Identifier: 5402/DM5402/DM7402 +//- Title: Quad 2-Input NOR Gates +//- Description: This device contains four independent gates each of which performs the logic NOR function. +//- Pinalias: Y1,A1,B1,Y2,A2,B2,GND,A3,B3,Y3,A4,B4,Y4,VCC +//- Package: DIP +//- NamingConvention: Naming conventions follow National Semiconductor datasheet +//- FunctionTable: +//- http://pdf.datasheetcatalog.com/datasheet/nationalsemiconductor/DS006492.PDF +//- +//- +---+---++---+ +//- | A | B || Y | +//- +===+===++===+ +//- | 0 | 0 || 1 | +//- | 0 | 1 || 0 | +//- | 1 | 0 || 0 | +//- | 1 | 1 || 0 | +//- +---+---++---+ +//- static NETLIST_START(TTL_7402_DIP) TTL_7402_GATE(A) TTL_7402_GATE(B) @@ -82,33 +83,34 @@ static NETLIST_START(TTL_7402_DIP) NET_C(A.VCC, B.VCC, C.VCC, D.VCC) NET_C(A.GND, B.GND, C.GND, D.GND) - DIPPINS( /* +--------------+ */ - A.Q, /* Y1 |1 ++ 14| VCC */ A.VCC, - A.A, /* A1 |2 13| Y4 */ D.Q, - A.B, /* B1 |3 12| B4 */ D.B, - B.Q, /* Y2 |4 7402 11| A4 */ D.A, - B.A, /* A2 |5 10| Y3 */ C.Q, - B.B, /* B2 |6 9| B3 */ C.B, - A.GND,/* GND |7 8| A3 */ C.A - /* +--------------+ */ + DIPPINS( /* +--------------+ */ + A.Q, /* Y1 |1 ++ 14| VCC */ A.VCC, + A.A, /* A1 |2 13| Y4 */ D.Q, + A.B, /* B1 |3 12| B4 */ D.B, + B.Q, /* Y2 |4 7402 11| A4 */ D.A, + B.A, /* A2 |5 10| Y3 */ C.Q, + B.B, /* B2 |6 9| B3 */ C.B, + A.GND, /* GND |7 8| A3 */ C.A + /* +--------------+ */ ) NETLIST_END() -/* - * DM7404: Hex Inverting Gates - * - * Y = A - * +---++---+ - * | A || Y | - * +===++===+ - * | 0 || 1 | - * | 1 || 0 | - * +---++---+ - * - * Naming conventions follow National Semiconductor datasheet - * - */ - +//- Identifier: 5404/DM5404/DM7404 +//- Title: Hex Inverting Gates +//- Description: This device contains six independent gates each of which performs the logic INVERT function. +//- Pinalias: A1,Y1,A2,Y2,A3,Y3,GND,Y4,A4,Y5,A5,Y6,A6,VCC +//- Package: DIP +//- NamingConvention: Naming conventions follow National Semiconductor datasheet +//- FunctionTable: +//- http://pdf.datasheetcatalog.com/datasheet/nationalsemiconductor/DS006494.PDF +//- +//- +---++---+ +//- | A || Y | +//- +===++===+ +//- | 0 || 1 | +//- | 1 || 0 | +//- +---++---+ +//- static NETLIST_START(TTL_7404_DIP) TTL_7404_GATE(A) TTL_7404_GATE(B) @@ -120,26 +122,36 @@ static NETLIST_START(TTL_7404_DIP) NET_C(A.VCC, B.VCC, C.VCC, D.VCC, E.VCC, F.VCC) NET_C(A.GND, B.GND, C.GND, D.GND, E.GND, F.GND) - DIPPINS( /* +--------------+ */ - A.A, /* A1 |1 ++ 14| VCC */ A.VCC, - A.Q, /* Y1 |2 13| A6 */ F.A, - B.A, /* A2 |3 12| Y6 */ F.Q, - B.Q, /* Y2 |4 7404 11| A5 */ E.A, - C.A, /* A3 |5 10| Y5 */ E.Q, - C.Q, /* Y3 |6 9| A4 */ D.A, - A.GND,/* GND |7 8| Y4 */ D.Q - /* +--------------+ */ + DIPPINS( /* +--------------+ */ + A.A, /* A1 |1 ++ 14| VCC */ A.VCC, + A.Q, /* Y1 |2 13| A6 */ F.A, + B.A, /* A2 |3 12| Y6 */ F.Q, + B.Q, /* Y2 |4 7404 11| A5 */ E.A, + C.A, /* A3 |5 10| Y5 */ E.Q, + C.Q, /* Y3 |6 9| A4 */ D.A, + A.GND, /* GND |7 8| Y4 */ D.Q + /* +--------------+ */ ) NETLIST_END() -/* - * DM7406: Hex Inverting Buffers with - * High Voltage Open-Collector Outputs - * - * Naming conventions follow Fairchild Semiconductor datasheet - * - */ - +//- Identifier: DM5406/DM7406 +//- Title: Hex Inverting Buffers with High Voltage Open-Collector Outputs +//- Description: This device contains six independent buffers each of which performs the logic INVERT function. +//- The open-collector outputs require external pull-up resistors for proper logical operation. +//- Pinalias: A1,Y1,A2,Y2,A3,Y3,GND,Y4,A4,Y5,A5,Y6,A6,VCC +//- Package: DIP +//- NamingConvention: Naming conventions follow National Semiconductor datasheet +//- Limitations: Open collector behavior currently not simulated. +//- FunctionTable: +//- http://pdf.datasheetcatalog.com/datasheet/nationalsemiconductor/DS006496.PDF +//- +//- +---++---+ +//- | A || Y | +//- +===++===+ +//- | 0 || 1 | +//- | 1 || 0 | +//- +---++---+ +//- static NETLIST_START(TTL_7406_DIP) TTL_7406_GATE(A) TTL_7406_GATE(B) @@ -151,26 +163,36 @@ static NETLIST_START(TTL_7406_DIP) NET_C(A.VCC, B.VCC, C.VCC, D.VCC, E.VCC, F.VCC) NET_C(A.GND, B.GND, C.GND, D.GND, E.GND, F.GND) - DIPPINS( /* +--------------+ */ - A.A, /* A1 |1 ++ 14| VCC */ A.VCC, - A.Y, /* Y1 |2 13| A6 */ F.A, - B.A, /* A2 |3 12| Y6 */ F.Y, - B.Y, /* Y2 |4 7406 11| A5 */ E.A, - C.A, /* A3 |5 10| Y5 */ E.Y, - C.Y, /* Y3 |6 9| A4 */ D.A, - A.GND,/* GND |7 8| Y4 */ D.Y - /* +--------------+ */ + DIPPINS( /* +--------------+ */ + A.A, /* A1 |1 ++ 14| VCC */ A.VCC, + A.Y, /* Y1 |2 13| A6 */ F.A, + B.A, /* A2 |3 12| Y6 */ F.Y, + B.Y, /* Y2 |4 7406 11| A5 */ E.A, + C.A, /* A3 |5 10| Y5 */ E.Y, + C.Y, /* Y3 |6 9| A4 */ D.A, + A.GND, /* GND |7 8| Y4 */ D.Y + /* +--------------+ */ ) NETLIST_END() -/* - * DM7407: Hex Buffers with - * High Voltage Open-Collector Outputs - * - * Naming conventions follow Fairchild Semiconductor datasheet - * - */ - +//- Identifier: DM5407/DM7407 +//- Title: Hex Buffers with High Voltage Open-Collector Outputs +//- Description: This device contains six independent gates each of which performs a buffer function. +//- The open-collector outputs re-quire external pull-up resistors for proper logical operation. +//- Pinalias: A1,Y1,A2,Y2,A3,Y3,GND,Y4,A4,Y5,A5,Y6,A6,VCC +//- Package: DIP +//- NamingConvention: Naming conventions follow National Semiconductor datasheet +//- Limitations: Open collector behavior currently not simulated. +//- FunctionTable: +//- http://pdf.datasheetcatalog.com/datasheet/nationalsemiconductor/DS006497.PDF +//- +//- +---++---+ +//- | A || Y | +//- +===++===+ +//- | 0 || 0 | +//- | 1 || 1 | +//- +---++---+ +//- static NETLIST_START(TTL_7407_DIP) TTL_7407_GATE(A) TTL_7407_GATE(B) @@ -186,7 +208,7 @@ static NETLIST_START(TTL_7407_DIP) A.A, /* A1 |1 ++ 14| VCC */ A.VCC, A.Y, /* Y1 |2 13| A6 */ F.A, B.A, /* A2 |3 12| Y6 */ F.Y, - B.Y, /* Y2 |4 7406 11| A5 */ E.A, + B.Y, /* Y2 |4 7407 11| A5 */ E.A, C.A, /* A3 |5 10| Y5 */ E.Y, C.Y, /* Y3 |6 9| A4 */ D.A, A.GND,/* GND |7 8| Y4 */ D.Y @@ -194,24 +216,24 @@ static NETLIST_START(TTL_7407_DIP) ) NETLIST_END() -/* - * DM7408: Quad 2-Input AND Gates - * - * - * Y = AB - * +---+---++---+ - * | A | B || Y | - * +===+===++===+ - * | 0 | 0 || 0 | - * | 0 | 1 || 0 | - * | 1 | 0 || 0 | - * | 1 | 1 || 1 | - * +---+---++---+ - * - * Naming conventions follow National Semiconductor datasheet - * - */ - +//- Identifier: 5408/DM5408/DM7408 +//- Title: Quad 2-Input AND Gates +//- Description: This device contains four independent gates each of which performs the logic AND function. +//- Pinalias: A1,B1,Y1,A2,B2,Y2,GND,Y3,A3,B3,Y4,A4,B4,VCC +//- Package: DIP +//- NamingConvention: Naming conventions follow National Semiconductor datasheet +//- FunctionTable: +//- http://pdf.datasheetcatalog.com/datasheet/nationalsemiconductor/DS006498.PDF +//- +//- +---+---++---+ +//- | A | B || Y | +//- +===+===++===+ +//- | 0 | 0 || 0 | +//- | 0 | 1 || 0 | +//- | 1 | 0 || 0 | +//- | 1 | 1 || 1 | +//- +---+---++---+ +//- static NETLIST_START(TTL_7408_DIP) TTL_7408_GATE(A) TTL_7408_GATE(B) @@ -221,35 +243,36 @@ static NETLIST_START(TTL_7408_DIP) NET_C(A.VCC, B.VCC, C.VCC, D.VCC) NET_C(A.GND, B.GND, C.GND, D.GND) - DIPPINS( /* +--------------+ */ - A.A, /* A1 |1 ++ 14| VCC */ A.VCC, - A.B, /* B1 |2 13| B4 */ D.B, - A.Q, /* Y1 |3 12| A4 */ D.A, - B.A, /* A2 |4 7400 11| Y4 */ D.Q, - B.B, /* B2 |5 10| B3 */ C.B, - B.Q, /* Y2 |6 9| A3 */ C.A, - A.GND,/* GND |7 8| Y3 */ C.Q - /* +--------------+ */ + DIPPINS( /* +--------------+ */ + A.A, /* A1 |1 ++ 14| VCC */ A.VCC, + A.B, /* B1 |2 13| B4 */ D.B, + A.Q, /* Y1 |3 12| A4 */ D.A, + B.A, /* A2 |4 7408 11| Y4 */ D.Q, + B.B, /* B2 |5 10| B3 */ C.B, + B.Q, /* Y2 |6 9| A3 */ C.A, + A.GND, /* GND |7 8| Y3 */ C.Q + /* +--------------+ */ ) NETLIST_END() -/* - * DM7410: Triple 3-Input NAND Gates - * __ - * Y = ABC - * +---+---+---++---+ - * | A | B | C || Y | - * +===+===+===++===+ - * | X | X | 0 || 1 | - * | X | 0 | X || 1 | - * | 0 | X | X || 1 | - * | 1 | 1 | 1 || 0 | - * +---+---+---++---+ - * - * Naming conventions follow National Semiconductor datasheet - * - */ - +//- Identifier: 5410/DM5410/DM7410 +//- Title: Triple 3-Input NAND Gates +//- Description: This device contains three independent gates each of which performs the logic NAND function. +//- Pinalias: A1,B1,A2,B2,C2,Y2,GND,Y3,A3,B3,C3,Y1,C1,VCC +//- Package: DIP +//- NamingConvention: Naming conventions follow National Semiconductor datasheet +//- FunctionTable: +//- http://pdf.datasheetcatalog.com/datasheet/nationalsemiconductor/DS006500.PDF +//- +//- +---+---+---++---+ +//- | A | B | C || Y | +//- +===+===+===++===+ +//- | X | X | 0 || 1 | +//- | X | 0 | X || 1 | +//- | 0 | X | X || 1 | +//- | 1 | 1 | 1 || 0 | +//- +---+---+---++---+ +//- static NETLIST_START(TTL_7410_DIP) TTL_7410_GATE(A) TTL_7410_GATE(B) @@ -258,35 +281,36 @@ static NETLIST_START(TTL_7410_DIP) NET_C(A.VCC, B.VCC, C.VCC) NET_C(A.GND, B.GND, C.GND) - DIPPINS( /* +--------------+ */ - A.A, /* A1 |1 ++ 14| VCC */ A.VCC, - A.B, /* B1 |2 13| C1 */ A.C, - B.A, /* A2 |3 12| Y1 */ A.Q, - B.B, /* B2 |4 7410 11| C3 */ C.C, - B.C, /* C2 |5 10| B3 */ C.B, - B.Q, /* Y2 |6 9| A3 */ C.A, - A.GND,/* GND |7 8| Y3 */ C.Q - /* +--------------+ */ + DIPPINS( /* +--------------+ */ + A.A, /* A1 |1 ++ 14| VCC */ A.VCC, + A.B, /* B1 |2 13| C1 */ A.C, + B.A, /* A2 |3 12| Y1 */ A.Q, + B.B, /* B2 |4 7410 11| C3 */ C.C, + B.C, /* C2 |5 10| B3 */ C.B, + B.Q, /* Y2 |6 9| A3 */ C.A, + A.GND, /* GND |7 8| Y3 */ C.Q + /* +--------------+ */ ) NETLIST_END() -/* - * DM7411: Triple 3-Input AND Gates - * - * Y = ABC - * +---+---+---++---+ - * | A | B | C || Y | - * +===+===+===++===+ - * | X | X | 0 || 0 | - * | X | 0 | X || 0 | - * | 0 | X | X || 0 | - * | 1 | 1 | 1 || 1 | - * +---+---+---++---+ - * - * Naming conventions follow National Semiconductor datasheet - * - */ - +//- Identifier: DM7411 +//- Title: Triple 3-Input AND Gate +//- Description: This device contains three independent gates with three data inputs each which perform the logic AND function. +//- Pinalias: A1,B1,A2,B2,C2,Y2,GND,Y3,A3,B3,C3,Y1,C1,VCC +//- Package: DIP +//- NamingConvention: Naming conventions follow National Semiconductor datasheet +//- FunctionTable: +//- http://pdf.datasheetcatalog.com/datasheet/nationalsemiconductor/DS009774.PDF +//- +//- +---+---+---++---+ +//- | A | B | C || Y | +//- +===+===+===++===+ +//- | X | X | 0 || 0 | +//- | X | 0 | X || 0 | +//- | 0 | X | X || 0 | +//- | 1 | 1 | 1 || 1 | +//- +---+---+---++---+ +//- static NETLIST_START(TTL_7411_DIP) TTL_7411_GATE(A) TTL_7411_GATE(B) @@ -295,24 +319,36 @@ static NETLIST_START(TTL_7411_DIP) NET_C(A.VCC, B.VCC, C.VCC) NET_C(A.GND, B.GND, C.GND) - DIPPINS( /* +--------------+ */ - A.A, /* A1 |1 ++ 14| VCC */ A.VCC, - A.B, /* B1 |2 13| C1 */ A.C, - B.A, /* A2 |3 12| Y1 */ A.Q, - B.B, /* B2 |4 7411 11| C3 */ C.C, - B.C, /* C2 |5 10| B3 */ C.B, - B.Q, /* Y2 |6 9| A3 */ C.A, - A.GND,/* GND |7 8| Y3 */ C.Q - /* +--------------+ */ + DIPPINS( /* +--------------+ */ + A.A, /* A1 |1 ++ 14| VCC */ A.VCC, + A.B, /* B1 |2 13| C1 */ A.C, + B.A, /* A2 |3 12| Y1 */ A.Q, + B.B, /* B2 |4 7411 11| C3 */ C.C, + B.C, /* C2 |5 10| B3 */ C.B, + B.Q, /* Y2 |6 9| A3 */ C.A, + A.GND, /* GND |7 8| Y3 */ C.Q + /* +--------------+ */ ) NETLIST_END() -/* - * DM7414/DM74LS14: Hex Inverter with - * Schmitt Trigger Inputs - * - */ - +//- Identifier: DM5414/DM7414 +//- Title: Hex Inverter withSchmitt Trigger Inputs +//- Description: This device contains six independent gates each of whichperforms the logic INVERT function. +//- Each input has hysteresis which increases the noise immunity and transforms a slowly changing input +//- signal to a fast changing, jitter free output. +//- Pinalias: A1,Y1,A2,Y2,A3,Y3,GND,Y4,A4,Y5,A5,Y6,A6,VCC +//- Package: DIP +//- NamingConvention: Naming conventions follow National Semiconductor datasheet +//- FunctionTable: +//- http://pdf.datasheetcatalog.com/datasheet/nationalsemiconductor/DS006503.PDF +//- +//- +---++---+ +//- | A || Y | +//- +===++===+ +//- | 0 || 1 | +//- | 1 || 0 | +//- +---++---+ +//- static NETLIST_START(TTL_7414_GATE) SCHMITT_TRIGGER(X, "DM7414") ALIAS(A, X.A) @@ -341,12 +377,12 @@ static NETLIST_START(TTL_7414_DIP) NET_C(A.VCC, B.VCC, C.VCC, D.VCC, E.VCC, F.VCC) DIPPINS( /* +--------------+ */ - A.A, /* A1 |1 ++ 14| VCC */ A.VCC, - A.Q, /* Y1 |2 13| A6 */ F.A, - B.A, /* A2 |3 12| Y6 */ F.Q, - B.Q, /* Y2 |4 7414 11| A5 */ E.A, - C.A, /* A3 |5 10| Y5 */ E.Q, - C.Q, /* Y3 |6 9| A4 */ D.A, + A.A, /* A1 |1 ++ 14| VCC */ A.VCC, + A.Q, /* Y1 |2 13| A6 */ F.A, + B.A, /* A2 |3 12| Y6 */ F.Q, + B.Q, /* Y2 |4 7414 11| A5 */ E.A, + C.A, /* A3 |5 10| Y5 */ E.Q, + C.Q, /* Y3 |6 9| A4 */ D.A, A.GND, /* GND |7 8| Y4 */ D.Q /* +--------------+ */ ) @@ -364,23 +400,34 @@ static NETLIST_START(TTL_74LS14_DIP) NET_C(A.VCC, B.VCC, C.VCC, D.VCC, E.VCC, F.VCC) DIPPINS( /* +--------------+ */ - A.A, /* A1 |1 ++ 14| VCC */ A.VCC, - A.Q, /* Y1 |2 13| A6 */ F.A, - B.A, /* A2 |3 12| Y6 */ F.Q, - B.Q, /* Y2 |4 74LS14 11| A5 */ E.A, - C.A, /* A3 |5 10| Y5 */ E.Q, - C.Q, /* Y3 |6 9| A4 */ D.A, + A.A, /* A1 |1 ++ 14| VCC */ A.VCC, + A.Q, /* Y1 |2 13| A6 */ F.A, + B.A, /* A2 |3 12| Y6 */ F.Q, + B.Q, /* Y2 |4 74LS14 11| A5 */ E.A, + C.A, /* A3 |5 10| Y5 */ E.Q, + C.Q, /* Y3 |6 9| A4 */ D.A, A.GND, /* GND |7 8| Y4 */ D.Q /* +--------------+ */ ) NETLIST_END() -/* - * DM7416: Hex Inverting Buffers with - * High Voltage Open-Collector Outputs - * - */ - +//- Identifier: DM5416/DM7416 +//- Title: Hex Inverting Buffers with High Voltage Open-Collector Outputs +//- Description: This device contains six independent gates each of which performs the logic INVERT function. +//- The open-collector outputs require external pull-up resistors for proper logical operation. +//- Pinalias: A1,Y1,A2,Y2,A3,Y3,GND,Y4,A4,Y5,A5,Y6,A6,VCC +//- Package: DIP +//- NamingConvention: Naming conventions follow National Semiconductor datasheet +//- FunctionTable: +//- http://pdf.datasheetcatalog.com/datasheet/nationalsemiconductor/DS006504.PDF +//- +//- +---++---+ +//- | A || Y | +//- +===++===+ +//- | 0 || 1 | +//- | 1 || 0 | +//- +---++---+ +//- static NETLIST_START(TTL_7416_DIP) TTL_7416_GATE(A) TTL_7416_GATE(B) @@ -392,36 +439,37 @@ static NETLIST_START(TTL_7416_DIP) NET_C(A.VCC, B.VCC, C.VCC, D.VCC, E.VCC, F.VCC) NET_C(A.GND, B.GND, C.GND, D.GND, E.GND, F.GND) - DIPPINS( /* +--------------+ */ - A.A, /* A1 |1 ++ 14| VCC */ A.VCC, - A.Q, /* Y1 |2 13| A6 */ F.A, - B.A, /* A2 |3 12| Y6 */ F.Q, - B.Q, /* Y2 |4 7416 11| A5 */ E.A, - C.A, /* A3 |5 10| Y5 */ E.Q, - C.Q, /* Y3 |6 9| A4 */ D.A, - A.GND,/* GND |7 8| Y4 */ D.Q - /* +--------------+ */ + DIPPINS( /* +--------------+ */ + A.A, /* A1 |1 ++ 14| VCC */ A.VCC, + A.Q, /* Y1 |2 13| A6 */ F.A, + B.A, /* A2 |3 12| Y6 */ F.Q, + B.Q, /* Y2 |4 7416 11| A5 */ E.A, + C.A, /* A3 |5 10| Y5 */ E.Q, + C.Q, /* Y3 |6 9| A4 */ D.A, + A.GND, /* GND |7 8| Y4 */ D.Q + /* +--------------+ */ ) NETLIST_END() -/* - * DM7420: Dual 4-Input NAND Gates - * - * ___ - * Y = ABCD - * +---+---+---+---++---+ - * | A | B | C | D || Y | - * +===+===+===+===++===+ - * | X | X | X | 0 || 1 | - * | X | X | 0 | X || 1 | - * | X | 0 | X | X || 1 | - * | 0 | X | X | X || 1 | - * | 1 | 1 | 1 | 1 || 0 | - * +---+---+---+---++---+ - * - * Naming conventions follow National Semiconductor datasheet * - */ - +//- Identifier: 5420/DM5420/DM7420 +//- Title: Dual 4-Input NAND Gates +//- Description: This device contains two independent gates each of which performs the logic NAND function. +//- Pinalias: A1,B1,NC,C1,D1,Y1,GND,Y2,A2,B2,NC,C2,D2,VCC +//- Package: DIP +//- NamingConvention: Naming conventions follow National Semiconductor datasheet +//- FunctionTable: +//- http://pdf.datasheetcatalog.com/datasheet/nationalsemiconductor/DS006506.PDF +//- +//- +---+---+---+---++---+ +//- | A | B | C | D || Y | +//- +===+===+===+===++===+ +//- | X | X | X | 0 || 1 | +//- | X | X | 0 | X || 1 | +//- | X | 0 | X | X || 1 | +//- | 0 | X | X | X || 1 | +//- | 1 | 1 | 1 | 1 || 0 | +//- +---+---+---+---++---+ +//- static NETLIST_START(TTL_7420_DIP) TTL_7420_GATE(A) TTL_7420_GATE(B) @@ -430,36 +478,37 @@ static NETLIST_START(TTL_7420_DIP) NET_C(A.GND, B.GND) NC_PIN(NC) - DIPPINS( /* +--------------+ */ - A.A, /* A1 |1 ++ 14| VCC */ A.VCC, - A.B, /* B1 |2 13| D2 */ B.D, - NC.I, /* NC |3 12| C2 */ B.C, - A.C, /* C1 |4 7420 11| NC */ NC.I, - A.D, /* D1 |5 10| B2 */ B.B, - A.Q, /* Y1 |6 9| A2 */ B.A, - A.GND,/* GND |7 8| Y2 */ B.Q - /* +--------------+ */ + DIPPINS( /* +--------------+ */ + A.A, /* A1 |1 ++ 14| VCC */ A.VCC, + A.B, /* B1 |2 13| D2 */ B.D, + NC.I, /* NC |3 12| C2 */ B.C, + A.C, /* C1 |4 7420 11| NC */ NC.I, + A.D, /* D1 |5 10| B2 */ B.B, + A.Q, /* Y1 |6 9| A2 */ B.A, + A.GND, /* GND |7 8| Y2 */ B.Q + /* +--------------+ */ ) NETLIST_END() -/* - * DM7421: Dual 4-Input AND Gates - * - * ___ - * Y = ABCD - * +---+---+---+---++---+ - * | A | B | C | D || Y | - * +===+===+===+===++===+ - * | X | X | X | 0 || 0 | - * | X | X | 0 | X || 0 | - * | X | 0 | X | X || 0 | - * | 0 | X | X | X || 0 | - * | 1 | 1 | 1 | 1 || 1 | - * +---+---+---+---++---+ - * - * Naming conventions follow National Semiconductor datasheet * - */ - +//- Identifier: 54LS21/DM54LS21/DM74LS21 +//- Title: Dual 4-Input AND Gates +//- Description: This device contains two independent 4-input gates each of which performs the logic AND function. +//- Pinalias: A1,B1,NC,C1,D1,Y1,GND,Y2,A2,B2,NC,C2,D2,VCC +//- Package: DIP +//- NamingConvention: Naming conventions follow National Semiconductor datasheet +//- FunctionTable: +//- http://pdf.datasheetcatalog.com/datasheet/nationalsemiconductor/DS006356.PDF +//- +//- +---+---+---+---++---+ +//- | A | B | C | D || Y | +//- +===+===+===+===++===+ +//- | X | X | X | 0 || 1 | +//- | X | X | 0 | X || 1 | +//- | X | 0 | X | X || 1 | +//- | 0 | X | X | X || 1 | +//- | 1 | 1 | 1 | 1 || 0 | +//- +---+---+---+---++---+ +//- static NETLIST_START(TTL_7421_DIP) TTL_7421_GATE(A) TTL_7421_GATE(B) @@ -468,40 +517,40 @@ static NETLIST_START(TTL_7421_DIP) NET_C(A.GND, B.GND) NC_PIN(NC) - DIPPINS( /* +--------------+ */ - A.A, /* A1 |1 ++ 14| VCC */ A.VCC, - A.B, /* B1 |2 13| D2 */ B.D, - NC.I, /* NC |3 12| C2 */ B.C, - A.C, /* C1 |4 7420 11| NC */ NC.I, - A.D, /* D1 |5 10| B2 */ B.B, - A.Q, /* Y1 |6 9| A2 */ B.A, - A.GND,/* GND |7 8| Y2 */ B.Q - /* +--------------+ */ + DIPPINS( /* +--------------+ */ + A.A, /* A1 |1 ++ 14| VCC */ A.VCC, + A.B, /* B1 |2 13| D2 */ B.D, + NC.I, /* NC |3 12| C2 */ B.C, + A.C, /* C1 |4 7421 11| NC */ NC.I, + A.D, /* D1 |5 10| B2 */ B.B, + A.Q, /* Y1 |6 9| A2 */ B.A, + A.GND, /* GND |7 8| Y2 */ B.Q + /* +--------------+ */ ) NETLIST_END() -/* - * DM7425: Dual 4-Input NOR Gates - * - * ______ - * Y = A+B+C+D - * +---+---+---+---+---++---+ - * | A | B | C | D | X || Y | - * +===+===+===+===+===++===+ - * | X | X | X | X | 0 || Z | - * | 0 | 0 | 0 | 0 | 1 || 1 | - * | X | X | X | 1 | 1 || 0 | - * | X | X | 1 | X | 1 || 0 | - * | X | 1 | X | X | 1 || 0 | - * | 1 | X | X | X | 1 || 0 | - * +---+---+---+---+---++---+ - * - * FIXME: The "X" input and high impedance output are currently not simulated. - * - * Naming conventions follow National Semiconductor datasheet - * - */ - +//- Identifier: 5425/DM7425 +//- Title: Dual 4-Input NOR Gate (with Strobe) +//- Description: This device contains 2, 4-input gates that perform the logical NOR function. +//- The output of each NOR gate is gated (strobed) by pin 3 and 11 by positive true logic, i.e., logic "1" equals output on. +//- Pinalias: A1,B1,X1,C1,D1,Y1,GND,Y2,A2,B2,X2,C2,D2 +//- Package: DIP +//- NamingConvention: Naming conventions follow National Semiconductor datasheet +//- Limitations: The "X" input and high impedance output are currently not simulated. +//- FunctionTable: +//- http://pdf.datasheetcatalog.com/datasheet_pdf/national-semiconductor/5425DMQB_to_DM7425N.pdf +//- +//- +---+---+---+---+---++---+ +//- | A | B | C | D | X || Y | +//- +===+===+===+===+===++===+ +//- | X | X | X | X | 0 || Z | +//- | 0 | 0 | 0 | 0 | 1 || 1 | +//- | X | X | X | 1 | 1 || 0 | +//- | X | X | 1 | X | 1 || 0 | +//- | X | 1 | X | X | 1 || 0 | +//- | 1 | X | X | X | 1 || 0 | +//- +---+---+---+---+---++---+ +//- static NETLIST_START(TTL_7425_DIP) TTL_7425_GATE(A) TTL_7425_GATE(B) @@ -511,36 +560,36 @@ static NETLIST_START(TTL_7425_DIP) NC_PIN(XA) // FIXME: Functionality needs to be implemented NC_PIN(XB) // FIXME: Functionality needs to be implemented - DIPPINS( /* +--------------+ */ - A.A, /* A1 |1 ++ 14| VCC */ A.VCC, - A.B, /* B1 |2 13| D2 */ B.D, - XA.I, /* X1 |3 12| C2 */ B.C, - A.C, /* C1 |4 7425 11| X2 */ XB.I, - A.D, /* D1 |5 10| B2 */ B.B, - A.Q, /* Y1 |6 9| A2 */ B.A, - A.GND,/* GND |7 8| Y2 */ B.Q - /* +--------------+ */ + DIPPINS( /* +--------------+ */ + A.A, /* A1 |1 ++ 14| VCC */ A.VCC, + A.B, /* B1 |2 13| D2 */ B.D, + XA.I, /* X1 |3 12| C2 */ B.C, + A.C, /* C1 |4 7425 11| X2 */ XB.I, + A.D, /* D1 |5 10| B2 */ B.B, + A.Q, /* Y1 |6 9| A2 */ B.A, + A.GND, /* GND |7 8| Y2 */ B.Q + /* +--------------+ */ ) NETLIST_END() -/* - * DM7427: Triple 3-Input NOR Gates - * - * ____ - * Y = A+B+C - * +---+---+---++---+ - * | A | B | C || Y | - * +===+===+===++===+ - * | X | X | 1 || 0 | - * | X | 1 | X || 0 | - * | 1 | X | X || 0 | - * | 0 | 0 | 0 || 1 | - * +---+---+---++---+ - * - * Naming conventions follow National Semiconductor datasheet - * - */ - +//- Identifier: DM7427 +//- Title: Triple 3-Input NOR Gates +//- Description: This device contains three independent gates each of which performs the logic NOR function. +//- Pinalias: A1,B1,A2,B2,C2,Y2,GND,Y3,A3,B3,C3,Y1,C1,VCC +//- Package: DIP +//- NamingConvention: Naming conventions follow National Semiconductor datasheet +//- FunctionTable: +//- http://pdf.datasheetcatalog.com/datasheet/nationalsemiconductor/DS006509.PDF +//- +//- +---+---+---++---+ +//- | A | B | C || Y | +//- +===+===+===++===+ +//- | X | X | 1 || 0 | +//- | X | 1 | X || 0 | +//- | 1 | X | X || 0 | +//- | 0 | 0 | 0 || 1 | +//- +---+---+---++---+ +//- static NETLIST_START(TTL_7427_DIP) TTL_7427_GATE(A) TTL_7427_GATE(B) @@ -549,76 +598,74 @@ static NETLIST_START(TTL_7427_DIP) NET_C(A.VCC, B.VCC, C.VCC) NET_C(A.GND, B.GND, C.GND) - DIPPINS( /* +--------------+ */ - A.A, /* A1 |1 ++ 14| VCC */ A.VCC, - A.B, /* B1 |2 13| C1 */ A.C, - B.A, /* A2 |3 12| Y1 */ A.Q, - B.B, /* B2 |4 7427 11| C3 */ C.C, - B.C, /* C2 |5 10| B3 */ C.B, - B.Q, /* Y2 |6 9| A3 */ C.A, - A.GND,/* GND |7 8| Y3 */ C.Q - /* +--------------+ */ + DIPPINS( /* +--------------+ */ + A.A, /* A1 |1 ++ 14| VCC */ A.VCC, + A.B, /* B1 |2 13| C1 */ A.C, + B.A, /* A2 |3 12| Y1 */ A.Q, + B.B, /* B2 |4 7427 11| C3 */ C.C, + B.C, /* C2 |5 10| B3 */ C.B, + B.Q, /* Y2 |6 9| A3 */ C.A, + A.GND, /* GND |7 8| Y3 */ C.Q + /* +--------------+ */ ) NETLIST_END() -/* - * DM7430: 8-Input NAND Gate - * - * _______ - * Y = ABCDEFGH - * +---+---+---+---+---+---+---+---++---+ - * | A | B | C | D | E | F | G | H || Y | - * +===+===+===+===+===+===+===+===++===+ - * | X | X | X | X | X | X | X | 0 || 1 | - * | X | X | X | X | X | X | 0 | X || 1 | - * | X | X | X | X | X | 0 | X | X || 1 | - * | X | X | X | X | 0 | X | X | X || 1 | - * | X | X | X | 0 | X | X | X | X || 1 | - * | X | X | 0 | X | X | X | X | X || 1 | - * | X | 0 | X | X | X | X | X | X || 1 | - * | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 || 0 | - * +---+---+---+---+---+---+---+---++---+ - * - * Naming conventions follow National Semiconductor datasheet - */ - +//- Identifier: 5430/DM5430/DM7430 +//- Title: 8-Input NAND Gate +//- Description: This device contains a single gate which performs the logic NAND function. +//- Pinalias: A,B,C,D,E,F,GND,Y,NC,NC,G,H,NC,VCC +//- Package: DIP +//- NamingConvention: Naming conventions follow National Semiconductor datasheet +//- FunctionTable: +//- http://pdf.datasheetcatalog.com/datasheet/nationalsemiconductor/DS006510.PDF +//- +//- +---+---+---+---+---+---+---+---++---+ +//- | A | B | C | D | E | F | G | H || Y | +//- +===+===+===+===+===+===+===+===++===+ +//- | X | X | X | X | X | X | X | 0 || 1 | +//- | X | X | X | X | X | X | 0 | X || 1 | +//- | X | X | X | X | X | 0 | X | X || 1 | +//- | X | X | X | X | 0 | X | X | X || 1 | +//- | X | X | X | 0 | X | X | X | X || 1 | +//- | X | X | 0 | X | X | X | X | X || 1 | +//- | X | 0 | X | X | X | X | X | X || 1 | +//- | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 || 0 | +//- +---+---+---+---+---+---+---+---++---+ +//- static NETLIST_START(TTL_7430_DIP) TTL_7430_GATE(A) + NC_PIN(NC) - NC_PIN(NC9) - NC_PIN(NC10) - NC_PIN(NC13) - - DIPPINS( /* +--------------+ */ - A.A, /* A |1 ++ 14| VCC */ A.VCC, - A.B, /* B |2 13| NC */ NC13.I, - A.C, /* C |3 12| H */ A.H, - A.D, /* D |4 7430 11| G */ A.G, - A.E, /* E |5 10| NC */ NC10.I, - A.F, /* F |6 9| NC */ NC9.I, - A.GND,/* GND |7 8| Y */ A.Q - /* +--------------+ */ + DIPPINS( /* +--------------+ */ + A.A, /* A |1 ++ 14| VCC */ A.VCC, + A.B, /* B |2 13| NC */ NC.I, + A.C, /* C |3 12| H */ A.H, + A.D, /* D |4 7430 11| G */ A.G, + A.E, /* E |5 10| NC */ NC.I, + A.F, /* F |6 9| NC */ NC.I, + A.GND, /* GND |7 8| Y */ A.Q + /* +--------------+ */ ) NETLIST_END() -/* - * DM7432: Quad 2-Input OR Gates - * - * __ - * Y = A+B - * +---+---++---+ - * | A | B || Y | - * +===+===++===+ - * | 0 | 0 || 0 | - * | 0 | 1 || 1 | - * | 1 | 0 || 1 | - * | 1 | 1 || 1 | - * +---+---++---+ - * - * Naming conventions follow National Semiconductor datasheet - * - */ - +//- Identifier: 5432/DM5432/DM7432 +//- Title: Quad 2-Input OR Gates +//- Description: This device contains four independent gates each of whichperforms the logic OR function. +//- Pinalias: A1,B1,Y1,A2,B2,Y2,GND,Y3,A3,B3,Y4,A4,B4,VCC +//- Package: DIP +//- NamingConvention: Naming conventions follow National Semiconductor datasheet +//- FunctionTable: +//- http://pdf.datasheetcatalog.com/datasheet/nationalsemiconductor/DS006511.PDF +//- +//- +---+---++---+ +//- | A | B || Y | +//- +===+===++===+ +//- | 0 | 0 || 0 | +//- | 0 | 1 || 1 | +//- | 1 | 0 || 1 | +//- | 1 | 1 || 1 | +//- +---+---++---+ +//- static NETLIST_START(TTL_7432_DIP) TTL_7432_GATE(A) TTL_7432_GATE(B) @@ -628,39 +675,37 @@ static NETLIST_START(TTL_7432_DIP) NET_C(A.VCC, B.VCC, C.VCC, D.VCC) NET_C(A.GND, B.GND, C.GND, D.GND) - DIPPINS( /* +--------------+ */ - A.A, /* A1 |1 ++ 14| VCC */ A.VCC, - A.B, /* B1 |2 13| B4 */ D.B, - A.Q, /* Y1 |3 12| A4 */ D.A, - B.A, /* A2 |4 7400 11| Y4 */ D.Q, - B.B, /* B2 |5 10| B3 */ C.B, - B.Q, /* Y2 |6 9| A3 */ C.A, - A.GND,/* GND |7 8| Y3 */ C.Q - /* +--------------+ */ + DIPPINS( /* +--------------+ */ + A.A, /* A1 |1 ++ 14| VCC */ A.VCC, + A.B, /* B1 |2 13| B4 */ D.B, + A.Q, /* Y1 |3 12| A4 */ D.A, + B.A, /* A2 |4 7432 11| Y4 */ D.Q, + B.B, /* B2 |5 10| B3 */ C.B, + B.Q, /* Y2 |6 9| A3 */ C.A, + A.GND, /* GND |7 8| Y3 */ C.Q + /* +--------------+ */ ) NETLIST_END() - -/* - * DM7437: Quad 2-Input NAND Gates - * - * _ - * Y = AB - * +---+---++---+ - * | A | B || Y | - * +===+===++===+ - * | 0 | 0 || 1 | - * | 0 | 1 || 1 | - * | 1 | 0 || 1 | - * | 1 | 1 || 0 | - * +---+---++---+ - * - * Naming conventions follow National Semiconductor datasheet - * - * NOTE: Same as 7400, but drains higher output currents. - * Netlist currently does not model over currents (should it ever?) - */ - +//- Identifier: 5437/DM5437/DM7437 +//- Title: Quad 2-Input NAND Buffers +//- Description: This device contains four independent gates each of whichperforms the logic OR function. +//- Pinalias: A1,B1,Y1,A2,B2,Y2,GND,Y3,A3,B3,Y4,A4,B4,VCC +//- Package: DIP +//- NamingConvention: Naming conventions follow National Semiconductor datasheet +//- Limitations: Same as 7400, but drains higher output currents. Netlist currently does not model over currents (should it ever?) +//- FunctionTable: +//- http://pdf.datasheetcatalog.com/datasheets/105/236976_DS.pdf +//- +//- +---+---++---+ +//- | A | B || Y | +//- +===+===++===+ +//- | 0 | 0 || 1 | +//- | 0 | 1 || 1 | +//- | 1 | 0 || 1 | +//- | 1 | 1 || 0 | +//- +---+---++---+ +//- static NETLIST_START(TTL_7437_DIP) TTL_7437_GATE(A) TTL_7437_GATE(B) @@ -670,32 +715,156 @@ static NETLIST_START(TTL_7437_DIP) NET_C(A.VCC, B.VCC, C.VCC, D.VCC) NET_C(A.GND, B.GND, C.GND, D.GND) - DIPPINS( /* +--------------+ */ - A.A, /* A1 |1 ++ 14| VCC */ A.VCC, - A.B, /* B1 |2 13| B4 */ D.B, - A.Q, /* Y1 |3 12| A4 */ D.A, - B.A, /* A2 |4 7400 11| Y4 */ D.Q, - B.B, /* B2 |5 10| B3 */ C.B, - B.Q, /* Y2 |6 9| A3 */ C.A, - A.GND,/* GND |7 8| Y3 */ C.Q - /* +--------------+ */ + DIPPINS( /* +--------------+ */ + A.A, /* A1 |1 ++ 14| VCC */ A.VCC, + A.B, /* B1 |2 13| B4 */ D.B, + A.Q, /* Y1 |3 12| A4 */ D.A, + B.A, /* A2 |4 7437 11| Y4 */ D.Q, + B.B, /* B2 |5 10| B3 */ C.B, + B.Q, /* Y2 |6 9| A3 */ C.A, + A.GND, /* GND |7 8| Y3 */ C.Q + /* +--------------+ */ ) NETLIST_END() -/* - * DM7450: DUAL 2-WIDE 2-INPUT AND-OR-INVERT GATES (ONE GATE EXPANDABLE) - * - * +--------------+ - * 1A |1 ++ 14| VCC - * 2A |2 13| 1B - * 2B |3 12| 1XQ - * 2C |4 7450 11| 1X - * 2D |5 10| 1D - * 2Y |6 9| 1C - * GND |7 8| 1Y - * +--------------+ -*/ +//- Identifier: 5442A/DM5442A/DM7442A +//- Title: BCD to Decimal Decoders +//- Description: These BCD-to-decimal decoders consist of eight inverters +//- and ten, four-input NAND gates. The inverters are +//- connected in pairs to make BCD input data available for +//- decoding by the NAND gates. Full decoding of input +//- logic ensures that all outputs remain off for all invalid +//- (10-15) input conditions. +//- Pinalias: 0,1,2,3,4,5,6,GND,7,8,9,D,C,B,A,VCC +//- Package: DIP +//- NamingConvention: Naming conventions follow National Semiconductor datasheet +//- FunctionTable: +//- http://pdf.datasheetcatalog.com/datasheet/nationalsemiconductor/DS006516.PDF +//- +//- +---+---+---+---++---+---+---+---+---+---+---+---+---+---+ +//- | D | C | B | A || 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | +//- +===+===+===+===++===+===+===+===+===+===+===+===+===+===+ +//- | 0 | 0 | 0 | 0 || 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | +//- | 0 | 0 | 0 | 1 || 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | +//- | 0 | 0 | 1 | 0 || 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | +//- | 0 | 0 | 1 | 1 || 1 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | +//- | 0 | 1 | 0 | 0 || 1 | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | +//- | 0 | 1 | 0 | 1 || 1 | 1 | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | +//- | 0 | 1 | 1 | 0 || 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 1 | 1 | +//- | 0 | 1 | 1 | 1 || 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 1 | +//- | 1 | 0 | 0 | 0 || 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | +//- | 1 | 0 | 0 | 1 || 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | +//- | 1 | 0 | 1 | 0 || 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | +//- | 1 | 0 | 1 | 1 || 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | +//- | 1 | 1 | 0 | 0 || 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | +//- | 1 | 1 | 0 | 1 || 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | +//- | 1 | 1 | 1 | 0 || 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | +//- | 1 | 1 | 1 | 1 || 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | +//- +---+---+---+---++---+---+---+---+---+---+---+---+---+---+ +//- +static NETLIST_START(TTL_7442_DIP) + NET_REGISTER_DEV(TTL_7442, A) + DIPPINS( /* +--------------+ */ + A.Q0, /* 0 |1 ++ 16| VCC */ A.VCC, + A.Q1, /* 1 |2 15| A */ A.A, + A.Q2, /* 2 |3 14| B */ A.B, + A.Q3, /* 3 |4 13| C */ A.C, + A.Q4, /* 4 |5 7442 12| D */ A.D, + A.Q5, /* 5 |6 11| 9 */ A.Q9, + A.Q6, /* 6 |7 10| 8 */ A.Q8, + A.GND, /* GND |8 9| 7 */ A.Q7 + /* +--------------+ */ + ) +NETLIST_END() + +//- Identifier: DM5448/DM48LS48/DM7448/DM74LS48 +//- Title: BCD to 7-Segment Decoder +//- Description: The 48 and LS48 feature active-high outputs for +//- driving lamp buffers or common-cathode LED's. +//- These circuits have full ripple-blanking input/output controls +//- and a lamp test input. Display patterns +//- for BCD input counts above nine are unique symbols +//- to authenticate input conditions. +//- These circuits incorporate automatic +//- leading and/or trailing-edge, zero-blanking control +//- (RBI and RBO). Lamp test (LT) of these devices may +//- be performed at any time when the BI/RBO node is at +//- a high logic level. They contain +//- an overriding blanking input (BI) which can be used +//- to control the lamp intensity (by pulsing), or to inhibit +//- the outputs. +//- Pinalias: A1,A2,LTQ,BIQ,RBIQ,A3,A0,GND,e,d,c,b,a,g,f,VCC +//- Package: DIP +//- NamingConvention: Naming conventions follow National Semiconductor datasheet +//- FunctionTable: +//- http://pdf.datasheetcatalog.com/datasheet/nationalsemiconductor/DS010172.PDF +//- +//- +-----+------+----+----+----+----++-----+---+---+---+---+---+---+---+ +//- | LTQ | RBIQ | A3 | A2 | A1 | A0 || BIQ | a | b | c | d | e | f | g | +//- +=====+======+====+====+====+====++=====+===+===+===+===+===+===+===+ +//- | 1 | 1 | 0 | 0 | 0 | 0 || 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | +//- | 1 | X | 0 | 0 | 0 | 1 || 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | +//- | 1 | X | 0 | 0 | 1 | 0 || 1 | 1 | 1 | 0 | 1 | 1 | 0 | 1 | +//- | 1 | X | 0 | 0 | 1 | 1 || 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | +//- | 1 | X | 0 | 1 | 0 | 0 || 1 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | +//- | 1 | X | 0 | 1 | 0 | 1 || 1 | 1 | 0 | 1 | 1 | 0 | 1 | 1 | +//- | 1 | X | 0 | 1 | 1 | 0 || 1 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | +//- | 1 | X | 0 | 1 | 1 | 1 || 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | +//- | 1 | X | 1 | 0 | 0 | 0 || 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | +//- | 1 | X | 1 | 0 | 0 | 1 || 1 | 1 | 1 | 1 | 0 | 0 | 1 | 1 | +//- | 1 | X | 1 | 0 | 1 | 0 || 1 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | +//- | 1 | X | 1 | 0 | 1 | 1 || 1 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | +//- | 1 | X | 1 | 1 | 0 | 0 || 1 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | +//- | 1 | X | 1 | 1 | 0 | 1 || 1 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | +//- | 1 | X | 1 | 1 | 1 | 0 || 1 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | +//- | 1 | X | 1 | 1 | 1 | 1 || 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | +//- | X | X | X | X | X | X || 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | +//- | 1 | 0 | 0 | 0 | 0 | 0 || 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | +//- | 0 | X | X | X | X | X || 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | +//- +-----+------+----+----+----+----++-----+---+---+---+---+---+---+---+ +//- +static NETLIST_START(TTL_7448_DIP) + +#if (NL_USE_TRUTHTABLE_7448) + NET_REGISTER_DEV(TTL_7448_TT, A) +#else + NET_REGISTER_DEV(TTL_7448, A) +#endif + + DIPPINS( /* +--------------+ */ + A.B, /* B |1 ++ 16| VCC */ A.VCC, + A.C, /* C |2 15| f */ A.f, + A.LTQ, /* LTQ |3 14| g */ A.g, + A.BIQ, /* BIQ |4 7448 13| a */ A.a, + A.RBIQ, /* RBIQ |5 12| b */ A.b, + A.D, /* D |6 11| c */ A.c, + A.A, /* A |7 10| d */ A.d, + A.GND, /* GND |8 9| e */ A.e + /* +--------------+ */ + ) +NETLIST_END() + +//- Identifier: DM7450 +//- Title: Expandable Dual 2-Wide 2-Input AND-OR-INVERT Gate +//- Description: This device contains two independent combinations of gates, each of which perform the logic AND-OR-INVERT function. +//- One set of gates has an expander node. +//- Pinalias: A1,B1,Y1,A2,B2,Y2,GND,Y3,A3,B3,Y4,A4,B4,VCC +//- Package: DIP +//- NamingConvention: Naming conventions follow National Semiconductor datasheet +//- Limitations: Expander signal is not implemented +//- FunctionTable: +//- http://pdf.datasheetcatalog.com/datasheets/105/236976_DS.pdf +//- +//- +---+---++---+ +//- | A | B || Y | +//- +===+===++===+ +//- | 0 | 0 || 1 | +//- | 0 | 1 || 1 | +//- | 1 | 0 || 1 | +//- | 1 | 1 || 0 | +//- +---+---++---+ +//- static NETLIST_START(TTL_7450_DIP) TTL_7450_ANDORINVERT(A) TTL_7450_ANDORINVERT(B) @@ -704,33 +873,45 @@ static NETLIST_START(TTL_7450_DIP) NET_C(A.GND, B.GND) NC_PIN(NC) - DIPPINS( /* +--------------+ */ - A.A, /* 1A |1 ++ 14| VCC */ A.VCC, - B.A, /* 2A |2 13| 1B */ A.B, - B.B, /* 2B |3 12| 1XQ */ NC.I, - B.C, /* 2C |4 7450 11| 1X */ NC.I, - B.D, /* 2D |5 10| 1D */ A.D, - B.Q, /* 2Y |6 9| 1C */ A.C, - A.GND,/* GND |7 8| 1Y */ A.Q - /* +--------------+ */ + DIPPINS( /* +--------------+ */ + A.A, /* 1A |1 ++ 14| VCC */ A.VCC, + B.A, /* 2A |2 13| 1B */ A.B, + B.B, /* 2B |3 12| 1XQ */ NC.I, + B.C, /* 2C |4 7450 11| 1X */ NC.I, + B.D, /* 2D |5 10| 1D */ A.D, + B.Q, /* 2Y |6 9| 1C */ A.C, + A.GND, /* GND |7 8| 1Y */ A.Q + /* +--------------+ */ ) NETLIST_END() -/* - * 7473: Dual Master-Slave J-K Flip-Flops with Clear and Complementary Outputs - * 7473A: Dual Negative-Edge-Triggered Master-Slave J-K Flip-Flops with Clear and Complementary Outputs - * - * +----------+ - * 1CLK |1 ++ 14| 1J - * 1CLRQ |2 13| 1QQ - * 1K |3 12| 1Q - * VCC |4 7473 11| GND - * 2CLK |5 10| 2K - * 2CLRQ |6 9| 2Q - * 2J |7 8| 2QQ - * +----------+ - */ - +//- Identifier: 5473/DM5473/DM7473 +//- Title: Dual Master-Slave J-K Flip-Flops with Clear and Complementary Outputs +//- Description: This device contains two independent positive pulse triggered J-K flip-flops with complementary outputs. +//- The J and K data is processed by the flip-flops after a complete clock pulse. +//- While the clock is low the slave is isolated from the master. +//- On the positive transition of the clock, the data from the J and K inputs is transferred to teh master. +//- While the clock is high the J and K inputs are disabled. +//- On the negative transition of the clock, the data from the master is transferred to the slave. +//- The logic states of the J and K inputs must not be allowed to change while the clock is high. +//- Data transfers to the outputs on the falling edge of the clock pulse. +//- A low logic level on the clear input will reset the outputs regardless of the logic states of the other inputs. +//- Pinalias: CLK1,CLR1,K1,VCC,CLK2,CLR2,J2,QQ2,Q2,K2,GND,Q1,QQ1,J1 +//- Package: DIP +//- NamingConvention: Naming conventions follow National Semiconductor datasheet +//- FunctionTable: +//- http://pdf.datasheetcatalog.com/datasheet_pdf/national-semiconductor/5473DMQB_to_DM7473N.pdf +//- +//- +-----+-------+---+---++---+----+ +//- | CLR | CLK | J | K || Q | QQ | +//- +=====+=======+===+===++===+====+ +//- | 0 | X | X | X || 0 | 1 | +//- | 1 | 0-1-0 | 0 | 0 || Q | QQ | +//- | 1 | 0-1-0 | 1 | 0 || 1 | 0 | +//- | 1 | 0-1-0 | 0 | 1 || 0 | 1 | +//- | 1 | 0-1-0 | 1 | 1 || Toggle | +//- +-----+-------+---+---++---+----+ +//- static NETLIST_START(TTL_7473_DIP) TTL_7473(A) TTL_7473(B) @@ -738,18 +919,42 @@ static NETLIST_START(TTL_7473_DIP) NET_C(A.VCC, B.VCC) NET_C(A.GND, B.GND) - DIPPINS( /* +----------+ */ - A.CLK, /* 1CLK |1 ++ 14| 1J */ A.J, - A.CLRQ, /* 1CLRQ |2 13| 1QQ */ A.QQ, - A.K, /* 1K |3 12| 1Q */ A.Q, - A.VCC, /* VCC |4 7473 11| GND */ A.GND, - B.CLK, /* 2CLK |5 10| 2K */ B.K, - B.CLRQ, /* 2CLRQ |6 9| 2Q */ B.Q, - B.J, /* 2J |7 8| 2QQ */ B.QQ - /* +----------+ */ + DIPPINS( /* +--------------+ */ + A.CLK, /* CLK1 |1 ++ 14| J1 */ A.J, + A.CLRQ, /* CLR1 |2 13| QQ1 */ A.QQ, + A.K, /* K1 |3 12| Q1 */ A.Q, + A.VCC, /* VCC |4 7473 11| GND */ A.GND, + B.CLK, /* CLK2 |5 10| K2 */ B.K, + B.CLRQ, /* CLR2 |6 9| Q2 */ B.Q, + B.J, /* J2 |7 8| QQ2 */ B.QQ + /* +--------------+ */ ) NETLIST_END() +//- Identifier: DM54LS73A/DM74LS73A +//- Title: Dual Negative-Edge-Triggered Master-Slave J-K Flip-Flops with Clear and Complementary Outputs +//- Description: This device contains two independent negative-edge-triggered J-K flip-flops with complementary outputs. +//- The J and K data is processed by the flip-flops on the falling edge of the clock pulse. +// The clock triggering occurs at a voltage level and is not directly related to the transition time of the negative going edge of the clock pulse. +//- The data on the J and K inputs is allowed to change while the clock is high or low without affecting the outputs as long as setup and hold times are not violated. +//- A low logic level on the clear input will reset the outputs regardless of the levels of the other inputs. +//- Pinalias: CLK1,CLR1,K1,VCC,CLK2,CLR2,J2,QQ2,Q2,K2,GND,Q1,QQ1,J1 +//- Package: DIP +//- NamingConvention: Naming conventions follow National Semicouductor datasheet +//- FunctionTable: +//- http://pdf.datasheetcatalog.com/datasheet/nationalsemiconductor/DS006372.PDF +//- +//- +-----+-----+---+---++---+----+ +//- | CLR | CLK | J | K || Q | QQ | +//- +=====+=====+===+===++===+====+ +//- | 0 | X | X | X || 0 | 1 | +//- | 1 | 1-0 | 0 | 0 || Q | QQ | +//- | 1 | 1-0 | 1 | 0 || 1 | 0 | +//- | 1 | 1-0 | 0 | 1 || 0 | 1 | +//- | 1 | 1-0 | 1 | 1 || Toggle | +//- | 1 | 1 | X | X || Q | QQ | +//- +-----+-----+---+---++---+----+ +//- static NETLIST_START(TTL_7473A_DIP) TTL_7473A(A) TTL_7473A(B) @@ -757,33 +962,42 @@ static NETLIST_START(TTL_7473A_DIP) NET_C(A.VCC, B.VCC) NET_C(A.GND, B.GND) - DIPPINS( /* +----------+ */ - A.CLK, /* 1CLK |1 ++ 14| 1J */ A.J, - A.CLRQ, /* 1CLRQ |2 13| 1QQ */ A.QQ, - A.K, /* 1K |3 12| 1Q */ A.Q, - A.VCC, /* VCC |4 7473A 11| GND */ A.GND, - B.CLK, /* 2CLK |5 10| 2K */ B.K, - B.CLRQ, /* 2CLRQ |6 9| 2Q */ B.Q, - B.J, /* 2J |7 8| 2QQ */ B.QQ - /* +----------+ */ + DIPPINS( /* +--------------+ */ + A.CLK, /* CLK1 |1 ++ 14| J1 */ A.J, + A.CLRQ, /* CLR1 |2 13| QQ1 */ A.QQ, + A.K, /* K1 |3 12| Q1 */ A.Q, + A.VCC, /* VCC |4 7473A 11| GND */ A.GND, + B.CLK, /* CLK2 |5 10| K2 */ B.K, + B.CLRQ, /* CLR2 |6 9| Q2 */ B.Q, + B.J, /* J2 |7 8| QQ2 */ B.QQ + /* +--------------+ */ ) NETLIST_END() -/* - * DM7474: Dual Positive-Edge-Triggered D Flip-Flops - * with Preset, Clear and Complementary Outputs - * - * +--------------+ - * CLR1 |1 ++ 14| VCC - * D1 |2 13| CLR2 - * CLK1 |3 12| D2 - * PR1 |4 7474 11| CLK2 - * Q1 |5 10| PR2 - * Q1Q |6 9| Q2 - * GND |7 8| Q2Q - * +--------------+ - */ - +//- Identifier: 5474/DM5474/DM7474 +//- Title: Dual Positive-Edge-Triggered D Flip-Flops with Preset, Clear and Complementary Outputs +//- Description: This device contains two independent positive-edge-triggered D flip-flops with complementary outputs. +//- The information on the D input is accepted by the flip-flops on the positive going edge of the clock pulse. +//- The triggering occurs at a voltage level and is not directly related to the transition time of the rising edge of the clock. +//- The data on the D input may be changed while the clock is low or high without affecting the outputs as long as the data setup and hold times are not violated. +//- A low logic level on the preset or clear inputs will set or reset the outputs regardless of the logic levels of the other inputs. +//- Pinalias: CLR1,D1,CLK1,PR1,Q1,QQ1,GND,QQ2,Q2,PR2,CLK2,D2,CLR2,VCC +//- Package: DIP +//- NamingConvention: Naming conventions follow National Semiconductor datasheet +//- FunctionTable: +//- http://pdf.datasheetcatalog.com/datasheet/nationalsemiconductor/DS006526.PDF +//- +//- +----+-----+-----+---++---+----+ +//- | PR | CLR | CLK | D || Q | QQ | +//- +====+=====+=====+===++===+====+ +//- | 0 | 1 | X | X || 1 | 0 | +//- | 1 | 0 | X | X || 0 | 1 | +//- | 0 | 0 | X | X || 1 | 1 | (unstable) +//- | 1 | 1 | 0-1 | 1 || 1 | 0 | +//- | 1 | 1 | 0-1 | 0 || 0 | 1 | +//- | 1 | 1 | 0 | X || Q | QQ | +//- +----+-----+-----+---++---+----+ +//- static NETLIST_START(TTL_7474_DIP) TTL_7474(A) TTL_7474(B) @@ -797,28 +1011,43 @@ static NETLIST_START(TTL_7474_DIP) A.CLK, /* CLK1 |3 12| D2 */ B.D, A.PREQ, /* PR1 |4 7474 11| CLK2 */ B.CLK, A.Q, /* Q1 |5 10| PR2 */ B.PREQ, - A.QQ, /* Q1Q |6 9| Q2 */ B.Q, - A.GND, /* GND |7 8| Q2Q */ B.QQ + A.QQ, /* QQ1 |6 9| Q2 */ B.Q, + A.GND, /* GND |7 8| QQ2 */ B.QQ /* +-------------+ */ ) NETLIST_END() -/* - * 7475: 4-Bit Bistable Latches with Complementary Outputs - * 7477: 4-Bit Bistable Latches - * - * +----------+ +----------+ - * 1QQ |1 ++ 16| 1Q 1D |1 ++ 14| 1Q - * 1D |2 15| 2Q 2D |2 13| 2Q - * 2D |3 14| 2QQ 3C4C |3 12| 1C2C - * 3C4C |4 7475 13| 1C2C VCC |4 7477 11| GND - * VCC |5 12| GND 3D |5 10| NC - * 3D |6 11| 3QQ 4D |6 9| 3Q - * 4D |7 10| 3Q NC |7 8| 4Q - * 4QQ |8 9| 4Q +----------+ - * +----------+ - */ - +//- Identifier: DM5475/DM7475/DM7475A/DM74LS75 +//- Title: 4-bit D Latch +//- Description: These latches are ideally suited for use as temporary +//- storage for binary information between processing units +//- and input/output or indicator units. Information present +//- at a data (D) input is transferred to the Q output when +//- the enable (G) is high, and the Q output will follow +//- the data input as long as the enable remains high. When +//- the enable goes low, the information (that was present +//- at the data input at the time the transition occurred) is +//- retained at the Q output until the enable is permitted +//- to go high. +//- +//- The DM5475/DM7475, DM54L75A/DM74L75A, and +//- DM54LS75/DM74LS75 feature complementary Q and +//- QQ outputs from a 4-bit latch, and are available in 16-pin +//- packages. +//- Pinalias: QQ1,D1,D2,E34,VCC,D3,D4,QQ4,Q4,Q3,QQ3,GND,E12,QQ2,Q2,Q1 +//- Package: DIP +//- NamingConvention: Naming conventions follow National Semiconductor datasheet +//- FunctionTable: +//- https://ia800608.us.archive.org/5/items/bitsavers_nationaldaTTLDatabook_40452765/1976_National_TTL_Databook.pdf +//- +//- +---+---++---+----+ +//- | D | G || Q | QQ | +//- +===+===++===+====+ +//- | 0 | 1 || 0 | 1 | +//- | 1 | 1 || 1 | 0 | +//- | X | 0 || Q | QQ | +//- +---+---++---+----+ +//- static NETLIST_START(TTL_7475_DIP) TTL_7475_GATE(A) TTL_7475_GATE(B) @@ -831,19 +1060,45 @@ static NETLIST_START(TTL_7475_DIP) NET_C(A.CLK, B.CLK) NET_C(C.CLK, D.CLK) - DIPPINS( /* +----------+ */ - A.QQ, /* 1QQ |1 ++ 16| 1Q */ A.Q, - A.D, /* 1D |2 15| 2Q */ B.Q, - B.D, /* 2D |3 14| 2QQ */ B.QQ, - C.CLK, /* 3C4C |4 7475 13| 1C2C */ A.CLK, - A.VCC, /* VCC |5 12| GND */ A.GND, - C.D, /* 3D |6 11| 3QQ */ C.QQ, - D.D, /* 4D |7 10| 3Q */ C.Q, - D.QQ, /* 4QQ |8 9| 4Q */ D.Q - /* +----------+ */ + DIPPINS( /* +--------------+ */ + A.QQ, /* QQ1 |1 ++ 16| Q1 */ A.Q, + A.D, /* D1 |2 15| Q2 */ B.Q, + B.D, /* D2 |3 14| QQ2 */ B.QQ, + C.CLK, /* E34 |4 7475 13| E12 */ A.CLK, + A.VCC, /* VCC |5 12| GND */ A.GND, + C.D, /* D3 |6 11| QQ3 */ C.QQ, + D.D, /* D4 |7 10| Q3 */ C.Q, + D.QQ, /* QQ4 |8 9| Q4 */ D.Q + /* +--------------+ */ ) NETLIST_END() +//- Identifier: DM74LS77 +//- Title: 4-bit D Latch +//- Description: These latches are ideally suited for use as temporary +//- storage for binary information between processing units +//- and input/output or indicator units. Information present +//- at a data (D) input is transferred to the Q output when +//- the enable (G) is high, and the Q output will follow +//- the data input as long as the enable remains high. When +//- the enable goes low, the information (that was present +//- at the data input at the time the transition occurred) is +//- retained at the Q output until the enable is permitted +//- to go high. +//- Pinalias: D1,D2,E34,VCC,D3,D4,NC,Q4,Q3,NC,GND,E12,Q2,Q1 +//- Package: DIP +//- NamingConvention: Naming conventions follow National Semiconductor datasheet +//- FunctionTable: +//- https://ia800608.us.archive.org/5/items/bitsavers_nationaldaTTLDatabook_40452765/1976_National_TTL_Databook.pdf +//- +//- +---+---++---+----+ +//- | D | G || Q | QQ | +//- +===+===++===+====+ +//- | 0 | 1 || 0 | 1 | +//- | 1 | 1 || 1 | 0 | +//- | X | 0 || Q | QQ | +//- +---+---++---+----+ +//- static NETLIST_START(TTL_7477_DIP) TTL_7477_GATE(A) TTL_7477_GATE(B) @@ -858,33 +1113,38 @@ static NETLIST_START(TTL_7477_DIP) NC_PIN(NC) - DIPPINS( /* +----------+ */ - A.D, /* 1D |1 ++ 14| 1Q */ A.Q, - B.D, /* 2D |2 13| 2Q */ B.Q, - C.CLK, /* 3C4C |3 12| 1C2C */ A.CLK, - A.VCC, /* VCC |4 7477 11| GND */ A.GND, - C.D, /* 3D |5 10| NC */ NC.I, - D.D, /* 4D |6 9| 3Q */ C.Q, - NC.I, /* NC |7 8| 4Q */ D.Q - /* +----------+ */ + DIPPINS( /* +--------------+ */ + A.D, /* D1 |1 ++ 14| Q1 */ A.Q, + B.D, /* D2 |2 13| Q2 */ B.Q, + C.CLK, /* E34 |3 12| E12 */ A.CLK, + A.VCC, /* VCC |4 7477 11| GND */ A.GND, + C.D, /* D3 |5 10| NC */ NC.I, + D.D, /* D4 |6 9| Q3 */ C.Q, + NC.I, /* NC |7 8| Q4 */ D.Q + /* +--------------+ */ ) NETLIST_END() -/* - * DM7483: 4-Bit Binary Adder with Fast Carry - * - * +--------------+ - * A4 |1 ++ 16| B4 - * S3 |2 15| S4 - * A3 |3 14| C4 - * B3 |4 7483 13| C0 - * VCC |5 12| GND - * S2 |6 11| B1 - * B2 |7 10| A1 - * A2 |8 9| S1 - * +--------------+ - */ - +//- Identifier: DM5483/DM7483/DM74LS83A +//- Title: 4-bit Binary Adders With Fast Carry +//- Description: These full adders perform the addition of two 4-bit +//- binary numbers. The sum (S) outputs are provided for +//- each bit and the resultant carry (C4) is obtained from +//- the fourth bit. These adders feature full internal look +//- ahead across all four bits. This provides the system +//- designer with partial look-ahead performance at the +//- economy and reduced package count of a ripple-carry +//- implementation. +//- +//- The adder logic, including the carry, is implemented in +//- its true form meaning that the end-around carry can be +//- accomplished without the need for logic or level inversion. +//- Pinalias: A4,S3,A3,B3,VCC,S2,B2,A2,S1,A1,B1,GND,C0,C4,S4,B4 +//- Package: DIP +//- NamingConvention: Naming conventions follow National Semiconductor datasheet +//- FunctionTable: +//- http://pdf.datasheetcatalog.com/datasheet/nationalsemiconductor/DS006378.PDF +//- static NETLIST_START(TTL_7483_DIP) TTL_7483(A) @@ -901,56 +1161,64 @@ static NETLIST_START(TTL_7483_DIP) ) NETLIST_END() -/* - * DM7485: 4-bit Magnitude Comparators - * - * +------------+ - * B3 |1 ++ 16| VCC - * LTIN |2 15| A3 - * EQIN |3 14| B2 - * GTIN |4 7485 13| A2 - * GTOUT |5 12| A1 - * EQOUT |6 11| B1 - * LTOUT |7 10| A0 - * GND |8 9| B0 - * +------------+ - * - * Naming convention attempts to follow Texas Instruments datasheet - */ - +//- Identifier: DM5485/DM7485/DM74L85/DM74LS85 +//- Title: 4-Bit Magnitude Comparators +//- Description: These four-bit magnitude comparators perform comparison +//- of straight binary or BCD codes. Three +//- fully-decoded decisions about two, 4-bit words (A, B) +//- are made and are externally available at three outputs. +//- These devices are fully expandable to any number of +//- bits without external gates. Words of greater length may +//- be compared by connecting comparators in cascade. The +//- A > B, A < B, and A = B outputs of a stage handling +//- less-significant bits are connected to the corresponding +//- inputs of the next stage handling more-significant bits. +//- The stage handling the least-significant bits must have a +//- high-level voltage applied to the A = B input and in +//- addition for the L85, low-level voltages applied to the +//- A> B and A < B inputs. The cascading paths of the 85, +//- and LS85 are implemented with only a two-gate-Ievel +//- delay to reduce overall comparison times for long words. +//- Pinalias: B3,LTIN,EQIN,GTIN,GTOUT,EQOUT,LTOUT,GND,B0,A0,B1,A1,A2,B2,A3,VCC +//- Package: DIP +//- NamingConvention: Naming conventions follow National Semiconductor datasheet +//- FunctionTable: +//- http://pdf.datasheetcatalog.com/datasheet/nationalsemiconductor/DS006379.PDF +//- static NETLIST_START(TTL_7485_DIP) TTL_7485(A) - DIPPINS( /* +------------+ */ - A.B3, /* B3 |1 ++ 16| VCC */ A.VCC, - A.LTIN, /* LTIN |2 15| A3 */ A.A3, - A.EQIN, /* EQIN |3 14| B2 */ A.B2, - A.GTIN, /* GTIN |4 7485 13| A2 */ A.A2, - A.GTOUT, /* GTOUT |5 12| A1 */ A.A1, - A.EQOUT, /* EQOUT |6 11| B1 */ A.B1, - A.LTOUT, /* LTOUT |7 10| A0 */ A.A0, - A.GND, /* GND |8 9| B0 */ A.B0 - /* +------------+ */ + DIPPINS( /* +--------------+ */ + A.B3, /* B3 |1 ++ 16| VCC */ A.VCC, + A.LTIN, /* LTIN |2 15| A3 */ A.A3, + A.EQIN, /* EQIN |3 14| B2 */ A.B2, + A.GTIN, /* GTIN |4 7485 13| A2 */ A.A2, + A.GTOUT, /* GTOUT |5 12| A1 */ A.A1, + A.EQOUT, /* EQOUT |6 11| B1 */ A.B1, + A.LTOUT, /* LTOUT |7 10| A0 */ A.A0, + A.GND, /* GND |8 9| B0 */ A.B0 + /* +--------------+ */ ) NETLIST_END() -/* - * DM7486: Quad 2-Input Exclusive-OR Gates - * - * Y = A+B - * +---+---++---+ - * | A | B || Y | - * +===+===++===+ - * | 0 | 0 || 0 | - * | 0 | 1 || 1 | - * | 1 | 0 || 1 | - * | 1 | 1 || 0 | - * +---+---++---+ - * - * Naming conventions follow National Semiconductor datasheet - * - */ - +//- Identifier: 5486/DM5486/DM7486 +//- Title: Quad 2-Input Exclusive-OR Gates +//- Description: This device contains four independent gates each of which performs the logic exclusive-OR function. +//- Pinalias: A1,B1,Y1,A2,B2,Y2,GND,Y3,A3,B3,Y4,A4,B4,VCC +//- Package: DIP +//- NamingConvention: Naming conventions follow National Semiconductor datasheet +//- FunctionTable: +//- http://pdf.datasheetcatalog.com/datasheet/nationalsemiconductor/DS006531.PDF +//- +//- +---+---++---+ +//- | A | B || Y | +//- +===+===++===+ +//- | 0 | 0 || 0 | +//- | 0 | 1 || 1 | +//- | 1 | 0 || 1 | +//- | 1 | 1 || 0 | +//- +---+---++---+ +//- static NETLIST_START(TTL_7486_DIP) TTL_7486_GATE(A) TTL_7486_GATE(B) @@ -960,40 +1228,79 @@ static NETLIST_START(TTL_7486_DIP) NET_C(A.VCC, B.VCC, C.VCC, D.VCC) NET_C(A.GND, B.GND, C.GND, D.GND) - DIPPINS( /* +--------------+ */ - A.A, /* A1 |1 ++ 14| VCC */ A.VCC, - A.B, /* B1 |2 13| B4 */ D.B, - A.Q, /* Y1 |3 12| A4 */ D.A, - B.A, /* A2 |4 7486 11| Y4 */ D.Q, - B.B, /* B2 |5 10| B3 */ C.B, - B.Q, /* Y2 |6 9| A3 */ C.A, - A.GND,/* GND |7 8| Y3 */ C.Q - /* +--------------+ */ + DIPPINS( /* +--------------+ */ + A.A, /* A1 |1 ++ 14| VCC */ A.VCC, + A.B, /* B1 |2 13| B4 */ D.B, + A.Q, /* Y1 |3 12| A4 */ D.A, + B.A, /* A2 |4 7486 11| Y4 */ D.Q, + B.B, /* B2 |5 10| B3 */ C.B, + B.Q, /* Y2 |6 9| A3 */ C.A, + A.GND, /* GND |7 8| Y3 */ C.Q + /* +--------------+ */ ) NETLIST_END() -/* - * DM7490: Decade Counters - * - * +--------------+ - * B |1 ++ 14| A - * R01 |2 13| NC - * R02 |3 12| QA - * NC |4 7490 11| QD - * VCC |5 10| GND - * R91 |6 9| QB - * R92 |7 8| QC - * +--------------+ - */ - - static NETLIST_START(TTL_7490_DIP) +//- Identifier: DM5490/DM7490A +//- Title: Decade Counter +//- Description: These monolithic counters contain four +//- master-slave flip-flops and additional gating to provide +//- a divide-by-two counter and a three-stage binary counter +//- for which the count cycle length is divide-by-five. +//- +//- These counters have a gated zero reset and +//- also have gated set-to-nine inputs +//- for use in BCD nine's complement applications. +//- +//- To use their maximum count length (decade), the B input is connected +//- to the QA output. The input count pulses are applied to +//- input A and the outputs are as described in the appropriate +//- truth table. A symmetrical divide-by-ten count can be +//- obtained from the by connecting the QD output to +//- the A input and applying the input count to the B input +//- which gives a divide-by-ten square wave at output QA. +//- Pinalias: B,R01,R02,NC,VCC,R91,R92,QC,QB,GND,QD,QA,NC,A +//- Package: DIP +//- NamingConvention: Naming conventions follow National Semiconductor datasheet +//- FunctionTable: +//- http://pdf.datasheetcatalog.com/datasheet/nationalsemiconductor/DS006533.PDF +//- +//- BCD Count Sequence BCD Bi-Quinary +//- +-------++----+----+----+----+ +-------++----+----+----+----+ +//- | Count || QD | QC | QB | QA | | Count || QD | QC | QB | QA | +//- +=======++====+====+====+====+ +=======++====+====+====+====+ +//- | 0 || 0 | 0 | 0 | 0 | | 0 || 0 | 0 | 0 | 0 | +//- | 1 || 0 | 0 | 0 | 1 | | 1 || 0 | 0 | 0 | 1 | +//- | 2 || 0 | 0 | 1 | 0 | | 2 || 0 | 0 | 1 | 0 | +//- | 3 || 0 | 0 | 1 | 1 | | 3 || 0 | 0 | 1 | 1 | +//- | 4 || 0 | 1 | 0 | 0 | | 4 || 0 | 1 | 0 | 0 | +//- | 5 || 0 | 1 | 0 | 1 | | 5 || 1 | 0 | 0 | 0 | +//- | 6 || 0 | 1 | 1 | 0 | | 6 || 1 | 0 | 0 | 1 | +//- | 7 || 0 | 1 | 1 | 1 | | 7 || 1 | 0 | 1 | 0 | +//- | 8 || 1 | 0 | 0 | 0 | | 8 || 1 | 0 | 1 | 1 | +//- | 9 || 1 | 0 | 0 | 1 | | 9 || 1 | 1 | 0 | 0 | +//- +-------++----+----+----+----+ +-------++----+----+----+----+ +//- +//- Reset/Count Function Table +//- +-----+-----+-----+-----++----+----+----+----+ +//- | R01 | R02 | R91 | R92 || QD | QC | QB | QA | +//- +=====+=====+=====+=====++====+====+====+====+ +//- | 1 | 1 | 0 | X || 0 | 0 | 0 | 0 | +//- | 1 | 1 | X | 0 || 0 | 0 | 0 | 0 | +//- | X | X | 1 | 1 || 1 | 0 | 0 | 1 | +//- | X | 0 | X | 0 || COUNT | +//- | 0 | X | 0 | X || COUNT | +//- | 0 | X | X | 0 || COUNT | +//- | X | 0 | 0 | X || COUNT | +//- +-----+-----+-----+-----++----+----+----+----+ +//- +static NETLIST_START(TTL_7490_DIP) TTL_7490(A) NC_PIN(NC) DIPPINS( /* +--------------+ */ A.B, /* B |1 ++ 14| A */ A.A, - A.R1, /* R1 |2 13| NC */ NC.I, - A.R2, /* R2 |3 12| QA */ A.QA, + A.R1, /* R01 |2 13| NC */ NC.I, + A.R2, /* R02 |3 12| QA */ A.QA, NC.I, /* NC |4 7490 11| QD */ A.QD, A.VCC, /* VCC |5 10| GND */ A.GND, A.R91, /* R91 |6 9| QB */ A.QB, @@ -1002,50 +1309,119 @@ NETLIST_END() ) NETLIST_END() -/* - * SN7492: Divide-by-12 Counter - * - * +--------------+ - * B |1 ++ 14| A - * NC |2 13| NC - * NC |3 12| QA - * NC |4 7492 11| QD - * VCC |5 10| GND - * R01 |6 9| QB - * R02 |7 8| QC - * +--------------+ - */ - +//- Identifier: SN5492A, SN54LS92, SN7492A, SN74LS92 +//- Title: Divide-By-Twelve Counter +//- Description: These monolithic counters contains four +//- master-slave flip-flops and additional gating to provide +//- a divide-by-two counter and a three-stage binary counter +//- for which the count cycle length is divide-by-six. +//- +//- These counters have a gated zero reset. +//- +//- To use their maximum count length (divide-by- +//- twelve), the B input is connected +//- to the QA output. The input count pulses are applied to +//- input A and the outputs are as described in the appropriate +//- truth table. +//- Pinalias: CKB,NC,NC,NC,VCC,R01,R02,QD,QC,GND,QB,QA,NC,CLKA +//- Package: DIP +//- NamingConvention: Naming conventions follow Texas Instruments datasheet +//- FunctionTable: +//- https://pdf1.alldatasheet.com/datasheet-pdf/view/27430/TI/SN7492A.html +//- +//- Count Sequence +//- +-------++----+----+----+----+ +//- | Count || QD | QC | QB | QA | +//- +=======++====+====+====+====+ +//- | 0 || 0 | 0 | 0 | 0 | +//- | 1 || 0 | 0 | 0 | 1 | +//- | 2 || 0 | 0 | 1 | 0 | +//- | 3 || 0 | 0 | 1 | 1 | +//- | 4 || 0 | 1 | 0 | 0 | +//- | 5 || 0 | 1 | 0 | 1 | +//- | 6 || 1 | 0 | 0 | 0 | +//- | 7 || 1 | 0 | 0 | 1 | +//- | 8 || 1 | 0 | 1 | 0 | +//- | 9 || 1 | 0 | 1 | 1 | +//- | 10 || 1 | 1 | 0 | 0 | +//- | 11 || 1 | 1 | 0 | 1 | +//- +-------++----+----+----+----+ +//- +//- Reset/Count Function Table +//- +-----+-----++----+----+----+----+ +//- | R01 | R02 || QD | QC | QB | QA | +//- +=====+=====++====+====+====+====+ +//- | 1 | 1 || 0 | 0 | 0 | 0 | +//- | 0 | X || COUNT | +//- | X | 0 || COUNT | +//- +-----+-----++----+----+----+----+ +//- static NETLIST_START(TTL_7492_DIP) TTL_7492(A) NC_PIN(NC) - DIPPINS( /* +--------------+ */ - A.B, /* B |1 ++ 14| A */ A.A, - NC.I, /* NC |2 13| NC */ NC.I, - NC.I, /* NC |3 12| QA */ A.QA, - NC.I, /* NC |4 7492 11| QD */ A.QD, - A.VCC, /* VCC |5 10| GND */ A.GND, - A.R1, /* R01 |6 9| QB */ A.QB, - A.R2, /* R02 |7 8| QC */ A.QC - /* +--------------+ */ + DIPPINS( /* +--------------+ */ + A.B, /* CLKB |1 ++ 14| CLKA */ A.A, + NC.I, /* NC |2 13| NC */ NC.I, + NC.I, /* NC |3 12| QA */ A.QA, + NC.I, /* NC |4 7492 11| QD */ A.QD, + A.VCC, /* VCC |5 10| GND */ A.GND, + A.R1, /* R01 |6 9| QB */ A.QB, + A.R2, /* R02 |7 8| QC */ A.QC + /* +--------------+ */ ) NETLIST_END() -/* - * DM7493: Binary Counters - * - * +--------------+ - * CLKB |1 ++ 14| CLKA - * R01 |2 13| NC - * R02 |3 12| QA - * NC |4 7493 11| QD - * VCC |5 10| GND - * NC |6 9| QB - * NC |7 8| QC - * +--------------+ - */ - +//- Identifier: DM7493A +//- Title: Binary Counter +//- Description: These monolithic counters contains four +//- master-slave flip-flops and additional gating to provide +//- a divide-by-two counter and a three-stage binary counter +//- for which the count cycle length is divide-by-eight. +//- +//- These counters have a gated zero reset. +//- +//- To use their maximum count length (four-bit binary), the B input is connected +//- to the QA output. The input count pulses are applied to +//- input A and the outputs are as described in the appropriate +//- truth table. +//- Pinalias: B,R01,R02,NC,VCC,NC,NC,QC,QB,GND,QD,QA,NC,A +//- Package: DIP +//- NamingConvention: Naming conventions follow National Semiconductor datasheet +//- FunctionTable: +//- http://pdf.datasheetcatalog.com/datasheet/nationalsemiconductor/DS006533.PDF +//- +//- Count Sequence +//- +-------++----+----+----+----+ +//- | Count || QD | QC | QB | QA | +//- +=======++====+====+====+====+ +//- | 0 || 0 | 0 | 0 | 0 | +//- | 1 || 0 | 0 | 0 | 1 | +//- | 2 || 0 | 0 | 1 | 0 | +//- | 3 || 0 | 0 | 1 | 1 | +//- | 4 || 0 | 1 | 0 | 0 | +//- | 5 || 0 | 1 | 0 | 1 | +//- | 6 || 0 | 1 | 1 | 0 | +//- | 7 || 0 | 1 | 1 | 1 | +//- | 8 || 1 | 0 | 0 | 0 | +//- | 9 || 1 | 0 | 0 | 1 | +//- | 10 || 1 | 0 | 1 | 0 | +//- | 11 || 1 | 0 | 1 | 1 | +//- | 12 || 1 | 1 | 0 | 0 | +//- | 13 || 1 | 1 | 0 | 1 | +//- | 14 || 1 | 1 | 1 | 0 | +//- | 15 || 1 | 1 | 1 | 1 | +//- +-------++----+----+----+----+ +//- +//- Reset/Count Function Table +//- +-----+-----++----+----+----+----+ +//- | R01 | R02 || QD | QC | QB | QA | +//- +=====+=====++====+====+====+====+ +//- | 1 | 1 || 0 | 0 | 0 | 0 | +//- | 0 | X || COUNT | +//- | X | 0 || COUNT | +//- +-----+-----++----+----+----+----+ +//- static NETLIST_START(TTL_7493_DIP) TTL_7493(A) NC_PIN(NC) @@ -1062,51 +1438,57 @@ NETLIST_END() ) NETLIST_END() -/* - * SN7497: Synchronous 6-Bit Binary Rate Multiplier - * - * +--------------+ - * B1 |1 16| VCC - * B4 |2 15| B3 - * B5 |3 14| B2 - * B0 |4 7497 13| CLR - * Z |5 12| UNITY/CAS - * Y |6 11| ENin (EN) - * ENout |7 10| STRB - * GND |8 9| CLK - * +--------------+ - */ - +//- Identifier: 5497/DM7497 +//- Title: Synchronous Modulo-64 Bit Rate Multiplier +//- Description: The ’97 contains a synchronous 6-stage binary counter and six decoding gates that serve to gate the clock through to the output at a sub-multiple of the input frequency. +//- The output pulse rate, relative to the clock frequency, is determined by signals applied to the Select (S0–S5) inputs. +//- Both true and complement outputs are available, along with an enable input for each. +//- A Count Enable input and a Terminal Count output are provided for cascading two or more packages. +//- An asynchronous Master Reset input prevents counting and resets the counter. +//- Pinalias: S1,S4,S5,S0,ZQ,Y,TCQ,GND,CP,EZQ,CEQ,EY,MR,S2,S3,VCC +//- Package: DIP +//- NamingConvention: Naming conventions follow National Semiconductor datasheet +//- FunctionTable: +//- http://pdf.datasheetcatalog.com/datasheet/nationalsemiconductor/DS009780.PDF +//- static NETLIST_START(TTL_7497_DIP) TTL_7497(A) - DIPPINS( /* +--------------+ */ - A.B1, /* B1 |1 16| VCC */ A.VCC, - A.B4, /* B4 |2 15| B3 */ A.B3, - A.B5, /* B5 |3 14| B2 */ A.B2, - A.B0, /* B0 |4 7497 13| CLR */ A.CLR, - A.ZQ, /* Z |5 12| UNITY/CAS */ A.UNITYQ, - A.Y, /* Y |6 11| ENin (EN) */ A.ENQ, - A.ENOUTQ, /* ENout |7 10| STRB */ A.STRBQ, - A.GND, /* GND |8 9| CLK */ A.CLK - /* +--------------+ */ + DIPPINS( /* +--------------+ */ + A.B1, /* S1 |1 ++ 16| VCC */ A.VCC, + A.B4, /* S4 |2 15| S3 */ A.B3, + A.B5, /* S5 |3 14| S2 */ A.B2, + A.B0, /* S0 |4 7497 13| MR */ A.CLR, + A.ZQ, /* ZQ |5 12| EY */ A.UNITYQ, + A.Y, /* Y |6 11| CEQ */ A.ENQ, + A.ENOUTQ, /* TCQ |7 10| EZQ */ A.STRBQ, + A.GND, /* GND |8 9| CP */ A.CLK + /* +--------------+ */ ) NETLIST_END() -/* - * DM74107: DUAL J-K FLIP-FLOPS WITH CLEAR - * - * +--------------+ - * 1J |1 ++ 14| VCC - * 1QQ |2 13| 1CLRQ - * 1Q |3 12| 1CLK - * 1K |4 74107 11| 2K - * 2Q |5 10| 2CLRQ - * 2QQ |6 9| 2CLK - * GND |7 8| 2J - * +--------------+ - */ - +//- Identifier: SN54107, SN74107 +//- Title: Dual J-K Flip-Flops With Clear +//- Description: The '107 contains two independent J-K flip-flops with individual J-K, clock, and direct clear inputs. +//- The '107 is a positive pulse-triggered flip-flop. +//- The J-K input data is loaded into the master while the clock is high and transferred to teh slave and the outputs on the high-to-low clock transition. +//- For these devices the J and K inputs must be stable while the clock is high. +//- Pinalias: 1J,1QQ,1Q,1K,2Q,2QQ,GND,2J,2CLK,2CLRQ,2K,1CLK,1CLRQ,VCC +//- Package: DIP +//- NamingConvention: Naming conventions follow Texas Instruments datasheet +//- FunctionTable: +//- https://pdf1.alldatasheet.com/datasheet-pdf/view/840452/TI1/SN74107.html +//- +//- +------+-------+---+---++---+----+ +//- | CLRQ | CLK | J | K || Q | QQ | +//- +======+=======+===+===++===+====+ +//- | 0 | X | X | X || 0 | 1 | +//- | 1 | 0-1-0 | 0 | 0 || Q | QQ | +//- | 1 | 0-1-0 | 1 | 0 || 1 | 0 | +//- | 1 | 0-1-0 | 0 | 1 || 0 | 1 | +//- | 1 | 0-1-0 | 1 | 1 || TOGGLE | +//- +------+-------+---+---++---+----+ +//- static NETLIST_START(TTL_74107_DIP) #if (NL_USE_TRUTHTABLE_74107) TTL_74107_TT(A) @@ -1123,7 +1505,7 @@ static NETLIST_START(TTL_74107_DIP) A.J, /* 1J |1 ++ 14| VCC */ A.VCC, A.QQ, /* 1QQ |2 13| 1CLRQ */ A.CLRQ, A.Q, /* 1Q |3 12| 1CLK */ A.CLK, - A.K, /* 1K |4 74107 11| 2K */ B.K, + A.K, /* 1K |4 74107 11| 2K */ B.K, B.Q, /* 2Q |5 10| 2CLRQ */ B.CLRQ, B.QQ, /* 2QQ |6 9| 2CLK */ B.CLK, B.GND, /* GND |7 8| 2J */ B.J @@ -1131,6 +1513,30 @@ static NETLIST_START(TTL_74107_DIP) ) NETLIST_END() +//- Identifier: DM54LS107A/DM74LS107A +//- Title: Dual Negative-Edge-Triggered Master-Slave J-K Flip-Flops withClear and Complementary Outputs +//- Description: This device contains two independent negative-edge-triggered J-K flip-flops with complementary outputs. +//- The J and K data is processed by the flip-flops on the falling edge of the clock pulse. +//- The clock triggering occurs at a voltage level and is not directly related to the transition time of the negative going edge of the clock pulse. +//- The data on the J and K inputs may change while the clock is high or low without affecting the outputs as long as setup and hold times are not violated. +//- A low logic level on the clear input will reset the outputs regardless of the logic levels of the other inputs. +//- Pinalias: J1,QQ1,Q1,K1,Q2,QQ2,GND,J2,CLK2,CLRQ2,K2,CLK1,CLRQ1,VCC +//- Package: DIP +//- NamingConvention: Naming conventions follow National Semiconductor datasheet +//- FunctionTable: +//- pdf.datasheetcatalog.com/datasheet/nationalsemiconductor/DS006367.PDF +//- +//- +------+-----+---+---++---+----+ +//- | CLRQ | CLK | J | K || Q | QQ | +//- +======+=====+===+===++===+====+ +//- | 0 | X | X | X || 0 | 1 | +//- | 1 | 1-0 | 0 | 0 || Q | QQ | +//- | 1 | 1-0 | 1 | 0 || 1 | 0 | +//- | 1 | 1-0 | 0 | 1 || 0 | 1 | +//- | 1 | 1-0 | 1 | 1 || TOGGLE | +//- | 1 | 1 | X | X || Q | QQ | +//- +------+-----+---+---++---+----+ +//- static NETLIST_START(TTL_74107A_DIP) TTL_74107A(A) TTL_74107A(B) @@ -1139,34 +1545,41 @@ static NETLIST_START(TTL_74107A_DIP) NET_C(A.GND, B.GND) DIPPINS( /* +--------------+ */ - A.J, /* 1J |1 ++ 14| VCC */ A.VCC, - A.QQ, /* 1QQ |2 13| 1CLRQ */ A.CLRQ, - A.Q, /* 1Q |3 12| 1CLK */ A.CLK, - A.K, /* 1K |4 74107 11| 2K */ B.K, - B.Q, /* 2Q |5 10| 2CLRQ */ B.CLRQ, - B.QQ, /* 2QQ |6 9| 2CLK */ B.CLK, - B.GND, /* GND |7 8| 2J */ B.J + A.J, /* J1 |1 ++ 14| VCC */ A.VCC, + A.QQ, /* QQ1 |2 13| CLRQ1 */ A.CLRQ, + A.Q, /* Q1 |3 12| CLK1 */ A.CLK, + A.K, /* K1 |4 74107A 11| K2 */ B.K, + B.Q, /* Q2 |5 10| CLRQ2 */ B.CLRQ, + B.QQ, /* QQ2 |6 9| CLK2 */ B.CLK, + B.GND, /* GND |7 8| J2 */ B.J /* +--------------+ */ ) NETLIST_END() -/* - * nld_74113.h - * - * 74113: Dual Master-Slave J-K Flip-Flops with Set and Complementary Outputs - * 74113A: Dual Negative-Edge-Triggered Master-Slave J-K Flip-Flops with Set and Complementary Outputs - * - * +----------+ - * 1CLK |1 ++ 14| VCC - * 1K |2 13| 2CLK - * 1J |3 12| 2K - * 1SETQ |4 74113 11| 2J - * 1Q |5 10| 2SETQ - * 1QQ |6 9| 2Q - * GND |7 8| 2QQ - * +----------+ - */ - +//- Identifier: DM54S113/DM74S113 +//- Title: Dual Negative-Edge-Triggered Master-Slave J-K Flip-Flops with Preset and Complementary Outputs +//- Description: This device contains two independent negative-edge-triggered J-K flip-flops with complementary outputs. +//- The J and K data is processed by the flip-flops on the falling edge of the clock pulse. +//- The clock triggering occurs at a voltage level and is not directly related to the transition time of the negative going edge of the clock pulse. +//- Data on the J and K inputs may be changed while the clock is high or low without affecting the outputs as long as setup and hold times are not violated. +//- A low logic level on the preset input will set the outputs regardless of the logic levels of the other inputs. +//- Pinalias: CLK1,K1,J1,PRQ1,Q1,QQ1,GND,QQ2,Q2,PRQ2,J2,K2,CLK2,VCC +//- Package: DIP +//- NamingConvention: Naming conventions follow Texas Instruments datasheet +//- FunctionTable: +//- http://pdf.datasheetcatalog.com/datasheet/nationalsemiconductor/DS006460.PDF +//- +//- +-----+-----+---+---++---+----+ +//- | PRQ | CLK | J | K || Q | QQ | +//- +=====+=====+===+===++===+====+ +//- | 0 | X | X | X || 1 | 0 | +//- | 1 | 1-0 | 0 | 0 || Q | QQ | +//- | 1 | 1-0 | 1 | 0 || 1 | 0 | +//- | 1 | 1-0 | 0 | 1 || 0 | 1 | +//- | 1 | 1-0 | 1 | 1 || TOGGLE | +//- | 1 | 1 | X | X || Q | QQ | +//- +-----+-----+---+---++---+----+ +//- static NETLIST_START(TTL_74113_DIP) TTL_74113(A) TTL_74113(B) @@ -1174,18 +1587,42 @@ static NETLIST_START(TTL_74113_DIP) NET_C(A.VCC, B.VCC) NET_C(A.GND, B.GND) - DIPPINS( /* +----------+ */ - A.CLK, /* 1CLK |1 ++ 14| VCC */ A.VCC, - A.K, /* 1K |2 13| 2CLK */ B.CLK, - A.J, /* 1J |3 12| 2K */ B.K, - A.SETQ, /* 1SETQ |4 74113 11| 2J */ B.J, - A.Q, /* 1Q |5 10| 2SETQ */ B.SETQ, - A.QQ, /* 1QQ |6 9| 2Q */ B.Q, - A.GND, /* GND |7 8| 2QQ */ B.QQ - /* +----------+ */ + DIPPINS( /* +--------------+ */ + A.CLK, /* CLK1 |1 ++ 14| VCC */ A.VCC, + A.K, /* K1 |2 13| CLK2 */ B.CLK, + A.J, /* J1 |3 12| K2 */ B.K, + A.SETQ, /* PRQ1 |4 74113 11| J2 */ B.J, + A.Q, /* Q1 |5 10| PRQ2 */ B.SETQ, + A.QQ, /* QQ1 |6 9| Q2 */ B.Q, + A.GND, /* GND |7 8| QQ2 */ B.QQ + /* +--------------+ */ ) NETLIST_END() +//- Identifier: DM54S113/DM74S113 +//- Title: Dual Negative-Edge-Triggered Master-Slave J-K Flip-Flops with Preset and Complementary Outputs +//- Description: This device contains two independent negative-edge-triggered J-K flip-flops with complementary outputs. +//- The J and K data is processed by the flip-flops on the falling edge of the clock pulse. +//- The clock triggering occurs at a voltage level and is not directly related to the transition time of the negative going edge of the clock pulse. +//- Data on the J and K inputs may be changed while the clock is high or low without affecting the outputs as long as setup and hold times are not violated. +//- A low logic level on the preset input will set the outputs regardless of the logic levels of the other inputs. +//- Pinalias: CLK1,K1,J1,PRQ1,Q1,QQ1,GND,QQ2,Q2,PRQ2,J2,K2,CLK2,VCC +//- Package: DIP +//- NamingConvention: Naming conventions follow Texas Instruments datasheet +//- FunctionTable: +//- https://pdf1.alldatasheet.com/datasheet-pdf/view/131122/TI/SN74LS113A.html +//- +//- +------+-----+---+---++---+----+ +//- | PREQ | CLK | J | K || Q | QQ | +//- +======+=====+===+===++===+====+ +//- | 0 | X | X | X || 1 | 0 | +//- | 1 | 1-0 | 0 | 0 || Q | QQ | +//- | 1 | 1-0 | 1 | 0 || 1 | 0 | +//- | 1 | 1-0 | 0 | 1 || 0 | 1 | +//- | 1 | 1-0 | 1 | 1 || TOGGLE | +//- | 1 | 1 | X | X || Q | QQ | +//- +------+-----+---+---++---+----+ +//- static NETLIST_START(TTL_74113A_DIP) TTL_74113A(A) TTL_74113A(B) @@ -1193,15 +1630,15 @@ static NETLIST_START(TTL_74113A_DIP) NET_C(A.VCC, B.VCC) NET_C(A.GND, B.GND) - DIPPINS( /* +----------+ */ - A.CLK, /* 1CLK |1 ++ 14| VCC */ A.VCC, - A.K, /* 1K |2 13| 2CLK */ B.CLK, - A.J, /* 1J |3 12| 2K */ B.K, - A.SETQ, /* 1SETQ |4 74113 11| 2J */ B.J, - A.Q, /* 1Q |5 10| 2SETQ */ B.SETQ, - A.QQ, /* 1QQ |6 9| 2Q */ B.Q, - A.GND, /* GND |7 8| 2QQ */ B.QQ - /* +----------+ */ + DIPPINS( /* +--------------+ */ + A.CLK, /* CLK1 |1 ++ 14| VCC */ A.VCC, + A.K, /* K1 |2 13| CLK2 */ B.CLK, + A.J, /* J1 |3 12| K2 */ B.K, + A.SETQ, /* PRQ1 |4 74113A 11| J2 */ B.J, + A.Q, /* Q1 |5 10| PRQ2 */ B.SETQ, + A.QQ, /* QQ1 |6 9| Q2 */ B.Q, + A.GND, /* GND |7 8| QQ2 */ B.QQ + /* +--------------+ */ ) NETLIST_END() @@ -1231,33 +1668,26 @@ NETLIST_END() //- https://pdf1.alldatasheet.com/datasheet-pdf/view/50894/FAIRCHILD/74121.html //- static NETLIST_START(TTL_74121_DIP) - TTL_74121(A) + NC_PIN(NC) RES(RINT, RES_K(2)) - RES(RD, RES_M(1000)) - - ALIAS(1, A.QQ) - //ALIAS(2", ); NC - ALIAS(3, A.A1) - ALIAS(4, A.A2) - ALIAS(5, A.B) - ALIAS(6, A.Q) - ALIAS(7, A.GND) - - //ALIAS(8", ); NC - ALIAS(9, RINT.1) // RINT - ALIAS(10, A.C) // CEXT - ALIAS(11, A.RC) // REXT - //ALIAS(12", ); NC - //ALIAS(13", ); NC - ALIAS(14, A.VCC) + RES(RD, RES_M(1000)) NET_C(RINT.2, A.RC) - // Avoid error messages if RINT is not used. NET_C(RINT.1, RD.2) NET_C(RD.1, A.GND) + DIPPINS( /* +--------------+ */ + A.QQ, /* QQ |1 ++ 14| VCC */ A.VCC, + NC.I, /* NC |2 13| NC */ NC.I, + A.A1, /* A1 |3 12| NC */ NC.I, + A.A2, /* A2 |4 74121 11| REXT/CEXT */ A.RC, + A.B, /* B |5 10| CEXT */ A.C, + A.Q, /* Q |6 9| RINT */ RINT.1, + A.GND, /* GND |7 8| NC */ NC.I + /* +--------------+ */ + ) NETLIST_END() //- Identifier: TTL_74123_DIP @@ -1288,85 +1718,23 @@ NETLIST_END() //- https://pdf1.alldatasheet.com/datasheet-pdf/view/50893/FAIRCHILD/DM74123.html //- static NETLIST_START(TTL_74123_DIP) - TTL_74123(A) TTL_74123(B) - ALIAS(1, A.A) - ALIAS(2, A.B) - ALIAS(3, A.CLRQ) - ALIAS(4, A.QQ) - ALIAS(5, B.Q) - ALIAS(6, B.C) // CEXT - ALIAS(7, B.RC) // REXT - ALIAS(8, A.GND) - - ALIAS(9, B.A) - ALIAS(10, B.B) - ALIAS(11, B.CLRQ) - ALIAS(12, B.QQ) - ALIAS(13, A.Q) - ALIAS(14, A.C) // CEXT - ALIAS(15, A.RC) // REXT - ALIAS(16, A.VCC) - NET_C(A.VCC, B.VCC) NET_C(A.GND, B.GND) -NETLIST_END() -//- Identifier: TTL_9602_DIP -//- Title: DM9602 Dual Retriggerable, Resettable One Shots -//- Description: These dual resettable, retriggerable one shots have two -//- inputs per function; one which is active HIGH, and one -//- which is active LOW. This allows the designer to employ -//- either leading-edge or trailing-edge triggering, which is -//- independent of input transition times. When input conditions for triggering are met, a new cycle starts and the -//- external capacitor is allowed to rapidly discharge and then -//- charge again. The retriggerable feature permits output -//- pulse widths to be extended. In fact a continuous true output can be maintained by having an input cycle time whih -//- is shorter than the output cycle time. The output pulse may -//- then be terminated at any time by applying a LOW logic -//- level to the RESET pin. Retriggering may be inhibited by -//- either connecting the Q output to an active HIGH input, or -//- the Q output to an active LOW input. -//- The DM74123 is a dual retriggerable monostable multivibrator -//- -//- Pinalias: C1,RC1,CLRQ1,B1,A1,Q1,QQ1,GND,QQ2,Q2,A2,B2,CLRQ2,RC2,C2,VCC -//- Package: DIP -//- NamingConvention: Naming conventions follow Fairchild Semiconductor datasheet -//- Limitations: -//- Timing inaccuracies may occur for capacitances < 1nF. Please consult datasheet -//- -//- Example: 74123.cpp,74123_example -//- -//- FunctionTable: -//- https://pdf1.alldatasheet.com/datasheet-pdf/view/51137/FAIRCHILD/DM9602.html -//- -static NETLIST_START(TTL_9602_DIP) - - TTL_9602(A) - TTL_9602(B) - - ALIAS(1, A.C) // C1 - ALIAS(2, A.RC) // RC1 - ALIAS(3, A.CLRQ) - ALIAS(4, A.B) - ALIAS(5, A.A) - ALIAS(6, A.Q) - ALIAS(7, A.QQ) - ALIAS(8, A.GND) - - ALIAS(9, B.QQ) - ALIAS(10, B.Q) - ALIAS(11, B.A) - ALIAS(12, B.B) - ALIAS(13, B.CLRQ) - ALIAS(14, B.RC) // RC2 - ALIAS(15, B.C) // C2 - ALIAS(16, A.VCC) - - NET_C(A.VCC, B.VCC) - NET_C(A.GND, B.GND) + DIPPINS( /* +--------------+ */ + A.A, /* A1 |1 ++ 16| VCC */ A.VCC, + A.B, /* B1 |2 15| RC1 */ A.RC, + A.CLRQ, /* CLRQ1 |3 14| C1 */ A.C, + A.QQ, /* QQ1 |4 74123 13| Q1 */ A.Q, + B.Q, /* Q2 |5 12| QQ2 */ B.QQ, + B.C, /* C2 |6 11| CLRQ */ B.CLRQ, + B.RC, /* RC2 |7 10| B2 */ B.B, + A.GND, /* GND |8 9| A2 */ B.A + /* +--------------+ */ + ) NETLIST_END() //- Identifier: TTL_74125_DIP @@ -1401,90 +1769,106 @@ NETLIST_END() //- | L | H | H | //- | H | X | Z | //- - static NETLIST_START(TTL_74125_DIP) + TTL_74125_GATE(A) + TTL_74125_GATE(B) + TTL_74125_GATE(C) + TTL_74125_GATE(D) - TTL_74125_GATE(A1) - TTL_74125_GATE(A2) - TTL_74125_GATE(A3) - TTL_74125_GATE(A4) + NET_C(A.VCC, B.VCC, C.VCC, D.VCC) + NET_C(A.GND, B.GND, C.GND, D.GND) - DEFPARAM(FORCE_TRISTATE_LOGIC, "$(@.A1.FORCE_TRISTATE_LOGIC") + DEFPARAM(FORCE_TRISTATE_LOGIC, "$(@.A.FORCE_TRISTATE_LOGIC") + PARAM(A.FORCE_TRISTATE_LOGIC, "$(@.FORCE_TRISTATE_LOGIC)") + PARAM(B.FORCE_TRISTATE_LOGIC, "$(@.FORCE_TRISTATE_LOGIC)") + PARAM(C.FORCE_TRISTATE_LOGIC, "$(@.FORCE_TRISTATE_LOGIC)") + PARAM(D.FORCE_TRISTATE_LOGIC, "$(@.FORCE_TRISTATE_LOGIC)") - PARAM(A1.FORCE_TRISTATE_LOGIC, "$(@.FORCE_TRISTATE_LOGIC)") - PARAM(A2.FORCE_TRISTATE_LOGIC, "$(@.FORCE_TRISTATE_LOGIC)") - PARAM(A3.FORCE_TRISTATE_LOGIC, "$(@.FORCE_TRISTATE_LOGIC)") - PARAM(A4.FORCE_TRISTATE_LOGIC, "$(@.FORCE_TRISTATE_LOGIC)") - - ALIAS(1, A1.GQ) - ALIAS(2, A1.A) - ALIAS(3, A1.Y) - ALIAS(4, A2.GQ) - ALIAS(5, A2.A) - ALIAS(6, A2.Y) - ALIAS(7, A1.GND) - - ALIAS(8, A3.Y) - ALIAS(9, A3.A) - ALIAS(10, A3.GQ) - ALIAS(11, A4.Y) - ALIAS(12, A4.A) - ALIAS(13, A4.GQ) - ALIAS(14, A1.VCC) - - NET_C(A1.VCC, A2.VCC, A3.VCC, A4.VCC) - NET_C(A1.GND, A2.GND, A3.GND, A4.GND) + DIPPINS( /* +--------------+ */ + A.GQ, /* 1GQ |1 ++ 14| VCC */ A.VCC, + A.A, /* 1A |2 13| 4GQ */ D.GQ, + A.Y, /* 1Y |3 12| 4A */ D.A, + B.GQ, /* 2GQ |4 74125 11| 4Y */ D.Y, + B.A, /* 2A |5 10| 3GQ */ C.GQ, + B.Y, /* 2Y |6 9| 3A */ C.A, + A.GND, /* GND |7 8| 3Y */ C.Y + /* +--------------+ */ + ) NETLIST_END() +//- Identifier: DM74LS126A +//- Title: Quad 3-STATE Buffer +//- Description: This device contains four independent gates each of which performs a non-inverting buffer function. +//- The outputs have the 3-STATE feature. +//- When enabled, the outputs exhibit the low impedance characteristics of a standard LS output with additional drive capability to permit the driving of buslines without external resistors. +//- When disabled, both the output transistors are turned OFF presenting a high-impedance state to the bus line. +//- Thus the output will act neither as a significant load nor as a driver. +//- To minimize the possibility that two outputs will attempt to take a common bus to opposite logic levels, the disable time is shorter than the enable time of the outputs. +//- Pinalias: C1,A1,Y1,C2,A2,Y2,GND,Y3,A3,C3,Y4,A4,C4,VCC +//- Package: DIP +//- NamingConvention: Naming conventions follow National Semiconductor datasheet +//- FunctionTable: +//- http://pdf.datasheetcatalog.com/datasheets/50/232293_DS.pdf +//- +//- +---+---++------+ +//- | A | C || Y | +//- +===+===++======+ +//- | 0 | 1 || 0 | +//- | 1 | 1 || 1 | +//- | X | 0 || Hi-Z | +//- +---+---++------+ +//- static NETLIST_START(TTL_74126_DIP) + TTL_74126_GATE(A) + TTL_74126_GATE(B) + TTL_74126_GATE(C) + TTL_74126_GATE(D) - TTL_74126_GATE(A1) - TTL_74126_GATE(A2) - TTL_74126_GATE(A3) - TTL_74126_GATE(A4) + NET_C(A.VCC, B.VCC, C.VCC, D.VCC) + NET_C(A.GND, B.GND, C.GND, D.GND) DEFPARAM(FORCE_TRISTATE_LOGIC, 0) - PARAM(A1.FORCE_TRISTATE_LOGIC, "$(@.FORCE_TRISTATE_LOGIC)") - PARAM(A2.FORCE_TRISTATE_LOGIC, "$(@.FORCE_TRISTATE_LOGIC)") - PARAM(A3.FORCE_TRISTATE_LOGIC, "$(@.FORCE_TRISTATE_LOGIC)") - PARAM(A4.FORCE_TRISTATE_LOGIC, "$(@.FORCE_TRISTATE_LOGIC)") + PARAM(A.FORCE_TRISTATE_LOGIC, "$(@.FORCE_TRISTATE_LOGIC)") + PARAM(B.FORCE_TRISTATE_LOGIC, "$(@.FORCE_TRISTATE_LOGIC)") + PARAM(C.FORCE_TRISTATE_LOGIC, "$(@.FORCE_TRISTATE_LOGIC)") + PARAM(D.FORCE_TRISTATE_LOGIC, "$(@.FORCE_TRISTATE_LOGIC)") - ALIAS(1, A1.G) - ALIAS(2, A1.A) - ALIAS(3, A1.Y) - ALIAS(4, A2.G) - ALIAS(5, A2.A) - ALIAS(6, A2.Y) - ALIAS(7, A1.GND) - - ALIAS(8, A3.Y) - ALIAS(9, A3.A) - ALIAS(10, A3.G) - ALIAS(11, A4.Y) - ALIAS(12, A4.A) - ALIAS(13, A4.G) - ALIAS(14, A1.VCC) - - NET_C(A1.VCC, A2.VCC, A3.VCC, A4.VCC) - NET_C(A1.GND, A2.GND, A3.GND, A4.GND) + DIPPINS( /* +--------------+ */ + A.G, /* C1 |1 ++ 14| VCC */ A.VCC, + A.A, /* A1 |2 13| C4 */ D.G, + A.Y, /* Y1 |3 12| A4 */ D.A, + B.G, /* C2 |4 74126 11| Y4 */ D.Y, + B.A, /* A2 |5 10| C3 */ C.G, + B.Y, /* Y2 |6 9| A3 */ C.A, + A.GND, /* GND |7 8| Y3 */ C.Y + /* +--------------+ */ + ) NETLIST_END() -/* - * DM74153: Dual 4-Line to 1-Line Data Selectors Multiplexers - * - * +--------------+ - * G1 |1 ++ 16| VCC - * B |2 15| G2 - * 1C3 |3 14| A - * 1C2 |4 74153 13| 2C3 - * 1C1 |5 12| 2C2 - * 1C0 |6 11| 2C1 - * Y1 |7 10| 2C0 - * GND |8 9| Y2 - * +--------------+ - * - */ - +//- Identifier: 54153/DM54153/DM74153 +//- Title: Dual 4-Line to 1-LineData Selectors/Multiplexers +//- Description: Each of these data selectors/multiplexers contains inverters and drivers to supply fully complementary, on-chip, binary decoding data selection to the AND-OR-invert gates. +//- Separate strobe inputs are provided for each of the two four-line sections. +//- Pinalias: G1,B,1C3,1C2,1C1,1C0,Y1,GND,Y2,2C0,2C1,2C2,2C3,A,G2,VCC +//- Package: DIP +//- NamingConvention: Naming conventions follow National Semiconductor datasheet +//- FunctionTable: +//- http://pdf.datasheetcatalog.com/datasheet/nationalsemiconductor/DS006547.PDF +//- +//- +---+---+----+----+----+----+---++---+ +//- | B | A | C0 | C1 | C2 | C3 | G || Y | +//- +===+===+====+====+====+====+===++===+ +//- | X | X | X | X | X | X | 1 || 0 | +//- | 0 | 0 | 0 | X | X | X | 0 || 0 | +//- | 0 | 0 | 1 | X | X | X | 0 || 1 | +//- | 0 | 1 | X | 0 | X | X | 0 || 0 | +//- | 0 | 1 | X | 1 | X | X | 0 || 1 | +//- | 1 | 0 | X | X | 0 | X | 0 || 0 | +//- | 1 | 0 | X | X | 1 | X | 0 || 1 | +//- | 1 | 1 | X | X | X | 0 | 0 || 0 | +//- | 1 | 1 | X | X | X | 1 | 0 || 1 | +//- +---+---+----+----+----+----+---++---+ +//- static NETLIST_START(TTL_74153_DIP) NET_REGISTER_DEV(TTL_74153, A) NET_REGISTER_DEV(TTL_74153, B) @@ -1508,35 +1892,47 @@ static NETLIST_START(TTL_74153_DIP) ) NETLIST_END() -/* - * DM74155/DM74156: Dual 2-Line to 4-Line Decoders/Demultiplexers - * - * +-----+-------++-----------------+ - * | B A | G1 C1 || 1Y0 1Y1 1Y2 1Y3 | - * +=====+=======++=================+ - * | X X | 1 X || 1 1 1 1 | - * | 0 0 | 0 1 || 0 1 1 1 | - * | 0 1 | 0 1 || 1 0 1 1 | - * | 1 0 | 0 1 || 1 1 0 1 | - * | 1 1 | 0 1 || 1 1 1 0 | - * | X X | X 0 || 1 1 1 1 | - * +-----+-------++-----------------+ - * - * +-----+-------++-----------------+ - * | B A | G2 C2 || 2Y0 2Y1 2Y2 2Y3 | - * +=====+=======++=================+ - * | X X | 1 X || 1 1 1 1 | - * | 0 0 | 0 0 || 0 1 1 1 | - * | 0 1 | 0 0 || 1 0 1 1 | - * | 1 0 | 0 0 || 1 1 0 1 | - * | 1 1 | 0 0 || 1 1 1 0 | - * | X X | X 1 || 1 1 1 1 | - * +-----+-------++-----------------+ - * - * Naming conventions follow National Semiconductor datasheet - * - */ - +//- Identifier: 54LS155/DM54LS155/DM74LS155 +//- Title: Dual 2-Line to 4-Line Decoders/Demultiplexers +//- Description: These TTL circuits feature dual 1-line-to-4-line demultiplexers with individual strobes and common binary-address inputs in a single 16-pin package. +//- When both sections are enabled by the strobes, the common address inputs sequentially select and route associated input data to the appropriate output of each section. +//- The individual strobes permit activating or inhibiting each of the 4-bit sections as desired. +//- Data applied to input C1 is inverted at its outputs anddata applied at C2 is true through its outputs. +//- The inverter following the C1 data input permits use as a 3-to-8-line decoder, or 1-to-8-line demultiplexer, without external gating. +//- Input clamping diodes are provided on these circuits to minimize transmission-line effects and simplify system design. +//- Pinalias: C1,G1,B,1Y3,1Y2,1Y1,1Y0,GND,2Y0,2Y1,2Y2,2Y3,A,G2,C2,VCC +//- Package: DIP +//- NamingConvention: Naming conventions follow National Semiconductor datasheet +//- FunctionTable: +//- http://pdf.datasheetcatalog.com/datasheet/nationalsemiconductor/DS006395.PDF +//- +//- 2-line-to-4-line decoder 2-line-to-4-line decoder +//- +---+---+----+----++-----+-----+-----+-----+ +---+---+----+----++-----+-----+-----+-----+ +//- | B | A | G1 | C1 || 1Y0 | 1Y1 | 1Y2 | 1Y3 | | B | A | G2 | C2 || 2Y0 | 2Y1 | 2Y2 | 2Y3 | +//- +===+===+====+====++=====+=====+=====+=====+ +===+===+====+====++=====+=====+=====+=====+ +//- | X | X | 1 | X || 1 | 1 | 1 | 1 | | X | X | 1 | X || 1 | 1 | 1 | 1 | +//- | 0 | 0 | 0 | 1 || 0 | 1 | 1 | 1 | | 0 | 0 | 0 | 0 || 0 | 1 | 1 | 1 | +//- | 0 | 1 | 0 | 1 || 1 | 0 | 1 | 1 | | 0 | 1 | 0 | 0 || 1 | 0 | 1 | 1 | +//- | 1 | 0 | 0 | 1 || 1 | 1 | 0 | 1 | | 1 | 0 | 0 | 0 || 1 | 1 | 0 | 1 | +//- | 1 | 1 | 0 | 1 || 1 | 1 | 1 | 0 | | 1 | 1 | 0 | 0 || 1 | 1 | 1 | 0 | +//- | X | X | X | 0 || 1 | 1 | 1 | 1 | | X | X | X | 1 || 1 | 1 | 1 | 1 | +//- +---+---+----+----++-----+-----+-----+-----+ +---+---+----+----++-----+-----+-----+-----+ +//- +//- 3-line-to-8-line decoder +//- +---+---+---+---++-----+-----+-----+-----+-----+-----+-----+-----+ +//- | C | B | A | G || 2Y0 | 2Y1 | 2Y2 | 2Y3 | 1Y0 | 1Y1 | 1Y2 | 1Y3 | +//- +===+===+===+===++=====+=====+=====+=====+=====+=====+=====+=====+ +//- | X | X | X | 1 || 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | +//- | 0 | 0 | 0 | 0 || 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | +//- | 0 | 0 | 1 | 0 || 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | +//- | 0 | 1 | 0 | 0 || 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | +//- | 0 | 1 | 1 | 0 || 1 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | +//- | 1 | 0 | 0 | 0 || 1 | 1 | 1 | 1 | 0 | 1 | 1 | 1 | +//- | 1 | 0 | 1 | 0 || 1 | 1 | 1 | 1 | 1 | 0 | 1 | 1 | +//- | 1 | 1 | 0 | 0 || 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | +//- | 1 | 1 | 1 | 0 || 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | +//- +---+---+---+---++-----+-----+-----+-----+-----+-----+-----+-----+ +//- static NETLIST_START(TTL_74155_DIP) NET_REGISTER_DEV(TTL_74155A_GATE, A) NET_REGISTER_DEV(TTL_74155B_GATE, B) @@ -1547,19 +1943,60 @@ static NETLIST_START(TTL_74155_DIP) NET_C(A.VCC, B.VCC) NET_C(A.GND, B.GND) - DIPPINS( /* +--------------+ */ - A.C, /* C1 |1 ++ 16| VCC */ A.VCC, - A.G, /* G1 |2 15| B4 */ B.C, - A.B, /* B |3 14| B4 */ B.G, - A.3, /* 1Y3 |4 74155 13| A4 */ B.A, - B.2, /* 1Y2 |5 12| Y4 */ B.3, - B.1, /* 1Y1 |6 11| B3 */ B.2, - B.0, /* 1Y0 |7 10| A3 */ B.1, - A.GND,/* GND |8 9| Y3 */ B.0 - /* +--------------+ */ + DIPPINS( /* +--------------+ */ + A.C, /* C1 |1 ++ 16| VCC */ A.VCC, + A.G, /* G1 |2 15| B4 */ B.C, + A.B, /* B |3 14| B4 */ B.G, + A.3, /* 1Y3 |4 74155 13| A4 */ B.A, + B.2, /* 1Y2 |5 12| Y4 */ B.3, + B.1, /* 1Y1 |6 11| B3 */ B.2, + B.0, /* 1Y0 |7 10| A3 */ B.1, + A.GND, /* GND |8 9| Y3 */ B.0 + /* +--------------+ */ ) NETLIST_END() +//- Identifier: 54LS156/DM54LS156/DM74LS156 +//- Title: Dual 2-Line to 4-Line Decoders/Demultiplexers with Open-Collector Outputs +//- Description: These TTL circuits feature dual 1-line-to-4-line demultiplexers with individual strobes and common binary-address inputs in a single 16-pin package. +//- When both sections are enabled by the strobes, the common address inputs sequentially select and route associated input data to the appropriate output of each section. +//- The individual strobes permit activating or inhibiting each of the 4-bit sections as desired. +//- Data applied to input C1 is inverted at its outputs anddata applied at C2 is true through its outputs. +//- The inverter following the C1 data input permits use as a 3-to-8-line decoder, or 1-to-8-line demultiplexer, without external gating. +//- Input clamping diodes are provided on these circuits to minimize transmission-line effects and simplify system design. +//- Pinalias: C1,G1,B,1Y3,1Y2,1Y1,1Y0,GND,2Y0,2Y1,2Y2,2Y3,A,G2,C2,VCC +//- Package: DIP +//- NamingConvention: Naming conventions follow National Semiconductor datasheet +//- FunctionTable: +//- http://pdf.datasheetcatalog.com/datasheet/nationalsemiconductor/DS006395.PDF +//- +//- 2-line-to-4-line decoder 2-line-to-4-line decoder +//- +---+---+----+----++-----+-----+-----+-----+ +---+---+----+----++-----+-----+-----+-----+ +//- | B | A | G1 | C1 || 1Y0 | 1Y1 | 1Y2 | 1Y3 | | B | A | G2 | C2 || 2Y0 | 2Y1 | 2Y2 | 2Y3 | +//- +===+===+====+====++=====+=====+=====+=====+ +===+===+====+====++=====+=====+=====+=====+ +//- | X | X | 1 | X || 1 | 1 | 1 | 1 | | X | X | 1 | X || 1 | 1 | 1 | 1 | +//- | 0 | 0 | 0 | 1 || 0 | 1 | 1 | 1 | | 0 | 0 | 0 | 0 || 0 | 1 | 1 | 1 | +//- | 0 | 1 | 0 | 1 || 1 | 0 | 1 | 1 | | 0 | 1 | 0 | 0 || 1 | 0 | 1 | 1 | +//- | 1 | 0 | 0 | 1 || 1 | 1 | 0 | 1 | | 1 | 0 | 0 | 0 || 1 | 1 | 0 | 1 | +//- | 1 | 1 | 0 | 1 || 1 | 1 | 1 | 0 | | 1 | 1 | 0 | 0 || 1 | 1 | 1 | 0 | +//- | X | X | X | 0 || 1 | 1 | 1 | 1 | | X | X | X | 1 || 1 | 1 | 1 | 1 | +//- +---+---+----+----++-----+-----+-----+-----+ +---+---+----+----++-----+-----+-----+-----+ +//- +//- 3-line-to-8-line decoder +//- +---+---+---+---++-----+-----+-----+-----+-----+-----+-----+-----+ +//- | C | B | A | G || 2Y0 | 2Y1 | 2Y2 | 2Y3 | 1Y0 | 1Y1 | 1Y2 | 1Y3 | +//- +===+===+===+===++=====+=====+=====+=====+=====+=====+=====+=====+ +//- | X | X | X | 1 || 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | +//- | 0 | 0 | 0 | 0 || 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | +//- | 0 | 0 | 1 | 0 || 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | +//- | 0 | 1 | 0 | 0 || 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | +//- | 0 | 1 | 1 | 0 || 1 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | +//- | 1 | 0 | 0 | 0 || 1 | 1 | 1 | 1 | 0 | 1 | 1 | 1 | +//- | 1 | 0 | 1 | 0 || 1 | 1 | 1 | 1 | 1 | 0 | 1 | 1 | +//- | 1 | 1 | 0 | 0 || 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | +//- | 1 | 1 | 1 | 0 || 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | +//- +---+---+---+---++-----+-----+-----+-----+-----+-----+-----+-----+ +//- static NETLIST_START(TTL_74156_DIP) NET_REGISTER_DEV(TTL_74156A_GATE, A) NET_REGISTER_DEV(TTL_74156B_GATE, B) @@ -1570,36 +2007,40 @@ static NETLIST_START(TTL_74156_DIP) NET_C(A.VCC, B.VCC) NET_C(A.GND, B.GND) - DIPPINS( /* +--------------+ */ - A.C, /* C1 |1 ++ 16| VCC */ A.VCC, - A.G, /* G1 |2 15| B4 */ B.C, - A.B, /* B |3 14| B4 */ B.G, - A.3, /* 1Y3 |4 74156 13| A4 */ B.A, - B.2, /* 1Y2 |5 12| Y4 */ B.3, - B.1, /* 1Y1 |6 11| B3 */ B.2, - B.0, /* 1Y0 |7 10| A3 */ B.1, - A.GND,/* GND |8 9| Y3 */ B.0 - /* +--------------+ */ + DIPPINS( /* +--------------+ */ + A.C, /* C1 |1 ++ 16| VCC */ A.VCC, + A.G, /* G1 |2 15| B4 */ B.C, + A.B, /* B |3 14| B4 */ B.G, + A.3, /* 1Y3 |4 74156 13| A4 */ B.A, + B.2, /* 1Y2 |5 12| Y4 */ B.3, + B.1, /* 1Y1 |6 11| B3 */ B.2, + B.0, /* 1Y0 |7 10| A3 */ B.1, + A.GND, /* GND |8 9| Y3 */ B.0 + /* +--------------+ */ ) NETLIST_END() -/* - * DM74157: Quad 2-Input Multiplexor - * - * +---+---+-------+---+ - * | E | S | I0 I1 | Z | - * +===+===+=======+===+ - * | 1 | X | X X | 0 | - * | 0 | 1 | X 0 | 0 | - * | 0 | 1 | X 1 | 1 | - * | 0 | 0 | 0 X | 0 | - * | 0 | 0 | 1 X | 1 | - * +---+---+-------+---+ - * - * Naming conventions follow TI datasheet - * - */ - +//- Identifier: 54157/DM54157/DM74157 +//- Title: Quad 2-Line to 1-Line Data Selectors/Multiplexers +//- Description: These data selectors/multiplexers contain inverters and drivers to supply full on-chip data selection to the four output gates. +//- A separate strobe input is provided. +//- A 4-bit word is selected from one of two sources and is routed to the four outputs. +//- Pinalias: S,A1,B1,Y1,A2,B2,Y2,GND,Y3,B3,A3,Y4,B4,A4,G,VCC +//- Package: DIP +//- NamingConvention: Naming conventions follow National Semiconductor datasheet +//- FunctionTable: +//- http://pdf.datasheetcatalog.com/datasheets/120/236599_DS.pdf +//- +//- +---+---+---+---++---+ +//- | G | S | A | B || Y | +//- +===+===+===+===++===+ +//- | 1 | X | X | X || 0 | +//- | 0 | 0 | 0 | X || 0 | +//- | 0 | 0 | 1 | X || 1 | +//- | 0 | 1 | X | 0 || 0 | +//- | 0 | 1 | X | 1 || 1 | +//- +---+---+---+---++---+ +//- static NETLIST_START(TTL_74157_DIP) NET_REGISTER_DEV(TTL_74157_GATE, A) NET_REGISTER_DEV(TTL_74157_GATE, B) @@ -1612,34 +2053,42 @@ static NETLIST_START(TTL_74157_DIP) NET_C(A.VCC, B.VCC, C.VCC, D.VCC) NET_C(A.GND, B.GND, C.GND, D.GND) - DIPPINS( /* +--------------+ */ - A.S, /* S |1 ++ 16| VCC */ A.VCC, - A.I, /* I0a |2 15| /E */ A.E, - A.J, /* I1a |3 14| I0c */ C.I, - A.O, /* Za |4 74157 13| I1c */ C.J, - B.I, /* I0b |5 12| Zc */ C.O, - B.J, /* I1b |6 11| I0d */ D.I, - B.O, /* Zb |7 10| I1d */ D.J, - A.GND,/* GND |8 9| Zd */ D.O - /* +--------------+ */ + DIPPINS( /* +--------------+ */ + A.S, /* S |1 ++ 16| VCC */ A.VCC, + A.I, /* A1 |2 15| G */ A.E, + A.J, /* B1 |3 14| A4 */ D.I, + A.O, /* Y1 |4 74157 13| B4 */ D.J, + B.I, /* A2 |5 12| Y4 */ D.O, + B.J, /* B2 |6 11| A3 */ C.I, + B.O, /* Y2 |7 10| B3 */ C.J, + A.GND, /* GND |8 9| Y3 */ C.O + /* +--------------+ */ ) NETLIST_END() -/* - * DM74161/74163: Synchronous 4-Bit Counters - * - * +--------------+ - * CLEAR |1 ++ 16| VCC - * CLOCK |2 15| RC (Ripple Carry) - * A |3 14| QA - * B |4 74161 13| QB - * C |5 74163 12| QC - * D |6 11| QD - * Enable P |7 10| Enable T - * GND |8 9| LOAD - * +--------------+ - */ - +//- Identifier: DM54161/DM74161 +//- Title: Synchronous 4-Bit Counter +//- Description: These synchronous, presettable counters feature an internal carry look-ahead for application in high-speed counting designs. +//- The 161 is a 4-bit binary counter. +//- The carry output is decoded by means of a NOR gate, thus preventing spikes during the normal counting mode of operation. +//- Synchronous operation is provided by having all flip-flops clocked simultaneously so that the outputs change co-incident with each other when so instructed by the count-enable inputs and internal gating. +//- This mode of operation eliminates the output counting spikes which are normally associated with asynchronous (ripple clock) counters. +//- A buffered clock input triggers the four flip-flops on the rising (positive-going) edge of the clock input waveform. +//- These counters are fully programmable; that is, the outputs may be preset to either level. +//- As presetting is synchronous, setting up a low level at the load input disables the counter and causes the outputs to agree with the setup data after the next clock pulse, regardless of the levels of the enable input. +//- The clear function for the 161 is asynchronous; and a low level at the clear input sets all four of the flip-flop outputs low, regardless of the levels of clock, load, or enable inputs. +//- The carry look-ahead circuitry provides for cascading counters for n-bit synchronous applications without additional gating. +//- Instrumental in accomplishing this function are two count-enable inputs and a ripple carry output. +//- Both count-enable inputs (P and T) must be high to count, and input T is fed forward to enable the ripple carry output. +//- The ripple carry output thus enabled will produce a high-level output pulse with a duration approximately equal to the high-level portion of the QA output. +//- This high-level overflow ripple carry pulse can be used to enable successive cascaded stages. +//- High-to-low-level transitions at the enable P or T inputs of the 161 may occur, regardless of the logic level on the clock. +//- Pinalias: CLRQ,CLK,A,B,C,D,ENP,GND,LOADQ,ENT,QD,QC,QB,QA,RC,VCC +//- Package: DIP +//- NamingConvention: Naming conventions follow National Semiconductor datasheet +//- FunctionTable: +//- http://pdf.datasheetcatalog.com/datasheet/nationalsemiconductor/DS006551.PDF +//- static NETLIST_START(TTL_74161_DIP) TTL_74161(A) @@ -1656,6 +2105,32 @@ static NETLIST_START(TTL_74161_DIP) ) NETLIST_END() +//- Identifier: DM74163 +//- Title: Synchronous 4-Bit Counter +//- Description: These synchronous, presettable counters feature an internal carry look-ahead for application in high-speed counting designs. +//- The 163 is a 4-bit binary counter. +//- The carry output is decoded by means of a NOR gate, thus preventing spikes during the normal counting mode of operation. +//- Synchronous operation is provided by having all flip-flops clocked simultaneously so that the outputs change co-incident with each other when so instructed by the count-enable inputs and internal gating. +//- This mode of operation eliminates the output counting spikes which are normally associated with asynchronous (ripple clock) counters. +//- A buffered clock input triggers the four flip-flops on the rising (positive-going) edge of the clock input waveform. +//- These counters are fully programmable; that is, the outputs may be preset to either level. +//- As presetting is synchronous, setting up a low level at the load input disables the counter and causes the outputs to agree with the setup data after the next clock pulse, regardless of the levels of the enable input. +//- The clear function for the 163 is synchronous; and a low level at the clear input sets all four of the flip-flop outputs low after the next clock pulse, regardless of the levels of the enable inputs. +//- This synchronous clear allows the count length to be modified easily, as decoding the maximum count desired can be accomplished with one external NAND gate. +//- The gate output is connected to the clear input to synchronously clear the counter to all low outputs. +//- Low-to-high transitions at the clear input of the 163 are also permissible, regardless of the logic levels on the clock,enable, or load inputs. +//- The carry look-ahead circuitry provides for cascading counters for n-bit synchronous applications without additional gating. +//- Instrumental in accomplishing this function are two count-enable inputs and a ripple carry output. +//- Both count-enable inputs (P and T) must be high to count, and input T is fed forward to enable the ripple carry output. +//- The ripple carry output thus enabled will produce a high-level output pulse with a duration approximately equal to the high-level portion of the QA output. +//- This high-level overflow ripple carry pulse can be used to enable successive cascaded stages. +//- High-to-low-level transitions at the enable P or T inputs of the 163 may occur, regardless of the logic level on the clock. +//- Pinalias: CLRQ,CLK,A,B,C,D,ENP,GND,LOADQ,ENT,QD,QC,QB,QA,RC,VCC +//- Package: DIP +//- NamingConvention: Naming conventions follow National Semiconductor datasheet +//- FunctionTable: +//- http://pdf.datasheetcatalog.com/datasheet/nationalsemiconductor/DS006551.PDF +//- static NETLIST_START(TTL_74163_DIP) TTL_74163(A) @@ -1672,81 +2147,113 @@ static NETLIST_START(TTL_74163_DIP) ) NETLIST_END() -/* - * DM74164: 8-bit parallel-out serial shift registers - * - * +------------+ - * A |1 ++ 14| VCC - * B |2 13| QH - * QA |3 12| QG - * QB |4 74164 11| QF - * QC |5 10| QE - * QD |6 9| CLRQ - * GND |7 8| CLK - * +------------+ - */ - +//- Identifier: DM74164 +//- Title: 8-Bit Serial In/Parallel Out Shift Registers +//- Description: These 8-bit shift registers feature gated serial inputs and an asynchronous clear. +//- A LOW logic level at either serial input inhibits entry of the new data, and resets the first flip-flop to the LOW level at the next clock pulse, thus providing complete control over incoming data. +//- A HIGH logic level on either input enables the other input, which will then determine the state of the first flip-flop. +//- Data at the serial inputs may be changed while the clock is HIGH or LOW, but only information meeting the setup and hold time requirements will be entered. +//- Clocking occurs on the LOW-to-HIGH level transition of the clock input. +//- All inputs are diode-clamped to minimize transmission-line effects +//- Pinalias: A,B,QA,QB,QC,QD,GND,CLOCK,CLEAR,QE,QF,QG,QH,VCC +//- Package: DIP +//- NamingConvention: Naming conventions follow Fairchild Semiconductor datasheet +//- FunctionTable: +//- http://pdf.datasheetcatalog.com/datasheet/fairchild/DM74164.pdf +//- +//- +-------+-------+---+---++----+----+-----+----+ +//- | CLEAR | CLOCK | A | B || QA | QB | ... | QH | +//- +=======+=======+===+===++====+====+=====+====+ +//- | 0 | X | X | X || 0 | 0 | ... | 0 | +//- | 1 | 0 | X | X || QA | QB | ... | QH | +//- | 1 | 0-1 | 1 | 1 || 1 | QA | ... | QG | +//- | 1 | 0-1 | 0 | X || 0 | QA | ... | QG | +//- | 1 | 0-1 | X | 0 || 0 | QA | ... | QG | +//- +-------+-------+---+---++----+----+-----+----+ +//- static NETLIST_START(TTL_74164_DIP) TTL_74164(A) - DIPPINS( /* +------------+ */ - A.A, /* A |1 ++ 14| VCC */ A.VCC, - A.B, /* B |2 13| QH */ A.QH, - A.QA, /* QA |3 12| QG */ A.QG, - A.QB, /* QB |4 74164 11| QF */ A.QF, - A.QC, /* QC |5 10| QE */ A.QE, - A.QD, /* QD |6 9| CLRQ */ A.CLRQ, - A.GND, /* GND |7 8| CLK */ A.CLK - /* +------------+ */ + DIPPINS( /* +--------------+ */ + A.A, /* A |1 ++ 14| VCC */ A.VCC, + A.B, /* B |2 13| QH */ A.QH, + A.QA, /* QA |3 12| QG */ A.QG, + A.QB, /* QB |4 74164 11| QF */ A.QF, + A.QC, /* QC |5 10| QE */ A.QE, + A.QD, /* QD |6 9| CLRQ */ A.CLRQ, + A.GND, /* GND |7 8| CLK */ A.CLK + /* +--------------+ */ ) NETLIST_END() -/* - * 74165: Parallel-Load 8-Bit Shift Register - * - * +--------------+ - * SH/LDQ |1 ++ 16| VCC - * CLK |2 15| CLKINH - * E |3 14| D - * F |4 74165 13| C - * G |5 12| B - * H |6 11| A - * QHQ |7 10| SER - * GND |8 9| QH - * +--------------+ - */ - +//- Identifier: 54165/DM74165 +//- Title: 8-Bit Parallel-to-Serial Converter +//- Description: The ’165 is an 8-bit parallel load or serial-in register with complementary outputs available from the last stage. +//- Parallel inputting occurs asynchronously when the Parallel Load (PL) input is LOW. +//- With PL HIGH, serial shifting occurs on the rising edge of the clock; new data enters via the Serial Data (DS) input. +//- The 2-input OR clock can be used to combine two independent clock sources, or one input can act as an active LOW clock enable. +//- Pinalias: PLQ,CP1,P4,P5,P6,P7,QQ7,GND,Q7,DS,P0,P1,P2,P3,CP2,VCC +//- Package: DIP +//- NamingConvention: Naming conventions follow National Semiconductor datasheet +//- FunctionTable: +//- http://pdf.datasheetcatalog.com/datasheet/nationalsemiconductor/DS009782.PDF +//- +//- +-----+-----+-----++----+----+----+----+----+----+----+----+ +//- | PLQ | CP1 | CP2 || Q0 | Q1 | Q2 | Q3 | Q4 | Q5 | Q6 | Q7 | +//- +=====+=====+=====++====+====+====+====+====+====+====+====+ +//- | 0 | X | X || P0 | P1 | P2 | P3 | P4 | P5 | P6 | P7 | +//- | 1 | 0 | 0-1 || DS | Q0 | Q1 | Q2 | Q3 | Q4 | Q5 | Q6 | +//- | 1 | 1 | 0-1 || Q0 | Q1 | Q2 | Q3 | Q4 | Q5 | Q6 | Q7 | +//- | 1 | 0-1 | 0 || DS | Q0 | Q1 | Q2 | Q3 | Q4 | Q5 | Q6 | +//- | 1 | 0-1 | 1 || Q0 | Q1 | Q2 | Q3 | Q4 | Q5 | Q6 | Q7 | +//- +-----+-----+-----++----+----+----+----+----+----+----+----+ +//- static NETLIST_START(TTL_74165_DIP) TTL_74165(A) - DIPPINS( /* +--------------+ */ - A.SH_LDQ, /* SH/LDQ |1 ++ 16| VCC */ A.VCC, - A.CLK, /* CLK |2 15| CLKINH */ A.CLKINH, - A.E, /* E |3 14| D */ A.D, - A.F, /* F |4 74165 13| C */ A.C, - A.G, /* G |5 12| B */ A.B, - A.H, /* H |6 11| A */ A.A, - A.QHQ, /* QHQ |7 10| SER */ A.SER, - A.GND, /* GND |8 9| QH */ A.QH - /* +--------------+ */ + DIPPINS( /* +--------------+ */ + A.SH_LDQ, /* PLQ |1 ++ 16| VCC */ A.VCC, + A.CLK, /* CP1 |2 15| CP2 */ A.CLKINH, + A.E, /* P4 |3 14| P3 */ A.D, + A.F, /* P5 |4 74165 13| P2 */ A.C, + A.G, /* P6 |5 12| P1 */ A.B, + A.H, /* P7 |6 11| P0 */ A.A, + A.QHQ, /* QQ7 |7 10| DS */ A.SER, + A.GND, /* GND |8 9| Q7 */ A.QH + /* +--------------+ */ ) NETLIST_END() -/* - * 74166: Parallel-Load 8-Bit Shift Register - * - * +--------------+ - * SER |1 ++ 16| VCC - * A |2 15| SH/LDQ - * B |3 14| H - * C |4 74166 13| QH - * D |5 12| G - * CLKINH |6 11| F - * CLK |7 10| E - * GND |8 9| CLRQ - * +--------------+ - */ - +//- Identifier: DM74LS166 +//- Title: 8-Bit Parallel-In/Serial-Out Shift Registers +//- Description: These parallel-in or serial-in, serial-out shift registers feature gated clock inputs and an overriding clear input. +//- All inputs are buffered to lower the drive requirements to one normalized load, and input clamping diodes minimize switching transients to simplify system design. +//- The load mode is established by the shift/load input. +//- When high, this input enables the serial data input and couples the eight flip-flops for serial shifting with each clock pulse. +//- When low, the parallel (broadside) data inputs are enabled and synchronous loading occurs on the next clock pulse. +//- During parallel loading, serial data flow is inhibited. +//- Clocking is accomplished on the low-to-high-level edge of the clock pulse through a two-input NOR gate, permitting one input to be used as a clock-enable or clock-inhibit function. +//- Holding either of the clock inputs high inhibits clocking; holding either low enables the other clock input. +//- This allows the system clock to be free running, and the register can be stopped on command with the other clock input. +//- The clock-inhibit input should be changed to the high level only while the clock input is high. +//- A buffered, direct clear input overrides all other inputs, including the clock, and sets all flip-flops to zero. +//- Pinalias: SER,A,B,C,D,CLKINH,CLK,GND,CLRQ,E,F,G,QH,H,SH/LDQ,VCC +//- Package: DIP +//- NamingConvention: Naming conventions follow National Semiconductor datasheet +//- FunctionTable: +//- http://pdf.datasheetcatalog.com/datasheet/nationalsemiconductor/DS006400.PDF +//- +//- +------+--------+--------+-----+-----+------++----+----+-----+----+ +//- | CLRQ | SH/LDQ | CLKINH | CLK | SER | A..H || QA | QB | ... | QH | +//- +======+========+========+=====+=====+======++====+====+=====+====+ +//- | 0 | X | X | X | X | X || 0 | 0 | ... | 0 | +//- | 1 | X | 0 | 0 | X | X || QA | QB | ... | QH | +//- | 1 | 0 | 0 | 0-1 | X | a..h || a | b | ... | h | +//- | 1 | 1 | 0 | 0-1 | 1 | X || 1 | QA | ... | QG | +//- | 1 | 1 | 0 | 0-1 | 0 | X || 0 | QA | ... | QG | +//- | 1 | X | 1 | 0-1 | X | X || QA | QB | ... | QH | +//- +------+--------+--------+-----+-----+------++----+----+-----+----+ +//- static NETLIST_START(TTL_74166_DIP) TTL_74166(A) @@ -1763,21 +2270,28 @@ static NETLIST_START(TTL_74166_DIP) ) NETLIST_END() -/* - * DM74174: Hex D Flip-Flops with Clear - * - * +--------------+ - * CLR |1 ++ 16| VCC - * Q1 |2 15| Q6 - * D1 |3 14| D6 - * D2 |4 74174 13| D5 - * Q2 |5 12| Q5 - * D3 |6 11| D4 - * Q3 |7 10| Q4 - * GND |8 9| CLK - * +--------------+ - */ - +//- Identifier: DM74174 +//- Title: Hex/Quad D-Type Flip-Flop with Clear +//- Description: These positive-edge triggered flip-flops utilize TTL circuitry to implement D-type flip-flop logic. +//- All have a direct clear input. +//- Information at the D inputs meeting the setup and hold time requirements is transferred to the Q outputs on the positive-going edge of the clock pulse. +//- Clock triggering occurs at a particular voltage level and is not directly related to the transition time of the positive-going pulse. +//- When the clock input is at either the HIGH or LOW level, the D input signal has no effect at the output. +//- Pinalias: CLRQ,Q1,D1,D2,Q2,D3,Q3,GND,CLK,Q4,D4,Q5,D5,Q6,D6,VCC +//- Package: DIP +//- NamingConvention: Naming conventions follow Fairchild Semiconductor datasheet +//- FunctionTable: +//- http://pdf.datasheetcatalog.com/datasheet/fairchild/DM74174.pdf +//- +//- +------+-----+---++---+ +//- | CLRQ | CLK | D || Q | +//- +======+=====+===++===+ +//- | 0 | X | X || 0 | +//- | 1 | 0-1 | 1 || 1 | +//- | 1 | 0-1 | 0 || 0 | +//- | 1 | 0 | X || Q | +//- +------+-----+---++---+ +//- static NETLIST_START(TTL_74174_DIP) TTL_74174_GATE(A) TTL_74174_GATE(B) @@ -1786,38 +2300,39 @@ static NETLIST_START(TTL_74174_DIP) TTL_74174_GATE(E) TTL_74174_GATE(F) - DIPPINS( /* +--------------+ */ - A.CLRQ, /* CLR |1 ++ 16| VCC */ A.VCC, - A.Q, /* Q1 |2 15| Q6 */ F.Q, - A.D, /* D1 |3 14| D6 */ F.D, - B.D, /* D2 |4 74174 13| D5 */ E.D, - B.Q, /* Q2 |5 12| Q5 */ E.Q, - C.D, /* D3 |6 11| D4 */ D.D, - C.Q, /* Q3 |7 10| Q4 */ D.Q, - A.GND, /* GND |8 9| CLK */ A.CLK - /* +--------------+ */ + DIPPINS( /* +--------------+ */ + A.CLRQ, /* CLRQ |1 ++ 16| VCC */ A.VCC, + A.Q, /* Q1 |2 15| Q6 */ F.Q, + A.D, /* D1 |3 14| D6 */ F.D, + B.D, /* D2 |4 74174 13| D5 */ E.D, + B.Q, /* Q2 |5 12| Q5 */ E.Q, + C.D, /* D3 |6 11| D4 */ D.D, + C.Q, /* Q3 |7 10| Q4 */ D.Q, + A.GND, /* GND |8 9| CLK */ A.CLK + /* +--------------+ */ ) NETLIST_END() -/* - * DM74260: Dual 5-Input NOR Gates - * _________ - * Y = A+B+C+D+E - * +---+---+---+---+---++---+ - * | A | B | B | B | B || Y | - * +===+===+===+===+===++===+ - * | 0 | 0 | 0 | 0 | 0 || 1 | - * | 0 | 0 | 0 | 0 | 1 || 0 | - * | 0 | 0 | 0 | 1 | 0 || 0 | - * | 0 | 0 | 1 | 0 | 0 || 0 | - * | 0 | 1 | 0 | 0 | 0 || 0 | - * | 1 | 0 | 0 | 0 | 0 || 0 | - * +---+---+---+---+---++---+ - * - * Naming conventions follow Texas Instruments datasheet - * - */ - +//- Identifier: DM54LS260/DM74LS260 +//- Title: Dual 5-Input NOR Gate +//- Description: This device contains two individual five input gates, each of which perform the logic NOR function. +//- Pinalias: A1,B1,C1,A2,Q1,Q2,GND,B2,C2,D2,E2,D1,E1,VCC +//- Package: DIP +//- NamingConvention: Naming conventions follow National Semiconductor datasheet +//- FunctionTable: +//- http://pdf.datasheetcatalog.com/datasheet/nationalsemiconductor/DS009824.PDF +//- +//- +---+---+---+---+---++---+ +//- | A | B | C | D | E || Y | +//- +===+===+===+===+===++===+ +//- | 0 | 0 | 0 | 0 | 0 || 1 | +//- | X | X | X | X | 1 || 0 | +//- | X | X | X | 1 | X || 0 | +//- | X | X | 1 | X | X || 0 | +//- | X | 1 | X | X | X || 0 | +//- | 1 | X | X | X | X || 0 | +//- +---+---+---+---+---++---+ +//- static NETLIST_START(TTL_74260_DIP) TTL_74260_GATE(A) TTL_74260_GATE(B) @@ -1825,36 +2340,45 @@ static NETLIST_START(TTL_74260_DIP) NET_C(A.VCC, B.VCC) NET_C(A.GND, B.GND) - DIPPINS( /* +--------------+ */ - A.C, /* C1 |1 ++ 14| VCC */ A.VCC, - A.D, /* D1 |2 13| B1 */ A.B, - A.E, /* E1 |3 12| A1 */ A.A, - B.E, /* E2 |4 74260 11| D2 */ B.D, - A.Q, /* Y1 |5 10| C2 */ B.C, - B.Q, /* Y2 |6 9| B2 */ B.B, - A.GND,/* GND |7 8| A2 */ B.A - /* +--------------+ */ + DIPPINS( /* +--------------+ */ + A.C, /* C1 |1 ++ 14| VCC */ A.VCC, + A.D, /* D1 |2 13| B1 */ A.B, + A.E, /* E1 |3 12| A1 */ A.A, + B.E, /* E2 |4 74260 11| D2 */ B.D, + A.Q, /* Y1 |5 10| C2 */ B.C, + B.Q, /* Y2 |6 9| B2 */ B.B, + A.GND, /* GND |7 8| A2 */ B.A + /* +--------------+ */ ) NETLIST_END() -/* - * DM74279: Quad S-R Latch - * - * +---+---+---++---+ - * |S1 |S2 | R || Q | - * +===+===+===++===+ - * | 0 | 0 | 0 || 1 | - * | 0 | 1 | 1 || 1 | - * | 1 | 0 | 1 || 1 | - * | 1 | 1 | 0 || 0 | - * | 1 | 1 | 1 ||QP | - * +---+---+---++---+ - * - * QP: Previous Q - * - * Naming conventions follow Fairchild Semiconductor datasheet - * - */ +//- Identifier: 54279/DM74279 +//- Title: Quad Set-Reset Latch +//- Description: These latches are ideaily suited ·for use as temporary +//- storage of bfnary information between processing units +//- and I/O units. When either one of the data inputs is at +//- a low logic level, the output will follow the level of the +//- R input. When both data inputs are high, the output will +//- remain latched in its previous state. When both inputs +//- are low, the output will .go high. However, this high +//- level may not persist when either one of the data inputs +//- returns to the high state. +//- Pinalias: 1RQ,1S1Q,1S2Q,1Q,2RQ,2SQ,2Q,GND,3Q,3RQ,3S1Q,3S2Q,4Q,4RQ,4SQ,VCC +//- Package: DIP +//- NamingConvention: Naming conventions follow National Semiconductor datasheet +//- FunctionTable: +//- http://pdf.datasheetcatalog.com/datasheet/nationalsemiconductor/DS009785.PDF +//- +//- +-----+-----+----++---+ +//- | S1Q | S2Q | RQ || Q | +//- +=====+=====+====++===+ +//- | 0 | 0 | 0 || 1 | (as long as SQ1 or SQ2 are low) +//- | 0 | X | 1 || 1 | +//- | X | 0 | 1 || 1 | +//- | 1 | 1 | 0 || 0 | +//- | 1 | 1 | 1 || Q | +//- +-----+-----+----++---+ +//- #ifndef __PLIB_PREPROCESSOR__ #if !NL_AUTO_DEVICES #define TTL_74279A(name) \ @@ -1873,26 +2397,38 @@ static NETLIST_START(TTL_74279_DIP) NET_C(A.VCC, B.VCC, C.VCC, D.VCC) NET_C(A.GND, B.GND, C.GND, D.GND) - DIPPINS( /* +--------------+ */ - A.R, /* 1R |1 ++ 16| VCC */ A.VCC, - A.S1, /* 1S1 |2 15| 4S */ D.S, - A.S2, /* 1S2 |3 14| 4R */ D.R, - A.Q, /* 1Q |4 74279 13| 4Q */ D.Q, - B.R, /* 2R |5 12| 3S2 */ C.S2, - B.S, /* 2S |6 11| 3S1 */ C.S1, - B.Q, /* 2Q |7 10| 3R */ C.R, - A.GND, /* GND |8 9| 3Q */ C.Q - /* +--------------+ */ + DIPPINS( /* +--------------+ */ + A.R, /* 1RQ |1 ++ 16| VCC */ A.VCC, + A.S1, /* 1S1Q |2 15| 4SQ */ D.S, + A.S2, /* 1S2Q |3 14| 4RQ */ D.R, + A.Q, /* 1Q |4 74279 13| 4Q */ D.Q, + B.R, /* 2RQ |5 12| 3S2Q */ C.S2, + B.S, /* 2SQ |6 11| 3S1Q */ C.S1, + B.Q, /* 2Q |7 10| 3RQ */ C.R, + A.GND, /* GND |8 9| 3Q */ C.Q + /* +--------------+ */ ) NETLIST_END() -/* - * DM74377: Octal D Flip-Flop With Enable - * DM74378: Hex D Flip-Flop With Enable - * DM74379: 4-bit D Flip-Flop With Enable - * - */ - +//- Identifier: DM54LS377/DM74LS377 +//- Title: Octal D Flip-Flop with Common Enable and Clock +//- Description: The ’LS377 is an 8-bit register built using advanced low power Schottky technology. +//- This register consists of eight D-type flip-flops with a buffered common clock and a buffered common input enable. +//- The device is packaged in the space-saving (0.3 inch row spacing) 20-pin package. +//- Pinalias: EQ,Q0,D0,D1,Q1,Q2,D2,D3,Q3,GND,CP,Q4,D4,D5,Q5,Q6,D6,D7,Q7,VCC +//- Package: DIP +//- NamingConvention: Naming conventions follow National Semiconductor datasheet +//- FunctionTable: +//- http://pdf.datasheetcatalog.com/datasheet/nationalsemiconductor/DS009785.PDF +//- +//- +----+-----+----++----+ +//- | EQ | CP | Dn || Qn | +//- +====+=====+====++====+ +//- | 1 | X | X || Qn | +//- | 0 | 0-1 | 1 || 1 | +//- | 0 | 0-1 | 0 || 0 | +//- +----+-----+----++----+ +//- static NETLIST_START(TTL_74377_DIP) TTL_74377_GATE(A) TTL_74377_GATE(B) @@ -1917,21 +2453,39 @@ static NETLIST_START(TTL_74377_DIP) HINT(G.QQ, NC) HINT(H.QQ, NC) - DIPPINS( /* +--------------+ */ - A.E, /* /E |1 ++ 20| VCC */ A.VCC, - A.Q, /* Q0 |2 19| Q7 */ H.Q, - A.D, /* D0 |3 18| D7 */ H.D, - B.D, /* D1 |4 74377 17| D6 */ G.D, - B.Q, /* Q1 |5 16| Q6 */ G.Q, - C.Q, /* Q2 |6 15| Q5 */ F.Q, - C.D, /* D2 |7 14| D5 */ F.D, - D.D, /* D3 |8 13| D4 */ E.D, - D.Q, /* Q3 |9 12| Q4 */ E.Q, - A.GND,/* GND |10 11| CP */ A.CP - /* +--------------+ */ + DIPPINS( /* +--------------+ */ + A.E, /* EQ |1 ++ 20| VCC */ A.VCC, + A.Q, /* Q0 |2 19| Q7 */ H.Q, + A.D, /* D0 |3 18| D7 */ H.D, + B.D, /* D1 |4 74377 17| D6 */ G.D, + B.Q, /* Q1 |5 16| Q6 */ G.Q, + C.Q, /* Q2 |6 15| Q5 */ F.Q, + C.D, /* D2 |7 14| D5 */ F.D, + D.D, /* D3 |8 13| D4 */ E.D, + D.Q, /* Q3 |9 12| Q4 */ E.Q, + A.GND, /* GND |10 11| CP */ A.CP + /* +--------------+ */ ) NETLIST_END() +//- Identifier: DM54LS378/DM74LS378 +//- Title: Parallel D Register with Enable +//- Description: The ’LS378 is a 6-bit register with a buffered common enable. +//- This device is similar to the ’LS174, but with common Enable rather than common Master Reset. +//- Pinalias: EQ,Q0,D0,D1,Q1,D2,Q2,GND,CP,Q3,D3,Q4,D4,D5,Q6,VCC +//- Package: DIP +//- NamingConvention: Naming conventions follow National Semiconductor datasheet +//- FunctionTable: +//- http://pdf.datasheetcatalog.com/datasheet/nationalsemiconductor/DS009832.PDF +//- +//- +----+-----+----++----+ +//- | EQ | CP | Dn || Qn | +//- +====+=====+====++====+ +//- | 1 | X | X || Qn | +//- | 0 | 0-1 | 1 || 1 | +//- | 0 | 0-1 | 0 || 0 | +//- +----+-----+----++----+ +//- static NETLIST_START(TTL_74378_DIP) TTL_74377_GATE(A) TTL_74377_GATE(B) @@ -1945,19 +2499,37 @@ static NETLIST_START(TTL_74378_DIP) NET_C(A.CP, B.CP, C.CP, D.CP, E.CP, F.CP) NET_C(A.E, B.E, C.E, D.E, E.E, F.E) - DIPPINS( /* +--------------+ */ - A.E, /* /E |1 ++ 16| VCC */ A.VCC, - A.Q, /* Q0 |2 15| Q5 */ F.Q, - A.D, /* D0 |3 14| D5 */ F.D, - B.D, /* D1 |4 74378 13| D4 */ E.D, - B.Q, /* Q1 |5 12| Q4 */ E.Q, - C.D, /* D2 |6 11| D3 */ D.D, - C.Q, /* Q2 |7 10| Q3 */ D.Q, - A.GND,/* GND |8 9| CP */ A.CP - /* +--------------+ */ + DIPPINS( /* +--------------+ */ + A.E, /* EQ |1 ++ 16| VCC */ A.VCC, + A.Q, /* Q0 |2 15| Q5 */ F.Q, + A.D, /* D0 |3 14| D5 */ F.D, + B.D, /* D1 |4 74378 13| D4 */ E.D, + B.Q, /* Q1 |5 12| Q4 */ E.Q, + C.D, /* D2 |6 11| D3 */ D.D, + C.Q, /* Q2 |7 10| Q3 */ D.Q, + A.GND, /* GND |8 9| CP */ A.CP + /* +--------------+ */ ) NETLIST_END() +//- Identifier: 54LS379/DM74LS379 +//- Title: Quad Parallel Register with Enable +//- Description: The LS379 is a 4-bit register with buffered common Enable. +//- This device is similar to the LS175 but features the common Enable rather than common Master Reset. +//- Pinalias: EEQ,Q0,QQ0,D0,QQ1,Q1,GND,CP,Q2,QQ2,D2,D3,QQ3,Q3,VCC +//- Package: DIP +//- NamingConvention: Naming conventions follow National Semiconductor datasheet +//- FunctionTable: +//- http://pdf.datasheetcatalog.com/datasheet/nationalsemiconductor/DS009832.PDF +//- +//- +----+-----+----++----+-----+ +//- | EQ | CP | Dn || Qn | QQn | +//- +====+=====+====++====+=====+ +//- | 1 | X | X || Qn | QQn | +//- | 0 | 0-1 | 1 || 1 | 0 | +//- | 0 | 0-1 | 0 || 0 | 1 | +//- +----+-----+----++----+-----+ +//- static NETLIST_START(TTL_74379_DIP) TTL_74377_GATE(A) TTL_74377_GATE(B) @@ -1969,35 +2541,31 @@ static NETLIST_START(TTL_74379_DIP) NET_C(A.CP, B.CP, C.CP, D.CP) NET_C(A.E, B.E, C.E, D.E) - DIPPINS( /* +--------------+ */ - A.E, /* /E |1 ++ 16| VCC */ A.VCC, - A.Q, /* Q0 |2 15| Q3 */ D.Q, - A.QQ, /* /Q0 |3 14| /Q3 */ D.QQ, - A.D, /* D0 |4 74379 13| D3 */ D.D, - B.D, /* D1 |5 12| D2 */ C.D, - B.QQ, /* /Q1 |6 11| /Q2 */ C.QQ, - B.Q, /* Q1 |7 10| Q2 */ C.Q, - A.GND,/* GND |8 9| CP */ A.CP - /* +--------------+ */ + DIPPINS( /* +--------------+ */ + A.E, /* EQ |1 ++ 16| VCC */ A.VCC, + A.Q, /* Q0 |2 15| Q3 */ D.Q, + A.QQ, /* QQ0 |3 14| QQ3 */ D.QQ, + A.D, /* D0 |4 74379 13| D3 */ D.D, + B.D, /* D1 |5 12| D2 */ C.D, + B.QQ, /* QQ1 |6 11| QQ2 */ C.QQ, + B.Q, /* Q1 |7 10| Q2 */ C.Q, + A.GND, /* GND |8 9| CP */ A.CP + /* +--------------+ */ ) NETLIST_END() -/* - * DM74393: Dual 4-Stage Binary Counter - * - * +--------------+ - * /CP |1 ++ 14| VCC - * MR |2 13| /CP - * Q0 |3 12| MR - * Q1 |4 74393 11| Q0 - * Q2 |5 10| Q1 - * Q3 |6 9| Q2 - * GND |7 8| Q3 - * +--------------+ - * - * Naming conventions follow Motorola datasheet - */ - +//- Identifier: DM74LS393 +//- Title: Dual 4-Bit Binary Counter +//- Description: Each of these monolithic circuits contains eight master-slave flip-flops and additional gating to implement two individual four-bit counters in a single package. +//- The ’LS393 comprises two independent four-bit binary counters each having a clear and a clock input. +//- N-bit binary counters can be implemented with each package providing the capability of divide-by-256. +//- The LS393 has parallel outputs from each counter stage so that any submultiple of the input count freqency is available for system-timing signals. +//- Pinalias: 1A,1CLR,1QA,1QB,1QC,1QD,GND,2QD,2QC,2QB,2QA,2CLR,2A,VCC +//- Package: DIP +//- NamingConvention: Naming conventions follow National Semiconductor datasheet +//- FunctionTable: +//- http://pdf.datasheetcatalog.com/datasheet/nationalsemiconductor/DS006434.PDF +//- static NETLIST_START(TTL_74393_DIP) TTL_74393(A) TTL_74393(B) @@ -2005,15 +2573,15 @@ static NETLIST_START(TTL_74393_DIP) NET_C(A.VCC, B.VCC) NET_C(A.GND, B.GND) - DIPPINS( /* +------------+ */ - A.CP, /* /CP |1 ++ 14| VCC */ A.VCC, - A.MR, /* MR |2 13| /CP */ B.CP, - A.Q0, /* Q0 |3 12| MR */ B.MR, - A.Q1, /* Q1 |4 74393 11| Q0 */ B.Q0, - A.Q2, /* Q2 |5 10| Q1 */ B.Q1, - A.Q3, /* Q3 |6 9| Q2 */ B.Q2, - A.GND, /* GND |7 8| Q3 */ B.Q3 - /* +------------+ */ + DIPPINS( /* +--------------+ */ + A.CP, /* 1A |1 ++ 14| VCC */ A.VCC, + A.MR, /* 1CLR |2 13| 2A */ B.CP, + A.Q0, /* 1QA |3 12| 2CLR */ B.MR, + A.Q1, /* 1QB |4 74393 11| 2QA */ B.Q0, + A.Q2, /* 1QC |5 10| 2QB */ B.Q1, + A.Q3, /* 1QD |6 9| 2QC */ B.Q2, + A.GND, /* GND |7 8| 2QD */ B.Q3 + /* +--------------+ */ ) NETLIST_END() @@ -2064,69 +2632,55 @@ static NETLIST_START(SN74LS629_DIP) ) NETLIST_END() -/* - * DM9312: One of Eight Line Data Selectors/Multiplexers - * - * +--------------+ - * D0 |1 ++ 16| VCC - * D1 |2 15| Y - * D2 |3 14| YQ - * D3 |4 9312 13| C - * D4 |5 12| B - * D5 |6 11| A - * D6 |7 10| G Strobe - * GND |8 9| D7 - * +--------------+ - * __ - * +---+---+---+---++---+---+ - * | C | B | A | G || Y | YQ| - * +===+===+===+===++===+===+ - * | X | X | X | 1 || 0| 1 | - * | 0 | 0 | 0 | 0 || D0|D0Q| - * | 0 | 0 | 1 | 0 || D1|D1Q| - * | 0 | 1 | 0 | 0 || D2|D2Q| - * | 0 | 1 | 1 | 0 || D3|D3Q| - * | 1 | 0 | 0 | 0 || D4|D4Q| - * | 1 | 0 | 1 | 0 || D5|D5Q| - * | 1 | 1 | 0 | 0 || D6|D6Q| - * | 1 | 1 | 1 | 0 || D7|D7Q| - * +---+---+---+---++---+---+ - * - * Naming conventions follow National Semiconductor datasheet - * - */ - -static NETLIST_START(DM9312_DIP) - DM9312(s) - - DIPPINS( /* +--------------+ */ - s.D0, /* D0 |1 ++ 16| VCC */ s.VCC, - s.D1, /* D1 |2 15| Y */ s.Y, - s.D2, /* D2 |3 14| YQ */ s.YQ, - s.D3, /* D3 |4 9312 13| C */ s.C, - s.D4, /* D4 |5 12| B */ s.B, - s.D5, /* D5 |6 11| A */ s.A, - s.D6, /* D6 |7 10| G */ s.G, //Strobe - s.GND, /* GND |8 9| D7 */ s.D7 - /* +--------------+ */ - ) -NETLIST_END() - -/* - * DM9310/9316: Synchronous 4-Bit Counters - * - * +--------------+ - * CLEAR |1 ++ 16| VCC - * CLOCK |2 15| RC (Ripple Carry) - * A |3 14| QA - * B |4 9310 13| QB - * C |5 9316 12| QC - * D |6 11| QD - * Enable P |7 10| Enable T - * GND |8 9| LOAD - * +--------------+ - */ - +//- Identifier: DM9310/DM8310 +//- Title: Synchronous 4-Bit Decade Counter +//- Description: These synchronous, presettable counters feature an +//- internal carry look-ahead for application in high-speed +//- counting designs. The DM9310/DM8310 are decade +//- counters. The carry output is decoded by means of a +//- NOR gate, thus preventing spikes during the normal +//- counting mode of operation. Synchronous operation +//- is provided by having all flip-flops clocked simultaneously +//- so that the outputs change coincident with each +//- other when so instructed by the count-enable inputs +//- and internal gating. This mode of operation eliminates +//- the output counting spikes which are normally +//- associated with asynchronous (ripple clock) counters. +//- A buffered clock input triggers the four flip-flops on +//- the rising (positive-going) edge of the clock input +//- waveform. +//- +//- These counters are fully programmable; that is, the +//- outputs may be preset to either level. As presetting is +//- synchronous, setting up a low level at the load input +//- disables the counter and causes the outputs to agree +//- with the setup data after the next clock pulse regardless +//- of the levels of the enable input. Low-to-high transitions +//- at the· load input are perfectly acceptable regardless of +//- the logic levels on the clock or enable inputs. The clear +//- function is asynchronous and a low level at the clear +//- input sets all four of the flip-flop outputs low regardless +//- of the levels of clock, load, or enable inputs. +//- +//- The carry look-ahead circuitry provides for cascading +//- counters for n-bit synchronous applications without +//- additional gating. Instrumental in accomplishing this +//- function are two count-enable inputs and a ripple carry +//- output. Both count-enable inputs (P and T) must be +//- high to count, and input T is fed-forward to enable the +//- ripple carry output. The ripple carry output thus +//- enabled will produce a high-level output pulse with a +//- duration approximately equal to the high-level portion +//- of the QA output. This high-level overflow ripply carry +//- pulse can be used to enable successive cascaded stages. +//- High-to-Low level transitions at the enable P or T inputs +//- may occur regardless of the logic level in the clock. +//- Pinalias: CLEARQ,CLOCK,A,B,C,D,ENABLEP,GND,LOADQ,ENABLET,QD,QC,QB,QA,RC,VCC +//- Package: DIP +//- NamingConvention: Naming conventions follow National Semiconductor datasheet +//- FunctionTable: +//- https://ia800608.us.archive.org/5/items/bitsavers_nationaldaTTLDatabook_40452765/1976_National_TTL_Databook.pdf +//- static NETLIST_START(TTL_9310_DIP) TTL_9310(A) @@ -2143,37 +2697,131 @@ static NETLIST_START(TTL_9310_DIP) ) NETLIST_END() +//- Identifier: DM9312/DM8312 +//- Title: One of Eight Line Data Selectors/Multiplexers +//- Description: These data selectors/multiplexers contain inverter/ +//- drivers to supply full complementary, on-chip, binary +//- decoded data selection to the AND-OR-INVERT gates. +//- +//- The DM9312/8312 is a single 8-bit multiplexer with +//- complementary outputs and a strobe control. When the +//- strobe is low, the function is enabled. When a high logic +//- level is applied to the strobe, the outputs are latched. +//- Pinalias: D0,D1,D2,D3,D4,D5,D6,GND,D7,G,A,B,C,YQ,Y,VCC +//- Package: DIP +//- NamingConvention: Naming conventions follow National Semiconductor datasheet +//- FunctionTable: +//- http://pdf.datasheetcatalog.com/datasheet/nationalsemiconductor/DM9312.pdf +//- +//- +---+---+---+---++----+-----+ +//- | C | B | A | G || Y | YQ | +//- +===+===+===+===++====+=====+ +//- | X | X | X | 1 || 0 | 1 | +//- | 0 | 0 | 0 | 0 || D0 | D0Q | +//- | 0 | 0 | 1 | 0 || D1 | D1Q | +//- | 0 | 1 | 0 | 0 || D2 | D2Q | +//- | 0 | 1 | 1 | 0 || D3 | D3Q | +//- | 1 | 0 | 0 | 0 || D4 | D4Q | +//- | 1 | 0 | 1 | 0 || D5 | D5Q | +//- | 1 | 1 | 0 | 0 || D6 | D6Q | +//- | 1 | 1 | 1 | 0 || D7 | D7Q | +//- +---+---+---+---++----+-----+ +//- +static NETLIST_START(DM9312_DIP) + DM9312(A) + + DIPPINS( /* +--------------+ */ + A.D0, /* D0 |1 ++ 16| VCC */ A.VCC, + A.D1, /* D1 |2 15| Y */ A.Y, + A.D2, /* D2 |3 14| YQ */ A.YQ, + A.D3, /* D3 |4 9312 13| C */ A.C, + A.D4, /* D4 |5 12| B */ A.B, + A.D5, /* D5 |6 11| A */ A.A, + A.D6, /* D6 |7 10| G */ A.G, //Strobe + A.GND, /* GND |8 9| D7 */ A.D7 + /* +--------------+ */ + ) +NETLIST_END() + +//- Identifier: DM9316/DM8316 +//- Title: Synchronous 4-Bit Counters +//- Description: These synchronous, presettable counters feature an +//- internal carry look-ahead for application in high-speed +//- counting designs. The DM9316/DM8316 are 4-bit binary +//- counters. The carry output is decoded by means of a +//- NOR gate, thus preventing spikes during the normal +//- counting mode of operation. Synchronous operation +//- is provided by having all flip-flops clocked simultaneously +//- so that the outputs change coincident with each +//- other when so instructed by the count-enable inputs +//- and internal gating. This mode of operation eliminates +//- the output counting spikes which are normally +//- associated with asynchronous (ripple clock) counters. +//- A buffered clock input triggers the four flip-flops on +//- the rising (positive-going) edge of the clock input +//- waveform. +//- +//- These counters are fully programmable; that is, the +//- outputs may be preset to either level. As presetting is +//- synchronous, setting up a low level at the load input +//- disables the counter and causes the outputs to agree +//- with the setup data after the next clock pulse regardless +//- of the levels of the enable input. Low-to-high transitions +//- at the· load input are perfectly acceptable regardless of +//- the logic levels on the clock or enable inputs. The clear +//- function is asynchronous and a low level at the clear +//- input sets all four of the flip-flop outputs low regardless +//- of the levels of clock, load, or enable inputs. +//- +//- The carry look-ahead circuitry provides for cascading +//- counters for n-bit synchronous applications without +//- additional gating. Instrumental in accomplishing this +//- function are two count-enable inputs and a ripple carry +//- output. Both count-enable inputs (P and T) must be +//- high to count, and input T is fed-forward to enable the +//- ripple carry output. The ripple carry output thus +//- enabled will produce a high-level output pulse with a +//- duration approximately equal to the high-level portion +//- of the QA output. This high-level overflow ripply carry +//- pulse can be used to enable successive cascaded stages. +//- High-to-Low level transitions at the enable P or T inputs +//- may occur regardless of the logic level in the clock. +//- Pinalias: CLEARQ,CLOCK,A,B,C,D,ENABLEP,GND,LOADQ,ENABLET,QD,QC,QB,QA,RC,VCC +//- Package: DIP +//- NamingConvention: Naming conventions follow National Semiconductor datasheet +//- FunctionTable: +//- http://pdf.datasheetcatalog.com/datasheet/nationalsemiconductor/DS006606.PDF +//- static NETLIST_START(TTL_9316_DIP) TTL_9316(A) DIPPINS( /* +--------------+ */ - A.CLRQ, /* /CLEAR |1 ++ 16| VCC */ A.VCC, + A.CLRQ, /* CLEARQ |1 ++ 16| VCC */ A.VCC, A.CLK, /* CLOCK |2 15| RC */ A.RC, A.A, /* A |3 14| QA */ A.QA, A.B, /* B |4 9316 13| QB */ A.QB, A.C, /* C |5 12| QC */ A.QC, A.D, /* D |6 11| QD */ A.QD, A.ENP, /* Enable P |7 10| Enable T */ A.ENT, - A.GND, /* GND |8 9| /LOAD */ A.LOADQ + A.GND, /* GND |8 9| LOADQ */ A.LOADQ /* +--------------+ */ ) NETLIST_END() -/* - * 9322: Quad 2-Line to 1-Line Data Selectors/Multiplexers - * - * +------------+ - * SELECT |1 ++ 16| VCC - * A1 |2 15| STROBE - * B1 |3 14| A4 - * Y1 |4 9322 13| B4 - * A2 |5 12| Y4 - * B2 |6 11| A3 - * Y2 |7 10| B3 - * GND |8 9| Y3 - * +------------+ - */ - +//- Identifier: DM9322/DM8322 +//- Title: Quad 2-Line to 1-Line Data Selectors/Multiplexers +//- Description: These data selectors/multiplexers contain inverters and +//- drivers to supply full on-chip data selection to the four +//- output gates. A separate strobe input is provided. A +//- 4-bit word is selected from one of two sources and is +//- routed to the four outputs. True data is presented +//- at the outputs. +//- Pinalias: SELECT,A1,B1,Y1,A2,B2,Y2,GND,Y3,B3,A3,Y4,B4,A4,STROBE,VCC +//- Package: DIP +//- NamingConvention: Naming conventions follow National Semiconductor datasheet +//- FunctionTable: +//- http://pdf.datasheetcatalog.com/datasheet/nationalsemiconductor/DS006606.PDF +//- static NETLIST_START(TTL_9322_DIP) TTL_9322_GATE(A) TTL_9322_GATE(B) @@ -2185,89 +2833,69 @@ static NETLIST_START(TTL_9322_DIP) NET_C(A.VCC, B.VCC, C.VCC, D.VCC) NET_C(A.GND, B.GND, C.GND, D.GND) - DIPPINS( /* +------------+ */ - A.SELECT, /* SELECT |1 ++ 16| VCC */ A.VCC, - A.A, /* A1 |2 15| STROBE */ A.STROBE, - A.B, /* B1 |3 14| A4 */ D.A, - A.Y, /* Y1 |4 9322 13| B4 */ D.B, - B.A, /* A2 |5 12| Y4 */ D.Y, - B.B, /* B2 |6 11| A3 */ C.A, - B.Y, /* Y2 |7 10| B3 */ C.B, - A.GND, /* GND |8 9| Y3 */ C.Y - /* +------------+ */ + DIPPINS( /* +--------------+ */ + A.SELECT, /* SELECT |1 ++ 16| VCC */ A.VCC, + A.A, /* A1 |2 15| STROBE */ A.STROBE, + A.B, /* B1 |3 14| A4 */ D.A, + A.Y, /* Y1 |4 9322 13| B4 */ D.B, + B.A, /* A2 |5 12| Y4 */ D.Y, + B.B, /* B2 |6 11| A3 */ C.A, + B.Y, /* Y2 |7 10| B3 */ C.B, + A.GND, /* GND |8 9| Y3 */ C.Y + /* +--------------+ */ ) NETLIST_END() -/* SN7442: 4-Line BCD to 10-Line Decimal Decoder - * - * +--------------+ - * 0 |1 ++ 16| VCC - * 1 |2 15| A - * 2 |3 14| B - * 3 |4 13| C - * 4 |5 7442 12| D - * 5 |6 11| 9 - * 6 |7 10| 8 - * GND |8 9| 7 - * +--------------+ - */ +//- Identifier: DM9602/DM6802 +//- Title: DM9602 Dual Retriggerable, Resettable One Shots +//- Description: These dual resettable, retriggerable one shots have two +//- inputs per function; one which is active high, and one +//- which is active low. This allows the designer to employ +//- either leading-edge or trailing-edge triggering, which is +//- independent of input transition times. When input con· +//- ditions for triggering are met, a new cycle starts and the +//- external capacitor is allowed to rapidly discharge and +//- then charge again. The retriggerable feature permits +//- output pulse widths to be extended. In fact a continuous +//- true output can be maintained by having an input cycle +//- time which is shorter than the output cycle time. The +//- output pulse may then be terminated at any time by +//- applying a low logic level to the RESET pin. Retriggering +//- may be inhibited by either connecting the Q output to +//- an active high input, or the Q output to an active +//- low input. +//- Pinalias: C1,RC1,CLRQ1,B1,A1,Q1,QQ1,GND,QQ2,Q2,A2,B2,CLRQ2,RC2,C2,VCC +//- Package: DIP +//- NamingConvention: Naming conventions follow Fairchild Semiconductor datasheet +//- Limitations: +//- Timing inaccuracies may occur for capacitances < 1nF. Please consult datasheet +//- +//- Example: 74123.cpp,74123_example +//- +//- FunctionTable: +//- https://pdf1.alldatasheet.com/datasheet-pdf/view/51137/FAIRCHILD/DM9602.html +//- +static NETLIST_START(TTL_9602_DIP) + TTL_9602(A) + TTL_9602(B) -static NETLIST_START(TTL_7442_DIP) - NET_REGISTER_DEV(TTL_7442, A) + NET_C(A.VCC, B.VCC) + NET_C(A.GND, B.GND) - DIPPINS( /* +--------------+ */ - A.Q0, /* 0 |1 ++ 16| VCC */ A.VCC, - A.Q1, /* 1 |2 15| A */ A.A, - A.Q2, /* 2 |3 14| B */ A.B, - A.Q3, /* 3 |4 13| C */ A.C, - A.Q4, /* 4 |5 7442 12| D */ A.D, - A.Q5, /* 5 |6 11| 9 */ A.Q9, - A.Q6, /* 6 |7 10| 8 */ A.Q8, - A.GND, /* GND |8 9| 7 */ A.Q7 - /* +--------------+ */ + DIPPINS( /* +--------------+ */ + A.C, /* C1 |1 ++ 16| VCC */ A.VCC, + A.RC, /* RC1 |2 15| C2 */ B.C, + A.CLRQ, /* CLRQ1 |3 14| RC2 */ B.RC, + A.B, /* B1 |4 9602 13| CLRQ2 */ B.CLRQ, + A.A, /* A1 |5 12| B2 */ B.B, + A.Q, /* Q1 |6 11| A2 */ B.A, + A.QQ, /* QQ1 |7 10| Q2 */ B.Q, + A.GND, /* GND |8 9| QQ2 */ B.QQ + /* +--------------+ */ ) NETLIST_END() -/* - * DM7448: BCD to 7-Segment decoders/drivers - * - * +--------------+ - * B |1 ++ 16| VCC - * C |2 15| f - * LAMP TEST |3 14| g - * BI/RBQ |4 7448 13| a - * RBI |5 12| b - * D |6 11| c - * A |7 10| d - * GND |8 9| e - * +--------------+ - * - * Naming conventions follow National Semiconductor datasheet - * - */ - -static NETLIST_START(TTL_7448_DIP) - -#if (NL_USE_TRUTHTABLE_7448) - NET_REGISTER_DEV(TTL_7448_TT, A) -#else - NET_REGISTER_DEV(TTL_7448, A) -#endif - - DIPPINS( /* +--------------+ */ - A.B, /* B |1 ++ 16| VCC */ A.VCC, - A.C, /* C |2 15| f */ A.f, - A.LTQ, /* LTQ |3 14| g */ A.g, - A.BIQ, /* BIQ |4 7448 13| a */ A.a, - A.RBIQ, /* RBIQ |5 12| b */ A.b, - A.D, /* D |6 11| c */ A.c, - A.A, /* A |7 10| d */ A.d, - A.GND, /* GND |8 9| e */ A.e - /* +--------------+ */ - ) -NETLIST_END() - NETLIST_START(TTL74XX_lib) NET_MODEL("DM7414 SCHMITT_TRIGGER(VTP=1.7 VTM=0.9 VI=4.35 RI=6.15k VOH=3.5 ROH=120 VOL=0.1 ROL=37.5 TPLH=15 TPHL=15)") NET_MODEL("TTL_7414_GATE SCHMITT_TRIGGER(VTP=1.7 VTM=0.9 VI=4.35 RI=6.15k VOH=3.5 ROH=120 VOL=0.1 ROL=37.5 TPLH=15 TPHL=15)")