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 () const override
 
bool Check (const IbisWaveform *aRisingWf, const IbisWaveform *aFallingWf) const override
 
bool Check (const dvdtTypMinMax &aRisingRp, const dvdtTypMinMax &aFallingRp) const override
 
void SetBits (int aBits)
 
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_bitrate = 10e6
 
double m_delay = 0
 
int m_bits = 10
 
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 122 of file kibis.h.

Constructor & Destructor Documentation

◆ KIBIS_WAVEFORM_PRBS()

KIBIS_WAVEFORM_PRBS::KIBIS_WAVEFORM_PRBS ( KIBIS aTopLevel)
inline

Definition at line 125 of file kibis.h.

References KIBIS_WAVEFORM::m_type.

Member Function Documentation

◆ Check() [1/2]

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

Reimplemented from KIBIS_WAVEFORM.

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

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

Reimplemented from KIBIS_WAVEFORM.

Definition at line 1470 of file kibis.cpp.

References KIBIS_WAVEFORM::inverted, m_bitrate, and m_bits.

◆ GetDuration()

double KIBIS_WAVEFORM_PRBS::GetDuration ( ) const
inlineoverridevirtual

Reimplemented from KIBIS_WAVEFORM.

Definition at line 139 of file kibis.h.

References m_bitrate, and m_bits.

◆ GetType()

KIBIS_WAVEFORM_TYPE KIBIS_WAVEFORM::GetType ( ) const
inlineinherited

◆ Report()

◆ SetBits()

void KIBIS_WAVEFORM_PRBS::SetBits ( int  aBits)
inline

Definition at line 137 of file kibis.h.

References std::abs(), and m_bits.

Referenced by SPICE_GENERATOR_IBIS::IbisDevice().

Member Data Documentation

◆ inverted

◆ m_bitrate

double KIBIS_WAVEFORM_PRBS::m_bitrate = 10e6

Definition at line 129 of file kibis.h.

Referenced by Check(), GenerateBitSequence(), GetDuration(), and SPICE_GENERATOR_IBIS::IbisDevice().

◆ m_bits

int KIBIS_WAVEFORM_PRBS::m_bits = 10

Definition at line 131 of file kibis.h.

Referenced by Check(), GenerateBitSequence(), GetDuration(), and SetBits().

◆ m_delay

double KIBIS_WAVEFORM_PRBS::m_delay = 0

Definition at line 130 of file kibis.h.

Referenced by SPICE_GENERATOR_IBIS::IbisDevice().

◆ m_reporter

◆ m_topLevel

◆ m_type

◆ m_valid


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