KiCad PCB EDA Suite
|
#include <sim_model_ibis.h>
Public Member Functions | |
std::string | ModelName (const SPICE_ITEM &aItem) const override |
std::string | ModelLine (const SPICE_ITEM &aItem) const override |
std::vector< std::string > | CurrentNames (const SPICE_ITEM &aItem) const override |
std::string | IbisDevice (const SPICE_ITEM &aItem, const PROJECT &aProject, const wxString &aCacheDir, REPORTER &aReporter) const |
SPICE_GENERATOR (const SIM_MODEL &aModel) | |
virtual std::string | ItemLine (const SPICE_ITEM &aItem) const |
virtual std::string | ItemName (const SPICE_ITEM &aItem) const |
virtual std::string | ItemPins (const SPICE_ITEM &aItem) const |
virtual std::string | ItemModelName (const SPICE_ITEM &aItem) const |
virtual std::string | ItemParams () const |
virtual std::string | TunerCommand (const SPICE_ITEM &aItem, double aValue) const |
virtual std::string | Preview (const SPICE_ITEM &aItem) const |
Protected Member Functions | |
virtual std::vector< std::reference_wrapper< const SIM_MODEL_PIN > > | GetPins () const |
Protected Attributes | |
const SIM_MODEL & | m_model |
Definition at line 36 of file sim_model_ibis.h.
|
overridevirtual |
Reimplemented from SPICE_GENERATOR.
Definition at line 43 of file sim_model_ibis.cpp.
References SPICE_GENERATOR::GetPins(), SPICE_GENERATOR::ItemName(), and pin.
|
inlineprotectedvirtualinherited |
Reimplemented in SPICE_GENERATOR_SWITCH.
Definition at line 68 of file spice_generator.h.
References SIM_MODEL::GetPins(), and SPICE_GENERATOR::m_model.
Referenced by CurrentNames(), SPICE_GENERATOR_SUBCKT::CurrentNames(), SPICE_GENERATOR::ItemLine(), SPICE_GENERATOR::ItemPins(), and SPICE_GENERATOR_RAW_SPICE::ItemPins().
std::string SPICE_GENERATOR_IBIS::IbisDevice | ( | const SPICE_ITEM & | aItem, |
const PROJECT & | aProject, | ||
const wxString & | aCacheDir, | ||
REPORTER & | aReporter | ||
) | const |
Definition at line 54 of file sim_model_ibis.cpp.
References _, SIM_LIBRARY_IBIS::DIFF_FIELD, SPICE_ITEM::fields, SIM_MODEL::FindParam(), KIBIS::GetComponent(), SIM_MODEL::GetFieldValue(), WX_STRING_REPORTER::GetMessages(), KIBIS::GetModel(), KIBIS_COMPONENT::GetPin(), SIM_MODEL::GetType(), WX_STRING_REPORTER::HasMessage(), SIM_LIBRARY::LIBRARY_FIELD, KIBIS_WAVEFORM_PRBS::m_bitrate, KIBIS::m_cacheDir, KIBIS_PARAMETER::m_Cpin, KIBIS_WAVEFORM_RECTANGULAR::m_cycles, KIBIS_WAVEFORM_RECTANGULAR::m_delay, KIBIS_WAVEFORM_PRBS::m_delay, KIBIS_PARAMETER::m_Lpin, SPICE_GENERATOR::m_model, IBIS_ANY::m_reporter, KIBIS_PARAMETER::m_Rpin, KIBIS_PARAMETER::m_supply, KIBIS_WAVEFORM_RECTANGULAR::m_toff, KIBIS_WAVEFORM_RECTANGULAR::m_ton, KIBIS_ANY::m_valid, KIBIS_PARAMETER::m_waveform, SIM_LIBRARY_IBIS::MODEL_FIELD, SPICE_ITEM::modelName, SIM_LIBRARY::NAME_FIELD, path, SIM_LIBRARY_IBIS::PIN_FIELD, SIM_LIB_MGR::ResolveLibraryPath(), KIBIS_WAVEFORM_PRBS::SetBits(), KIBIS_PARAMETER::SetCornerFromString(), THROW_IO_ERROR, SIM_VALUE::ToDouble(), SIM_VALUE::ToInt(), KIBIS_PIN::writeSpiceDevice(), KIBIS_PIN::writeSpiceDiffDevice(), KIBIS_PIN::writeSpiceDiffDriver(), and KIBIS_PIN::writeSpiceDriver().
Referenced by NETLIST_EXPORTER_SPICE::readModel().
|
virtualinherited |
Reimplemented in SPICE_GENERATOR_BEHAVIORAL, SPICE_GENERATOR_IDEAL, SPICE_GENERATOR_SOURCE, and SPICE_GENERATOR_SWITCH.
Definition at line 116 of file spice_generator.cpp.
References SIM_MODEL::GetPinCount(), SPICE_GENERATOR::GetPins(), SPICE_GENERATOR::ItemModelName(), SPICE_GENERATOR::ItemName(), SPICE_GENERATOR::ItemParams(), SPICE_GENERATOR::ItemPins(), SPICE_GENERATOR::m_model, pin, SPICE_ITEM::pinNetNames, and SPICE_ITEM::pinNumbers.
Referenced by SPICE_GENERATOR_BEHAVIORAL::ItemLine(), SPICE_GENERATOR_IDEAL::ItemLine(), SPICE_GENERATOR_SOURCE::ItemLine(), SPICE_GENERATOR_SWITCH::ItemLine(), SPICE_GENERATOR::Preview(), SPICE_GENERATOR_RAW_SPICE::Preview(), and SPICE_GENERATOR_SPICE::Preview().
|
virtualinherited |
Reimplemented in SPICE_GENERATOR_L_MUTUAL, and SPICE_GENERATOR_RAW_SPICE.
Definition at line 176 of file spice_generator.cpp.
References SPICE_ITEM::modelName.
Referenced by SPICE_GENERATOR::ItemLine().
|
virtualinherited |
Reimplemented in SPICE_GENERATOR_RAW_SPICE.
Definition at line 142 of file spice_generator.cpp.
References SIM_MODEL::GetSpiceInfo(), SIM_MODEL::SPICE_INFO::itemType, SPICE_GENERATOR::m_model, and SPICE_ITEM::refName.
Referenced by SPICE_GENERATOR::CurrentNames(), CurrentNames(), SPICE_GENERATOR_NGSPICE::CurrentNames(), SPICE_GENERATOR_SUBCKT::CurrentNames(), SPICE_GENERATOR::ItemLine(), SCH_EDIT_FRAME::RefreshOperatingPointDisplay(), SCH_SYMBOL::ResolveTextVar(), SPICE_GENERATOR_IDEAL::TunerCommand(), SPICE_GENERATOR_R_POT::TunerCommand(), and SPICE_GENERATOR_SOURCE::TunerCommand().
|
virtualinherited |
Reimplemented in SPICE_GENERATOR_L_MUTUAL, SPICE_GENERATOR_RAW_SPICE, and SPICE_GENERATOR_SWITCH.
Definition at line 182 of file spice_generator.cpp.
References SIM_MODEL::PARAM::INFO::category, SIM_MODEL::PARAM::FLAGS, SIM_MODEL::GetParam(), SIM_MODEL::GetParamCount(), SIM_MODEL::PARAM::info, SIM_MODEL::PARAM::INFO::isSpiceInstanceParam, SPICE_GENERATOR::m_model, name, SIM_MODEL::PARAM::INFO::name, SIM_MODEL::PARAM::INFO::spiceInstanceName, SIM_VALUE::ToSpice(), and SIM_MODEL::PARAM::value.
Referenced by SPICE_GENERATOR::ItemLine().
|
virtualinherited |
Reimplemented in SPICE_GENERATOR_RAW_SPICE.
Definition at line 151 of file spice_generator.cpp.
References SPICE_GENERATOR::GetPins(), pin, SPICE_ITEM::pinNetNames, SPICE_ITEM::pinNumbers, and SPICE_ITEM::refName.
Referenced by SPICE_GENERATOR::ItemLine().
|
overridevirtual |
Reimplemented from SPICE_GENERATOR.
Definition at line 38 of file sim_model_ibis.cpp.
|
overridevirtual |
Reimplemented from SPICE_GENERATOR.
Definition at line 32 of file sim_model_ibis.cpp.
References SPICE_ITEM::baseModelName, and SPICE_ITEM::refName.
|
virtualinherited |
Reimplemented in SPICE_GENERATOR_RAW_SPICE, and SPICE_GENERATOR_SPICE.
Definition at line 226 of file spice_generator.cpp.
References SPICE_GENERATOR::ItemLine(), and SPICE_GENERATOR::ModelLine().
Referenced by DIALOG_SIM_MODEL< T >::updateModelCodeTab().
|
inline |
Definition at line 49 of file spice_generator.h.
|
virtualinherited |
Reimplemented in SPICE_GENERATOR_IDEAL, SPICE_GENERATOR_R_POT, and SPICE_GENERATOR_SOURCE.
Definition at line 213 of file spice_generator.cpp.
Referenced by SIMULATOR_FRAME_UI::applyTuners().
|
protectedinherited |
Definition at line 73 of file spice_generator.h.
Referenced by SPICE_GENERATOR_NGSPICE::CurrentNames(), SPICE_GENERATOR_SOURCE::getParamValueString(), SPICE_GENERATOR::GetPins(), SPICE_GENERATOR_SWITCH::GetPins(), IbisDevice(), SPICE_GENERATOR::ItemLine(), SPICE_GENERATOR_BEHAVIORAL::ItemLine(), SPICE_GENERATOR_IDEAL::ItemLine(), SPICE_GENERATOR_SOURCE::ItemLine(), SPICE_GENERATOR_SWITCH::ItemLine(), SPICE_GENERATOR::ItemName(), SPICE_GENERATOR_RAW_SPICE::ItemName(), SPICE_GENERATOR::ItemParams(), SPICE_GENERATOR_L_MUTUAL::ItemParams(), SPICE_GENERATOR_RAW_SPICE::ItemParams(), SPICE_GENERATOR_SWITCH::ItemParams(), SPICE_GENERATOR::ModelLine(), SPICE_GENERATOR_R_POT::ModelLine(), SPICE_GENERATOR_TLINE::ModelLine(), SPICE_GENERATOR::ModelName(), SPICE_GENERATOR_RAW_SPICE::Preview(), and SPICE_GENERATOR_SPICE::Preview().