Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
815d1ddffThis file is pinned to the selected release. Download the original to open it in your design tool.
# Copyright 2023 ETH Zurich and University of Bologna.
# Solderpad Hardware License, Version 0.51, see LICENSE for details.
# SPDX-License-Identifier: SHL-0.51
BENDER ?= bender
VSIM ?= vsim
AVAILABLE_TESTBENCHES = tb_obi_xbar
scripts/compile.tcl:
mkdir -p scripts
$(BENDER) script vsim -t test --vlog-arg="-svinputport=compat" > $@
.PHONY: build
build: scripts/compile.tcl
$(VSIM) -c -do 'exit -code [source scripts/compile.tcl]'
.PHONY: $(AVAILABLE_TESTBENCHES)
$(AVAILABLE_TESTBENCHES): build
$(VSIM) -c $@ -do "run -all"
.PHONY: all
all: $(AVAILABLE_TESTBENCHES)
.PHONY: clean
clean:
rm -f scripts/compile.tcl
rm -rf work
rm -f modelsim.ini
rm -f transcript
rm -f vsim.wlf