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

Subversion Repositories xulalx25soc

[/] [xulalx25soc/] [trunk/] [Makefile] - Blame information for rev 18

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

Line No. Rev Author Line
1 18 dgisselq
################################################################################
2
##
3
## Filename:
4
##
5
## Project:     XuLA2 board
6
##
7
## Purpose:
8
##
9
##
10
## Creator:     Dan Gisselquist, Ph.D.
11
##              Gisselquist Technology, LLC
12
##
13
################################################################################
14
##
15
## Copyright (C) 2015, Gisselquist Technology, LLC
16
##
17
## This program is free software (firmware): you can redistribute it and/or
18
## modify it under the terms of  the GNU General Public License as published
19
## by the Free Software Foundation, either version 3 of the License, or (at
20
## your option) any later version.
21
##
22
## This program is distributed in the hope that it will be useful, but WITHOUT
23
## ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY or
24
## FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
25
## for more details.
26
##
27
## License:     GPL, v3, as defined and found on www.gnu.org,
28
##              http:##www.gnu.org/licenses/gpl.html
29
##
30
##
31
################################################################################
32
##
33
##
34 6 dgisselq
.PHONY: all
35
all:    datestamp verilated bit
36
# Could also depend upon load, if desired, but not necessary
37
BENCH := `find bench -name Makefile` `find bench -name "*.cpp"` `find bench -name "*.h"`
38
RTL   := `find rtl -name "*.v"` `find rtl -name Makefile`
39
NOTES := `find . -name "*.txt"` `find . -name "*.html"`
40
SW    := `find sw -name "*.cpp"` `find sw -name "*.h"`  \
41
        `find sw -name "*.sh"` `find sw -name "*.py"`   \
42
        `find sw -name "*.pl"` `find sw -name Makefile`
43
PROJ  := xilinx/xula.prj xilinx/xula.xise xilinx/xula.xst       \
44
        xilinx/xula.ut xilinx/Makefile
45
BIN  := `find xilinx -name "*.bit"`
46
CONSTRAINTS := xula.ucf
47
YYMMDD:=`date +%Y%m%d`
48
 
49
datestamp:      $(YYMMDD)-build.v
50
$(YYMMDD)-build.v:
51
        -rm -rf 2*-build.v
52
        perl xilinx/mkdatev.pl > $(YYMMDD)-build.v
53
        cd rtl; ln -fs ../$(YYMMDD)-build.v builddate.v
54
 
55
.PHONY: archive
56
archive:
57
        tar --transform s,^,$(YYMMDD)-xula/, -chjf $(YYMMDD)-xula.tjz $(BENCH) $(SW) $(RTL) $(NOTES) $(PROJ) $(BIN) $(CONSTRAINTS)
58
 
59
.PHONY: tare
60
tare:
61
        echo tar --transform s,^,$(YYMMDD)-xula/, -chjf $(YYMMDD)-xula.tjz $(BENCH) $(SW) $(RTL) $(NOTES) $(PROJ) $(BIN) $(CONSTRAINTS)
62
 
63
.PHONY: verilated
64
verilated:
65
        cd rtl ; make
66
 
67
.PHONY: bit
68
bit:
69
        cd xilinx ; make xula.bit
70
 
71
.PHONY: load
72
load:   bit
73
        xsload -b xula2-lx25 --fpga xilinx/xula.bit
74
 
75
.PHONY: xload
76
xload:
77
        xsload -b xula2-lx25 --fpga xilinx/toplevel.bit
78
 
79
.PHONY: timing
80
timing:
81
        cd xilinx ; make timing
82
 
83
 

powered by: WebSVN 2.1.0

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