Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🧪 [linty] initial setup (preliminary) #1029

Draft
wants to merge 45 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
4b2c5d9
[linty] initial setup
stnolting Sep 20, 2024
3cda0d2
[linty] fix file name typo
stnolting Sep 20, 2024
9dfefb4
[linty] set processor top
stnolting Sep 21, 2024
41805dd
Update read.ys
stnolting Sep 21, 2024
755f8fa
revert top
stnolting Sep 21, 2024
444df30
test wildcards
stnolting Sep 21, 2024
9cd9609
revert wildcards
stnolting Sep 21, 2024
b348068
relocate configuration files
stnolting Sep 21, 2024
c4a3734
Update linty_read.ys
stnolting Sep 21, 2024
ae53899
Update linty_read.ys
stnolting Sep 21, 2024
b15c013
try to change top
stnolting Sep 21, 2024
0366b37
typo fix
stnolting Sep 21, 2024
77e25b7
use configuration from web interface only
stnolting Sep 21, 2024
4a7e59c
Update linty_read.ys
stnolting Sep 21, 2024
2962e8e
Update Linty.yml
stnolting Sep 21, 2024
8ca3583
[.github] test listing command
stnolting Sep 25, 2024
cf19dd7
Update Linty.yml
stnolting Sep 25, 2024
c940d8f
Update Linty.yml
stnolting Sep 25, 2024
d571e11
use simple TB as top (just testing...)
stnolting Sep 25, 2024
bb8bee4
test Vivado IP as top
stnolting Sep 25, 2024
5b8ffdf
[.github] update linty workflow
stnolting Oct 3, 2024
49c69e5
Merge branch 'main' into linty_test
stnolting Oct 3, 2024
c4a41af
[linty] update file-list
stnolting Oct 3, 2024
e85e557
[linty] test neorv32_top as top
stnolting Oct 3, 2024
172c0e7
Update linty_read.ys
stnolting Oct 3, 2024
eb71014
Merge branch 'main' into linty_test
stnolting Oct 3, 2024
56b22b0
[linty] analyze files from rtl/core only
stnolting Oct 3, 2024
1cb21dd
[linty] relocate sonar project script
stnolting Oct 4, 2024
fabbb82
[linty] auto-gen sonar-project.properties
stnolting Oct 5, 2024
7424952
[linty] auto-gen *.ys files
stnolting Oct 5, 2024
f6dc693
[linty] update sonar sources
stnolting Oct 5, 2024
3c290ea
Update Linty.yml
stnolting Oct 5, 2024
dc68b91
Merge branch 'main' into linty_test
stnolting Oct 5, 2024
f578329
Update Linty.yml
stnolting Oct 5, 2024
b0ec0b0
Merge branch 'main' into linty_test
stnolting Oct 5, 2024
cb10829
[linty] temporarily remove trigger filter
stnolting Oct 5, 2024
450a166
Merge branch 'main' into linty_test
stnolting Oct 6, 2024
952da5a
[.github] run only if this workflow is edited
stnolting Oct 7, 2024
4cd17a5
Merge branch 'main' into linty_test
stnolting Oct 10, 2024
3216baf
Merge branch 'main' into linty_test
stnolting Oct 11, 2024
82d35c7
[readme] add linty badge
stnolting Oct 17, 2024
3df089c
Merge branch 'main' into linty_test
stnolting Oct 17, 2024
4c1d485
Add link to https://linty-services.com
racodond Oct 18, 2024
f846ec7
Add link to https://linty-services.com (#1062)
stnolting Oct 18, 2024
fea96e0
Merge branch 'main' into linty_test
stnolting Nov 2, 2024
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
46 changes: 46 additions & 0 deletions .github/workflows/Linty.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Linty
on:
pull_request:
push:

jobs:
linty:
name: Linty
timeout-minutes: 10
runs-on: ubuntu-latest

steps:
- name: Git Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Cache
uses: actions/[email protected]
with:
path: ~/.sonar/cache
key: sonar
restore-keys: sonar

- name: Run Linty
run: |
docker run \
--rm \
-e SONAR_HOST_URL=https://oss.linty-services.com \
-e SONAR_TOKEN="${{ secrets.LINTY_TOKEN }}" \
-e GITHUB_TOKEN="${{ secrets.GITHUB_TOKEN }}" \
-e GITHUB_REPOSITORY_OWNER="$GITHUB_REPOSITORY_OWNER" \
-e GITHUB_REPOSITORY="$GITHUB_REPOSITORY" \
-e TABBY_CAD_LICENSE="$TABBY_CAD_LICENSE" \
-v "$PWD:/usr/src" \
lintyservices/linty-scanner:latest
env:
TABBY_CAD_LICENSE: ${{ secrets.TABBY_CAD_LICENSE }}

- name: Debug
if: always()
uses: actions/upload-artifact@v3
with:
name: debug
path: |
.linty/
1 change: 1 addition & 0 deletions hierarchy.ys
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
hierarchy -top neorv32_ProcessorTop_UP5KDemo
49 changes: 49 additions & 0 deletions read.ys
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
verific -work neorv32 -vhdl ./rtl/core/neorv32_package.vhd
verific -work neorv32 -vhdl ./rtl/core/neorv32_sys.vhd
verific -work neorv32 -vhdl ./rtl/core/neorv32_clockgate.vhd
verific -work neorv32 -vhdl ./rtl/core/neorv32_fifo.vhd
verific -work neorv32 -vhdl ./rtl/core/neorv32_cpu_decompressor.vhd
verific -work neorv32 -vhdl ./rtl/core/neorv32_cpu_control.vhd
verific -work neorv32 -vhdl ./rtl/core/neorv32_cpu_regfile.vhd
verific -work neorv32 -vhdl ./rtl/core/neorv32_cpu_cp_shifter.vhd
verific -work neorv32 -vhdl ./rtl/core/neorv32_cpu_cp_muldiv.vhd
verific -work neorv32 -vhdl ./rtl/core/neorv32_cpu_cp_bitmanip.vhd
verific -work neorv32 -vhdl ./rtl/core/neorv32_cpu_cp_fpu.vhd
verific -work neorv32 -vhdl ./rtl/core/neorv32_cpu_cp_cfu.vhd
verific -work neorv32 -vhdl ./rtl/core/neorv32_cpu_cp_cond.vhd
verific -work neorv32 -vhdl ./rtl/core/neorv32_cpu_alu.vhd
verific -work neorv32 -vhdl ./rtl/core/neorv32_cpu_lsu.vhd
verific -work neorv32 -vhdl ./rtl/core/neorv32_cpu_pmp.vhd
verific -work neorv32 -vhdl ./rtl/core/neorv32_cpu.vhd
verific -work neorv32 -vhdl ./rtl/core/neorv32_bus.vhd
verific -work neorv32 -vhdl ./rtl/core/neorv32_cache.vhd
verific -work neorv32 -vhdl ./rtl/core/neorv32_dma.vhd
verific -work neorv32 -vhdl ./rtl/core/neorv32_imem.vhd
verific -work neorv32 -vhdl ./rtl/core/neorv32_dmem.vhd
verific -work neorv32 -vhdl ./rtl/core/neorv32_boot_rom.vhd
verific -work neorv32 -vhdl ./rtl/core/neorv32_xip.vhd
verific -work neorv32 -vhdl ./rtl/core/neorv32_xbus.vhd
verific -work neorv32 -vhdl ./rtl/core/neorv32_cfs.vhd
verific -work neorv32 -vhdl ./rtl/core/neorv32_sdi.vhd
verific -work neorv32 -vhdl ./rtl/core/neorv32_gpio.vhd
verific -work neorv32 -vhdl ./rtl/core/neorv32_wdt.vhd
verific -work neorv32 -vhdl ./rtl/core/neorv32_mtime.vhd
verific -work neorv32 -vhdl ./rtl/core/neorv32_uart.vhd
verific -work neorv32 -vhdl ./rtl/core/neorv32_spi.vhd
verific -work neorv32 -vhdl ./rtl/core/neorv32_twi.vhd
verific -work neorv32 -vhdl ./rtl/core/neorv32_pwm.vhd
verific -work neorv32 -vhdl ./rtl/core/neorv32_trng.vhd
verific -work neorv32 -vhdl ./rtl/core/neorv32_neoled.vhd
verific -work neorv32 -vhdl ./rtl/core/neorv32_xirq.vhd
verific -work neorv32 -vhdl ./rtl/core/neorv32_gptmr.vhd
verific -work neorv32 -vhdl ./rtl/core/neorv32_onewire.vhd
verific -work neorv32 -vhdl ./rtl/core/neorv32_slink.vhd
verific -work neorv32 -vhdl ./rtl/core/neorv32_crc.vhd
verific -work neorv32 -vhdl ./rtl/core/neorv32_sysinfo.vhd
verific -work neorv32 -vhdl ./rtl/core/neorv32_debug_dtm.vhd
verific -work neorv32 -vhdl ./rtl/core/neorv32_debug_dm.vhd
verific -work neorv32 -vhdl ./rtl/core/neorv32_top.vhd
verific -work neorv32 -vhdl ./rtl/core/neorv32_application_image.vhd
verific -work neorv32 -vhdl ./rtl/core/neorv32_bootloader_image.vhd

verific -L neorv32 -vhdl ./rtl/processor_templates/neorv32_ProcessorTop_UP5KDemo.vhd
4 changes: 4 additions & 0 deletions sona-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
sonar.projectKey=neorv32
stnolting marked this conversation as resolved.
Show resolved Hide resolved
sonar.sources=./rtl,./sim
sonar.hdl.file.simulationPaths=./sim/**/*.vhd*
sonar.hdl.topModule=neorv32_ProcessorTop_UP5KDemo
Loading