openocd/tcl/interface/jtag_dpi.cfg
Marc Schink 30bb4524de tcl/interface/jtag_dpi: Adapt to new jtag_dpi command syntax
Change-Id: Icebf6f0a037f4ea9fb450581fcc599417bffc153
Signed-off-by: Marc Schink <dev@zapb.de>
Reviewed-on: http://openocd.zylin.com/6395
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
2021-08-14 13:35:02 +01:00

39 lines
1.0 KiB
INI

#
# Provide support for the Cadence JTAG BFM
#
# Copyright (c) 2020, Ampere Computing LLC
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of
# the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program;
#
#
adapter driver jtag_dpi
# Set the DPI JTAG server port
if { [info exists DPI_PORT] } {
set _DPI_PORT $DPI_PORT
} else {
set _DPI_PORT 5555
}
# Set the DPI JTAG server address
if { [info exists DPI_ADDRESS] } {
set _DPI_ADDRESS $DPI_ADDRESS
} else {
set _DPI_ADDRESS "127.0.0.1"
}
jtag_dpi set_port $_DPI_PORT
jtag_dpi set_address $_DPI_ADDRESS