summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist/nl_interface.h
diff options
context:
space:
mode:
author couriersud <couriersud@gmx.org>2020-07-05 15:49:59 +0200
committer couriersud <couriersud@gmx.org>2020-07-05 15:49:59 +0200
commite339a280f4292aa3dc74baffb0c8a22018a14711 (patch)
treef0b33f8fe51a18ab96d213d166af7b66acbf4ebc /src/lib/netlist/nl_interface.h
parent9e86f5e86612c4f61b27e5ada86ac9bdebcbc272 (diff)
netlist: remove soft reset support.
* Electronic circuits and base components like resistors or capacitors do not have a reset line. You can use them to create reset circuits. There is thus no point to support soft reset, the equivalent to pressing the reset button. * Fixed some bugs around reset and start up logic. * This also fixes the "scramble F3" crash.
Diffstat (limited to 'src/lib/netlist/nl_interface.h')
-rw-r--r--src/lib/netlist/nl_interface.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/lib/netlist/nl_interface.h b/src/lib/netlist/nl_interface.h
index dba7bd5248a..fc87855d014 100644
--- a/src/lib/netlist/nl_interface.h
+++ b/src/lib/netlist/nl_interface.h
@@ -149,14 +149,13 @@ namespace netlist
, m_param_offsets(*this, 0, "OFFSET{}", 0.0)
{
connect(m_feedback, m_Q);
+ for (auto & elem : m_buffers)
+ elem = nullptr;
}
protected:
NETLIB_RESETI()
{
- m_pos = 0;
- for (auto & elem : m_buffers)
- elem = nullptr;
}
NETLIB_UPDATEI()
@@ -232,8 +231,8 @@ namespace netlist
object_array_t<param_str_t, MAX_INPUT_CHANNELS> m_param_names;
object_array_t<param_fp_t, MAX_INPUT_CHANNELS> m_param_mults;
object_array_t<param_fp_t, MAX_INPUT_CHANNELS> m_param_offsets;
- std::array<param_fp_t *, MAX_INPUT_CHANNELS> m_params;
- std::array<T *, MAX_INPUT_CHANNELS> m_buffers;
+ std::array<param_fp_t *, MAX_INPUT_CHANNELS> m_params;
+ std::array<T *, MAX_INPUT_CHANNELS> m_buffers;
};
} // namespace interface