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

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

# Lattice ECP3 family
# TAP IDs are extracted from BSDL files found on this page:
# https://www.latticesemi.com/Products/FPGAandCPLD/LatticeECP3
#
# LFE3_17:  0x01010043
# LFE3_35:  0x01012043
# LFE3_95:  0x01014043 and LFE3_70
# LFE3_150: 0x01015043

jtag newtap $_CHIPNAME tap -irlen 8  \
	-expected-id 0x01010043 -expected-id 0x01012043 \
	-expected-id 0x01014043 -expected-id 0x01015043

pld device lattice $_CHIPNAME.tap