Enhance lint-wally functionality

This commit is contained in:
Jarred Allen 2021-04-29 14:48:41 -04:00
parent ebd9c0ee29
commit bf54c9b0b2

View File

@ -1,11 +1,14 @@
# check for warnings in Verilog code # check for warnings in Verilog code
# The verilator lint tool is faster and better than Modelsim so it is best to run this first. # The verilator lint tool is faster and better than Modelsim so it is best to run this first.
echo "rv64ic linting..." for config in rv64ic rv32ic; do
verilator --lint-only "$@" --top-module wallypipelinedsoc -Iconfig/rv64ic src/*/*.sv echo "$config linting..."
echo "rv32ic linting..." if !(verilator --lint-only "$@" --top-module wallypipelinedsoc "-Iconfig/$config" src/*/*.sv); then
verilator --lint-only "$@" --top-module wallypipelinedsoc -Iconfig/rv32ic src/*/*.sv echo "Exiting after $config lint due to errors or warnings"
#verilator --lint-only --top-module wallypipelinedsoc -Iconfig/rv64ic src/*/*.sv src/*/div/*.sv exit 1
fi
done
echo "All lints run with no errors or warnings"
# --lint-only just runs lint rather than trying to compile and simulate # --lint-only just runs lint rather than trying to compile and simulate
# -I points to the include directory where files such as `include wally-config.vh are found # -I points to the include directory where files such as `include wally-config.vh are found