sonar/interfaces/axi4_stream.py
def wait(self, thread, data, bit_range=None):
        """
        Adds a wait statement to the provided thread for a specific tdata value

        Args:
            thread (Thread): The thread to add the wait to
            data (number): The value of tdata to wait for
            bit_range (string, optional): Defaults to all bits. Range of bits
                to check in tdata, separated by a colon. e.g. "63:40"
        """

        if bit_range is None:
            wait_str = "(" + self.name + "_tdata == $value) "
        else:
            wait_str = self.name + "_tdata[" + bit_range + "] == $value)"

        wait_str += " && (" + self.name + "_tvalid == 1'b1)"
        if self.has_signal("tready"):
            wait_str += " && (" + self.name + "_tready == 1)"
        thread.wait_level(wait_str, data)

        Adds a wait statement to the provided thread for a specific tdata value

        Args:
            thread (Thread): The thread to add the wait to
            data (number): The value of tdata to wait for
            bit_range (string, optional): Defaults to all bits. Range of bits
                to check in tdata, separated by a colon. e.g. "63:40"
        
Adds a wait statement to the provided thread for a specific tdata value
Adds a wait statement to the provided thread for a specific tdata value
def wait(self, thread, data, bit_range=None):
        if bit_range is None:
            wait_str = "(" + self.name + "_tdata == $value) "
        else:
            wait_str = self.name + "_tdata[" + bit_range + "] == $value)"
        wait_str += " && (" + self.name + "_tvalid == 1'b1)"
        if self.has_signal("tready"):
            wait_str += " && (" + self.name + "_tready == 1)"
        thread.wait_level(wait_str, data)
def wait ( self , thread , data , bit_range = None ) : if bit_range is None : wait_str = "(" + self . name + "_tdata == $value) " else : wait_str = self . name + "_tdata[" + bit_range + "] == $value)" wait_str += " && (" + self . name + "_tvalid == 1'b1)" if self . has_signal ( "tready" ) : wait_str += " && (" + self . name + "_tready == 1)" thread . wait_level ( wait_str , data )
Adds a wait statement to the provided thread for a specific tdata value
Adds a wait statement to the provided thread for a specific tdata value
"""
        Adds a wait statement to the provided thread for a specific tdata value

        Args:
            thread (Thread): The thread to add the wait to
            data (number): The value of tdata to wait for
            bit_range (string, optional): Defaults to all bits. Range of bits
                to check in tdata, separated by a colon. e.g. "63:40"
        """
self
thread
The thread to add the wait to
The thread to add the wait to
data
The value of tdata to wait for
The value of tdata to wait for
bit_range
Defaults to all bits. Range of bits
to check in tdata, separated by a colon. e.g.
Defaults to all bits . Range of bits to check in tdata separated by a colon . e . g .