riscv-openocd/tcl/cpld/altera-max10.cfg

31 lines
988 B
INI

# SPDX-License-Identifier: GPL-2.0-or-later
# see MAX 10 FPGA Device Architecture
# Table 3-1: IDCODE Information for MAX 10 Devices
# Intel MAX 10M02 0x31810dd
# Intel MAX 10M04 0x318a0dd
# Intel MAX 10M08 0x31820dd
# Intel MAX 10M16 0x31830dd
# Intel MAX 10M25 0x31840dd
# Intel MAX 10M40 0x318d0dd
# Intel MAX 10M50 0x31850dd
# Intel MAX 10M02 0x31010dd
# Intel MAX 10M04 0x310a0dd
# Intel MAX 10M08 0x31020dd
# Intel MAX 10M16 0x31030dd
# Intel MAX 10M25 0x31040dd
# Intel MAX 10M40 0x310d0dd
# Intel MAX 10M50 0x31050dd
if { [info exists CHIPNAME] } {
set _CHIPNAME $CHIPNAME
} else {
set _CHIPNAME max10
}
jtag newtap $_CHIPNAME tap -irlen 10 -expected-id 0x31810dd -expected-id 0x318a0dd \
-expected-id 0x31820dd -expected-id 0x31830dd -expected-id 0x31840dd \
-expected-id 0x318d0dd -expected-id 0x31850dd -expected-id 0x31010dd \
-expected-id 0x310a0dd -expected-id 0x31020dd -expected-id 0x31030dd \
-expected-id 0x31040dd -expected-id 0x310d0dd -expected-id 0x31050dd