Line 1... |
Line 1... |
######################################################################
|
######################################################################
|
#### ####
|
#### ####
|
#### ORPSoCv2 Testbenches Makefile ####
|
#### ORPSoCv2 Xilinx simulation Makefile ####
|
#### ####
|
#### ####
|
#### Description ####
|
#### Description ####
|
#### ORPSoCv2 Testbenches Makefile, containing rules for ####
|
#### ORPSoCv2 Testbenches Makefile, containing rules for ####
|
#### configuring and running different tests on the current ####
|
#### configuring and running different tests on the current ####
|
#### ORPSoC(v2) design. ####
|
#### ORPSoC(v2) design. ####
|
Line 105... |
Line 105... |
print-tests:
|
print-tests:
|
@echo; echo; echo "\t### Software tests to be run ###"; echo;
|
@echo; echo; echo "\t### Software tests to be run ###"; echo;
|
@echo $(TESTS)
|
@echo $(TESTS)
|
@echo
|
@echo
|
|
|
|
# Backend tool path
|
|
# Check that the XILINX_PATH variable is set
|
|
ifeq ($(XILINX_PATH),)
|
|
$(error XILINX_PATH environment variable not set. Set it and rerun)
|
|
endif
|
|
XILINX_SETTINGS_SCRIPT=$(XILINX_PATH)/settings32.sh
|
|
XILINX_SETTINGS_SCRIPT_EXISTS=$(shell if [ -e $(XILINX_SETTINGS_SCRIPT) ]; then echo 1; else echo 0; fi)
|
|
ifeq ($(XILINX_SETTINGS_SCRIPT_EXISTS),0)
|
|
$(error XILINX_PATH variable not set correctly. Cannot find $$XILINX_PATH/settings32.sh)
|
|
endif
|
|
|
|
|
# Simulation directories
|
# Simulation directories
|
SIM_DIR ?=$(BOARD_DIR)/sim
|
SIM_DIR ?=$(BOARD_DIR)/sim
|
RTL_SIM_DIR=$(SIM_DIR)
|
RTL_SIM_DIR=$(SIM_DIR)
|
RTL_SIM_RUN_DIR=$(RTL_SIM_DIR)/run
|
RTL_SIM_RUN_DIR=$(RTL_SIM_DIR)/run
|
RTL_SIM_BIN_DIR=$(RTL_SIM_DIR)/bin
|
RTL_SIM_BIN_DIR=$(RTL_SIM_DIR)/bin
|
Line 130... |
Line 142... |
# This one is the board build's backend dir.
|
# This one is the board build's backend dir.
|
BOARD_BACKEND_DIR=$(BOARD_DIR)/backend
|
BOARD_BACKEND_DIR=$(BOARD_DIR)/backend
|
BOARD_BACKEND_VERILOG_DIR=$(BOARD_BACKEND_DIR)/rtl/verilog
|
BOARD_BACKEND_VERILOG_DIR=$(BOARD_BACKEND_DIR)/rtl/verilog
|
TECHNOLOGY_BACKEND_DIR=$(BOARD_DIR)/../backend
|
TECHNOLOGY_BACKEND_DIR=$(BOARD_DIR)/../backend
|
# This path is for the technology library
|
# This path is for the technology library
|
TECHNOLOGY_BACKEND_VERILOG_DIR=$(TECHNOLOGY_BACKEND_DIR)/rtl/verilog
|
#TECHNOLOGY_BACKEND_VERILOG_DIR=$(TECHNOLOGY_BACKEND_DIR)/rtl/verilog
|
|
# Depends on the XILINX_PATH variable - we check above if it's set properly.
|
|
TECHNOLOGY_BACKEND_VERILOG_DIR=$(XILINX_PATH)/verilog
|
|
|
# Synthesis directory for board
|
# Synthesis directory for board
|
BOARD_SYN_DIR=$(BOARD_DIR)/syn/synplify
|
BOARD_SYN_DIR=$(BOARD_DIR)/syn/synplify
|
BOARD_SYN_OUT_DIR=$(BOARD_SYN_DIR)/out
|
BOARD_SYN_OUT_DIR=$(BOARD_SYN_DIR)/out
|
|
|