summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist/devices/nld_system.cpp
diff options
context:
space:
mode:
author couriersud <couriersud@gmx.org>2020-07-12 20:28:52 +0200
committer couriersud <couriersud@gmx.org>2020-07-12 20:29:04 +0200
commit6328b0e9952dfe2b44d59be271fe159c7b335f25 (patch)
treec554d81b3a9c6b050709dbd357e1078acf9d351a /src/lib/netlist/devices/nld_system.cpp
parent54fe9d1678480afa2802e9e9e8c6ef19f1c9cb53 (diff)
netlist: finished input handler refactoring.
* all inputs now explicitly specify a signal handler.
Diffstat (limited to 'src/lib/netlist/devices/nld_system.cpp')
-rw-r--r--src/lib/netlist/devices/nld_system.cpp40
1 files changed, 0 insertions, 40 deletions
diff --git a/src/lib/netlist/devices/nld_system.cpp b/src/lib/netlist/devices/nld_system.cpp
index c987ef7065a..78b5a3af923 100644
--- a/src/lib/netlist/devices/nld_system.cpp
+++ b/src/lib/netlist/devices/nld_system.cpp
@@ -18,46 +18,6 @@ namespace devices
// ----------------------------------------------------------------------------------------
- // ----------------------------------------------------------------------------------------
- // extclock
- // ----------------------------------------------------------------------------------------
-
- NETLIB_RESET(extclock)
- {
- m_cnt = 0;
- m_off = netlist_time::from_fp<decltype(m_offset())>(m_offset());
- m_feedback.set_delegate(NETLIB_DELEGATE(update));
- }
-
- NETLIB_HANDLER(extclock, clk2)
- {
- m_Q.push((m_cnt & 1) ^ 1, m_inc[m_cnt]);
- if (++m_cnt >= m_size)
- m_cnt = 0;
- }
-
- NETLIB_HANDLER(extclock, clk2_pow2)
- {
- m_Q.push((m_cnt & 1) ^ 1, m_inc[m_cnt]);
- m_cnt = (++m_cnt) & (m_size-1);
- }
-
- NETLIB_UPDATE(extclock)
- {
- m_Q.push((m_cnt & 1) ^ 1, m_inc[m_cnt] + m_off());
- m_off = netlist_time::zero();
- if (++m_cnt >= m_size)
- m_cnt = 0;
-
- // continue with optimized clock handlers ....
-
- if ((m_size & (m_size-1)) == 0) // power of 2?
- m_feedback.set_delegate(nldelegate(&NETLIB_NAME(extclock)::clk2_pow2, this));
- else
- m_feedback.set_delegate(nldelegate(&NETLIB_NAME(extclock)::clk2, this));
- }
-
-
NETLIB_DEVICE_IMPL(nc_pin, "NC_PIN", "")
NETLIB_DEVICE_IMPL(frontier, "FRONTIER_DEV", "+I,+G,+Q")
NETLIB_DEVICE_IMPL(function, "AFUNC", "N,FUNC")