sonar/testbench.py
def wait_flag(self, flag_id):
        """
        Wait for the flag with the given ID to become 1. The number of flags
        available is set in the metadata of the testbench. Flags can be used to
        synchronize between threads. e.g. one thread can set a flag that another
        will wait for.

        Args:
            flag_id (number): ID of the flag to wait on (ranges from 0 to Flags-1)
        """

        self.commands.append({"wait": {"key": "flag", "args": [flag_id]}})
        self._print_timestamp()
        self.commands.append({"flag": {"clear_flag": flag_id}})

        Wait for the flag with the given ID to become 1. The number of flags
        available is set in the metadata of the testbench. Flags can be used to
        synchronize between threads. e.g. one thread can set a flag that another
        will wait for.

        Args:
            flag_id (number): ID of the flag to wait on (ranges from 0 to Flags-1)
        
Wait for the flag with the given ID to become 1. The number of flags
available is set in the metadata of the testbench. Flags can be used to
synchronize between threads.
Wait for the flag with the given ID to become 1 . The number of flags available is set in the metadata of the testbench . Flags can be used to synchronize between threads .
def wait_flag(self, flag_id):
        self.commands.append({"wait": {"key": "flag", "args": [flag_id]}})
        self._print_timestamp()
        self.commands.append({"flag": {"clear_flag": flag_id}})
def wait_flag ( self , flag_id ) : self . commands . append ( { "wait" : { "key" : "flag" , "args" : [ flag_id ] } } ) self . _print_timestamp ( ) self . commands . append ( { "flag" : { "clear_flag" : flag_id } } )
Wait for the flag with the given ID to become 1.
Wait for the flag with the given ID to become 1 .
"""
        Wait for the flag with the given ID to become 1. The number of flags
        available is set in the metadata of the testbench. Flags can be used to
        synchronize between threads. e.g. one thread can set a flag that another
        will wait for.

        Args:
            flag_id (number): ID of the flag to wait on (ranges from 0 to Flags-1)
        """
self
flag_id
ID of the flag to wait on (ranges from 0 to Flags-1)
ID of the flag to wait on ( ranges from 0 to Flags - 1 )