-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile.example
104 lines (81 loc) · 3.53 KB
/
Makefile.example
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# If this file is named ./Makefile.example, move it to ./Makefile and edit it.
default: bitfiles
### Project-specific Makefile
project := exampleproj
top_module := main
vendor := xilinx
### Uncomment this line to use the Xilinx SP605 dev board with default
### configuration
#include ./contrib/sp605/settings.mk
### Uncomment these lines to use the Xula2 dev board with default configuration
### See also ./contrib/xula2/README.xula2
include ./contrib/xula2/settings.mk
extra_includes += ./contrib/xula2/targets.mk
### Edit and uncomment the below lines to use a custom board
#board := exampleboard
#family := spartan6
#device := XC6SLX25
#speedgrade := -2
#device_package := ftg256
#ucf_file := exampleboard.ucf
#bitconf_file := contrib/default.bitconf
#opt_file := contrib/default.opt
### Uncomment this line and create a new makefile to include any
### hardware-specific targets (eg, upload via SPI)
#extra_includes += exampleproj.mk
part := $(device)$(speedgrade)-$(device_package)
### Is this build host 64 or 32 bits?
hostbits := 64
### Point to the Xilinx ISE toolchain directory here
iseenv := /opt/Xilinx/14.3/ISE_DS/
### List all Verilog (.v) files for this project explicitly below.
### Leave blank if you only have VHDL files.
### Use one file per line; do not use wildcards (eg, hdl/*.v).
verilog_files += hdl/$(top_module)_$(board).v
verilog_files += hdl/rot13.v
verilog_files += hdl/simple_uart.v
### List all VHDL (.vhd) files for this project in the top-level namespaces
### below. VHDL files which are in a library-specific namespace need to be
### included via a seperate .prj stub file for now.
### Leave blank if you only have Verilog files.
### Use one file per line; do not use wildcards (eg, hdl/*.v).
vhdl_files +=
extra_prj +=
### List all testbench Verilog (.v) files below.
### See contrib/README.testbenches for details.
### VHDL testbenches are not yet supported.
tbfiles += tb/rot13_tb.v
tbfiles += tb/xula2_tb.v
### List all test/*_tb targets which should be executed by the "make tests"
### target.
alltests := test/rot13_tb
### Verilog parameters can be passed to the top-level module.
### Syntax is: vgenerics += "PARAM_NAME=123"
### For hex numbers: vgenerics += "HEX_PARAM=hAB12"
### Note that the Verilog parameter *must* be defined in the top-level module
### or a build error will result.
vgenerics +=
### Example vgeneric usage which passes the git commit and current unix time as
### parameters.
#gitcommit = $(shell (git log --abbrev=8 --oneline -n 1 2> /dev/null || echo "00000000") | head -c 8)
#build_unixtime = $(shell date +%s || echo "0")
#vgenerics += "GIT_COMMIT=h$(gitcommit)"
#vgenerics += "BUILD_UNIX_TIME=d$(build_unixtime)"
### List all Xilinx Coregen .xco files (eg, "cores/bram.xco") below. Verilog and
### netlist files will be generated and included automatically.
### Not all cores should be included this way; eg, clk_wiz_* (clock mangement
### files) should go in verilog_files instead.
### See ./contrib/HOWTO_coregen for details.
xilinx_cores +=
### Edit this line to change the bitwidth of .mcs bitfiles generated for
### uploading to flash memories
#mcs_datawidth := 8
### BMM files specify the default BRAM FPGA memory contents.
### Edit this line to specify a non-empty file for use with your project.
bmm_file := contrib/empty.bmm
### Extra project-specific arguments to linter
#lint_extra := -Wno-ASSIGNDLY
### Include any last extra board- or project-specific build targets
include $(extra_includes)
### The bulk of the actual Xilinx-oriented build system is in a different file
include ./contrib/xilinx.mk