| 1 |
# Top level pins for bladeRF |
| 2 |
package require ::quartus::project |
| 3 |
|
| 4 |
########## |
| 5 |
# BANK 3A/3B |
| 6 |
########## |
| 7 |
set_location_assignment PIN_R6 -to fx3_gpif[6] |
| 8 |
set_location_assignment PIN_U7 -to fx3_gpif[5] |
| 9 |
set_location_assignment PIN_R5 -to fx3_gpif[8] |
| 10 |
set_location_assignment PIN_U8 -to fx3_gpif[7] |
| 11 |
set_location_assignment PIN_P6 -to fx3_gpif[4] |
| 12 |
set_location_assignment PIN_W8 -to fx3_gpif[9] |
| 13 |
set_location_assignment PIN_N6 -to fx3_gpif[10] |
| 14 |
set_location_assignment PIN_W9 -to fx3_gpif[11] |
| 15 |
set_location_assignment PIN_T7 -to fx3_gpif[12] |
| 16 |
set_location_assignment PIN_U6 -to fx3_gpif[3] |
| 17 |
set_location_assignment PIN_T8 -to fx3_gpif[13] |
| 18 |
set_location_assignment PIN_V6 -to fx3_ctl[9] |
| 19 |
set_location_assignment PIN_M6 -to fx3_gpif[15] |
| 20 |
set_location_assignment PIN_R7 -to fx3_gpif[16] |
| 21 |
set_location_assignment PIN_M7 -to fx3_gpif[17] |
| 22 |
set_location_assignment PIN_P7 -to fx3_gpif[14] |
| 23 |
set_location_assignment PIN_AB6 -to fx3_gpif[0] |
| 24 |
set_location_assignment PIN_V9 -to fx3_gpif[18] |
| 25 |
set_location_assignment PIN_AB5 -to fx3_gpif[1] |
| 26 |
set_location_assignment PIN_V10 -to fx3_gpif[19] |
| 27 |
set_location_assignment PIN_P8 -to fx3_gpif[20] |
| 28 |
set_location_assignment PIN_AA7 -to fx3_gpif[2] |
| 29 |
set_location_assignment PIN_N8 -to fx3_gpif[21] |
| 30 |
set_location_assignment PIN_AB7 -to fx3_gpif[22] |
| 31 |
set_location_assignment PIN_AA8 -to fx3_gpif[23] |
| 32 |
set_location_assignment PIN_T9 -to fx3_gpif[24] |
| 33 |
set_location_assignment PIN_AB8 -to fx3_gpif[25] |
| 34 |
set_location_assignment PIN_U10 -to fx3_gpif[26] |
| 35 |
set_location_assignment PIN_M8 -to fx3_gpif[27] |
| 36 |
set_location_assignment PIN_AA10 -to fx3_gpif[28] |
| 37 |
set_location_assignment PIN_M9 -to fx3_gpif[29] |
| 38 |
set_location_assignment PIN_AA9 -to fx3_gpif[30] |
| 39 |
set_location_assignment PIN_Y10 -to fx3_gpif[31] |
| 40 |
set_location_assignment PIN_Y9 -to fx3_ctl[0] |
| 41 |
set_location_assignment PIN_R9 -to fx3_ctl[1] |
| 42 |
set_location_assignment PIN_U11 -to fx3_ctl[2] |
| 43 |
set_location_assignment PIN_R12 -to fx3_ctl[3] |
| 44 |
set_location_assignment PIN_U12 -to fx3_ctl[4] |
| 45 |
set_location_assignment PIN_P12 -to fx3_ctl[5] |
| 46 |
set_location_assignment PIN_AB10 -to fx3_ctl[6] |
| 47 |
set_location_assignment PIN_R10 -to fx3_ctl[7] |
| 48 |
set_location_assignment PIN_AB11 -to fx3_ctl[8] |
| 49 |
set_location_assignment PIN_P9 -to fx3_ctl[10] |
| 50 |
set_location_assignment PIN_Y11 -to fx3_ctl[11] |
| 51 |
set_location_assignment PIN_N9 -to fx3_pclk |
| 52 |
set_location_assignment PIN_AA12 -to fx3_ctl[12] |
| 53 |
set_location_assignment PIN_R11 -to pwr_status |
| 54 |
|
| 55 |
|
| 56 |
# Bank Voltage |
| 57 |
set_global_assignment -name IOBANK_VCCIO "1.8V" -section_id "3A" |
| 58 |
set_global_assignment -name IOBANK_VCCIO "1.8V" -section_id "3B" |
| 59 |
|
| 60 |
# Single-ended output constraints |
| 61 |
set outs {} |
| 62 |
|
| 63 |
foreach pin ${outs} { |
| 64 |
set_instance_assignment -name IO_STANDARD "1.8 V" -to ${pin} |
| 65 |
set_instance_assignment -name CURRENT_STRENGTH_NEW "MAXIMUM CURRENT" -to ${pin} |
| 66 |
set_instance_assignment -name SLEW_RATE 1 -to ${pin} |
| 67 |
} |
| 68 |
|
| 69 |
# Single-ended inout constraints |
| 70 |
set inouts {} |
| 71 |
for { set i 0 } { $i < 32 } { incr i } { |
| 72 |
lappend inouts "fx3_gpif\[${i}\]" |
| 73 |
} |
| 74 |
for { set i 0 } { $i < 13 } { incr i } { |
| 75 |
lappend inouts "fx3_ctl\[${i}\]" |
| 76 |
} |
| 77 |
|
| 78 |
foreach pin ${inouts} { |
| 79 |
set_instance_assignment -name IO_STANDARD "1.8 V" -to ${pin} |
| 80 |
set_instance_assignment -name CURRENT_STRENGTH_NEW "MAXIMUM CURRENT" -to ${pin} |
| 81 |
set_instance_assignment -name SLEW_RATE 1 -to ${pin} |
| 82 |
} |
| 83 |
|
| 84 |
# Single-ended input constraints |
| 85 |
set ins { |
| 86 |
fx3_pclk |
| 87 |
pwr_status |
| 88 |
} |
| 89 |
|
| 90 |
foreach pin ${ins} { |
| 91 |
set_instance_assignment -name IO_STANDARD "1.8 V" -to ${pin} |
| 92 |
} |
| 93 |
|
| 94 |
set_instance_assignment -name WEAK_PULL_UP_RESISTOR "ON" -to pwr_status |
| 95 |
|
| 96 |
|
| 97 |
########## |
| 98 |
# BANK 4A & 5B |
| 99 |
########## |
| 100 |
# Bank 4A |
| 101 |
set_location_assignment PIN_V13 -to "adi_rx_data[0](n)" |
| 102 |
set_location_assignment PIN_AB12 -to adi_ctrl_out[7] |
| 103 |
set_location_assignment PIN_U13 -to adi_rx_data[0] |
| 104 |
set_location_assignment PIN_T12 -to "adi_rx_data[1](n)" |
| 105 |
set_location_assignment PIN_AA14 -to adi_ctrl_out[6] |
| 106 |
set_location_assignment PIN_T13 -to adi_rx_data[1] |
| 107 |
set_location_assignment PIN_AA13 -to adi_ctrl_out[5] |
| 108 |
set_location_assignment PIN_AB15 -to adi_ctrl_out[4] |
| 109 |
set_location_assignment PIN_Y14 -to "adi_rx_data[2](n)" |
| 110 |
set_location_assignment PIN_Y15 -to adi_rx_data[2] |
| 111 |
set_location_assignment PIN_V14 -to "adi_rx_clock(n)" |
| 112 |
set_location_assignment PIN_V15 -to adi_rx_clock |
| 113 |
set_location_assignment PIN_AB18 -to adi_tx_spdt1_v[1] |
| 114 |
set_location_assignment PIN_AB20 -to "adi_tx_clock(n)" |
| 115 |
set_location_assignment PIN_Y16 -to "adi_rx_data[3](n)" |
| 116 |
set_location_assignment PIN_AB21 -to adi_tx_clock |
| 117 |
set_location_assignment PIN_Y17 -to adi_rx_data[3] |
| 118 |
set_location_assignment PIN_T14 -to "adi_rx_data[4](n)" |
| 119 |
set_location_assignment PIN_AA17 -to "adi_tx_frame(n)" |
| 120 |
set_location_assignment PIN_U15 -to adi_rx_data[4] |
| 121 |
set_location_assignment PIN_AA18 -to adi_tx_frame |
| 122 |
set_location_assignment PIN_AA19 -to "adi_tx_data[5](n)" |
| 123 |
set_location_assignment PIN_V20 -to "adi_rx_data[5](n)" |
| 124 |
set_location_assignment PIN_AA20 -to adi_tx_data[5] |
| 125 |
set_location_assignment PIN_W19 -to adi_rx_data[5] |
| 126 |
set_location_assignment PIN_AB22 -to "adi_tx_data[4](n)" |
| 127 |
set_location_assignment PIN_AA22 -to adi_tx_data[4] |
| 128 |
set_location_assignment PIN_Y22 -to "adi_tx_data[3](n)" |
| 129 |
set_location_assignment PIN_Y20 -to "adi_rx_frame(n)" |
| 130 |
set_location_assignment PIN_W22 -to adi_tx_data[3] |
| 131 |
set_location_assignment PIN_Y19 -to adi_rx_frame |
| 132 |
set_location_assignment PIN_Y21 -to "adi_tx_data[2](n)" |
| 133 |
set_location_assignment PIN_R14 -to adi_tx_spdt1_v[2] |
| 134 |
set_location_assignment PIN_W21 -to adi_tx_data[2] |
| 135 |
set_location_assignment PIN_U22 -to "adi_tx_data[1](n)" |
| 136 |
set_location_assignment PIN_V19 -to adi_ctrl_out[3] |
| 137 |
set_location_assignment PIN_V21 -to adi_tx_data[1] |
| 138 |
set_location_assignment PIN_V18 -to adi_ctrl_out[2] |
| 139 |
set_location_assignment PIN_U16 -to adi_ctrl_out[1] |
| 140 |
set_location_assignment PIN_U21 -to "adi_tx_data[0](n)" |
| 141 |
set_location_assignment PIN_U17 -to adi_ctrl_out[0] |
| 142 |
set_location_assignment PIN_U20 -to adi_tx_data[0] |
| 143 |
set_location_assignment PIN_P14 -to adi_rx_spdt2_v[2] |
| 144 |
set_location_assignment PIN_AB17 -to adi_tx_spdt2_v[1] |
| 145 |
set_location_assignment PIN_AA15 -to adi_tx_spdt2_v[2] |
| 146 |
|
| 147 |
# Bank 5B |
| 148 |
set_location_assignment PIN_N16 -to adi_ctrl_in[0] |
| 149 |
set_location_assignment PIN_N20 -to adi_ctrl_in[1] |
| 150 |
set_location_assignment PIN_M16 -to adi_ctrl_in[2] |
| 151 |
set_location_assignment PIN_N21 -to adi_ctrl_in[3] |
| 152 |
set_location_assignment PIN_M18 -to adi_sync_in |
| 153 |
set_location_assignment PIN_K17 -to adi_enable |
| 154 |
set_location_assignment PIN_M20 -to adi_en_agc |
| 155 |
set_location_assignment PIN_L17 -to adi_txnrx |
| 156 |
set_location_assignment PIN_M21 -to adi_reset_n |
| 157 |
set_location_assignment PIN_L19 -to adi_spi_csn |
| 158 |
set_location_assignment PIN_K21 -to adi_spi_sdo |
| 159 |
set_location_assignment PIN_L18 -to adi_spi_sdi |
| 160 |
set_location_assignment PIN_K22 -to adi_spi_sclk |
| 161 |
set_location_assignment PIN_N19 -to adi_rx_spdt1_v[1] |
| 162 |
set_location_assignment PIN_M22 -to adi_rx_spdt1_v[2] |
| 163 |
set_location_assignment PIN_L22 -to adi_rx_spdt2_v[1] |
| 164 |
|
| 165 |
|
| 166 |
# Bank voltage |
| 167 |
set_global_assignment -name IOBANK_VCCIO "2.5V" -section_id "4A" |
| 168 |
set_global_assignment -name IOBANK_VCCIO "2.5V" -section_id "5B" |
| 169 |
|
| 170 |
|
| 171 |
# Single-ended output constraints |
| 172 |
set outs { |
| 173 |
adi_en_agc |
| 174 |
adi_txnrx |
| 175 |
adi_reset_n |
| 176 |
adi_enable |
| 177 |
adi_spi_csn |
| 178 |
adi_spi_sdi |
| 179 |
adi_spi_sclk |
| 180 |
adi_sync_in |
| 181 |
} |
| 182 |
for { set i 0 } { $i < 4 } { incr i } { |
| 183 |
lappend outs "adi_ctrl_in\[${i}\]" |
| 184 |
} |
| 185 |
for { set i 1 } { $i < 3 } { incr i } { |
| 186 |
for { set j 1 } { $j < 3 } { incr j } { |
| 187 |
lappend outs "adi_rx_spdt${j}_v\[${i}\]" |
| 188 |
lappend outs "adi_tx_spdt${j}_v\[${i}\]" |
| 189 |
|
| 190 |
set_instance_assignment -name IO_MAXIMUM_TOGGLE_RATE "1 MHz" -to adi_rx_spdt${j}_v\[${i}\] |
| 191 |
set_instance_assignment -name IO_MAXIMUM_TOGGLE_RATE "1 MHz" -to adi_tx_spdt${j}_v\[${i}\] |
| 192 |
} |
| 193 |
} |
| 194 |
|
| 195 |
foreach pin ${outs} { |
| 196 |
set_instance_assignment -name IO_STANDARD "2.5 V" -to ${pin} |
| 197 |
set_instance_assignment -name CURRENT_STRENGTH_NEW "MAXIMUM CURRENT" -to ${pin} |
| 198 |
set_instance_assignment -name SLEW_RATE 1 -to ${pin} |
| 199 |
} |
| 200 |
|
| 201 |
# Single-ended inout constraints |
| 202 |
set inouts { |
| 203 |
} |
| 204 |
|
| 205 |
foreach pin ${inouts} { |
| 206 |
set_instance_assignment -name IO_STANDARD "2.5 V" -to ${pin} |
| 207 |
set_instance_assignment -name CURRENT_STRENGTH_NEW "MAXIMUM CURRENT" -to ${pin} |
| 208 |
set_instance_assignment -name SLEW_RATE 1 -to ${pin} |
| 209 |
} |
| 210 |
|
| 211 |
# Single-ended input constraints |
| 212 |
set ins { |
| 213 |
adi_spi_sdo |
| 214 |
} |
| 215 |
for { set i 0 } { $i < 8 } { incr i } { |
| 216 |
lappend ins "adi_ctrl_out\[${i}\]" |
| 217 |
} |
| 218 |
|
| 219 |
foreach pin ${ins} { |
| 220 |
set_instance_assignment -name IO_STANDARD "2.5 V" -to ${pin} |
| 221 |
} |
| 222 |
|
| 223 |
# LVDS outputs |
| 224 |
set lvds_outs { |
| 225 |
adi_tx_frame |
| 226 |
adi_tx_clock |
| 227 |
} |
| 228 |
for { set i 0 } { $i < 6 } { incr i } { |
| 229 |
lappend lvds_outs "adi_tx_data\[${i}\]" |
| 230 |
} |
| 231 |
|
| 232 |
foreach pin ${lvds_outs} { |
| 233 |
set_instance_assignment -name IO_STANDARD "LVDS" -to ${pin} |
| 234 |
#set_instance_assignment -name IO_STANDARD "LVDS" -to "${pin}(n)" |
| 235 |
} |
| 236 |
|
| 237 |
# LVDS inputs |
| 238 |
set lvds_ins { |
| 239 |
adi_rx_frame |
| 240 |
adi_rx_clock |
| 241 |
} |
| 242 |
for { set i 0 } { $i < 6 } { incr i } { |
| 243 |
lappend lvds_ins "adi_rx_data\[${i}\]" |
| 244 |
} |
| 245 |
|
| 246 |
foreach pin ${lvds_ins} { |
| 247 |
set_instance_assignment -name IO_STANDARD "LVDS" -to ${pin} |
| 248 |
#set_instance_assignment -name IO_STANDARD "LVDS" -to "${pin}(n)" |
| 249 |
set_instance_assignment -name INPUT_TERMINATION "DIFFERENTIAL" -to ${pin} |
| 250 |
#set_instance_assignment -name INPUT_TERMINATION "DIFFERENTIAL" -to "${pin}(n)" |
| 251 |
} |
| 252 |
|
| 253 |
|
| 254 |
########## |
| 255 |
# BANK 5A |
| 256 |
########## |
| 257 |
set_location_assignment PIN_T19 -to ufl_clock_oe |
| 258 |
set_location_assignment PIN_T18 -to adf_ce |
| 259 |
set_location_assignment PIN_T17 -to c5_clock2_oe |
| 260 |
set_location_assignment PIN_T22 -to si_clock_sel |
| 261 |
set_location_assignment PIN_P16 -to fx3_uart_cts |
| 262 |
set_location_assignment PIN_P18 -to fx3_uart_rxd |
| 263 |
set_location_assignment PIN_P17 -to fx3_uart_txd |
| 264 |
set_location_assignment PIN_T20 -to exp_clock_oe |
| 265 |
set_location_assignment PIN_P19 -to pwr_sda |
| 266 |
set_location_assignment PIN_P22 -to pwr_scl |
| 267 |
set_location_assignment PIN_T15 -to adf_muxout |
| 268 |
set_location_assignment PIN_R15 -to adf_sclk |
| 269 |
set_location_assignment PIN_R17 -to adf_sdi |
| 270 |
set_location_assignment PIN_R16 -to adf_csn |
| 271 |
set_location_assignment PIN_R22 -to rx_bias_en |
| 272 |
set_location_assignment PIN_R21 -to tx_bias_en |
| 273 |
|
| 274 |
|
| 275 |
# Bank voltage |
| 276 |
set_global_assignment -name IOBANK_VCCIO "3.3V" -section_id "5A" |
| 277 |
|
| 278 |
# Single-ended output constraints |
| 279 |
set outs { |
| 280 |
adf_sclk |
| 281 |
adf_sdi |
| 282 |
adf_csn |
| 283 |
fx3_uart_cts |
| 284 |
fx3_uart_rxd |
| 285 |
adf_ce |
| 286 |
exp_clock_oe |
| 287 |
ufl_clock_oe |
| 288 |
c5_clock2_oe |
| 289 |
si_clock_sel |
| 290 |
pwr_scl |
| 291 |
rx_bias_en |
| 292 |
tx_bias_en |
| 293 |
} |
| 294 |
|
| 295 |
foreach pin ${outs} { |
| 296 |
set_instance_assignment -name IO_STANDARD "3.3-V LVCMOS" -to ${pin} |
| 297 |
set_instance_assignment -name CURRENT_STRENGTH_NEW "MAXIMUM CURRENT" -to ${pin} |
| 298 |
set_instance_assignment -name SLEW_RATE 1 -to ${pin} |
| 299 |
} |
| 300 |
|
| 301 |
# Single-ended inout constraints |
| 302 |
set inouts { |
| 303 |
pwr_sda |
| 304 |
} |
| 305 |
|
| 306 |
foreach pin ${inouts} { |
| 307 |
set_instance_assignment -name IO_STANDARD "3.3-V LVCMOS" -to ${pin} |
| 308 |
set_instance_assignment -name CURRENT_STRENGTH_NEW "MAXIMUM CURRENT" -to ${pin} |
| 309 |
set_instance_assignment -name SLEW_RATE 1 -to ${pin} |
| 310 |
} |
| 311 |
|
| 312 |
# Single-ended input constraints |
| 313 |
set ins { |
| 314 |
fx3_uart_txd |
| 315 |
adf_muxout |
| 316 |
} |
| 317 |
|
| 318 |
foreach pin ${ins} { |
| 319 |
set_instance_assignment -name IO_STANDARD "3.3-V LVCMOS" -to ${pin} |
| 320 |
} |
| 321 |
|
| 322 |
set_instance_assignment -name WEAK_PULL_UP_RESISTOR "ON" -to adf_muxout |
| 323 |
set_instance_assignment -name WEAK_PULL_UP_RESISTOR "ON" -to fx3_uart_rxd |
| 324 |
|
| 325 |
|
| 326 |
########## |
| 327 |
# BANK 7A & 8A |
| 328 |
########## |
| 329 |
|
| 330 |
# Bank 7A |
| 331 |
set_location_assignment PIN_K20 -to led[3] |
| 332 |
set_location_assignment PIN_B16 -to led[2] |
| 333 |
set_location_assignment PIN_K19 -to led[1] |
| 334 |
set_location_assignment PIN_G15 -to exp_present |
| 335 |
set_location_assignment PIN_B15 -to exp_i2c_scl |
| 336 |
set_location_assignment PIN_F14 -to exp_i2c_sda |
| 337 |
set_location_assignment PIN_H13 -to c5_clock2 |
| 338 |
set_location_assignment PIN_A12 -to dac_sclk |
| 339 |
set_location_assignment PIN_H11 -to dac_sdi |
| 340 |
set_location_assignment PIN_G12 -to dac_csn |
| 341 |
set_location_assignment PIN_D12 -to exp_clock_req |
| 342 |
set_location_assignment PIN_H16 -to mini_exp1 |
| 343 |
set_location_assignment PIN_H15 -to mini_exp2 |
| 344 |
set_location_assignment PIN_E12 -to hw_rev[0] |
| 345 |
set_location_assignment PIN_E15 -to hw_rev[1] |
| 346 |
set_location_assignment PIN_C11 -to ps_sync_1p1 |
| 347 |
set_location_assignment PIN_C13 -to ps_sync_1p8 |
| 348 |
|
| 349 |
# Bank 8A |
| 350 |
set_location_assignment PIN_G10 -to exp_gpio[15] |
| 351 |
set_location_assignment PIN_L7 -to exp_gpio[17] |
| 352 |
set_location_assignment PIN_F10 -to exp_gpio[14] |
| 353 |
set_location_assignment PIN_K7 -to exp_gpio[16] |
| 354 |
set_location_assignment PIN_J7 -to exp_gpio[1] |
| 355 |
set_location_assignment PIN_H8 -to exp_gpio[31] |
| 356 |
set_location_assignment PIN_J8 -to exp_gpio[0] |
| 357 |
set_location_assignment PIN_G8 -to exp_gpio[30] |
| 358 |
set_location_assignment PIN_J9 -to exp_gpio[3] |
| 359 |
set_location_assignment PIN_A10 -to exp_gpio[19] |
| 360 |
set_location_assignment PIN_H9 -to exp_gpio[2] |
| 361 |
set_location_assignment PIN_A9 -to exp_gpio[18] |
| 362 |
set_location_assignment PIN_B10 -to exp_gpio[5] |
| 363 |
set_location_assignment PIN_A5 -to exp_gpio[21] |
| 364 |
set_location_assignment PIN_C9 -to exp_gpio[4] |
| 365 |
set_location_assignment PIN_B5 -to exp_gpio[20] |
| 366 |
set_location_assignment PIN_E10 -to exp_gpio[7] |
| 367 |
set_location_assignment PIN_B6 -to exp_gpio[23] |
| 368 |
set_location_assignment PIN_F9 -to exp_gpio[6] |
| 369 |
set_location_assignment PIN_B7 -to exp_gpio[22] |
| 370 |
set_location_assignment PIN_A8 -to exp_gpio[9] |
| 371 |
set_location_assignment PIN_C6 -to exp_gpio[25] |
| 372 |
set_location_assignment PIN_A7 -to exp_gpio[8] |
| 373 |
set_location_assignment PIN_D6 -to exp_gpio[24] |
| 374 |
set_location_assignment PIN_E9 -to exp_gpio[11] |
| 375 |
set_location_assignment PIN_D7 -to exp_gpio[27] |
| 376 |
set_location_assignment PIN_D9 -to exp_gpio[10] |
| 377 |
set_location_assignment PIN_C8 -to exp_gpio[26] |
| 378 |
set_location_assignment PIN_G6 -to exp_gpio[13] |
| 379 |
set_location_assignment PIN_F7 -to exp_gpio[29] |
| 380 |
set_location_assignment PIN_H6 -to exp_gpio[12] |
| 381 |
set_location_assignment PIN_E7 -to exp_gpio[28] |
| 382 |
|
| 383 |
|
| 384 |
# Bank Voltage |
| 385 |
set_global_assignment -name IOBANK_VCCIO "3.3V" -section_id "7A" |
| 386 |
set_global_assignment -name IOBANK_VCCIO "3.3V" -section_id "8A" |
| 387 |
|
| 388 |
# Single-ended output constraints |
| 389 |
set outs { |
| 390 |
dac_sclk |
| 391 |
dac_sdi |
| 392 |
dac_csn |
| 393 |
ps_sync_1p1 |
| 394 |
ps_sync_1p8 |
| 395 |
} |
| 396 |
for { set i 1 } { $i < 4 } { incr i } { |
| 397 |
lappend outs "led\[${i}\]" |
| 398 |
} |
| 399 |
|
| 400 |
foreach pin ${outs} { |
| 401 |
set_instance_assignment -name IO_STANDARD "3.3-V LVCMOS" -to ${pin} |
| 402 |
if { ${pin} == "exp_clock_out" } { |
| 403 |
set_instance_assignment -name CURRENT_STRENGTH_NEW "MAXIMUM CURRENT" -to ${pin} |
| 404 |
set_instance_assignment -name SLEW_RATE 1 -to ${pin} |
| 405 |
} else { |
| 406 |
set_instance_assignment -name CURRENT_STRENGTH_NEW "MINIMUM CURRENT" -to ${pin} |
| 407 |
set_instance_assignment -name SLEW_RATE 0 -to ${pin} |
| 408 |
} |
| 409 |
} |
| 410 |
|
| 411 |
# Single-ended inout constraints |
| 412 |
set inouts { |
| 413 |
exp_i2c_scl |
| 414 |
exp_i2c_sda |
| 415 |
mini_exp1 |
| 416 |
mini_exp2 |
| 417 |
} |
| 418 |
for { set i 0 } { $i < 32 } { incr i } { |
| 419 |
lappend inouts "exp_gpio\[${i}\]" |
| 420 |
} |
| 421 |
|
| 422 |
foreach pin ${inouts} { |
| 423 |
set_instance_assignment -name IO_STANDARD "3.3-V LVCMOS" -to ${pin} |
| 424 |
set_instance_assignment -name CURRENT_STRENGTH_NEW "MAXIMUM CURRENT" -to ${pin} |
| 425 |
set_instance_assignment -name SLEW_RATE 1 -to ${pin} |
| 426 |
} |
| 427 |
|
| 428 |
# Single-ended input constraints |
| 429 |
set ins { |
| 430 |
c5_clock2 |
| 431 |
exp_present |
| 432 |
exp_clock_req |
| 433 |
hw_rev[0] |
| 434 |
hw_rev[1] |
| 435 |
} |
| 436 |
|
| 437 |
foreach pin ${ins} { |
| 438 |
set_instance_assignment -name IO_STANDARD "3.3-V LVCMOS" -to ${pin} |
| 439 |
} |
| 440 |
|
| 441 |
set_instance_assignment -name WEAK_PULL_UP_RESISTOR "ON" -to hw_rev[0] |
| 442 |
set_instance_assignment -name WEAK_PULL_UP_RESISTOR "ON" -to hw_rev[1] |
| 443 |
|
| 444 |
|
| 445 |
|
| 446 |
|
| 447 |
# JTAG |
| 448 |
set_instance_assignment -name IO_STANDARD "1.8 V" -to altera_reserved_tck |
| 449 |
set_instance_assignment -name IO_STANDARD "1.8 V" -to altera_reserved_tdi |
| 450 |
set_instance_assignment -name IO_STANDARD "1.8 V" -to altera_reserved_tms |
| 451 |
|
| 452 |
set_instance_assignment -name IO_STANDARD "1.8 V" -to altera_reserved_tdo |
| 453 |
set_instance_assignment -name CURRENT_STRENGTH_NEW "Default" -to altera_reserved_tdo |
| 454 |
set_instance_assignment -name SLEW_RATE 1 -to altera_reserved_tdo |
| 455 |
|
| 456 |
|
| 457 |
|
| 458 |
# Configuration information |
| 459 |
set_global_assignment -name STRATIXV_CONFIGURATION_SCHEME "PASSIVE PARALLEL X8" |
| 460 |
set_global_assignment -name USE_CONFIGURATION_DEVICE OFF |
| 461 |
set_global_assignment -name GENERATE_TTF_FILE ON |
| 462 |
set_global_assignment -name GENERATE_RBF_FILE ON |
| 463 |
set_global_assignment -name CRC_ERROR_OPEN_DRAIN OFF |
| 464 |
set_global_assignment -name FORCE_CONFIGURATION_VCCIO ON |
| 465 |
set_global_assignment -name CONFIGURATION_VCCIO_LEVEL "1.8V" |
| 466 |
set_global_assignment -name ON_CHIP_BITSTREAM_DECOMPRESSION OFF |
| 467 |
set_global_assignment -name OUTPUT_IO_TIMING_NEAR_END_VMEAS "HALF VCCIO" -rise |
| 468 |
set_global_assignment -name OUTPUT_IO_TIMING_NEAR_END_VMEAS "HALF VCCIO" -fall |
| 469 |
set_global_assignment -name OUTPUT_IO_TIMING_FAR_END_VMEAS "HALF SIGNAL SWING" -rise |
| 470 |
set_global_assignment -name OUTPUT_IO_TIMING_FAR_END_VMEAS "HALF SIGNAL SWING" -fall |
| 471 |
set_global_assignment -name RESERVE_DATA7_THROUGH_DATA5_AFTER_CONFIGURATION "USE AS REGULAR IO" |
| 472 |
set_global_assignment -name CVP_CONFDONE_OPEN_DRAIN OFF |
| 473 |
set_global_assignment -name RESERVE_FLASH_NCE_AFTER_CONFIGURATION "USE AS REGULAR IO" |
| 474 |
set_global_assignment -name RESERVE_OTHER_AP_PINS_AFTER_CONFIGURATION "USE AS REGULAR IO" |
| 475 |
set_global_assignment -name CYCLONEII_RESERVE_NCEO_AFTER_CONFIGURATION "USE AS REGULAR IO" |
| 476 |
set_global_assignment -name RESERVE_DCLK_AFTER_CONFIGURATION "USE AS REGULAR IO" |