aboutsummaryrefslogtreecommitdiff
path: root/tcl/cpld/xilinx-xc5vfx_100_130_200.cfg
blob: 7420233f489c2353555d079e8a7f53de3ed189f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# SPDX-License-Identifier: GPL-2.0-or-later

# xilinx virtex 5
# https://docs.xilinx.com/v/u/en-US/ug191

if { [info exists CHIPNAME] } {
	set _CHIPNAME $CHIPNAME
} else {
	set _CHIPNAME xc5vfx
}

# the 4 top bits (28:31) are the die stepping. ignore it.
jtag newtap $_CHIPNAME tap -irlen 14 -ignore-version \
	-expected-id 0x032D8093 \
	-expected-id 0x03300093 \
	-expected-id 0x03334093

pld create $_CHIPNAME.pld virtex2 -chain-position $_CHIPNAME.tap
# cfg_out cfg_in jprogb jstart jshutdown user1-4
virtex2 set_instr_codes $_CHIPNAME.pld 0x3FC4 0x3FC5 0x3FCB 0x3FCC 0x3FCD
virtex2 set_user_codes $_CHIPNAME.pld 0x3FC2 0x3FC3 0x3FE2 0x3FE3