OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [orpsocv2/] [boards/] [xilinx/] [atlys/] [Makefile.inc] - Blame information for rev 628

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 628 stekern
# Makefile fragment with some variables global to this board board
2
# Expects BOARD_ROOT to be set
3
 
4
FPGA_VENDOR=xilinx
5
FPGA_ARCH=spartan6
6
BOARD_NAME=atlys
7
BOARD=$(FPGA_VENDOR)/$(BOARD_NAME)
8
DESIGN_NAME=orpsoc
9
 
10
# Path down to root of project
11
PROJECT_ROOT=$(BOARD_ROOT)/../../..
12
 
13
SYNTHESIS_TOOL=xst
14
 
15
export BOARD
16
 
17
include $(PROJECT_ROOT)/scripts/make/Makefile-misc.inc
18
include $(PROJECT_ROOT)/scripts/make/Makefile-board-paths.inc
19
include $(PROJECT_ROOT)/scripts/make/Makefile-board-tops.inc
20
include $(PROJECT_ROOT)/scripts/make/Makefile-board-definesparse.inc
21
 
22
# Check that the XILINX_PATH variable is set
23
ifeq ($(XILINX_PATH),)
24
$(error XILINX_PATH environment variable not set. Set it and rerun)
25
endif
26
XILINX_SETTINGS_SCRIPT=$(XILINX_PATH)/settings32.sh
27
XILINX_SETTINGS_SCRIPT_EXISTS=$(shell if [ -e $(XILINX_SETTINGS_SCRIPT) ]; then echo 1; else echo 0; fi)
28
ifeq ($(XILINX_SETTINGS_SCRIPT_EXISTS),0)
29
$(error XILINX_PATH variable not set correctly. Cannot find $$XILINX_PATH/settings32.sh)
30
endif
31
 
32
# Backend directories
33
# This one is the board build's backend dir.
34
BOARD_BACKEND_DIR=$(BOARD_ROOT)/backend
35
BOARD_BACKEND_VERILOG_DIR=$(BOARD_BACKEND_DIR)/rtl/verilog
36
BOARD_BACKEND_BIN_DIR=$(BOARD_BACKEND_DIR)/bin
37
# Technology backend (vendor-specific)
38
TECHNOLOGY_BACKEND_DIR=$(BOARD_ROOT)/../backend
39
# This path is for the technology library
40
TECHNOLOGY_LIBRARY_VERILOG_DIR=$(XILINX_PATH)/ISE/verilog
41
# This path is for the technology binaries
42
TECHNOLOGY_BACKEND_BIN_DIR=$(XILINX_PATH)/ISE/bin/lin
43
 
44
# Board specific modelsim options
45
VSIM_ARGS= -L secureip
46
VOPT_ARGS= -L secureip
47
 
48
# Xilinx Xlib specific settings
49
DO_XILINX_COMPXLIB=1
50
XLIB_ARGS=-intstyle silent -s mti_se -l all -arch $(FPGA_ARCH) -lib all
51
 
52
# Bootrom setup
53
# BootROM code, which generates a verilog array select values
54
BOOTROM_FILE=bootrom.v
55
BOOTROM_SW_DIR=$(BOARD_SW_DIR)/bootrom
56
BOOTROM_SRC=$(shell ls $(BOOTROM_SW_DIR)/* | grep -v $(BOOTROM_FILE))
57
BOOTROM_VERILOG=$(BOOTROM_SW_DIR)/$(BOOTROM_FILE)
58
 
59
bootrom: $(BOOTROM_VERILOG)
60
 
61
$(BOOTROM_VERILOG): $(BOOTROM_SRC)
62
        $(Q)echo; echo "\t### Generating bootup ROM ###"; echo
63
        $(Q)$(MAKE) -C $(BOOTROM_SW_DIR) $(BOOTROM_FILE)
64
 
65
clean-bootrom:
66
        $(Q)echo; echo "\t### Cleaning bootup ROM ###"; echo
67
        $(Q)$(MAKE) -C $(BOOTROM_SW_DIR) clean
68
 
69
include $(PROJECT_ROOT)/scripts/make/Makefile-board-rtlmodules.inc
70
 
71
# "Backend" source file stuff (PLL, RAM macro models.)
72
BOARD_BACKEND_VERILOG_SRC=$(shell ls $(BOARD_BACKEND_VERILOG_DIR)/*.v )
73
 
74
# Backend tool path
75
 
76
# BACKEND_TECHNOLOGY_VERILOG_SRC should be set if we need to compile specific
77
# libraries, as in the Actel and Altera case, and left empty for Xilinx who
78
# allow us to simply pass the path with the -y option because they have each
79
# bit of the tech library in individual files, and in which case this variable
80
# should be left unset.
81
 
82
# Keep this variable empty
83
BACKEND_TECHNOLOGY_VERILOG_SRC=

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.