sonar/testbench.py
def add_clock_port(self, name, period):
        """
        Adds an input clock port to this module (only for TB generated clocks)

        Args:
            name (str): Name of the clock signal
            period (str): Period of the clock (e.g. 20ns, 10ps etc.)
        """

        signal = base.ClockPort(name, 1, period, "input")
        self.ports.add_clock(signal)
        endpoint = sonar.endpoints.PeriodicSignal
        endpoint.arguments = {
            "name": name,
            "value": 1,
            "period": period,
            "size": 1,
        }
        self.add_endpoint(name, endpoint)

        Adds an input clock port to this module (only for TB generated clocks)

        Args:
            name (str): Name of the clock signal
            period (str): Period of the clock (e.g. 20ns, 10ps etc.)
        
Adds an input clock port to this module (only for TB generated clocks)
Adds an input clock port to this module ( only for TB generated clocks )
def add_clock_port(self, name, period):
        signal = base.ClockPort(name, 1, period, "input")
        self.ports.add_clock(signal)
        endpoint = sonar.endpoints.PeriodicSignal
        endpoint.arguments = {
            "name": name,
            "value": 1,
            "period": period,
            "size": 1,
        }
        self.add_endpoint(name, endpoint)
def add_clock_port ( self , name , period ) : signal = base . ClockPort ( name , 1 , period , "input" ) self . ports . add_clock ( signal ) endpoint = sonar . endpoints . PeriodicSignal endpoint . arguments = { "name" : name , "value" : 1 , "period" : period , "size" : 1 , } self . add_endpoint ( name , endpoint )
Adds an input clock port to this module (only for TB generated clocks)
Adds an input clock port to this module ( only for TB generated clocks )
"""
        Adds an input clock port to this module (only for TB generated clocks)

        Args:
            name (str): Name of the clock signal
            period (str): Period of the clock (e.g. 20ns, 10ps etc.)
        """
self
name
Name of the clock signal
Name of the clock signal
period
Period of the clock
Period of the clock