Skip to content

Instantly share code, notes, and snippets.

@unaimillan
Created September 9, 2024 21:22
Show Gist options
  • Save unaimillan/ae4ba3d418200ddb24e983be502bc402 to your computer and use it in GitHub Desktop.
Save unaimillan/ae4ba3d418200ddb24e983be502bc402 to your computer and use it in GitHub Desktop.
Pin location assignment files for DE10-Lite (Blue) and Zeowaa A-C4E6 (Green) boards
set_global_assignment -name DEVICE 10M50DAF484C7G
set_global_assignment -name RESERVE_ALL_UNUSED_PINS_WEAK_PULLUP "AS INPUT TRI-STATED"
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to *
set_instance_assignment -name IO_STANDARD "3.3 V Schmitt Trigger" -to KEY[0]
set_instance_assignment -name IO_STANDARD "3.3 V Schmitt Trigger" -to KEY[1]
# set_instance_assignment -name IO_STANDARD "3.3 V Schmitt Trigger" -to ARDUINO_RESET_N
# set_location_assignment PIN_N5 -to ADC_CLK_10
set_location_assignment PIN_P11 -to MAX10_CLK1_50
# set_location_assignment PIN_N14 -to MAX10_CLK2_50
set_location_assignment PIN_B8 -to KEY[0]
set_location_assignment PIN_A7 -to KEY[1]
set_location_assignment PIN_C10 -to SW[0]
set_location_assignment PIN_C11 -to SW[1]
set_location_assignment PIN_D12 -to SW[2]
set_location_assignment PIN_C12 -to SW[3]
set_location_assignment PIN_A12 -to SW[4]
set_location_assignment PIN_B12 -to SW[5]
set_location_assignment PIN_A13 -to SW[6]
set_location_assignment PIN_A14 -to SW[7]
set_location_assignment PIN_B14 -to SW[8]
set_location_assignment PIN_F15 -to SW[9]
set_location_assignment PIN_A8 -to LEDR[0]
set_location_assignment PIN_A9 -to LEDR[1]
set_location_assignment PIN_A10 -to LEDR[2]
set_location_assignment PIN_B10 -to LEDR[3]
set_location_assignment PIN_D13 -to LEDR[4]
set_location_assignment PIN_C13 -to LEDR[5]
set_location_assignment PIN_E14 -to LEDR[6]
set_location_assignment PIN_D14 -to LEDR[7]
set_location_assignment PIN_A11 -to LEDR[8]
set_location_assignment PIN_B11 -to LEDR[9]
set_location_assignment PIN_C14 -to HEX0[0]
set_location_assignment PIN_E15 -to HEX0[1]
set_location_assignment PIN_C15 -to HEX0[2]
set_location_assignment PIN_C16 -to HEX0[3]
set_location_assignment PIN_E16 -to HEX0[4]
set_location_assignment PIN_D17 -to HEX0[5]
set_location_assignment PIN_C17 -to HEX0[6]
set_location_assignment PIN_D15 -to HEX0[7]
set_location_assignment PIN_C18 -to HEX1[0]
set_location_assignment PIN_D18 -to HEX1[1]
set_location_assignment PIN_E18 -to HEX1[2]
set_location_assignment PIN_B16 -to HEX1[3]
set_location_assignment PIN_A17 -to HEX1[4]
set_location_assignment PIN_A18 -to HEX1[5]
set_location_assignment PIN_B17 -to HEX1[6]
set_location_assignment PIN_A16 -to HEX1[7]
set_location_assignment PIN_B20 -to HEX2[0]
set_location_assignment PIN_A20 -to HEX2[1]
set_location_assignment PIN_B19 -to HEX2[2]
set_location_assignment PIN_A21 -to HEX2[3]
set_location_assignment PIN_B21 -to HEX2[4]
set_location_assignment PIN_C22 -to HEX2[5]
set_location_assignment PIN_B22 -to HEX2[6]
set_location_assignment PIN_A19 -to HEX2[7]
set_location_assignment PIN_F21 -to HEX3[0]
set_location_assignment PIN_E22 -to HEX3[1]
set_location_assignment PIN_E21 -to HEX3[2]
set_location_assignment PIN_C19 -to HEX3[3]
set_location_assignment PIN_C20 -to HEX3[4]
set_location_assignment PIN_D19 -to HEX3[5]
set_location_assignment PIN_E17 -to HEX3[6]
set_location_assignment PIN_D22 -to HEX3[7]
set_location_assignment PIN_F18 -to HEX4[0]
set_location_assignment PIN_E20 -to HEX4[1]
set_location_assignment PIN_E19 -to HEX4[2]
set_location_assignment PIN_J18 -to HEX4[3]
set_location_assignment PIN_H19 -to HEX4[4]
set_location_assignment PIN_F19 -to HEX4[5]
set_location_assignment PIN_F20 -to HEX4[6]
set_location_assignment PIN_F17 -to HEX4[7]
set_location_assignment PIN_J20 -to HEX5[0]
set_location_assignment PIN_K20 -to HEX5[1]
set_location_assignment PIN_L18 -to HEX5[2]
set_location_assignment PIN_N18 -to HEX5[3]
set_location_assignment PIN_M20 -to HEX5[4]
set_location_assignment PIN_N19 -to HEX5[5]
set_location_assignment PIN_N20 -to HEX5[6]
set_location_assignment PIN_L19 -to HEX5[7]
set_location_assignment PIN_N3 -to VGA_HS
set_location_assignment PIN_N1 -to VGA_VS
set_location_assignment PIN_AA1 -to VGA_R[0]
set_location_assignment PIN_V1 -to VGA_R[1]
set_location_assignment PIN_Y2 -to VGA_R[2]
set_location_assignment PIN_Y1 -to VGA_R[3]
set_location_assignment PIN_W1 -to VGA_G[0]
set_location_assignment PIN_T2 -to VGA_G[1]
set_location_assignment PIN_R2 -to VGA_G[2]
set_location_assignment PIN_R1 -to VGA_G[3]
set_location_assignment PIN_P1 -to VGA_B[0]
set_location_assignment PIN_T1 -to VGA_B[1]
set_location_assignment PIN_P4 -to VGA_B[2]
set_location_assignment PIN_N2 -to VGA_B[3]
# set_location_assignment PIN_U17 -to DRAM_ADDR[0]
# set_location_assignment PIN_W19 -to DRAM_ADDR[1]
# set_location_assignment PIN_V18 -to DRAM_ADDR[2]
# set_location_assignment PIN_U18 -to DRAM_ADDR[3]
# set_location_assignment PIN_U19 -to DRAM_ADDR[4]
# set_location_assignment PIN_T18 -to DRAM_ADDR[5]
# set_location_assignment PIN_T19 -to DRAM_ADDR[6]
# set_location_assignment PIN_R18 -to DRAM_ADDR[7]
# set_location_assignment PIN_P18 -to DRAM_ADDR[8]
# set_location_assignment PIN_P19 -to DRAM_ADDR[9]
# set_location_assignment PIN_T20 -to DRAM_ADDR[10]
# set_location_assignment PIN_P20 -to DRAM_ADDR[11]
# set_location_assignment PIN_R20 -to DRAM_ADDR[12]
# set_location_assignment PIN_T21 -to DRAM_BA[0]
# set_location_assignment PIN_T22 -to DRAM_BA[1]
# set_location_assignment PIN_U21 -to DRAM_CAS_N
# set_location_assignment PIN_N22 -to DRAM_CKE
# set_location_assignment PIN_L14 -to DRAM_CLK
# set_location_assignment PIN_U20 -to DRAM_CS_N
# set_location_assignment PIN_Y21 -to DRAM_DQ[0]
# set_location_assignment PIN_Y20 -to DRAM_DQ[1]
# set_location_assignment PIN_AA22 -to DRAM_DQ[2]
# set_location_assignment PIN_AA21 -to DRAM_DQ[3]
# set_location_assignment PIN_Y22 -to DRAM_DQ[4]
# set_location_assignment PIN_W22 -to DRAM_DQ[5]
# set_location_assignment PIN_W20 -to DRAM_DQ[6]
# set_location_assignment PIN_V21 -to DRAM_DQ[7]
# set_location_assignment PIN_P21 -to DRAM_DQ[8]
# set_location_assignment PIN_J22 -to DRAM_DQ[9]
# set_location_assignment PIN_H21 -to DRAM_DQ[10]
# set_location_assignment PIN_H22 -to DRAM_DQ[11]
# set_location_assignment PIN_G22 -to DRAM_DQ[12]
# set_location_assignment PIN_G20 -to DRAM_DQ[13]
# set_location_assignment PIN_G19 -to DRAM_DQ[14]
# set_location_assignment PIN_F22 -to DRAM_DQ[15]
# set_location_assignment PIN_V22 -to DRAM_LDQM
# set_location_assignment PIN_U22 -to DRAM_RAS_N
# set_location_assignment PIN_J21 -to DRAM_UDQM
# set_location_assignment PIN_V20 -to DRAM_WE_N
# set_location_assignment PIN_R3 -to CLK_I2C_SCL
# set_location_assignment PIN_P3 -to CLK_I2C_SDA
# set_location_assignment PIN_AB16 -to GSENSOR_CS_N
# set_location_assignment PIN_Y14 -to GSENSOR_INT[1]
# set_location_assignment PIN_Y13 -to GSENSOR_INT[2]
# set_location_assignment PIN_AB15 -to GSENSOR_SCLK
# set_location_assignment PIN_V11 -to GSENSOR_SDI
# set_location_assignment PIN_V12 -to GSENSOR_SDO
# set_location_assignment PIN_F16 -to ARDUINO_RESET_N
# set_location_assignment PIN_AB5 -to ARDUINO_IO[0]
# set_location_assignment PIN_AB6 -to ARDUINO_IO[1]
# set_location_assignment PIN_AB7 -to ARDUINO_IO[2]
# set_location_assignment PIN_AB8 -to ARDUINO_IO[3]
# set_location_assignment PIN_AB9 -to ARDUINO_IO[4]
# set_location_assignment PIN_Y10 -to ARDUINO_IO[5]
# set_location_assignment PIN_AA11 -to ARDUINO_IO[6]
# set_location_assignment PIN_AA12 -to ARDUINO_IO[7]
# set_location_assignment PIN_AB17 -to ARDUINO_IO[8]
# set_location_assignment PIN_AA17 -to ARDUINO_IO[9]
# set_location_assignment PIN_AB19 -to ARDUINO_IO[10]
# set_location_assignment PIN_AA19 -to ARDUINO_IO[11]
# set_location_assignment PIN_Y19 -to ARDUINO_IO[12]
# set_location_assignment PIN_AB20 -to ARDUINO_IO[13]
# set_location_assignment PIN_AB21 -to ARDUINO_IO[14]
# set_location_assignment PIN_AA20 -to ARDUINO_IO[15]
set_location_assignment PIN_V10 -to GPIO[0]
set_location_assignment PIN_W10 -to GPIO[1]
set_location_assignment PIN_V9 -to GPIO[2]
set_location_assignment PIN_W9 -to GPIO[3]
set_location_assignment PIN_V8 -to GPIO[4]
set_location_assignment PIN_W8 -to GPIO[5]
set_location_assignment PIN_V7 -to GPIO[6]
set_location_assignment PIN_W7 -to GPIO[7]
set_location_assignment PIN_W6 -to GPIO[8]
set_location_assignment PIN_V5 -to GPIO[9]
set_location_assignment PIN_W5 -to GPIO[10]
set_location_assignment PIN_AA15 -to GPIO[11]
set_location_assignment PIN_AA14 -to GPIO[12]
set_location_assignment PIN_W13 -to GPIO[13]
set_location_assignment PIN_W12 -to GPIO[14]
set_location_assignment PIN_AB13 -to GPIO[15]
set_location_assignment PIN_AB12 -to GPIO[16]
set_location_assignment PIN_Y11 -to GPIO[17]
set_location_assignment PIN_AB11 -to GPIO[18]
set_location_assignment PIN_W11 -to GPIO[19]
set_location_assignment PIN_AB10 -to GPIO[20]
set_location_assignment PIN_AA10 -to GPIO[21]
set_location_assignment PIN_AA9 -to GPIO[22]
set_location_assignment PIN_Y8 -to GPIO[23]
set_location_assignment PIN_AA8 -to GPIO[24]
set_location_assignment PIN_Y7 -to GPIO[25]
set_location_assignment PIN_AA7 -to GPIO[26]
set_location_assignment PIN_Y6 -to GPIO[27]
set_location_assignment PIN_AA6 -to GPIO[28]
set_location_assignment PIN_Y5 -to GPIO[29]
set_location_assignment PIN_AA5 -to GPIO[30]
set_location_assignment PIN_Y4 -to GPIO[31]
set_location_assignment PIN_AB3 -to GPIO[32]
set_location_assignment PIN_Y3 -to GPIO[33]
set_location_assignment PIN_AB2 -to GPIO[34]
set_location_assignment PIN_AA2 -to GPIO[35]
set_global_assignment -name DEVICE EP4CE6E22C8
# set_global_assignment -name DEVICE EP4CE10E22C8
set_global_assignment -name RESERVE_ALL_UNUSED_PINS_WEAK_PULLUP "AS INPUT TRI-STATED"
set_global_assignment -name CYCLONEII_RESERVE_NCEO_AFTER_CONFIGURATION "USE AS REGULAR IO"
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to *
set_location_assignment PIN_23 -to CLK
# set_location_assignment PIN_24 -to CLK_USER
# set_location_assignment PIN_88 -to CLK_IN_1
# set_location_assignment PIN_89 -to CLK_IN_2
set_location_assignment PIN_86 -to KEY_N[0]
set_location_assignment PIN_87 -to KEY_N[1]
set_location_assignment PIN_91 -to KEY_N[2]
set_location_assignment PIN_90 -to KEY_N[3]
set_location_assignment PIN_68 -to SW_N[0]
set_location_assignment PIN_67 -to SW_N[1]
set_location_assignment PIN_66 -to SW_N[2]
set_location_assignment PIN_65 -to SW_N[3]
set_location_assignment PIN_64 -to SW_N[4]
set_location_assignment PIN_60 -to SW_N[5]
set_location_assignment PIN_59 -to SW_N[6]
set_location_assignment PIN_58 -to SW_N[7]
set_location_assignment PIN_69 -to LED_N[0]
set_location_assignment PIN_70 -to LED_N[1]
set_location_assignment PIN_71 -to LED_N[2]
set_location_assignment PIN_75 -to LED_N[3]
set_location_assignment PIN_76 -to LED_N[4]
set_location_assignment PIN_77 -to LED_N[5]
set_location_assignment PIN_84 -to LED_N[6]
set_location_assignment PIN_83 -to LED_N[7]
set_location_assignment PIN_80 -to LED_N[8]
set_location_assignment PIN_74 -to LED_N[9]
set_location_assignment PIN_73 -to LED_N[10]
set_location_assignment PIN_72 -to LED_N[11]
set_location_assignment PIN_115 -to ABCDEFGH_N[0]
set_location_assignment PIN_119 -to ABCDEFGH_N[1]
set_location_assignment PIN_120 -to ABCDEFGH_N[2]
set_location_assignment PIN_121 -to ABCDEFGH_N[3]
set_location_assignment PIN_124 -to ABCDEFGH_N[4]
set_location_assignment PIN_125 -to ABCDEFGH_N[5]
set_location_assignment PIN_126 -to ABCDEFGH_N[6]
set_location_assignment PIN_127 -to ABCDEFGH_N[7]
set_location_assignment PIN_128 -to DIGIT_N[0]
set_location_assignment PIN_129 -to DIGIT_N[1]
set_location_assignment PIN_132 -to DIGIT_N[2]
set_location_assignment PIN_133 -to DIGIT_N[3]
set_location_assignment PIN_135 -to DIGIT_N[4]
set_location_assignment PIN_136 -to DIGIT_N[5]
set_location_assignment PIN_137 -to DIGIT_N[6]
set_location_assignment PIN_138 -to DIGIT_N[7]
set_location_assignment PIN_143 -to VGA_VSYNC
set_location_assignment PIN_142 -to VGA_HSYNC
set_location_assignment PIN_144 -to VGA_RGB[0]
set_location_assignment PIN_1 -to VGA_RGB[1]
set_location_assignment PIN_2 -to VGA_RGB[2]
set_location_assignment PIN_30 -to GPIO[0]
set_location_assignment PIN_28 -to GPIO[1]
set_location_assignment PIN_32 -to GPIO[2]
set_location_assignment PIN_31 -to GPIO[3]
set_location_assignment PIN_34 -to GPIO[4]
set_location_assignment PIN_33 -to GPIO[5]
set_location_assignment PIN_39 -to GPIO[6]
set_location_assignment PIN_38 -to GPIO[7]
# GND pin on the board
# GND pin on the board
set_location_assignment PIN_42 -to GPIO[8]
set_location_assignment PIN_43 -to GPIO[9]
set_location_assignment PIN_44 -to GPIO[10]
set_location_assignment PIN_46 -to GPIO[11]
set_location_assignment PIN_49 -to GPIO[12]
set_location_assignment PIN_50 -to GPIO[13]
# GND pin on the board
# GND pin on the board
set_location_assignment PIN_52 -to GPIO[14]
set_location_assignment PIN_51 -to GPIO[15]
set_location_assignment PIN_54 -to GPIO[16]
set_location_assignment PIN_53 -to GPIO[17]
# PIN_58 is used as SW[7]
set_location_assignment PIN_55 -to GPIO[18]
# GND pin on the board
# GND pin on the board
# CLK_IN_1 (see above)
# CLK_IN_2 (see above)
set_location_assignment PIN_114 -to UART_RX
# set_location_assignment PIN_113 -to UART_TX
# If this signal is not commented out and is not used, it makes annoying sound
# set_location_assignment PIN_141 -to BUZZER
# set_location_assignment PIN_11 -to PS2_CLK
# set_location_assignment PIN_10 -to PS2_DATA
# set_location_assignment PIN_3 -to EEPROM_SDA
# set_location_assignment PIN_7 -to EEPROM_SCK
# LCD1602/12864
# set_location_assignment PIN_101 -to LCD_D0
# set_location_assignment PIN_103 -to LCD_D1
# set_location_assignment PIN_104 -to LCD_D2
# set_location_assignment PIN_105 -to LCD_D3
# set_location_assignment PIN_106 -to LCD_D4
# set_location_assignment PIN_110 -to LCD_D5
# set_location_assignment PIN_111 -to LCD_D6
# set_location_assignment PIN_112 -to LCD_D7
# set_location_assignment PIN_85 -to LCD_RS
# set_location_assignment PIN_99 -to LCD_WR
# set_location_assignment PIN_100 -to LCD_EN
# Useful information
#
# http://land-boards.com/blwiki/index.php?title=A-C4E6_Cyclone_IV_FPGA_EP4CE6E22C8N_Development_Board
# http://land-boards.com/blwiki/index.php?title=A-C4E10_Cyclone_IV_FPGA_EP4CE10E22C8N_Development_Board
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment