forked from pulp-platform/memory_island
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
34 lines (24 loc) · 1.06 KB
/
Makefile
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
29
30
31
32
33
34
# Copyright 2023 ETH Zurich and University of Bologna.
# Solderpad Hardware License, Version 0.51, see LICENSE for details.
# SPDX-License-Identifier: SHL-0.51
# Michael Rogenmoser <[email protected]>
MEMORY_ISLAND_ROOT := $(CURDIR)
BENDER ?= bender -d $(MEMORY_ISLAND_ROOT)
VSIM ?= vsim
scripts/compile.tcl: Bender.yml Bender.lock
$(BENDER) script vsim -t test --vlog-arg="-svinputport=compat" > $@
echo "return 0" >> $@
.PHONY: test-vsim
test-vsim: scripts/compile.tcl
$(VSIM) -64 -c -do "quit -code [source scripts/compile.tcl]"
$(VSIM) -64 -do "vsim axi_memory_island_tb -voptargs=+acc; do scripts/debug_wave.do"
test-vsim-bare: scripts/compile.tcl
$(VSIM) -64 -c -do "quit -code [source scripts/compile.tcl]"
$(VSIM) -64 -c -do "vsim axi_memory_island_tb; run -all"
## Internal CI
NONFREE_REMOTE ?= [email protected]:pulp-restricted/memory_island_nonfree.git
NONFREE_COMMIT ?= master
nonfree-init:
git clone $(NONFREE_REMOTE) $(MEMORY_ISLAND_ROOT)/nonfree
cd nonfree && git checkout $(NONFREE_COMMIT)
-include $(MEMORY_ISLAND_ROOT)/nonfree/nonfree.mk