-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fpga: Update cva6-sdk, add openocd configs, and update docs
- Loading branch information
Showing
6 changed files
with
245 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,7 +56,7 @@ chs-clean-deps: | |
###################### | ||
|
||
CHS_NONFREE_REMOTE ?= [email protected]:pulp-restricted/cheshire-nonfree.git | ||
CHS_NONFREE_COMMIT ?= 4e562fc | ||
CHS_NONFREE_COMMIT ?= 1a571f5d99f865a069eccd91b552e1ea74dcbdfd | ||
|
||
chs-nonfree-init: | ||
git clone $(CHS_NONFREE_REMOTE) $(CHS_ROOT)/nonfree | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Copyright 2022 ETH Zurich and University of Bologna. | ||
# Licensed under the Apache License, Version 2.0, see LICENSE for details. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
# OpenOCD script to connect to Cheshire through the internal VCU128 JTAG chain | ||
|
||
adapter driver ftdi | ||
adapter speed 2000 | ||
transport select jtag | ||
|
||
# FTF232 | ||
ftdi_vid_pid 0x0403 0x6010 | ||
ftdi_layout_init 0x00e8 0x60eb | ||
|
||
# If more than one FTDI is connected we can use the serial to differentiate. | ||
ftdi_serial 200300A8C60D | ||
|
||
set _CHIPNAME riscv | ||
jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x20002001 | ||
|
||
set _TARGETNAME $_CHIPNAME.cpu | ||
target create $_TARGETNAME riscv -chain-position $_TARGETNAME | ||
|
||
riscv set_ir idcode 0x9249 | ||
riscv set_ir dtmcs 0x22924 | ||
riscv set_ir dmi 0x23924 | ||
|
||
# Uncomment below to enable virtual addresses in GDB | ||
#if { [catch {riscv set_enable_virtual on} ] } { | ||
# echo "Warning: This version of OpenOCD does not support address translation. To debug on virtual addresses, please update to the latest version." } | ||
|
||
gdb_port 3333 | ||
tcl_port 0 | ||
telnet_port 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Copyright 2022 ETH Zurich and University of Bologna. | ||
# Licensed under the Apache License, Version 2.0, see LICENSE for details. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
# OpenOCD script to connect to Cheshire through the Digilent JTAG-HS2 USB dongle | ||
|
||
adapter driver ftdi | ||
adapter speed 2000 | ||
transport select jtag | ||
|
||
# JTAG HS2 | ||
ftdi_vid_pid 0x0403 0x6014 | ||
ftdi_layout_init 0x00e8 0x60eb | ||
ftdi_channel 0 | ||
|
||
# If more than one FTDI is connected we can use the serial to differentiate. | ||
ftdi_serial 210249AEC334 | ||
|
||
set _CHIPNAME riscv | ||
jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x20002001 | ||
|
||
set _TARGETNAME $_CHIPNAME.cpu | ||
target create $_TARGETNAME riscv -chain-position $_TARGETNAME | ||
|
||
riscv set_ir idcode 0x9249 | ||
riscv set_ir dtmcs 0x22924 | ||
riscv set_ir dmi 0x23924 | ||
|
||
# Uncomment below to enable virtual addresses in GDB | ||
#if { [catch {riscv set_enable_virtual on} ] } { | ||
# echo "Warning: This version of OpenOCD does not support address translation. To debug on virtual addresses, please update to the latest version." } | ||
|
||
gdb_port 3333 | ||
tcl_port 0 | ||
telnet_port 0 |
Oops, something went wrong.