Skip to content

Ultrascale2

Ultrascale2 #110

Workflow file for this run

# Copyright 2022 OpenHW Group
# Solderpad Hardware License, Version 2.1, see LICENSE.md for details.
# SPDX-License-Identifier: Apache-2.0 WITH SHL-2.1
# Run all lint checks
name: lint
on: [push, pull_request]
env:
VERIBLE_VERSION: 0.0-1824-ga3b5bedf
jobs:
#####################
# Vendor Up-to-Date #
#####################
# Check that all vendored sources are up-to-date.
check-vendor:
name: Vendor Up-to-Date
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install requirements
run: pip install -r hw/vendor/esl_epfl_x_heep/python-requirements.txt
- name: Re-vendor and diff
run: |
util/vendor.py --verbose hw/vendor/eslepfl_x_heep.vendor.hjson \
&& hw/vendor/esl_epfl_x_heep/util/git-diff.py --error-msg "::error ::Found differences, please re-vendor."
##################
# MCU Generator #
##################
mcu_generator:
name: Generates sv files
# This job runs on Linux (fixed ubuntu version)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install requirements
run: |
make venv
. ./.venv/bin/activate
echo "PATH=`pwd`/.venv/bin:$PATH" >> $GITHUB_ENV
pip install -r hw/vendor/esl_epfl_x_heep/python-requirements.txt
- name: Install Verible
run: |
set -e
mkdir -p build/verible
cd build/verible
curl -Ls -o verible.tar.gz https://github.com/google/verible/releases/download/v$VERIBLE_VERSION/verible-v$VERIBLE_VERSION-Ubuntu-18.04-bionic-x86_64.tar.gz
sudo mkdir -p /tools/verible && sudo chmod 777 /tools/verible
tar -C /tools/verible -xf verible.tar.gz --strip-components=1
echo "PATH=$PATH:/tools/verible/bin" >> $GITHUB_ENV
- name: Run Gen
run: |
. ./.venv/bin/activate
make mcu-gen
hw/vendor/esl_epfl_x_heep/util/git-diff.py --error-msg "::error ::Found differences in SystemVerilog files generated with default configuration."