-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile~
75 lines (59 loc) · 2.68 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
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
# Makefile for hardware implementation on Xilinx FPGAs and ASICs
# Author: Andreas Ehliar <[email protected]>
#
# T is the testbench file for this project
# S is the synthesizable sources for this project
# U is the UCF file
# PART is the part
# Important makefile targets:
# make lab.sim GUI simulation
# make lab.simc batch simulation
# make lab.synth Synthesize
# make lab.route Route the design
# make lab.bitgen Generate bit file
# make lab.timing Generate timing report
# make lab.clean Use whenever you change settings in the Makefile!
# make lab.prog Downloads the bitfile to the FPGA. NOTE: Does not
# rebuild bitfile if source files have changed!
# make clean Removes all generated files for all projects. Also
# backup files (*~) are removed.
#
# VIKTIG NOTERING: Om du ändrar vilka filer som finns med i projektet så måste du köra
# make lab.clean
#
# Syntesrapporten ligger i lab-synthdir/xst/synth/design.syr
# Maprapporten (bra att kolla i för arearapportens skull) ligger i lab-synthdir/layoutdefault/design_map.mrp
# Timingrapporten (skapas av make lab.timing) ligger i lab-synthdir/layoutdefault/design.trw
# (Or proj2.simc, proj2.sim, etc, depending on the name of the
# project)
XILINX_INIT = source /sw/xilinx/ise_14.2i/ISE_DS/settings64.sh;
PART=xc6slx16-3-csg324
#riktigt : lab.%: S=snake.vhd GPU/GPU.vhd GMEM/GMEM.vhd CPU/CPU.vhd UART/UART.vhd Common/shiftregister.vhd
#GPU-test:
lab.%: S=snake.vhd GPU/GPU.vhd GMEM/GMEM.vhd CPU/cpu.vhd CPU/alu.vhd CPU/asr.vhd CPU/grx.vhd CPU/ir.vhd CPU/kr2.vhd CPU/pm.vhd CPU/pm.vhd CPU/kr1.vhd CPU/pc.vhd CPU/upc.vhd leddriver.vhd SPI/spi.vhd SPI/spimaster.vhd UART/UART.vhd Common/shiftregister.vhd Common/register.vhd Buss/buss.vhd CPU/grx_types.vhd Debugger/debugger.vhd Debugger/debugpak.vhd UART_tb.vhd
lab.%: T=UART/UART_tb.vhd
lab.%: U=lab.ucf
#SPI-test:
#spitest.%: S=SPI/spi.vhd
#spitest.%: T=SPI_tb.vhd
#spitest.%: U=lab_spi.ucf
# Det här är ett exempel på hur man kan skriva en testbänk som är
# relevant, även om man kör en simulering i batchläge (make batchlab.simc)
batchlab.%: S=lab.vhd leddriver.vhd
batchlab.%: T=batchlab_tb.vhd tb_print7seg.vhd
batchlab.%: U=lab.ucf
# Misc functions that are good to have
include build/util.mk
# Setup simulation environment
include build/vsim.mk
# Setup synthesis environment
include build/xst.mk
# Setup backend flow environment
include build/xilinx-par.mk
# Setup tools for programming the FPGA
include build/digilentprog.mk
# Alternative synthesis methods
# The following is for ASIC synthesis
#include design_compiler.mk
# The following is for synthesis to a Xilinx target using Precision.
#include precision-xilinx.mk