diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e77dc052869e8c289d4b9caca3ca518d2a2ab801..6cca5a80ce81a687b1914278c45f7ae99cf56ede 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -31,19 +31,52 @@ stages: - synthesis - hardware -lint-vhdl-libraries: +lint-vhdl-lib-base: tags: - hdl stage: linting allow_failure: true before_script: - - DEBIAN_FRONTEND=noninteractive apt-get update - - DEBIAN_FRONTEND=noninteractive apt-get install -y python3 python3-pip python3-ipython + #- DEBIAN_FRONTEND=noninteractive apt-get update + #- DEBIAN_FRONTEND=noninteractive apt-get install -y python3 python3-pip python3-ipython - pip3 install vsg --use-pep517 script: - - cd libraries - - find . -name "*.vhd" -exec vsg -f {} \; + - cd libraries/base + - find . -name "*.vhd" -exec vsg --configuration ~/git/hdl/vsg_config.yaml -f {} \; +lint-vhdl-lib-dsp: + tags: + - hdl + stage: linting + allow_failure: true + before_script: + - pip3 install vsg --use-pep517 + script: + - cd libraries/dsp + - find . -name "*.vhd" -exec vsg --configuration ~/git/hdl/vsg_config.yaml -f {} \; + +lint-vhdl-lib-io: + tags: + - hdl + stage: linting + allow_failure: true + before_script: + - pip3 install vsg --use-pep517 + script: + - cd libraries/io + - find . -name "*.vhd" -exec vsg --configuration ~/git/hdl/vsg_config.yaml -f {} \; + +lint-vhdl-lib-technology: + tags: + - hdl + stage: linting + allow_failure: true + before_script: + - pip3 install vsg --use-pep517 + script: + - cd libraries/technology + - find . -name "*.vhd" -exec vsg --configuration ~/git/hdl/vsg_config.yaml -f {} \; + ############################################################################### # HDL simulation stage diff --git a/vsg_config.yaml b/vsg_config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..3d4efc32029e948cdc64d99903cdfc040810c6b9 --- /dev/null +++ b/vsg_config.yaml @@ -0,0 +1,10 @@ +rule: + global: + disable: True + length_001: + disable: False + length: 140 + group: + case::keyword: + disable: False + case: 'upper'