|
KiCad PCB EDA Suite
|
Per-component decomposition descriptor stored in the Sim.Decomposition field. More...
#include <sim_model_multiunit.h>
Public Types | |
| enum class | MODE { WHOLE_DEVICE , REPEAT_PER_UNIT } |
Public Member Functions | |
| wxString | Format () const |
Static Public Member Functions | |
| static SIM_DECOMPOSITION | Parse (const wxString &aField) |
Public Attributes | |
| MODE | mode = MODE::WHOLE_DEVICE |
| std::vector< wxString > | sharedModelPins |
Per-component decomposition descriptor stored in the Sim.Decomposition field.
It selects how a multi-unit symbol is turned into SPICE. WHOLE_DEVICE is the default and historic behavior (the per-unit Sim.Pins are merged into a single instance of a hand-built whole-device model). REPEAT_PER_UNIT instantiates a single-unit vendor model once per functional unit, sharing the listed model pins (typically the supply rails) across all instances.
Unknown or empty fields resolve to WHOLE_DEVICE so older and newer files alike keep today's safe behavior.
Definition at line 57 of file sim_model_multiunit.h.
|
strong |
| Enumerator | |
|---|---|
| WHOLE_DEVICE | |
| REPEAT_PER_UNIT | |
Definition at line 59 of file sim_model_multiunit.h.
| wxString SIM_DECOMPOSITION::Format | ( | ) | const |
Definition at line 71 of file sim_model_multiunit.cpp.
References mode, REPEAT_PER_UNIT, result, and sharedModelPins.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and DIALOG_SIM_MODEL< T >::TransferDataFromWindow().
|
static |
Definition at line 32 of file sim_model_multiunit.cpp.
References REPEAT_PER_UNIT, and result.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), NETLIST_EXPORTER_SPICE::getDecomposition(), and DIALOG_SIM_MODEL< T >::updateDecompositionControls().
| MODE SIM_DECOMPOSITION::mode = MODE::WHOLE_DEVICE |
Definition at line 65 of file sim_model_multiunit.h.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), Format(), NETLIST_EXPORTER_SPICE::readModel(), DIALOG_SIM_MODEL< T >::TransferDataFromWindow(), and DIALOG_SIM_MODEL< T >::updateDecompositionControls().
| std::vector<wxString> SIM_DECOMPOSITION::sharedModelPins |
Definition at line 66 of file sim_model_multiunit.h.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), Format(), NETLIST_EXPORTER_SPICE::readModel(), DIALOG_SIM_MODEL< T >::TransferDataFromWindow(), and DIALOG_SIM_MODEL< T >::updateDecompositionControls().