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

#include <kibis.h>

Inheritance diagram for KIBIS_WAVEFORM_PRBS:
KIBIS_WAVEFORM KIBIS_ANY IBIS_ANY

Public Member Functions

 KIBIS_WAVEFORM_PRBS (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_bitrate = 10e6
 
double m_delay = 0
 
int m_bits = 10
 
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 108 of file kibis.h.

Constructor & Destructor Documentation

◆ KIBIS_WAVEFORM_PRBS()

KIBIS_WAVEFORM_PRBS::KIBIS_WAVEFORM_PRBS ( KIBIS aTopLevel)
inline

Definition at line 111 of file kibis.h.

References KIBIS_WAVEFORM::m_type.

Member Function Documentation

◆ Check() [1/2]

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

Reimplemented from KIBIS_WAVEFORM.

Definition at line 1603 of file kibis.cpp.

References _, m_bitrate, m_bits, dvdt::m_dt, IBIS_ANY::Report(), RPT_SEVERITY_ERROR, and dvdtTypMinMax::value.

◆ Check() [2/2]

bool KIBIS_WAVEFORM_PRBS::Check ( IbisWaveform aRisingWf,
IbisWaveform aFallingWf 
)
overridevirtual

◆ 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_PRBS::GenerateBitSequence ( )
overridevirtual

Reimplemented from KIBIS_WAVEFORM.

Definition at line 1481 of file kibis.cpp.

References KIBIS_WAVEFORM::inverted, m_bitrate, and m_bits.

◆ GetDuration()

double KIBIS_WAVEFORM_PRBS::GetDuration ( )
inlineoverridevirtual

Reimplemented from KIBIS_WAVEFORM.

Definition at line 123 of file kibis.h.

References m_bitrate, and m_bits.

◆ GetType()

KIBIS_WAVEFORM_TYPE KIBIS_WAVEFORM::GetType ( )
inlineinherited

◆ Report()

Member Data Documentation

◆ inverted

◆ m_bitrate

double KIBIS_WAVEFORM_PRBS::m_bitrate = 10e6

◆ m_bits

int KIBIS_WAVEFORM_PRBS::m_bits = 10

◆ m_delay

double KIBIS_WAVEFORM_PRBS::m_delay = 0

Definition at line 116 of file kibis.h.

Referenced by SPICE_GENERATOR_KIBIS::IbisDevice().

◆ m_reporter

◆ m_topLevel

◆ m_type

◆ m_valid


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