summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author couriersud <couriersud@arcor.de>2016-05-05 15:18:14 +0200
committer couriersud <couriersud@arcor.de>2016-05-05 15:18:37 +0200
commitd3c0199769184210d2f9e9fdcd78bd8fa3920d8d (patch)
tree4ee03ff68c17ce3a68daf3d50c1facb456fa3da6
parentadd61d2a00afcd3ba1a06e4eaec258cd625e5808 (diff)
Removed drivers/signal.h since netlist devices no longer use it. (nw)
-rw-r--r--scripts/src/netlist.lua1
-rw-r--r--src/lib/netlist/devices/nld_signal.h119
2 files changed, 0 insertions, 120 deletions
diff --git a/scripts/src/netlist.lua b/scripts/src/netlist.lua
index 2d061aeeee6..7ca677d0524 100644
--- a/scripts/src/netlist.lua
+++ b/scripts/src/netlist.lua
@@ -139,7 +139,6 @@ project "netlist"
MAME_DIR .. "src/lib/netlist/devices/nld_system.cpp",
MAME_DIR .. "src/lib/netlist/devices/nld_system.h",
MAME_DIR .. "src/lib/netlist/devices/nld_cmos.h",
- MAME_DIR .. "src/lib/netlist/devices/nld_signal.h",
MAME_DIR .. "src/lib/netlist/devices/nld_truthtable.cpp",
MAME_DIR .. "src/lib/netlist/devices/nld_truthtable.h",
MAME_DIR .. "src/lib/netlist/macro/nlm_ttl74xx.cpp",
diff --git a/src/lib/netlist/devices/nld_signal.h b/src/lib/netlist/devices/nld_signal.h
deleted file mode 100644
index 8805f9a8914..00000000000
--- a/src/lib/netlist/devices/nld_signal.h
+++ /dev/null
@@ -1,119 +0,0 @@
-// license:GPL-2.0+
-// copyright-holders:Couriersud
-/*
- * nld_signal.h
- *
- */
-
-#ifndef NLD_SIGNAL_H_
-#define NLD_SIGNAL_H_
-
-#include "nl_base.h"
-
-// ----------------------------------------------------------------------------------------
-// MACROS
-// ----------------------------------------------------------------------------------------
-
-#define NETLIB_SIGNAL(_name, _num_input, _check, _invert) \
- class NETLIB_NAME(_name) : public net_signal_t<_num_input, _check, _invert> \
- { \
- public: \
- NETLIB_NAME(_name) (netlist_t &anetlist, const pstring &name) \
- : net_signal_t<_num_input, _check, _invert>(anetlist, name) { } \
- }
-
-NETLIB_NAMESPACE_DEVICES_START()
-
-// ----------------------------------------------------------------------------------------
-// net_signal_t
-// ----------------------------------------------------------------------------------------
-
-template <int _numdev, int _check, int _invert>
-class net_signal_t : public device_t
-{
-public:
- net_signal_t(netlist_t &anetlist, const pstring &name)
- : device_t(anetlist, name), m_active(1)
- {
- }
-
- void start() override
- {
- const char *sIN[8] = { "A", "B", "C", "D", "E", "F", "G", "H" };
-
- register_output("Q", m_Q[0]);
- for (int i=0; i < _numdev; i++)
- {
- register_input(sIN[i], m_I[i]);
- }
- save(NLNAME(m_active));
- }
-
- void reset() override
- {
- m_Q[0].initial(0);
- m_active = 1;
- }
-
- ATTR_HOT inline netlist_sig_t process()
- {
- for (int i = 0; i< _numdev; i++)
- {
- this->m_I[i].activate();
- if (INPLOGIC(this->m_I[i]) == _check)
- {
- for (int j = 0; j < i; j++)
- this->m_I[j].inactivate();
- for (int j = i + 1; j < _numdev; j++)
- this->m_I[j].inactivate();
- return _check ^ (1 ^ _invert);
- }
- }
- return _check ^ _invert;
- }
-
- ATTR_HOT virtual void inc_active() override
- {
- const netlist_time times[2] = { NLTIME_FROM_NS(15), NLTIME_FROM_NS(22)};
- nl_assert(netlist().use_deactivate());
- if (++m_active == 1)
- {
- // FIXME: need to activate before time is accessed !
- netlist_time mt = netlist_time::zero;
- for (int i = 0; i< _numdev; i++)
- {
- if (this->m_I[i].net().time() > mt)
- mt = this->m_I[i].net().time();
- }
- netlist_sig_t r = process();
- m_Q[0].net().set_Q_time(r, mt + times[r]);
- }
- }
-
- ATTR_HOT virtual void dec_active() override
- {
- nl_assert(netlist().use_deactivate());
- if (--m_active == 0)
- {
- for (int i = 0; i< _numdev; i++)
- m_I[i].inactivate();
- }
- }
-
- virtual void update() override
- {
- const netlist_time times[2] = { NLTIME_FROM_NS(15), NLTIME_FROM_NS(22)};
-
- netlist_sig_t r = process();
- OUTLOGIC(this->m_Q[0], r, times[r]);
- }
-
-public:
- logic_input_t m_I[_numdev];
- logic_output_t m_Q[1];
- INT32 m_active;
-};
-
-NETLIB_NAMESPACE_DEVICES_END()
-
-#endif /* NLD_SIGNAL_H_ */