KiCad PCB EDA Suite
|
#include <sim_model_behavioral.h>
Public Member Functions | |
SIM_MODEL_BEHAVIORAL (TYPE aType) | |
std::vector< std::string > | GetPinNames () const override |
DEFINE_ENUM_CLASS_WITH_ITERATOR (DEVICE_T, NONE, R, C, L, K, TLINE, SW, D, NPN, PNP, NJFET, PJFET, NMES, PMES, NMOS, PMOS, V, I, E, F, G, H, SUBCKT, XSPICE, KIBIS, SPICE) struct DEVICE_INFO | |
DEFINE_ENUM_CLASS_WITH_ITERATOR (TYPE, NONE, R, R_POT, R_BEHAVIORAL, C, C_BEHAVIORAL, L, L_BEHAVIORAL, K, TLINE_Z0, TLINE_RLGC, SW_V, SW_I, D, NPN_VBIC, PNP_VBIC, NPN_GUMMELPOON, PNP_GUMMELPOON, NPN_HICUM2, PNP_HICUM2, NJFET_SHICHMANHODGES, PJFET_SHICHMANHODGES, NJFET_PARKERSKELLERN, PJFET_PARKERSKELLERN, NMES_STATZ, PMES_STATZ, NMES_YTTERDAL, PMES_YTTERDAL, NMES_HFET1, PMES_HFET1, NMES_HFET2, PMES_HFET2, NMOS_VDMOS, PMOS_VDMOS, NMOS_MOS1, PMOS_MOS1, NMOS_MOS2, PMOS_MOS2, NMOS_MOS3, PMOS_MOS3, NMOS_BSIM1, PMOS_BSIM1, NMOS_BSIM2, PMOS_BSIM2, NMOS_MOS6, PMOS_MOS6, NMOS_MOS9, PMOS_MOS9, NMOS_BSIM3, PMOS_BSIM3, NMOS_B4SOI, PMOS_B4SOI, NMOS_BSIM4, PMOS_BSIM4, NMOS_B3SOIFD, PMOS_B3SOIFD, NMOS_B3SOIDD, PMOS_B3SOIDD, NMOS_B3SOIPD, PMOS_B3SOIPD, NMOS_HISIM2, PMOS_HISIM2, NMOS_HISIMHV1, PMOS_HISIMHV1, NMOS_HISIMHV2, PMOS_HISIMHV2, V, V_SIN, V_PULSE, V_EXP, V_AM, V_SFFM, V_VCL, V_CCL, V_PWL, V_WHITENOISE, V_PINKNOISE, V_BURSTNOISE, V_RANDUNIFORM, V_RANDGAUSSIAN, V_RANDEXP, V_RANDPOISSON, V_BEHAVIORAL, I, I_SIN, I_PULSE, I_EXP, I_AM, I_SFFM, I_VCL, I_CCL, I_PWL, I_WHITENOISE, I_PINKNOISE, I_BURSTNOISE, I_RANDUNIFORM, I_RANDGAUSSIAN, I_RANDEXP, I_RANDPOISSON, I_BEHAVIORAL, SUBCKT, XSPICE, KIBIS_DEVICE, KIBIS_DRIVER_DC, KIBIS_DRIVER_RECT, KIBIS_DRIVER_PRBS, RAWSPICE) struct INFO | |
const SPICE_GENERATOR & | SpiceGenerator () const |
const SIM_MODEL_SERIALIZER & | Serializer () const |
void | ReadDataFields (const std::vector< SCH_FIELD > *aFields, const std::vector< SCH_PIN * > &aPins) |
void | WriteFields (std::vector< SCH_FIELD > &aFields) const |
SPICE_INFO | GetSpiceInfo () const |
void | AddPin (const SIM_MODEL_PIN &aPin) |
void | ClearPins () |
int | FindModelPinIndex (const std::string &aSymbolPinNumber) |
void | AddParam (const PARAM::INFO &aInfo) |
DEVICE_INFO | GetDeviceInfo () const |
INFO | GetTypeInfo () const |
DEVICE_T | GetDeviceType () const |
TYPE | GetType () const |
const SIM_MODEL * | GetBaseModel () const |
virtual void | SetBaseModel (const SIM_MODEL &aBaseModel) |
int | GetPinCount () const |
const SIM_MODEL_PIN & | GetPin (unsigned aIndex) const |
std::vector< std::reference_wrapper< const SIM_MODEL_PIN > > | GetPins () const |
void | AssignSymbolPinNumberToModelPin (int aPinIndex, const wxString &aSymbolPinNumber) |
virtual void | AssignSymbolPinNumberToModelPin (const std::string &aPinName, const wxString &aSymbolPinNumber) |
int | GetParamCount () const |
virtual const PARAM & | GetParam (unsigned aParamIndex) const |
virtual const PARAM * | GetTunerParam () const |
const PARAM * | FindParam (const std::string &aParamName) const |
const PARAM & | GetParamOverride (unsigned aParamIndex) const |
const PARAM & | GetBaseParam (unsigned aParamIndex) const |
void | SetParamValue (int aParamIndex, const std::string &aValue, SIM_VALUE::NOTATION aNotation=SIM_VALUE::NOTATION::SI) |
void | SetParamValue (const std::string &aParamName, const std::string &aValue, SIM_VALUE::NOTATION aNotation=SIM_VALUE::NOTATION::SI) |
virtual bool | HasAutofill () const |
virtual bool | HasPrimaryValue () const |
void | SetIsEnabled (bool aIsEnabled) |
bool | IsEnabled () const |
void | SetIsStoredInValue (bool aIsStoredInValue) |
bool | IsStoredInValue () const |
virtual void | SwitchSingleEndedDiff (bool aDiff) |
Static Public Member Functions | |
static DEVICE_INFO | DeviceInfo (DEVICE_T aDeviceType) |
static INFO | TypeInfo (TYPE aType) |
static SPICE_INFO | SpiceInfo (TYPE aType) |
static TYPE | ReadTypeFromFields (const std::vector< SCH_FIELD > &aFields, REPORTER &aReporter) |
static std::unique_ptr< SIM_MODEL > | Create (TYPE aType, const std::vector< SCH_PIN * > &aPins, REPORTER &aReporter) |
static std::unique_ptr< SIM_MODEL > | Create (const SIM_MODEL *aBaseModel, const std::vector< SCH_PIN * > &aPins, REPORTER &aReporter) |
static std::unique_ptr< SIM_MODEL > | Create (const SIM_MODEL *aBaseModel, const std::vector< SCH_PIN * > &aPins, const std::vector< SCH_FIELD > &aFields, REPORTER &aReporter) |
static std::unique_ptr< SIM_MODEL > | Create (const std::vector< SCH_FIELD > &aFields, const std::vector< SCH_PIN * > &aPins, bool aResolved, REPORTER &aReporter) |
static std::string | GetFieldValue (const std::vector< SCH_FIELD > *aFields, const wxString &aFieldName, bool aResolve=true) |
static void | SetFieldValue (std::vector< SCH_FIELD > &aFields, const wxString &aFieldName, const std::string &aValue) |
template<class T > | |
static bool | InferSimModel (T &aSymbol, std::vector< SCH_FIELD > *aFields, bool aResolve, SIM_VALUE_GRAMMAR::NOTATION aNotation, wxString *aDeviceType, wxString *aModelType, wxString *aModelParams, wxString *aPinMap) |
template<class T > | |
static void | MigrateSimModel (T &aSymbol, const PROJECT *aProject) |
Protected Member Functions | |
void | createPins (const std::vector< SCH_PIN * > &aSymbolPins) |
virtual int | doFindParam (const std::string &aParamName) const |
virtual void | doSetParamValue (int aParamIndex, const std::string &aValue) |
Static Protected Member Functions | |
static std::unique_ptr< SIM_MODEL > | Create (TYPE aType) |
Protected Attributes | |
std::vector< PARAM > | m_params |
std::vector< SIM_MODEL_PIN > | m_modelPins |
const SIM_MODEL * | m_baseModel |
std::unique_ptr< SIM_MODEL_SERIALIZER > | m_serializer |
Private Member Functions | |
bool | parseValueField (const std::string &aValueField) |
virtual bool | requiresSpiceModelLine (const SPICE_ITEM &aItem) const |
Static Private Member Functions | |
static PARAM::INFO | makeParams (const std::string &aName, const std::string &aDescription, const std::string &aUnit) |
Private Attributes | |
std::unique_ptr< SPICE_GENERATOR > | m_spiceGenerator |
const TYPE | m_type |
bool | m_isEnabled |
bool | m_isStoredInValue |
Definition at line 43 of file sim_model_behavioral.h.
SIM_MODEL_BEHAVIORAL::SIM_MODEL_BEHAVIORAL | ( | TYPE | aType | ) |
Definition at line 72 of file sim_model_behavioral.cpp.
References SIM_MODEL::AddParam(), and makeParams().
|
inherited |
Definition at line 729 of file sim_model.cpp.
References SIM_MODEL::PARAM::INFO::defaultValue, SIM_MODEL::PARAM::INFO::enumValues, and SIM_MODEL::m_params.
Referenced by SPICE_MODEL_PARSER_SUBCKT::ReadModel(), SIM_MODEL_SUBCKT::SetBaseModel(), SIM_MODEL_BEHAVIORAL(), SIM_MODEL_IBIS::SIM_MODEL_IBIS(), SIM_MODEL_IDEAL::SIM_MODEL_IDEAL(), SIM_MODEL_L_MUTUAL::SIM_MODEL_L_MUTUAL(), SIM_MODEL_NGSPICE::SIM_MODEL_NGSPICE(), SIM_MODEL_R_POT::SIM_MODEL_R_POT(), SIM_MODEL_SOURCE::SIM_MODEL_SOURCE(), SIM_MODEL_SPICE_FALLBACK::SIM_MODEL_SPICE_FALLBACK(), SIM_MODEL_SWITCH::SIM_MODEL_SWITCH(), and SIM_MODEL_TLINE::SIM_MODEL_TLINE().
|
inherited |
Definition at line 705 of file sim_model.cpp.
References SIM_MODEL::m_modelPins.
Referenced by SIM_MODEL::createPins(), SPICE_MODEL_PARSER_SUBCKT::ReadModel(), SIM_MODEL_SUBCKT::SetBaseModel(), and SIM_MODEL_IBIS::SwitchSingleEndedDiff().
|
virtualinherited |
Reimplemented in SIM_MODEL_RAW_SPICE, and SIM_MODEL_SPICE_FALLBACK.
Definition at line 766 of file sim_model.cpp.
References _, SIM_MODEL::m_modelPins, pin, and THROW_IO_ERROR.
|
inherited |
Definition at line 758 of file sim_model.cpp.
References SIM_MODEL::m_modelPins.
Referenced by SIM_MODEL_SPICE_FALLBACK::AssignSymbolPinNumberToModelPin(), SIM_MODEL_SERIALIZER::ParsePins(), DIALOG_SIM_MODEL< T >::removeOrphanedPinAssignments(), and DIALOG_SIM_MODEL< T >::TransferDataFromWindow().
|
inherited |
Definition at line 711 of file sim_model.cpp.
References SIM_MODEL::m_modelPins.
Referenced by SIM_MODEL_IBIS::SwitchSingleEndedDiff().
|
staticinherited |
Definition at line 552 of file sim_model.cpp.
References _, SIM_MODEL::Create(), SIM_MODEL::GetType(), IO_ERROR::Problem(), SIM_MODEL::ReadTypeFromFields(), REFERENCE_FIELD, REPORTER::Report(), and RPT_SEVERITY_ERROR.
|
staticinherited |
Definition at line 515 of file sim_model.cpp.
References SIM_MODEL::Create(), and SIM_MODEL::GetType().
|
staticinherited |
Definition at line 605 of file sim_model.cpp.
References _, SIM_MODEL::Create(), SIM_MODEL::GetFieldValue(), IO_ERROR::Problem(), SIM_MODEL::ReadTypeFromFields(), REFERENCE_FIELD, REPORTER::Report(), RPT_SEVERITY_ERROR, SIM_PARAMS_FIELD, SIM_PINS_FIELD, SIM_VALUE_FIELD, and IO_ERROR::What().
Definition at line 892 of file sim_model.cpp.
|
staticinherited |
Definition at line 496 of file sim_model.cpp.
References SIM_MODEL::Create().
Referenced by SIM_MODEL_SPICE::Create(), SIM_MODEL::Create(), SIM_LIB_MGR::CreateModel(), SIM_MODEL_SPICE_FALLBACK::GetPinNames(), SIM_MODEL::MigrateSimModel(), SIM_LIBRARY_IBIS::ReadFile(), and SIM_MODEL_SPICE_FALLBACK::SIM_MODEL_SPICE_FALLBACK().
|
protectedinherited |
Definition at line 1003 of file sim_model.cpp.
References SIM_MODEL::AddPin(), and SIM_MODEL::GetPinNames().
Referenced by SIM_MODEL::ReadDataFields().
|
inlineinherited |
Definition at line 86 of file sim_model.h.
|
inlineinherited |
Definition at line 132 of file sim_model.h.
|
staticinherited |
Definition at line 60 of file sim_model.cpp.
Referenced by equivalent(), SIM_MODEL::GetDeviceInfo(), SIM_MODEL::MigrateSimModel(), DIALOG_SIM_MODEL< T >::onDeviceTypeChoice(), SIM_MODEL::ReadTypeFromFields(), DIALOG_SIM_MODEL< T >::updateBuiltinModelWidgets(), and DIALOG_SIM_MODEL< T >::updateIbisWidgets().
|
protectedvirtualinherited |
Reimplemented in SIM_MODEL_NGSPICE, and SIM_MODEL_SPICE_FALLBACK.
Definition at line 804 of file sim_model.cpp.
References SIM_MODEL::GetParam(), SIM_MODEL::GetParamCount(), and SIM_MODEL::PARAM::Matches().
Referenced by SIM_MODEL::FindParam(), and SIM_MODEL::SetParamValue().
|
protectedvirtualinherited |
Reimplemented in SIM_MODEL_SOURCE.
Definition at line 839 of file sim_model.cpp.
References SIM_MODEL::m_params.
Referenced by SIM_MODEL_SOURCE::doSetParamValue(), and SIM_MODEL::SetParamValue().
|
inherited |
Definition at line 717 of file sim_model.cpp.
References SIM_MODEL::GetPin(), SIM_MODEL::GetPinCount(), SIM_MODEL_PIN::NOT_CONNECTED, and SIM_MODEL_PIN::symbolPinNumber.
Referenced by SCH_EDITOR_CONTROL::SimProbe().
|
inherited |
Definition at line 816 of file sim_model.cpp.
References SIM_MODEL::doFindParam(), and SIM_MODEL::GetParam().
Referenced by TEST_SIM_LIBRARY_SPICE_FIXTURE::CompareToUsualDiodeModel(), SPICE_GENERATOR_SOURCE::getParamValueString(), SIM_MODEL_R_POT::GetTunerParam(), SPICE_GENERATOR_IBIS::IbisDevice(), SPICE_GENERATOR_SOURCE::ItemLine(), SPICE_GENERATOR_R_POT::ModelLine(), SPICE_GENERATOR_TLINE::ModelLine(), and TEST_SIM_LIBRARY_SPICE_FIXTURE::TestTransistor().
|
inlineinherited |
Definition at line 466 of file sim_model.h.
References SIM_MODEL::m_baseModel.
Referenced by SIM_MODEL_SERIALIZER::GenerateParams(), SPICE_GENERATOR_SPICE::Preview(), and SIM_MODEL_SUBCKT::SetBaseModel().
|
inherited |
Definition at line 830 of file sim_model.cpp.
References SIM_MODEL::GetParam(), SIM_MODEL::m_baseModel, and SIM_MODEL::m_params.
|
inlineinherited |
Definition at line 460 of file sim_model.h.
References SIM_MODEL::DeviceInfo(), and SIM_MODEL::GetDeviceType().
Referenced by SIM_MODEL_SERIALIZER::GenerateDevice(), SIM_MODEL_SERIALIZER::GenerateValue(), TEST_SIM_LIBRARY_SPICE_FIXTURE::TestTransistor(), TUNER_SLIDER::TUNER_SLIDER(), DIALOG_SIM_MODEL< T >::updateBuiltinModelWidgets(), and DIALOG_SIM_MODEL< T >::updateIbisWidgets().
|
inlineinherited |
Definition at line 463 of file sim_model.h.
References SIM_MODEL::GetTypeInfo().
Referenced by SIM_MODEL_NGSPICE::canSilentlyIgnoreParam(), SIM_MODEL::GetDeviceInfo(), SIM_MODEL_SOURCE::GetPinNames(), DIALOG_SIM_MODEL< T >::updateBuiltinModelWidgets(), and DIALOG_SIM_MODEL< T >::updateIbisWidgets().
|
staticinherited |
Definition at line 654 of file sim_model.cpp.
Referenced by SIM_MODEL::Create(), SIM_LIB_MGR::CreateModel(), NETLIST_EXPORTER_SPICE::getNodePattern(), SPICE_GENERATOR_IBIS::IbisDevice(), SIM_MODEL::InferSimModel(), DIALOG_SIM_MODEL< T >::loadLibrary(), SIM_MODEL::ReadDataFields(), SIM_MODEL::ReadTypeFromFields(), DIALOG_SIM_MODEL< T >::TransferDataFromWindow(), DIALOG_SIM_MODEL< T >::TransferDataToWindow(), and DIALOG_SIM_MODEL< T >::updateWidgets().
|
virtualinherited |
Reimplemented in SIM_MODEL_IBIS.
Definition at line 789 of file sim_model.cpp.
References SIM_MODEL::GetParam(), SIM_MODEL::m_baseModel, and SIM_MODEL::m_params.
Referenced by DIALOG_SIM_MODEL< T >::addParamPropertyIfRelevant(), TEST_SIM_LIBRARY_SPICE_FIXTURE::CompareToEmptyModel(), SIM_MODEL::doFindParam(), SIM_MODEL_NGSPICE::doFindParam(), SIM_MODEL_SPICE_FALLBACK::doFindParam(), SIM_MODEL_SOURCE::doSetParamValue(), SIM_MODEL::FindParam(), SIM_MODEL_SERIALIZER::GenerateParams(), SIM_MODEL::GetBaseParam(), SIM_PROPERTY::GetParam(), SIM_MODEL::GetParam(), SIM_MODEL_IDEAL::GetTunerParam(), SPICE_GENERATOR_BEHAVIORAL::ItemLine(), SPICE_GENERATOR_IDEAL::ItemLine(), SPICE_GENERATOR_SOURCE::ItemLine(), 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(), DIALOG_SIM_MODEL< T >::newParamProperty(), SIM_MODEL_SERIALIZER::ParseParams(), SPICE_MODEL_PARSER::ReadModel(), SIM_MODEL_SUBCKT::SetBaseModel(), SIM_MODEL_NGSPICE::SetParamFromSpiceCode(), SIM_BOOL_PROPERTY::SIM_BOOL_PROPERTY(), SIM_MODEL_SPICE_FALLBACK::SIM_MODEL_SPICE_FALLBACK(), and DIALOG_SIM_MODEL< T >::updateBuiltinModelWidgets().
|
inlineinherited |
Definition at line 481 of file sim_model.h.
References SIM_MODEL::m_params.
Referenced by TEST_SIM_LIBRARY_SPICE_FIXTURE::CompareToEmptyModel(), SIM_MODEL::doFindParam(), SIM_MODEL_NGSPICE::doFindParam(), SIM_MODEL_SPICE_FALLBACK::doFindParam(), SIM_MODEL_SOURCE::doSetParamValue(), SIM_MODEL_SERIALIZER::GenerateParams(), SPICE_GENERATOR_SOURCE::ItemLine(), SPICE_GENERATOR::ItemParams(), SPICE_GENERATOR_L_MUTUAL::ItemParams(), SPICE_GENERATOR_RAW_SPICE::ItemParams(), SPICE_GENERATOR_SWITCH::ItemParams(), SPICE_GENERATOR::ModelLine(), SPICE_MODEL_PARSER::ReadModel(), SIM_MODEL::requiresSpiceModelLine(), SIM_MODEL_SUBCKT::SetBaseModel(), SIM_MODEL_NGSPICE::SetParamFromSpiceCode(), SIM_MODEL_IBIS::SIM_MODEL_IBIS(), SIM_MODEL_SPICE_FALLBACK::SIM_MODEL_SPICE_FALLBACK(), and DIALOG_SIM_MODEL< T >::updateModelParamsTab().
|
inherited |
Definition at line 824 of file sim_model.cpp.
References SIM_MODEL::m_params.
Referenced by TEST_SIM_LIBRARY_SPICE_FIXTURE::CompareToEmptyModel(), SIM_MODEL_SERIALIZER::GenerateParams(), and SIM_MODEL_SERIALIZER::GenerateValue().
|
inlineinherited |
Definition at line 472 of file sim_model.h.
References SIM_MODEL::m_modelPins.
Referenced by SIM_MODEL::FindModelPinIndex(), DIALOG_SIM_MODEL< T >::getModelPinString(), SIM_MODEL::GetPins(), SPICE_GENERATOR_SWITCH::GetPins(), DIALOG_SIM_MODEL< T >::removeOrphanedPinAssignments(), and DIALOG_SIM_MODEL< T >::updatePinAssignments().
|
inlineinherited |
Definition at line 471 of file sim_model.h.
References SIM_MODEL::m_modelPins.
Referenced by SIM_MODEL::FindModelPinIndex(), SIM_MODEL::GetPins(), SPICE_GENERATOR::ItemLine(), SPICE_GENERATOR_RAW_SPICE::Preview(), SPICE_MODEL_PARSER_SUBCKT::ReadModel(), DIALOG_SIM_MODEL< T >::removeOrphanedPinAssignments(), and DIALOG_SIM_MODEL< T >::updatePinAssignments().
|
inlineoverridevirtual |
Reimplemented from SIM_MODEL.
Definition at line 48 of file sim_model_behavioral.h.
|
inherited |
Definition at line 748 of file sim_model.cpp.
References SIM_MODEL::GetPin(), and SIM_MODEL::GetPinCount().
Referenced by SIM_MODEL_SERIALIZER::GeneratePins(), SPICE_GENERATOR::GetPins(), SCH_EDIT_FRAME::RefreshOperatingPointDisplay(), SCH_SYMBOL::ResolveTextVar(), and SIM_MODEL_SUBCKT::SetBaseModel().
|
inlineinherited |
Definition at line 452 of file sim_model.h.
References SIM_MODEL::GetType(), and SIM_MODEL::SpiceInfo().
Referenced by TEST_SIM_LIBRARY_SPICE_FIXTURE::CompareToEmptyModel(), TEST_SIM_LIBRARY_SPICE_FIXTURE::CompareToUsualDiodeModel(), SPICE_GENERATOR_SOURCE::ItemLine(), SPICE_GENERATOR::ItemName(), SPICE_GENERATOR::ModelLine(), and TEST_SIM_LIBRARY_SPICE_FIXTURE::TestTransistor().
|
inlinevirtualinherited |
Reimplemented in SIM_MODEL_IDEAL, and SIM_MODEL_R_POT.
Definition at line 484 of file sim_model.h.
Referenced by SIMULATOR_FRAME_UI::AddTuner(), SIMULATOR_FRAME_UI::applyTuners(), TUNER_SLIDER::TUNER_SLIDER(), and SIMULATOR_FRAME_UI::UpdateTunerValue().
|
inlineinherited |
Definition at line 464 of file sim_model.h.
References SIM_MODEL::m_type.
Referenced by SIM_MODEL_NGSPICE::canSilentlyIgnoreParam(), TEST_SIM_LIBRARY_SPICE_FIXTURE::CompareToUsualDiodeModel(), SIM_MODEL::Create(), SIM_MODEL_NGSPICE::getModelType(), SIM_MODEL_SPICE_FALLBACK::GetPinNames(), SPICE_GENERATOR_SWITCH::GetPins(), SIM_MODEL::GetSpiceInfo(), SIM_MODEL::GetTypeInfo(), SIM_MODEL_SOURCE::HasPrimaryValue(), SPICE_GENERATOR_IBIS::IbisDevice(), SPICE_GENERATOR_BEHAVIORAL::ItemLine(), SPICE_GENERATOR_SOURCE::ItemLine(), SPICE_GENERATOR_SWITCH::ItemLine(), SPICE_GENERATOR_TLINE::ModelLine(), SPICE_MODEL_PARSER::ReadType(), SIM_MODEL::SetBaseModel(), TEST_SIM_LIBRARY_SPICE_FIXTURE::TestTransistor(), DIALOG_SIM_MODEL< T >::TransferDataFromWindow(), TUNER_SLIDER::TUNER_SLIDER(), DIALOG_SIM_MODEL< T >::updateBuiltinModelWidgets(), DIALOG_SIM_MODEL< T >::updateIbisWidgets(), and DIALOG_SIM_MODEL< T >::updatePinAssignments().
|
inlineinherited |
Definition at line 461 of file sim_model.h.
References SIM_MODEL::GetType(), and SIM_MODEL::TypeInfo().
Referenced by SPICE_GENERATOR_NGSPICE::CurrentNames(), SIM_MODEL_SERIALIZER::GenerateDeviceSubtype(), SIM_MODEL::GetDeviceType(), TEST_SIM_LIBRARY_SPICE_FIXTURE::TestTransistor(), and TUNER_SLIDER::TUNER_SLIDER().
|
inlinevirtualinherited |
Reimplemented in SIM_MODEL_SOURCE.
Definition at line 498 of file sim_model.h.
Referenced by SIM_MODEL_SERIALIZER::ParseParams(), and DIALOG_SIM_MODEL< T >::updateModelParamsTab().
|
inlinevirtualinherited |
Reimplemented in SIM_MODEL_IDEAL, SIM_MODEL_R_POT, and SIM_MODEL_SOURCE.
Definition at line 499 of file sim_model.h.
Referenced by SIM_MODEL_SERIALIZER::GenerateParams(), SIM_MODEL_SERIALIZER::ParseParams(), SIM_MODEL::SetIsStoredInValue(), and DIALOG_SIM_MODEL< T >::updateBuiltinModelWidgets().
|
staticinherited |
KiCad Spice PEGTL only handles ASCII Although these two look the same, they are U+03BC and U+00B5
Definition at line 1082 of file sim_model.cpp.
References convertSeparators(), SIM_MODEL::GetFieldValue(), library, SIM_VALUE_GRAMMAR::SI, SIM_DEVICE_FIELD, SIM_DEVICE_SUBTYPE_FIELD, SIM_LIBRARY_FIELD, SIM_NAME_FIELD, SIM_PARAMS_FIELD, SIM_PINS_FIELD, SIM_VALUE_FIELD, and SIM_VALUE_GRAMMAR::SPICE.
Referenced by BOOST_AUTO_TEST_CASE(), SIM_LIB_MGR::CreateModel(), and DIALOG_SIM_MODEL< T >::TransferDataToWindow().
|
inlineinherited |
Definition at line 502 of file sim_model.h.
References SIM_MODEL::m_isEnabled.
Referenced by SIM_MODEL_SERIALIZER::GenerateEnable().
|
inlineinherited |
Definition at line 509 of file sim_model.h.
References SIM_MODEL::m_isStoredInValue.
Referenced by SIM_MODEL_SERIALIZER::GenerateParams(), and SIM_MODEL::WriteFields().
|
staticprivate |
Definition at line 108 of file sim_model_behavioral.cpp.
References SIM_MODEL::PARAM::INFO::description, SIM_MODEL::PARAM::DIR_INOUT, SIM_MODEL::PARAM::PRINCIPAL, and SIM_VALUE::TYPE_STRING.
Referenced by SIM_MODEL_BEHAVIORAL().
|
staticinherited |
Definition at line 1412 of file sim_model.cpp.
References SIM_MODEL::Create(), SIM_LIB_MGR::CreateModel(), DEFAULT_SIZE_TEXT, SIM_MODEL::DeviceInfo(), SIM_MODEL::SPICE_INFO::functionName, SIM_MODEL_SERIALIZER::GeneratePins(), EDA_TEXT::GetAttributes(), SCH_FIELD::GetBoundingBox(), BOX2< Vec >::GetHeight(), EDA_TEXT::GetHorizJustify(), SCH_FIELD::GetPosition(), SCH_FIELD::GetShownText(), EDA_TEXT::GetText(), BOX2< Vec >::GetWidth(), GR_TEXT_H_ALIGN_RIGHT, WX_STRING_REPORTER::HasMessage(), EDA_IU_SCALE::IU_PER_MILS, KiROUND(), SIM_LIBRARY::MODEL::model, schIUScale, SIM_MODEL::Serializer(), EDA_TEXT::SetAttributes(), SCH_FIELD::SetPosition(), SCH_FIELD::SetText(), SIM_DEVICE_FIELD, SIM_DEVICE_SUBTYPE_FIELD, SIM_LEGACY_ENABLE_FIELD, SIM_LEGACY_LIBRARY_FIELD, SIM_LEGACY_MODEL_FIELD, SIM_LEGACY_PINS_FIELD, SIM_LEGACY_PRIMITIVE_FIELD, SIM_LIBRARY_FIELD, SIM_NAME_FIELD, SIM_PARAMS_FIELD, SIM_PINS_FIELD, SIM_VALUE_GRAMMAR::SPICE, SIM_MODEL::SpiceInfo(), SIM_MODEL::TypeInfo(), and wxStringSplit().
|
private |
Definition at line 94 of file sim_model_behavioral.cpp.
References SIM_MODEL::SetParamValue().
|
inherited |
Definition at line 427 of file sim_model.cpp.
References SIM_MODEL::createPins(), SIM_LIBRARY_IBIS::DIFF_FIELD, SIM_MODEL::GetFieldValue(), SIM_MODEL::m_serializer, SIM_LEGACY_ENABLE_FIELD_V7, SIM_PARAMS_FIELD, SIM_PINS_FIELD, SIM_VALUE_FIELD, and SIM_MODEL::SwitchSingleEndedDiff().
Referenced by DIALOG_SIM_MODEL< T >::onWaveformChoice().
|
staticinherited |
Definition at line 390 of file sim_model.cpp.
References _, SIM_MODEL::DeviceInfo(), SIM_MODEL::GetFieldValue(), REFERENCE_FIELD, REPORTER::Report(), RPT_SEVERITY_ERROR, SIM_DEVICE_FIELD, SIM_DEVICE_SUBTYPE_FIELD, and SIM_MODEL::TypeInfo().
Referenced by SIM_MODEL::Create(), and DIALOG_SIM_MODEL< T >::TransferDataToWindow().
|
privatevirtualinherited |
Reimplemented in SIM_MODEL_IBIS, SIM_MODEL_RAW_SPICE, and SIM_MODEL_SWITCH.
Definition at line 1038 of file sim_model.cpp.
References SPICE_ITEM::baseModelName, SIM_MODEL::GetParamCount(), SIM_MODEL::PARAM::info, SIM_MODEL::PARAM::INFO::isSpiceInstanceParam, SIM_MODEL::m_baseModel, SIM_MODEL::m_params, SIM_MODEL::m_type, SIM_VALUE::Normalize(), SIM_VALUE::ToDouble(), and SIM_MODEL::PARAM::value.
Referenced by SPICE_GENERATOR::ModelLine(), and SPICE_GENERATOR::ModelName().
|
inlineinherited |
Definition at line 436 of file sim_model.h.
References SIM_MODEL::m_serializer.
Referenced by SIM_MODEL::MigrateSimModel().
|
virtualinherited |
Reimplemented in SIM_MODEL_IBIS, and SIM_MODEL_SUBCKT.
Definition at line 739 of file sim_model.cpp.
References SIM_MODEL::GetType(), and SIM_MODEL::m_baseModel.
Referenced by SIM_MODEL_SUBCKT::SetBaseModel().
|
staticinherited |
Definition at line 673 of file sim_model.cpp.
Referenced by DIALOG_SIM_MODEL< T >::TransferDataFromWindow(), and SIM_MODEL::WriteFields().
|
inlineinherited |
Definition at line 501 of file sim_model.h.
References SIM_MODEL::m_isEnabled.
Referenced by SIM_MODEL_SERIALIZER::ParseEnable().
|
inlineinherited |
Definition at line 504 of file sim_model.h.
References SIM_MODEL::HasPrimaryValue(), and SIM_MODEL::m_isStoredInValue.
Referenced by SIM_LIB_MGR::CreateModel(), SIM_MODEL_SERIALIZER::ParseValue(), and DIALOG_SIM_MODEL< T >::TransferDataFromWindow().
|
inherited |
Definition at line 880 of file sim_model.cpp.
References SIM_MODEL::doFindParam(), SIM_MODEL::SetParamValue(), and THROW_IO_ERROR.
|
inherited |
Definition at line 845 of file sim_model.cpp.
References SIM_VALUE::ConvertNotation(), and SIM_MODEL::doSetParamValue().
Referenced by SIM_MODEL_SOURCE::doSetParamValue(), SIM_BOOL_PROPERTY::OnSetValue(), SIM_MODEL_SERIALIZER::ParseParams(), SIM_MODEL_SERIALIZER::ParseValue(), parseValueField(), SPICE_MODEL_PARSER::ReadModel(), SIM_MODEL_SPICE::SetParamFromSpiceCode(), SIM_MODEL_NGSPICE::SetParamFromSpiceCode(), SIM_MODEL::SetParamValue(), SIM_STRING_PROPERTY::StringToValue(), DIALOG_SIM_MODEL< T >::TransferDataFromWindow(), and SIMULATOR_FRAME_UI::UpdateTunerValue().
|
inlineinherited |
Definition at line 435 of file sim_model.h.
References SIM_MODEL::m_spiceGenerator.
Referenced by SIMULATOR_FRAME_UI::applyTuners(), NETLIST_EXPORTER_SPICE::readModel(), SCH_EDIT_FRAME::RefreshOperatingPointDisplay(), SCH_SYMBOL::ResolveTextVar(), SCH_EDITOR_CONTROL::SimProbe(), SPICE_GENERATOR_IDEAL::TunerCommand(), SPICE_GENERATOR_R_POT::TunerCommand(), and DIALOG_SIM_MODEL< T >::updateModelCodeTab().
|
staticinherited |
Definition at line 249 of file sim_model.cpp.
Referenced by SIM_MODEL::GetSpiceInfo(), SIM_MODEL::MigrateSimModel(), and SPICE_MODEL_PARSER::ReadTypeFromSpiceStrings().
|
inlinevirtualinherited |
Reimplemented in SIM_MODEL_IBIS.
Definition at line 511 of file sim_model.h.
Referenced by SIM_MODEL::ReadDataFields().
|
staticinherited |
Definition at line 105 of file sim_model.cpp.
Referenced by SIM_MODEL::GetTypeInfo(), SIM_MODEL::MigrateSimModel(), DIALOG_SIM_MODEL< T >::onTypeChoice(), DIALOG_SIM_MODEL< T >::onWaveformChoice(), SIM_MODEL::ReadTypeFromFields(), DIALOG_SIM_MODEL< T >::TransferDataToWindow(), DIALOG_SIM_MODEL< T >::updateBuiltinModelWidgets(), and DIALOG_SIM_MODEL< T >::updateIbisWidgets().
|
inherited |
Definition at line 445 of file sim_model.cpp.
References SIM_MODEL::IsStoredInValue(), SIM_MODEL::m_serializer, MANDATORY_FIELDS, SIM_MODEL::SetFieldValue(), SIM_DEVICE_FIELD, SIM_DEVICE_SUBTYPE_FIELD, SIM_LEGACY_ENABLE_FIELD_V7, SIM_PARAMS_FIELD, SIM_PINS_FIELD, and SIM_VALUE_FIELD.
Referenced by SIMULATOR_FRAME_UI::UpdateTunerValue().
|
protectedinherited |
Definition at line 540 of file sim_model.h.
Referenced by SIM_MODEL::GetBaseModel(), SIM_MODEL::GetBaseParam(), SIM_MODEL::GetParam(), SIM_MODEL_RAW_SPICE::GetSource(), SIM_MODEL_SUBCKT::GetSpiceCode(), SIM_MODEL::requiresSpiceModelLine(), and SIM_MODEL::SetBaseModel().
|
privateinherited |
Definition at line 547 of file sim_model.h.
Referenced by SIM_MODEL::IsEnabled(), and SIM_MODEL::SetIsEnabled().
|
privateinherited |
Definition at line 548 of file sim_model.h.
Referenced by SIM_MODEL::IsStoredInValue(), and SIM_MODEL::SetIsStoredInValue().
|
protectedinherited |
Definition at line 539 of file sim_model.h.
Referenced by SIM_MODEL::AddPin(), SIM_MODEL_RAW_SPICE::AssignSymbolPinNumberToModelPin(), SIM_MODEL_SPICE_FALLBACK::AssignSymbolPinNumberToModelPin(), SIM_MODEL::AssignSymbolPinNumberToModelPin(), SIM_MODEL::ClearPins(), SIM_MODEL::GetPin(), and SIM_MODEL::GetPinCount().
|
protectedinherited |
Definition at line 538 of file sim_model.h.
Referenced by SIM_MODEL::AddParam(), SIM_MODEL::doSetParamValue(), SIM_MODEL_SOURCE::doSetParamValue(), SIM_MODEL::GetBaseParam(), SIM_MODEL::GetParam(), SIM_MODEL_IBIS::GetParam(), SIM_MODEL::GetParamCount(), SIM_MODEL::GetParamOverride(), SIM_MODEL::requiresSpiceModelLine(), and SIM_MODEL_IBIS::SIM_MODEL_IBIS().
|
protectedinherited |
Definition at line 541 of file sim_model.h.
Referenced by SIM_MODEL::ReadDataFields(), SIM_MODEL::Serializer(), and SIM_MODEL::WriteFields().
|
privateinherited |
Definition at line 544 of file sim_model.h.
Referenced by SIM_MODEL::SpiceGenerator().
|
privateinherited |
Definition at line 546 of file sim_model.h.
Referenced by SIM_MODEL::GetType(), and SIM_MODEL::requiresSpiceModelLine().