KiCad PCB EDA Suite
Loading...
Searching...
No Matches
sim_signal_utils.h File Reference
#include <map>
#include <string>
#include <vector>
#include <wx/arrstr.h>
#include <wx/string.h>

Go to the source code of this file.

Namespaces

namespace  SIM_SIGNAL
 Text handling for simulator signal expressions and measurement commands.
 

Enumerations

enum class  SIM_SIGNAL::PART { SIM_SIGNAL::VALUE , SIM_SIGNAL::GAIN , SIM_SIGNAL::PHASE , SIM_SIGNAL::AMPLITUDE }
 Which part of a complex signal a plotted row shows. More...
 

Functions

bool SIM_SIGNAL::IsDerivedSignalVector (const wxString &aVectorName)
 
bool SIM_SIGNAL::IsSingleVoltageRef (const wxString &aExpression)
 
bool SIM_SIGNAL::IsMeasVector (const wxString &aSignal)
 
bool SIM_SIGNAL::MeasurableSignal (const wxString &aBase, PART aPart, wxString &aResult)
 Build the signal a measurement should read so it matches what is plotted.
 
void SIM_SIGNAL::SplitMeasurement (const wxString &aCmd, wxString &aFunc, wxString &aSignal, wxString &aParams)
 Split "MAX V(out) from=1m to=2m" into its function, signal and trailing parameters.
 
wxString SIM_SIGNAL::ExpandDeviceVoltages (const wxString &aExpression, const std::map< wxString, wxString > &aDeviceExprs)
 Replace V(R1), VDB(R1), VM(R1), ... with the terminal voltage expression of the part.
 
wxString SIM_SIGNAL::QuoteNetNames (const wxString &aExpression, const std::vector< wxString > &aNetnames)
 Quote every whole occurrence of a net name that ngspice would otherwise parse as an expression.
 
bool SIM_SIGNAL::ParensBalanced (const wxString &aExpression)
 
std::vector< wxString > SIM_SIGNAL::ExtractSignalRefs (const wxString &aExpression)
 Extract the V() and I() and P() node or device references from an expression, unquoted.
 
wxString SIM_SIGNAL::DeviceVoltageExpression (const std::vector< std::string > &aModelPins, const std::vector< std::string > &aPinNumbers, const std::vector< std::string > &aPinNetNames)
 Build the voltage across a two-terminal part in its model's pin order, matching the sign of I() and P().
 

Variables

const wxString SIM_SIGNAL::DEVICE_VECTOR_PREFIX = wxS( "kicad_vdev" )
 Vector name prefix for the voltage across a component, "kicad_vdev3".