Altera® AXI4 Bus Functional Model User Guides

ID 838773
Date 3/19/2025
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

2.5.1.2.5. Methods in Axi4StreamBytesData Class

This topic describes the methods in the Axi4StreamBytesData class.

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

You can set the data_value of these byte objects by using the constructor that takes a data value as an argument. You can use this method to subsequently change the value of the Data byte after construction. The data_value set with this method is the same read with the get method get_data().

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

This method compares the local this object to one passed in as operand b and determines if the objects are equal. AxiStreamBytesData is a simple class. The only requirements for two bytes being equal are to have matching:

  • data_format
  • data_value

Method: copy(): Axi4StreamBytes{virtual function}

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