aboutsummaryrefslogtreecommitdiff
path: root/toolruns
diff options
context:
space:
mode:
authorPaul Selkirk <paul@psgd.org>2020-03-31 09:27:02 -0400
committerPaul Selkirk <paul@psgd.org>2020-03-31 09:27:28 -0400
commit2aee357d677e720215f5a03cf071ee94980cf05d (patch)
tree0fbf83ad000d9b98ba556629f894d2a5a2b62d67 /toolruns
parent4333178c6a8f467ddacc13ddae0bed588b6bdcf3 (diff)
parent0d2aa16a71c1f0ca183a71c3d5460c6ff1a2f245 (diff)
Merge branch 'integrate_mkmif' to master
Diffstat (limited to 'toolruns')
-rwxr-xr-xtoolruns/Makefile21
1 files changed, 19 insertions, 2 deletions
diff --git a/toolruns/Makefile b/toolruns/Makefile
index 6a37c41..170e4bf 100755
--- a/toolruns/Makefile
+++ b/toolruns/Makefile
@@ -37,13 +37,22 @@
#
#===================================================================
+VENDOR_MEM_PATH = ../src/tech
+VENDOR_MEM_SRC = $(VENDOR_MEM_PATH)/23K640.v
+
+MKMIF_PATH = ../../mkmif/src/rtl
+MKMIF_SRC = $(MKMIF_PATH)/mkmif_core.v $(MKMIF_PATH)/mkmif_spi.v
+
AES_PATH = ../../../../core/cipher/aes_speed/src/rtl
AES_SRC = $(AES_PATH)/aes_core.v $(AES_PATH)/aes_decipher_block.v $(AES_PATH)/aes_encipher_block.v $(AES_PATH)/aes_inv_sbox.v $(AES_PATH)/aes_key_mem.v $(AES_PATH)/aes_sbox.v
MEM_SRC = ../src/rtl/keywrap_mem.v
TB_MEM_SRC = ../src/tb/tb_keywrap_mem.v
-CORE_SRC = ../src/rtl/keywrap_core.v $(AES_SRC) $(MEM_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)
@@ -55,7 +64,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)
@@ -70,6 +79,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) $(VENDOR_MEM_SRC)
+ $(CC) $(CC_FLAGS) -o mkmif.sim $(TB_KEYWRAP_MKMIF_SRC) $(KEYWRAP_MKMIF_SRC) $(MKMIF_SRC) $(VENDOR_MEM_SRC)
+
+
sim-top: top.sim
./top.sim
@@ -82,6 +95,10 @@ sim-mem: mem.sim
./mem.sim
+sim-mkmif: mkmif.sim
+ ./mkmif.sim
+
+
lint: $(TOP_SRC)
$(LINT) $(LINT_FLAGS) $(TOP_SRC)