§ Пины GPIO
BANK | PIN | SHIELD PS2 | 7SEGMENT | ETHERNET =================================================== IO-0 | PIN_101 | USB0_DAT- | DIG[4] E | RXD[3] IO-1 | PIN_103 | USB1_DAT- | DIG[7] . | RXCLK IO-2 | PIN_104 | USB1_DAT+ | DIG[3] D | RXD[1] IO-3 | PIN_105 | USB0_DAT+ | DIG[6] G | RXD[2] IO-4 | PIN_106 | -- | DIG[2] C | RXDV IO-5 | PIN_110 | -- | DIG[5] F | RXD[0] IO-6 | PIN_111 | SOUND_LF | DIG[0] A | MDIO IO-7 | PIN_112 | SOUND_RT | DIG[1] B | MDC IO-8 | PIN_113 | KEYB_CLK | KEY[3] | RESETB IO-9 | PIN_114 | KEYB_DAT | KEY[1] | XI IO-10 | PIN_115 | MOUSE_CLK | KEY[2] | TXEN IO-11 | PIN_119 | MOUSE_DAT | KEY[0] | TXD[3] IO-12 | PIN_120 | -- | DIGEN[2] | TXD[2] IO-13 | PIN_121 | -- | DIGEN[1] | TXD[1] IO-14 | PIN_124 | -- | DIGEN[3] | TXD[0] IO-15 | PIN_125 | -- | DIGEN[0] | TXCLK
§ Назначение контактов в файле QSF
# CLK set_location_assignment PIN_25 -to clk # LED set_location_assignment PIN_79 -to led[3] set_location_assignment PIN_83 -to led[2] set_location_assignment PIN_84 -to led[1] set_location_assignment PIN_85 -to led[0] # KEY set_location_assignment PIN_23 -to keys[0] set_location_assignment PIN_22 -to keys[1] # ADC set_location_assignment PIN_86 -to adc_clock_20mhz set_location_assignment PIN_100 -to adc_input[0] set_location_assignment PIN_99 -to adc_input[1] set_location_assignment PIN_98 -to adc_input[2] set_location_assignment PIN_91 -to adc_input[3] set_location_assignment PIN_90 -to adc_input[4] set_location_assignment PIN_89 -to adc_input[5] set_location_assignment PIN_87 -to adc_input[7] set_location_assignment PIN_88 -to adc_input[6] # VGA set_location_assignment PIN_128 -to vga_blue[4] set_location_assignment PIN_129 -to vga_blue[3] set_location_assignment PIN_132 -to vga_blue[2] set_location_assignment PIN_133 -to vga_blue[1] set_location_assignment PIN_135 -to vga_blue[0] set_location_assignment PIN_144 -to vga_red[4] set_location_assignment PIN_1 -to vga_red[3] set_location_assignment PIN_2 -to vga_red[2] set_location_assignment PIN_3 -to vga_red[1] set_location_assignment PIN_7 -to vga_red[0] set_location_assignment PIN_136 -to vga_green[5] set_location_assignment PIN_137 -to vga_green[4] set_location_assignment PIN_138 -to vga_green[3] set_location_assignment PIN_141 -to vga_green[2] set_location_assignment PIN_142 -to vga_green[1] set_location_assignment PIN_143 -to vga_green[0] set_location_assignment PIN_127 -to vga_hs set_location_assignment PIN_126 -to vga_vs # SDRAM set_location_assignment PIN_60 -to sdram_addr[0] set_location_assignment PIN_64 -to sdram_addr[1] set_location_assignment PIN_65 -to sdram_addr[2] set_location_assignment PIN_66 -to sdram_addr[3] set_location_assignment PIN_46 -to sdram_addr[4] set_location_assignment PIN_49 -to sdram_addr[5] set_location_assignment PIN_50 -to sdram_addr[6] set_location_assignment PIN_51 -to sdram_addr[7] set_location_assignment PIN_52 -to sdram_addr[8] set_location_assignment PIN_53 -to sdram_addr[9] set_location_assignment PIN_59 -to sdram_addr[10] set_location_assignment PIN_54 -to sdram_addr[11] set_location_assignment PIN_55 -to sdram_bank[0] set_location_assignment PIN_58 -to sdram_bank[1] set_location_assignment PIN_30 -to sdram_dq[15] set_location_assignment PIN_31 -to sdram_dq[14] set_location_assignment PIN_32 -to sdram_dq[13] set_location_assignment PIN_33 -to sdram_dq[12] set_location_assignment PIN_34 -to sdram_dq[11] set_location_assignment PIN_38 -to sdram_dq[10] set_location_assignment PIN_39 -to sdram_dq[9] set_location_assignment PIN_42 -to sdram_dq[8] set_location_assignment PIN_71 -to sdram_dq[7] set_location_assignment PIN_72 -to sdram_dq[6] set_location_assignment PIN_73 -to sdram_dq[5] set_location_assignment PIN_74 -to sdram_dq[4] set_location_assignment PIN_75 -to sdram_dq[3] set_location_assignment PIN_76 -to sdram_dq[2] set_location_assignment PIN_77 -to sdram_dq[1] set_location_assignment PIN_80 -to sdram_dq[0] set_location_assignment PIN_68 -to sdram_cas set_location_assignment PIN_44 -to sdram_clock set_location_assignment PIN_70 -to sdram_ldqm set_location_assignment PIN_67 -to sdram_ras set_location_assignment PIN_43 -to sdram_udqm set_location_assignment PIN_69 -to sdram_we # FTDI set_location_assignment PIN_24 -to ftdi_rx set_location_assignment PIN_28 -to ftdi_tx
§ Шилд разъемов с PS/2
set_location_assignment PIN_103 -to usb[1] set_location_assignment PIN_104 -to usb[0] set_location_assignment PIN_111 -to sound_left set_location_assignment PIN_112 -to sound_right set_location_assignment PIN_113 -to ps2_keyb[1] set_location_assignment PIN_114 -to ps2_keyb[0] set_location_assignment PIN_115 -to ps2_mouse[1] set_location_assignment PIN_119 -to ps2_mouse[0]
§ Шилд семисегментного индикатора
Схема шилдаНазначение контактов в QSF
# Индикатор set_location_assignment PIN_111 -to dig[0] set_location_assignment PIN_112 -to dig[1] set_location_assignment PIN_106 -to dig[2] set_location_assignment PIN_104 -to dig[3] set_location_assignment PIN_101 -to dig[4] set_location_assignment PIN_110 -to dig[5] set_location_assignment PIN_105 -to dig[6] set_location_assignment PIN_103 -to dig[7] # Кнопки set_location_assignment PIN_119 -to key[0] set_location_assignment PIN_114 -to key[1] set_location_assignment PIN_115 -to key[2] set_location_assignment PIN_113 -to key[3] # Транзисторы set_location_assignment PIN_125 -to edig[0] set_location_assignment PIN_121 -to edig[1] set_location_assignment PIN_120 -to edig[2] set_location_assignment PIN_124 -to edig[3]
§ Шилд Ethernet
Назначение контактов в QSFset_location_assignment PIN_101 -to RTL_RXD[3] set_location_assignment PIN_103 -to RTL_RXCLK set_location_assignment PIN_104 -to RTL_RXD[1] set_location_assignment PIN_105 -to RTL_RXD[2] set_location_assignment PIN_106 -to RTL_RXDV set_location_assignment PIN_110 -to RTL_RXD[0] set_location_assignment PIN_111 -to RTL_MDIO set_location_assignment PIN_112 -to RTL_MDC set_location_assignment PIN_113 -to RTL_RESETB set_location_assignment PIN_114 -to RTL_XI set_location_assignment PIN_115 -to RTL_TXEN set_location_assignment PIN_119 -to RTL_TXD[3] set_location_assignment PIN_120 -to RTL_TXD[2] set_location_assignment PIN_121 -to RTL_TXD[1] set_location_assignment PIN_124 -to RTL_TXD[0] set_location_assignment PIN_125 -to RTL_TXCLKПодключение микросхемы:
- Подключить RTL_MDC = 0, RTL_RESETB = 1. Подать
- Подать 25 Мгц на RTL_XI
- Принимать входящие данные по RTL_RXCLK, исходящие по RTL_TXCLK
- RTL_RXDV = 1 означает, что пришедшие данные валидные
- Входящие данные RTL_RXD
- Исходящие данные RTL_TXD