aboutsummaryrefslogtreecommitdiff
path: root/toolruns
diff options
context:
space:
mode:
authorJoachim StroĢˆmbergson <joachim@assured.se>2019-01-25 09:16:24 +0100
committerJoachim StroĢˆmbergson <joachim@assured.se>2019-01-25 09:16:24 +0100
commitdb81c0e56dca48a0d8dee8a4359fb2096e4c1faf (patch)
treedd2bf34792da3e732bca0a8bbaae709fcf966181 /toolruns
parent47edd24044d58d5368f8e5a45c26c94d6f6e4b26 (diff)
Updated CC and Lint flags. Updated make help.HEADmaster
Diffstat (limited to 'toolruns')
-rw-r--r--toolruns/Makefile23
1 files changed, 19 insertions, 4 deletions
diff --git a/toolruns/Makefile b/toolruns/Makefile
index 7b613ee..6d579d8 100644
--- a/toolruns/Makefile
+++ b/toolruns/Makefile
@@ -40,20 +40,31 @@
CORE_SRC=../src/rtl/rosc_entropy_core.v ../src/rtl/rosc.v
TOP_SRC=../src/rtl/rosc_entropy.v
+
CC=iverilog
-LINT=verilator --lint-only
+CC_FLAGS = -Wall
+
+LINT=verilator
+LINT_FLAGS = +1364-2001ext+ --lint-only -Wall -Wno-fatal -Wno-DECLFILENAME
+
all: rosc.sim
rosc.sim: $(TOP_SRC) $(CORE_SRC)
- $(CC) -o rosc.sim $(TOP_SRC) $(CORE_SRC)
+ $(CC) $(CC_FLAGS) -o rosc.sim $(TOP_SRC) $(CORE_SRC)
+
+
+sim-rosc: rosc.sim
+ ./rosc.sim
+
lint: $(TOP_SRC) $(CORE_SRC)
- $(LINT) --top-module rosc_entropy $(TOP_SRC) $(CORE_SRC)
+ $(LINT) $(LINT_FLAGS) --top-module rosc_entropy $(TOP_SRC) $(CORE_SRC)
+
clean:
- rm -f rosc.sim
+ rm -f *.sim
help:
@@ -61,6 +72,10 @@ help:
@echo ""
@echo "Supported targets:"
@echo "------------------"
+ @echo "all: Build all simulation targets."
+ @echo "rosc.sim: Build the ROSC sim target."
+ @echo "sim-rosc: Run ROSC simulation."
+ @echo "lint: Run linter on the ROSC source."
@echo "clean: Delete all built files."
#===================================================================