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

SPICE generator for the synthesized repeat-per-unit wrapper. More...

#include <sim_model_multiunit.h>

Inheritance diagram for SPICE_GENERATOR_MULTIUNIT:
SPICE_GENERATOR

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
 
 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_MODELm_model
 

Private Member Functions

const SIM_MODEL_MULTIUNITmultiunit () const
 

Detailed Description

SPICE generator for the synthesized repeat-per-unit wrapper.

ModelLine() emits the generated .subckt (interface = the component's mapped symbol pins, body = one inner instance of the base single-unit model per functional unit, shared nodes common). ModelName() returns the content-derived signature so identical components share one definition.

Definition at line 97 of file sim_model_multiunit.h.

Member Function Documentation

◆ CurrentNames()

std::vector< std::string > SPICE_GENERATOR_MULTIUNIT::CurrentNames ( const SPICE_ITEM & aItem) const
overridevirtual

Reimplemented from SPICE_GENERATOR.

Definition at line 471 of file sim_model_multiunit.cpp.

References SPICE_GENERATOR::GetPins(), SPICE_GENERATOR::ItemName(), and pin.

◆ GetPins()

virtual std::vector< std::reference_wrapper< const SIM_MODEL_PIN > > SPICE_GENERATOR::GetPins ( ) const
inlineprotectedvirtualinherited

◆ ItemLine()

◆ ItemModelName()

std::string SPICE_GENERATOR::ItemModelName ( const SPICE_ITEM & aItem) const
virtualinherited

Reimplemented in SPICE_GENERATOR_L_MUTUAL, and SPICE_GENERATOR_RAW_SPICE.

Definition at line 172 of file spice_generator.cpp.

References SPICE_ITEM::modelName.

Referenced by ItemLine().

◆ ItemName()

◆ ItemParams()

◆ ItemPins()

std::string SPICE_GENERATOR::ItemPins ( const SPICE_ITEM & aItem) const
virtualinherited

Reimplemented in SPICE_GENERATOR_RAW_SPICE.

Definition at line 147 of file spice_generator.cpp.

References GetPins(), pin, SPICE_ITEM::pinNetNames, SPICE_ITEM::pinNumbers, SPICE_ITEM::refName, and result.

Referenced by ItemLine().

◆ ModelLine()

std::string SPICE_GENERATOR_MULTIUNIT::ModelLine ( const SPICE_ITEM & aItem) const
overridevirtual

◆ ModelName()

std::string SPICE_GENERATOR_MULTIUNIT::ModelName ( const SPICE_ITEM & aItem) const
overridevirtual

Reimplemented from SPICE_GENERATOR.

Definition at line 436 of file sim_model_multiunit.cpp.

References SIM_MODEL_MULTIUNIT::m_signature, and multiunit().

◆ multiunit()

const SIM_MODEL_MULTIUNIT & SPICE_GENERATOR_MULTIUNIT::multiunit ( ) const
private

Definition at line 430 of file sim_model_multiunit.cpp.

References SPICE_GENERATOR::m_model.

Referenced by ModelLine(), and ModelName().

◆ Preview()

std::string SPICE_GENERATOR::Preview ( const SPICE_ITEM & aItem) const
virtualinherited

Reimplemented in SPICE_GENERATOR_RAW_SPICE, and SPICE_GENERATOR_SPICE.

Definition at line 222 of file spice_generator.cpp.

References ItemLine(), and ModelLine().

Referenced by DIALOG_SIM_MODEL< T >::updateModelCodeTab().

◆ SPICE_GENERATOR()

SPICE_GENERATOR::SPICE_GENERATOR ( const SIM_MODEL & aModel)
inline

Definition at line 45 of file spice_generator.h.

◆ TunerCommand()

std::string SPICE_GENERATOR::TunerCommand ( const SPICE_ITEM & aItem,
double aValue ) const
virtualinherited

Member Data Documentation

◆ m_model


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