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

Subversion Repositories System09

[/] [System09/] [trunk/] [rtl/] [System09_Xilinx_ML506/] [Makefile] - Blame information for rev 138

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

Line No. Rev Author Line
1 59 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 121 davidgb
BRAM_TYPE := b16
34
export BRAM_TYPE
35
 
36 59 davidgb
#===================================================================
37
# User-modifiable variables
38
#
39
# This name must match the name of the design in Xilinx ISE (case
40
# sensitive).
41 121 davidgb
DESIGN_NAME := system09
42 59 davidgb
#
43
# Constraint file (unfortunately it cannot be extracted from ISE)
44 121 davidgb
UCF_FILE    := ml506.ucf
45 59 davidgb
#
46
# Technology family (unfortunately it cannot be extracted from ISE)
47
FAMILY      := virtex5
48
 
49
# List of ROM VHDL files
50 121 davidgb
.PHONY: roms
51 59 davidgb
roms:
52 121 davidgb
        @$(MAKE) -C ../../Tools/as09
53
        @$(MAKE) -C ../../Tools/s19tovhd
54 59 davidgb
        @$(MAKE) -C ../../src/sys09bug sys09s3s.vhd
55
        @$(MAKE) -C ../../src/Flex9 flex9ram.vhd
56
 
57
#===================================================================
58
# You should not need to edit anything below this line
59
 
60
# XESS Tools
61 121 davidgb
ifeq "$(findstring CYGWIN_NT,$(shell uname -s))" "CYGWIN_NT"
62
XESSPATH := $(shell cygpath "$(XSTOOLS_BIN_DIR)")
63
else
64
XESSPATH := $(XSTOOLS_BIN_DIR)
65
endif
66
XSLOAD     := "$(XESSPATH)/xsload.exe"
67 59 davidgb
 
68
include ../../mkfiles/xilinx_rules.mk
69
 
70
#===================================================================
71
# TARGETS
72
 
73 121 davidgb
.PHONY: all
74
all: bit
75 59 davidgb
 
76 121 davidgb
.PHONE: tcl
77
tcl: roms $(DESIGN_NAME).tcl
78
        @$(ECHO) "Regenerating $(DESIGN_NAME).xst and $(DESIGN_NAME).prj from $(DESIGN_NAME).tcl"
79
        $(XILINX_NORMAL)/bin/$(XILINX_PLAT)/xtclsh system09.tcl rebuild_project
80 59 davidgb
 
81 121 davidgb
.PHONY: bit
82 59 davidgb
bit: roms $(DESIGN_NAME).bit
83
 
84 121 davidgb
.PHONY: impact
85
impact: roms bit do_impact
86 59 davidgb
 
87 121 davidgb
prom: roms $(DESIGN_NAME).mcs
88 59 davidgb
 
89
.PHONY: help
90
help:
91
        @$(ECHO) "Use this Makefile to regenerate the entire System09 bitstream"
92
        @$(ECHO) "after modifying any of the source RTL or 6809 assembler code."
93
        @$(ECHO) ""
94
        @$(ECHO) "This makefile uses the following project files from the Xilinx ISE"
95
        @$(ECHO) "   $(XST_FILE)"
96
        @$(ECHO) ""
97
        @$(ECHO) "You use Xilinx ISE interactively to add new RTL source files."
98
        @$(ECHO) ""
99
        @$(ECHO) "            Availiable targets"
100
        @$(ECHO)
101
        @$(ECHO) "  For building all or part of the system:"
102
        @$(ECHO) "    roms      - Run asm09 and then generate the VHDL RTL rom files"
103
        @$(ECHO) "    bit       - Rebuild the entire system and generate the bitstream file"
104
        @$(ECHO) "    all       - Rebuild everything"
105
        @$(ECHO) "    prom      - Rebuild the entire system and generate an MCS prom file"
106
        @$(ECHO) "    exo       - Rebuild the entire system and generate an EXO prom file"
107
        @$(ECHO)
108
        @$(ECHO) "  For downloading the bitstream to the board:"
109
        @$(ECHO) "    xsload    - Download the bitstream to the FPGA via XSLOAD"
110
        @$(ECHO) "    usbxsload - Download the bitstream to the FPGA via XSLOAD"
111
        @$(ECHO) "    impact    - Download the bitstream to the FPGA via iMPACT"
112
        @$(ECHO)
113
        @$(ECHO) "  For project maintenance:"
114
        @$(ECHO) "    help      - Print this help text"
115
        @$(ECHO) "    clean     - Clean up the ISE files"
116
        @$(ECHO) ""
117
 
118
.PHONY: clean
119
clean:
120
        -$(MAKE) -C ../../src/sys09bug clean
121
        -$(MAKE) -C ../../src/Flex9 clean
122 121 davidgb
        -$(RM) *.ncd *.ngc *.ngd *.twr *.bit *.mcs *.stx *.ucf.untf *.mrp *.ptwx *_map.map
123
        -$(RM) *.ncl *.ngm *.prm *_pad.txt *.twx *.log *.syr *.par *.exo *.xpi *.xrpt *.xml
124
        -$(RM) *.cmd_log *.ngr *.bld *_summary.html *.nc1 *.pcf *.bgn tmp.ut
125 59 davidgb
        -$(RM) *.pad *.placed_ncd_tracker *.routed_ncd_tracker *_pad.csv *.drc
126 121 davidgb
        -$(RM) *.pad_txt $(DESIGN_NAME)_impact.cmd *.unroutes $(DESIGN_NAME)_vhdl.prj
127
        -$(RMDIR) _ngo _xmsgs xst xlnx_auto_0_xdb xst_tmp_dirs
128 59 davidgb
 
129 121 davidgb
.PHONY: cleanall
130
cleanall: clean
131
        -$(MAKE) -C ../../Tools/as09 clean
132
        -$(MAKE) -C ../../Tools/s19tovhd clean
133
 
134
debug_vars:
135
        @$(ECHO) "XST_FILE    = '$(XST_FILE)'"
136
        @$(ECHO) "PRJ_FILE    = '$(PRJ_FILE)'"
137
        @$(ECHO) "HDL_FILES   = '$(HDL_FILES)'"
138
        @$(ECHO) "PART        = '$(PART)'"
139
        @$(ECHO) "DEVICE      = '$(DEVICE)'"
140
        @$(ECHO) "SPEED       = '$(SPEED)'"
141
        @$(ECHO) "PACKAGE     = '$(PACKAGE)'"
142
        @$(ECHO) "UCF_FILE    = '$(UCF_FILE)'"
143
        @$(ECHO) "BSD_FILE    = '$(BSD_FILE)'"
144
        @$(ECHO) "XSTHDPDIR    = '$(XSTHDPDIR)'"
145
        @$(ECHO) "TMPDIR    = '$(TMPDIR)'"

powered by: WebSVN 2.1.0

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