sonar/testbench.py
def _wait_edge(self, edge, signal):
        """
        Adds a edge sensitive wait condition on a signal

        Args:
            edge (str): posedge or negedge
            signal (str): Name of the signal to wait on

        Raises:
            ValueError: Raised if edge is not posedge or negedge
        """

        if edge not in ("posedge", "negedge"):
            raise ValueError()
        condition_tmp = "@(" + edge + " " + signal + ");"
        self._statement(condition_tmp)

        Adds a edge sensitive wait condition on a signal

        Args:
            edge (str): posedge or negedge
            signal (str): Name of the signal to wait on

        Raises:
            ValueError: Raised if edge is not posedge or negedge
        
Adds a edge sensitive wait condition on a signal
Adds a edge sensitive wait condition on a signal
def _wait_edge(self, edge, signal):
        if edge not in ("posedge", "negedge"):
            raise ValueError()
        condition_tmp = "@(" + edge + " " + signal + ");"
        self._statement(condition_tmp)
def _wait_edge ( self , edge , signal ) : if edge not in ( "posedge" , "negedge" ) : raise ValueError ( ) condition_tmp = "@(" + edge + " " + signal + ");" self . _statement ( condition_tmp )
Adds a edge sensitive wait condition on a signal
Adds a edge sensitive wait condition on a signal
"""
        Adds a edge sensitive wait condition on a signal

        Args:
            edge (str): posedge or negedge
            signal (str): Name of the signal to wait on

        Raises:
            ValueError: Raised if edge is not posedge or negedge
        """
Raised if edge is not posedge or negedge
Raised if edge is not posedge or negedge
ValueError
self
edge
posedge or negedge
posedge or negedge
signal
Name of the signal to wait on
Name of the signal to wait on