2022-05-04 03:15:57 -05:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
# Cadence virtual debug interface
|
|
|
|
# Arm Cortex A53x2 through DAP
|
|
|
|
|
|
|
|
source [find interface/vdebug.cfg]
|
|
|
|
|
2024-01-09 07:57:29 -06:00
|
|
|
set CORES 2
|
|
|
|
set CHIPNAME a53
|
|
|
|
set ACCESSPORT 0
|
|
|
|
set MEMSTART 0x00000000
|
|
|
|
set MEMSIZE 0x1000000
|
|
|
|
set DBGBASE {0x80810000 0x80910000}
|
|
|
|
set CTIBASE {0x80820000 0x80920000}
|
2022-05-04 03:15:57 -05:00
|
|
|
|
|
|
|
# vdebug select transport
|
|
|
|
transport select dapdirect_swd
|
|
|
|
|
|
|
|
# JTAG reset config, frequency and reset delay
|
|
|
|
adapter speed 50000
|
|
|
|
adapter srst delay 5
|
|
|
|
|
|
|
|
# BFM hierarchical path and input clk period
|
|
|
|
vdebug bfm_path tbench.u_vd_swdp_bfm 10ns
|
|
|
|
|
2024-01-09 07:57:29 -06:00
|
|
|
# DMA Memories to access backdoor (up to 20)
|
|
|
|
vdebug mem_path tbench.u_memory.mem_array $MEMSTART $MEMSIZE
|
2022-05-04 03:15:57 -05:00
|
|
|
|
2024-01-09 07:57:29 -06:00
|
|
|
swd newdap $CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf
|
2022-05-04 03:15:57 -05:00
|
|
|
|
|
|
|
source [find target/vd_aarch64.cfg]
|