Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check Gitlab CI
uses: pulp-platform/pulp-actions/gitlab-ci@v2
uses: pulp-platform/pulp-actions/gitlab-ci@v2.4.1
if: >
github.repository == 'pulp-platform/memory_island' &&
(github.event_name != 'pull_request' ||
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,32 @@ jobs:
extra_args: "--rules=-interface-name-style --lint_fatal --parse_fatal"
github_token: ${{ secrets.GITHUB_TOKEN }}
reviewdog_reporter: github-check

lint-sv-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Install Bender
uses: pulp-platform/pulp-actions/bender-install@v2
with:
version: 0.28.2
- name: Get files
run: |
bender_files=$(bender script flist -n -t test -t memory_island_standalone_synth)
bender_files=$(echo $bender_files | tr '\n' ' ')
echo $bender_files
echo "BENDER_FILES=$bender_files" >> $GITHUB_ENV
- name: Print fix
run: |
echo "Fix with \`make format\`"
- name: Run Verible formatter action
uses: chipsalliance/verible-formatter-action@main
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
files:
$BENDER_FILES
parameters:
--flagfile .verilog_format
fail_on_formatting_suggestions: true
26 changes: 26 additions & 0 deletions .verilog_format
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
--column_limit=100
--indentation_spaces=2
--line_break_penalty=2
--over_column_limit_penalty=10000
--wrap_spaces=4
--assignment_statement_alignment=align
--case_items_alignment=align
--class_member_variable_alignment=align
--distribution_items_alignment=align
--enum_assignment_statement_alignment=align
--formal_parameters_alignment=align
--formal_parameters_indentation=indent
--module_net_variable_alignment=align
--named_parameter_alignment=align
--named_parameter_indentation=indent
--named_port_alignment=align
--named_port_indentation=indent
--port_declarations_alignment=align
--port_declarations_indentation=indent
--struct_union_members_alignment=align
--try_wrap_long_lines=false
--wrap_end_else_clauses=false
--port_declarations_right_align_packed_dimensions=false
--port_declarations_right_align_unpacked_dimensions=false
--expand_coverpoints=false
--compact_indexing_and_selections=true
16 changes: 8 additions & 8 deletions Bender.lock
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
packages:
axi:
revision: 587355b77b8ce94dcd600efbd5d5bd118ff913a7
version: 0.39.4
revision: f07498d53ecd5518b277c7d213ec3b71ca4df93c
version: 0.39.7
source:
Git: https://github.com/pulp-platform/axi.git
dependencies:
- common_cells
- common_verification
- tech_cells_generic
cluster_interconnect:
revision: 7d0a4f8acae71a583a6713cab5554e60b9bb8d27
version: 1.2.1
revision: 2967d8d17be0a6139229ca8d3d4956e182aec3de
version: 1.3.0
source:
Git: https://github.com/pulp-platform/cluster_interconnect.git
dependencies:
- common_cells
common_cells:
revision: c27bce39ebb2e6bae52f60960814a2afca7bd4cb
version: 1.37.0
revision: 9afda9abb565971649c2aa0985639c096f351171
version: 1.38.0
source:
Git: https://github.com/pulp-platform/common_cells.git
dependencies:
- common_verification
- tech_cells_generic
common_verification:
revision: 9c07fa860593b2caabd9b5681740c25fac04b878
version: 0.2.3
revision: fb1885f48ea46164a10568aeff51884389f67ae3
version: 0.2.5
source:
Git: https://github.com/pulp-platform/common_verification.git
dependencies: []
Expand Down
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,9 @@ nonfree-init:
cd nonfree && git checkout $(NONFREE_COMMIT)

-include $(MEMORY_ISLAND_ROOT)/nonfree/nonfree.mk

BENDER_FILES := $(shell $(BENDER) script flist -n -t test -t memory_island_standalone_synth)

.PHONY: format
format:
verible-verilog-format $(BENDER_FILES) --inplace --flagfile .verilog_format
Loading