diff options
author | 2022-05-22 19:05:22 +0200 | |
---|---|---|
committer | 2022-05-23 03:05:22 +1000 | |
commit | 034e0d2c87a16e90783f742f39850dc7d85def1f (patch) | |
tree | dfb9ed88064a3a21d5a02672de239290275ff45f /src/lib/netlist/nl_setup.cpp | |
parent | ceafeebd499737b29b0812923c676638d9f795ef (diff) |
netlist: Address comments from PR #9794, partially fix issue #9801 (#9805)
- added cstddef to includes in ppmf.h
- more explicit comments in ppmf.h
- Fixed more typos and improved readiability
Diffstat (limited to 'src/lib/netlist/nl_setup.cpp')
-rw-r--r-- | src/lib/netlist/nl_setup.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/netlist/nl_setup.cpp b/src/lib/netlist/nl_setup.cpp index a757456f6bf..7e8e151e01b 100644 --- a/src/lib/netlist/nl_setup.cpp +++ b/src/lib/netlist/nl_setup.cpp @@ -971,7 +971,7 @@ bool setup_t::connect_input_input(detail::core_terminal_t &t1, detail::core_term if (t1.has_net()) { if (t1.net().is_rail_net()) - ret = connect(t2, t1.net().railterminal()); + ret = connect(t2, t1.net().rail_terminal()); if (!ret) { for (auto & t : nlstate().core_terms(t1.net())) @@ -986,7 +986,7 @@ bool setup_t::connect_input_input(detail::core_terminal_t &t1, detail::core_term if (!ret && t2.has_net()) { if (t2.net().is_rail_net()) - ret = connect(t1, t2.net().railterminal()); + ret = connect(t1, t2.net().rail_terminal()); if (!ret) { for (auto & t : nlstate().core_terms(t2.net())) @@ -1491,8 +1491,8 @@ const logic_family_desc_t *setup_t::family_from_model(const pstring &model) auto ret = plib::make_unique<logic_family_std_proxy_t, host_arena>(ft); - ret->m_low_thresh_PCNT = modv.m_IVL(); - ret->m_high_thresh_PCNT = modv.m_IVH(); + ret->m_low_threshold_PCNT = modv.m_IVL(); + ret->m_high_threshold_PCNT = modv.m_IVH(); ret->m_low_VO = modv.m_OVL(); ret->m_high_VO = modv.m_OVH(); ret->m_R_low = modv.m_ORL(); @@ -1711,14 +1711,14 @@ plib::istream_uptr source_string_t::stream([[maybe_unused]] const pstring &name) return ret; } -plib::istream_uptr source_mem_t::stream( [[maybe_unused]] const pstring &name) +plib::istream_uptr source_mem_t::stream([[maybe_unused]] const pstring &name) { plib::istream_uptr ret(std::make_unique<std::istringstream>(m_str, std::ios_base::binary), name); ret->imbue(std::locale::classic()); return ret; } -plib::istream_uptr source_file_t::stream( [[maybe_unused]] const pstring &name) +plib::istream_uptr source_file_t::stream([[maybe_unused]] const pstring &name) { auto f = std::make_unique<plib::ifstream>(plib::filesystem::u8path(m_filename)); if (f->is_open()) @@ -1729,7 +1729,7 @@ plib::istream_uptr source_file_t::stream( [[maybe_unused]] const pstring &name) return plib::istream_uptr(); } -plib::istream_uptr source_pattern_t::stream( [[maybe_unused]] const pstring &name) +plib::istream_uptr source_pattern_t::stream([[maybe_unused]] const pstring &name) { pstring filename = plib::pfmt(m_pattern)(m_force_lowercase ? plib::lcase(name) : name); auto f = std::make_unique<plib::ifstream>(plib::filesystem::u8path(filename)); @@ -1753,7 +1753,7 @@ bool source_proc_t::parse(nlparse_t &setup, const pstring &name) return false; } -plib::istream_uptr source_proc_t::stream( [[maybe_unused]] const pstring &name) +plib::istream_uptr source_proc_t::stream([[maybe_unused]] const pstring &name) { return plib::istream_uptr(); } |