Skip to content
Snippets Groups Projects
Commit 23ac6395 authored by Pieter Donker's avatar Pieter Donker
Browse files

CWG-44, add readme and changed checks

parent affa5a53
No related branches found
No related tags found
1 merge request!316Resolve CWG-44
Pipeline #46138 passed
...@@ -40,7 +40,7 @@ lint-vhdl-lib-base: ...@@ -40,7 +40,7 @@ lint-vhdl-lib-base:
- pip3 install vsg --use-pep517 - pip3 install vsg --use-pep517
script: script:
- cd libraries/base - cd libraries/base
- find . -name "*.vhd" -exec vsg --configuration ../../vsg_config.yaml -f {} \; - find . -name "*.vhd" -exec vsg -c ../../vsg_config.yaml -f {} \;
lint-vhdl-lib-dsp: lint-vhdl-lib-dsp:
tags: tags:
...@@ -51,7 +51,7 @@ lint-vhdl-lib-dsp: ...@@ -51,7 +51,7 @@ lint-vhdl-lib-dsp:
- pip3 install vsg --use-pep517 - pip3 install vsg --use-pep517
script: script:
- cd libraries/dsp - cd libraries/dsp
- find . -name "*.vhd" -exec vsg --configuration ../../vsg_config.yaml -f {} \; - find . -name "*.vhd" -exec vsg -c ../../vsg_config.yaml -f {} \;
lint-vhdl-lib-io: lint-vhdl-lib-io:
tags: tags:
...@@ -62,7 +62,7 @@ lint-vhdl-lib-io: ...@@ -62,7 +62,7 @@ lint-vhdl-lib-io:
- pip3 install vsg --use-pep517 - pip3 install vsg --use-pep517
script: script:
- cd libraries/io - cd libraries/io
- find . -name "*.vhd" -exec vsg --configuration ../../vsg_config.yaml -f {} \; - find . -name "*.vhd" -exec vsg -c ../../vsg_config.yaml -f {} \;
lint-vhdl-lib-technology: lint-vhdl-lib-technology:
tags: tags:
...@@ -73,7 +73,7 @@ lint-vhdl-lib-technology: ...@@ -73,7 +73,7 @@ lint-vhdl-lib-technology:
- pip3 install vsg --use-pep517 - pip3 install vsg --use-pep517
script: script:
- cd libraries/technology - cd libraries/technology
- find . -name "*.vhd" -exec vsg --configuration ../../vsg_config.yaml -f {} \; - find . -name "*.vhd" -exec vsg -c ../../vsg_config.yaml -f {} \;
lint-vhdl-boards-uniboard2b: lint-vhdl-boards-uniboard2b:
tags: tags:
...@@ -84,7 +84,7 @@ lint-vhdl-boards-uniboard2b: ...@@ -84,7 +84,7 @@ lint-vhdl-boards-uniboard2b:
- pip3 install vsg --use-pep517 - pip3 install vsg --use-pep517
script: script:
- cd boards/uniboard2b - cd boards/uniboard2b
- find . -name "*.vhd" -exec vsg --configuration ../../vsg_config.yaml -f {} \; - find . -name "*.vhd" -exec vsg -c ../../vsg_config.yaml -f {} \;
lint-vhdl-boards-uniboard2c: lint-vhdl-boards-uniboard2c:
tags: tags:
...@@ -95,18 +95,7 @@ lint-vhdl-boards-uniboard2c: ...@@ -95,18 +95,7 @@ lint-vhdl-boards-uniboard2c:
- pip3 install vsg --use-pep517 - pip3 install vsg --use-pep517
script: script:
- cd boards/uniboard2c - cd boards/uniboard2c
- find . -name "*.vhd" -exec vsg --configuration ../../vsg_config.yaml -f {} \; - find . -name "*.vhd" -exec vsg -c ../../vsg_config.yaml -f {} \;
lint-vhdl-applications-disturb2:
tags:
- hdl
stage: linting
allow_failure: true
before_script:
- pip3 install vsg --use-pep517
script:
- cd applications/disturb2
- find . -name "*.vhd" -exec vsg --configuration ../../vsg_config.yaml -f {} \;
lint-vhdl-applications-lofar2: lint-vhdl-applications-lofar2:
tags: tags:
...@@ -117,7 +106,7 @@ lint-vhdl-applications-lofar2: ...@@ -117,7 +106,7 @@ lint-vhdl-applications-lofar2:
- pip3 install vsg --use-pep517 - pip3 install vsg --use-pep517
script: script:
- cd applications/lofar2 - cd applications/lofar2
- find . -name "*.vhd" -exec vsg --configuration ../../vsg_config.yaml -f {} \; - find . -name "*.vhd" -exec vsg -c ../../vsg_config.yaml -f {} \;
############################################################################### ###############################################################################
# HDL simulation stage # HDL simulation stage
......
# Gitlab CI/CD
HDL linting is using *gitlab-runners* on *dop349*.
Linting tool used is *vhdl-style-guide* (VSG)
link: https://vhdl-style-guide.readthedocs.io/en/latest/index.html
##### Linting settings.
By default all rules are disabled in de *vsg_config.yaml* file.
The only active rule on this moment is *case.keyword* and is set to *upper*.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment