-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathulx3s_v20.lpf
554 lines (512 loc) · 27.1 KB
/
ulx3s_v20.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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
#BLOCK RESETPATHS;
#BLOCK ASYNCPATHS;
## ULX3S v2.0 and v2.1
# The clock "usb" and "gpdi" sheet
LOCATE COMP "clk25mhz" SITE "G2";
IOBUF PORT "clk25mhz" PULLMODE=NONE IO_TYPE=LVCMOS33;
FREQUENCY PORT "clk25mhz" 25 MHZ;
# JTAG and SPI FLASH voltage 3.3V and options to boot from SPI flash
# write to FLASH possible any time from JTAG:
#SYSCONFIG CONFIG_IOVOLTAGE=3.3 COMPRESS_CONFIG=ON MCCLK_FREQ=62 MASTER_SPI_PORT=ENABLE SLAVE_SPI_PORT=DISABLE SLAVE_PARALLEL_PORT=DISABLE;
# write to FLASH possible from user bitstream, not possible form JTAG:
# SYSCONFIG CONFIG_IOVOLTAGE=3.3 COMPRESS_CONFIG=ON MCCLK_FREQ=62 MASTER_SPI_PORT=DISABLE SLAVE_SPI_PORT=DISABLE SLAVE_PARALLEL_PORT=DISABLE;
## USBSERIAL FTDI-FPGA serial port "usb" sheet
#LOCATE COMP "ftdi_rxd" SITE "L4"; # FPGA transmits to ftdi
#LOCATE COMP "ftdi_txd" SITE "M1"; # FPGA receives from ftdi
#LOCATE COMP "ftdi_nrts" SITE "M3"; # FPGA receives
#LOCATE COMP "ftdi_ndtr" SITE "N1"; # FPGA receives
#LOCATE COMP "ftdi_txden" SITE "L3"; # FPGA receives
#IOBUF PORT "ftdi_rxd" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "ftdi_txd" PULLMODE=UP IO_TYPE=LVCMOS33;
#IOBUF PORT "ftdi_nrts" PULLMODE=UP IO_TYPE=LVCMOS33;
#IOBUF PORT "ftdi_ndtr" PULLMODE=UP IO_TYPE=LVCMOS33;
#IOBUF PORT "ftdi_txden" PULLMODE=UP IO_TYPE=LVCMOS33;
## LED indicators "blinkey" and "gpio" sheet
LOCATE COMP "led[7]" SITE "H3";
LOCATE COMP "led[6]" SITE "E1";
LOCATE COMP "led[5]" SITE "E2";
LOCATE COMP "led[4]" SITE "D1";
LOCATE COMP "led[3]" SITE "D2";
LOCATE COMP "led[2]" SITE "C1";
LOCATE COMP "led[1]" SITE "C2";
LOCATE COMP "led[0]" SITE "B2";
IOBUF PORT "led[0]" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "led[1]" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "led[2]" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "led[3]" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "led[4]" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "led[5]" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "led[6]" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "led[7]" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;
## Pushbuttons "blinkey", "flash", "power", "gpdi" sheet
#LOCATE COMP "btn[0]" SITE "D6"; # BTN_PWRn (inverted logic)
#LOCATE COMP "btn[1]" SITE "R1"; # FIRE1
LOCATE COMP "rst" SITE "R1"; # FIRE1
#LOCATE COMP "btn[2]" SITE "T1"; # FIRE2
#LOCATE COMP "btn2" SITE "T1"; # FIRE2
#LOCATE COMP "btn[3]" SITE "R18"; # UP W1->R18
LOCATE COMP "btnup_en_motor" SITE "R18"; # UP W1->R18
#LOCATE COMP "btn[4]" SITE "V1"; # DOWN
#LOCATE COMP "btn[5]" SITE "U1"; # LEFT
LOCATE COMP "btnl_proc_ctrl_front" SITE "U1"; # LEFT
#LOCATE COMP "btn[6]" SITE "H16"; # RIGHT Y2->H16
LOCATE COMP "btnr_proc_ctrl_pan" SITE "H16"; # RIGHT Y2->H16
#IOBUF PORT "btn[0]" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "rst" PULLMODE=DOWN IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "btn2" PULLMODE=DOWN IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "btnl_proc_ctrl_front" PULLMODE=DOWN IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "btnr_proc_ctrl_pan" PULLMODE=DOWN IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "btn[3]" PULLMODE=DOWN IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "btn[4]" PULLMODE=DOWN IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "btn[5]" PULLMODE=DOWN IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "btn[6]" PULLMODE=DOWN IO_TYPE=LVCMOS33 DRIVE=4;
## DIP switch "blinkey", "gpio" sheet
#LOCATE COMP "sw[0]" SITE "E8"; # SW1
#LOCATE COMP "sw[1]" SITE "D8"; # SW2
#LOCATE COMP "sw[2]" SITE "D7"; # SW3
#LOCATE COMP "sw[3]" SITE "E7"; # SW4
#IOBUF PORT "sw[0]" PULLMODE=DOWN IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "sw[1]" PULLMODE=DOWN IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "sw[2]" PULLMODE=DOWN IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "sw[3]" PULLMODE=DOWN IO_TYPE=LVCMOS33 DRIVE=4;
## SPI OLED DISPLAY SSD1331 (Color) or SSD1306 (B/W) "blinkey", "usb" sheet
#LOCATE COMP "oled_clk" SITE "P4";
#LOCATE COMP "oled_mosi" SITE "P3";
#LOCATE COMP "oled_dc" SITE "P1";
#LOCATE COMP "oled_resn" SITE "P2";
#LOCATE COMP "oled_csn" SITE "N2";
#IOBUF PORT "oled_clk" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "oled_mosi" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "oled_dc" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "oled_resn" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "oled_csn" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
## SPI Flash chip "flash" sheet
#LOCATE COMP "flash_csn" SITE "R2";
#LOCATE COMP "flash_mosi" SITE "W2";
#LOCATE COMP "flash_miso" SITE "V2";
#LOCATE COMP "flash_holdn" SITE "W1";
#LOCATE COMP "flash_wpn" SITE "Y2";
#LOCATE COMP "flash_clk" SITE "U3";
#LOCATE COMP "flash_csspin" SITE "AJ3";
#LOCATE COMP "flash_initn" SITE "AG4";
#LOCATE COMP "flash_done" SITE "AJ4";
#LOCATE COMP "flash_programn" SITE "AH4";
#LOCATE COMP "flash_cfg_select[0]" SITE "AM4";
#LOCATE COMP "flash_cfg_select[1]" SITE "AL4";
#LOCATE COMP "flash_cfg_select[2]" SITE "AK4";
#IOBUF PORT "flash_csn" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "flash_mosi" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "flash_miso" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "flash_holdn" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "flash_wpn" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "flash_clk" PULLMODE=DOWN IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "flash_csspin" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "flash_initn" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "flash_done" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "flash_programn" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "flash_cfg_select[0]" PULLMODE=DOWN IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "flash_cfg_select[1]" PULLMODE=DOWN IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "flash_cfg_select[2]" PULLMODE=DOWN IO_TYPE=LVCMOS33 DRIVE=4;
## SD card "sdcard", "usb" sheet
#LOCATE COMP "sd_clk" SITE "H2"; # sd_clk WiFi_GPIO14
#LOCATE COMP "sd_cmd" SITE "J1"; # sd_cmd_di (MOSI) WiFi GPIO15
#LOCATE COMP "sd_d[0]" SITE "J3"; # sd_dat0_do (MISO) WiFi GPIO2
#LOCATE COMP "sd_d[1]" SITE "H1"; # sd_dat1_irq WiFi GPIO4
#LOCATE COMP "sd_d[2]" SITE "K1"; # sd_dat2 WiFi_GPIO12
#LOCATE COMP "sd_d[3]" SITE "K2"; # sd_dat3_csn WiFi_GPIO13
#LOCATE COMP "sd_wp" SITE "P5"; # not connected
#LOCATE COMP "sd_cdn" SITE "N5"; # not connected
#IOBUF PORT "sd_clk" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "sd_cmd" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "sd_d[0]" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "sd_d[1]" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "sd_d[2]" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4; # WiFi GPIO12 pulldown bootstrapping requirement
#IOBUF PORT "sd_d[3]" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "sd_wp" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "sd_cdn" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
## ADC SPI (MAX11123) "analog", "ram" sheet
#LOCATE COMP "adc_csn" SITE "R17";
#LOCATE COMP "adc_mosi" SITE "R16";
#LOCATE COMP "adc_miso" SITE "U16";
#LOCATE COMP "adc_sclk" SITE "P17";
#IOBUF PORT "adc_csn" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "adc_mosi" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "adc_miso" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "adc_sclk" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
## Audio 4-bit DAC "analog", "gpio" sheet
# 4-bit mode can drive down to 75 ohm load impedance.
# Lower impedance leads to IO overload,
# FPGA will stop working and need reboot.
# For standard 17 ohm earphones:
# use bits 2,3 as input (High-Z) and drive only bits 0,1.
#LOCATE COMP "audio_l[3]" SITE "B3"; # JACK TIP (left audio)
#LOCATE COMP "audio_l[2]" SITE "C3";
#LOCATE COMP "audio_l[1]" SITE "D3";
#LOCATE COMP "audio_l[0]" SITE "E4";
#LOCATE COMP "audio_r[3]" SITE "C5"; # JACK RING1 (right audio)
#LOCATE COMP "audio_r[2]" SITE "D5";
#LOCATE COMP "audio_r[1]" SITE "B5";
#LOCATE COMP "audio_r[0]" SITE "A3";
#LOCATE COMP "audio_v[3]" SITE "E5"; # JACK RING2 (video or digital audio)
#LOCATE COMP "audio_v[2]" SITE "F5";
#LOCATE COMP "audio_v[1]" SITE "F2";
#LOCATE COMP "audio_v[0]" SITE "H5";
#IOBUF PORT "audio_l[3]" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "audio_l[2]" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "audio_l[1]" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "audio_l[0]" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "audio_r[3]" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "audio_r[2]" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "audio_r[1]" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "audio_r[0]" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "audio_v[3]" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "audio_v[2]" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "audio_v[1]" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "audio_v[0]" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;
## WiFi ESP-32 "wifi", "usb", "flash" sheet
# other pins are shared with GP/GN, SD card and JTAG
#LOCATE COMP "wifi_en" SITE "F1"; # enable/reset WiFi
#LOCATE COMP "wifi_rxd" SITE "K3"; # FPGA transmits to WiFi
#LOCATE COMP "wifi_txd" SITE "K4"; # FPGA receives from WiFi
#LOCATE COMP "wifi_gpio0" SITE "L2";
#LOCATE COMP "wifi_gpio5" SITE "N4"; # WIFI LED
#LOCATE COMP "wifi_gpio16" SITE "L1"; # Serial1 RX
#LOCATE COMP "wifi_gpio17" SITE "N3"; # Serial1 TX
# LOCATE COMP "prog_done" SITE "Y3"; # not GPIO, always active
#IOBUF PORT "wifi_en" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "wifi_rxd" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "wifi_txd" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "wifi_gpio0" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "wifi_gpio16" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "wifi_gpio17" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
# IOBUF PORT "prog_done" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
## PCB antenna 433 MHz (may be also used for FM) "usb" sheet
#LOCATE COMP "ant_433mhz" SITE "G1";
#IOBUF PORT "ant_433mhz" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;
## Second USB port "US2" going directly into FPGA "usb", "ram" sheet
#LOCATE COMP "usb_fpga_dp" SITE "E16"; # single ended or differential input only
#LOCATE COMP "usb_fpga_dn" SITE "F16";
#IOBUF PORT "usb_fpga_dp" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=16;
#IOBUF PORT "usb_fpga_dn" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=16;
#LOCATE COMP "usb_fpga_bd_dp" SITE "D15"; # differential bidirectional
#LOCATE COMP "usb_fpga_bd_dn" SITE "E15";
#IOBUF PORT "usb_fpga_bd_dp" PULLMODE=NONE IO_TYPE=LVCMOS33D DRIVE=4;
#IOBUF PORT "usb_fpga_bd_dn" PULLMODE=NONE IO_TYPE=LVCMOS33D DRIVE=4;
#LOCATE COMP "usb_fpga_pu_dp" SITE "B12"; # pull up/down control
#LOCATE COMP "usb_fpga_pu_dn" SITE "C12";
#IOBUF PORT "usb_fpga_pu_dp" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=16;
#IOBUF PORT "usb_fpga_pu_dn" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=16;
## JTAG ESP-32 "usb" sheet
# connected to FT231X and ESP-32
# commented out because those are dedicated pins, not directly useable as GPIO
# but could be used by some vendor-specific JTAG bridging (boundary scan) module
#LOCATE COMP "jtag_tdi" SITE "R5"; # FTDI_nRI FPGA receives
#LOCATE COMP "jtag_tdo" SITE "V4"; # FTDI_nCTS FPGA transmits
#LOCATE COMP "jtag_tck" SITE "T5"; # FTDI_nDSR FPGA receives
#LOCATE COMP "jtag_tms" SITE "U5"; # FTDI_nDCD FPGA receives
#IOBUF PORT "jtag_tdi" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "jtag_tdo" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "jtag_tck" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "jtag_tms" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
## SDRAM "ram" sheet
#LOCATE COMP "sdram_clk" SITE "F19";
#LOCATE COMP "sdram_cke" SITE "F20";
#LOCATE COMP "sdram_csn" SITE "P20";
#LOCATE COMP "sdram_wen" SITE "T20";
#LOCATE COMP "sdram_rasn" SITE "R20";
#LOCATE COMP "sdram_casn" SITE "T19";
#LOCATE COMP "sdram_a[0]" SITE "M20";
#LOCATE COMP "sdram_a[1]" SITE "M19";
#LOCATE COMP "sdram_a[2]" SITE "L20";
#LOCATE COMP "sdram_a[3]" SITE "L19";
#LOCATE COMP "sdram_a[4]" SITE "K20";
#LOCATE COMP "sdram_a[5]" SITE "K19";
#LOCATE COMP "sdram_a[6]" SITE "K18";
#LOCATE COMP "sdram_a[7]" SITE "J20";
#LOCATE COMP "sdram_a[8]" SITE "J19";
#LOCATE COMP "sdram_a[9]" SITE "H20";
#LOCATE COMP "sdram_a[10]" SITE "N19";
#LOCATE COMP "sdram_a[11]" SITE "G20";
#LOCATE COMP "sdram_a[12]" SITE "G19";
#LOCATE COMP "sdram_ba[0]" SITE "P19";
#LOCATE COMP "sdram_ba[1]" SITE "N20";
#LOCATE COMP "sdram_dqm[0]" SITE "U19";
#LOCATE COMP "sdram_dqm[1]" SITE "E20";
#LOCATE COMP "sdram_d[0]" SITE "J16";
#LOCATE COMP "sdram_d[1]" SITE "L18";
#LOCATE COMP "sdram_d[2]" SITE "M18";
#LOCATE COMP "sdram_d[3]" SITE "N18";
#LOCATE COMP "sdram_d[4]" SITE "P18";
#LOCATE COMP "sdram_d[5]" SITE "T18";
#LOCATE COMP "sdram_d[6]" SITE "T17";
#LOCATE COMP "sdram_d[7]" SITE "U20";
#LOCATE COMP "sdram_d[8]" SITE "E19";
#LOCATE COMP "sdram_d[9]" SITE "D20";
#LOCATE COMP "sdram_d[10]" SITE "D19";
#LOCATE COMP "sdram_d[11]" SITE "C20";
#LOCATE COMP "sdram_d[12]" SITE "E18";
#LOCATE COMP "sdram_d[13]" SITE "F18";
#LOCATE COMP "sdram_d[14]" SITE "J18";
#LOCATE COMP "sdram_d[15]" SITE "J17";
#IOBUF PORT "sdram_clk" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "sdram_cke" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "sdram_csn" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "sdram_wen" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "sdram_rasn" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "sdram_casn" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "sdram_a[0]" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "sdram_a[1]" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "sdram_a[2]" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "sdram_a[3]" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "sdram_a[4]" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "sdram_a[5]" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "sdram_a[6]" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "sdram_a[7]" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "sdram_a[8]" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "sdram_a[9]" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "sdram_a[10]" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "sdram_a[11]" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "sdram_a[12]" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "sdram_ba[0]" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "sdram_ba[1]" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "sdram_dqm[0]" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "sdram_dqm[1]" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "sdram_d[0]" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "sdram_d[1]" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "sdram_d[2]" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "sdram_d[3]" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "sdram_d[4]" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "sdram_d[5]" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "sdram_d[6]" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "sdram_d[7]" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "sdram_d[8]" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "sdram_d[9]" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "sdram_d[10]" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "sdram_d[11]" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "sdram_d[12]" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "sdram_d[13]" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "sdram_d[14]" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "sdram_d[15]" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;
# GPDI differential interface (Video) "gpdi" sheet
#LOCATE COMP "gpdi_dp[0]" SITE "A16"; # Blue +
#LOCATE COMP "gpdi_dn[0]" SITE "B16"; # Blue -
#LOCATE COMP "gpdi_dp[1]" SITE "A14"; # Green +
#LOCATE COMP "gpdi_dn[1]" SITE "C14"; # Green -
#LOCATE COMP "gpdi_dp[2]" SITE "A12"; # Red +
#LOCATE COMP "gpdi_dn[2]" SITE "A13"; # Red -
#LOCATE COMP "gpdi_dp[3]" SITE "A17"; # Clock +
#LOCATE COMP "gpdi_dn[3]" SITE "B18"; # Clock -
#LOCATE COMP "gpdi_ethp" SITE "A19"; # Ethernet +
#LOCATE COMP "gpdi_ethn" SITE "B20"; # Ethernet -
#LOCATE COMP "gpdi_cec" SITE "A18";
#LOCATE COMP "gpdi_sda" SITE "B19"; # I2C shared with RTC
#LOCATE COMP "gpdi_scl" SITE "E12"; # I2C shared with RTC C12->E12
#IOBUF PORT "gpdi_dp[0]" IO_TYPE=LVCMOS33D DRIVE=4;
#IOBUF PORT "gpdi_dn[0]" IO_TYPE=LVCMOS33D DRIVE=4;
#IOBUF PORT "gpdi_dp[1]" IO_TYPE=LVCMOS33D DRIVE=4;
#IOBUF PORT "gpdi_dn[1]" IO_TYPE=LVCMOS33D DRIVE=4;
#IOBUF PORT "gpdi_dp[2]" IO_TYPE=LVCMOS33D DRIVE=4;
#IOBUF PORT "gpdi_dn[2]" IO_TYPE=LVCMOS33D DRIVE=4;
#IOBUF PORT "gpdi_dp[3]" IO_TYPE=LVCMOS33D DRIVE=4;
#IOBUF PORT "gpdi_dn[3]" IO_TYPE=LVCMOS33D DRIVE=4;
#IOBUF PORT "gpdi_ethp" IO_TYPE=LVCMOS33D DRIVE=4;
#IOBUF PORT "gpdi_ethn" IO_TYPE=LVCMOS33D DRIVE=4;
#IOBUF PORT "gpdi_cec" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "gpdi_sda" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "gpdi_scl" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
# GPIO (default single-ended) "gpio", "ram", "gpdi" sheet
# Pins enumerated gp[0-27], gn[0-27].
# With differential mode enabled on Lattice,
# gp[] (+) are used, gn[] (-) are ignored from design
# as they handle inverted signal by default.
# To enable differential, rename LVCMOS33->LVCMOS33D
# -------------------- LEFT PINS -------------------------
# ---------------- RIGHT CAMERA (on top of left side)
#LOCATE COMP "gp[0]" SITE "B11"; # J1_5+ GP0
LOCATE COMP "ov7670_r_d[0]" SITE "B11"; # J1_5+ GP0
#LOCATE COMP "gn[0]" SITE "C11"; # J1_5- GN0 # gn are upper in 90 deg
LOCATE COMP "ov7670_r_d[1]" SITE "C11"; # J1_5- GN0
#LOCATE COMP "gp[1]" SITE "A10"; # J1_7+ GP1
LOCATE COMP "ov7670_r_d[2]" SITE "A10"; # J1_7+ GP1
#LOCATE COMP "gn[1]" SITE "A11"; # J1_7- GN1
LOCATE COMP "ov7670_r_d[3]" SITE "A11"; # J1_7- GN1
#LOCATE COMP "gp[2]" SITE "A9"; # J1_9+ GP2
LOCATE COMP "ov7670_r_d[4]" SITE "A9"; # J1_9+ GP2
#LOCATE COMP "gn[2]" SITE "B10"; # J1_9- GN2
LOCATE COMP "ov7670_r_d[5]" SITE "B10"; # J1_9- GN2
#LOCATE COMP "gp[3]" SITE "B9"; # J1_11+ GP3
LOCATE COMP "ov7670_r_d[6]" SITE "B9"; # J1_11+ GP3
#LOCATE COMP "gn[3]" SITE "C10"; # J1_11- GN3
LOCATE COMP "ov7670_r_d[7]" SITE "C10"; # J1_11- GN3
#LOCATE COMP "gp[4]" SITE "A7"; # J1_13+ GP4
LOCATE COMP "ov7670_r_xclk" SITE "A7"; # J1_13+ GP4
#LOCATE COMP "gn[4]" SITE "A8"; # J1_13- GN4
LOCATE COMP "ov7670_r_pclk" SITE "A8"; # J1_13- GN4
#LOCATE COMP "gp[5]" SITE "C8"; # J1_15+ GP5
LOCATE COMP "ov7670_r_href" SITE "C8"; # J1_15+ GP5
#LOCATE COMP "gn[5]" SITE "B8"; # J1_15- GN5
LOCATE COMP "ov7670_r_vsync" SITE "B8"; # J1_15- GN5
#LOCATE COMP "gp[6]" SITE "C6"; # J1_17+ GP6
LOCATE COMP "spi_ss_n" SITE "C6"; # J1_17+ GP6
#LOCATE COMP "gn[6]" SITE "C7"; # J1_17- GN6
LOCATE COMP "spi_clk_o" SITE "C7"; # J1_17- GN6
#
IOBUF PORT "spi_ss_n" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "spi_clk_o" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
#
IOBUF PORT "ov7670_r_vsync" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "ov7670_r_href" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "ov7670_r_pclk" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "ov7670_r_xclk" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "ov7670_r_d[7]" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "ov7670_r_d[6]" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "ov7670_r_d[5]" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "ov7670_r_d[4]" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "ov7670_r_d[3]" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "ov7670_r_d[2]" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "ov7670_r_d[1]" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "ov7670_r_d[0]" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
# ---------------- LEFT CAMERA (on left side, right for the robot)
#LOCATE COMP "gp[7]" SITE "A6"; # J1_23+ GP7
LOCATE COMP "ov7670_l_d[0]" SITE "A6"; # J1_23+ GP7
#LOCATE COMP "gn[7]" SITE "B6"; # J1_23- GN7
LOCATE COMP "ov7670_l_d[1]" SITE "B6"; # J1_23- GN7
#LOCATE COMP "gp[8]" SITE "A4"; # J1_25+ GP8
LOCATE COMP "ov7670_l_d[2]" SITE "A4"; # J1_25+ GP8
#LOCATE COMP "gn[8]" SITE "A5"; # J1_25- GN8
LOCATE COMP "ov7670_l_d[3]" SITE "A5"; # J1_25- GN8
#LOCATE COMP "gp[9]" SITE "A2"; # J1_27+ GP9
LOCATE COMP "ov7670_l_d[4]" SITE "A2"; # J1_27+ GP9
#LOCATE COMP "gn[9]" SITE "B1"; # J1_27- GN9
LOCATE COMP "ov7670_l_d[5]" SITE "B1"; # J1_27- GN9
#LOCATE COMP "gp[10]" SITE "C4"; # J1_29+ GP10 WIFI_GPIO27
LOCATE COMP "ov7670_l_d[6]" SITE "C4"; # J1_29+ GP10 WIFI_GPIO27
#LOCATE COMP "gn[10]" SITE "B4"; # J1_29- GN10
LOCATE COMP "ov7670_l_d[7]" SITE "B4"; # J1_29- GN10
#LOCATE COMP "gp[11]" SITE "F4"; # J1_31+ GP11 WIFI_GPIO25
LOCATE COMP "ov7670_l_xclk" SITE "F4"; # J1_31+ GP11 WIFI_GPIO25
#LOCATE COMP "gn[11]" SITE "E3"; # J1_31- GN11 WIFI_GPIO26
LOCATE COMP "ov7670_l_pclk" SITE "E3"; # J1_31- GN11 WIFI_GPIO26
#LOCATE COMP "gp[12]" SITE "G3"; # J1_33+ GP12 WIFI_GPIO32
LOCATE COMP "ov7670_l_href" SITE "G3"; # J1_33+ GP12 WIFI_GPIO32
#LOCATE COMP "gn[12]" SITE "F3"; # J1_33- GN12 WIFI_GPIO33
LOCATE COMP "ov7670_l_vsync" SITE "F3"; # J1_33- GN12 WIFI_GPIO33
#LOCATE COMP "gp[13]" SITE "H4"; # J1_35+ GP13 WIFI_GPIO34
# common for the 3 cameras
LOCATE COMP "ov7670_siod" SITE "H4"; # J1_35+ GP13 WIFI_GPIO34
#LOCATE COMP "gn[13]" SITE "G5"; # J1_35- GN13 WIFI_GPIO35
LOCATE COMP "ov7670_sioc" SITE "G5"; # J1_35- GN13 WIFI_GPIO35
# common for the 3 cameras
IOBUF PORT "ov7670_sioc" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "ov7670_siod" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "ov7670_l_vsync" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "ov7670_l_href" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "ov7670_l_pclk" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "ov7670_l_xclk" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "ov7670_l_d[7]" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "ov7670_l_d[6]" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "ov7670_l_d[5]" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "ov7670_l_d[4]" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "ov7670_l_d[3]" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "ov7670_l_d[2]" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "ov7670_l_d[1]" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "ov7670_l_d[0]" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
# ---------------- RIGHT SIDE OF FPGA BOARD
# -------------------- PAN CAMERA (on a turret, right side of FPGA board)
#LOCATE COMP "gp[14]" SITE "U18"; # J2_5+ GP14
LOCATE COMP "ov7670_p_d[0]" SITE "U18"; # J2_5+ GP14
#LOCATE COMP "gn[14]" SITE "U17"; # J2_5- GN14
LOCATE COMP "ov7670_p_d[1]" SITE "U17"; # J2_5- GN14
#LOCATE COMP "gp[15]" SITE "N17"; # J2_7+ GP15
LOCATE COMP "ov7670_p_d[2]" SITE "N17"; # J2_7+ GP15
#LOCATE COMP "gn[15]" SITE "P16"; # J2_7- GN15
LOCATE COMP "ov7670_p_d[3]" SITE "P16"; # J2_7- GN15
#LOCATE COMP "gp[16]" SITE "N16"; # J2_9+ GP16
LOCATE COMP "ov7670_p_d[4]" SITE "N16"; # J2_9+ GP16
#LOCATE COMP "gn[16]" SITE "M17"; # J2_9- GN16
LOCATE COMP "ov7670_p_d[5]" SITE "M17"; # J2_9- GN16
#LOCATE COMP "gp[17]" SITE "L16"; # J2_11+ GP17
LOCATE COMP "ov7670_p_d[6]" SITE "L16"; # J2_11+ GP17
#LOCATE COMP "gn[17]" SITE "L17"; # J2_11- GN17
LOCATE COMP "ov7670_p_d[7]" SITE "L17"; # J2_11- GN17
#LOCATE COMP "gp[18]" SITE "H18"; # J2_13+ GP18
LOCATE COMP "ov7670_p_xclk" SITE "H18"; # J2_13+ GP18
#LOCATE COMP "gn[18]" SITE "H17"; # J2_13- GN18
LOCATE COMP "ov7670_p_pclk" SITE "H17"; # J2_13- GN18
#LOCATE COMP "gp[19]" SITE "F17"; # J2_15+ GP19
LOCATE COMP "ov7670_p_href" SITE "F17"; # J2_15+ GP19
#LOCATE COMP "gn[19]" SITE "G18"; # J2_15- GN19
LOCATE COMP "ov7670_p_vsync" SITE "G18"; # J2_15- GN19
#LOCATE COMP "gp[20]" SITE "D18"; # J2_17+ GP20
LOCATE COMP "spi_miso_i" SITE "D18"; # J2_17+ GP20
#LOCATE COMP "gn[20]" SITE "E17"; # J2_17- GN20
LOCATE COMP "spi_mosi_o" SITE "E17"; # J2_17- GN20
IOBUF PORT "spi_miso_i" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "spi_mosi_o" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "ov7670_p_vsync" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "ov7670_p_href" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "ov7670_p_pclk" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "ov7670_p_xclk" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "ov7670_p_d[7]" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "ov7670_p_d[6]" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "ov7670_p_d[5]" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "ov7670_p_d[4]" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "ov7670_p_d[3]" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "ov7670_p_d[2]" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "ov7670_p_d[1]" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "ov7670_p_d[0]" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
#LOCATE COMP "gp[21]" SITE "C18"; # J2_23+ GP21
# reset for the 3 cameras
LOCATE COMP "ov7670_rst_n" SITE "C18"; # J2_23+ GP21
IOBUF PORT "ov7670_rst_n" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
# ---------------- VGA
#LOCATE COMP "gn[21]" SITE "D17"; # J2_23- GN21
LOCATE COMP "vga_green_3" SITE "D17"; # J2_23- GN21
#LOCATE COMP "gp[22]" SITE "B15"; # J2_25+ GP22 D15->B15
LOCATE COMP "vga_vsync" SITE "B15"; # J2_25+ GP22 D15->B15
#LOCATE COMP "gn[22]" SITE "C15"; # J2_25- GN22 E15->C15
LOCATE COMP "vga_green_2" SITE "C15"; # J2_25- GN22 E15->C15
#LOCATE COMP "gp[23]" SITE "B17"; # J2_27+ GP23
LOCATE COMP "vga_hsync" SITE "B17"; # J2_27+ GP23
#LOCATE COMP "gn[23]" SITE "C17"; # J2_27- GN23
LOCATE COMP "vga_green_1" SITE "C17"; # J2_27- GN23
#LOCATE COMP "gp[24]" SITE "C16"; # J2_29+ GP24
#LOCATE COMP "vga_green[0]" SITE "C16"; # J2_29+ GP24
LOCATE COMP "rpi_running" SITE "C16"; # J2_29+ GP24
#LOCATE COMP "gn[24]" SITE "D16"; # J2_29- GN24
LOCATE COMP "vga_red[3]" SITE "D16"; # J2_29- GN24
#LOCATE COMP "gp[25]" SITE "D14"; # J2_31+ GP25 B15->D14
LOCATE COMP "vga_blue_3" SITE "D14"; # J2_31+ GP25 B15->D14
#LOCATE COMP "gn[25]" SITE "E14"; # J2_31- GN25 C15->E14
LOCATE COMP "vga_red[2]" SITE "E14"; # J2_31- GN25 C15->E14
#LOCATE COMP "gp[26]" SITE "B13"; # J2_33+ GP26
LOCATE COMP "vga_blue_2" SITE "B13"; # J2_33+ GP26
#LOCATE COMP "gn[26]" SITE "C13"; # J2_33- GN26
LOCATE COMP "vga_red[1]" SITE "C13"; # J2_33- GN26
#LOCATE COMP "gp[27]" SITE "D13"; # J2_35+ GP27
LOCATE COMP "vga_blue_1" SITE "D13"; # J2_35+ GP27
#LOCATE COMP "gn[27]" SITE "E13"; # J2_35- GN27
LOCATE COMP "vga_red[0]" SITE "E13"; # J2_35- GN27
# no vga_blue[0]
IOBUF PORT "vga_vsync" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "vga_hsynch" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "vga_green[3]" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "vga_green[2]" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "vga_green[1]" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "vga_green[0]" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "vga_blue_3" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "vga_blue_2" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "vga_blue_1" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
#IOBUF PORT "vga_blue[0]" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "vga_red[3]" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "vga_red[2]" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "vga_red[1]" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "vga_red[0]" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
## PROGRAMN (reload bitstream from FLASH, exit from bootloader)
# PCB v2.0.5 and higher
#LOCATE COMP "user_programn" SITE "M4";
#IOBUF PORT "user_programn" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
## SHUTDOWN "power", "ram" sheet (connected from PCB v1.7.5)
# on PCB v1.7 shutdown is not connected to FPGA
#LOCATE COMP "shutdown" SITE "G16"; # FPGA receives
#IOBUF PORT "shutdown" PULLMODE=DOWN IO_TYPE=LVCMOS33 DRIVE=4;