How to use the edalize.quartus.Quartus 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 / edalize / quartus.py View on Github external
def __init__(self, eda_api, work_root=None):
        super(Quartus, self).__init__(eda_api, work_root)

        # Acquire quartus_sh identification information from available tool if
        # possible. We always default to Standard if a problem is encountered
        selected = "Standard"
        try:
            qsh_text = subprocess.Popen(["quartus_sh", "--version"], stdout=subprocess.PIPE, env=os.environ).communicate()[0]

            # Attempt to pattern match the output. Examples include
            # Version 16.1.2 Build 203 01/18/2017 SJ Standard Edition
            # Version 17.1.2 Build 304 01/31/2018 SJ Pro Edition
            match = re.search("Version \d+\.\d+\.\d+ Build \d+ \d{2}/\d{2}/\d{4} SJ (Standard|Pro) Edition", str(qsh_text))
            if match != None:
                selected = match.group(1)
        except:
            # It is possible for this to have been run on a box without
            # Quartus being installed. Allow these errors to be ignored
github olofk / edalize / edalize / quartus.py View on Github external
def __init__(self, edam=None, work_root=None, eda_api=None):
        if not edam:
            edam = eda_api

        super(Quartus, self).__init__(edam, work_root)

        # Acquire quartus_sh identification information from available tool if
        # possible. We always default to version 18.1 Standard if a problem is encountered
        version = {
            'major':   '18',
            'minor':   '1',
            'patch':   '0',
            'date':    '01/01/2019',
            'edition': 'Standard'
        }
        try:
            qsh_text = subprocess.Popen(["quartus_sh", "--version"], stdout=subprocess.PIPE, env=os.environ).communicate()[0]

            # Attempt to pattern match the output. Examples include
            # Version 16.1.2 Build 203 01/18/2017 SJ Standard Edition
            # Version 17.1.2 Build 304 01/31/2018 SJ Pro Edition

edalize

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

BSD-2-Clause
Latest version published 12 days ago

Package Health Score

78 / 100
Full package analysis

Similar packages