diff options
Diffstat (limited to 'src/lib/netlist/devices/nld_74ls629.cpp')
-rw-r--r-- | src/lib/netlist/devices/nld_74ls629.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/lib/netlist/devices/nld_74ls629.cpp b/src/lib/netlist/devices/nld_74ls629.cpp index 42c9292315c..f95da603e7e 100644 --- a/src/lib/netlist/devices/nld_74ls629.cpp +++ b/src/lib/netlist/devices/nld_74ls629.cpp @@ -85,7 +85,7 @@ namespace netlist , m_ENQ(*this, "ENQ") , m_RNG(*this, "RNG") , m_FC(*this, "FC") - , m_CAP(*this, "CAP", 1e-6) + , m_CAP(*this, "CAP", plib::constants<nl_fptype>::cast(1e-6)) { register_subalias("GND", m_R_FC.m_N); @@ -98,8 +98,8 @@ namespace netlist NETLIB_RESETI() { - m_R_FC.set_R(90000.0); - m_R_RNG.set_R(90000.0); + m_R_FC.set_R( plib::constants<nl_fptype>::cast(90000.0)); + m_R_RNG.set_R(plib::constants<nl_fptype>::cast(90000.0)); m_clock.reset(); } NETLIB_UPDATEI(); @@ -179,16 +179,16 @@ namespace netlist nl_fptype v_rng = m_RNG(); /* coefficients */ - const nl_fptype k1 = 1.9904769024796283E+03; - const nl_fptype k2 = 1.2070059213983407E+03; - const nl_fptype k3 = 1.3266985579561108E+03; - const nl_fptype k4 = -1.5500979825922698E+02; - const nl_fptype k5 = 2.8184536266938172E+00; - const nl_fptype k6 = -2.3503421582744556E+02; - const nl_fptype k7 = -3.3836786704527788E+02; - const nl_fptype k8 = -1.3569136703258670E+02; - const nl_fptype k9 = 2.9914575453819188E+00; - const nl_fptype k10 = 1.6855569086173170E+00; + const nl_fptype k1 = plib::constants<nl_fptype>::cast( 1.9904769024796283E+03); + const nl_fptype k2 = plib::constants<nl_fptype>::cast( 1.2070059213983407E+03); + const nl_fptype k3 = plib::constants<nl_fptype>::cast( 1.3266985579561108E+03); + const nl_fptype k4 = plib::constants<nl_fptype>::cast(-1.5500979825922698E+02); + const nl_fptype k5 = plib::constants<nl_fptype>::cast( 2.8184536266938172E+00); + const nl_fptype k6 = plib::constants<nl_fptype>::cast(-2.3503421582744556E+02); + const nl_fptype k7 = plib::constants<nl_fptype>::cast(-3.3836786704527788E+02); + const nl_fptype k8 = plib::constants<nl_fptype>::cast(-1.3569136703258670E+02); + const nl_fptype k9 = plib::constants<nl_fptype>::cast( 2.9914575453819188E+00); + const nl_fptype k10 = plib::constants<nl_fptype>::cast( 1.6855569086173170E+00); /* scale due to input resistance */ @@ -212,7 +212,7 @@ namespace netlist // FIXME: we need a possibility to remove entries from queue ... // or an exact model ... - m_clock.m_inc = netlist_time::from_fp<nl_fptype>(0.5 / freq); + m_clock.m_inc = netlist_time::from_fp(plib::constants<nl_fptype>::half() / freq); //m_clock.update(); //NL_VERBOSE_OUT(("{1} {2} {3} {4}\n", name(), v_freq, v_rng, freq)); |