KiCad PCB EDA Suite
Loading...
Searching...
No Matches
KIBIS_WAVEFORM_RECTANGULAR Class Reference

#include <kibis.h>

Inheritance diagram for KIBIS_WAVEFORM_RECTANGULAR:
KIBIS_WAVEFORM KIBIS_ANY IBIS_ANY

Public Member Functions

 KIBIS_WAVEFORM_RECTANGULAR (KIBIS &aTopLevel)
 
std::vector< std::pair< int, double > > GenerateBitSequence () const override
 
bool Check (const IbisWaveform *aRisingWf, const IbisWaveform *aFallingWf) const override
 
bool Check (const dvdtTypMinMax &aRisingRp, const dvdtTypMinMax &aFallingRp) const override
 
double GetDuration () const override
 
KIBIS_WAVEFORM_TYPE GetType () const
 
void Report (std::string aMsg, SEVERITY aSeverity=RPT_SEVERITY_INFO) const
 Print a message.
 

Public Attributes

double m_ton = 100e-9
 
double m_toff = 100e-9
 
double m_delay = 0
 
int m_cycles = 1
 
bool inverted = false
 
KIBISm_topLevel
 
bool m_valid
 
REPORTERm_reporter
 

Static Protected Member Functions

static std::string doubleToString (double aNumber)
 Convert a double to string using scientific notation.
 

Protected Attributes

KIBIS_WAVEFORM_TYPE m_type = KIBIS_WAVEFORM_TYPE::NONE
 

Detailed Description

Definition at line 101 of file kibis.h.

Constructor & Destructor Documentation

◆ KIBIS_WAVEFORM_RECTANGULAR()

KIBIS_WAVEFORM_RECTANGULAR::KIBIS_WAVEFORM_RECTANGULAR ( KIBIS aTopLevel)
inline

Definition at line 104 of file kibis.h.

References KIBIS_WAVEFORM::m_type.

Member Function Documentation

◆ Check() [1/2]

bool KIBIS_WAVEFORM_RECTANGULAR::Check ( const dvdtTypMinMax aRisingRp,
const dvdtTypMinMax aFallingRp 
) const
overridevirtual

Reimplemented from KIBIS_WAVEFORM.

Definition at line 1552 of file kibis.cpp.

References _, m_cycles, dvdt::m_dt, m_toff, m_ton, IBIS_ANY::Report(), RPT_SEVERITY_ERROR, and dvdtTypMinMax::value.

◆ Check() [2/2]

bool KIBIS_WAVEFORM_RECTANGULAR::Check ( const IbisWaveform aRisingWf,
const IbisWaveform aFallingWf 
) const
overridevirtual

Reimplemented from KIBIS_WAVEFORM.

Definition at line 1505 of file kibis.cpp.

References _, m_cycles, m_toff, m_ton, IBIS_ANY::Report(), RPT_SEVERITY_ERROR, and RPT_SEVERITY_WARNING.

◆ doubleToString()

std::string IBIS_ANY::doubleToString ( double  aNumber)
staticprotectedinherited

Convert a double to string using scientific notation.

Parameters
aNumberNumber
Returns
Output string

Definition at line 300 of file ibis_parser.cpp.

Referenced by KIBIS_MODEL::generateSquareWave(), KIBIS_PIN::getKuKdOneWaveform(), KIBIS_PIN::getKuKdTwoWaveforms(), KIBIS_PIN::KuKdDriver(), IVtable::Spice(), KIBIS_MODEL::SpiceDie(), KIBIS_PIN::writeSpiceDevice(), and KIBIS_PIN::writeSpiceDriver().

◆ GenerateBitSequence()

std::vector< std::pair< int, double > > KIBIS_WAVEFORM_RECTANGULAR::GenerateBitSequence ( ) const
overridevirtual

Reimplemented from KIBIS_WAVEFORM.

Definition at line 1451 of file kibis.cpp.

References KIBIS_WAVEFORM::inverted, m_cycles, m_delay, m_toff, and m_ton.

◆ GetDuration()

double KIBIS_WAVEFORM_RECTANGULAR::GetDuration ( ) const
inlineoverridevirtual

Reimplemented from KIBIS_WAVEFORM.

Definition at line 118 of file kibis.h.

References m_cycles, m_toff, and m_ton.

◆ GetType()

KIBIS_WAVEFORM_TYPE KIBIS_WAVEFORM::GetType ( ) const
inlineinherited

◆ Report()

Member Data Documentation

◆ inverted

◆ m_cycles

int KIBIS_WAVEFORM_RECTANGULAR::m_cycles = 1

◆ m_delay

double KIBIS_WAVEFORM_RECTANGULAR::m_delay = 0

Definition at line 110 of file kibis.h.

Referenced by GenerateBitSequence(), SPICE_GENERATOR_IBIS::IbisDevice(), and main().

◆ m_reporter

◆ m_toff

double KIBIS_WAVEFORM_RECTANGULAR::m_toff = 100e-9

◆ m_ton

double KIBIS_WAVEFORM_RECTANGULAR::m_ton = 100e-9

◆ m_topLevel

◆ m_type

◆ m_valid


The documentation for this class was generated from the following files: