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

Subversion Repositories System09

[/] [System09/] [trunk/] [rtl/] [System09_Digilent_Atlys/] [Makefile] - Blame information for rev 161

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

Line No. Rev Author Line
1 141 davidgb
#===================================================================
2
# File:        Makefile
3
# Author:      David Burnette
4
# Created:     July 5, 2007
5
#
6
# Description:
7
#  Makefile to build the System09 by John Kent
8
#
9
#  This makefile will build John Kent's entire System09 project
10
#  (RTL synthesis and monitor ROMs) and even download the final
11
#  bitstream to the prototype board.
12
#
13
#  You can use Xilinx ISE interactively to add new RTL source files
14
#  to this project.
15
#
16
# Usage:
17
#  Use 'make help' to get a list of options.
18
#
19
# Dependencies:
20
#  Depends on makefile fragments in the 'MKFRAGS' directory.
21
#
22
# Revision History:
23
#   dgb  2007-07-05  Original version
24
#
25
#   dgb  2008-04-07  Split out files into fragments. Modified
26
#                    ROM source generation to be per src directory.
27
#
28
#===================================================================
29
 
30
MKFRAGS := ../../mkfiles
31
export MKFRAGS
32
 
33
BRAM_TYPE := b16
34
export BRAM_TYPE
35
 
36
#===================================================================
37
# User-modifiable variables
38
#
39
# This name must match the name of the design in Xilinx ISE (case
40
# sensitive).
41
DESIGN_NAME := system09
42
#
43
# Constraint file (unfortunately it cannot be extracted from ISE)
44
UCF_FILE    := system09.ucf
45
#
46
# Technology family (unfortunately it cannot be extracted from ISE)
47 148 davidgb
FAMILY      := spartan6
48 141 davidgb
 
49 148 davidgb
 
50
 
51
 
52 141 davidgb
# List of ROM VHDL files
53
.PHONY: roms
54
roms:
55
        @$(MAKE) -C ../../Tools/as09
56
        @$(MAKE) -C ../../Tools/s19tovhd
57
        @$(MAKE) -C ../../src/sys09bug sys09swt.vhd
58 148 davidgb
        @$(MAKE) -C ../../src/Flex9 flex9ram.vhd
59 141 davidgb
 
60
#===================================================================
61
# You should not need to edit anything below this line
62
 
63
# XESS Tools
64
ifeq "$(findstring CYGWIN_NT,$(shell uname -s))" "CYGWIN_NT"
65
XESSPATH := $(shell cygpath "$(XSTOOLS_BIN_DIR)")
66
else
67
XESSPATH := $(XSTOOLS_BIN_DIR)
68
endif
69
XSLOAD     := "$(XESSPATH)/xsload.exe"
70
 
71
include ../../mkfiles/xilinx_rules.mk
72
 
73
#===================================================================
74
# TARGETS
75
 
76
.PHONY: all
77
all: bit
78
 
79
.PHONY: bit
80
bit: roms $(DESIGN_NAME).bit
81
 
82
.PHONY: impact
83
impact: roms bit do_impact
84
 
85
prom: roms $(DESIGN_NAME).mcs
86
 
87 159 davidgb
.PHONY: impact
88 161 davidgb
impact: $(DESIGN_NAME).bit $(DESIGN_NAME)_impact.cmd
89
        @$(ECHO)
90
        @$(ECHO) "======= Downloading bitstream using Impact ============"
91
        $(IMPACT) -batch $(DESIGN_NAME)_impact.cmd
92 141 davidgb
 
93
.PHONY: help
94
help:
95
        @$(ECHO) "Use this Makefile to regenerate the entire System09 bitstream"
96
        @$(ECHO) "after modifying any of the source RTL or 6809 assembler code."
97
        @$(ECHO) ""
98
        @$(ECHO) "This makefile uses the following project files from the Xilinx ISE"
99
        @$(ECHO) "   $(XST_FILE)"
100
        @$(ECHO) ""
101
        @$(ECHO) "You use Xilinx ISE interactively to add new RTL source files."
102
        @$(ECHO) ""
103
        @$(ECHO) "            Availiable targets"
104
        @$(ECHO)
105
        @$(ECHO) "  For building all or part of the system:"
106
        @$(ECHO) "    roms      - Run asm09 and then generate the VHDL RTL rom files"
107
        @$(ECHO) "    bit       - Rebuild the entire system and generate the bitstream file"
108
        @$(ECHO) "    all       - Rebuild everything"
109
        @$(ECHO) "    prom      - Rebuild the entire system and generate an MCS prom file"
110
        @$(ECHO) "    exo       - Rebuild the entire system and generate an EXO prom file"
111
        @$(ECHO)
112
        @$(ECHO) "  For downloading the bitstream to the board:"
113
        @$(ECHO) "    impact    - Download the bitstream to the FPGA via iMPACT"
114
        @$(ECHO)
115
        @$(ECHO) "  For project maintenance:"
116
        @$(ECHO) "    help      - Print this help text"
117
        @$(ECHO) "    clean     - Clean up the ISE files"
118
        @$(ECHO) "    cleanall  - Clean up the ISE files and the Tools directories"
119
        @$(ECHO) ""
120
 
121
.PHONY: clean
122
clean:
123
        -$(MAKE) -C ../../src/sys09bug clean
124
        -$(MAKE) -C ../../src/Flex9 clean
125 148 davidgb
        -$(RM) *.cfi *_bitgen.xwbt *.ncd *.ngc *.ngd *.twr *.bit *.mcs *.stx *.ucf.untf *.mrp *.ptwx *_map.map
126 141 davidgb
        -$(RM) *.ncl *.ngm *.prm *_pad.txt *.twx *.log *.syr *.par *.exo *.xpi *.xrpt *.xml
127
        -$(RM) *.cmd_log *.ngr *.bld *_summary.html *.nc1 *.pcf *.bgn tmp.ut
128
        -$(RM) *.pad *.placed_ncd_tracker *.routed_ncd_tracker *_pad.csv *.drc
129
        -$(RM) *.pad_txt $(DESIGN_NAME)_impact.cmd *.unroutes $(DESIGN_NAME)_vhdl.prj
130 161 davidgb
        -$(RM) par_usage_statistics.html $(DESIGN_NAME)_envsettings.html usage_statistics_webtalk.html impact.xsl impact_impact.xwbt
131 152 davidgb
        -$(RMDIR) _ngo _xmsgs xst xlnx_auto_0_xdb xst_tmp_dirs iseconfig
132 141 davidgb
 
133
.PHONY: cleanall
134
cleanall: clean
135
        -$(MAKE) -C ../../Tools/as09 clean
136
        -$(MAKE) -C ../../Tools/s19tovhd clean
137
 

powered by: WebSVN 2.1.0

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