KiCad PCB EDA Suite
Loading...
Searching...
No Matches
sim_library_ibis.h
Go to the documentation of this file.
1/*
2 * This program source code file is part of KiCad, a free EDA CAD application.
3 *
4 * Copyright The KiCad Developers, see AUTHORS.txt for contributors.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 3
9 * of the License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <https://www.gnu.org/licenses/>.
18 */
19
20#ifndef SIM_LIBRARY_IBIS_H
21#define SIM_LIBRARY_IBIS_H
22
23#include <sim/kibis/kibis.h>
24#include <sim/sim_library.h>
25#include <sim/sim_model_ibis.h>
26
28{
29 friend class SIM_MODEL_IBIS;
30
31public:
32 static constexpr auto PIN_FIELD = "Sim.Ibis.Pin";
33 static constexpr auto MODEL_FIELD = "Sim.Ibis.Model";
34 static constexpr auto DIFF_FIELD = "Sim.Ibis.Diff";
35
36 // @copydoc SIM_LIBRARY::ReadFile()
37 void ReadFile( const wxString& aFilePath, REPORTER& aReporter ) override;
38
39 bool InitModel( SIM_MODEL_IBIS& aModel, wxString aCompName );
40 bool isPinDiff( const std::string& aComp, const std::string& aPinNumber ) const;
41
42protected:
43 mutable KIBIS m_kibis;
44 std::vector<std::pair<std::string, std::string>> m_diffPins;
45};
46
47#endif // SIM_LIBRARY_IBIS_H
Definition kibis.h:513
A pure virtual class used to derive REPORTER objects from.
Definition reporter.h:71
void ReadFile(const wxString &aFilePath, REPORTER &aReporter) override
Read library from a source file.
friend class SIM_MODEL_IBIS
static constexpr auto MODEL_FIELD
bool InitModel(SIM_MODEL_IBIS &aModel, wxString aCompName)
static constexpr auto PIN_FIELD
static constexpr auto DIFF_FIELD
std::vector< std::pair< std::string, std::string > > m_diffPins
bool isPinDiff(const std::string &aComp, const std::string &aPinNumber) const
SIM_LIBRARY()=default