An emulation of the 7406 hex inverter.
The 7406 is one of the 7400-series TTL logic chips, consisting of six single-input inverters. An inverter is the simplest of logic gates: if the input is low, the output is high, and vice versa.
| An | Yn |
|---|---|
| L | H |
| H | L |
The chip comes in a 14-pin dual in-line package with the following pin assignments.
+---+--+---+
A1 |1 +--+ 14| Vcc
Y1 |2 13| A6
A2 |3 12| Y6
Y2 |4 7406 11| A5
A3 |5 10| Y5
Y3 |6 9| A4
GND |7 8| Y4
+----------+
GND and Vcc are ground and power supply pins respectively, and they are not emulated.
In the Commodore 64, U8 is a 7406. It's responsible for inverting logic signals that are expected in the inverse they're given, such as the 6567's AEC signal being turned into the inverse AEC signal for the 82S100.
Consts
A1 = 1
- The pin assignment for inverter 1's input pin.
Y1 = 2
- The pin assignment for inverter 1's output pin.
A2 = 3
- The pin assignment for inverter 2's input pin.
Y2 = 4
- The pin assignment for inverter 2's output pin.
A3 = 5
- The pin assignment for inverter 3's input pin.
Y3 = 6
- The pin assignment for inverter 3's output pin.
GND = 7
- The pin assignment for the ground pin.
Y4 = 8
- The pin assignment for inverter 4's output pin.
A4 = 9
- The pin assignment for inverter 4's input pin.
Y5 = 10
- The pin assignment for inverter 5's output pin.
A5 = 11
- The pin assignment for inverter 5's input pin.
Y6 = 12
- The pin assignment for inverter 6's output pin.
A6 = 13
- The pin assignment for inverter 6's input pin.
VCC = 14
- The pin assignment for the +5V power supply pin.
Procs
proc `[]`(chip`gensym0: Ic7406; index`gensym0: int): Pin {...}{.inline, raises: [], tags: [].}
- Looks up a pin by the pin's number.
proc `[]`(chip`gensym0: Ic7406; index`gensym0: string): Pin {...}{.inline, raises: [KeyError], tags: [].}
- Looks up a pin by the pin's name.
proc pins(chip`gensym0: Ic7406): seq[PinInfo] {...}{.raises: [], tags: [].}
- Returns a read-only view of the chip's pins.
proc newIc7406(): Ic7406 {...}{.raises: [Exception, KeyError, ValueError], tags: [RootEffect].}