summaryrefslogtreecommitdiffstats
path: root/src/lib/netlist/devices/nld_4316.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/netlist/devices/nld_4316.cpp')
-rw-r--r--src/lib/netlist/devices/nld_4316.cpp18
1 files changed, 8 insertions, 10 deletions
diff --git a/src/lib/netlist/devices/nld_4316.cpp b/src/lib/netlist/devices/nld_4316.cpp
index c8ee1a90643..b9758ff036b 100644
--- a/src/lib/netlist/devices/nld_4316.cpp
+++ b/src/lib/netlist/devices/nld_4316.cpp
@@ -5,10 +5,9 @@
*
*/
-#include "nld_4316.h"
-#include "netlist/analog/nlid_twoterm.h"
-#include "netlist/solver/nld_solver.h"
#include "nlid_cmos.h"
+#include "../analog/nlid_twoterm.h"
+#include "nld_4316.h"
namespace netlist { namespace devices {
@@ -38,20 +37,19 @@ namespace netlist { namespace devices {
NETLIB_RESET(CD4316_GATE)
{
- m_R.set_R(plib::constants<nl_double>::one() / exec().gmin());
+ m_R.set_R(NL_FCONST(1.0) / netlist().gmin());
}
NETLIB_UPDATE(CD4316_GATE)
{
- m_R.update();
+ m_R.update_dev();
if (m_S() && !m_E())
m_R.set_R(m_base_r());
else
- m_R.set_R(plib::constants<nl_double>::one() / exec().gmin());
- m_R.solve_later(NLTIME_FROM_NS(1));
+ m_R.set_R(NL_FCONST(1.0) / netlist().gmin());
+ m_R.m_P.schedule_solve_after(NLTIME_FROM_NS(1));
}
- NETLIB_DEVICE_IMPL(CD4316_GATE, "CD4316_GATE", "")
+ NETLIB_DEVICE_IMPL(CD4316_GATE)
-} // namespace devices
- } // namespace netlist
+} } // namesapce netlist::devices