blob: 43d66b70eb7175a3cf022704dc3d8f544061603c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# SPDX-License-Identifier: GPL-2.0-or-later
# Gowin FPGA IDCODEs
# from JTAG Programming and Configuration Guide
# http://cdn.gowinsemi.com.cn/TN653E.pdf
if { [info exists CHIPNAME] } {
set _CHIPNAME $CHIPNAME
} else {
set _CHIPNAME gw1n
}
jtag newtap $_CHIPNAME tap -irlen 8 -ignore-version \
-expected-id 0x0900281B \
-expected-id 0x0900381B \
-expected-id 0x0100681B \
-expected-id 0x0300081B \
-expected-id 0x0300181B \
-expected-id 0x0120681B \
-expected-id 0x0100381B \
-expected-id 0x1100381B \
-expected-id 0x0100981B \
-expected-id 0x1100581B \
-expected-id 0x1100481B \
-expected-id 0x0100181B \
-expected-id 0x1100181B \
-expected-id 0x0100481B
pld device gowin $_CHIPNAME.tap
|