summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist/core/devices.h
diff options
context:
space:
mode:
author couriersud <couriersud@gmx.org>2020-09-09 23:21:46 +0200
committer couriersud <couriersud@gmx.org>2020-09-09 23:21:46 +0200
commit0a87476e1a950dd6e51534b25f15f0b00d0cbb2b (patch)
treecf2e48d5d62992eee7efd77fe7f6391ee1698df8 /src/lib/netlist/core/devices.h
parent405f1e261864ed28e39683ebc4959910d3e0f3cb (diff)
netlist: Implement voltage dependent timing for CD4006
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;