-
Notifications
You must be signed in to change notification settings - Fork 23
/
mv_ecp.lpf
149 lines (132 loc) · 4.49 KB
/
mv_ecp.lpf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
# 16MHz clock
LOCATE COMP "clk" SITE "A7";
IOBUF PORT "clk" IO_TYPE=LVCMOS33;
# raspi pins
LOCATE COMP "gp6" SITE "T6";
LOCATE COMP "gp12" SITE "R5";
LOCATE COMP "gp13" SITE "T4";
LOCATE COMP "gp14" SITE "T15";
LOCATE COMP "gp15" SITE "T14";
LOCATE COMP "gp16" SITE "R4";
LOCATE COMP "ce1" SITE "T13";
# board pins
LOCATE COMP "button1" SITE "R2";
LOCATE COMP "button2" SITE "T2";
LOCATE COMP "led1" SITE "R3";
LOCATE COMP "led2" SITE "T3";
# spi
#the spi clock pin on N9 is not available in the lpf file, have to use the USRMCLK primitive in the verilog
LOCATE COMP "spi_sdio[3]" SITE "N7";
LOCATE COMP "spi_sdio[2]" SITE "M7";
LOCATE COMP "spi_sdio[0]" SITE "T7";
LOCATE COMP "spi_sdio[1]" SITE "T8";
LOCATE COMP "spi_cs" SITE "N8";
# prog
LOCATE COMP "cdone" SITE "P9";
# jtag
LOCATE COMP "jtag_tck" SITE "T10";
LOCATE COMP "jtag_tdi" SITE "R11";
LOCATE COMP "jtag_tdo" SITE "M10";
LOCATE COMP "jtag_tms" SITE "T11";
# pmod1
LOCATE COMP "pmod1[0]" SITE "A8";
LOCATE COMP "pmod1[1]" SITE "A10";
LOCATE COMP "pmod1[2]" SITE "A12";
LOCATE COMP "pmod1[3]" SITE "A14";
LOCATE COMP "pmod1[4]" SITE "A9";
LOCATE COMP "pmod1[5]" SITE "A11";
LOCATE COMP "pmod1[6]" SITE "A13";
LOCATE COMP "pmod1[7]" SITE "A15";
IOBUF PORT "pmod1[0]" IO_TYPE=LVCMOS33;
IOBUF PORT "pmod1[1]" IO_TYPE=LVCMOS33;
IOBUF PORT "pmod1[2]" IO_TYPE=LVCMOS33;
IOBUF PORT "pmod1[3]" IO_TYPE=LVCMOS33;
IOBUF PORT "pmod1[4]" IO_TYPE=LVCMOS33;
IOBUF PORT "pmod1[5]" IO_TYPE=LVCMOS33;
IOBUF PORT "pmod1[6]" IO_TYPE=LVCMOS33;
IOBUF PORT "pmod1[7]" IO_TYPE=LVCMOS33;
# pmod2
LOCATE COMP "pmod2[0]" SITE "A2";
LOCATE COMP "pmod2[1]" SITE "B4";
LOCATE COMP "pmod2[2]" SITE "B5";
LOCATE COMP "pmod2[3]" SITE "B6";
LOCATE COMP "pmod2[4]" SITE "A3";
LOCATE COMP "pmod2[5]" SITE "A4";
LOCATE COMP "pmod2[6]" SITE "A5";
LOCATE COMP "pmod2[7]" SITE "A6";
IOBUF PORT "pmod2[0]" IO_TYPE=LVCMOS33;
IOBUF PORT "pmod2[1]" IO_TYPE=LVCMOS33;
IOBUF PORT "pmod2[2]" IO_TYPE=LVCMOS33;
IOBUF PORT "pmod2[3]" IO_TYPE=LVCMOS33;
IOBUF PORT "pmod2[4]" IO_TYPE=LVCMOS33;
IOBUF PORT "pmod2[5]" IO_TYPE=LVCMOS33;
IOBUF PORT "pmod2[6]" IO_TYPE=LVCMOS33;
IOBUF PORT "pmod2[7]" IO_TYPE=LVCMOS33;
# pmod3
LOCATE COMP "pmod3[0]" SITE "R1";
LOCATE COMP "pmod3[1]" SITE "N1";
LOCATE COMP "pmod3[2]" SITE "L2";
LOCATE COMP "pmod3[3]" SITE "K1";
LOCATE COMP "pmod3[4]" SITE "P1";
LOCATE COMP "pmod3[5]" SITE "M1";
LOCATE COMP "pmod3[6]" SITE "L1";
LOCATE COMP "pmod3[7]" SITE "J1";
IOBUF PORT "pmod3[0]" IO_TYPE=LVCMOS33;
IOBUF PORT "pmod3[1]" IO_TYPE=LVCMOS33;
IOBUF PORT "pmod3[2]" IO_TYPE=LVCMOS33;
IOBUF PORT "pmod3[3]" IO_TYPE=LVCMOS33;
IOBUF PORT "pmod3[4]" IO_TYPE=LVCMOS33;
IOBUF PORT "pmod3[5]" IO_TYPE=LVCMOS33;
IOBUF PORT "pmod3[6]" IO_TYPE=LVCMOS33;
IOBUF PORT "pmod3[7]" IO_TYPE=LVCMOS33;
# pmod4
LOCATE COMP "pmod4[0]" SITE "G1";
LOCATE COMP "pmod4[1]" SITE "E1";
LOCATE COMP "pmod4[2]" SITE "D1";
LOCATE COMP "pmod4[3]" SITE "C2";
LOCATE COMP "pmod4[4]" SITE "F1";
LOCATE COMP "pmod4[5]" SITE "E2";
LOCATE COMP "pmod4[6]" SITE "C1";
LOCATE COMP "pmod4[7]" SITE "B1";
IOBUF PORT "pmod4[0]" IO_TYPE=LVCMOS33;
IOBUF PORT "pmod4[1]" IO_TYPE=LVCMOS33;
IOBUF PORT "pmod4[2]" IO_TYPE=LVCMOS33;
IOBUF PORT "pmod4[3]" IO_TYPE=LVCMOS33;
IOBUF PORT "pmod4[4]" IO_TYPE=LVCMOS33;
IOBUF PORT "pmod4[5]" IO_TYPE=LVCMOS33;
IOBUF PORT "pmod4[6]" IO_TYPE=LVCMOS33;
IOBUF PORT "pmod4[7]" IO_TYPE=LVCMOS33;
# pmod5
LOCATE COMP "pmod5[0]" SITE "B16";
LOCATE COMP "pmod5[1]" SITE "C16";
LOCATE COMP "pmod5[2]" SITE "E16";
LOCATE COMP "pmod5[3]" SITE "F16";
LOCATE COMP "pmod5[4]" SITE "C15";
LOCATE COMP "pmod5[5]" SITE "D16";
LOCATE COMP "pmod5[6]" SITE "E15";
LOCATE COMP "pmod5[7]" SITE "G16";
IOBUF PORT "pmod5[0]" IO_TYPE=LVCMOS33;
IOBUF PORT "pmod5[1]" IO_TYPE=LVCMOS33;
IOBUF PORT "pmod5[2]" IO_TYPE=LVCMOS33;
IOBUF PORT "pmod5[3]" IO_TYPE=LVCMOS33;
IOBUF PORT "pmod5[4]" IO_TYPE=LVCMOS33;
IOBUF PORT "pmod5[5]" IO_TYPE=LVCMOS33;
IOBUF PORT "pmod5[6]" IO_TYPE=LVCMOS33;
IOBUF PORT "pmod5[7]" IO_TYPE=LVCMOS33;
# pmod6
LOCATE COMP "pmod6[0]" SITE "J16";
LOCATE COMP "pmod6[1]" SITE "L16";
LOCATE COMP "pmod6[2]" SITE "M16";
LOCATE COMP "pmod6[3]" SITE "P16";
LOCATE COMP "pmod6[4]" SITE "K16";
LOCATE COMP "pmod6[5]" SITE "L15";
LOCATE COMP "pmod6[6]" SITE "N16";
LOCATE COMP "pmod6[7]" SITE "R16";
IOBUF PORT "pmod6[0]" IO_TYPE=LVCMOS33;
IOBUF PORT "pmod6[1]" IO_TYPE=LVCMOS33;
IOBUF PORT "pmod6[2]" IO_TYPE=LVCMOS33;
IOBUF PORT "pmod6[3]" IO_TYPE=LVCMOS33;
IOBUF PORT "pmod6[4]" IO_TYPE=LVCMOS33;
IOBUF PORT "pmod6[5]" IO_TYPE=LVCMOS33;
IOBUF PORT "pmod6[6]" IO_TYPE=LVCMOS33;
IOBUF PORT "pmod6[7]" IO_TYPE=LVCMOS33;