diff options
-rw-r--r-- | toolruns/Makefile | 23 |
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." #=================================================================== |