summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/netlist/devices/nld_7425.h
blob: 5e2fff4f9467b84adb7ac7b048c34196a23263df (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// license:GPL-2.0+
// copyright-holders:Couriersud
/*
 * nld_7425.h
 *
 *  DM7425: Dual 4-Input NOR Gates
 *
 *          +--------------+
 *       A1 |1     ++    14| VCC
 *       B1 |2           13| D2
 *       X1 |3           12| C2
 *       C1 |4    7425   11| X2
 *       D1 |5           10| B2
 *       Y! |6            9| A2
 *      GND |7            8| Y2
 *          +--------------+
 *                  _______
 *              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 |
 *          +---+---+---+---+---++---+
 *
 *  TODO: The "X" input and high impedance output are currently not simulated.
 *
 *  Naming conventions follow National Semiconductor datasheet
 *
 */

#ifndef NLD_7425_H_
#define NLD_7425_H_

#include "nld_signal.h"

#define TTL_7425_NOR(_name, _I1, _I2, _I3, _I4)                                     \
        NET_REGISTER_DEV(7425, _name)                                               \
        NET_CONNECT(_name, A, _I1)                                                  \
        NET_CONNECT(_name, B, _I2)                                                  \
        NET_CONNECT(_name, C, _I3)                                                  \
        NET_CONNECT(_name, D, _I4)


NETLIB_SIGNAL(7425, 4, 1, 0);

#endif /* NLD_7425_H_ */