-
-
Notifications
You must be signed in to change notification settings - Fork 53
/
Copy pathlint.sh
executable file
·27 lines (23 loc) · 929 Bytes
/
lint.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh
# Project F: Lint Script
# (C)2023 Will Green, open source software released under the MIT License
# Learn more at https://projectf.io/posts/verilog-lint-with-verilator/
# NB. This demo uses local framebuffer & linebuffer modules.
DIR=`dirname $0`
LIB="${DIR}/../../lib"
# Xilinx 7 Series (VGA Output)
if [ -d "${DIR}/xc7" ]; then
echo "## Linting top modules in ${DIR}/xc7"
for f in ${DIR}/xc7/top_*\.*v; do
echo "## Checking ${f}";
verilator --lint-only -Wall -I${DIR} -I${DIR}/xc7 \
-I${LIB}/clock -I${LIB}/clock/xc7 \
-I${LIB}/display -I${LIB}/display/xc7 \
-I${LIB}/essential -I${LIB}/essential/xc7 \
-I${LIB}/graphics -I${LIB}/graphics/xc7 \
-I${LIB}/maths -I${LIB}/maths/xc7 \
-I${LIB}/memory -I${LIB}/memory/xc7 \
-I${DIR}/lib/display \
-I${LIB}/null/xc7 $f;
done
fi