-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtest_soc.mk
More file actions
24 lines (18 loc) · 904 Bytes
/
test_soc.mk
File metadata and controls
24 lines (18 loc) · 904 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
# Makefile
# See https://docs.cocotb.org/en/stable/quickstart.html for more info
# defaults
SIM ?= icarus
TOPLEVEL_LANG ?= verilog
PROG_FILE ?= test.mem
START_SIG ?= 0
END_SIG ?= 0
VERILOG_SOURCES += $(PWD)/register.v $(PWD)/alu.v $(PWD)/core.v $(PWD)/shift.v $(PWD)/multiply.v $(PWD)/cpu.v $(PWD)/top.v $(PWD)/tb_top_with_ram.v $(PWD)/ledscan.v $(PWD)/sim_sram.v $(PWD)/uart/uart_tx.v $(PWD)/uart/uart_rx.v
COMPILE_ARGS += -DSIM -DPROG_FILE=\"$(PROG_FILE)\" -DSTART_SIG=$(START_SIG) -DEND_SIG=$(END_SIG)
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
TOPLEVEL = tb_top_with_ram
# MODULE is the basename of the Python test file
MODULE = test_soc
# include cocotb's make rules to take care of the simulator setup
include $(shell cocotb-config --makefiles)/Makefile.sim