mirror of
https://git.code.sf.net/p/openocd/code
synced 2024-11-14 18:37:11 +00:00
2c5f263bcd
The SPDX tag is aimed at machine handling and it's thus expected to be placed in the first line. Change-Id: I3992856eeb28b333c38d010ef286e22471ede263 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: https://review.openocd.org/c/openocd/+/7026 Tested-by: jenkins
34 lines
870 B
Tcl
34 lines
870 B
Tcl
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
# Copyright (C) 2014-2015,2020 Synopsys, Inc.
|
|
# Anton Kolesov <anton.kolesov@synopsys.com>
|
|
# Didin Evgeniy <didin@synopsys.com>
|
|
|
|
#
|
|
# Xilinx Spartan-6 XC6SLX45 FPGA on EM Starter Kit v1.
|
|
# Xilinx Spartan-6 XC6SLX150 FPGA on EM Starter Kit v2.
|
|
#
|
|
|
|
source [find cpu/arc/em.tcl]
|
|
|
|
set _CHIPNAME arc-em
|
|
set _TARGETNAME $_CHIPNAME.cpu
|
|
|
|
# EM SK IDENTITY is 0x200444b1
|
|
# EM SK v2 IDENTITY is 0x200044b1
|
|
jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -expected-id 0x200444b1 \
|
|
-expected-id 0x200044b1
|
|
|
|
set _coreid 0
|
|
set _dbgbase [expr {0x00000000 | ($_coreid << 13)}]
|
|
|
|
target create $_TARGETNAME arcv2 -chain-position $_TARGETNAME \
|
|
-coreid 0 -dbgbase $_dbgbase -endian little
|
|
|
|
# There is no SRST, so do a software reset
|
|
$_TARGETNAME configure -event reset-assert "arc_em_reset $_TARGETNAME"
|
|
|
|
arc_em_init_regs
|
|
|
|
# vim:ft=tcl
|