[Cryptech-Commits] [staging/core/rng/trng] 10/30: Updated Makefile to build the complete trng simulation target.

git at cryptech.is git at cryptech.is
Tue Mar 17 13:18:59 UTC 2015


This is an automated email from the git hooks/post-receive script.

paul at psgd.org pushed a commit to branch master
in repository staging/core/rng/trng.

commit 8c538ac12a60b6af61d04b6a8c30ff83c105be93
Author: Joachim Strömbergson <joachim at secworks.se>
Date:   Fri Sep 12 14:15:53 2014 +0200

    Updated Makefile to build the complete trng simulation target.
---
 toolruns/Makefile | 19 +++++++++++++++++--
 1 file changed, 17 insertions(+), 2 deletions(-)

diff --git a/toolruns/Makefile b/toolruns/Makefile
index 63f9035..e70999e 100644
--- a/toolruns/Makefile
+++ b/toolruns/Makefile
@@ -40,14 +40,18 @@ CHACHA_SRC=../../chacha/src/rtl/chacha_core.v ../../chacha/src/rtl/chacha_qr.v
 CSPRNG_SRC=../src/rtl/trng_csprng.v ../src/rtl/trng_csprng_fifo.v
 TB_CSPRNG_SRC=../src/tb/tb_csprng.v
 
-SHA512_SRC=../../sha512/src/rtl/sha512_core.v ../../sha512/src/rtl/sha512_h_constants.v  ../../sha512/src/rtl/sha512_k_constants.v  ../../sha512/src/rtl/sha512_w_mem.v
+SHA512_SRC=../../sha512/src/rtl/sha512_core.v ../../sha512/src/rtl/sha512_h_constants.v ../../sha512/src/rtl/sha512_k_constants.v ../../sha512/src/rtl/sha512_w_mem.v
 MIXER_SRC=../src/rtl/trng_mixer.v
 TB_MIXER_SRC=../src/tb/tb_mixer.v
 
+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/avalance_entropy.v ../src/tb/fake_modules/pseudo_entropy.v ../src/tb/fake_modules/ringosc_entropy.v
+
 CC=iverilog
 
 
-all: mixer.sim csprng.sim
+all: trng.sim mixer.sim csprng.sim
 
 
 csprng.sim: $(TB_CSPRNG_SRC) $(CSPRNG_SRC) $(CHACHA_SRC)
@@ -58,6 +62,10 @@ mixer.sim: $(TB_MIXER_SRC) $(MIXER_SRC) $(SHA512_SRC)
 	$(CC) -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)
+
+
 sim-csprng: csprng.sim
 	./csprng.sim
 
@@ -66,9 +74,14 @@ sim-mixer: mixer.sim
 	./mixer.sim
 
 
+sim-trng: trng.sim
+	./trng.sim
+
+
 clean:
 	rm -f csprng.sim
 	rm -f mixer.sim
+	rm -f trng.sim
 
 
 help:
@@ -79,8 +92,10 @@ help:
 	@echo "all:         Build all simulation targets."
 	@echo "csprng.sim:  Build the csprng simulation target."
 	@echo "mixer.sim:   Build the mixer simulation target."
+	@echo "trng.sim:    Build the trng simulation target."
 	@echo "sim-csprng:  Run cprng simulation."
 	@echo "sim-mixer:   Run mixer simulation."
+	@echo "sim-trng:    Run trng simulation."
 	@echo "clean:       Delete all built files."
 
 #===================================================================



More information about the Commits mailing list