Skip to content

fix register interface with packed structs #557

fix register interface with packed structs

fix register interface with packed structs #557

Workflow file for this run

# Copyright 2022 ETH Zurich and University of Bologna.
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0
name: lint
on: [ push, pull_request, workflow_dispatch ]
jobs:
lint-license:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Check license
uses: pulp-platform/pulp-actions/lint-license@v2
with:
license: |
Copyright (\d{4}(-\d{4})?\s)?.*
(Solderpad Hardware License, Version 0.51|Licensed under the Apache License, Version 2.0), see LICENSE for details.
SPDX-License-Identifier: (SHL-0.51|Apache-2.0)
# Exclude generated headers (no license checker support for optional lines)
exclude_paths: |
sw/utils/tinyprintf.h
sw/inc/*
*.md
*.do
*.lock
LICENSE*
lint-sv:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Run Verible
uses: chipsalliance/verible-linter-action@main
with:
paths: rtl
exclude_paths: |
rtl/redmule_noncomp.sv
rtl/redmule_fma.sv
extra_args: "--waiver_files .github/verible.waiver"
github_token: ${{ secrets.GITHUB_TOKEN }}
fail_on_error: true
reviewdog_reporter: github-check
log_file: verible-verilog-lint.log
-
name: Upload Verible Artifacts
uses: actions/upload-artifact@v4
with:
name: lint-sv-artifacts
path: verible-verilog-lint.log
lint-cxx:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install clang-format
run: sudo apt-get install -y clang-format-14
- name: Run Clang-format and create patch
run: |
find . -type f \( -name '*.c' -o -name '*.h' -o -name '*.cpp' \) ! -path './sw/inc/*' ! -path './sw/utils/tinyprintf.h' \
-exec clang-format-14 --dry-run --Werror {} + 2> clang_format_output.txt || true
find . -type f \( -name '*.c' -o -name '*.h' -o -name '*.cpp' \) ! -path './sw/inc/*' ! -path './sw/utils/tinyprintf.h' \
-exec clang-format-14 -i {} +
git diff > clang_format_patch.diff
- name: Upload Clang-format Output
uses: actions/upload-artifact@v4
with:
name: clang-format-report
path: |
clang_format_output.txt
clang_format_patch.diff