Altera® AXI4 Bus Functional Model User Guides

ID 838773
Date 5/19/2025
Public
Document Table of Contents

2.5.1.2.7. Methods in Axi4StreamBytesPosition Class

This topic describes the methods in the Axi4StreamBytesPosition class.

Method: set_data(data_byte: byte_t): void{virtual function}

The set_data() method for this class performs no function, as the data_value of these byte objects is set in the constructor as an alternating one-zero pattern of 8’h55 that is not allowed to change to any other value. The method is kept in the class to maintain polymorphic compatibility with the rest of the byte class hierarchy.

Method: is_equal(b: Axi4StreamBytes): bit{virtual function}

Compares the local this object to one passed in as operand b and determines if the objects are equal. AxiStreamBytesPosition is the simplest byte class and the only requirement for two bytes to be equal is matching data_format.

Method: copy(): Axi4StreamBytes{virtual function}

Creates a new object with the same data_format and returns this new object as the return value.