aboutsummaryrefslogtreecommitdiff
path: root/toolruns
diff options
context:
space:
mode:
Diffstat (limited to 'toolruns')
-rw-r--r--toolruns/Makefile21
1 files changed, 13 insertions, 8 deletions
diff --git a/toolruns/Makefile b/toolruns/Makefile
index b4d8924..50e4f26 100644
--- a/toolruns/Makefile
+++ b/toolruns/Makefile
@@ -54,26 +54,31 @@ TRNG_SRC=../src/rtl/trng.v $(MIXER_SRC) $(SHA512_SRC) $(CSPRNG_SRC) $(CHACHA_SRC
TB_TRNG_SRC=../src/tb/tb_trng.v
FAKE_ENTROPY_SRC=../src/tb/fake_modules/avalanche_entropy.v ../src/tb/fake_modules/pseudo_entropy.v ../src/tb/fake_modules/rosc_entropy.v
-CC =iverilog
-LINT = verilator -Wall --lint-only
+
+CC=iverilog
+CC_FLAGS = -Wall
+
+LINT=verilator
+LINT_FLAGS = +1364-2001ext+ --lint-only -Wall -Wno-fatal -Wno-DECLFILENAME
+
all: trng.sim mixer.sim csprng.sim csprng_fifo.sim
csprng.sim: $(TB_CSPRNG_SRC) $(CSPRNG_SRC) $(CHACHA_SRC)
- $(CC) -o csprng.sim $(TB_CSPRNG_SRC) $(CSPRNG_SRC) $(CHACHA_SRC)
+ $(CC) $(CC_FLAGS) -o csprng.sim $(TB_CSPRNG_SRC) $(CSPRNG_SRC) $(CHACHA_SRC)
csprng_fifo.sim: $(TB_CSPRNG_FIFO_SRC) $(CSPRNG_FIFO_SRC)
- $(CC) -o csprng_fifo.sim $(TB_CSPRNG_FIFO_SRC) $(CSPRNG_FIFO_SRC)
+ $(CC) $(CC_FLAGS) -o csprng_fifo.sim $(TB_CSPRNG_FIFO_SRC) $(CSPRNG_FIFO_SRC)
mixer.sim: $(TB_MIXER_SRC) $(MIXER_SRC) $(SHA512_SRC)
- $(CC) -o mixer.sim $(TB_MIXER_SRC) $(MIXER_SRC) $(SHA512_SRC)
+ $(CC) $(CC_FLAGS) -o mixer.sim $(TB_MIXER_SRC) $(MIXER_SRC) $(SHA512_SRC)
trng.sim: $(TRNG_SRC) $(FAKE_ENTROPY_SRC)
- $(CC) -o trng.sim $(TB_TRNG_SRC) $(TRNG_SRC) $(FAKE_ENTROPY_SRC)
+ $(CC) $(CC_FLAGS) -o trng.sim $(TB_TRNG_SRC) $(TRNG_SRC) $(FAKE_ENTROPY_SRC)
sim-csprng_fifo: csprng_fifo.sim
@@ -95,8 +100,8 @@ sim-trng: trng.sim
lint:
@echo "NOTE: Does not lint rosc and avalance noise sources."
@echo ""
- $(LINT) $(CSPRNG_SRC) $(CHACHA_SRC)
- $(LINT) $(MIXER_SRC) $(SHA512_SRC)
+ $(LINT) $(LINT_FLAGS) $(CSPRNG_SRC) $(CHACHA_SRC)
+ $(LINT) $(LINT_FLAGS) $(MIXER_SRC) $(SHA512_SRC)
clean: