sonar/testbench.py
def add_interface(self, interface):
        """
        Adds an interface port to this module

        Args:
            interface (BaseInterface): Represents the interface port and
                must be a child class of BaseInterface.
        """

        port = interface
        if port.interface_type not in self.ports.interfaces.count:
            self.ports.interfaces.count[port.interface_type] = 0
        else:
            self.ports.interfaces.count[port.interface_type] += 1
        port.index = self.ports.interfaces.count[port.interface_type]
        port.readResp = "rresp_" + str(port.index)
        port.writeResp = "wresp_" + str(port.index)
        port.readData = "rdata_" + str(port.index)
        port.agent = "master_agent_" + str(port.index)
        self.ports.add_interface(port)

        Adds an interface port to this module

        Args:
            interface (BaseInterface): Represents the interface port and
                must be a child class of BaseInterface.
        
Adds an interface port to this module
Adds an interface port to this module
def add_interface(self, interface):
        port = interface
        if port.interface_type not in self.ports.interfaces.count:
            self.ports.interfaces.count[port.interface_type] = 0
        else:
            self.ports.interfaces.count[port.interface_type] += 1
        port.index = self.ports.interfaces.count[port.interface_type]
        port.readResp = "rresp_" + str(port.index)
        port.writeResp = "wresp_" + str(port.index)
        port.readData = "rdata_" + str(port.index)
        port.agent = "master_agent_" + str(port.index)
        self.ports.add_interface(port)
def add_interface ( self , interface ) : port = interface if port . interface_type not in self . ports . interfaces . count : self . ports . interfaces . count [ port . interface_type ] = 0 else : self . ports . interfaces . count [ port . interface_type ] += 1 port . index = self . ports . interfaces . count [ port . interface_type ] port . readResp = "rresp_" + str ( port . index ) port . writeResp = "wresp_" + str ( port . index ) port . readData = "rdata_" + str ( port . index ) port . agent = "master_agent_" + str ( port . index ) self . ports . add_interface ( port )
Adds an interface port to this module
Adds an interface port to this module
"""
        Adds an interface port to this module

        Args:
            interface (BaseInterface): Represents the interface port and
                must be a child class of BaseInterface.
        """
self
interface
Represents the interface port and
must be a child class of BaseInterface.
Represents the interface port and must be a child class of BaseInterface .