sonar/testbench.py
def add_port(self, name, direction, size=1):
        """
        Adds a port to this module for a generic signal

        Args:
            name (str): Name of the signal
            direction (str): Must be one of (input|output)
            size (int, optional): Defaults to 1. Width of the port in bits
        """

        signal = base.SignalPort(name, size, direction)
        self.ports.add_signal(signal)

        Adds a port to this module for a generic signal

        Args:
            name (str): Name of the signal
            direction (str): Must be one of (input|output)
            size (int, optional): Defaults to 1. Width of the port in bits
        
Adds a port to this module for a generic signal
Adds a port to this module for a generic signal
def add_port(self, name, direction, size=1):
        signal = base.SignalPort(name, size, direction)
        self.ports.add_signal(signal)
def add_port ( self , name , direction , size = 1 ) : signal = base . SignalPort ( name , size , direction ) self . ports . add_signal ( signal )
Adds a port to this module for a generic signal
Adds a port to this module for a generic signal
"""
        Adds a port to this module for a generic signal

        Args:
            name (str): Name of the signal
            direction (str): Must be one of (input|output)
            size (int, optional): Defaults to 1. Width of the port in bits
        """
self
name
Name of the signal
Name of the signal
direction
Must be one of (input|output)
Must be one of ( input|output )
size
Defaults to 1. Width of the port in bits
Defaults to 1 . Width of the port in bits