summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist/core/devices.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/netlist/core/devices.h')
-rw-r--r--src/lib/netlist/core/devices.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/lib/netlist/core/devices.h b/src/lib/netlist/core/devices.h
index 36631c5913d..15a3f40dabc 100644
--- a/src/lib/netlist/core/devices.h
+++ b/src/lib/netlist/core/devices.h
@@ -75,6 +75,12 @@ namespace netlist
{
}
+ explicit nld_power_pins(device_t &owner, nldelegate delegate)
+ : m_VCC(owner, owner.logic_family()->vcc_pin(), delegate)
+ , m_GND(owner, owner.logic_family()->gnd_pin(), delegate)
+ {
+ }
+
// Some devices like the 74LS629 have two pairs of supply pins.
explicit nld_power_pins(device_t &owner,
const pstring &vcc, const pstring &gnd)
@@ -83,6 +89,15 @@ namespace netlist
{
}
+ // Some devices like the 74LS629 have two pairs of supply pins.
+ explicit nld_power_pins(device_t &owner,
+ const pstring &vcc, const pstring &gnd,
+ nldelegate delegate)
+ : m_VCC(owner, vcc, delegate)
+ , m_GND(owner, gnd, delegate)
+ {
+ }
+
const analog_input_t &VCC() const noexcept
{
return m_VCC;