aboutsummaryrefslogtreecommitdiff
path: root/tcl/target/vd_riscv.cfg
blob: b42b25a3a5b15c895485b4f5a90e9f0b4769a44e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# SPDX-License-Identifier: GPL-2.0-or-later
# Cadence virtual debug interface
# RISCV core

if {![info exists _HARTID]} {
	set _HARTID 0x00
}
if {![info exists _CHIPNAME]} {
	set _CHIPNAME riscv
}
set _TARGETNAME $_CHIPNAME.cpu

target create $_TARGETNAME riscv -chain-position $_TARGETNAME -coreid $_HARTID

riscv set_reset_timeout_sec 120
riscv set_command_timeout_sec 120
# prefer to use sba for system bus access
riscv set_prefer_sba on