From a52e389e01d17331c5d0e11bccfa64a354089114 Mon Sep 17 00:00:00 2001 From: bryan newbold Date: Wed, 5 Jun 2013 16:56:49 -0400 Subject: add 'make lint' verilog-build command; requires verilator --- contrib/xilinx.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'contrib') diff --git a/contrib/xilinx.mk b/contrib/xilinx.mk index e6bbf8a..89bd465 100644 --- a/contrib/xilinx.mk +++ b/contrib/xilinx.mk @@ -67,7 +67,7 @@ local_corengcs = $(foreach ngc,$(corengcs),$(notdir $(ngc))) vfiles += $(foreach core,$(xilinx_cores),$(core:.xco=.v)) tbmods = $(foreach tbm,$(tbfiles),unenclib.`basename $(tbm) .v`) -.PHONY: default xilinx_cores clean twr etwr ise isim simulate coregen impact ldimpact +.PHONY: default xilinx_cores clean twr etwr ise isim simulate coregen impact ldimpact lint default: build/$(project).bit build/$(project).mcs xilinx_cores: $(corengcs) twr: $(project).twr @@ -214,6 +214,9 @@ ise: @mkdir -p build @bash -c "$(xil_env); cd ..; XIL_MAP_LOCWARN=0 ise $(project).xise &" +lint: + verilator --lint-only -Wall -I./hdl -I./cores -Wall $(top_module) + clean: clean_synth clean_sim rm -rf iseconfig -- cgit v1.2.3