summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/netlist/devices/nld_7427.h
blob: 9863acc9f5d0011aaa50be1ed456d0a37879f3fa (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
// license:GPL-2.0+
// copyright-holders:Couriersud
/*
 * nld_7427.h
 *
 *  DM7427: Triple 3-Input NOR Gates
 *
 *          +--------------+
 *       A1 |1     ++    14| VCC
 *       B1 |2           13| C1
 *       A2 |3           12| Y1
 *       B2 |4    7427   11| C3
 *       C2 |5           10| B3
 *       Y2 |6            9| A3
 *      GND |7            8| Y3
 *          +--------------+
 *                  _____
 *              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
 *
 */

#ifndef NLD_7427_H_
#define NLD_7427_H_

#include "nld_signal.h"

#define TTL_7427_NOR(_name, _I1, _I2, _I3)                                          \
		NET_REGISTER_DEV(7427, _name)                                               \
		NET_CONNECT(_name, A, _I1)                                                  \
		NET_CONNECT(_name, B, _I2)                                                  \
		NET_CONNECT(_name, C, _I3)

NETLIB_SIGNAL(7427, 3, 1, 0);

#endif /* NLD_7427_H_ */