mirror of
https://github.com/holub/mame
synced 2025-04-21 07:52:35 +03:00
netlist: Fix regression. (nw)
This commit is contained in:
parent
1290a5d0bb
commit
24e192fc86
@ -62,6 +62,7 @@ namespace netlist
|
||||
{
|
||||
m_R.set_R(R_ON);
|
||||
}
|
||||
m_R.solve_later();
|
||||
|
||||
}
|
||||
|
||||
|
@ -92,6 +92,15 @@ void NETLIB_NAME(twoterm)::solve_now()
|
||||
m_N.solve_now();
|
||||
}
|
||||
|
||||
void NETLIB_NAME(twoterm)::solve_later(netlist_time delay)
|
||||
{
|
||||
/* we only need to call the non-rail terminal */
|
||||
if (m_P.has_net() && !m_P.net().isRailNet())
|
||||
m_P.schedule_solve_after(delay);
|
||||
else if (m_N.has_net() && !m_N.net().isRailNet())
|
||||
m_N.schedule_solve_after(delay);
|
||||
}
|
||||
|
||||
|
||||
NETLIB_UPDATE(twoterm)
|
||||
{
|
||||
|
@ -85,6 +85,8 @@ public:
|
||||
|
||||
void solve_now();
|
||||
|
||||
void solve_later(netlist_time delay = netlist_time::from_nsec(1));
|
||||
|
||||
void set(const nl_double G, const nl_double V, const nl_double I)
|
||||
{
|
||||
/* GO, GT, I */
|
||||
|
Loading…
Reference in New Issue
Block a user