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

Subversion Repositories igor

[/] [igor/] [trunk/] [processor/] [pl/] [Makefile] - Blame information for rev 4

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 4 atypic
###############################################################################
2
# Requires: GNU make and basic GNU utilities
3
#           Xilinx ISE
4
#
5
# Asbjørn Djupdal 2003, 2008
6
###############################################################################
7
 
8
# IMPORTANT: ucf-file must be named $(PROJECT_NAME).ucf
9
 
10
###############################################################################
11
# the following variables must be set according to your project
12
###############################################################################
13
 
14
ISE_DIR = /opt/Xilinx/11.1/ISE/bin/lin
15
 
16
# select a name for your project (used as basename for most generated files)
17
PROJECT_NAME = leval2
18
 
19
# list VHDL sourcefiles (separated with spaces) in correct synthesis order
20
#SOURCE_FILES = package.vhd bidirbus.vhd synchronizer.vhd alu.vhd addr_decoder.vhd cache.vhdl control.vhd inst_mem.vhd preload_dualport_mem.vhd singleport_mem.vhd if.vhd id.vhd ex.vhd mem.vhd whisk.vhd
21
 
22
SOURCE_FILES = pipelineregs.vhd leval2_constants.vhd forward.vhd hazard.vhd rrwmem.vhd rwmem.vhd alu.vhd control.vhd addr_decoder.vhd bidirbus.vhd toplevel.vhd leval2.vhd
23
 
24
# name of top level entity
25
TOP_LEVEL = toplevel
26
 
27
# target device
28
DEVICE = XC3S500E-5-pq208
29
 
30
# synthesis (xst) options
31
SYNTH_OPTS = -opt_mode Speed -opt_level 1 -register_duplication no \
32
        -hierarchy_separator / -keep_hierarchy yes -uc toplevel.xcf
33
 
34
# options for bitfile generation
35
BITGEN_OPTS = -g DriveDone:No -g StartUpClk:JTAGCLK \
36
                -g DONE_cycle:4 -g GTS_cycle:5 -g DonePipe:No \
37
                -g GWE_cycle:6 -g LCK_cycle:NoWait -g Security:NONE
38
 
39
###############################################################################
40
# rules, no need to change anything below this line
41
###############################################################################
42
 
43
# default rule: create both bitfile and files for timing simulation
44
.PHONY : default
45
default : $(PROJECT_NAME).bit time_sim.vhd
46
 
47
# create temporary project and script files for XST
48
$(PROJECT_NAME).xst : $(SOURCE_FILES)
49
        exec /opt/Xilinx/11.1/ISE/settings32.sh
50
        echo $(SOURCE_FILES) | xargs -n 1 > $(PROJECT_NAME).prj
51
        echo -n "run -ifn $(PROJECT_NAME).prj -ofn $(PROJECT_NAME).ngc " > $@
52
        echo -n "-ofmt NGC -p $(DEVICE) -top $(TOP_LEVEL) -ifmt VHDL " >> $@
53
        echo "$(SYNTH_OPTS)" >> $@
54
 
55
# synthesis with XST
56
$(PROJECT_NAME).ngc : $(PROJECT_NAME).xst
57
        $(ISE_DIR)/xst -ifn $<
58
 
59
# implementation
60
$(PROJECT_NAME).ncd : $(PROJECT_NAME).ngc
61
        $(ISE_DIR)/xflow -p $(DEVICE) -implement high_effort.opt $<
62
 
63
# bitfile generation
64
$(PROJECT_NAME).bit : $(PROJECT_NAME).ncd $(PROJECT_NAME).pcf
65
        $(ISE_DIR)/bitgen -l -w -m -intstyle xflow $(BITGEN_OPTS) $<
66
 
67
# generate files for timing simulation
68
time_sim.vhd : $(PROJECT_NAME).ncd $(PROJECT_NAME).pcf
69
        $(ISE_DIR)/xflow -p $(DEVICE) -tsim modelsim_vhdl.opt $<
70
 
71
.PHONY : clean
72
clean :
73
        rm -rf *.opt *.flw *.bgn *.bit *.bld *.drc *.ll *.msk *.ncd *.ngc \
74
                *.ngd *.pad *.par *.pcf *.prj *.rbt *.twr *.twx *.xpi *_map* \
75
                *_pad* *_timing* *_xst* *.lst *.nlf *.sdf xflow* xst *.xst \
76
                *.srp .prj .srp .xst
77
 

powered by: WebSVN 2.1.0

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