PRBS

The Prbs class provides both a PRBS transmitter and receiver.

Prbs objects in C++ are referenced by the following shared pointer typedef:

typedef std::shared_ptr<rogue::utilities::Prbs> rogue::utilities::PrbsPtr

The class description is shown below:

class Prbs : public rogue::interfaces::stream::Slave, public rogue::interfaces::stream::Master

PRBS master / slave class.

Public Functions

Prbs()

Creator with default taps and size.

~Prbs()

Deconstructor.

void setWidth(uint32_t width)

Set width.

void setTaps(uint32_t tapCnt, uint8_t *taps)

Set taps.

void setTapsPy(boost::python::object p)

Set taps, python.

void sendCount(bool state)

Send counter value.

void genFrame(uint32_t size)

Generate a data frame.

void enable(uint32_t size)

Auto run data generation.

void disable()

Disable auto generation.

bool getRxEnable()

Get rx enable.

void setRxEnable(bool)

Set rx enable.

uint32_t getRxErrors()

Get rx errors.

uint32_t getRxCount()

Get rx count.

uint32_t getRxBytes()

Get rx total bytes.

double getRxRate()

Get rx rate.

double getRxBw()

Get rx bw.

double getTxRate()

Get tx rate.

double getTxBw()

Get tx bw.

uint32_t getTxErrors()

Get tx errors.

uint32_t getTxCount()

Get tx count.

uint32_t getTxBytes()

Get tx total bytes.

void checkPayload(bool state)

Set check payload flag, default = true.

void genPayload(bool state)

Set check generate flag, default = true.

void resetCount()

Reset counters.

virtual void acceptFrame(std::shared_ptr<rogue::interfaces::stream::Frame> frame)

Accept a frame from master.

Public Static Functions

static std::shared_ptr<rogue::utilities::Prbs> create()

Class creation.

static void setup_python()

Setup class in python.