1 |
30 |
jwdonal |
##############################################################################
|
2 |
|
|
# Copyright (C) 2007 Jonathon W. Donaldson
|
3 |
|
|
# jwdonal a t opencores DOT org
|
4 |
|
|
#
|
5 |
|
|
# This program is free software; you can redistribute it and/or modify
|
6 |
|
|
# it under the terms of the GNU General Public License as published by
|
7 |
|
|
# the Free Software Foundation; either version 2 of the License, or
|
8 |
|
|
# (at your option) any later version.
|
9 |
|
|
#
|
10 |
|
|
# This program is distributed in the hope that it will be useful,
|
11 |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12 |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13 |
|
|
# GNU General Public License for more details.
|
14 |
|
|
#
|
15 |
|
|
# You should have received a copy of the GNU General Public License
|
16 |
|
|
# along with this program; if not, write to the Free Software
|
17 |
|
|
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
18 |
|
|
#
|
19 |
|
|
##############################################################################
|
20 |
|
|
#
|
21 |
42 |
jwdonal |
# $Id: lq057q3dc02.tcl,v 1.2 2008-11-07 05:38:36 jwdonal Exp $
|
22 |
30 |
jwdonal |
#
|
23 |
|
|
# Description:
|
24 |
42 |
jwdonal |
# Tcl script to run in the Xilinx Tcl shell or the ISE Tcl Console. This
|
25 |
|
|
# method is DEPRECATED. Simply use the batch scripts found in the
|
26 |
|
|
# 'implement' directory for project management. The GUI is nothing but
|
27 |
|
|
# a memory hog - real men use scripts and plain text editors!!!
|
28 |
30 |
jwdonal |
#
|
29 |
|
|
# Structure:
|
30 |
|
|
# - xupv2p.ucf
|
31 |
|
|
# - components.vhd
|
32 |
|
|
# - lq057q3dc02_tb.vhd
|
33 |
|
|
# - lq057q3dc02.vhd
|
34 |
|
|
# - dcm_sys_to_lcd.xaw
|
35 |
|
|
# - video_controller.vhd
|
36 |
|
|
# - enab_control.vhd
|
37 |
|
|
# - hsyncx_control.vhd
|
38 |
|
|
# - vsyncx_control.vhd
|
39 |
|
|
# - clk_lcd_cyc_cntr.vhd
|
40 |
|
|
# - image_gen_bram.vhd
|
41 |
|
|
# - image_gen_bram_red.xco
|
42 |
|
|
# - image_gen_bram_green.xco
|
43 |
|
|
# - image_gen_bram_blue.xco
|
44 |
|
|
#
|
45 |
|
|
##############################################################################
|
46 |
|
|
|
47 |
|
|
# To run this script, `cd' to the directory containg this file
|
48 |
|
|
# using the Tcl shell/console. Type "source <filename>" at Tcl prompt.
|
49 |
|
|
# This script is compatible with ISE 9.1.03i
|
50 |
|
|
|
51 |
|
|
#Go to project directory
|
52 |
|
|
cd ../ise_files
|
53 |
|
|
|
54 |
|
|
# set up the project
|
55 |
|
|
project new lq057q3dc02.ise
|
56 |
|
|
project set family Virtex2P
|
57 |
|
|
project set device XC2VP30
|
58 |
|
|
project set package FF896
|
59 |
|
|
project set speed -7
|
60 |
|
|
project set synthesis_tool "XST (VHDL/Verilog)"
|
61 |
|
|
project set generated_simulation_language "ModelSim-SE Mixed"
|
62 |
|
|
|
63 |
|
|
# Go back to user source directory
|
64 |
|
|
cd ../src
|
65 |
|
|
|
66 |
|
|
# Add source files
|
67 |
|
|
xfile add *.vhd *.ucf *.xco *.xaw
|
68 |
|
|
|
69 |
|
|
# Set Generate Programming File properties
|
70 |
|
|
project set "Unused IOB Pins" "Pull Up"
|
71 |
|
|
project set "FPGA Start-Up Clock" "JTAG Clock"
|
72 |
|
|
project set "Done (Output Events)" 6
|
73 |
|
|
project set "Enable Outputs (Output Events)" 3
|
74 |
|
|
project set "Release Write Enable (Output Events)" 5
|
75 |
|
|
project set "Release DLL (Output Events)" 4
|