diff options
Diffstat (limited to 'src/lib/netlist/devices/nld_4066.cpp')
| -rw-r--r-- | src/lib/netlist/devices/nld_4066.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/lib/netlist/devices/nld_4066.cpp b/src/lib/netlist/devices/nld_4066.cpp index a9d82b1e041..2936c692786 100644 --- a/src/lib/netlist/devices/nld_4066.cpp +++ b/src/lib/netlist/devices/nld_4066.cpp @@ -24,17 +24,25 @@ namespace netlist { } - NETLIB_RESETI() { } + NETLIB_RESETI(); NETLIB_UPDATEI(); public: NETLIB_SUB(vdd_vss) m_supply; - NETLIB_SUB(R) m_R; + NETLIB_SUB(R_base) m_R; analog_input_t m_control; param_double_t m_base_r; }; + NETLIB_RESET(CD4066_GATE) + { + // Start in off condition + // FIXME: is ROFF correct? + m_R.set_R(NL_FCONST(1.0) / netlist().gmin()); + + } + NETLIB_UPDATE(CD4066_GATE) { nl_double sup = (m_supply.vdd() - m_supply.vss()); |
