mirror of
https://git.code.sf.net/p/openocd/code
synced 2024-11-24 17:36:22 +00:00
9bc7a381b2
Remove list of id codes for all families. Maintain a list with id, bscan-length and check position in the tcl config files for each family. The Intel FPGA Driver option 'family' is not otional anymore. Change-Id: I9a40a041069e84f6b4728f2cd715756a36759c89 Signed-off-by: Daniel Anselmi <danselmi@gmx.ch> Reviewed-on: https://review.openocd.org/c/openocd/+/8083 Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com> Tested-by: jenkins
37 lines
1.0 KiB
INI
37 lines
1.0 KiB
INI
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
# Intel Cyclone III FPGA
|
|
# see Cyclone III Device Handbook
|
|
# Table 12-2: Device IDCODE for Cyclone III Device Family
|
|
|
|
if { [info exists CHIPNAME] } {
|
|
set _CHIPNAME $CHIPNAME
|
|
} else {
|
|
set _CHIPNAME cycloneiii
|
|
}
|
|
|
|
array set _CYCLONE_3_DATA {
|
|
0x020f10dd { 603 226 EP3C5_EP3C10}
|
|
0x020f20dd {1080 409 EP3C16}
|
|
0x020f30dd { 732 286 EP3C25}
|
|
0x020f40dd {1632 604 EP3C40}
|
|
0x020f50dd {1164 442 EP3C55}
|
|
0x020f60dd {1314 502 EP3C80}
|
|
0x020f70dd {1620 613 EP3C120}
|
|
0x027010dd {1314 226 EP3CLS70}
|
|
0x027000dd {1314 226 EP3CLS100}
|
|
0x027030dd {1314 409 EP3CLS150}
|
|
0x027020dd {1314 409 EP3CLS200}
|
|
}
|
|
|
|
set jtag_newtap_cmd {jtag newtap $_CHIPNAME tap -irlen 10 -ignore-version}
|
|
foreach id [array names _CYCLONE_3_DATA] {
|
|
set cmd [concat "-expected-id" id]
|
|
}
|
|
eval $jtag_newtap_cmd
|
|
|
|
source [find fpga/altera_common_init.cfg]
|
|
|
|
pld create $_CHIPNAME.pld intel -chain-position $_CHIPNAME.tap -family cycloneiii
|
|
jtag configure $_CHIPNAME.tap -event setup "set_bscan_checkpos_on_setup $_CHIPNAME {$_CYCLONE_3_DATA}"
|