Altera® AXI4 Bus Functional Model User Guides

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

2.5.1.2.9. Methods in Axi4StreamBytesNull 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 has no function because the data_value of these byte objects is set in the constructor to be an all-zero value of 8’h00 that is not allowed to change to any other value. The method is 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 verifies that the objects are equal. AxiStreamBytesNull matched Position bytes is the simplest byte class . The only requirement for two bytes being equal are to have 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.