![]() |
KiCad PCB EDA Suite
|
Special netlist exporter flavor that allows one to override simulation commands. More...
#include <netlist_exporter_pspice_sim.h>
Public Types | |
typedef std::list< SPICE_ITEM > | SPICE_ITEM_LIST |
Net name to circuit node number mapping. More... | |
typedef std::map< wxString, int > | NET_INDEX_MAP |
Public Member Functions | |
NETLIST_EXPORTER_PSPICE_SIM (SCHEMATIC_IFACE *aSchematic) | |
wxString | ComponentToVector (const wxString &aName, SIM_PLOT_TYPE aType, const wxString &aParam=wxEmptyString) const |
Return name of Spice dataset for a specific plot. More... | |
SIM_PLOT_TYPE | VectorToSignal (const std::string &aVector, wxString &aSignal) const |
Return name of Spice dataset for a specific plot. More... | |
void | SetSimCommand (const wxString &aCmd) |
Override the simulation command directive. More... | |
const wxString & | GetSimCommand () const |
Return the simulation command directive. More... | |
void | ClearSimCommand () |
Clear the simulation command directive. More... | |
wxString | GetUsedSimCommand () |
Return the command directive that is in use (either from the sheet or from m_simCommand. More... | |
SIM_TYPE | GetSimType () |
Return simulation type basing on the simulation command directives. More... | |
wxString | GetSheetSimCommand () |
Return simulation command directives placed in schematic sheets (if any). More... | |
bool | ParseDCCommand (const wxString &aCmd, SPICE_DC_PARAMS *aSource1, SPICE_DC_PARAMS *aSource2) |
Parse a two-source .dc command directive into its components. More... | |
const SPICE_ITEM_LIST & | GetSpiceItems () const |
Return list of items representing schematic components in the Spice world. More... | |
wxString | GetSpiceDevice (const wxString &aComponent) const |
Return name of Spice device corresponding to a schematic component. More... | |
bool | WriteNetlist (const wxString &aOutFileName, unsigned aNetlistOptions) override |
Write to specified output file. More... | |
bool | Format (OUTPUTFORMATTER *aFormatter, unsigned aCtl) |
bool | ProcessNetlist (unsigned aCtl) |
Process the netlist to create net mapping and a list of SPICE_ITEMs. More... | |
const NET_INDEX_MAP & | GetNetIndexMap () const |
Return a map of circuit nodes to net names. More... | |
void | UpdateDirectives (unsigned aCtl) |
Update the vector of Spice directives placed in the schematics. More... | |
const std::vector< wxString > | GetDirectives () const |
Return a vector of Spice directives found in the schematics. More... | |
Static Public Member Functions | |
static const std::vector< wxString > & | GetCurrents (SPICE_PRIMITIVE aPrimitive) |
Return a list of currents that can be probed in a Spice primitive. More... | |
static bool | IsSimCommand (const wxString &aCmd) |
Determine if a directive is a simulation command. More... | |
static SIM_TYPE | CommandToSimType (const wxString &aCmd) |
Return simulation type basing on a simulation command directive. More... | |
static void | ReplaceForbiddenChars (wxString &aNetName) |
Replace illegal spice net name characters with an underscore. More... | |
static const std::vector< wxString > & | GetSpiceFields () |
Return a vector of component field names related to Spice simulation. More... | |
static const wxString & | GetSpiceFieldName (SPICE_FIELD aField) |
Return a string used for a particular component field related to Spice simulation. More... | |
static wxString | GetSpiceField (SPICE_FIELD aField, SCH_COMPONENT *aComponent, unsigned aCtl) |
Retrieve either the requested field value or the default value. More... | |
static wxString | GetSpiceFieldDefVal (SPICE_FIELD aField, SCH_COMPONENT *aComponent, unsigned aCtl) |
Retrieve the default value for a given field. More... | |
static bool | StringToBool (const wxString &aStr) |
Convert typical boolean string values (no/yes, true/false, 1/0) to a boolean value. More... | |
static wxString | MakeCommandLine (const wxString &aFormatString, const wxString &aNetlistFile, const wxString &aFinalFile, const wxString &aProjectDirectory) |
Function MakeCommandLine builds up a string that describes a command line for executing a child process. More... | |
Protected Member Functions | |
void | writeDirectives (OUTPUTFORMATTER *aFormatter, unsigned aCtl) const override |
Save the Spice directives. More... | |
void | CreatePinList (SCH_COMPONENT *aSymbol, SCH_SHEET_PATH *aSheetPath) |
Function findNextSymbolAndCreatePinList finds a symbol from the DrawList and builds its pin list in m_sortedSymbolPinList. More... | |
SCH_COMPONENT * | findNextSymbol (EDA_ITEM *aItem, SCH_SHEET_PATH *aSheetPath) |
Checks if the given symbol should be processed for netlisting. More... | |
void | eraseDuplicatePins () |
Function eraseDuplicatePins erase duplicate Pins from m_sortedSymbolPinList (i.e. More... | |
void | findAllUnitsOfSymbol (SCH_COMPONENT *aSymbol, LIB_PART *aPart, SCH_SHEET_PATH *aSheetPath) |
Function findAllUnitsOfSymbol is used for "multiple parts per package" symbols. More... | |
Protected Attributes | |
std::vector< PIN_INFO > | m_sortedSymbolPinList |
Used to temporarily store and filter the list of pins of a schematic symbol when generating schematic symbol data in netlist (comp section). More... | |
UNIQUE_STRINGS | m_referencesAlreadyFound |
Used for "multiple parts per package" symbols to avoid processing a lib part more than once. More... | |
std::set< LIB_PART *, LIB_PART_LESS_THAN > | m_libParts |
unique library parts used. LIB_PART items are sorted by names More... | |
SCHEMATIC_IFACE * | m_schematic |
The schematic we're generating a netlist for. More... | |
SCH_SHEET_PATH | m_savedCurrentSheet |
The schematic's CurrentSheet when we entered. Restore on exiting. More... | |
Private Attributes | |
wxString | m_simCommand |
< Custom simulation command (has priority over the schematic sheet simulation commands) More... | |
Special netlist exporter flavor that allows one to override simulation commands.
Definition at line 46 of file netlist_exporter_pspice_sim.h.
|
inherited |
Definition at line 116 of file netlist_exporter_pspice.h.
|
inherited |
Net name to circuit node number mapping.
Definition at line 113 of file netlist_exporter_pspice.h.
|
inline |
Definition at line 49 of file netlist_exporter_pspice_sim.h.
|
inline |
Clear the simulation command directive.
Definition at line 101 of file netlist_exporter_pspice_sim.h.
References m_simCommand.
|
static |
Return simulation type basing on a simulation command directive.
Definition at line 167 of file netlist_exporter_pspice_sim.cpp.
References ST_AC, ST_DC, ST_DISTORTION, ST_NOISE, ST_OP, ST_POLE_ZERO, ST_SENSITIVITY, ST_TRANS_FUNC, ST_TRANSIENT, and ST_UNKNOWN.
Referenced by BOOST_AUTO_TEST_CASE(), GetSimType(), SIM_PANEL_BASE::GetType(), IsSimCommand(), SIM_PLOT_FRAME::NewPlotPanel(), and SIM_PLOT_FRAME::onSettings().
wxString NETLIST_EXPORTER_PSPICE_SIM::ComponentToVector | ( | const wxString & | aName, |
SIM_PLOT_TYPE | aType, | ||
const wxString & | aParam = wxEmptyString |
||
) | const |
Return name of Spice dataset for a specific plot.
aName | is name of the measured net or device |
aType | describes the type of expected plot |
aParam | is an optional parameter for devices, if absent it will return current (only for passive devices). |
Definition at line 30 of file netlist_exporter_pspice_sim.cpp.
References Format(), NETLIST_EXPORTER_PSPICE::GetSpiceDevice(), NETLIST_EXPORTER_PSPICE::ReplaceForbiddenChars(), SPT_AC_MAG, SPT_AC_PHASE, SPT_CURRENT, SPT_VOLTAGE, and UnescapeString().
Referenced by writeDirectives().
|
protectedinherited |
Function findNextSymbolAndCreatePinList finds a symbol from the DrawList and builds its pin list in m_sortedSymbolPinList.
This list is sorted by pin num. The symbol is the next actual symbol after aSymbol.
Power symbols and virtual symbols that have their reference designators starting with '#' are skipped.
Definition at line 122 of file netlist_exporter_base.cpp.
References SCHEMATIC_IFACE::ConnectionGraph(), NETLIST_EXPORTER_BASE::eraseDuplicatePins(), NETLIST_EXPORTER_BASE::findAllUnitsOfSymbol(), CONNECTION_GRAPH::FindSubgraphByName(), SCH_COMPONENT::GetPartRef(), SCH_COMPONENT::GetPins(), SCH_COMPONENT::GetRef(), CONNECTION_SUBGRAPH::m_items, NETLIST_EXPORTER_BASE::m_libParts, CONNECTION_SUBGRAPH::m_no_connect, NETLIST_EXPORTER_BASE::m_schematic, NETLIST_EXPORTER_BASE::m_sortedSymbolPinList, and sortPinsByNum().
Referenced by NETLIST_EXPORTER_PSPICE::ProcessNetlist(), and NETLIST_EXPORTER_ORCADPCB2::WriteNetlist().
|
protectedinherited |
Function eraseDuplicatePins erase duplicate Pins from m_sortedSymbolPinList (i.e.
set pointer in this list to NULL). (This is a list of pins found in the whole schematic, for a single symbol.) These duplicate pins were put in list because some pins (power pins...) are found more than once when in "multiple parts per package" symbols. For instance, a 74ls00 has 4 parts, and therefore the VCC pin and GND pin appears 4 times in the list. Note: this list MUST be sorted by pin number (.m_PinNum member value) Also set the m_Flag member of "removed" NETLIST_OBJECT pin item to 1
Definition at line 183 of file netlist_exporter_base.cpp.
References NETLIST_EXPORTER_BASE::m_sortedSymbolPinList.
Referenced by NETLIST_EXPORTER_BASE::CreatePinList().
|
protectedinherited |
Function findAllUnitsOfSymbol is used for "multiple parts per package" symbols.
Search the entire design for all units of aSymbol based on matching reference designator, and for each unit, add all its pins to the temporary sorted pin list, m_sortedSymbolPinList.
Definition at line 216 of file netlist_exporter_base.cpp.
References SCHEMATIC_IFACE::ConnectionGraph(), CONNECTION_GRAPH::FindSubgraphByName(), SCH_COMPONENT::GetPins(), SCH_COMPONENT::GetRef(), SCHEMATIC_IFACE::GetSheets(), CONNECTION_SUBGRAPH::m_items, CONNECTION_SUBGRAPH::m_no_connect, NETLIST_EXPORTER_BASE::m_schematic, NETLIST_EXPORTER_BASE::m_sortedSymbolPinList, and SCH_COMPONENT_T.
Referenced by NETLIST_EXPORTER_BASE::CreatePinList().
|
protectedinherited |
Checks if the given symbol should be processed for netlisting.
Prevents processing multi-unit symbols more than once, etc.
aItem | is a symbol to check |
aSheetPath | is the sheet to check the symbol for |
Definition at line 74 of file netlist_exporter_base.cpp.
References SCH_COMPONENT::GetPartRef(), SCH_COMPONENT::GetRef(), UNIQUE_STRINGS::Lookup(), NETLIST_EXPORTER_BASE::m_libParts, NETLIST_EXPORTER_BASE::m_referencesAlreadyFound, SCH_COMPONENT_T, and EDA_ITEM::Type().
Referenced by NETLIST_EXPORTER_XML::makeSymbols(), NETLIST_EXPORTER_PSPICE::ProcessNetlist(), NETLIST_EXPORTER_ORCADPCB2::WriteNetlist(), and NETLIST_EXPORTER_CADSTAR::WriteNetlist().
|
inherited |
Definition at line 79 of file netlist_exporter_pspice.cpp.
References _, DisplayError(), Format(), NETLIST_EXPORTER_PSPICE::GetSpiceDevice(), NETLIST_EXPORTER_PSPICE::m_libraries, NETLIST_EXPORTER_PSPICE::m_netMap, NETLIST_EXPORTER_BASE::m_schematic, NETLIST_EXPORTER_PSPICE::m_spiceItems, NETLIST_EXPORTER_PSPICE::m_title, NET_ADJUST_INCLUDE_PATHS, NULL, Pgm(), OUTPUTFORMATTER::Print(), SCHEMATIC_IFACE::Prj(), NETLIST_EXPORTER_PSPICE::ProcessNetlist(), NETLIST_EXPORTER_PSPICE::ReplaceForbiddenChars(), ResolveFile(), TO_UTF8, UnescapeString(), and NETLIST_EXPORTER_PSPICE::writeDirectives().
Referenced by NETLIST_EXPORTER_PSPICE::WriteNetlist().
|
static |
Return a list of currents that can be probed in a Spice primitive.
Definition at line 108 of file netlist_exporter_pspice_sim.cpp.
References empty(), SP_BJT, SP_CAPACITOR, SP_DIODE, SP_INDUCTOR, SP_MOSFET, SP_RESISTOR, and SP_VSOURCE.
Referenced by DIALOG_SIGNAL_LIST::TransferDataToWindow(), and writeDirectives().
|
inlineinherited |
Return a vector of Spice directives found in the schematics.
Definition at line 204 of file netlist_exporter_pspice.h.
References NETLIST_EXPORTER_PSPICE::m_directives.
Referenced by GetSheetSimCommand(), and writeDirectives().
|
inlineinherited |
Return a map of circuit nodes to net names.
Definition at line 164 of file netlist_exporter_pspice.h.
References NETLIST_EXPORTER_PSPICE::m_netMap.
Referenced by DIALOG_SIM_SETTINGS::ShowModal(), DIALOG_SIM_SETTINGS::TransferDataFromWindow(), DIALOG_SIGNAL_LIST::TransferDataToWindow(), and writeDirectives().
wxString NETLIST_EXPORTER_PSPICE_SIM::GetSheetSimCommand | ( | ) |
Return simulation command directives placed in schematic sheets (if any).
Definition at line 139 of file netlist_exporter_pspice_sim.cpp.
References Format(), NETLIST_EXPORTER_PSPICE::GetDirectives(), IsSimCommand(), NET_ALL_FLAGS, and NETLIST_EXPORTER_PSPICE::UpdateDirectives().
Referenced by GetUsedSimCommand(), and DIALOG_SIM_SETTINGS::loadDirectives().
|
inline |
Return the simulation command directive.
Definition at line 93 of file netlist_exporter_pspice_sim.h.
References m_simCommand.
SIM_TYPE NETLIST_EXPORTER_PSPICE_SIM::GetSimType | ( | ) |
Return simulation type basing on the simulation command directives.
Simulation directives set using SetSimCommand() have priority over the ones placed in schematic sheets.
Definition at line 161 of file netlist_exporter_pspice_sim.cpp.
References CommandToSimType(), and GetUsedSimCommand().
Referenced by DIALOG_SIGNAL_LIST::TransferDataToWindow().
|
inherited |
Return name of Spice device corresponding to a schematic component.
aComponent | is the component reference. |
Definition at line 43 of file netlist_exporter_pspice.cpp.
References NETLIST_EXPORTER_PSPICE::GetSpiceItems().
Referenced by ComponentToVector(), DIALOG_SIM_SETTINGS::evaluateDCControls(), NETLIST_EXPORTER_PSPICE::Format(), DIALOG_SIM_SETTINGS::TransferDataFromWindow(), and TUNER_SLIDER::TUNER_SLIDER().
|
staticinherited |
Retrieve either the requested field value or the default value.
Definition at line 174 of file netlist_exporter_pspice.cpp.
References SCH_COMPONENT::FindField(), SCH_FIELD::GetShownText(), NETLIST_EXPORTER_PSPICE::GetSpiceFieldDefVal(), and NETLIST_EXPORTER_PSPICE::GetSpiceFieldName().
Referenced by SIM_PLOT_FRAME::AddTuner(), and NETLIST_EXPORTER_PSPICE::ProcessNetlist().
|
staticinherited |
Retrieve the default value for a given field.
Definition at line 182 of file netlist_exporter_pspice.cpp.
References SCH_COMPONENT::GetField(), SCH_COMPONENT::GetPartRef(), SCH_FIELD::GetShownText(), NET_ADJUST_PASSIVE_VALS, REFERENCE_FIELD, SF_ENABLED, SF_LIB_FILE, SF_MODEL, SF_NODE_SEQUENCE, SF_PRIMITIVE, and VALUE_FIELD.
Referenced by NETLIST_EXPORTER_PSPICE::GetSpiceField(), and DIALOG_SPICE_MODEL::TransferDataToWindow().
|
inlinestaticinherited |
Return a string used for a particular component field related to Spice simulation.
Definition at line 180 of file netlist_exporter_pspice.h.
References NETLIST_EXPORTER_PSPICE::m_spiceFields.
Referenced by DIALOG_SPICE_MODEL::getLibField(), DIALOG_SPICE_MODEL::getSchField(), NETLIST_EXPORTER_PSPICE::GetSpiceField(), NETLIST_EXPORTER_PSPICE::ProcessNetlist(), and DIALOG_SPICE_MODEL::TransferDataFromWindow().
|
inlinestaticinherited |
Return a vector of component field names related to Spice simulation.
Definition at line 172 of file netlist_exporter_pspice.h.
References NETLIST_EXPORTER_PSPICE::m_spiceFields.
Referenced by DIALOG_SPICE_MODEL::TransferDataToWindow().
|
inlineinherited |
Return list of items representing schematic components in the Spice world.
Definition at line 121 of file netlist_exporter_pspice.h.
References NETLIST_EXPORTER_PSPICE::m_spiceItems.
Referenced by NETLIST_EXPORTER_PSPICE::GetSpiceDevice(), DIALOG_SIGNAL_LIST::TransferDataToWindow(), DIALOG_SIM_SETTINGS::updateDCSources(), and writeDirectives().
wxString NETLIST_EXPORTER_PSPICE_SIM::GetUsedSimCommand | ( | ) |
Return the command directive that is in use (either from the sheet or from m_simCommand.
Definition at line 155 of file netlist_exporter_pspice_sim.cpp.
References GetSheetSimCommand(), and m_simCommand.
Referenced by GetSimType().
|
inlinestatic |
Determine if a directive is a simulation command.
Definition at line 137 of file netlist_exporter_pspice_sim.h.
References CommandToSimType(), and ST_UNKNOWN.
Referenced by GetSheetSimCommand(), and writeDirectives().
|
staticinherited |
Function MakeCommandLine builds up a string that describes a command line for executing a child process.
The input and output file names along with any options to the executable are all possibly in the returned string.
aFormatString | holds:
|
aNetlistFile | is the name of the input file for the external program, that is a intermediate netlist file in xml format. |
aFinalFile | is the name of the output file that the user expects. |
aProjectDirectory | is used for P replacement, it should omit the trailing '/'. |
Supported formatting sequences and their meaning:
Definition at line 38 of file netlist_exporter_base.cpp.
Referenced by SCH_EDIT_FRAME::WriteNetListFile().
bool NETLIST_EXPORTER_PSPICE_SIM::ParseDCCommand | ( | const wxString & | aCmd, |
SPICE_DC_PARAMS * | aSource1, | ||
SPICE_DC_PARAMS * | aSource2 | ||
) |
Parse a two-source .dc command directive into its components.
aCmd | is the input command string |
Definition at line 193 of file netlist_exporter_pspice_sim.cpp.
References SPICE_DC_PARAMS::m_source, SPICE_DC_PARAMS::m_vend, SPICE_DC_PARAMS::m_vincrement, and SPICE_DC_PARAMS::m_vstart.
Referenced by DIALOG_SIM_SETTINGS::parseCommand().
|
inherited |
Process the netlist to create net mapping and a list of SPICE_ITEMs.
It is automatically called by WriteNetlist(), but might be used separately, if only net mapping and the list of SPICE_ITEMs are required.
Definition at line 264 of file netlist_exporter_pspice.cpp.
References UNIQUE_STRINGS::Clear(), NETLIST_EXPORTER_BASE::CreatePinList(), DisplayError(), SCH_COMPONENT::FindField(), NETLIST_EXPORTER_BASE::findNextSymbol(), SCH_COMPONENT::GetRef(), SCHEMATIC_IFACE::GetSheets(), SCH_FIELD::GetShownText(), NETLIST_EXPORTER_PSPICE::GetSpiceField(), NETLIST_EXPORTER_PSPICE::GetSpiceFieldName(), SCH_SCREEN::Items(), SCH_SHEET_PATH::LastScreen(), SPICE_ITEM::m_enabled, NETLIST_EXPORTER_BASE::m_libParts, NETLIST_EXPORTER_PSPICE::m_libraries, SPICE_ITEM::m_model, NETLIST_EXPORTER_PSPICE::m_netMap, SPICE_ITEM::m_parent, SPICE_ITEM::m_pins, SPICE_ITEM::m_pinSequence, SPICE_ITEM::m_primitive, NETLIST_EXPORTER_BASE::m_referencesAlreadyFound, SPICE_ITEM::m_refName, NETLIST_EXPORTER_BASE::m_schematic, NETLIST_EXPORTER_BASE::m_sortedSymbolPinList, NETLIST_EXPORTER_PSPICE::m_spiceItems, NULL, EE_RTREE::OfType(), SCH_COMPONENT_T, SF_ENABLED, SF_LIB_FILE, SF_MODEL, SF_NODE_SEQUENCE, SF_PRIMITIVE, NETLIST_EXPORTER_PSPICE::StringToBool(), and NETLIST_EXPORTER_PSPICE::UpdateDirectives().
Referenced by NETLIST_EXPORTER_PSPICE::Format().
|
staticinherited |
Replace illegal spice net name characters with an underscore.
aNetName | is the net name to modify. |
Definition at line 67 of file netlist_exporter_pspice.cpp.
Referenced by ComponentToVector(), and NETLIST_EXPORTER_PSPICE::Format().
|
inline |
Override the simulation command directive.
Definition at line 85 of file netlist_exporter_pspice_sim.h.
References m_simCommand.
|
inlinestaticinherited |
Convert typical boolean string values (no/yes, true/false, 1/0) to a boolean value.
Definition at line 212 of file netlist_exporter_pspice.h.
Referenced by NETLIST_EXPORTER_PSPICE::ProcessNetlist(), and DIALOG_SPICE_MODEL::TransferDataToWindow().
|
inherited |
Update the vector of Spice directives placed in the schematics.
Definition at line 369 of file netlist_exporter_pspice.cpp.
References SCHEMATIC_IFACE::GetSheets(), NETLIST_EXPORTER_PSPICE::m_directives, NETLIST_EXPORTER_PSPICE::m_libraries, NETLIST_EXPORTER_BASE::m_schematic, NETLIST_EXPORTER_PSPICE::m_title, and SCH_TEXT_T.
Referenced by GetSheetSimCommand(), and NETLIST_EXPORTER_PSPICE::ProcessNetlist().
SIM_PLOT_TYPE NETLIST_EXPORTER_PSPICE_SIM::VectorToSignal | ( | const std::string & | aVector, |
wxString & | aSignal | ||
) | const |
Return name of Spice dataset for a specific plot.
aVector | is name of the vector produced by ngspice | |
[out] | aSignal | is output in form: V(R1), Ib(Q2), I(L8) |
Definition at line 73 of file netlist_exporter_pspice_sim.cpp.
References SPT_CURRENT, SPT_UNKNOWN, and SPT_VOLTAGE.
|
overrideprotectedvirtual |
Save the Spice directives.
Reimplemented from NETLIST_EXPORTER_PSPICE.
Definition at line 225 of file netlist_exporter_pspice_sim.cpp.
References ComponentToVector(), GetCurrents(), NETLIST_EXPORTER_PSPICE::GetDirectives(), NETLIST_EXPORTER_PSPICE::GetNetIndexMap(), NETLIST_EXPORTER_PSPICE::GetSpiceItems(), IsSimCommand(), m_simCommand, OUTPUTFORMATTER::Print(), SPT_CURRENT, SPT_VOLTAGE, and NETLIST_EXPORTER_PSPICE::writeDirectives().
|
overridevirtualinherited |
Write to specified output file.
Output a PTREE into s-expression format via an OUTPUTFORMATTER derivative.
Reimplemented from NETLIST_EXPORTER_BASE.
Definition at line 60 of file netlist_exporter_pspice.cpp.
References NETLIST_EXPORTER_PSPICE::Format().
|
protectedinherited |
unique library parts used. LIB_PART items are sorted by names
Definition at line 108 of file netlist_exporter_base.h.
Referenced by NETLIST_EXPORTER_BASE::CreatePinList(), NETLIST_EXPORTER_BASE::findNextSymbol(), NETLIST_EXPORTER_XML::makeLibParts(), NETLIST_EXPORTER_XML::makeSymbols(), and NETLIST_EXPORTER_PSPICE::ProcessNetlist().
|
protectedinherited |
Used for "multiple parts per package" symbols to avoid processing a lib part more than once.
Definition at line 105 of file netlist_exporter_base.h.
Referenced by NETLIST_EXPORTER_BASE::findNextSymbol(), NETLIST_EXPORTER_XML::makeSymbols(), NETLIST_EXPORTER_PSPICE::ProcessNetlist(), NETLIST_EXPORTER_ORCADPCB2::WriteNetlist(), and NETLIST_EXPORTER_CADSTAR::WriteNetlist().
|
protectedinherited |
The schematic's CurrentSheet when we entered. Restore on exiting.
Definition at line 114 of file netlist_exporter_base.h.
Referenced by NETLIST_EXPORTER_BASE::NETLIST_EXPORTER_BASE(), and NETLIST_EXPORTER_BASE::~NETLIST_EXPORTER_BASE().
|
protectedinherited |
The schematic we're generating a netlist for.
Definition at line 111 of file netlist_exporter_base.h.
Referenced by NETLIST_EXPORTER_XML::addSymbolFields(), NETLIST_EXPORTER_BASE::CreatePinList(), NETLIST_EXPORTER_BASE::findAllUnitsOfSymbol(), NETLIST_EXPORTER_PSPICE::Format(), NETLIST_EXPORTER_XML::makeDesignHeader(), NETLIST_EXPORTER_XML::makeLibraries(), NETLIST_EXPORTER_XML::makeListOfNets(), NETLIST_EXPORTER_XML::makeSymbols(), NETLIST_EXPORTER_BASE::NETLIST_EXPORTER_BASE(), NETLIST_EXPORTER_PSPICE::ProcessNetlist(), NETLIST_EXPORTER_PSPICE::UpdateDirectives(), NETLIST_EXPORTER_CADSTAR::writeListOfNets(), NETLIST_EXPORTER_ORCADPCB2::WriteNetlist(), NETLIST_EXPORTER_CADSTAR::WriteNetlist(), and NETLIST_EXPORTER_BASE::~NETLIST_EXPORTER_BASE().
|
private |
< Custom simulation command (has priority over the schematic sheet simulation commands)
Definition at line 153 of file netlist_exporter_pspice_sim.h.
Referenced by ClearSimCommand(), GetSimCommand(), GetUsedSimCommand(), SetSimCommand(), and writeDirectives().
|
protectedinherited |
Used to temporarily store and filter the list of pins of a schematic symbol when generating schematic symbol data in netlist (comp section).
No ownership of members. TODO(snh): Descope this object
Definition at line 101 of file netlist_exporter_base.h.
Referenced by NETLIST_EXPORTER_BASE::CreatePinList(), NETLIST_EXPORTER_BASE::eraseDuplicatePins(), NETLIST_EXPORTER_BASE::findAllUnitsOfSymbol(), NETLIST_EXPORTER_PSPICE::ProcessNetlist(), and NETLIST_EXPORTER_ORCADPCB2::WriteNetlist().