diff options
author | Daniel Anselmi <danselmi@gmx.ch> | 2022-12-12 09:49:51 +0100 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2023-04-30 14:53:25 +0000 |
commit | d35faaa35cd5d56fa946d194d7cf780127a3f8c8 (patch) | |
tree | dffcb19ad0922a7ad78012bf74fb5cfa3e95bad5 /tcl/fpga/lattice_ecp3.cfg | |
parent | 8670ad4caa705c460972badbd0fc28aa98c41866 (diff) | |
download | riscv-openocd-d35faaa35cd5d56fa946d194d7cf780127a3f8c8.zip riscv-openocd-d35faaa35cd5d56fa946d194d7cf780127a3f8c8.tar.gz riscv-openocd-d35faaa35cd5d56fa946d194d7cf780127a3f8c8.tar.bz2 |
pld: add support for lattice ecp2 and ecp3 devices
Change-Id: I29c227c37be464f7ecc97a30d9cf3da1442e2b7f
Signed-off-by: Daniel Anselmi <danselmi@gmx.ch>
Reviewed-on: https://review.openocd.org/c/openocd/+/7396
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Tested-by: jenkins
Diffstat (limited to 'tcl/fpga/lattice_ecp3.cfg')
-rw-r--r-- | tcl/fpga/lattice_ecp3.cfg | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tcl/fpga/lattice_ecp3.cfg b/tcl/fpga/lattice_ecp3.cfg new file mode 100644 index 0000000..7cd5706 --- /dev/null +++ b/tcl/fpga/lattice_ecp3.cfg @@ -0,0 +1,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 |