sonar/interfaces/axi4_lite_slave.py
def read(self, thread, register, expected_value):
        """
        Read data from a register to verify its value

        Args:
            thread (Thread): Thread in which to read from
            register (str): Name of the register to read
            expected_value (number): Expected value that the register should have
        """

        address = None
        for index, reg in enumerate(self.registers):
            if reg == register:
                address = self.addresses[index]
                break
        transaction = {
            "interface": {
                "type": "axi4_lite_slave",
                "name": self.name,
                "payload": [
                    {
                        "endpoint_mode": 1,
                        "data": expected_value,
                        "addr": address,
                    }
                ],
            }
        }
        thread._add_transaction(transaction)

        Read data from a register to verify its value

        Args:
            thread (Thread): Thread in which to read from
            register (str): Name of the register to read
            expected_value (number): Expected value that the register should have
        
Read data from a register to verify its value
Read data from a register to verify its value
def read(self, thread, register, expected_value):
        address = None
        for index, reg in enumerate(self.registers):
            if reg == register:
                address = self.addresses[index]
                break
        transaction = {
            "interface": {
                "type": "axi4_lite_slave",
                "name": self.name,
                "payload": [
                    {
                        "endpoint_mode": 1,
                        "data": expected_value,
                        "addr": address,
                    }
                ],
            }
        }
        thread._add_transaction(transaction)
def read ( self , thread , register , expected_value ) : address = None for index , reg in enumerate ( self . registers ) : if reg == register : address = self . addresses [ index ] break transaction = { "interface" : { "type" : "axi4_lite_slave" , "name" : self . name , "payload" : [ { "endpoint_mode" : 1 , "data" : expected_value , "addr" : address , } ] , } } thread . _add_transaction ( transaction )
Read data from a register to verify its value
Read data from a register to verify its value
"""
        Read data from a register to verify its value

        Args:
            thread (Thread): Thread in which to read from
            register (str): Name of the register to read
            expected_value (number): Expected value that the register should have
        """
self
thread
Thread in which to read from
Thread in which to read from
register
Name of the register to read
Name of the register to read
expected_value
Expected value that the register should have
Expected value that the register should have