sonar/interfaces/axi4_stream.py
def _f2s_tlast(file_size, beat):
        """
        Calculates tlast for a particular beat for file_to_stream. The last beat
        must assert tlast

        Args:
            file_size (int): Size of data in bytes to send over tdata
            beat (int): Beat counter

        Returns:
            str: Tlast value for the current beat
        """

        tlast = 0
        if beat >= ((ceil(file_size / 8.0) - 1) * 8):
            tlast = 1
        return tlast

        Calculates tlast for a particular beat for file_to_stream. The last beat
        must assert tlast

        Args:
            file_size (int): Size of data in bytes to send over tdata
            beat (int): Beat counter

        Returns:
            str: Tlast value for the current beat
        
Calculates tlast for a particular beat for file_to_stream. The last beat
must assert tlast
Calculates tlast for a particular beat for file_to_stream . The last beat must assert tlast
def _f2s_tlast(file_size, beat):
        tlast = 0
        if beat >= ((ceil(file_size / 8.0) - 1) * 8):
            tlast = 1
        return tlast
def _f2s_tlast ( file_size , beat ) : tlast = 0 if beat >= ( ( ceil ( file_size / 8.0 ) - 1 ) * 8 ) : tlast = 1 return tlast
Calculates tlast for a particular beat for file_to_stream.
Calculates tlast for a particular beat for file_to_stream .
"""
        Calculates tlast for a particular beat for file_to_stream. The last beat
        must assert tlast

        Args:
            file_size (int): Size of data in bytes to send over tdata
            beat (int): Beat counter

        Returns:
            str: Tlast value for the current beat
        """
Tlast value for the current beat
Tlast value for the current beat
str
file_size
Size of data in bytes to send over tdata
Size of data in bytes to send over tdata
beat
None