-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtest_cpu.mk
More file actions
26 lines (20 loc) · 844 Bytes
/
test_cpu.mk
File metadata and controls
26 lines (20 loc) · 844 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
# Makefile
# See https://docs.cocotb.org/en/stable/quickstart.html for more info
# defaults
SIM ?= icarus
TOPLEVEL_LANG ?= verilog
VERILOG_SOURCES += $(PWD)/register.v $(PWD)/alu.v $(PWD)/core.v $(PWD)/shift.v $(PWD)/multiply.v $(PWD)/cpu.v $(PWD)/tb_cpu.v
COMPILE_ARGS += -DSIM
COMPILE_ARGS += -DICE40 -DNO_ICE40_DEFAULT_ASSIGNMENTS
VERILOG_SOURCES += $(PWD)/ice40_cells_sim.v
# TOPLEVEL is the name of the toplevel module in your Verilog or VHDL file
ifeq ($(TOP),yes)
TOPLEVEL = tb_top
VERILOG_SOURCES += $(PWD)/top.v $(PWD)/tb_top.v $(PWD)/ledscan.v $(PWD)/musicnote.v $(PWD)/uart/uart_tx.v $(PWD)/uart/uart_rx.v
else
TOPLEVEL = tb_cpu
endif
# MODULE is the basename of the Python test file
MODULE = test_cpu
# include cocotb's make rules to take care of the simulator setup
include $(shell cocotb-config --makefiles)/Makefile.sim