mame/src/emu/netlist/devices/nld_74193.h
couriersud 7fa10acca6 Added 74192, 9316, 9310 and 74193 devices to netlist. Added breakout
(wip) netlist as well, but still have to implement three more devices
until work can really start. [Couriersud]
2015-04-22 00:45:21 +02:00

62 lines
1.4 KiB
C

// license:GPL-2.0+
// copyright-holders:Couriersud
/*
* nld_74193.h
*
* DM74193: Synchronous 4-Bit Binary Counter with Dual Clock
*
* +--------------+
* B |1 ++ 16| VCC
* QB |2 15| A
* QA |3 14| CLEAR
* CD |4 74193 13| BORROWQ
* CU |5 12| CARRYQ
* QC |6 11| LOADQ
* QD |7 10| C
* GND |8 9| D
* +--------------+
*
* CD: Count up
* CU: Count down
*
* Naming conventions follow National Semiconductor datasheet
*
*/
#ifndef NLD_74193_H_
#define NLD_74193_H_
#include "../nl_base.h"
#define TTL_74193(_name) \
NET_REGISTER_DEV(74193, _name)
#define TTL_74193_DIP(_name) \
NET_REGISTER_DEV(74193_dip, _name)
NETLIB_DEVICE(74193,
ATTR_HOT void update_outputs();
netlist_ttl_input_t m_A;
netlist_ttl_input_t m_B;
netlist_ttl_input_t m_C;
netlist_ttl_input_t m_D;
netlist_ttl_input_t m_CLEAR;
netlist_ttl_input_t m_LOADQ;
netlist_ttl_input_t m_CU;
netlist_ttl_input_t m_CD;
netlist_state_t<INT8> m_cnt;
netlist_state_t<UINT8> m_last_CU;
netlist_state_t<UINT8> m_last_CD;
netlist_ttl_output_t m_Q[4];
netlist_ttl_output_t m_BORROWQ;
netlist_ttl_output_t m_CARRYQ;
);
NETLIB_DEVICE_DERIVED(74193_dip, 74193,
);
#endif /* NLD_74193_H_ */