接口名称 | 外设端口 | FPGA管脚 | 备注 | # 约束语句 |
系统时钟50MHz | Clk | PIN_E15 | | set_location_assignment PIN_E15 -to Clk |
| | | | # LED灯管脚约束 |
LED灯 | LED[0] | PIN_N16 | | set_location_assignment PIN_N16 -to LED[0] |
| LED[1] | PIN_N15 | | set_location_assignment PIN_N15 -to LED[1] |
| | | | |
按键 | Key[0] | PIN_M15 | | set_location_assignment PIN_M15 -to Key[0] |
| Key[1] | PIN_T8 | | set_location_assignment PIN_T8 -to Key[1] |
| Key[2] | PIN_R9 | 作为复位按键 | set_location_assignment PIN_R9 -to Key[2] |
| | | | # 开关管脚约束 |
开关 | SW[0] | PIN_M16 | | set_location_assignment PIN_M16 -to SW[0] |
| SW[1] | PIN_E16 | | set_location_assignment PIN_E16 -to SW[1] |
| SW[2] | PIN_A9 | | set_location_assignment PIN_A9 -to SW[2] |
| SW[3] | PIN_B9 | | set_location_assignment PIN_B9 -to SW[3] |
| SW[4] | PIN_A8 | | set_location_assignment PIN_A8 -to SW[4] |
| SW[5] | PIN_B8 | | set_location_assignment PIN_B8 -to SW[5] |
| SW[6] | PIN_E1 | | set_location_assignment PIN_E1 -to SW[6] |
| SW[7] | PIN_M1 | | set_location_assignment PIN_M1 -to SW[7] |
| | | | # 串口收发管脚约束 |
串口收发 | UART_RXD | PIN_F13 | | set_location_assignment PIN_F13 -to UART_RXD |
| UART_TXD | PIN_F8 | | set_location_assignment PIN_F8 -to UART_TXD |
| | | | # 红外遥控管脚约束 |
红外遥控 | IR | PIN_R8 | | set_location_assignment PIN_R8 -to IR |
| | | | # 无源蜂鸣器管脚约束 |
无源蜂鸣器 | BEEP | PIN_G16 | | set_location_assignment PIN_G16 -to BEEP |
| | | | # I2C接口管脚约束 |
I2C接口 | i2c_sclk | PIN_R7 | | set_location_assignment PIN_R7 -to i2c_sclk |
| i2c_sdat | PIN_T7 | | set_location_assignment PIN_T7 -to i2c_sdat |
| | | | # SD卡(4线SPI)管脚约束 |
SD卡(4线SPI) | SD_CLK | PIN_E11 | | set_location_assignment PIN_E11 -to SD_CLK |
| SD_MISO | PIN_C9 | | set_location_assignment PIN_C9 -to SD_MISO |
| SD_MOSI | PIN_F9 | | set_location_assignment PIN_F9 -to SD_MOSI |
| SD_SC | PIN_F14 | | set_location_assignment PIN_F14 -to SD_SC |
| | | | # 74HC595驱动数码管管脚约束 |
74HC595驱动数码管 | DS | PIN_J13 | SEG7_DIO | set_location_assignment PIN_J13 -to DS |
| SH_CP | PIN_C15 | SEG7_SCLK | set_location_assignment PIN_C15 -to SH_CP |
| ST_CP | PIN_B16 | SEG7_RCLK | set_location_assignment PIN_B16 -to ST_CP |
| | | | # SDRAM管脚约束 |
SDRAM | sdram_addr[0] | PIN_A3 | | set_location_assignment PIN_A3 -to sdram_addr[0] |
| sdram_addr[1] | PIN_C3 | | set_location_assignment PIN_C3 -to sdram_addr[1] |
| sdram_addr[2] | PIN_D3 | | set_location_assignment PIN_D3 -to sdram_addr[2] |
| sdram_addr[3] | PIN_B4 | | set_location_assignment PIN_B4 -to sdram_addr[3] |
| sdram_addr[4] | PIN_B3 | | set_location_assignment PIN_B3 -to sdram_addr[4] |
| sdram_addr[5] | PIN_A2 | | set_location_assignment PIN_A2 -to sdram_addr[5] |
| sdram_addr[6] | PIN_A4 | | set_location_assignment PIN_A4 -to sdram_addr[6] |
| sdram_addr[7] | PIN_D6 | | set_location_assignment PIN_D6 -to sdram_addr[7] |
| sdram_addr[8] | PIN_A5 | | set_location_assignment PIN_A5 -to sdram_addr[8] |
| sdram_addr[9] | PIN_E6 | | set_location_assignment PIN_E6 -to sdram_addr[9] |
| sdram_addr[10] | PIN_E7 | | set_location_assignment PIN_E7 -to sdram_addr[10] |
| sdram_addr[11] | PIN_A6 | | set_location_assignment PIN_A6 -to sdram_addr[11] |
| sdram_addr[12] | PIN_C6 | | set_location_assignment PIN_C6 -to sdram_addr[12] |
| sdram_ba[0] | PIN_B7 | | set_location_assignment PIN_B7 -to sdram_ba[0] |
| sdram_ba[1] | PIN_B5 | | set_location_assignment PIN_B5 -to sdram_ba[1] |
| sdram_cas_n | PIN_D8 | | set_location_assignment PIN_D8 -to sdram_cas_n |
| sdram_clk | PIN_A7 | | set_location_assignment PIN_A7 -to sdram_clk |
| sdram_cs_n | PIN_B6 | | set_location_assignment PIN_B6 -to sdram_cs_n |
| sdram_dq[0] | PIN_D14 | | set_location_assignment PIN_D14 -to sdram_dq[0] |
| sdram_dq[1] | PIN_C14 | | set_location_assignment PIN_C14 -to sdram_dq[1] |
| sdram_dq[2] | PIN_D12 | | set_location_assignment PIN_D12 -to sdram_dq[2] |
| sdram_dq[3] | PIN_B13 | | set_location_assignment PIN_B13 -to sdram_dq[3] |
| sdram_dq[4] | PIN_E10 | | set_location_assignment PIN_E10 -to sdram_dq[4] |
| sdram_dq[5] | PIN_B12 | | set_location_assignment PIN_B12 -to sdram_dq[5] |
| sdram_dq[6] | PIN_D11 | | set_location_assignment PIN_D11 -to sdram_dq[6] |
| sdram_dq[7] | PIN_C11 | | set_location_assignment PIN_C11 -to sdram_dq[7] |
| sdram_dq[8] | PIN_B10 | | set_location_assignment PIN_B10 -to sdram_dq[8] |
| sdram_dq[9] | PIN_A11 | | set_location_assignment PIN_A11 -to sdram_dq[9] |
| sdram_dq[10] | PIN_B11 | | set_location_assignment PIN_B11 -to sdram_dq[10] |
| sdram_dq[11] | PIN_A12 | | set_location_assignment PIN_A12 -to sdram_dq[11] |
| sdram_dq[12] | PIN_A13 | | set_location_assignment PIN_A13 -to sdram_dq[12] |
| sdram_dq[13] | PIN_A14 | | set_location_assignment PIN_A14 -to sdram_dq[13] |
| sdram_dq[14] | PIN_B14 | | set_location_assignment PIN_B14 -to sdram_dq[14] |
| sdram_dq[15] | PIN_A15 | | set_location_assignment PIN_A15 -to sdram_dq[15] |
| sdram_dqm[0] | PIN_E9 | | set_location_assignment PIN_E9 -to sdram_dqm[0] |
| sdram_dqm[1] | PIN_A10 | | set_location_assignment PIN_A10 -to sdram_dqm[1] |
| sdram_ras_n | PIN_C8 | | set_location_assignment PIN_C8 -to sdram_ras_n |
| sdram_we_n | PIN_E8 | | set_location_assignment PIN_E8 -to sdram_we_n |
| | | | # HDMI管脚约束 |
HDMI | tmds_clk_n | PIN_R3 | | set_location_assignment PIN_R3 -to tmds_clk_n |
| tmds_clk_p | PIN_T3 | | set_location_assignment PIN_T3 -to tmds_clk_p |
| tmds_data_n[0] | PIN_R4 | | set_location_assignment PIN_R4 -to tmds_data_n[0] |
| tmds_data_n[1] | PIN_R5 | | set_location_assignment PIN_R5 -to tmds_data_n[1] |
| tmds_data_n[2] | PIN_R6 | | set_location_assignment PIN_R6 -to tmds_data_n[2] |
| tmds_data_p[0] | PIN_T4 | | set_location_assignment PIN_T4 -to tmds_data_p[0] |
| tmds_data_p[1] | PIN_T5 | | set_location_assignment PIN_T5 -to tmds_data_p[1] |
| tmds_data_p[2] | PIN_T6 | | set_location_assignment PIN_T6 -to tmds_data_p[2] |
| | | | # 以太网管脚约束 |
以太网 | eth_mdc | PIN_P15 | | set_location_assignment PIN_P15 -to eth_mdc |
| eth_mdio | PIN_R16 | | set_location_assignment PIN_R16 -to eth_mdio |
| eth_rst_n | PIN_P16 | | set_location_assignment PIN_P16 -to eth_rst_n |
| eth_rxc | PIN_T9 | | set_location_assignment PIN_T9 -to eth_rxc |
| eth_rxd[3] | PIN_R12 | | set_location_assignment PIN_R12 -to eth_rxd[3] |
| eth_rxd[2] | PIN_T11 | | set_location_assignment PIN_T11 -to eth_rxd[2] |
| eth_rxd[1] | PIN_R11 | | set_location_assignment PIN_R11 -to eth_rxd[1] |
| eth_rxd[0] | PIN_T10 | | set_location_assignment PIN_T10 -to eth_rxd[0] |
| eth_rxdv | PIN_R10 | | set_location_assignment PIN_R10 -to eth_rxdv |
| eth_gtxc | PIN_T12 | | set_location_assignment PIN_T12 -to eth_gtxc |
| eth_txd[3] | PIN_T15 | | set_location_assignment PIN_T15 -to eth_txd[3] |
| eth_txd[2] | PIN_T14 | | set_location_assignment PIN_T14 -to eth_txd[2] |
| eth_txd[1] | PIN_R14 | | set_location_assignment PIN_R14 -to eth_txd[1] |
| eth_txd[0] | PIN_T13 | | set_location_assignment PIN_T13 -to eth_txd[0] |
| eth_txen | PIN_R13 | | set_location_assignment PIN_R13 -to eth_txen |
| | | | # GPIO0通用扩展接口管脚约束 |
GPIO0通用扩展接口 | GPIO0_0 | PIN_T2 | | set_location_assignment PIN_T2 -to GPIO0_0 |
| GPIO0_1 | PIN_R1 | | set_location_assignment PIN_R1 -to GPIO0_1 |
| GPIO0_2 | PIN_P2 | | set_location_assignment PIN_P2 -to GPIO0_2 |
| GPIO0_3 | PIN_P1 | | set_location_assignment PIN_P1 -to GPIO0_3 |
| GPIO0_4 | PIN_N2 | | set_location_assignment PIN_N2 -to GPIO0_4 |
| GPIO0_5 | PIN_N1 | | set_location_assignment PIN_N1 -to GPIO0_5 |
| GPIO0_6 | PIN_L2 | | set_location_assignment PIN_L2 -to GPIO0_6 |
| GPIO0_7 | PIN_L1 | | set_location_assignment PIN_L1 -to GPIO0_7 |
| GPIO0_8 | PIN_K2 | | set_location_assignment PIN_K2 -to GPIO0_8 |
| GPIO0_9 | PIN_K1 | | set_location_assignment PIN_K1 -to GPIO0_9 |
| | 5V | | |
| | GND | | |
| GPIO0_10 | PIN_J2 | | set_location_assignment PIN_J2 -to GPIO0_10 |
| GPIO0_11 | PIN_J1 | | set_location_assignment PIN_J1 -to GPIO0_11 |
| GPIO0_12 | PIN_M10 | | set_location_assignment PIN_M10 -to GPIO0_12 |
| GPIO0_13 | PIN_P9 | | set_location_assignment PIN_P9 -to GPIO0_13 |
| GPIO0_14 | PIN_N9 | | set_location_assignment PIN_N9 -to GPIO0_14 |
| GPIO0_15 | PIN_L8 | | set_location_assignment PIN_L8 -to GPIO0_15 |
| GPIO0_16 | PIN_N8 | | set_location_assignment PIN_N8 -to GPIO0_16 |
| GPIO0_17 | PIN_P8 | | set_location_assignment PIN_P8 -to GPIO0_17 |
| GPIO0_18 | PIN_M8 | | set_location_assignment PIN_M8 -to GPIO0_18 |
| GPIO0_19 | PIN_M7 | | set_location_assignment PIN_M7 -to GPIO0_19 |
| GPIO0_20 | PIN_P6 | | set_location_assignment PIN_P6 -to GPIO0_20 |
| GPIO0_21 | PIN_N6 | | set_location_assignment PIN_N6 -to GPIO0_21 |
| GPIO0_22 | PIN_L7 | | set_location_assignment PIN_L7 -to GPIO0_22 |
| GPIO0_23 | PIN_P3 | | set_location_assignment PIN_P3 -to GPIO0_23 |
| GPIO0_24 | PIN_N5 | | set_location_assignment PIN_N5 -to GPIO0_24 |
| GPIO0_25 | PIN_N3 | | set_location_assignment PIN_N3 -to GPIO0_25 |
| | 3V3 | | |
| | GND | | |
| GPIO0_26 | PIN_M6 | | set_location_assignment PIN_M6 -to GPIO0_26 |
| GPIO0_27 | PIN_L4 | | set_location_assignment PIN_L4 -to GPIO0_27 |
| GPIO0_28 | PIN_K5 | | set_location_assignment PIN_K5 -to GPIO0_28 |
| GPIO0_29 | PIN_G1 | | set_location_assignment PIN_G1 -to GPIO0_29 |
| GPIO0_30 | PIN_G2 | | set_location_assignment PIN_G2 -to GPIO0_30 |
| GPIO0_31 | PIN_F3 | | set_location_assignment PIN_F3 -to GPIO0_31 |
| GPIO0_32 | PIN_D1 | | set_location_assignment PIN_D1 -to GPIO0_32 |
| GPIO0_33 | PIN_C2 | | set_location_assignment PIN_C2 -to GPIO0_33 |
| GPIO0_34 | PIN_B1 | | set_location_assignment PIN_B1 -to GPIO0_34 |
| GPIO0_35 | PIN_D9 | | set_location_assignment PIN_D9 -to GPIO0_35 |
| | | | # CMOS摄像头接口管脚约束 |
CMOS摄像头接口 | CMOS_D[0] | PIN_D15 | | set_location_assignment PIN_D15 -to CMOS_D[0] |
| CMOS_D[1] | PIN_C16 | | set_location_assignment PIN_C16 -to CMOS_D[1] |
| CMOS_D[2] | PIN_F15 | | set_location_assignment PIN_F15 -to CMOS_D[2] |
| CMOS_D[3] | PIN_D16 | | set_location_assignment PIN_D16 -to CMOS_D[3] |
| CMOS_D[4] | PIN_F16 | | set_location_assignment PIN_F16 -to CMOS_D[4] |
| CMOS_D[5] | PIN_G15 | | set_location_assignment PIN_G15 -to CMOS_D[5] |
| CMOS_D[6] | PIN_J14 | | set_location_assignment PIN_J14 -to CMOS_D[6] |
| CMOS_D[7] | PIN_K15 | | set_location_assignment PIN_K15 -to CMOS_D[7] |
| CMOS_HREF | PIN_K16 | | set_location_assignment PIN_K16 -to CMOS_HREF |
| CMOS_PCLK | PIN_L14 | | set_location_assignment PIN_L14 -to CMOS_PCLK |
| CMOS_SCLK | PIN_L13 | | set_location_assignment PIN_L13 -to CMOS_SCLK |
| CMOS_SDAT | PIN_N14 | | set_location_assignment PIN_N14 -to CMOS_SDAT |
| CMOS_VSYNC | PIN_J15 | | set_location_assignment PIN_J15 -to CMOS_VSYNC |
| CMOS_XCLK | PIN_J16 | | set_location_assignment PIN_J16 -to CMOS_XCLK |
| | | | # I2S音频接口管脚约束 |
I2S音频接口 | I2S_ADCDAT | PIN_P14 | | set_location_assignment PIN_P14 -to I2S_ADCDAT |
| I2S_ADCLRC | PIN_N12 | | set_location_assignment PIN_N12 -to I2S_ADCLRC |
| I2S_BCLK | PIN_L16 | | set_location_assignment PIN_L16 -to I2S_BCLK |
| I2S_DACDAT | PIN_N11 | | set_location_assignment PIN_N11 -to I2S_DACDAT |
| I2S_DACLRC | PIN_P11 | | set_location_assignment PIN_P11 -to I2S_DACLRC |
| I2S_MCLK | PIN_L15 | | set_location_assignment PIN_L15 -to I2S_MCLK |