You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
940 B
Plaintext

2 years ago
# sdr ra
# make -f Makefile.icarus build # rebuild and sim and fst
# make -f Makefile.icarus run # sim and fst
# make -f Makefile.icarus # sim
#COCOTB_LOG_LEVEL=DEBUG
#GPI_EXTRA=vpi
#COCOTB_RESOLVE_X = ZEROS # VALUE_ERROR ZEROS ONES RANDOM
#SIM_BUILD ?= build
SIM ?= icarus
# options
#COCOTB_HDL_TIMEUNIT ?= 1ns
#COCOTB_HDL_TIMEPRECISION ?= 1ps
#COCOTB_RESOLVE_X = VALUE_ERROR # ZEROS ONES RANDOM
# icarus
2 years ago
#
VERILOG_ROOT = src/array_shard
2 years ago
COMPILE_ARGS = -I$(VERILOG_ROOT) -y$(VERILOG_ROOT)
# other options
# rtl
TOPLEVEL_LANG = verilog
2 years ago
VERILOG_SOURCES = ./tb_ra_64x72_2r1w.v $(VERILOG_ROOT)/wordlines_comp.v $(VERILOG_ROOT)/sky130_hd.v $(VERILOG_ROOT)/sky130_fd.v
2 years ago
TOPLEVEL = tb_ra_64x72_2r1w
2 years ago
# python test
2 years ago
MODULE = tb_ra_64x72
2 years ago
TESTCASE = tb
# cocotb make rules
include $(shell cocotb-config --makefiles)/Makefile.sim
build: clean sim fst
run: sim fst
fst:
2 years ago
vcd2fst tb_ra_64x72.vcd tb_ra_64x72.fst
rm tb_ra_64x72.vcd