2022-06-12 16:51:51 -05:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
2016-07-31 19:05:50 -05:00
|
|
|
# Altera MAXII EPM240T100C CPLD
|
2022-02-11 16:40:24 -06:00
|
|
|
|
|
|
|
if { [info exists CHIPNAME] } {
|
|
|
|
set _CHIPNAME $CHIPNAME
|
|
|
|
} else {
|
|
|
|
set _CHIPNAME epm240
|
|
|
|
}
|
|
|
|
|
2016-07-31 19:05:50 -05:00
|
|
|
# see MAX II Device Handbook
|
|
|
|
# Table 3-3: 32-Bit MAX II Device IDCODE
|
|
|
|
# Version Part Number Manuf. ID LSB
|
|
|
|
# 0000 0010 0000 1010 0001 000 0110 1110 1
|
2022-02-11 16:40:24 -06:00
|
|
|
jtag newtap $_CHIPNAME tap -irlen 10 \
|
|
|
|
-expected-id 0x020a10dd \
|
|
|
|
-expected-id 0x020a20dd \
|
|
|
|
-expected-id 0x020a30dd \
|
|
|
|
-expected-id 0x020a40dd \
|
|
|
|
-expected-id 0x020a50dd \
|
|
|
|
-expected-id 0x020a60dd
|
2022-02-11 16:43:30 -06:00
|
|
|
|
|
|
|
# 200ns seems like a good speed
|
|
|
|
# c.f. Table 5-34: MAX II JTAG Timing Parameters
|
|
|
|
adapter speed 5000
|