From 9c66245ee6304146b107e1dd13b9b125e7609142 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Stro=CC=88mbergson?= Date: Tue, 30 Oct 2018 15:13:35 +0100 Subject: Integrated the DUT into the testbench and update Makefile to build the sim target- --- toolruns/Makefile | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'toolruns/Makefile') 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) -- cgit v1.2.3