-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_core.mk
More file actions
28 lines (20 loc) · 724 Bytes
/
test_core.mk
File metadata and controls
28 lines (20 loc) · 724 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
######################################################################
# Simple Makefile for SHA256 Core Testing
######################################################################
# Verilator flags
VERILATOR = verilator
VERILATOR_FLAGS = --cc --exe --build -Wall -Wno-fatal --trace --timing --assert --debug
# Simulation executable
EXECUTABLE = obj_dir/Vsha256_tb
# Verilog sources
VERILOG_SOURCES = sha256_core.v sha256_tb.v
all: $(EXECUTABLE)
$(EXECUTABLE): $(VERILOG_SOURCES) test_main.cpp
$(VERILATOR) $(VERILATOR_FLAGS) $(VERILOG_SOURCES) test_main.cpp --top-module sha256_tb
run: $(EXECUTABLE)
@echo "Running SHA256 core test..."
@$(EXECUTABLE)
clean:
rm -rf obj_dir
rm -f *.vcd
.PHONY: all run clean