summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices
diff options
context:
space:
mode:
author couriersud <couriersud@gmx.org>2019-11-14 22:59:07 +0100
committer couriersud <couriersud@gmx.org>2019-11-14 22:59:07 +0100
commitdc4fa0420182bffb9be8d5e9f654d94b9aafe6b1 (patch)
treeeeda982478b0204dc16ed77eb2e0dd8b79ceb0e5 /src/devices
parentce3c38914d4b710e2e40c212af0d61aa4b328de0 (diff)
netlist: Proxy and power terminal hack removal. [Couriersud]
- Devices ttlhigh and ttlhow are no longer automatically created. - All logic input devices (e.g. TTL_INPUT, LOGIC_INPUT) now need to have their power terminals (VCC, GND) connected. This opens the route for more appropriate proxy devices but comes at a cost. If the connections are omitted your circuit will not work as expected. Example: LOGIC_INPUT(I_SD0, 1, "AY8910PORT") NET_C(VCC, I_SD0.VCC) NET_C(GND, I_SD0.GND) - Updated all netlists. - Removed proxy information from terminal objects. This was replaced by a lookup hash whose life-span does not exceed netlest setup. These changes enable the removal of a number of hacks from the source going forward.
Diffstat (limited to 'src/devices')
-rw-r--r--src/devices/machine/netlist.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/devices/machine/netlist.cpp b/src/devices/machine/netlist.cpp
index 8091438823b..3af4e05b5b0 100644
--- a/src/devices/machine/netlist.cpp
+++ b/src/devices/machine/netlist.cpp
@@ -16,6 +16,7 @@
#include "netlist/nl_factory.h"
#include "netlist/nl_parser.h"
#include "netlist/devices/net_lib.h"
+#include "netlist/devices/nlid_system.h"
#include "netlist/plib/palloc.h"
@@ -225,6 +226,7 @@ public:
, m_in(*this, "IN")
, m_cpu_device(nullptr)
, m_last(*this, "m_last", 0)
+ , m_supply(*this)
{
auto *nl = dynamic_cast<netlist_mame_device::netlist_mame_t *>(&state());
if (nl != nullptr)
@@ -261,6 +263,7 @@ private:
std::unique_ptr<netlist_mame_logic_output_device::output_delegate> m_callback; // TODO: change to std::optional for C++17
netlist_mame_cpu_device *m_cpu_device;
netlist::state_var<netlist::netlist_sig_t> m_last;
+ netlist::devices::NETLIB_NAME(power_pins) m_supply;
};