[Cryptech-Commits] [core/trng] 01/01: Adding compile and sim target for the mixer.

git at cryptech.is git at cryptech.is
Thu Sep 11 16:23:18 UTC 2014


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

joachim at secworks.se pushed a commit to branch master
in repository core/trng.

commit 50fbdb9bf7b1ffd4f3199147de515e623b92979b
Author: Joachim Strömbergson <joachim at secworks.se>
Date:   Thu Sep 11 18:23:10 2014 +0200

    Adding compile and sim target for the mixer.
---
 toolruns/Makefile | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/toolruns/Makefile b/toolruns/Makefile
index d482124..63f9035 100644
--- a/toolruns/Makefile
+++ b/toolruns/Makefile
@@ -40,22 +40,35 @@ 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
+MIXER_SRC=../src/rtl/trng_mixer.v
+TB_MIXER_SRC=../src/tb/tb_mixer.v
+
 CC=iverilog
 
 
-all: csprng.sim
+all: mixer.sim csprng.sim
 
 
 csprng.sim: $(TB_CSPRNG_SRC) $(CSPRNG_SRC) $(CHACHA_SRC)
 	$(CC) -o csprng.sim $(TB_CSPRNG_SRC) $(CSPRNG_SRC) $(CHACHA_SRC)
 
 
+mixer.sim: $(TB_MIXER_SRC) $(MIXER_SRC) $(SHA512_SRC)
+	$(CC) -o mixer.sim $(TB_MIXER_SRC) $(MIXER_SRC) $(SHA512_SRC)
+
+
 sim-csprng: csprng.sim
 	./csprng.sim
 
 
+sim-mixer: mixer.sim
+	./mixer.sim
+
+
 clean:
 	rm -f csprng.sim
+	rm -f mixer.sim
 
 
 help:
@@ -65,7 +78,9 @@ help:
 	@echo "------------------"
 	@echo "all:         Build all simulation targets."
 	@echo "csprng.sim:  Build the csprng simulation target."
+	@echo "mixer.sim:   Build the mixer simulation target."
 	@echo "sim-csprng:  Run cprng simulation."
+	@echo "sim-mixer:   Run mixer simulation."
 	@echo "clean:       Delete all built files."
 
 #===================================================================



More information about the Commits mailing list