summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/netlist/devices/nld_82S16.h
blob: e834094f09dc0747da85153517e2c0b86f0ee678 (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
// license:GPL-2.0+
// copyright-holders:Couriersud
/*
 * nld_82S16.h
 *
 *  DM82S16: 256 Bit bipolar ram
 *
 *          +--------------+
 *       A1 |1     ++    16| VCC
 *       A0 |2           15| A2
 *     CE1Q |3           14| A3
 *     CE2Q |4   82S16   13| DIN
 *     CE3Q |5           12| WEQ
 *    DOUTQ |6           11| A7
 *       A4 |7           10| A6
 *      GND |8            9| A5
 *          +--------------+
 *
 *
 *  Naming conventions follow Signetics datasheet
 *
 */

#ifndef NLD_82S16_H_
#define NLD_82S16_H_

#include "../nl_base.h"

#define TTL_82S16(_name)                                     \
		NET_REGISTER_DEV(82S16, _name)
#define TTL_82S16_DIP(_name)                                 \
		NET_REGISTER_DEV(82S16_dip, _name)

NETLIB_DEVICE(82S16,

	netlist_logic_input_t m_A[8];
	netlist_logic_input_t m_CE1Q;
	netlist_logic_input_t m_CE2Q;
	netlist_logic_input_t m_CE3Q;
	netlist_logic_input_t m_WEQ;
	netlist_logic_input_t m_DIN;
	netlist_logic_output_t m_DOUTQ;

	//netlist_state_t<UINT8[256]> m_ram;
	UINT8 m_ram[256];
);

NETLIB_DEVICE_DERIVED(82S16_dip, 82S16,

);

#endif /* NLD_82S16_H_ */