diff options
Diffstat (limited to 'src/lib/netlist/devices/nld_mm5837.cpp')
-rw-r--r-- | src/lib/netlist/devices/nld_mm5837.cpp | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/lib/netlist/devices/nld_mm5837.cpp b/src/lib/netlist/devices/nld_mm5837.cpp index ea987e68e4b..a813a779665 100644 --- a/src/lib/netlist/devices/nld_mm5837.cpp +++ b/src/lib/netlist/devices/nld_mm5837.cpp @@ -20,24 +20,20 @@ namespace netlist , m_VDD(*this, "1") , m_VGG(*this, "2") , m_VSS(*this, "4") - , m_FREQ(*this, "FREQ", 24000) + , m_FREQ(*this, "FREQ", 24000 * 2) , m_R_LOW(*this, "R_LOW", 1000) , m_R_HIGH(*this, "R_HIGH", 1000) /* clock */ , m_feedback(*this, "_FB") , m_Q(*this, "_Q") - , m_inc(netlist_time::from_hz(24000)) + , m_inc(netlist_time::from_hz(24000 * 2)) , m_shift(*this, "m_shift", 0) , m_is_timestep(false) { connect(m_feedback, m_Q); - - /* output */ - //register_term("_RV1", m_RV.m_P); - //register_term("_RV2", m_RV.m_N); + + // output connect(m_RV.m_N, m_VDD); - - /* device */ register_subalias("3", m_RV.m_P); } @@ -74,7 +70,7 @@ namespace netlist nlconst::zero(), nlconst::zero()); m_inc = netlist_time::from_fp(plib::reciprocal(m_FREQ())); - if (m_FREQ() < nlconst::magic(24000) || m_FREQ() > nlconst::magic(56000)) + if (m_FREQ() < nlconst::magic(24000*2) || m_FREQ() > nlconst::magic(56000*2)) log().warning(MW_FREQUENCY_OUTSIDE_OF_SPECS_1(m_FREQ())); m_shift = 0x1ffff; @@ -84,7 +80,7 @@ namespace netlist NETLIB_UPDATE_PARAM(MM5837_dip) { m_inc = netlist_time::from_fp(plib::reciprocal(m_FREQ())); - if (m_FREQ() < nlconst::magic(24000) || m_FREQ() > nlconst::magic(56000)) + if (m_FREQ() < nlconst::magic(24000*2) || m_FREQ() > nlconst::magic(56000*2)) log().warning(MW_FREQUENCY_OUTSIDE_OF_SPECS_1(m_FREQ())); } |