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 () override
 
bool Check (IbisWaveform *aRisingWf, IbisWaveform *aFallingWf) override
 
bool Check (dvdtTypMinMax aRisingRp, dvdtTypMinMax aFallingRp) override
 
double GetDuration () override
 
KIBIS_WAVEFORM_TYPE GetType ()
 
void Report (std::string aMsg, SEVERITY aSeverity=RPT_SEVERITY_INFO)
 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
 

Protected Member Functions

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 87 of file kibis.h.

Constructor & Destructor Documentation

◆ KIBIS_WAVEFORM_RECTANGULAR()

KIBIS_WAVEFORM_RECTANGULAR::KIBIS_WAVEFORM_RECTANGULAR ( KIBIS aTopLevel)
inline

Definition at line 90 of file kibis.h.

References KIBIS_WAVEFORM::m_type.

Member Function Documentation

◆ Check() [1/2]

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

Reimplemented from KIBIS_WAVEFORM.

Definition at line 1561 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 ( IbisWaveform aRisingWf,
IbisWaveform aFallingWf 
)
overridevirtual

Reimplemented from KIBIS_WAVEFORM.

Definition at line 1515 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)
protectedinherited

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 ( )
overridevirtual

Reimplemented from KIBIS_WAVEFORM.

Definition at line 1462 of file kibis.cpp.

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

◆ GetDuration()

double KIBIS_WAVEFORM_RECTANGULAR::GetDuration ( )
inlineoverridevirtual

Reimplemented from KIBIS_WAVEFORM.

Definition at line 104 of file kibis.h.

References m_cycles, m_toff, and m_ton.

◆ GetType()

KIBIS_WAVEFORM_TYPE KIBIS_WAVEFORM::GetType ( )
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 96 of file kibis.h.

Referenced by GenerateBitSequence(), SPICE_GENERATOR_KIBIS::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: