pld: small documentation fixes.
[openocd.git] / tcl / board / vd_swerv_jtag.cfg
blobc5d33f268a8dcdd2f5357b616d93a5b1e3a3218e
1 # SPDX-License-Identifier: GPL-2.0-or-later
2 # Cadence virtual debug interface
3 # RISCV swerv core with Swerv through JTAG
5 source [find interface/vdebug.cfg]
7 set _CHIPNAME rv32
8 set _HARTID 0x00
9 set _CPUTAPID 0x1000008b
10 set _MEMSTART 0x00000000
11 set _MEMSIZE 0x10000
13 # vdebug select transport
14 transport select jtag
16 # JTAG reset config, frequency and reset delay
17 reset_config trst_and_srst
18 adapter speed 50000
19 adapter srst delay 5
21 # BFM hierarchical path and input clk period
22 vdebug bfm_path tbench.u_vd_jtag_bfm 10ns
24 # DMA Memories to access backdoor (up to 4)
25 vdebug mem_path tbench.i_ahb_ic.mem $_MEMSTART $_MEMSIZE
27 # need to explicitly define riscv tap, autoprobing does not work for icapture != 0x01
28 jtag newtap $_CHIPNAME cpu -irlen 5 -ircapture 0x01 -irmask 0x1f -expected-id $_CPUTAPID
30 jtag arp_init-reset
32 source [find target/vd_riscv.cfg]