KiCad PCB EDA Suite
Loading...
Searching...
No Matches
SIM_MODEL_SOURCE Class Reference

#include <sim_model_source.h>

Inheritance diagram for SIM_MODEL_SOURCE:
SIM_MODEL

Public Member Functions

 SIM_MODEL_SOURCE (TYPE aType)
 
bool HasAutofill () const override
 
bool HasPrimaryValue () const override
 
std::vector< std::string > GetPinNames () const override
 
const PARAMGetTunerParam () 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_GENERATORSpiceGenerator () const
 
const SIM_MODEL_SERIALIZERSerializer () const
 
void ReadDataFields (const std::vector< SCH_FIELD > *aFields, bool aResolve, int aDepth, 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_MODELGetBaseModel () const
 
virtual void SetBaseModel (const SIM_MODEL &aBaseModel)
 
int GetPinCount () const
 
const SIM_MODEL_PINGetPin (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 PARAMGetParam (unsigned aParamIndex) const
 
const PARAMFindParam (const std::string &aParamName) const
 
const PARAMGetParamOverride (unsigned aParamIndex) const
 
const PARAMGetBaseParam (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)
 
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, bool aResolve, int aDepth, REPORTER &aReporter)
 
static std::unique_ptr< SIM_MODELCreate (TYPE aType, const std::vector< SCH_PIN * > &aPins, REPORTER &aReporter)
 
static std::unique_ptr< SIM_MODELCreate (const SIM_MODEL *aBaseModel, const std::vector< SCH_PIN * > &aPins, REPORTER &aReporter)
 
static std::unique_ptr< SIM_MODELCreate (const SIM_MODEL *aBaseModel, const std::vector< SCH_PIN * > &aPins, const std::vector< SCH_FIELD > &aFields, bool aResolve, int aDepth, REPORTER &aReporter)
 
static std::unique_ptr< SIM_MODELCreate (const std::vector< SCH_FIELD > &aFields, bool aResolve, int aDepth, const std::vector< SCH_PIN * > &aPins, REPORTER &aReporter)
 
template<class T>
static bool InferSimModel (T &aSymbol, std::vector< SCH_FIELD > *aFields, bool aResolve, int aDepth, 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 doSetParamValue (int aParamIndex, const std::string &aValue) override
 
void createPins (const std::vector< SCH_PIN * > &aSymbolPins)
 
virtual int doFindParam (const std::string &aParamName) const
 

Static Protected Member Functions

static std::unique_ptr< SIM_MODELCreate (TYPE aType)
 

Protected Attributes

std::vector< PARAMm_params
 
std::vector< SIM_MODEL_PINm_modelPins
 
const SIM_MODELm_baseModel
 
std::unique_ptr< SIM_MODEL_SERIALIZERm_serializer
 

Private Member Functions

virtual bool requiresSpiceModelLine (const SPICE_ITEM &aItem) const
 

Static Private Member Functions

static const std::vector< PARAM::INFO > & makeParamInfos (TYPE aType)
 
static std::vector< PARAM::INFO > makeDcParamInfos (const std::string &aPrefix, const std::string &aUnit)
 
static std::vector< PARAM::INFO > makeSinParamInfos (const std::string &aPrefix, const std::string &aUnit)
 
static std::vector< PARAM::INFO > makePulseParamInfos (const std::string &aPrefix, const std::string &aUnit)
 
static std::vector< PARAM::INFO > makeExpParamInfos (const std::string &aPrefix, const std::string &aUnit)
 
static std::vector< PARAM::INFO > makeAMParamInfos (const std::string &aPrefix, const std::string &aUnit)
 
static std::vector< PARAM::INFO > makeSFFMParamInfos (const std::string &aPrefix, const std::string &aUnit)
 
static std::vector< SIM_MODEL::PARAM::INFOmakeVcParamInfos (const std::string &aGainUnit)
 
static std::vector< SIM_MODEL::PARAM::INFOmakeCcParamInfos (const std::string &aGainUnit)
 
static std::vector< PARAM::INFO > makePwlParamInfos (const std::string &aPrefix, const std::string &aQuantity, const std::string &aUnit)
 
static std::vector< PARAM::INFO > makeWhiteNoiseParamInfos (const std::string &aPrefix, const std::string &aUnit)
 
static std::vector< PARAM::INFO > makePinkNoiseParamInfos (const std::string &aPrefix, const std::string &aUnit)
 
static std::vector< PARAM::INFO > makeBurstNoiseParamInfos (const std::string &aPrefix, const std::string &aUnit)
 
static std::vector< PARAM::INFO > makeRandomUniformParamInfos (const std::string &aPrefix, const std::string &aUnit)
 
static std::vector< PARAM::INFO > makeRandomNormalParamInfos (const std::string &aPrefix, const std::string &aUnit)
 
static std::vector< PARAM::INFO > makeRandomExpParamInfos (const std::string &aPrefix, const std::string &aUnit)
 
static std::vector< PARAM::INFO > makeRandomPoissonParamInfos (const std::string &aPrefix, const std::string &aUnit)
 
static void appendAcParamInfos (std::vector< PARAM::INFO > &aParamInfos, const std::string &aUnit)
 
static void appendSpParamInfos (std::vector< PARAM::INFO > &aParamInfos, const std::string &aUnit)
 

Private Attributes

std::unique_ptr< SPICE_GENERATORm_spiceGenerator
 
const TYPE m_type
 
bool m_isEnabled
 
bool m_isStoredInValue
 

Detailed Description

Definition at line 71 of file sim_model_source.h.

Constructor & Destructor Documentation

◆ SIM_MODEL_SOURCE()

SIM_MODEL_SOURCE::SIM_MODEL_SOURCE ( TYPE aType)

Member Function Documentation

◆ AddParam()

◆ AddPin()

void SIM_MODEL::AddPin ( const SIM_MODEL_PIN & aPin)
inherited

◆ appendAcParamInfos()

◆ appendSpParamInfos()

◆ AssignSymbolPinNumberToModelPin() [1/2]

void SIM_MODEL::AssignSymbolPinNumberToModelPin ( const std::string & aPinName,
const wxString & aSymbolPinNumber )
virtualinherited

Reimplemented in SIM_MODEL_RAW_SPICE, and SIM_MODEL_SPICE_FALLBACK.

Definition at line 704 of file sim_model.cpp.

References _, m_modelPins, pin, and THROW_IO_ERROR.

◆ AssignSymbolPinNumberToModelPin() [2/2]

void SIM_MODEL::AssignSymbolPinNumberToModelPin ( int aPinIndex,
const wxString & aSymbolPinNumber )
inherited

◆ ClearPins()

void SIM_MODEL::ClearPins ( )
inherited

Definition at line 649 of file sim_model.cpp.

References m_modelPins.

Referenced by SIM_MODEL_IBIS::SwitchSingleEndedDiff().

◆ Create() [1/5]

std::unique_ptr< SIM_MODEL > SIM_MODEL::Create ( const SIM_MODEL * aBaseModel,
const std::vector< SCH_PIN * > & aPins,
const std::vector< SCH_FIELD > & aFields,
bool aResolve,
int aDepth,
REPORTER & aReporter )
staticinherited

◆ Create() [2/5]

std::unique_ptr< SIM_MODEL > SIM_MODEL::Create ( const SIM_MODEL * aBaseModel,
const std::vector< SCH_PIN * > & aPins,
REPORTER & aReporter )
staticinherited

Definition at line 502 of file sim_model.cpp.

References Create(), GetType(), and SIM_MODEL().

◆ Create() [3/5]

std::unique_ptr< SIM_MODEL > SIM_MODEL::Create ( const std::vector< SCH_FIELD > & aFields,
bool aResolve,
int aDepth,
const std::vector< SCH_PIN * > & aPins,
REPORTER & aReporter )
staticinherited

◆ Create() [4/5]

std::unique_ptr< SIM_MODEL > SIM_MODEL::Create ( TYPE aType)
staticprotectedinherited

Definition at line 830 of file sim_model.cpp.

◆ Create() [5/5]

◆ createPins()

void SIM_MODEL::createPins ( const std::vector< SCH_PIN * > & aSymbolPins)
protectedinherited

Definition at line 941 of file sim_model.cpp.

References AddPin(), and GetPinNames().

Referenced by ReadDataFields().

◆ DEFINE_ENUM_CLASS_WITH_ITERATOR() [1/2]

SIM_MODEL::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  )
inlineinherited

Definition at line 86 of file sim_model.h.

References D, F, G, H, I, and NONE.

◆ DEFINE_ENUM_CLASS_WITH_ITERATOR() [2/2]

SIM_MODEL::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  )
inlineinherited

Definition at line 132 of file sim_model.h.

References D, I, and NONE.

◆ DeviceInfo()

SIM_MODEL::DEVICE_INFO SIM_MODEL::DeviceInfo ( DEVICE_T aDeviceType)
staticinherited

◆ doFindParam()

int SIM_MODEL::doFindParam ( const std::string & aParamName) const
protectedvirtualinherited

Reimplemented in SIM_MODEL_NGSPICE, and SIM_MODEL_SPICE_FALLBACK.

Definition at line 742 of file sim_model.cpp.

References GetParam(), GetParamCount(), and SIM_MODEL::PARAM::Matches().

Referenced by FindParam(), and SetParamValue().

◆ doSetParamValue()

void SIM_MODEL_SOURCE::doSetParamValue ( int aParamIndex,
const std::string & aValue )
overrideprotectedvirtual

◆ FindModelPinIndex()

int SIM_MODEL::FindModelPinIndex ( const std::string & aSymbolPinNumber)
inherited

Definition at line 655 of file sim_model.cpp.

References GetPin(), GetPinCount(), and SIM_MODEL_PIN::NOT_CONNECTED.

Referenced by SCH_EDITOR_CONTROL::SimProbe().

◆ FindParam()

const SIM_MODEL::PARAM * SIM_MODEL::FindParam ( const std::string & aParamName) const
inherited

◆ GetBaseModel()

const SIM_MODEL * SIM_MODEL::GetBaseModel ( ) const
inlineinherited

Definition at line 462 of file sim_model.h.

References m_baseModel, and SIM_MODEL().

Referenced by SIM_MODEL_SUBCKT::SetBaseModel().

◆ GetBaseParam()

const SIM_MODEL::PARAM & SIM_MODEL::GetBaseParam ( unsigned aParamIndex) const
inherited

Definition at line 768 of file sim_model.cpp.

References m_baseModel, and m_params.

◆ GetDeviceInfo()

◆ GetDeviceType()

◆ GetParam()

◆ GetParamCount()

◆ GetParamOverride()

const SIM_MODEL::PARAM & SIM_MODEL::GetParamOverride ( unsigned aParamIndex) const
inherited

Definition at line 762 of file sim_model.cpp.

References m_params.

Referenced by TEST_SIM_LIBRARY_SPICE_FIXTURE::CompareToEmptyModel().

◆ GetPin()

const SIM_MODEL_PIN & SIM_MODEL::GetPin ( unsigned aIndex) const
inlineinherited

◆ GetPinCount()

◆ GetPinNames()

std::vector< std::string > SIM_MODEL_SOURCE::GetPinNames ( ) const
overridevirtual

Reimplemented from SIM_MODEL.

Definition at line 1218 of file sim_model_source.cpp.

References SIM_MODEL::GetDeviceType().

◆ GetPins()

std::vector< std::reference_wrapper< const SIM_MODEL_PIN > > SIM_MODEL::GetPins ( ) const
inherited

◆ GetSpiceInfo()

◆ GetTunerParam()

const SIM_MODEL::PARAM * SIM_MODEL_SOURCE::GetTunerParam ( ) const
overridevirtual

Reimplemented from SIM_MODEL.

Definition at line 1226 of file sim_model_source.cpp.

References SIM_MODEL::GetParam(), and SIM_MODEL::GetType().

◆ GetType()

◆ GetTypeInfo()

INFO SIM_MODEL::GetTypeInfo ( ) const
inlineinherited

◆ HasAutofill()

bool SIM_MODEL_SOURCE::HasAutofill ( ) const
inlineoverridevirtual

Reimplemented from SIM_MODEL.

Definition at line 76 of file sim_model_source.h.

◆ HasPrimaryValue()

bool SIM_MODEL_SOURCE::HasPrimaryValue ( ) const
inlineoverridevirtual

Reimplemented from SIM_MODEL.

Definition at line 77 of file sim_model_source.h.

References SIM_MODEL::GetType().

◆ InferSimModel()

template<class T>
template bool SIM_MODEL::InferSimModel< LIB_SYMBOL > ( T & aSymbol,
std::vector< SCH_FIELD > * aFields,
bool aResolve,
int aDepth,
SIM_VALUE_GRAMMAR::NOTATION aNotation,
wxString * aDeviceType,
wxString * aModelType,
wxString * aModelParams,
wxString * aPinMap )
staticinherited

◆ IsEnabled()

bool SIM_MODEL::IsEnabled ( ) const
inlineinherited

Definition at line 498 of file sim_model.h.

References m_isEnabled.

◆ IsStoredInValue()

bool SIM_MODEL::IsStoredInValue ( ) const
inlineinherited

Definition at line 505 of file sim_model.h.

References m_isStoredInValue.

Referenced by WriteFields().

◆ makeAMParamInfos()

std::vector< SIM_MODEL::PARAM::INFO > SIM_MODEL_SOURCE::makeAMParamInfos ( const std::string & aPrefix,
const std::string & aUnit )
staticprivate

Definition at line 638 of file sim_model_source.cpp.

References appendAcParamInfos(), appendSpParamInfos(), and SIM_VALUE::TYPE_FLOAT.

Referenced by makeParamInfos().

◆ makeBurstNoiseParamInfos()

std::vector< SIM_MODEL::PARAM::INFO > SIM_MODEL_SOURCE::makeBurstNoiseParamInfos ( const std::string & aPrefix,
const std::string & aUnit )
staticprivate

Definition at line 960 of file sim_model_source.cpp.

References appendAcParamInfos(), appendSpParamInfos(), and SIM_VALUE::TYPE_FLOAT.

Referenced by makeParamInfos().

◆ makeCcParamInfos()

std::vector< SIM_MODEL::PARAM::INFO > SIM_MODEL_SOURCE::makeCcParamInfos ( const std::string & aGainUnit)
staticprivate

Definition at line 782 of file sim_model_source.cpp.

References SIM_VALUE::TYPE_FLOAT, and SIM_VALUE::TYPE_STRING.

Referenced by makeParamInfos().

◆ makeDcParamInfos()

std::vector< SIM_MODEL::PARAM::INFO > SIM_MODEL_SOURCE::makeDcParamInfos ( const std::string & aPrefix,
const std::string & aUnit )
staticprivate

Definition at line 422 of file sim_model_source.cpp.

References appendAcParamInfos(), appendSpParamInfos(), and SIM_VALUE::TYPE_FLOAT.

Referenced by makeParamInfos().

◆ makeExpParamInfos()

std::vector< SIM_MODEL::PARAM::INFO > SIM_MODEL_SOURCE::makeExpParamInfos ( const std::string & aPrefix,
const std::string & aUnit )
staticprivate

Definition at line 578 of file sim_model_source.cpp.

References appendAcParamInfos(), appendSpParamInfos(), and SIM_VALUE::TYPE_FLOAT.

Referenced by makeParamInfos().

◆ makeParamInfos()

◆ makePinkNoiseParamInfos()

std::vector< SIM_MODEL::PARAM::INFO > SIM_MODEL_SOURCE::makePinkNoiseParamInfos ( const std::string & aPrefix,
const std::string & aUnit )
staticprivate

Definition at line 924 of file sim_model_source.cpp.

References appendAcParamInfos(), appendSpParamInfos(), and SIM_VALUE::TYPE_FLOAT.

Referenced by makeParamInfos().

◆ makePulseParamInfos()

std::vector< SIM_MODEL::PARAM::INFO > SIM_MODEL_SOURCE::makePulseParamInfos ( const std::string & aPrefix,
const std::string & aUnit )
staticprivate

◆ makePwlParamInfos()

std::vector< SIM_MODEL::PARAM::INFO > SIM_MODEL_SOURCE::makePwlParamInfos ( const std::string & aPrefix,
const std::string & aQuantity,
const std::string & aUnit )
staticprivate

Definition at line 821 of file sim_model_source.cpp.

References appendAcParamInfos(), appendSpParamInfos(), and SIM_VALUE::TYPE_STRING.

Referenced by makeParamInfos().

◆ makeRandomExpParamInfos()

std::vector< SIM_MODEL::PARAM::INFO > SIM_MODEL_SOURCE::makeRandomExpParamInfos ( const std::string & aPrefix,
const std::string & aUnit )
staticprivate

Definition at line 1084 of file sim_model_source.cpp.

References appendAcParamInfos(), appendSpParamInfos(), and SIM_VALUE::TYPE_FLOAT.

Referenced by makeParamInfos().

◆ makeRandomNormalParamInfos()

std::vector< SIM_MODEL::PARAM::INFO > SIM_MODEL_SOURCE::makeRandomNormalParamInfos ( const std::string & aPrefix,
const std::string & aUnit )
staticprivate

Definition at line 1040 of file sim_model_source.cpp.

References appendAcParamInfos(), appendSpParamInfos(), and SIM_VALUE::TYPE_FLOAT.

Referenced by makeParamInfos().

◆ makeRandomPoissonParamInfos()

std::vector< SIM_MODEL::PARAM::INFO > SIM_MODEL_SOURCE::makeRandomPoissonParamInfos ( const std::string & aPrefix,
const std::string & aUnit )
staticprivate

Definition at line 1128 of file sim_model_source.cpp.

References appendAcParamInfos(), appendSpParamInfos(), and SIM_VALUE::TYPE_FLOAT.

Referenced by makeParamInfos().

◆ makeRandomUniformParamInfos()

std::vector< SIM_MODEL::PARAM::INFO > SIM_MODEL_SOURCE::makeRandomUniformParamInfos ( const std::string & aPrefix,
const std::string & aUnit )
staticprivate

Definition at line 996 of file sim_model_source.cpp.

References appendAcParamInfos(), appendSpParamInfos(), and SIM_VALUE::TYPE_FLOAT.

Referenced by makeParamInfos().

◆ makeSFFMParamInfos()

std::vector< SIM_MODEL::PARAM::INFO > SIM_MODEL_SOURCE::makeSFFMParamInfos ( const std::string & aPrefix,
const std::string & aUnit )
staticprivate

Definition at line 714 of file sim_model_source.cpp.

References appendAcParamInfos(), appendSpParamInfos(), and SIM_VALUE::TYPE_FLOAT.

Referenced by makeParamInfos().

◆ makeSinParamInfos()

std::vector< SIM_MODEL::PARAM::INFO > SIM_MODEL_SOURCE::makeSinParamInfos ( const std::string & aPrefix,
const std::string & aUnit )
staticprivate

Definition at line 442 of file sim_model_source.cpp.

References appendAcParamInfos(), appendSpParamInfos(), and SIM_VALUE::TYPE_FLOAT.

Referenced by makeParamInfos().

◆ makeVcParamInfos()

std::vector< SIM_MODEL::PARAM::INFO > SIM_MODEL_SOURCE::makeVcParamInfos ( const std::string & aGainUnit)
staticprivate

Definition at line 805 of file sim_model_source.cpp.

References SIM_VALUE::TYPE_FLOAT.

Referenced by makeParamInfos().

◆ makeWhiteNoiseParamInfos()

std::vector< SIM_MODEL::PARAM::INFO > SIM_MODEL_SOURCE::makeWhiteNoiseParamInfos ( const std::string & aPrefix,
const std::string & aUnit )
staticprivate

Definition at line 896 of file sim_model_source.cpp.

References appendAcParamInfos(), appendSpParamInfos(), and SIM_VALUE::TYPE_FLOAT.

Referenced by makeParamInfos().

◆ MigrateSimModel()

◆ ReadDataFields()

void SIM_MODEL::ReadDataFields ( const std::vector< SCH_FIELD > * aFields,
bool aResolve,
int aDepth,
const std::vector< SCH_PIN * > & aPins )
inherited

◆ ReadTypeFromFields()

TYPE SIM_MODEL::ReadTypeFromFields ( const std::vector< SCH_FIELD > & aFields,
bool aResolve,
int aDepth,
REPORTER & aReporter )
staticinherited

◆ requiresSpiceModelLine()

◆ Serializer()

const SIM_MODEL_SERIALIZER & SIM_MODEL::Serializer ( ) const
inlineinherited

Definition at line 432 of file sim_model.h.

References m_serializer.

Referenced by MigrateSimModel().

◆ SetBaseModel()

void SIM_MODEL::SetBaseModel ( const SIM_MODEL & aBaseModel)
virtualinherited

Reimplemented in SIM_MODEL_IBIS, and SIM_MODEL_SUBCKT.

Definition at line 677 of file sim_model.cpp.

References GetType(), m_baseModel, and SIM_MODEL().

Referenced by SIM_MODEL_SUBCKT::SetBaseModel().

◆ SetIsEnabled()

void SIM_MODEL::SetIsEnabled ( bool aIsEnabled)
inlineinherited

Definition at line 497 of file sim_model.h.

References m_isEnabled.

◆ SetIsStoredInValue()

void SIM_MODEL::SetIsStoredInValue ( bool aIsStoredInValue)
inlineinherited

◆ SetParamValue() [1/2]

void SIM_MODEL::SetParamValue ( const std::string & aParamName,
const std::string & aValue,
SIM_VALUE::NOTATION aNotation = SIM_VALUE::NOTATION::SI )
inherited

Definition at line 818 of file sim_model.cpp.

References doFindParam(), SetParamValue(), and THROW_IO_ERROR.

◆ SetParamValue() [2/2]

◆ SpiceGenerator()

◆ SpiceInfo()

SIM_MODEL::SPICE_INFO SIM_MODEL::SpiceInfo ( TYPE aType)
staticinherited

◆ SwitchSingleEndedDiff()

virtual void SIM_MODEL::SwitchSingleEndedDiff ( bool aDiff)
inlinevirtualinherited

Reimplemented in SIM_MODEL_IBIS.

Definition at line 507 of file sim_model.h.

Referenced by ReadDataFields().

◆ TypeInfo()

◆ WriteFields()

void SIM_MODEL::WriteFields ( std::vector< SCH_FIELD > & aFields) const
inherited

Member Data Documentation

◆ m_baseModel

◆ m_isEnabled

bool SIM_MODEL::m_isEnabled
privateinherited

Definition at line 543 of file sim_model.h.

Referenced by IsEnabled(), SetIsEnabled(), and SIM_MODEL().

◆ m_isStoredInValue

bool SIM_MODEL::m_isStoredInValue
privateinherited

Definition at line 544 of file sim_model.h.

Referenced by IsStoredInValue(), SetIsStoredInValue(), and SIM_MODEL().

◆ m_modelPins

◆ m_params

◆ m_serializer

std::unique_ptr<SIM_MODEL_SERIALIZER> SIM_MODEL::m_serializer
protectedinherited

Definition at line 537 of file sim_model.h.

Referenced by ReadDataFields(), Serializer(), SIM_MODEL(), and WriteFields().

◆ m_spiceGenerator

std::unique_ptr<SPICE_GENERATOR> SIM_MODEL::m_spiceGenerator
privateinherited

Definition at line 540 of file sim_model.h.

Referenced by SIM_MODEL(), and SpiceGenerator().

◆ m_type

const TYPE SIM_MODEL::m_type
privateinherited

Definition at line 542 of file sim_model.h.

Referenced by GetType(), requiresSpiceModelLine(), and SIM_MODEL().


The documentation for this class was generated from the following files: