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 |
|
|
# $Id: xupv2p.ucf,v 1.1 2008-11-07 00:48:12 jwdonal Exp $
|
22 |
|
|
#
|
23 |
|
|
# Description:
|
24 |
|
|
# Mapping and Timing Constraints for XUPV2P Development Board.
|
25 |
|
|
#
|
26 |
|
|
# Structure:
|
27 |
|
|
# - xupv2p.ucf
|
28 |
|
|
# - components.vhd
|
29 |
|
|
# - lq057q3dc02_tb.vhd
|
30 |
|
|
# - lq057q3dc02_top.vhd
|
31 |
|
|
# - dcm_sys_to_lcd.xaw
|
32 |
|
|
# - video_controller.vhd
|
33 |
|
|
# - enab_control.vhd
|
34 |
|
|
# - hsyncx_control.vhd
|
35 |
|
|
# - vsyncx_control.vhd
|
36 |
|
|
# - clk_lcd_cyc_cntr.vhd
|
37 |
|
|
# - image_gen_bram.vhd
|
38 |
|
|
# - image_gen_bram_red.xco
|
39 |
|
|
# - image_gen_bram_green.xco
|
40 |
|
|
# - image_gen_bram_blue.xco
|
41 |
|
|
#
|
42 |
|
|
##############################################################################
|
43 |
|
|
|
44 |
|
|
## Resets and Clocks
|
45 |
|
|
NET "RSTx" LOC = "AH1";
|
46 |
|
|
NET "CLK_100M_PAD" LOC = "AJ15";
|
47 |
|
|
NET "CLK_100M_PAD" PERIOD = 10 ns HIGH 50 %; # 100MHz System Clock
|
48 |
|
|
|
49 |
|
|
########################################
|
50 |
|
|
|
51 |
|
|
## PIN MAPPING FOR CABLE QD7597
|
52 |
|
|
# LCD Control Signals
|
53 |
|
|
NET "CLK_LCD" LOC = "P8";
|
54 |
|
|
NET "CLK_LCD" PERIOD = 160 ns HIGH 50 %; # 6.25MHz LCD Clock
|
55 |
|
|
NET "HSYNCx" LOC = "P7";
|
56 |
|
|
NET "VSYNCx" LOC = "N4";
|
57 |
|
|
NET "ENAB" LOC = "AA1";
|
58 |
|
|
NET "RL" LOC = "AB1";
|
59 |
|
|
NET "UD" LOC = "W5";
|
60 |
|
|
NET "VQ" LOC = "W6";
|
61 |
|
|
|
62 |
|
|
# Color Data Signals
|
63 |
|
|
NET "R<0>" LOC = "N3";
|
64 |
|
|
NET "R<1>" LOC = "P3";
|
65 |
|
|
NET "R<2>" LOC = "P2";
|
66 |
|
|
NET "R<3>" LOC = "R8";
|
67 |
|
|
NET "R<4>" LOC = "R7";
|
68 |
|
|
NET "R<5>" LOC = "P5";
|
69 |
|
|
|
70 |
|
|
NET "G<0>" LOC = "T3";
|
71 |
|
|
NET "G<1>" LOC = "T4";
|
72 |
|
|
NET "G<2>" LOC = "U2";
|
73 |
|
|
NET "G<3>" LOC = "U3";
|
74 |
|
|
NET "G<4>" LOC = "T7";
|
75 |
|
|
NET "G<5>" LOC = "T8";
|
76 |
|
|
|
77 |
|
|
NET "B<0>" LOC = "Y2";
|
78 |
|
|
NET "B<1>" LOC = "AA2";
|
79 |
|
|
NET "B<2>" LOC = "V7";
|
80 |
|
|
NET "B<3>" LOC = "V8";
|
81 |
|
|
NET "B<4>" LOC = "W3";
|
82 |
|
|
NET "B<5>" LOC = "W4";
|
83 |
|
|
|
84 |
|
|
##################################################################
|
85 |
|
|
|
86 |
|
|
### PIN MAPPING FOR LOGIC ANALYZER (same mappings as for cable QD7598 (below) but with a few uneeded outputs removed)
|
87 |
|
|
## Logic Analyzer external clock
|
88 |
|
|
#NET "CLK_25M_LA" LOC = "L5"; # EXP_IO_10 (Logic Analyzer Clock)
|
89 |
|
|
#
|
90 |
|
|
## LCD Control Signals
|
91 |
|
|
#NET "CLK_LCD_LA" LOC = "T6";
|
92 |
|
|
#NET "HSYNCx_LA" LOC = "T5";
|
93 |
|
|
#NET "VSYNCx_LA" LOC = "V1";
|
94 |
|
|
#NET "ENAB_LA" LOC = "AA4";
|
95 |
|
|
#
|
96 |
|
|
## Color Data Signals
|
97 |
|
|
#NET "R_LA<0>" LOC = "U1"; # EXP_IO_36
|
98 |
|
|
#NET "R_LA<1>" LOC = "R3"; # EXP_IO_35
|
99 |
|
|
#NET "R_LA<2>" LOC = "R4"; # EXP_IO_34
|
100 |
|
|
#NET "R_LA<3>" LOC = "R5"; # EXP_IO_33
|
101 |
|
|
#NET "R_LA<4>" LOC = "R6"; # EXP_IO_32
|
102 |
|
|
#NET "R_LA<5>" LOC = "T2"; # EXP_IO_31
|
103 |
|
|
#
|
104 |
|
|
## VSYNCx Controller Signals
|
105 |
|
|
#NET "NUM_LINES<0>" LOC = "K2"; #EXP_IO_0
|
106 |
|
|
#NET "NUM_LINES<1>" LOC = "L2"; #EXP_IO_1
|
107 |
|
|
#NET "NUM_LINES<2>" LOC = "N8"; #EXP_IO_2
|
108 |
|
|
#NET "NUM_LINES<3>" LOC = "N7"; #EXP_IO_3
|
109 |
|
|
#NET "NUM_LINES<4>" LOC = "K4"; #EXP_IO_4
|
110 |
|
|
#NET "NUM_LINES<5>" LOC = "K3"; #EXP_IO_5
|
111 |
|
|
#NET "NUM_LINES<6>" LOC = "L1"; #EXP_IO_6
|
112 |
|
|
#NET "NUM_LINES<7>" LOC = "M1"; #EXP_IO_7
|
113 |
|
|
#
|
114 |
|
|
#NET "HSYNCx_CNTR_STS_TOP<0>" LOC = "N6"; #EXP_IO_8
|
115 |
|
|
#NET "HSYNCx_CNTR_STS_TOP<1>" LOC = "N5"; #EXP_IO_9
|
116 |
|
|
|
117 |
|
|
##################################################################
|
118 |
|
|
|
119 |
|
|
### PIN MAPPING FOR CABLE QD7598
|
120 |
|
|
## LCD Control Signals
|
121 |
|
|
#NET "CLK_LCD" LOC = "T6";
|
122 |
|
|
#NET "CLK_LCD" PERIOD = 160 ns HIGH 50 %; # 6.25MHz LCD Clock
|
123 |
|
|
#NET "HSYNCx" LOC = "T5";
|
124 |
|
|
#NET "VSYNCx" LOC = "V1";
|
125 |
|
|
#NET "ENAB" LOC = "AA4";
|
126 |
|
|
#NET "RL" LOC = "AA3";
|
127 |
|
|
#NET "UD" LOC = "Y5";
|
128 |
|
|
#NET "VQ" LOC = "Y4";
|
129 |
|
|
#
|
130 |
|
|
## Color Data Signals
|
131 |
|
|
#NET "R<0>" LOC = "U1";
|
132 |
|
|
#NET "R<1>" LOC = "R3";
|
133 |
|
|
#NET "R<2>" LOC = "R4";
|
134 |
|
|
#NET "R<3>" LOC = "R5";
|
135 |
|
|
#NET "R<4>" LOC = "R6";
|
136 |
|
|
#NET "R<5>" LOC = "T2";
|
137 |
|
|
#
|
138 |
|
|
#NET "G<0>" LOC = "V6";
|
139 |
|
|
#NET "G<1>" LOC = "V5";
|
140 |
|
|
#NET "G<2>" LOC = "U8";
|
141 |
|
|
#NET "G<3>" LOC = "U7";
|
142 |
|
|
#NET "G<4>" LOC = "Y1";
|
143 |
|
|
#NET "G<5>" LOC = "W1";
|
144 |
|
|
#
|
145 |
|
|
#NET "B<0>" LOC = "AC2";
|
146 |
|
|
#NET "B<1>" LOC = "AB2";
|
147 |
|
|
#NET "B<2>" LOC = "AB4";
|
148 |
|
|
#NET "B<3>" LOC = "AB3";
|
149 |
|
|
#NET "B<4>" LOC = "W8";
|
150 |
|
|
#NET "B<5>" LOC = "W7";
|