Esempio n. 1
0
 def __init__(self, test, design_unit, enable_configuration, default_config):
     ConfigurationVisitor.__init__(self)
     self._test = test
     assert test.is_explicit
     self.design_unit = design_unit
     self._enable_configuration = enable_configuration
     self._configs = OrderedDict({default_config.name: default_config})
Esempio n. 2
0
 def __init__(self, name, design_unit, enable_configuration,
              default_config):
     ConfigurationVisitor.__init__(self)
     self.name = name
     self.design_unit = design_unit
     self._enable_configuration = enable_configuration
     self._configs = OrderedDict({default_config.name: default_config})
Esempio n. 3
0
 def __init__(self, test, design_unit, enable_configuration,
              default_config):
     ConfigurationVisitor.__init__(self)
     self._test = test
     assert test.is_explicit
     self.design_unit = design_unit
     self._enable_configuration = enable_configuration
     self._configs = OrderedDict({default_config.name: default_config})
Esempio n. 4
0
    def __init__(self, design_unit):
        ConfigurationVisitor.__init__(self)
        self.design_unit = design_unit

        self._individual_tests = False
        self._configs = {}
        self.test_cases = []

        if design_unit.is_entity:
            design_unit.set_add_architecture_callback(self._add_architecture_callback)
            if len(design_unit.architecture_names) > 0:
                self._add_architecture_callback()
        else:
            self.scan_tests_from_file(design_unit.file_name)
Esempio n. 5
0
    def __init__(self, design_unit, database=None):
        ConfigurationVisitor.__init__(self)
        self.design_unit = design_unit
        self._database = database

        self._individual_tests = False
        self._configs = {}
        self._test_cases = []
        self._implicit_test = None

        if design_unit.is_entity:
            design_unit.set_add_architecture_callback(self._add_architecture_callback)
            if design_unit.architecture_names:
                self._add_architecture_callback()
        else:
            self.scan_tests_from_file(design_unit.file_name)
Esempio n. 6
0
    def __init__(self, design_unit, database=None):
        ConfigurationVisitor.__init__(self)
        self.design_unit = design_unit
        self._database = database

        self._individual_tests = False
        self._configs = {}
        self._test_cases = []
        self._implicit_test = None

        if design_unit.is_entity:
            design_unit.set_add_architecture_callback(
                self._add_architecture_callback)
            if design_unit.architecture_names:
                self._add_architecture_callback()
        else:
            self.scan_tests_from_file(design_unit.file_name)
Esempio n. 7
0
    def __init__(self, design_unit, cocotb_module, cocotb_module_location, database=None):
        
        ConfigurationVisitor.__init__(self)
        self.design_unit = design_unit
        self._database = database

        self._individual_tests = True
        self._configs = {}
        self._test_cases = []
        self._implicit_test = None
        self._cocotb_module = None

        if design_unit.is_entity:
            design_unit.set_add_architecture_callback(self._add_architecture_callback)
            if design_unit.architecture_names:
                self._add_architecture_callback()

        self.discover_cocotb_tests(cocotb_module, cocotb_module_location)
        self.set_attribute(".cocotb", None)