summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist/nl_base.cpp
diff options
context:
space:
mode:
author couriersud <couriersud@gmx.org>2019-11-15 21:55:41 +0100
committer couriersud <couriersud@gmx.org>2019-11-15 22:16:37 +0100
commitbcfa9eae6f16c35254a5cee1fb992f988c0a86ce (patch)
tree8b42ff7a46d9be7b73e2c5b7170afe7c27d15180 /src/lib/netlist/nl_base.cpp
parentdf143446696cee294a6ffd7ea6bc0b09a43d9c02 (diff)
netlist: maintenance and bug fixes, remove DUMMY_INPUT. [Couriersud]
- Removed DUMMY_INPUT. NC (not connected) pins should now use NC_PIN. If a NC_PIN is actually connected, an error will be logged and validation will fail. - Enabled "extended" validation. This will catch now if power terminals are not connected. - Added const and noexcept where appropriate. - Removed dead code. - Fixed the 7414 Schmitt-Trigger device to use nld_power_pins
Diffstat (limited to 'src/lib/netlist/nl_base.cpp')
-rw-r--r--src/lib/netlist/nl_base.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/netlist/nl_base.cpp b/src/lib/netlist/nl_base.cpp
index 1213636d837..c161c9ea80b 100644
--- a/src/lib/netlist/nl_base.cpp
+++ b/src/lib/netlist/nl_base.cpp
@@ -585,7 +585,7 @@ namespace netlist
state().setup().register_alias_nofqn(alias, aliased_fqn);
}
- void device_t::connect(detail::core_terminal_t &t1, detail::core_terminal_t &t2)
+ void device_t::connect(const detail::core_terminal_t &t1, const detail::core_terminal_t &t2)
{
state().setup().register_link_fqn(t1.name(), t2.name());
}
@@ -621,9 +621,9 @@ namespace netlist
dev.set_logic_family(dev.state().setup().family_from_model(desc));
}
- detail::family_setter_t::family_setter_t(core_device_t &dev, const logic_family_desc_t *desc)
+ detail::family_setter_t::family_setter_t(core_device_t &dev, const logic_family_desc_t &desc)
{
- dev.set_logic_family(desc);
+ dev.set_logic_family(&desc);
}
// ----------------------------------------------------------------------------------------
@@ -787,7 +787,7 @@ namespace netlist
net().solver()->update_forced();
}
- void terminal_t::schedule_solve_after(netlist_time after)
+ void terminal_t::schedule_solve_after(netlist_time after) noexcept
{
// Nets may belong to railnets which do not have a solver attached
if (this->has_net())
@@ -896,14 +896,14 @@ namespace netlist
}
- pstring param_t::get_initial(const device_t &dev, bool *found)
+ pstring param_t::get_initial(const device_t &dev, bool *found) const
{
pstring res = dev.state().setup().get_initial_param_val(this->name(), "");
*found = (res != "");
return res;
}
- const pstring param_model_t::type()
+ pstring param_model_t::type()
{
return state().setup().models().type(str());
}