summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/netlist/devices/nld_74175.h
blob: 28e7bc96d4eb05559051e9b8e0eca822b3d86813 (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
52
53
54
55
56
57
58
59
60
// license:GPL-2.0+
// copyright-holders:Couriersud
/*
 * nld_74175.h
 *
 *  DM74175: Quad D Flip-Flops with Clear
 *
 *          +--------------+
 *      CLR |1     ++    16| VCC
 *       Q1 |2           15| Q4
 *      Q1Q |3           14| Q4Q
 *       D1 |4   74175   13| D4
 *       D2 |5           12| D3
 *      Q2Q |6           11| Q3Q
 *       Q2 |7           10| Q3
 *      GND |8            9| CLK
 *          +--------------+
 *
 *          +-----+-----+---++---+-----+
 *          | CLR | CLK | D || Q | QQ  |
 *          +=====+=====+===++===+=====+
 *          |  0  |  X  | X || 0 |  1  |
 *          |  1  |  R  | 1 || 1 |  0  |
 *          |  1  |  R  | 0 || 0 |  1  |
 *          |  1  |  0  | X || Q0| Q0Q |
 *          +-----+-----+---++---+-----+
 *
 *   Q0 The output logic level of Q before the indicated input conditions were established
 *
 *  R:  0 --> 1
 *
 *  Naming conventions follow National Semiconductor datasheet
 *
 */

#ifndef NLD_74175_H_
#define NLD_74175_H_

#include "nld_signal.h"

#define TTL_74175(_name)                                     \
		NET_REGISTER_DEV(74175, _name)
#define TTL_74175_DIP(_name)                                 \
		NET_REGISTER_DEV(74175_dip, _name)

NETLIB_DEVICE(74175,

	netlist_state_t<UINT8> m_last;
	netlist_ttl_input_t m_D[4];
	netlist_ttl_input_t m_CLRQ;
	netlist_ttl_input_t m_CLK;
	netlist_ttl_output_t m_Q[4];
	netlist_ttl_output_t m_QQ[4];
);

NETLIB_DEVICE_DERIVED(74175_dip, 74175,

);

#endif /* NLD_74175_H_ */