KiCad PCB EDA Suite
|
#include <sim_library_ibis.h>
Public Member Functions | |
void | ReadFile (const wxString &aFilePath, REPORTER &aReporter) override |
Read library from a source file. | |
bool | InitModel (SIM_MODEL_IBIS &aModel, wxString aCompName) |
bool | isPinDiff (const std::string &aComp, const std::string &aPinNumber) const |
SIM_MODEL * | FindModel (const std::string &aModelName) const |
std::vector< MODEL > | GetModels () const |
std::string | GetFilePath () const |
Static Public Member Functions | |
static std::unique_ptr< SIM_LIBRARY > | Create (const wxString &aFilePath, bool aForceFullParse, REPORTER &aReporter, const std::function< wxString(const wxString &, const wxString &)> &aResolver) |
Read library from a source file (e.g. | |
Static Public Attributes | |
static constexpr auto | PIN_FIELD = "Sim.Ibis.Pin" |
static constexpr auto | MODEL_FIELD = "Sim.Ibis.Model" |
static constexpr auto | DIFF_FIELD = "Sim.Ibis.Diff" |
static constexpr auto | LIBRARY_FIELD = "Sim.Library" |
static constexpr auto | NAME_FIELD = "Sim.Name" |
Protected Attributes | |
KIBIS | m_kibis |
std::vector< std::pair< std::string, std::string > > | m_diffPins |
std::vector< std::string > | m_modelNames |
std::vector< std::unique_ptr< SIM_MODEL > > | m_models |
std::function< wxString(const wxString &, const wxString &)> | m_pathResolver |
std::string | m_filePath |
Friends | |
class | SIM_MODEL_IBIS |
Definition at line 31 of file sim_library_ibis.h.
|
staticinherited |
Read library from a source file (e.g.
in Spice format), and return a newly constructed object of an appropriate subclass.
aFilePath | Path to the file. |
aReporter | The reporter the library reports to |
aForceFullParse | Caller requires fully parsed models. If false fallback models can be generarted for performance. |
Definition at line 33 of file sim_library.cpp.
References library.
Referenced by SIM_LIB_MGR::CreateModel(), and SIM_LIB_MGR::SetLibrary().
|
inherited |
Definition at line 56 of file sim_library.cpp.
References SIM_LIBRARY::m_modelNames, and SIM_LIBRARY::m_models.
Referenced by SPICE_MODEL_PARSER::ReadModel(), and SPICE_MODEL_PARSER::ReadType().
|
inlineinherited |
Definition at line 74 of file sim_library.h.
References SIM_LIBRARY::m_filePath.
|
inherited |
Definition at line 70 of file sim_library.cpp.
References SIM_LIBRARY::m_modelNames, and SIM_LIBRARY::m_models.
bool SIM_LIBRARY_IBIS::InitModel | ( | SIM_MODEL_IBIS & | aModel, |
wxString | aCompName | ||
) |
Definition at line 63 of file sim_library_ibis.cpp.
References KIBIS_PIN::isDiffPin(), SIM_MODEL_IBIS::m_componentName, KIBIS::m_components, m_diffPins, SIM_MODEL_IBIS::m_ibisPins, m_kibis, KIBIS_COMPONENT::m_name, KIBIS_PIN::m_pinNumber, KIBIS_COMPONENT::m_pins, and KIBIS_PIN::m_signalName.
Referenced by ReadFile().
bool SIM_LIBRARY_IBIS::isPinDiff | ( | const std::string & | aComp, |
const std::string & | aPinNumber | ||
) | const |
Definition at line 86 of file sim_library_ibis.cpp.
References m_diffPins.
Referenced by DIALOG_SIM_MODEL< T >::onPinCombobox().
|
overridevirtual |
Read library from a source file.
Must be in the format appropriate to the subclass, e.g. Spice for SIM_LIBRARY_SPICE).
aFilePath | Path to the file. |
IO_ERROR | on read or parsing error. |
Implements SIM_LIBRARY.
Definition at line 32 of file sim_library_ibis.cpp.
References _, SIM_MODEL::Create(), InitModel(), KIBIS::m_components, m_kibis, SIM_LIBRARY::m_modelNames, SIM_LIBRARY::m_models, KIBIS_COMPONENT::m_name, KIBIS_ANY::m_valid, SIM_LIBRARY::ReadFile(), REPORTER::Report(), RPT_SEVERITY_ERROR, and SCH_PIN::SetNumber().
|
friend |
Definition at line 33 of file sim_library_ibis.h.
|
staticconstexpr |
Definition at line 38 of file sim_library_ibis.h.
Referenced by SPICE_GENERATOR_IBIS::IbisDevice(), SIM_MODEL::ReadDataFields(), DIALOG_SIM_MODEL< T >::TransferDataFromWindow(), and DIALOG_SIM_MODEL< T >::TransferDataToWindow().
|
staticconstexprinherited |
Definition at line 35 of file sim_library.h.
Referenced by SIM_LIB_MGR::CreateModel(), SPICE_GENERATOR_IBIS::IbisDevice(), DIALOG_SIM_MODEL< T >::TransferDataFromWindow(), and DIALOG_SIM_MODEL< T >::TransferDataToWindow().
|
protected |
Definition at line 48 of file sim_library_ibis.h.
Referenced by InitModel(), and isPinDiff().
|
protectedinherited |
Definition at line 82 of file sim_library.h.
Referenced by SIM_LIBRARY::GetFilePath(), and SIM_LIBRARY::ReadFile().
|
mutableprotected |
Definition at line 47 of file sim_library_ibis.h.
Referenced by SIM_MODEL_IBIS::ChangePin(), InitModel(), and ReadFile().
|
protectedinherited |
Definition at line 77 of file sim_library.h.
Referenced by SIM_LIBRARY::FindModel(), SIM_LIBRARY::GetModels(), ReadFile(), and SPICE_LIBRARY_PARSER::ReadFile().
|
protectedinherited |
Definition at line 78 of file sim_library.h.
Referenced by SIM_LIBRARY::FindModel(), SIM_LIBRARY::GetModels(), ReadFile(), and SPICE_LIBRARY_PARSER::ReadFile().
|
protectedinherited |
Definition at line 80 of file sim_library.h.
Referenced by SPICE_LIBRARY_PARSER::parseFile().
|
staticconstexpr |
Definition at line 37 of file sim_library_ibis.h.
Referenced by SPICE_GENERATOR_IBIS::IbisDevice(), DIALOG_SIM_MODEL< T >::TransferDataFromWindow(), and DIALOG_SIM_MODEL< T >::TransferDataToWindow().
|
staticconstexprinherited |
Definition at line 36 of file sim_library.h.
Referenced by SIM_LIB_MGR::CreateModel(), SPICE_GENERATOR_IBIS::IbisDevice(), DIALOG_SIM_MODEL< T >::loadLibrary(), DIALOG_SIM_MODEL< T >::TransferDataFromWindow(), and DIALOG_SIM_MODEL< T >::TransferDataToWindow().
|
staticconstexpr |
Definition at line 36 of file sim_library_ibis.h.
Referenced by SPICE_GENERATOR_IBIS::IbisDevice(), DIALOG_SIM_MODEL< T >::TransferDataFromWindow(), and DIALOG_SIM_MODEL< T >::TransferDataToWindow().