summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorLarry Doolittle <ldoolitt@recycle.lbl.gov>2017-11-10 18:47:08 -0800
committerLarry Doolittle <ldoolitt@recycle.lbl.gov>2017-11-10 18:47:08 -0800
commit2eff2a7e9fa7b1414e0c8c9019b16a0dc384b41c (patch)
treebd1392338bb57830a04728b545136bb36e1a756f /Makefile
parent5e431b2052690866e0fa102bb8e880d0ac21f575 (diff)
downloadvhdl2vl-2eff2a7e9fa7b1414e0c8c9019b16a0dc384b41c.tar.gz
vhdl2vl-2eff2a7e9fa7b1414e0c8c9019b16a0dc384b41c.zip
New make target: verilogcheck
Requires iverilog to operate. Scans resulting files in translated_examples directory. This patch includes some simple fixes to reduce the number of errors reported, but there are more that need further investigation.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 7d841be..0bcd635 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,7 @@
#!/usr/bin/make
# by RAM 2017
+VERILOG = iverilog -Wall -y . -t null
EXAMPLES = $(wildcard examples/*.vhd)
VHDLS = $(notdir $(EXAMPLES))
@@ -22,6 +23,9 @@ diff: translate
diff -u translated_examples temp/verilog
@echo "PASS"
+verilogcheck:
+ @cd translated_examples; for f in *.v; do $(VERILOG) $$f; done
+
clean:
make -C src clean
@make -C examples clean
OpenPOWER on IntegriCloud