How to use the edalize.get_edatools function in edalize

To help you get started, we’ve selected a few edalize examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github olofk / fusesoc / fusesoc / capi2 / core.py View on Github external
class_members[key['name']] = []
                class_members['lists'][key['name']] = key['type']
                class_members[key['name']+'_append'] = []
                class_members['lists'][key['name']+'_append'] = key['type']
        if 'dicts' in _items:
            class_members['dicts'] = {}
            for key in _items['dicts']:
                class_members[key['name']] = {}
                class_members['dicts'][key['name']] = key['type']

        generatedClass = type(cls, (base_class,), class_members)
        globals()[generatedClass.__name__] = generatedClass

capi2_data = yaml.safe_load(description)

for backend in get_edatools():
    backend_name = backend.__name__
    if hasattr(backend, 'get_doc'):
        if backend_name == "Edatool":
            continue
        tool_options = backend.get_doc(0)
    elif hasattr(backend, 'tool_options'):
        _tool_options = getattr(backend, 'tool_options')
        tool_options = {'description' : 'Options for {} backend'.format(backend_name)}
        for group in ['members', 'lists', 'dicts']:
            if group in _tool_options:
                tool_options[group] = []
                for _name, _type in _tool_options[group].items():
                    tool_options[group].append({'name' : _name,
                                                'type' : _type,
                                                'desc' : ''})
    else:

edalize

Library for interfacing EDA tools such as simulators, linters or synthesis tools, using a common interface

BSD-2-Clause
Latest version published 9 days ago

Package Health Score

78 / 100
Full package analysis

Similar packages