aboutsummaryrefslogtreecommitdiff
path: root/toolruns/Makefile
diff options
context:
space:
mode:
authorJoachim StroĢˆmbergson <joachim@secworks.se>2018-10-30 15:13:35 +0100
committerJoachim StroĢˆmbergson <joachim@secworks.se>2018-10-30 15:13:35 +0100
commit9c66245ee6304146b107e1dd13b9b125e7609142 (patch)
treea28a5bc29b159c591f338374fd35b7f98cc3d35f /toolruns/Makefile
parentaced6ee13af2d15ee0a9ccd8e681faf1519106ea (diff)
Integrated the DUT into the testbench and update Makefile to build the sim target-
Diffstat (limited to 'toolruns/Makefile')
-rwxr-xr-xtoolruns/Makefile15
1 files changed, 13 insertions, 2 deletions
diff --git a/toolruns/Makefile b/toolruns/Makefile
index 4ca1d54..a6dcf00 100755
--- a/toolruns/Makefile
+++ b/toolruns/Makefile
@@ -46,7 +46,10 @@ AES_SRC = $(AES_PATH)/aes_core.v $(AES_PATH)/aes_decipher_block.v $(AES_PATH)/ae
MEM_SRC = ../src/rtl/keywrap_mem.v
TB_MEM_SRC = ../src/tb/tb_keywrap_mem.v
-CORE_SRC = ../src/rtl/keywrap_core.v ../src/rtl/keywrap_mkmif.v $(AES_SRC) $(MEM_SRC) $(MKMIF_SRC)
+KEYWRAP_MKMIF_SRC = ../src/rtl/keywrap_mkmif.v
+TB_KEYWRAP_MKMIF_SRC = ../src/tb/tb_keywrap_mkmif.v
+
+CORE_SRC = ../src/rtl/keywrap_core.v $(KEYWRAP_MKMIF_SRC) $(AES_SRC) $(MEM_SRC) $(MKMIF_SRC)
TB_CORE_SRC = ../src/tb/tb_keywrap_core.v
TOP_SRC = ../src/rtl/keywrap.v $(CORE_SRC)
@@ -58,7 +61,7 @@ CC_FLAGS = -Wall
LINT = verilator
LINT_FLAGS = +1364-2001ext+ --lint-only -Wall -Wno-fatal -Wno-DECLFILENAME
-all: top.sim core.sim mem.sim
+all: top.sim core.sim mem.sim mkmif.sim
top.sim: $(TB_TOP_SRC) $(TOP_SRC)
@@ -73,6 +76,10 @@ mem.sim: $(TB_MEM_SRC) $(MEM_SRC)
$(CC) $(CC_FLAGS) -o mem.sim $(TB_MEM_SRC) $(MEM_SRC)
+mkmif.sim: $(TB_KEYWRAP_MKMIF_SRC) $(KEYWRAP_MKMIF_SRC) $(MKMIF_SRC)
+ $(CC) $(CC_FLAGS) -o mkmif.sim $(TB_KEYWRAP_MKMIF_SRC) $(KEYWRAP_MKMIF_SRC) $(MKMIF_SRC)
+
+
sim-top: top.sim
./top.sim
@@ -85,6 +92,10 @@ sim-mem: mem.sim
./mem.sim
+sim-mkmif: mkmif.sim
+ ./mkmif.sim
+
+
lint: $(TOP_SRC)
$(LINT) $(LINT_FLAGS) $(TOP_SRC)