forked from pulp-platform/occamy
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix OpenOCD debugger * Bug Fix * Bug Fix
- Loading branch information
Showing
10 changed files
with
89 additions
and
104 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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,23 @@ | ||
MKFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST))) | ||
MKFILE_DIR := $(dir $(MKFILE_PATH)) | ||
TARGET := $(MKFILE_DIR)../../.. | ||
ROOT := ${MKFILE_DIR}../../../.. | ||
|
||
APP ?= $(TARGET)/sim/sw/host/apps/hello_world/build/hello_world.elf | ||
|
||
CVA6_GCC_ROOT = /tools/riscv/bin | ||
RISCV_CC = $(CVA6_GCC_ROOT)/riscv64-unknown-elf-gcc | ||
RISCV_OBJCOPY = $(CVA6_GCC_ROOT)/riscv64-unknown-elf-objcopy | ||
RISCV_OBJDUMP = $(CVA6_GCC_ROOT)/riscv64-unknown-elf-objdump | ||
RISCV_READELF = $(CVA6_GCC_ROOT)/riscv64-unknown-elf-readelf | ||
|
||
.PHONY: download_sw | ||
|
||
app.bin: | ||
$(RISCV_OBJCOPY) -O binary $(APP) $@ | ||
|
||
download_sw: | ||
${VIVADO} -mode batch -source download_sw.tcl | ||
|
||
clean: | ||
@rm -f app.bin |
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 @@ | ||
load_image /users/micas/ydeng/Desktop/SNAX/HeMAiA/target/fpga_chip/jtag/app/app.bin 0x80000000 |
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,27 @@ | ||
# Copyright 2021 ETH Zurich and University of Bologna. | ||
# Solderpad Hardware License, Version 0.51, see LICENSE for details. | ||
# SPDX-License-Identifier: SHL-0.51 | ||
|
||
adapter driver ftdi | ||
adapter speed 2000 | ||
transport select jtag | ||
|
||
# FT4232 | ||
ftdi vid_pid 0x0403 0x6011 | ||
adapter serial FT80Z5JA | ||
ftdi layout_init 0x0808 0x0b0b | ||
ftdi channel 1 | ||
|
||
set _CHIPNAME riscv | ||
jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x20002001 | ||
|
||
set _TARGETNAME $_CHIPNAME.cpu | ||
target create $_TARGETNAME riscv -chain-position $_TARGETNAME | ||
|
||
riscv.cpu riscv set_ir idcode 0x9249 | ||
# riscv.cpu riscv set_ir dtmcs 0x22924 | ||
# riscv.cpu riscv set_ir dmi 0x23924 | ||
|
||
tcl port disabled | ||
gdb port 3334 | ||
telnet_port 4444 |
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,27 @@ | ||
# Copyright 2021 ETH Zurich and University of Bologna. | ||
# Solderpad Hardware License, Version 0.51, see LICENSE for details. | ||
# SPDX-License-Identifier: SHL-0.51 | ||
|
||
adapter driver ftdi | ||
adapter speed 2000 | ||
transport select jtag | ||
|
||
# FT4232 | ||
ftdi vid_pid 0x0403 0x6011 | ||
adapter serial FT80Z5JA | ||
ftdi layout_init 0x0808 0x0b0b | ||
ftdi channel 0 | ||
|
||
set _CHIPNAME riscv | ||
jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x20002001 | ||
|
||
set _TARGETNAME $_CHIPNAME.cpu | ||
target create $_TARGETNAME riscv -chain-position $_TARGETNAME | ||
|
||
riscv.cpu riscv set_ir idcode 0x9249 | ||
# riscv.cpu riscv set_ir dtmcs 0x22924 | ||
# riscv.cpu riscv set_ir dmi 0x23924 | ||
|
||
tcl port disabled | ||
gdb port 3334 | ||
telnet_port 4444 |