24#include <pegtl/contrib/parse_tree.hpp>
34 aReporter.
Report( wxString::Format(
_(
"Invalid IBIS file '%s'" ), aFilePath ),
39 const std::vector<wxString> pins = { wxS(
"1" ), wxS(
"2" ) };
58 if( kcomp.
m_name != aCompName )
79 for( std::pair<std::string, std::string> aInfo :
m_diffPins )
81 if( aInfo.first == aComp && aInfo.second == aPinNumber )
std::vector< KIBIS_PIN > m_pins
std::string m_name
Name of the component.
std::string m_pinNumber
Pin Number Examples : 1, 2, 3 ( or for BGA ), A1, A2, A3, etc...
std::string m_signalName
Name of the pin Examples : "VCC", "GPIOA", "CLK", etc...
A pure virtual class used to derive REPORTER objects from.
virtual REPORTER & Report(const wxString &aText, SEVERITY aSeverity=RPT_SEVERITY_UNDEFINED)
Report a string with a given severity.
void ReadFile(const wxString &aFilePath, REPORTER &aReporter) override
Read library from a source file.
friend class SIM_MODEL_IBIS
bool InitModel(SIM_MODEL_IBIS &aModel, wxString aCompName)
std::vector< std::pair< std::string, std::string > > m_diffPins
bool isPinDiff(const std::string &aComp, const std::string &aPinNumber) const
virtual void ReadFile(const wxString &aFilePath, REPORTER &aReporter)=0
Read library from a source file.
std::vector< std::string > m_modelNames
std::vector< std::unique_ptr< SIM_MODEL > > m_models
std::vector< std::pair< std::string, std::string > > m_ibisPins
std::string m_componentName
static std::unique_ptr< SIM_MODEL > Create(TYPE aType, std::span< const wxString > aPins, REPORTER &aReporter)