From e122cc888ddd6608d26281ea83b300f491ea4f25 Mon Sep 17 00:00:00 2001 From: Nathaniel Graff Date: Tue, 15 Jan 2019 16:41:05 -0800 Subject: Add export of standalone project Split out board init, toolchain setup, and program build into scripts/standalone.mk which can be included in the top-level Makefile to allow in-SDK builds or be exported and used on its own. Create a `standalone` Make target which copies and example, the built Freedom Metal library, and the standalone Makefile into an external project. Signed-off-by: Nathaniel Graff --- Makefile | 193 ++++++++++++++++++++++---------------------------- scripts/standalone.mk | 105 +++++++++++++++++++++++++++ 2 files changed, 188 insertions(+), 110 deletions(-) create mode 100644 scripts/standalone.mk diff --git a/Makefile b/Makefile index a9f5b95..a6033b4 100644 --- a/Makefile +++ b/Makefile @@ -2,9 +2,6 @@ # Configuration ############################################################# -# Allow users to select a different cross compiler. -CROSS_COMPILE ?= riscv64-unknown-elf - # Allows users to create Makefile.local or ../Makefile.project with # configuration variables, so they don't have to be set on the command-line # every time. @@ -14,9 +11,8 @@ $(info Obtaining additional make variables from $(extra_configs)) include $(extra_configs) endif -# Default target - -# legacy for old e-sdk or mee +# Select Legacy BSP or Freedom Metal BSP +# Allowed values are 'legacy' and 'mee' BSP ?= legacy ifeq ($(BSP),legacy) @@ -27,6 +23,7 @@ LINK_TARGET ?= flash GDB_PORT ?= 3333 else # MEE +BSP = mee BSP_SUBDIR ?= PROGRAM ?= hello BOARD ?= sifive-hifive1 @@ -36,52 +33,38 @@ endif # $(BSP) BOARD_ROOT ?= $(abspath .) PROGRAM_ROOT ?= $(abspath .) -# Variables the user probably shouldn't override. +SRC_DIR = $(PROGRAM_ROOT)/software/$(PROGRAM) + +PROGRAM_ELF = $(SRC_DIR)/$(PROGRAM) +PROGRAM_HEX = $(SRC_DIR)/$(PROGRAM).hex + ############################################################# # BSP Loading ############################################################# # Finds the directory in which this BSP is located, ensuring that there is # exactly one. -board_dir := $(wildcard $(BOARD_ROOT)/bsp/$(BSP_SUBDIR)/$(BOARD)) -ifeq ($(words $(board_dir)),0) +BSP_DIR := $(wildcard $(BOARD_ROOT)/bsp/$(BSP_SUBDIR)/$(BOARD)) +ifeq ($(words $(BSP_DIR)),0) $(error Unable to find BSP for $(BOARD), expected to find either "bsp/$(BOARD)" or "bsp-addons/$(BOARD)") endif -ifneq ($(words $(board_dir)),1) -$(error Found multiple BSPs for $(BOARD): "$(board_dir)") -endif - -ifeq ($(BSP), mee) - -include $(board_dir)/settings.mk - -else - -# There must be a settings makefile fragment in the BSP's board directory. -ifeq ($(wildcard $(board_dir)/settings.mk),) -$(error Unable to find BSP for $(BOARD), expected to find $(board_dir)/settings.mk) -endif - -include $(board_dir)/settings.mk - -ifeq ($(RISCV_ARCH),) -$(error $(board_dir)/board.mk must set RISCV_ARCH, the RISC-V ISA string to target) +ifneq ($(words $(BSP_DIR)),1) +$(error Found multiple BSPs for $(BOARD): "$(BSP_DIR)") endif -ifeq ($(RISCV_ABI),) -$(error $(board_dir)/board.mk must set RISCV_ABI, the ABI to target) -endif +############################################################# +# Standalone Script Include +############################################################# -endif +# The standalone script is included here because it needs $(SRC_DIR) and +# $(BSP_DIR) to be set. +# +# The standalone Makefile handles the following tasks: +# - Including $(BSP_DIR)/settings.mk and validating RISCV_ARCH, RISCV_ABI +# - Setting the toolchain path with CROSS_COMPILE and RISCV_PATH +# - Providing the software and $(PROGRAM_ELF) Make targets for the MEE -# Determines the XLEN from the toolchain tuple -ifeq ($(patsubst rv32%,rv32,$(RISCV_ARCH)),rv32) -RISCV_XLEN := 32 -else ifeq ($(patsubst rv64%,rv64,$(RISCV_ARCH)),rv64) -RISCV_XLEN := 64 -else -$(error Unable to determine XLEN from $(RISCV_ARCH)) -endif +include scripts/standalone.mk ############################################################# # Prints help message @@ -114,53 +97,25 @@ help: .PHONY: clean clean: -############################################################# -# This section is for tool configuration -############################################################# - -# If users don't specify RISCV_PATH then assume that the tools will just be in -# their path. -ifeq ($(RISCV_PATH),) -RISCV_GCC := $(CROSS_COMPILE)-gcc -RISCV_GXX := $(CROSS_COMPILE)-g++ -RISCV_OBJDUMP := $(CROSS_COMPILE)-objdump -RISCV_GDB := $(CROSS_COMPILE)-gdb -RISCV_AR := $(CROSS_COMPILE)-ar -else -RISCV_GCC := $(abspath $(RISCV_PATH)/bin/$(CROSS_COMPILE)-gcc) -RISCV_GXX := $(abspath $(RISCV_PATH)/bin/$(CROSS_COMPILE)-g++) -RISCV_OBJDUMP := $(abspath $(RISCV_PATH)/bin/$(CROSS_COMPILE)-objdump) -RISCV_GDB := $(abspath $(RISCV_PATH)/bin/$(CROSS_COMPILE)-gdb) -RISCV_AR := $(abspath $(RISCV_PATH)/bin/$(CROSS_COMPILE)-ar) -PATH := $(abspath $(RISCV_PATH)/bin):$(PATH) -endif - -ifeq ($(RISCV_OPENOCD_PATH),) -RISCV_OPENOCD := openocd -else -RISCV_OPENOCD := $(abspath $(RISCV_OPENOCD_PATH)/bin/openocd) -endif - ############################################################# # Compiles an instance of the MEE targeted at $(BOARD) ############################################################# ifeq ($(BSP),mee) MEE_SOURCE_PATH ?= freedom-mee -MEE_BSP_PATH = $(BOARD_ROOT)/bsp/$(BOARD) -MEE_LDSCRIPT = $(MEE_BSP_PATH)/mee.lds -MEE_HEADER = $(MEE_BSP_PATH)/mee.h +MEE_LDSCRIPT = $(BSP_DIR)/mee.lds +MEE_HEADER = $(BSP_DIR)/mee.h .PHONY: mee -mee: $(MEE_BSP_PATH)/install/stamp +mee: $(BSP_DIR)/install/stamp -$(MEE_BSP_PATH)/build/Makefile: +$(BSP_DIR)/build/Makefile: @rm -rf $(dir $@) @mkdir -p $(dir $@) cd $(dir $@) && \ CFLAGS="-march=$(RISCV_ARCH) -mabi=$(RISCV_ABI) -g -mcmodel=medany" \ $(abspath $(MEE_SOURCE_PATH)/configure) \ --host=$(CROSS_COMPILE) \ - --prefix=$(abspath $(MEE_BSP_PATH)/install) \ + --prefix=$(abspath $(BSP_DIR)/install) \ --with-preconfigured \ --with-machine-name=$(BOARD) \ --with-machine-header=$(abspath $(MEE_HEADER)) \ @@ -168,22 +123,22 @@ $(MEE_BSP_PATH)/build/Makefile: --with-builtin-libgloss touch -c $@ -$(MEE_BSP_PATH)/install/stamp: $(MEE_BSP_PATH)/build/Makefile - $(MAKE) -C $(abspath $(MEE_BSP_PATH)/build) install +$(BSP_DIR)/install/stamp: $(BSP_DIR)/build/Makefile + $(MAKE) -C $(abspath $(BSP_DIR)/build) install date > $@ -$(MEE_BSP_PATH)/install/lib/libriscv%.a: $(MEE_BSP_PATH)/install/stamp ;@: +$(BSP_DIR)/install/lib/libriscv%.a: $(BSP_DIR)/install/stamp ;@: -$(MEE_BSP_PATH)/install/lib/libmee.a: $(MEE_BSP_PATH)/install/lib/libriscv__mmachine__$(BOARD).a +$(BSP_DIR)/install/lib/libmee.a: $(BSP_DIR)/install/lib/libriscv__mmachine__$(BOARD).a cp $< $@ -$(MEE_BSP_PATH)/install/lib/libmee-gloss.a: $(MEE_BSP_PATH)/install/lib/libriscv__menv__mee.a +$(BSP_DIR)/install/lib/libmee-gloss.a: $(BSP_DIR)/install/lib/libriscv__menv__mee.a cp $< $@ .PHONY: clean-mee clean-mee: - rm -rf $(MEE_BSP_PATH)/install - rm -rf $(MEE_BSP_PATH)/build + rm -rf $(BSP_DIR)/install + rm -rf $(BSP_DIR)/build clean: clean-mee endif @@ -191,7 +146,7 @@ mee_install: mee $(MAKE) -C $(MEE_SOURCE_PATH) install ############################################################# -# This Section is for elf2hex Compliation +# elf2hex ############################################################# scripts/elf2hex/build/Makefile: scripts/elf2hex/configure @rm -rf $(dir $@) @@ -211,45 +166,59 @@ clean-elf2hex: clean: clean-elf2hex ############################################################# -# This Section is for Software Compilation +# Standalone Project Export ############################################################# -PROGRAM_ELF = $(PROGRAM_ROOT)/software/$(PROGRAM)/$(PROGRAM) -PROGRAM_HEX = $(PROGRAM_ROOT)/software/$(PROGRAM)/$(PROGRAM).hex ifeq ($(BSP),mee) -.PHONY: software -software: $(PROGRAM_ELF) +ifeq ($(STANDALONE_DEST),) +standalone: + $(error Please provide STANDALONE_DEST to create a standalone project) +else -ifneq ($(COREIP_MEM_WIDTH),) -software: $(PROGRAM_HEX) +$(STANDALONE_DEST): +$(STANDALONE_DEST)/%: + mkdir -p $@ + +standalone: \ + $(STANDALONE_DEST) \ + $(STANDALONE_DEST)/bsp \ + $(STANDALONE_DEST)/src \ + $(BSP_DIR)/install/lib/libmee.a \ + $(BSP_DIR)/install/lib/libmee-gloss.a \ + $(SRC_DIR) \ + scripts/standalone.mk + # We have to use $(shell ls ...) here instead of $(wildcard) so that we + # pick up $(BSP_DIR)/install + cp -r $(addprefix $(BSP_DIR)/,$(filter-out build,$(shell ls $(BSP_DIR)))) $ $> $ Date: Wed, 16 Jan 2019 11:32:18 -0800 Subject: Document standalone target Add documentation to README and `make help` Signed-off-by: Nathaniel Graff --- Makefile | 5 +++++ README.md | 13 +++++++++++++ 2 files changed, 18 insertions(+) diff --git a/Makefile b/Makefile index a6033b4..8ac9564 100644 --- a/Makefile +++ b/Makefile @@ -92,6 +92,11 @@ help: @echo " debug BSP=mee [PROGRAM=$(PROGRAM) BOARD=$(BOARD)]:" @echo " Launch OpenOCD and attach GDB to the running program." @echo "" + @echo " standalone BSP=mee STANDALONE_DEST=/path/to/desired/location" + @echo " [PROGRAM=$(PROGRAM) BOARD=$(BOARD)]:" + @echo " Export a program for a single target into a standalone" + @echo " project directory at STANDALONE_DEST." + @echo "" @echo " For more information, read the accompanying README.md" .PHONY: clean diff --git a/README.md b/README.md index f900277..4ade87c 100644 --- a/README.md +++ b/README.md @@ -235,6 +235,19 @@ make BSP=mee [PROGRAM=hello] [BOARD=sifive-hifive1] debug make BSP=mee [PROGRAM=hello] [BOARD=sifive-hifive1] clean ``` +#### Create a Standalone Project #### + +You can export a program to a standalone project directory using the `standalone` +target. The resulting project will be locked to a specific target `BOARD`. Note +that this functionality is only supported for Freedom Metal programs, not the +Legacy Freedom E SDK. + +`STANDALONE_DEST` is a required argument to provide the desired project location. + +``` +make BSP=mee [PROGRAM=hello] [BOARD=sifive-hifive1] STANDALONE_DEST=/path/to/desired/location standalone +``` + Run `make help` for more commands. ### Benchmarking ### -- cgit v1.2.3 From 198911b52db2dd2f516c2e38f81a08a1557ba34e Mon Sep 17 00:00:00 2001 From: Nathaniel Graff Date: Wed, 16 Jan 2019 13:41:44 -0800 Subject: Enumerate MEE boards and programs Make targets `list-boards` and `list-programs` will enumerate the available boards and programs for use with Freedom Metal Signed-off-by: Nathaniel Graff --- Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Makefile b/Makefile index 8ac9564..120c9a4 100644 --- a/Makefile +++ b/Makefile @@ -102,6 +102,24 @@ help: .PHONY: clean clean: +############################################################# +# Enumerate MEE BSPs and Programs +############################################################# + +ifeq ($(BSP),mee) + +# MEE boards are any folders that aren't the Legacy BSP or update-targets.sh +EXCLUDE_BOARD_DIRS = drivers env include libwrap update-targets.sh +list-boards: + @echo $(sort $(filter-out $(EXCLUDE_BOARD_DIRS),$(notdir $(wildcard bsp/*)))) + + +# MEE programs are any submodules in the software folder +list-programs: + @echo $(shell grep -o '= software/.*$$' .gitmodules | sed -r 's/.*\///') + +endif + ############################################################# # Compiles an instance of the MEE targeted at $(BOARD) ############################################################# -- cgit v1.2.3 From c4d5e78b7030c12a8ae6f182ad7b25104bb666e8 Mon Sep 17 00:00:00 2001 From: Kevin Mills Date: Sun, 20 Jan 2019 10:19:45 -0800 Subject: Remove unused/legacy FreedomStudio examples --- FreedomStudio/E2FPGA/clic_vectored/.cproject | 208 -- FreedomStudio/E2FPGA/clic_vectored/.gitignore | 1 - FreedomStudio/E2FPGA/clic_vectored/.project | 358 --- .../clic_vectored/clic_vectored OpenOCD.launch | 61 - .../E2FPGA/clic_vectored/sifive-coreip-e2-arty.cfg | 31 - FreedomStudio/E2FPGA/coreplexip_welcome/.cproject | 210 -- FreedomStudio/E2FPGA/coreplexip_welcome/.gitignore | 1 - FreedomStudio/E2FPGA/coreplexip_welcome/.project | 358 --- .../coreplexip_welcome OpenOCD.launch | 61 - .../coreplexip_welcome/sifive-coreip-e2-arty.cfg | 31 - FreedomStudio/E2FPGA/dhrystone/.cproject | 216 -- FreedomStudio/E2FPGA/dhrystone/.gitignore | 1 - FreedomStudio/E2FPGA/dhrystone/.project | 373 ---- .../E2FPGA/dhrystone/dhrystone OpenOCD.launch | 61 - .../E2FPGA/dhrystone/sifive-coreip-e2-arty.cfg | 31 - FreedomStudio/E31FPGA/coreplexip_welcome/.cproject | 210 -- .../E31FPGA/coreplexip_welcome/.gitignore | 1 - FreedomStudio/E31FPGA/coreplexip_welcome/.project | 363 --- .../coreplexip_welcome JLINK.launch | 80 - .../coreplexip_welcome OpenOCD.launch | 63 - .../E31FPGA/coreplexip_welcome/e31arty-xsvd.json | 1250 ----------- .../sifive-coreplexip-e31-arty.cfg | 31 - FreedomStudio/E31FPGA/dhrystone/.cproject | 216 -- FreedomStudio/E31FPGA/dhrystone/.gitignore | 1 - FreedomStudio/E31FPGA/dhrystone/.project | 383 ---- .../dhrystone/.settings/language.settings.xml | 25 - .../E31FPGA/dhrystone/dhrystone JLINK.launch | 80 - .../E31FPGA/dhrystone/dhrystone OpenOCD.launch | 62 - FreedomStudio/E31FPGA/dhrystone/e31arty-xsvd.json | 1250 ----------- .../dhrystone/sifive-coreplexip-e31-arty.cfg | 31 - FreedomStudio/E31FPGA/global_interrupts/.cproject | 215 -- FreedomStudio/E31FPGA/global_interrupts/.gitignore | 1 - FreedomStudio/E31FPGA/global_interrupts/.project | 363 --- .../E31FPGA/global_interrupts/e31arty-xsvd.json | 1250 ----------- .../global_interrupts JLINK.launch | 80 - .../global_interrupts OpenOCD.launch | 62 - .../sifive-coreplexip-e31-arty.cfg | 31 - FreedomStudio/E31FPGA/local_interrupts/.cproject | 210 -- FreedomStudio/E31FPGA/local_interrupts/.gitignore | 1 - FreedomStudio/E31FPGA/local_interrupts/.project | 363 --- .../E31FPGA/local_interrupts/e31arty-xsvd.json | 1250 ----------- .../local_interrupts/local_interrupts JLINK.launch | 80 - .../local_interrupts OpenOCD.launch | 62 - .../sifive-coreplexip-e31-arty.cfg | 31 - .../E31FPGA/performance_counters/.cproject | 200 -- .../E31FPGA/performance_counters/.gitignore | 1 - .../E31FPGA/performance_counters/.project | 363 --- .../E31FPGA/performance_counters/e31arty-xsvd.json | 1250 ----------- .../performance_counters JLINK.launch | 80 - .../performance_counters OpenOCD.launch | 60 - .../sifive-coreplexip-e31-arty.cfg | 31 - .../E31FPGA/vectored_interrupts/.cproject | 211 -- .../E31FPGA/vectored_interrupts/.gitignore | 1 - FreedomStudio/E31FPGA/vectored_interrupts/.project | 358 --- .../E31FPGA/vectored_interrupts/e31arty-xsvd.json | 1250 ----------- .../sifive-coreplexip-e31-arty.cfg | 31 - .../vectored_interrupts JLINK.launch | 80 - .../vectored_interrupts OpenOCD.launch | 61 - FreedomStudio/E51FPGA/coreplexip_welcome/.cproject | 210 -- .../E51FPGA/coreplexip_welcome/.gitignore | 1 - FreedomStudio/E51FPGA/coreplexip_welcome/.project | 353 --- .../coreplexip_welcome OpenOCD.launch | 61 - .../E51FPGA/coreplexip_welcome/e51arty-xsvd.json | 1230 ----------- .../sifive-coreplexip-e51-arty.cfg | 31 - FreedomStudio/E51FPGA/dhrystone/.cproject | 213 -- FreedomStudio/E51FPGA/dhrystone/.gitignore | 1 - FreedomStudio/E51FPGA/dhrystone/.project | 378 ---- .../dhrystone/.settings/language.settings.xml | 25 - .../E51FPGA/dhrystone/dhrystone OpenOCD.launch | 62 - FreedomStudio/E51FPGA/dhrystone/e51arty-xsvd.json | 1230 ----------- .../dhrystone/sifive-coreplexip-e51-arty.cfg | 31 - FreedomStudio/E51FPGA/global_interrupts/.cproject | 210 -- FreedomStudio/E51FPGA/global_interrupts/.gitignore | 1 - FreedomStudio/E51FPGA/global_interrupts/.project | 353 --- .../E51FPGA/global_interrupts/e51arty-xsvd.json | 1230 ----------- .../global_interrupts OpenOCD.launch | 60 - .../sifive-coreplexip-e51-arty.cfg | 31 - FreedomStudio/E51FPGA/local_interrupts/.cproject | 210 -- FreedomStudio/E51FPGA/local_interrupts/.gitignore | 1 - FreedomStudio/E51FPGA/local_interrupts/.project | 353 --- .../E51FPGA/local_interrupts/e51arty-xsvd.json | 1230 ----------- .../local_interrupts OpenOCD.launch | 60 - .../sifive-coreplexip-e51-arty.cfg | 31 - .../E51FPGA/performance_counters/.cproject | 208 -- .../E51FPGA/performance_counters/.gitignore | 1 - .../E51FPGA/performance_counters/.project | 353 --- .../E51FPGA/performance_counters/e51arty-xsvd.json | 1230 ----------- .../performance_counters OpenOCD.launch | 60 - .../sifive-coreplexip-e51-arty.cfg | 31 - .../E51FPGA/vectored_interrupts/.cproject | 211 -- .../E51FPGA/vectored_interrupts/.gitignore | 1 - FreedomStudio/E51FPGA/vectored_interrupts/.project | 353 --- .../E51FPGA/vectored_interrupts/e51arty-xsvd.json | 1230 ----------- .../sifive-coreplexip-e51-arty.cfg | 31 - .../vectored_interrupts OpenOCD.launch | 60 - FreedomStudio/HiFive1/demo_gpio/.cproject | 211 -- FreedomStudio/HiFive1/demo_gpio/.gitignore | 1 - FreedomStudio/HiFive1/demo_gpio/.project | 348 --- .../HiFive1/demo_gpio/demo_gpio OpenOCD.launch | 61 - FreedomStudio/HiFive1/demo_gpio/fe310-xsvd.json | 2325 -------------------- .../demo_gpio/sifive-freedom-e300-hifive1.cfg | 34 - FreedomStudio/HiFive1/dhrystone/.cproject | 211 -- FreedomStudio/HiFive1/dhrystone/.gitignore | 1 - FreedomStudio/HiFive1/dhrystone/.project | 368 ---- FreedomStudio/HiFive1/dhrystone/dhrystone.launch | 61 - FreedomStudio/HiFive1/dhrystone/fe310-xsvd.json | 2325 -------------------- .../dhrystone/sifive-freedom-e300-hifive1.cfg | 34 - FreedomStudio/HiFive1/hello/.cproject | 208 -- FreedomStudio/HiFive1/hello/.gitignore | 1 - FreedomStudio/HiFive1/hello/.project | 348 --- FreedomStudio/HiFive1/hello/fe310-xsvd.json | 2325 -------------------- FreedomStudio/HiFive1/hello/hello OpenOCD.launch | 60 - .../HiFive1/hello/sifive-freedom-e300-hifive1.cfg | 34 - FreedomStudio/HiFive1/led_fade/.cproject | 210 -- FreedomStudio/HiFive1/led_fade/.gitignore | 1 - FreedomStudio/HiFive1/led_fade/.project | 348 --- FreedomStudio/HiFive1/led_fade/fe310-xsvd.json | 2325 -------------------- .../HiFive1/led_fade/led_fade OpenOCD.launch | 60 - .../led_fade/sifive-freedom-e300-hifive1.cfg | 34 - 119 files changed, 37323 deletions(-) delete mode 100644 FreedomStudio/E2FPGA/clic_vectored/.cproject delete mode 100644 FreedomStudio/E2FPGA/clic_vectored/.gitignore delete mode 100644 FreedomStudio/E2FPGA/clic_vectored/.project delete mode 100644 FreedomStudio/E2FPGA/clic_vectored/clic_vectored OpenOCD.launch delete mode 100644 FreedomStudio/E2FPGA/clic_vectored/sifive-coreip-e2-arty.cfg delete mode 100644 FreedomStudio/E2FPGA/coreplexip_welcome/.cproject delete mode 100644 FreedomStudio/E2FPGA/coreplexip_welcome/.gitignore delete mode 100644 FreedomStudio/E2FPGA/coreplexip_welcome/.project delete mode 100644 FreedomStudio/E2FPGA/coreplexip_welcome/coreplexip_welcome OpenOCD.launch delete mode 100644 FreedomStudio/E2FPGA/coreplexip_welcome/sifive-coreip-e2-arty.cfg delete mode 100644 FreedomStudio/E2FPGA/dhrystone/.cproject delete mode 100644 FreedomStudio/E2FPGA/dhrystone/.gitignore delete mode 100644 FreedomStudio/E2FPGA/dhrystone/.project delete mode 100644 FreedomStudio/E2FPGA/dhrystone/dhrystone OpenOCD.launch delete mode 100644 FreedomStudio/E2FPGA/dhrystone/sifive-coreip-e2-arty.cfg delete mode 100644 FreedomStudio/E31FPGA/coreplexip_welcome/.cproject delete mode 100644 FreedomStudio/E31FPGA/coreplexip_welcome/.gitignore delete mode 100644 FreedomStudio/E31FPGA/coreplexip_welcome/.project delete mode 100644 FreedomStudio/E31FPGA/coreplexip_welcome/coreplexip_welcome JLINK.launch delete mode 100644 FreedomStudio/E31FPGA/coreplexip_welcome/coreplexip_welcome OpenOCD.launch delete mode 100644 FreedomStudio/E31FPGA/coreplexip_welcome/e31arty-xsvd.json delete mode 100644 FreedomStudio/E31FPGA/coreplexip_welcome/sifive-coreplexip-e31-arty.cfg delete mode 100644 FreedomStudio/E31FPGA/dhrystone/.cproject delete mode 100644 FreedomStudio/E31FPGA/dhrystone/.gitignore delete mode 100644 FreedomStudio/E31FPGA/dhrystone/.project delete mode 100644 FreedomStudio/E31FPGA/dhrystone/.settings/language.settings.xml delete mode 100644 FreedomStudio/E31FPGA/dhrystone/dhrystone JLINK.launch delete mode 100644 FreedomStudio/E31FPGA/dhrystone/dhrystone OpenOCD.launch delete mode 100644 FreedomStudio/E31FPGA/dhrystone/e31arty-xsvd.json delete mode 100644 FreedomStudio/E31FPGA/dhrystone/sifive-coreplexip-e31-arty.cfg delete mode 100644 FreedomStudio/E31FPGA/global_interrupts/.cproject delete mode 100644 FreedomStudio/E31FPGA/global_interrupts/.gitignore delete mode 100644 FreedomStudio/E31FPGA/global_interrupts/.project delete mode 100644 FreedomStudio/E31FPGA/global_interrupts/e31arty-xsvd.json delete mode 100644 FreedomStudio/E31FPGA/global_interrupts/global_interrupts JLINK.launch delete mode 100644 FreedomStudio/E31FPGA/global_interrupts/global_interrupts OpenOCD.launch delete mode 100644 FreedomStudio/E31FPGA/global_interrupts/sifive-coreplexip-e31-arty.cfg delete mode 100644 FreedomStudio/E31FPGA/local_interrupts/.cproject delete mode 100644 FreedomStudio/E31FPGA/local_interrupts/.gitignore delete mode 100644 FreedomStudio/E31FPGA/local_interrupts/.project delete mode 100644 FreedomStudio/E31FPGA/local_interrupts/e31arty-xsvd.json delete mode 100644 FreedomStudio/E31FPGA/local_interrupts/local_interrupts JLINK.launch delete mode 100644 FreedomStudio/E31FPGA/local_interrupts/local_interrupts OpenOCD.launch delete mode 100644 FreedomStudio/E31FPGA/local_interrupts/sifive-coreplexip-e31-arty.cfg delete mode 100644 FreedomStudio/E31FPGA/performance_counters/.cproject delete mode 100644 FreedomStudio/E31FPGA/performance_counters/.gitignore delete mode 100644 FreedomStudio/E31FPGA/performance_counters/.project delete mode 100644 FreedomStudio/E31FPGA/performance_counters/e31arty-xsvd.json delete mode 100644 FreedomStudio/E31FPGA/performance_counters/performance_counters JLINK.launch delete mode 100644 FreedomStudio/E31FPGA/performance_counters/performance_counters OpenOCD.launch delete mode 100644 FreedomStudio/E31FPGA/performance_counters/sifive-coreplexip-e31-arty.cfg delete mode 100644 FreedomStudio/E31FPGA/vectored_interrupts/.cproject delete mode 100644 FreedomStudio/E31FPGA/vectored_interrupts/.gitignore delete mode 100644 FreedomStudio/E31FPGA/vectored_interrupts/.project delete mode 100644 FreedomStudio/E31FPGA/vectored_interrupts/e31arty-xsvd.json delete mode 100644 FreedomStudio/E31FPGA/vectored_interrupts/sifive-coreplexip-e31-arty.cfg delete mode 100644 FreedomStudio/E31FPGA/vectored_interrupts/vectored_interrupts JLINK.launch delete mode 100644 FreedomStudio/E31FPGA/vectored_interrupts/vectored_interrupts OpenOCD.launch delete mode 100644 FreedomStudio/E51FPGA/coreplexip_welcome/.cproject delete mode 100644 FreedomStudio/E51FPGA/coreplexip_welcome/.gitignore delete mode 100644 FreedomStudio/E51FPGA/coreplexip_welcome/.project delete mode 100644 FreedomStudio/E51FPGA/coreplexip_welcome/coreplexip_welcome OpenOCD.launch delete mode 100644 FreedomStudio/E51FPGA/coreplexip_welcome/e51arty-xsvd.json delete mode 100644 FreedomStudio/E51FPGA/coreplexip_welcome/sifive-coreplexip-e51-arty.cfg delete mode 100644 FreedomStudio/E51FPGA/dhrystone/.cproject delete mode 100644 FreedomStudio/E51FPGA/dhrystone/.gitignore delete mode 100644 FreedomStudio/E51FPGA/dhrystone/.project delete mode 100644 FreedomStudio/E51FPGA/dhrystone/.settings/language.settings.xml delete mode 100644 FreedomStudio/E51FPGA/dhrystone/dhrystone OpenOCD.launch delete mode 100644 FreedomStudio/E51FPGA/dhrystone/e51arty-xsvd.json delete mode 100644 FreedomStudio/E51FPGA/dhrystone/sifive-coreplexip-e51-arty.cfg delete mode 100644 FreedomStudio/E51FPGA/global_interrupts/.cproject delete mode 100644 FreedomStudio/E51FPGA/global_interrupts/.gitignore delete mode 100644 FreedomStudio/E51FPGA/global_interrupts/.project delete mode 100644 FreedomStudio/E51FPGA/global_interrupts/e51arty-xsvd.json delete mode 100644 FreedomStudio/E51FPGA/global_interrupts/global_interrupts OpenOCD.launch delete mode 100644 FreedomStudio/E51FPGA/global_interrupts/sifive-coreplexip-e51-arty.cfg delete mode 100644 FreedomStudio/E51FPGA/local_interrupts/.cproject delete mode 100644 FreedomStudio/E51FPGA/local_interrupts/.gitignore delete mode 100644 FreedomStudio/E51FPGA/local_interrupts/.project delete mode 100644 FreedomStudio/E51FPGA/local_interrupts/e51arty-xsvd.json delete mode 100644 FreedomStudio/E51FPGA/local_interrupts/local_interrupts OpenOCD.launch delete mode 100644 FreedomStudio/E51FPGA/local_interrupts/sifive-coreplexip-e51-arty.cfg delete mode 100644 FreedomStudio/E51FPGA/performance_counters/.cproject delete mode 100644 FreedomStudio/E51FPGA/performance_counters/.gitignore delete mode 100644 FreedomStudio/E51FPGA/performance_counters/.project delete mode 100644 FreedomStudio/E51FPGA/performance_counters/e51arty-xsvd.json delete mode 100644 FreedomStudio/E51FPGA/performance_counters/performance_counters OpenOCD.launch delete mode 100644 FreedomStudio/E51FPGA/performance_counters/sifive-coreplexip-e51-arty.cfg delete mode 100644 FreedomStudio/E51FPGA/vectored_interrupts/.cproject delete mode 100644 FreedomStudio/E51FPGA/vectored_interrupts/.gitignore delete mode 100644 FreedomStudio/E51FPGA/vectored_interrupts/.project delete mode 100644 FreedomStudio/E51FPGA/vectored_interrupts/e51arty-xsvd.json delete mode 100644 FreedomStudio/E51FPGA/vectored_interrupts/sifive-coreplexip-e51-arty.cfg delete mode 100644 FreedomStudio/E51FPGA/vectored_interrupts/vectored_interrupts OpenOCD.launch delete mode 100644 FreedomStudio/HiFive1/demo_gpio/.cproject delete mode 100644 FreedomStudio/HiFive1/demo_gpio/.gitignore delete mode 100644 FreedomStudio/HiFive1/demo_gpio/.project delete mode 100644 FreedomStudio/HiFive1/demo_gpio/demo_gpio OpenOCD.launch delete mode 100644 FreedomStudio/HiFive1/demo_gpio/fe310-xsvd.json delete mode 100644 FreedomStudio/HiFive1/demo_gpio/sifive-freedom-e300-hifive1.cfg delete mode 100644 FreedomStudio/HiFive1/dhrystone/.cproject delete mode 100644 FreedomStudio/HiFive1/dhrystone/.gitignore delete mode 100644 FreedomStudio/HiFive1/dhrystone/.project delete mode 100644 FreedomStudio/HiFive1/dhrystone/dhrystone.launch delete mode 100644 FreedomStudio/HiFive1/dhrystone/fe310-xsvd.json delete mode 100644 FreedomStudio/HiFive1/dhrystone/sifive-freedom-e300-hifive1.cfg delete mode 100644 FreedomStudio/HiFive1/hello/.cproject delete mode 100644 FreedomStudio/HiFive1/hello/.gitignore delete mode 100644 FreedomStudio/HiFive1/hello/.project delete mode 100644 FreedomStudio/HiFive1/hello/fe310-xsvd.json delete mode 100644 FreedomStudio/HiFive1/hello/hello OpenOCD.launch delete mode 100644 FreedomStudio/HiFive1/hello/sifive-freedom-e300-hifive1.cfg delete mode 100644 FreedomStudio/HiFive1/led_fade/.cproject delete mode 100644 FreedomStudio/HiFive1/led_fade/.gitignore delete mode 100644 FreedomStudio/HiFive1/led_fade/.project delete mode 100644 FreedomStudio/HiFive1/led_fade/fe310-xsvd.json delete mode 100644 FreedomStudio/HiFive1/led_fade/led_fade OpenOCD.launch delete mode 100644 FreedomStudio/HiFive1/led_fade/sifive-freedom-e300-hifive1.cfg diff --git a/FreedomStudio/E2FPGA/clic_vectored/.cproject b/FreedomStudio/E2FPGA/clic_vectored/.cproject deleted file mode 100644 index 85a0e97..0000000 --- a/FreedomStudio/E2FPGA/clic_vectored/.cproject +++ /dev/null @@ -1,208 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/FreedomStudio/E2FPGA/clic_vectored/.gitignore b/FreedomStudio/E2FPGA/clic_vectored/.gitignore deleted file mode 100644 index 3df573f..0000000 --- a/FreedomStudio/E2FPGA/clic_vectored/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/Debug/ diff --git a/FreedomStudio/E2FPGA/clic_vectored/.project b/FreedomStudio/E2FPGA/clic_vectored/.project deleted file mode 100644 index 9f821d4..0000000 --- a/FreedomStudio/E2FPGA/clic_vectored/.project +++ /dev/null @@ -1,358 +0,0 @@ - - - clic_vectored - - - - - - org.eclipse.cdt.managedbuilder.core.genmakebuilder - clean,full,incremental, - - - - - org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder - full,incremental, - - - - - - org.eclipse.cdt.core.cnature - org.eclipse.cdt.managedbuilder.core.managedBuildNature - org.eclipse.cdt.managedbuilder.core.ScannerConfigNature - - - - bsp - 2 - virtual:/virtual - - - clic_vectored.c - 1 - PARENT-3-PROJECT_LOC/software/clic_vectored/clic_vectored.c - - - bsp/drivers - 2 - virtual:/virtual - - - bsp/env - 2 - virtual:/virtual - - - bsp/include - 2 - virtual:/virtual - - - bsp/libwrap - 2 - virtual:/virtual - - - bsp/drivers/clic - 2 - virtual:/virtual - - - bsp/drivers/fe300prci - 2 - virtual:/virtual - - - bsp/env/coreip-e2-arty - 2 - virtual:/virtual - - - bsp/env/coreplexip-arty.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-arty.h - - - bsp/env/encoding.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/encoding.h - - - bsp/env/entry.S - 1 - PARENT-3-PROJECT_LOC/bsp/env/entry.S - - - bsp/env/hifive1.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/hifive1.h - - - bsp/env/start.S - 1 - PARENT-3-PROJECT_LOC/bsp/env/start.S - - - bsp/include/sifive - 2 - virtual:/virtual - - - bsp/libwrap/misc - 2 - virtual:/virtual - - - bsp/libwrap/stdlib - 2 - virtual:/virtual - - - bsp/libwrap/sys - 2 - virtual:/virtual - - - bsp/drivers/clic/clic_driver.c - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/clic/clic_driver.c - - - bsp/drivers/clic/clic_driver.h - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/clic/clic_driver.h - - - bsp/env/coreip-e2-arty/flash.lds - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreip-e2-arty/flash.lds - - - bsp/env/coreip-e2-arty/init.c - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreip-e2-arty/init.c - - - bsp/env/coreip-e2-arty/openocd.cfg - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreip-e2-arty/openocd.cfg - - - bsp/env/coreip-e2-arty/platform.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreip-e2-arty/platform.h - - - bsp/env/coreip-e2-arty/settings.mk - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreip-e2-arty/settings.mk - - - bsp/env/coreip-e2-arty/tim-split.lds - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreip-e2-arty/tim-split.lds - - - bsp/env/coreip-e2-arty/tim.lds - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreip-e2-arty/tim.lds - - - bsp/include/sifive/bits.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/bits.h - - - bsp/include/sifive/const.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/const.h - - - bsp/include/sifive/devices - 2 - virtual:/virtual - - - bsp/include/sifive/sections.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/sections.h - - - bsp/include/sifive/smp.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/smp.h - - - bsp/libwrap/misc/write_hex.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/misc/write_hex.c - - - bsp/libwrap/stdlib/malloc.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/stdlib/malloc.c - - - bsp/libwrap/sys/_exit.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/_exit.c - - - bsp/libwrap/sys/close.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/close.c - - - bsp/libwrap/sys/execve.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/execve.c - - - bsp/libwrap/sys/fork.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/fork.c - - - bsp/libwrap/sys/fstat.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/fstat.c - - - bsp/libwrap/sys/getpid.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/getpid.c - - - bsp/libwrap/sys/isatty.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/isatty.c - - - bsp/libwrap/sys/kill.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/kill.c - - - bsp/libwrap/sys/link.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/link.c - - - bsp/libwrap/sys/lseek.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/lseek.c - - - bsp/libwrap/sys/open.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/open.c - - - bsp/libwrap/sys/openat.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/openat.c - - - bsp/libwrap/sys/puts.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/puts.c - - - bsp/libwrap/sys/read.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/read.c - - - bsp/libwrap/sys/sbrk.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/sbrk.c - - - bsp/libwrap/sys/stat.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/stat.c - - - bsp/libwrap/sys/stub.h - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/stub.h - - - bsp/libwrap/sys/times.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/times.c - - - bsp/libwrap/sys/unlink.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/unlink.c - - - bsp/libwrap/sys/wait.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/wait.c - - - bsp/libwrap/sys/weak_under_alias.h - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/weak_under_alias.h - - - bsp/libwrap/sys/write.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/write.c - - - bsp/include/sifive/devices/aon.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/aon.h - - - bsp/include/sifive/devices/clic.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/clic.h - - - bsp/include/sifive/devices/clint.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/clint.h - - - bsp/include/sifive/devices/gpio.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/gpio.h - - - bsp/include/sifive/devices/otp.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/otp.h - - - bsp/include/sifive/devices/plic.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/plic.h - - - bsp/include/sifive/devices/prci.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/prci.h - - - bsp/include/sifive/devices/pwm.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/pwm.h - - - bsp/include/sifive/devices/spi.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/spi.h - - - bsp/include/sifive/devices/uart.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/uart.h - - - diff --git a/FreedomStudio/E2FPGA/clic_vectored/clic_vectored OpenOCD.launch b/FreedomStudio/E2FPGA/clic_vectored/clic_vectored OpenOCD.launch deleted file mode 100644 index f900b1b..0000000 --- a/FreedomStudio/E2FPGA/clic_vectored/clic_vectored OpenOCD.launch +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/FreedomStudio/E2FPGA/clic_vectored/sifive-coreip-e2-arty.cfg b/FreedomStudio/E2FPGA/clic_vectored/sifive-coreip-e2-arty.cfg deleted file mode 100644 index 8b382dc..0000000 --- a/FreedomStudio/E2FPGA/clic_vectored/sifive-coreip-e2-arty.cfg +++ /dev/null @@ -1,31 +0,0 @@ -# JTAG adapter setup -adapter_khz 10000 - -interface ftdi -ftdi_device_desc "Olimex OpenOCD JTAG ARM-USB-TINY-H" -ftdi_vid_pid 0x15ba 0x002a - -ftdi_layout_init 0x0808 0x0a1b -ftdi_layout_signal nSRST -oe 0x0200 -#ftdi_layout_signal nTRST -data 0x0100 -oe 0x0100 -ftdi_layout_signal LED -data 0x0800 - -set _CHIPNAME riscv -jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x20000001 - -set _TARGETNAME $_CHIPNAME.cpu - -target create $_TARGETNAME.0 riscv -chain-position $_TARGETNAME -$_TARGETNAME.0 configure -work-area-phys 0x80000000 -work-area-size 10000 -work-area-backup 1 - -# Un-comment these two flash lines if you have a SPI flash and want to write -# it. -flash bank spi0 fespi 0x40000000 0 0 0 $_TARGETNAME.0 0x20004000 -init -if {[ info exists pulse_srst]} { - ftdi_set_signal nSRST 0 - ftdi_set_signal nSRST z -} -halt -flash protect 0 64 last off -echo "Ready for Remote Connections" diff --git a/FreedomStudio/E2FPGA/coreplexip_welcome/.cproject b/FreedomStudio/E2FPGA/coreplexip_welcome/.cproject deleted file mode 100644 index 051c949..0000000 --- a/FreedomStudio/E2FPGA/coreplexip_welcome/.cproject +++ /dev/null @@ -1,210 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/FreedomStudio/E2FPGA/coreplexip_welcome/.gitignore b/FreedomStudio/E2FPGA/coreplexip_welcome/.gitignore deleted file mode 100644 index 3df573f..0000000 --- a/FreedomStudio/E2FPGA/coreplexip_welcome/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/Debug/ diff --git a/FreedomStudio/E2FPGA/coreplexip_welcome/.project b/FreedomStudio/E2FPGA/coreplexip_welcome/.project deleted file mode 100644 index 29e06f6..0000000 --- a/FreedomStudio/E2FPGA/coreplexip_welcome/.project +++ /dev/null @@ -1,358 +0,0 @@ - - - coreplexip_welcome - - - - - - org.eclipse.cdt.managedbuilder.core.genmakebuilder - clean,full,incremental, - - - - - org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder - full,incremental, - - - - - - org.eclipse.cdt.core.cnature - org.eclipse.cdt.managedbuilder.core.managedBuildNature - org.eclipse.cdt.managedbuilder.core.ScannerConfigNature - - - - bsp - 2 - virtual:/virtual - - - coreplexip_welcome.c - 1 - PARENT-3-PROJECT_LOC/software/coreplexip_welcome/coreplexip_welcome.c - - - bsp/drivers - 2 - virtual:/virtual - - - bsp/env - 2 - virtual:/virtual - - - bsp/include - 2 - virtual:/virtual - - - bsp/libwrap - 2 - virtual:/virtual - - - bsp/drivers/clic - 2 - virtual:/virtual - - - bsp/drivers/fe300prci - 2 - virtual:/virtual - - - bsp/env/coreip-e2-arty - 2 - virtual:/virtual - - - bsp/env/coreplexip-arty.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-arty.h - - - bsp/env/encoding.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/encoding.h - - - bsp/env/entry.S - 1 - PARENT-3-PROJECT_LOC/bsp/env/entry.S - - - bsp/env/hifive1.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/hifive1.h - - - bsp/env/start.S - 1 - PARENT-3-PROJECT_LOC/bsp/env/start.S - - - bsp/include/sifive - 2 - virtual:/virtual - - - bsp/libwrap/misc - 2 - virtual:/virtual - - - bsp/libwrap/stdlib - 2 - virtual:/virtual - - - bsp/libwrap/sys - 2 - virtual:/virtual - - - bsp/drivers/clic/clic_driver.c - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/clic/clic_driver.c - - - bsp/drivers/clic/clic_driver.h - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/clic/clic_driver.h - - - bsp/env/coreip-e2-arty/flash.lds - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreip-e2-arty/flash.lds - - - bsp/env/coreip-e2-arty/init.c - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreip-e2-arty/init.c - - - bsp/env/coreip-e2-arty/openocd.cfg - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreip-e2-arty/openocd.cfg - - - bsp/env/coreip-e2-arty/platform.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreip-e2-arty/platform.h - - - bsp/env/coreip-e2-arty/settings.mk - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreip-e2-arty/settings.mk - - - bsp/env/coreip-e2-arty/tim-split.lds - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreip-e2-arty/tim-split.lds - - - bsp/env/coreip-e2-arty/tim.lds - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreip-e2-arty/tim.lds - - - bsp/include/sifive/bits.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/bits.h - - - bsp/include/sifive/const.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/const.h - - - bsp/include/sifive/devices - 2 - virtual:/virtual - - - bsp/include/sifive/sections.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/sections.h - - - bsp/include/sifive/smp.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/smp.h - - - bsp/libwrap/misc/write_hex.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/misc/write_hex.c - - - bsp/libwrap/stdlib/malloc.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/stdlib/malloc.c - - - bsp/libwrap/sys/_exit.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/_exit.c - - - bsp/libwrap/sys/close.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/close.c - - - bsp/libwrap/sys/execve.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/execve.c - - - bsp/libwrap/sys/fork.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/fork.c - - - bsp/libwrap/sys/fstat.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/fstat.c - - - bsp/libwrap/sys/getpid.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/getpid.c - - - bsp/libwrap/sys/isatty.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/isatty.c - - - bsp/libwrap/sys/kill.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/kill.c - - - bsp/libwrap/sys/link.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/link.c - - - bsp/libwrap/sys/lseek.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/lseek.c - - - bsp/libwrap/sys/open.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/open.c - - - bsp/libwrap/sys/openat.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/openat.c - - - bsp/libwrap/sys/puts.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/puts.c - - - bsp/libwrap/sys/read.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/read.c - - - bsp/libwrap/sys/sbrk.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/sbrk.c - - - bsp/libwrap/sys/stat.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/stat.c - - - bsp/libwrap/sys/stub.h - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/stub.h - - - bsp/libwrap/sys/times.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/times.c - - - bsp/libwrap/sys/unlink.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/unlink.c - - - bsp/libwrap/sys/wait.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/wait.c - - - bsp/libwrap/sys/weak_under_alias.h - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/weak_under_alias.h - - - bsp/libwrap/sys/write.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/write.c - - - bsp/include/sifive/devices/aon.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/aon.h - - - bsp/include/sifive/devices/clic.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/clic.h - - - bsp/include/sifive/devices/clint.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/clint.h - - - bsp/include/sifive/devices/gpio.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/gpio.h - - - bsp/include/sifive/devices/otp.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/otp.h - - - bsp/include/sifive/devices/plic.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/plic.h - - - bsp/include/sifive/devices/prci.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/prci.h - - - bsp/include/sifive/devices/pwm.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/pwm.h - - - bsp/include/sifive/devices/spi.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/spi.h - - - bsp/include/sifive/devices/uart.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/uart.h - - - diff --git a/FreedomStudio/E2FPGA/coreplexip_welcome/coreplexip_welcome OpenOCD.launch b/FreedomStudio/E2FPGA/coreplexip_welcome/coreplexip_welcome OpenOCD.launch deleted file mode 100644 index 356c25a..0000000 --- a/FreedomStudio/E2FPGA/coreplexip_welcome/coreplexip_welcome OpenOCD.launch +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/FreedomStudio/E2FPGA/coreplexip_welcome/sifive-coreip-e2-arty.cfg b/FreedomStudio/E2FPGA/coreplexip_welcome/sifive-coreip-e2-arty.cfg deleted file mode 100644 index 8b382dc..0000000 --- a/FreedomStudio/E2FPGA/coreplexip_welcome/sifive-coreip-e2-arty.cfg +++ /dev/null @@ -1,31 +0,0 @@ -# JTAG adapter setup -adapter_khz 10000 - -interface ftdi -ftdi_device_desc "Olimex OpenOCD JTAG ARM-USB-TINY-H" -ftdi_vid_pid 0x15ba 0x002a - -ftdi_layout_init 0x0808 0x0a1b -ftdi_layout_signal nSRST -oe 0x0200 -#ftdi_layout_signal nTRST -data 0x0100 -oe 0x0100 -ftdi_layout_signal LED -data 0x0800 - -set _CHIPNAME riscv -jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x20000001 - -set _TARGETNAME $_CHIPNAME.cpu - -target create $_TARGETNAME.0 riscv -chain-position $_TARGETNAME -$_TARGETNAME.0 configure -work-area-phys 0x80000000 -work-area-size 10000 -work-area-backup 1 - -# Un-comment these two flash lines if you have a SPI flash and want to write -# it. -flash bank spi0 fespi 0x40000000 0 0 0 $_TARGETNAME.0 0x20004000 -init -if {[ info exists pulse_srst]} { - ftdi_set_signal nSRST 0 - ftdi_set_signal nSRST z -} -halt -flash protect 0 64 last off -echo "Ready for Remote Connections" diff --git a/FreedomStudio/E2FPGA/dhrystone/.cproject b/FreedomStudio/E2FPGA/dhrystone/.cproject deleted file mode 100644 index 863a5a9..0000000 --- a/FreedomStudio/E2FPGA/dhrystone/.cproject +++ /dev/null @@ -1,216 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/FreedomStudio/E2FPGA/dhrystone/.gitignore b/FreedomStudio/E2FPGA/dhrystone/.gitignore deleted file mode 100644 index 3df573f..0000000 --- a/FreedomStudio/E2FPGA/dhrystone/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/Debug/ diff --git a/FreedomStudio/E2FPGA/dhrystone/.project b/FreedomStudio/E2FPGA/dhrystone/.project deleted file mode 100644 index 9776e74..0000000 --- a/FreedomStudio/E2FPGA/dhrystone/.project +++ /dev/null @@ -1,373 +0,0 @@ - - - dhrystone - - - - - - org.eclipse.cdt.managedbuilder.core.genmakebuilder - clean,full,incremental, - - - - - org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder - full,incremental, - - - - - - org.eclipse.cdt.core.cnature - org.eclipse.cdt.managedbuilder.core.managedBuildNature - org.eclipse.cdt.managedbuilder.core.ScannerConfigNature - - - - bsp - 2 - virtual:/virtual - - - dhry.h - 1 - PARENT-3-PROJECT_LOC/software/dhrystone/dhry.h - - - dhry_1.c - 1 - PARENT-3-PROJECT_LOC/software/dhrystone/dhry_1.c - - - dhry_2.c - 1 - PARENT-3-PROJECT_LOC/software/dhrystone/dhry_2.c - - - dhry_printf.c - 1 - PARENT-3-PROJECT_LOC/software/dhrystone/dhry_printf.c - - - dhry_stubs.c - 1 - PARENT-3-PROJECT_LOC/software/dhrystone/dhry_stubs.c - - - bsp/drivers - 2 - virtual:/virtual - - - bsp/env - 2 - virtual:/virtual - - - bsp/include - 2 - virtual:/virtual - - - bsp/libwrap - 2 - virtual:/virtual - - - bsp/drivers/fe300prci - 2 - virtual:/virtual - - - bsp/drivers/plic - 2 - virtual:/virtual - - - bsp/env/coreip-e2-arty - 2 - virtual:/virtual - - - bsp/env/coreplexip-arty.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-arty.h - - - bsp/env/encoding.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/encoding.h - - - bsp/env/entry.S - 1 - PARENT-3-PROJECT_LOC/bsp/env/entry.S - - - bsp/env/hifive1.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/hifive1.h - - - bsp/env/start.S - 1 - PARENT-3-PROJECT_LOC/bsp/env/start.S - - - bsp/include/sifive - 2 - virtual:/virtual - - - bsp/libwrap/misc - 2 - virtual:/virtual - - - bsp/libwrap/stdlib - 2 - virtual:/virtual - - - bsp/libwrap/sys - 2 - virtual:/virtual - - - bsp/drivers/fe300prci/fe300prci_driver.c - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/fe300prci/fe300prci_driver.c - - - bsp/env/coreip-e2-arty/flash.lds - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreip-e2-arty/flash.lds - - - bsp/env/coreip-e2-arty/init.c - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreip-e2-arty/init.c - - - bsp/env/coreip-e2-arty/openocd.cfg - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreip-e2-arty/openocd.cfg - - - bsp/env/coreip-e2-arty/platform.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreip-e2-arty/platform.h - - - bsp/env/coreip-e2-arty/settings.mk - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreip-e2-arty/settings.mk - - - bsp/env/coreip-e2-arty/tim-split.lds - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreip-e2-arty/tim-split.lds - - - bsp/env/coreip-e2-arty/tim.lds - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreip-e2-arty/tim.lds - - - bsp/include/sifive/bits.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/bits.h - - - bsp/include/sifive/const.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/const.h - - - bsp/include/sifive/devices - 2 - virtual:/virtual - - - bsp/include/sifive/sections.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/sections.h - - - bsp/include/sifive/smp.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/smp.h - - - bsp/libwrap/misc/write_hex.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/misc/write_hex.c - - - bsp/libwrap/stdlib/malloc.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/stdlib/malloc.c - - - bsp/libwrap/sys/_exit.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/_exit.c - - - bsp/libwrap/sys/close.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/close.c - - - bsp/libwrap/sys/execve.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/execve.c - - - bsp/libwrap/sys/fork.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/fork.c - - - bsp/libwrap/sys/fstat.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/fstat.c - - - bsp/libwrap/sys/getpid.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/getpid.c - - - bsp/libwrap/sys/isatty.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/isatty.c - - - bsp/libwrap/sys/kill.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/kill.c - - - bsp/libwrap/sys/link.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/link.c - - - bsp/libwrap/sys/lseek.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/lseek.c - - - bsp/libwrap/sys/open.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/open.c - - - bsp/libwrap/sys/openat.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/openat.c - - - bsp/libwrap/sys/puts.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/puts.c - - - bsp/libwrap/sys/read.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/read.c - - - bsp/libwrap/sys/sbrk.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/sbrk.c - - - bsp/libwrap/sys/stat.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/stat.c - - - bsp/libwrap/sys/stub.h - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/stub.h - - - bsp/libwrap/sys/times.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/times.c - - - bsp/libwrap/sys/unlink.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/unlink.c - - - bsp/libwrap/sys/wait.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/wait.c - - - bsp/libwrap/sys/weak_under_alias.h - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/weak_under_alias.h - - - bsp/libwrap/sys/write.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/write.c - - - bsp/include/sifive/devices/aon.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/aon.h - - - bsp/include/sifive/devices/clic.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/clic.h - - - bsp/include/sifive/devices/clint.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/clint.h - - - bsp/include/sifive/devices/gpio.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/gpio.h - - - bsp/include/sifive/devices/otp.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/otp.h - - - bsp/include/sifive/devices/plic.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/plic.h - - - bsp/include/sifive/devices/prci.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/prci.h - - - bsp/include/sifive/devices/pwm.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/pwm.h - - - bsp/include/sifive/devices/spi.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/spi.h - - - bsp/include/sifive/devices/uart.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/uart.h - - - diff --git a/FreedomStudio/E2FPGA/dhrystone/dhrystone OpenOCD.launch b/FreedomStudio/E2FPGA/dhrystone/dhrystone OpenOCD.launch deleted file mode 100644 index f996fc4..0000000 --- a/FreedomStudio/E2FPGA/dhrystone/dhrystone OpenOCD.launch +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/FreedomStudio/E2FPGA/dhrystone/sifive-coreip-e2-arty.cfg b/FreedomStudio/E2FPGA/dhrystone/sifive-coreip-e2-arty.cfg deleted file mode 100644 index 8b382dc..0000000 --- a/FreedomStudio/E2FPGA/dhrystone/sifive-coreip-e2-arty.cfg +++ /dev/null @@ -1,31 +0,0 @@ -# JTAG adapter setup -adapter_khz 10000 - -interface ftdi -ftdi_device_desc "Olimex OpenOCD JTAG ARM-USB-TINY-H" -ftdi_vid_pid 0x15ba 0x002a - -ftdi_layout_init 0x0808 0x0a1b -ftdi_layout_signal nSRST -oe 0x0200 -#ftdi_layout_signal nTRST -data 0x0100 -oe 0x0100 -ftdi_layout_signal LED -data 0x0800 - -set _CHIPNAME riscv -jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x20000001 - -set _TARGETNAME $_CHIPNAME.cpu - -target create $_TARGETNAME.0 riscv -chain-position $_TARGETNAME -$_TARGETNAME.0 configure -work-area-phys 0x80000000 -work-area-size 10000 -work-area-backup 1 - -# Un-comment these two flash lines if you have a SPI flash and want to write -# it. -flash bank spi0 fespi 0x40000000 0 0 0 $_TARGETNAME.0 0x20004000 -init -if {[ info exists pulse_srst]} { - ftdi_set_signal nSRST 0 - ftdi_set_signal nSRST z -} -halt -flash protect 0 64 last off -echo "Ready for Remote Connections" diff --git a/FreedomStudio/E31FPGA/coreplexip_welcome/.cproject b/FreedomStudio/E31FPGA/coreplexip_welcome/.cproject deleted file mode 100644 index 906fba6..0000000 --- a/FreedomStudio/E31FPGA/coreplexip_welcome/.cproject +++ /dev/null @@ -1,210 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/FreedomStudio/E31FPGA/coreplexip_welcome/.gitignore b/FreedomStudio/E31FPGA/coreplexip_welcome/.gitignore deleted file mode 100644 index 3df573f..0000000 --- a/FreedomStudio/E31FPGA/coreplexip_welcome/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/Debug/ diff --git a/FreedomStudio/E31FPGA/coreplexip_welcome/.project b/FreedomStudio/E31FPGA/coreplexip_welcome/.project deleted file mode 100644 index dcfbea2..0000000 --- a/FreedomStudio/E31FPGA/coreplexip_welcome/.project +++ /dev/null @@ -1,363 +0,0 @@ - - - coreplexip_welcome - - - - - - org.eclipse.cdt.managedbuilder.core.genmakebuilder - clean,full,incremental, - - - - - org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder - full,incremental, - - - - - - org.eclipse.cdt.core.cnature - org.eclipse.cdt.managedbuilder.core.managedBuildNature - org.eclipse.cdt.managedbuilder.core.ScannerConfigNature - - - - bsp - 2 - virtual:/virtual - - - coreplexip_welcome.c - 1 - PARENT-3-PROJECT_LOC/software/coreplexip_welcome/coreplexip_welcome.c - - - bsp/drivers - 2 - virtual:/virtual - - - bsp/env - 2 - virtual:/virtual - - - bsp/include - 2 - virtual:/virtual - - - bsp/libwrap - 2 - virtual:/virtual - - - bsp/drivers/fe300prci - 2 - virtual:/virtual - - - bsp/drivers/plic - 2 - virtual:/virtual - - - bsp/env/coreplexip-arty.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-arty.h - - - bsp/env/coreplexip-e31-arty - 2 - virtual:/virtual - - - bsp/env/encoding.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/encoding.h - - - bsp/env/entry.S - 1 - PARENT-3-PROJECT_LOC/bsp/env/entry.S - - - bsp/env/hifive1.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/hifive1.h - - - bsp/env/start.S - 1 - PARENT-3-PROJECT_LOC/bsp/env/start.S - - - bsp/include/sifive - 2 - virtual:/virtual - - - bsp/libwrap/misc - 2 - virtual:/virtual - - - bsp/libwrap/stdlib - 2 - virtual:/virtual - - - bsp/libwrap/sys - 2 - virtual:/virtual - - - bsp/drivers/fe300prci/fe300prci_driver.c - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/fe300prci/fe300prci_driver.c - - - bsp/drivers/fe300prci/fe300prci_driver.h - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/fe300prci/fe300prci_driver.h - - - bsp/drivers/plic/plic_driver.c - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/plic/plic_driver.c - - - bsp/drivers/plic/plic_driver.h - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/plic/plic_driver.h - - - bsp/env/coreplexip-e31-arty/dhrystone.lds - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e31-arty/dhrystone.lds - - - bsp/env/coreplexip-e31-arty/flash.lds - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e31-arty/flash.lds - - - bsp/env/coreplexip-e31-arty/init.c - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e31-arty/init.c - - - bsp/env/coreplexip-e31-arty/openocd.cfg - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e31-arty/openocd.cfg - - - bsp/env/coreplexip-e31-arty/platform.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e31-arty/platform.h - - - bsp/env/coreplexip-e31-arty/scratchpad.lds - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e31-arty/scratchpad.lds - - - bsp/env/coreplexip-e31-arty/settings.mk - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e31-arty/settings.mk - - - bsp/include/sifive/bits.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/bits.h - - - bsp/include/sifive/const.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/const.h - - - bsp/include/sifive/devices - 2 - virtual:/virtual - - - bsp/include/sifive/sections.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/sections.h - - - bsp/include/sifive/smp.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/smp.h - - - bsp/libwrap/misc/write_hex.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/misc/write_hex.c - - - bsp/libwrap/stdlib/malloc.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/stdlib/malloc.c - - - bsp/libwrap/sys/_exit.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/_exit.c - - - bsp/libwrap/sys/close.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/close.c - - - bsp/libwrap/sys/execve.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/execve.c - - - bsp/libwrap/sys/fork.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/fork.c - - - bsp/libwrap/sys/fstat.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/fstat.c - - - bsp/libwrap/sys/getpid.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/getpid.c - - - bsp/libwrap/sys/isatty.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/isatty.c - - - bsp/libwrap/sys/kill.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/kill.c - - - bsp/libwrap/sys/link.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/link.c - - - bsp/libwrap/sys/lseek.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/lseek.c - - - bsp/libwrap/sys/open.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/open.c - - - bsp/libwrap/sys/openat.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/openat.c - - - bsp/libwrap/sys/puts.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/puts.c - - - bsp/libwrap/sys/read.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/read.c - - - bsp/libwrap/sys/sbrk.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/sbrk.c - - - bsp/libwrap/sys/stat.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/stat.c - - - bsp/libwrap/sys/stub.h - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/stub.h - - - bsp/libwrap/sys/times.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/times.c - - - bsp/libwrap/sys/unlink.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/unlink.c - - - bsp/libwrap/sys/wait.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/wait.c - - - bsp/libwrap/sys/weak_under_alias.h - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/weak_under_alias.h - - - bsp/libwrap/sys/write.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/write.c - - - bsp/include/sifive/devices/aon.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/aon.h - - - bsp/include/sifive/devices/clint.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/clint.h - - - bsp/include/sifive/devices/gpio.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/gpio.h - - - bsp/include/sifive/devices/otp.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/otp.h - - - bsp/include/sifive/devices/plic.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/plic.h - - - bsp/include/sifive/devices/prci.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/prci.h - - - bsp/include/sifive/devices/pwm.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/pwm.h - - - bsp/include/sifive/devices/spi.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/spi.h - - - bsp/include/sifive/devices/uart.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/uart.h - - - diff --git a/FreedomStudio/E31FPGA/coreplexip_welcome/coreplexip_welcome JLINK.launch b/FreedomStudio/E31FPGA/coreplexip_welcome/coreplexip_welcome JLINK.launch deleted file mode 100644 index dad28c2..0000000 --- a/FreedomStudio/E31FPGA/coreplexip_welcome/coreplexip_welcome JLINK.launch +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/FreedomStudio/E31FPGA/coreplexip_welcome/coreplexip_welcome OpenOCD.launch b/FreedomStudio/E31FPGA/coreplexip_welcome/coreplexip_welcome OpenOCD.launch deleted file mode 100644 index b416a5c..0000000 --- a/FreedomStudio/E31FPGA/coreplexip_welcome/coreplexip_welcome OpenOCD.launch +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/FreedomStudio/E31FPGA/coreplexip_welcome/e31arty-xsvd.json b/FreedomStudio/E31FPGA/coreplexip_welcome/e31arty-xsvd.json deleted file mode 100644 index 4879d45..0000000 --- a/FreedomStudio/E31FPGA/coreplexip_welcome/e31arty-xsvd.json +++ /dev/null @@ -1,1250 +0,0 @@ -{ - "schemaVersion": "0.2.4", - "contentVersion": "0.2.0", - "headerVersion": "0.2.0", - "device": { - "e31arty": { - "displayName": "Core Complex E31 Arty", - "description": "SiFive’s E31 is a synthesised version of Core Complex E31 running on the Arty board.", - "supplier": { - "name": "sifive", - "id": "1", - "displayName": "SiFive", - "fullName": "SiFive, Inc.", - "contact": "info@sifive.com" - }, - "busWidth": "32", - "resetMask": "all", - "resetValue": "0x00000000", - "access": "rw", - "headerGuardPrefix": "SIFIVE_DEVICES_ARTY_E31_", - "headerTypePrefix": "sifive_e31arty_", - "headerInterruptPrefix": "sifive_e31arty_interrupt_global_", - "headerInterruptEnumPrefix": "riscv_interrupts_global_", - "revision": "r0p0", - "numInterrupts": "26", - "priorityBits": "3", - "regWidth": "32", - "cores": { - "e31": { - "harts": "1", - "isa": "RV32IMAC", - "isaVersion": "2.2", - "mpu": "pmp", - "mmu": "none", - "localInterrupts": { - "machine_software": { - "description": "Machine Software Interrupt", - "value": "3" - }, - "machine_timer": { - "description": "Machine Timer Interrupt", - "value": "7" - }, - "machine_ext": { - "description": "Machine External Interrupt", - "value": "11" - }, - "0": { - "description": "Local Interrupt 0", - "value": "16" - }, - "1": { - "description": "Local Interrupt 1", - "value": "17" - }, - "2": { - "description": "Local Interrupt 2", - "value": "18" - }, - "3": { - "description": "Local Interrupt 3", - "value": "19" - }, - "4": { - "description": "Local Interrupt 4", - "value": "20" - }, - "5": { - "description": "Local Interrupt 5", - "value": "21" - }, - "6": { - "description": "Local Interrupt 6", - "value": "22" - }, - "7": { - "description": "Local Interrupt 7", - "value": "23" - }, - "8": { - "description": "Local Interrupt 8", - "value": "24" - }, - "9": { - "description": "Local Interrupt 9", - "value": "25" - }, - "10": { - "description": "Local Interrupt 10", - "value": "26" - }, - "11": { - "description": "Local Interrupt 11", - "value": "27" - }, - "12": { - "description": "Local Interrupt 12", - "value": "28" - }, - "13": { - "description": "Local Interrupt 13", - "value": "29" - }, - "14": { - "description": "Local Interrupt 14", - "value": "30" - }, - "15": { - "description": "Local Interrupt 15", - "value": "31" - } - }, - "numLocalInterrupts": "16" - } - }, - "peripherals": { - "clint": { - "description": "Core Complex Local Interruptor (CLINT) Peripheral", - "baseAddress": "0x02000000", - "size": "0x10000", - "registers": { - "msip": { - "description": "MSIP (Machine-mode Software Interrupts) Register per Hart", - "addressOffset": "0x0000", - "arraySize": "1" - } - }, - "clusters": { - "mtimecmp": { - "description": "Machine Time Compare Registers per Hart", - "addressOffset": "0x4000", - "arraySize": "1", - "registers": { - "low": { - "description": "Machine Compare Register Low", - "addressOffset": "0x0000" - }, - "high": { - "description": "Machine Compare Register High", - "addressOffset": "0x0004" - } - } - }, - "mtime": { - "description": "Machine Time Register", - "addressOffset": "0xBFF8", - "access": "r", - "registers": { - "low": { - "description": "Machine Time Register Low", - "addressOffset": "0x0000" - }, - "high": { - "description": "Machine Time Register High", - "addressOffset": "0x0004" - } - } - } - } - }, - "plic": { - "description": "Platform-Level Interrupt Controller (PLIC) Peripheral", - "baseAddress": "0x0C000000", - "size": "0x4000000", - "registers": { - "priorities": { - "arraySize": "27", - "description": "Interrupt Priorities Registers; 0 is reserved.", - "addressOffset": "0x0000", - "fields": { - "value": { - "description": "The priority for a given global interrupt", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "pendings": { - "arraySize": "8", - "description": "Interrupt Pending Bits Registers", - "addressOffset": "0x1000", - "access": "r" - } - }, - "clusters": { - "enablestarget0": { - "description": "Hart 0 Interrupt Enable Bits", - "addressOffset": "0x00002000", - "clusters": { - "m": { - "addressOffset": "0x0000", - "description": "Hart 0 M-mode Interrupt Enable Bits", - "registers": { - "enables": { - "arraySize": "8", - "description": "Interrupt Enable Bits Registers", - "addressOffset": "0x0000" - } - } - } - } - }, - "target0": { - "description": "Hart 0 Interrupt Thresholds", - "addressOffset": "0x00200000", - "clusters": { - "m": { - "addressOffset": "0x0000", - "description": "Hart 0 M-Mode Interrupt Threshold", - "registers": { - "threshold": { - "description": "The Priority Threshold Register", - "addressOffset": "0x0000", - "fields": { - "value": { - "description": "The priority threshold value", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "claimcomplete": { - "description": "The Interrupt Claim/Completion Register", - "addressOffset": "0x0004" - } - } - } - } - } - }, - "interrupts": { - "switch0": { - "description": "SWITCH 0 Interrupt", - "value": "2" - }, - "switch1": { - "description": "SWITCH 1 Interrupt", - "value": "3" - }, - "switch2": { - "description": "SWITCH 2 Interrupt", - "value": "4" - }, - "switch3": { - "description": "SWITCH 3 Interrupt", - "value": "5" - } - } - }, - "gpio": { - "description": "General Purpose Input/Output Controller (GPIO) Peripheral", - "baseAddress": "0x20002000", - "size": "0x1000", - "registers": { - "value": { - "description": "Pin Value Register", - "addressOffset": "0x000", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Value Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "inputen": { - "description": "Pin Input Enable Register", - "addressOffset": "0x004", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Pin Input Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "outputen": { - "description": "Pin Output Enable Register", - "addressOffset": "0x008", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Pin Output Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "port": { - "description": "Output Port Value Register", - "addressOffset": "0x00C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Output Port Value Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "pue": { - "description": "Internal Pull-up Enable Register", - "addressOffset": "0x010", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Internal Pull-up Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "ds": { - "description": "Pin Drive Strength Register", - "addressOffset": "0x014", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Pin Drive Strength Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "riseie": { - "description": "Rise Interrupt Enable Register", - "addressOffset": "0x018", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Rise Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "riseip": { - "description": "Rise Interrupt Pending Register", - "addressOffset": "0x01C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Rise Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "fallie": { - "description": "Fall Interrupt Enable Register", - "addressOffset": "0x020", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Fall Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "fallip": { - "description": "Fall Interrupt Pending Register", - "addressOffset": "0x024", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Fall Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "highie": { - "description": "High Interrupt Enable Register", - "addressOffset": "0x028", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "High Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "highip": { - "description": "High Interrupt Pending Register", - "addressOffset": "0x02C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "High Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "lowie": { - "description": "Low Interrupt Enable Register", - "addressOffset": "0x030", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Low Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "lowip": { - "description": "Low Interrupt Pending Register", - "addressOffset": "0x034", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Low Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "iofen": { - "description": "HW I/O Function Enable Register", - "addressOffset": "0x038", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "HW I/O Function Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "iofsel": { - "description": "HW I/O Function Select Register", - "addressOffset": "0x03C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "HW I/O Function Select Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "outxor": { - "description": "Output XOR (invert) Register", - "addressOffset": "0x040", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Output XOR Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - } - }, - "interrupts": { - "gpio0": { - "description": "GPIO0 Interrupt", - "value": "7" - }, - "gpio1": { - "description": "GPIO1 Interrupt", - "value": "8" - }, - "gpio2": { - "description": "GPIO2 Interrupt", - "value": "9" - }, - "gpio3": { - "description": "GPIO3 Interrupt", - "value": "10" - }, - "gpio4": { - "description": "GPIO4 Interrupt", - "value": "11" - }, - "gpio5": { - "description": "GPIO5 Interrupt", - "value": "12" - }, - "gpio6": { - "description": "GPIO6 Interrupt", - "value": "13" - }, - "gpio7": { - "description": "GPIO7 Interrupt", - "value": "14" - }, - "gpio8": { - "description": "GPIO8 Interrupt", - "value": "15" - }, - "gpio9": { - "description": "GPIO9 Interrupt", - "value": "16" - }, - "gpio10": { - "description": "GPIO10 Interrupt", - "value": "17" - }, - "gpio11": { - "description": "GPIO11 Interrupt", - "value": "18" - }, - "gpio12": { - "description": "GPIO12 Interrupt", - "value": "19" - }, - "gpio13": { - "description": "GPIO13 Interrupt", - "value": "20" - }, - "gpio14": { - "description": "GPIO14 Interrupt", - "value": "21" - }, - "gpio15": { - "description": "GPIO15 Interrupt", - "value": "22" - } - } - }, - "uart0": { - "description": "Universal Asynchronous Receiver/Transmitter (UART) Peripheral", - "baseAddress": "0x20000000", - "size": "0x1000", - "resetMask": "none", - "groupName": "uart", - "registers": { - "txdata": { - "description": "Transmit Data Register", - "addressOffset": "0x000", - "fields": { - "data": { - "description": "Transmit data", - "bitOffset": "0", - "bitWidth": "8" - }, - "full": { - "description": "Transmit FIFO full", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "rxdata": { - "description": "Receive Data Register", - "addressOffset": "0x004", - "resetMask": "none", - "fields": { - "data": { - "description": "Received data", - "bitOffset": "0", - "bitWidth": "8", - "access": "r" - }, - "empty": { - "description": "Receive FIFO empty", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "txctrl": { - "description": "Transmit Control Register ", - "addressOffset": "0x008", - "fields": { - "txen": { - "description": "Transmit enable", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "nstop": { - "description": "Number of stop bits", - "bitOffset": "1", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "txcnt": { - "description": "Transmit watermark level", - "bitOffset": "16", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "rxctrl": { - "description": "Receive Control Register", - "addressOffset": "0x00C", - "fields": { - "rxen": { - "description": "Receive enable", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "rxcnt": { - "description": "Receive watermark level", - "bitOffset": "16", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ie": { - "description": "Interrupt Enable Register", - "addressOffset": "0x010", - "fields": { - "txwm": { - "description": "Transmit watermark interrupt enable", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "rxwm": { - "description": "Receive watermark interrupt enable", - "bitOffset": "1", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ip": { - "description": "Interrupt Pending Register", - "addressOffset": "0x014", - "access": "r", - "fields": { - "txwm": { - "description": "Transmit watermark interrupt pending", - "bitOffset": "0", - "bitWidth": "1" - }, - "rxwm": { - "description": "Receive watermark interrupt pending", - "bitOffset": "1", - "bitWidth": "1" - } - } - }, - "div": { - "description": "Baud Rate Divisor Register", - "addressOffset": "0x018", - "fields": { - "value": { - "description": "Baud rate divisor", - "bitOffset": "0", - "bitWidth": "16", - "resetMask": "all", - "resetValue": "0x0000FFFF" - } - } - } - }, - "interrupts": { - "uart0": { - "description": "UART0 Interrupt", - "value": "1" - } - } - }, - "spi0": { - "description": "Serial Peripheral Interface (SPI) Peripheral", - "baseAddress": "0x20004000", - "size": "0x1000", - "resetMask": "none", - "groupName": "spi", - "registers": { - "sckdiv": { - "description": "Serial clock divisor Register", - "addressOffset": "0x000", - "fields": { - "scale": { - "description": "Divisor for serial clock", - "bitOffset": "0", - "bitWidth": "12", - "resetMask": "all", - "resetValue": "0x003" - } - } - }, - "sckmode": { - "description": "Serial Clock Mode Register", - "addressOffset": "0x004", - "fields": { - "pha": { - "description": "Serial clock phase", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "pol": { - "description": "Serial clock polarity", - "bitOffset": "1", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "csid": { - "description": "Chip Select ID Register", - "addressOffset": "0x010", - "resetMask": "all", - "resetValue": "0x00000000" - }, - "csdef": { - "description": "Chip Select Default Register", - "addressOffset": "0x014", - "resetMask": "all", - "resetValue": "0x00000001" - }, - "csmode": { - "description": "Chip Select Mode Register", - "addressOffset": "0x018", - "fields": { - "mode": { - "description": "Chip select mode", - "bitOffset": "0", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0", - "enumerations": { - "csmode-enum": { - "description": "Chip Select Modes Enumeration", - "values": { - "0": { - "displayName": "auto", - "description": "Assert/de-assert CS at the beginning/end of each frame" - }, - "*": { - "displayName": "reserved" - }, - "2": { - "displayName": "hold", - "description": "Keep CS continuously asserted after the initial frame" - }, - "3": { - "displayName": "off", - "description": "Disable hardware control of the CS pin" - } - } - } - } - } - } - }, - "delay0": { - "description": "Delay Control 0 Register", - "addressOffset": "0x028", - "fields": { - "cssck": { - "description": "CS to SCK Delay", - "bitOffset": "0", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - }, - "sckcs": { - "description": "SCK to CS Delay", - "bitOffset": "16", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - } - } - }, - "delay1": { - "description": "Delay Control 1 Register", - "addressOffset": "0x02C", - "fields": { - "intercs": { - "description": "Minimum CS inactive time", - "bitOffset": "0", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - }, - "interxfr": { - "description": "Maximum interframe delay", - "bitOffset": "16", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - } - } - }, - "fmt": { - "description": "Frame Format Register", - "addressOffset": "0x040", - "fields": { - "proto": { - "description": "SPI Protocol", - "bitOffset": "0", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0", - "enumerations": { - "proto-enum": { - "description": "SPI Protocol Enumeration", - "values": { - "0": { - "displayName": "single", - "description": "DQ0 (MOSI), DQ1 (MISO)" - }, - "1": { - "displayName": "dual", - "description": "DQ0, DQ1" - }, - "2": { - "displayName": "quad", - "description": "DQ0, DQ1, DQ2, DQ3" - }, - "*": { - "displayName": "reserved" - } - } - } - } - }, - "endian": { - "description": "SPI endianness", - "bitOffset": "2", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0", - "enumerations": { - "endian-enum": { - "description": "SPI Endianness Enumeration", - "values": { - "0": { - "displayName": "msb", - "description": "Transmit most-significant bit (MSB) first" - }, - "1": { - "displayName": "lsb", - "description": "Transmit least-significant bit (LSB) first" - } - } - } - } - }, - "dir": { - "description": "SPI I/O Direction", - "bitOffset": "3", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1", - "enumerations": { - "dir-enum": { - "description": "SPI I/O Direction Enumeration", - "values": { - "0": { - "displayName": "rx", - "description": "For dual and quad protocols, the DQ pins are tri-stated. For the single protocol, the DQ0 pin is driven with the transmit data as normal." - }, - "1": { - "displayName": "tx", - "description": "The receive FIFO is not populated." - } - } - } - } - }, - "len": { - "description": "Number of bits per frame", - "bitOffset": "16", - "bitWidth": "4", - "resetMask": "all", - "resetValue": "0x8" - } - } - }, - "txdata": { - "description": "Tx FIFO Data Register", - "addressOffset": "0x048", - "fields": { - "data": { - "description": "Transmit data", - "bitOffset": "0", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x00" - }, - "full": { - "description": "FIFO full flag", - "bitOffset": "31", - "bitWidth": "1", - "access": "r" - } - } - }, - "rxdata": { - "description": "Rx FIFO Data Register", - "addressOffset": "0x04C", - "resetMask": "none", - "access": "r", - "fields": { - "data": { - "description": "Received data", - "bitOffset": "0", - "bitWidth": "8" - }, - "empty": { - "description": "FIFO empty flag", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "txmark": { - "description": "Tx FIFO Watermark Register", - "addressOffset": "0x050", - "fields": { - "value": { - "description": "Transmit watermark", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x1" - } - } - }, - "rxmark": { - "description": "Rx FIFO Watermark Register", - "addressOffset": "0x054", - "fields": { - "value": { - "description": "Receive watermark", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "fctrl": { - "description": "Flash Interface Control Register", - "addressOffset": "0x060", - "fields": { - "en": { - "description": "SPI Flash Mode Select", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1" - } - } - }, - "ffmt": { - "description": "Flash Instruction Format Register", - "addressOffset": "0x064", - "fields": { - "cmden": { - "description": "Enable sending of command", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1" - }, - "addrlen": { - "description": "Number of address bytes(0 to 4)", - "bitOffset": "1", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x3" - }, - "padcnt": { - "description": "Number of dummy cycles", - "bitOffset": "4", - "bitWidth": "4", - "resetMask": "all", - "resetValue": "0x0" - }, - "cmdproto": { - "description": "Protocol for transmitting command", - "bitOffset": "8", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0" - }, - "addrproto": { - "description": "Protocol for transmitting address and padding", - "bitOffset": "10", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0" - }, - "dataproto": { - "description": "Protocol for receiving data bytes", - "bitOffset": "12", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0" - }, - "cmdcode": { - "description": "Value of command byte", - "bitOffset": "16", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x03" - }, - "padcode": { - "description": "First 8 bits to transmit during dummy cycles", - "bitOffset": "24", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ie": { - "description": "Interrupt Enable Register", - "addressOffset": "0x070", - "fields": { - "txwm": { - "description": "Transmit watermark enable", - "bitOffset": "0", - "bitWidth": "1", - "access": "r", - "resetMask": "all", - "resetValue": "0x0" - }, - "rxwm": { - "description": "Receive watermark enable", - "bitOffset": "1", - "bitWidth": "1", - "access": "r", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ip": { - "description": "Interrupt Pending Register", - "addressOffset": "0x074", - "fields": { - "txwm": { - "description": "Transmit watermark pending", - "bitOffset": "0", - "bitWidth": "1", - "access": "r" - }, - "rxwm": { - "description": "Receive watermark pending", - "bitOffset": "1", - "bitWidth": "1", - "access": "r" - } - } - } - }, - "interrupts": { - "spi0": { - "description": "SPI0 Interrupt", - "value": "6" - } - } - }, - "pwm0": { - "description": "Pulse-Width Modulation (PWM) Peripheral", - "baseAddress": "0x20005000", - "size": "0x1000", - "resetMask": "none", - "groupName": "pwm", - "registers": { - "cfg": { - "description": "Configuration Register", - "addressOffset": "0x000", - "fields": { - "scale": { - "description": "Counter scale", - "bitOffset": "0", - "bitWidth": "4" - }, - "sticky": { - "description": "Sticky - disallow clearing pwmcmpXip bits", - "bitOffset": "8", - "bitWidth": "1" - }, - "zerocmp": { - "description": "Zero - counter resets to zero after match", - "bitOffset": "9", - "bitWidth": "1" - }, - "deglitch": { - "description": "Deglitch - latch pwmcmpXip within same cycle", - "bitOffset": "10", - "bitWidth": "1" - }, - "enalways": { - "description": "Enable always - run continuously", - "bitOffset": "12", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "enoneshot": { - "description": "enable one shot - run one cycle", - "bitOffset": "13", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "cmp0center": { - "description": "PWM0 Compare Center", - "bitOffset": "16", - "bitWidth": "1" - }, - "cmp1center": { - "description": "PWM1 Compare Center", - "bitOffset": "17", - "bitWidth": "1" - }, - "cmp2center": { - "description": "PWM2 Compare Center", - "bitOffset": "18", - "bitWidth": "1" - }, - "cmp3center": { - "description": "PWM3 Compare Center", - "bitOffset": "19", - "bitWidth": "1" - }, - "cmp0gang": { - "description": "PWM0/PWM1 Compare Gang", - "bitOffset": "24", - "bitWidth": "1" - }, - "cmp1gang": { - "description": "PWM1/PWM2 Compare Gang", - "bitOffset": "25", - "bitWidth": "1" - }, - "cmp2gang": { - "description": "PWM2/PWM3 Compare Gang", - "bitOffset": "26", - "bitWidth": "1" - }, - "cmp3gang": { - "description": "PWM3/PWM0 Compare Gang", - "bitOffset": "27", - "bitWidth": "1" - }, - "cmp0ip": { - "description": "PWM0 Interrupt Pending", - "bitOffset": "28", - "bitWidth": "1" - }, - "cmp1ip": { - "description": "PWM1 Interrupt Pending", - "bitOffset": "29", - "bitWidth": "1" - }, - "cmp2ip": { - "description": "PWM2 Interrupt Pending", - "bitOffset": "30", - "bitWidth": "1" - }, - "cmp3ip": { - "description": "PWM3 Interrupt Pending", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "count": { - "description": "Configuration Register", - "addressOffset": "0x008" - }, - "scale": { - "description": "Scale Register", - "addressOffset": "0x010", - "fields": { - "value": { - "description": "Compare value", - "bitOffset": "0", - "bitWidth": "8" - } - } - }, - "cmp": { - "arraySize": "4", - "description": "Compare Registers", - "addressOffset": "0x020", - "fields": { - "value": { - "description": "Compare value", - "bitOffset": "0", - "bitWidth": "8" - } - } - } - }, - "interrupts": { - "pwm0cmp0": { - "description": "PWM0 Compare 0 Interrupt", - "value": "23" - }, - "pwm0cmp1": { - "description": "PWM0 Compare 1 Interrupt", - "value": "24" - }, - "pwm0cmp2": { - "description": "PWM0 Compare 2 Interrupt", - "value": "25" - }, - "pwm0cmp3": { - "description": "PWM0 Compare 3 Interrupt", - "value": "26" - } - } - } - } - } - } -} \ No newline at end of file diff --git a/FreedomStudio/E31FPGA/coreplexip_welcome/sifive-coreplexip-e31-arty.cfg b/FreedomStudio/E31FPGA/coreplexip_welcome/sifive-coreplexip-e31-arty.cfg deleted file mode 100644 index 8b382dc..0000000 --- a/FreedomStudio/E31FPGA/coreplexip_welcome/sifive-coreplexip-e31-arty.cfg +++ /dev/null @@ -1,31 +0,0 @@ -# JTAG adapter setup -adapter_khz 10000 - -interface ftdi -ftdi_device_desc "Olimex OpenOCD JTAG ARM-USB-TINY-H" -ftdi_vid_pid 0x15ba 0x002a - -ftdi_layout_init 0x0808 0x0a1b -ftdi_layout_signal nSRST -oe 0x0200 -#ftdi_layout_signal nTRST -data 0x0100 -oe 0x0100 -ftdi_layout_signal LED -data 0x0800 - -set _CHIPNAME riscv -jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x20000001 - -set _TARGETNAME $_CHIPNAME.cpu - -target create $_TARGETNAME.0 riscv -chain-position $_TARGETNAME -$_TARGETNAME.0 configure -work-area-phys 0x80000000 -work-area-size 10000 -work-area-backup 1 - -# Un-comment these two flash lines if you have a SPI flash and want to write -# it. -flash bank spi0 fespi 0x40000000 0 0 0 $_TARGETNAME.0 0x20004000 -init -if {[ info exists pulse_srst]} { - ftdi_set_signal nSRST 0 - ftdi_set_signal nSRST z -} -halt -flash protect 0 64 last off -echo "Ready for Remote Connections" diff --git a/FreedomStudio/E31FPGA/dhrystone/.cproject b/FreedomStudio/E31FPGA/dhrystone/.cproject deleted file mode 100644 index dba647c..0000000 --- a/FreedomStudio/E31FPGA/dhrystone/.cproject +++ /dev/null @@ -1,216 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/FreedomStudio/E31FPGA/dhrystone/.gitignore b/FreedomStudio/E31FPGA/dhrystone/.gitignore deleted file mode 100644 index 3df573f..0000000 --- a/FreedomStudio/E31FPGA/dhrystone/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/Debug/ diff --git a/FreedomStudio/E31FPGA/dhrystone/.project b/FreedomStudio/E31FPGA/dhrystone/.project deleted file mode 100644 index d5b2c53..0000000 --- a/FreedomStudio/E31FPGA/dhrystone/.project +++ /dev/null @@ -1,383 +0,0 @@ - - - dhrystone - - - - - - org.eclipse.cdt.managedbuilder.core.genmakebuilder - clean,full,incremental, - - - - - org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder - full,incremental, - - - - - - org.eclipse.cdt.core.cnature - org.eclipse.cdt.managedbuilder.core.managedBuildNature - org.eclipse.cdt.managedbuilder.core.ScannerConfigNature - - - - bsp - 2 - virtual:/virtual - - - dhry.h - 1 - PARENT-3-PROJECT_LOC/software/dhrystone/dhry.h - - - dhry_1.c - 1 - PARENT-3-PROJECT_LOC/software/dhrystone/dhry_1.c - - - dhry_2.c - 1 - PARENT-3-PROJECT_LOC/software/dhrystone/dhry_2.c - - - dhry_printf.c - 1 - PARENT-3-PROJECT_LOC/software/dhrystone/dhry_printf.c - - - dhry_stubs.c - 1 - PARENT-3-PROJECT_LOC/software/dhrystone/dhry_stubs.c - - - bsp/drivers - 2 - virtual:/virtual - - - bsp/env - 2 - virtual:/virtual - - - bsp/include - 2 - virtual:/virtual - - - bsp/libwrap - 2 - virtual:/virtual - - - bsp/drivers/fe300prci - 2 - virtual:/virtual - - - bsp/drivers/plic - 2 - virtual:/virtual - - - bsp/env/coreplexip-arty.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-arty.h - - - bsp/env/coreplexip-e31-arty - 2 - virtual:/virtual - - - bsp/env/encoding.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/encoding.h - - - bsp/env/entry.S - 1 - PARENT-3-PROJECT_LOC/bsp/env/entry.S - - - bsp/env/hifive1.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/hifive1.h - - - bsp/env/start.S - 1 - PARENT-3-PROJECT_LOC/bsp/env/start.S - - - bsp/include/sifive - 2 - virtual:/virtual - - - bsp/libwrap/misc - 2 - virtual:/virtual - - - bsp/libwrap/stdlib - 2 - virtual:/virtual - - - bsp/libwrap/sys - 2 - virtual:/virtual - - - bsp/drivers/fe300prci/fe300prci_driver.c - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/fe300prci/fe300prci_driver.c - - - bsp/drivers/fe300prci/fe300prci_driver.h - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/fe300prci/fe300prci_driver.h - - - bsp/drivers/plic/plic_driver.c - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/plic/plic_driver.c - - - bsp/drivers/plic/plic_driver.h - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/plic/plic_driver.h - - - bsp/env/coreplexip-e31-arty/dhrystone.lds - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e31-arty/dhrystone.lds - - - bsp/env/coreplexip-e31-arty/flash.lds - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e31-arty/flash.lds - - - bsp/env/coreplexip-e31-arty/init.c - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e31-arty/init.c - - - bsp/env/coreplexip-e31-arty/openocd.cfg - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e31-arty/openocd.cfg - - - bsp/env/coreplexip-e31-arty/platform.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e31-arty/platform.h - - - bsp/env/coreplexip-e31-arty/scratchpad.lds - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e31-arty/scratchpad.lds - - - bsp/env/coreplexip-e31-arty/settings.mk - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e31-arty/settings.mk - - - bsp/include/sifive/bits.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/bits.h - - - bsp/include/sifive/const.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/const.h - - - bsp/include/sifive/devices - 2 - virtual:/virtual - - - bsp/include/sifive/sections.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/sections.h - - - bsp/include/sifive/smp.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/smp.h - - - bsp/libwrap/misc/write_hex.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/misc/write_hex.c - - - bsp/libwrap/stdlib/malloc.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/stdlib/malloc.c - - - bsp/libwrap/sys/_exit.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/_exit.c - - - bsp/libwrap/sys/close.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/close.c - - - bsp/libwrap/sys/execve.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/execve.c - - - bsp/libwrap/sys/fork.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/fork.c - - - bsp/libwrap/sys/fstat.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/fstat.c - - - bsp/libwrap/sys/getpid.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/getpid.c - - - bsp/libwrap/sys/isatty.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/isatty.c - - - bsp/libwrap/sys/kill.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/kill.c - - - bsp/libwrap/sys/link.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/link.c - - - bsp/libwrap/sys/lseek.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/lseek.c - - - bsp/libwrap/sys/open.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/open.c - - - bsp/libwrap/sys/openat.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/openat.c - - - bsp/libwrap/sys/puts.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/puts.c - - - bsp/libwrap/sys/read.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/read.c - - - bsp/libwrap/sys/sbrk.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/sbrk.c - - - bsp/libwrap/sys/stat.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/stat.c - - - bsp/libwrap/sys/stub.h - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/stub.h - - - bsp/libwrap/sys/times.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/times.c - - - bsp/libwrap/sys/unlink.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/unlink.c - - - bsp/libwrap/sys/wait.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/wait.c - - - bsp/libwrap/sys/weak_under_alias.h - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/weak_under_alias.h - - - bsp/libwrap/sys/write.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/write.c - - - bsp/include/sifive/devices/aon.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/aon.h - - - bsp/include/sifive/devices/clint.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/clint.h - - - bsp/include/sifive/devices/gpio.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/gpio.h - - - bsp/include/sifive/devices/otp.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/otp.h - - - bsp/include/sifive/devices/plic.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/plic.h - - - bsp/include/sifive/devices/prci.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/prci.h - - - bsp/include/sifive/devices/pwm.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/pwm.h - - - bsp/include/sifive/devices/spi.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/spi.h - - - bsp/include/sifive/devices/uart.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/uart.h - - - diff --git a/FreedomStudio/E31FPGA/dhrystone/.settings/language.settings.xml b/FreedomStudio/E31FPGA/dhrystone/.settings/language.settings.xml deleted file mode 100644 index fa2c25a..0000000 --- a/FreedomStudio/E31FPGA/dhrystone/.settings/language.settings.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/FreedomStudio/E31FPGA/dhrystone/dhrystone JLINK.launch b/FreedomStudio/E31FPGA/dhrystone/dhrystone JLINK.launch deleted file mode 100644 index c331740..0000000 --- a/FreedomStudio/E31FPGA/dhrystone/dhrystone JLINK.launch +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/FreedomStudio/E31FPGA/dhrystone/dhrystone OpenOCD.launch b/FreedomStudio/E31FPGA/dhrystone/dhrystone OpenOCD.launch deleted file mode 100644 index f4ae61d..0000000 --- a/FreedomStudio/E31FPGA/dhrystone/dhrystone OpenOCD.launch +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/FreedomStudio/E31FPGA/dhrystone/e31arty-xsvd.json b/FreedomStudio/E31FPGA/dhrystone/e31arty-xsvd.json deleted file mode 100644 index 4879d45..0000000 --- a/FreedomStudio/E31FPGA/dhrystone/e31arty-xsvd.json +++ /dev/null @@ -1,1250 +0,0 @@ -{ - "schemaVersion": "0.2.4", - "contentVersion": "0.2.0", - "headerVersion": "0.2.0", - "device": { - "e31arty": { - "displayName": "Core Complex E31 Arty", - "description": "SiFive’s E31 is a synthesised version of Core Complex E31 running on the Arty board.", - "supplier": { - "name": "sifive", - "id": "1", - "displayName": "SiFive", - "fullName": "SiFive, Inc.", - "contact": "info@sifive.com" - }, - "busWidth": "32", - "resetMask": "all", - "resetValue": "0x00000000", - "access": "rw", - "headerGuardPrefix": "SIFIVE_DEVICES_ARTY_E31_", - "headerTypePrefix": "sifive_e31arty_", - "headerInterruptPrefix": "sifive_e31arty_interrupt_global_", - "headerInterruptEnumPrefix": "riscv_interrupts_global_", - "revision": "r0p0", - "numInterrupts": "26", - "priorityBits": "3", - "regWidth": "32", - "cores": { - "e31": { - "harts": "1", - "isa": "RV32IMAC", - "isaVersion": "2.2", - "mpu": "pmp", - "mmu": "none", - "localInterrupts": { - "machine_software": { - "description": "Machine Software Interrupt", - "value": "3" - }, - "machine_timer": { - "description": "Machine Timer Interrupt", - "value": "7" - }, - "machine_ext": { - "description": "Machine External Interrupt", - "value": "11" - }, - "0": { - "description": "Local Interrupt 0", - "value": "16" - }, - "1": { - "description": "Local Interrupt 1", - "value": "17" - }, - "2": { - "description": "Local Interrupt 2", - "value": "18" - }, - "3": { - "description": "Local Interrupt 3", - "value": "19" - }, - "4": { - "description": "Local Interrupt 4", - "value": "20" - }, - "5": { - "description": "Local Interrupt 5", - "value": "21" - }, - "6": { - "description": "Local Interrupt 6", - "value": "22" - }, - "7": { - "description": "Local Interrupt 7", - "value": "23" - }, - "8": { - "description": "Local Interrupt 8", - "value": "24" - }, - "9": { - "description": "Local Interrupt 9", - "value": "25" - }, - "10": { - "description": "Local Interrupt 10", - "value": "26" - }, - "11": { - "description": "Local Interrupt 11", - "value": "27" - }, - "12": { - "description": "Local Interrupt 12", - "value": "28" - }, - "13": { - "description": "Local Interrupt 13", - "value": "29" - }, - "14": { - "description": "Local Interrupt 14", - "value": "30" - }, - "15": { - "description": "Local Interrupt 15", - "value": "31" - } - }, - "numLocalInterrupts": "16" - } - }, - "peripherals": { - "clint": { - "description": "Core Complex Local Interruptor (CLINT) Peripheral", - "baseAddress": "0x02000000", - "size": "0x10000", - "registers": { - "msip": { - "description": "MSIP (Machine-mode Software Interrupts) Register per Hart", - "addressOffset": "0x0000", - "arraySize": "1" - } - }, - "clusters": { - "mtimecmp": { - "description": "Machine Time Compare Registers per Hart", - "addressOffset": "0x4000", - "arraySize": "1", - "registers": { - "low": { - "description": "Machine Compare Register Low", - "addressOffset": "0x0000" - }, - "high": { - "description": "Machine Compare Register High", - "addressOffset": "0x0004" - } - } - }, - "mtime": { - "description": "Machine Time Register", - "addressOffset": "0xBFF8", - "access": "r", - "registers": { - "low": { - "description": "Machine Time Register Low", - "addressOffset": "0x0000" - }, - "high": { - "description": "Machine Time Register High", - "addressOffset": "0x0004" - } - } - } - } - }, - "plic": { - "description": "Platform-Level Interrupt Controller (PLIC) Peripheral", - "baseAddress": "0x0C000000", - "size": "0x4000000", - "registers": { - "priorities": { - "arraySize": "27", - "description": "Interrupt Priorities Registers; 0 is reserved.", - "addressOffset": "0x0000", - "fields": { - "value": { - "description": "The priority for a given global interrupt", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "pendings": { - "arraySize": "8", - "description": "Interrupt Pending Bits Registers", - "addressOffset": "0x1000", - "access": "r" - } - }, - "clusters": { - "enablestarget0": { - "description": "Hart 0 Interrupt Enable Bits", - "addressOffset": "0x00002000", - "clusters": { - "m": { - "addressOffset": "0x0000", - "description": "Hart 0 M-mode Interrupt Enable Bits", - "registers": { - "enables": { - "arraySize": "8", - "description": "Interrupt Enable Bits Registers", - "addressOffset": "0x0000" - } - } - } - } - }, - "target0": { - "description": "Hart 0 Interrupt Thresholds", - "addressOffset": "0x00200000", - "clusters": { - "m": { - "addressOffset": "0x0000", - "description": "Hart 0 M-Mode Interrupt Threshold", - "registers": { - "threshold": { - "description": "The Priority Threshold Register", - "addressOffset": "0x0000", - "fields": { - "value": { - "description": "The priority threshold value", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "claimcomplete": { - "description": "The Interrupt Claim/Completion Register", - "addressOffset": "0x0004" - } - } - } - } - } - }, - "interrupts": { - "switch0": { - "description": "SWITCH 0 Interrupt", - "value": "2" - }, - "switch1": { - "description": "SWITCH 1 Interrupt", - "value": "3" - }, - "switch2": { - "description": "SWITCH 2 Interrupt", - "value": "4" - }, - "switch3": { - "description": "SWITCH 3 Interrupt", - "value": "5" - } - } - }, - "gpio": { - "description": "General Purpose Input/Output Controller (GPIO) Peripheral", - "baseAddress": "0x20002000", - "size": "0x1000", - "registers": { - "value": { - "description": "Pin Value Register", - "addressOffset": "0x000", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Value Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "inputen": { - "description": "Pin Input Enable Register", - "addressOffset": "0x004", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Pin Input Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "outputen": { - "description": "Pin Output Enable Register", - "addressOffset": "0x008", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Pin Output Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "port": { - "description": "Output Port Value Register", - "addressOffset": "0x00C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Output Port Value Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "pue": { - "description": "Internal Pull-up Enable Register", - "addressOffset": "0x010", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Internal Pull-up Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "ds": { - "description": "Pin Drive Strength Register", - "addressOffset": "0x014", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Pin Drive Strength Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "riseie": { - "description": "Rise Interrupt Enable Register", - "addressOffset": "0x018", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Rise Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "riseip": { - "description": "Rise Interrupt Pending Register", - "addressOffset": "0x01C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Rise Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "fallie": { - "description": "Fall Interrupt Enable Register", - "addressOffset": "0x020", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Fall Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "fallip": { - "description": "Fall Interrupt Pending Register", - "addressOffset": "0x024", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Fall Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "highie": { - "description": "High Interrupt Enable Register", - "addressOffset": "0x028", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "High Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "highip": { - "description": "High Interrupt Pending Register", - "addressOffset": "0x02C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "High Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "lowie": { - "description": "Low Interrupt Enable Register", - "addressOffset": "0x030", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Low Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "lowip": { - "description": "Low Interrupt Pending Register", - "addressOffset": "0x034", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Low Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "iofen": { - "description": "HW I/O Function Enable Register", - "addressOffset": "0x038", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "HW I/O Function Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "iofsel": { - "description": "HW I/O Function Select Register", - "addressOffset": "0x03C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "HW I/O Function Select Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "outxor": { - "description": "Output XOR (invert) Register", - "addressOffset": "0x040", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Output XOR Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - } - }, - "interrupts": { - "gpio0": { - "description": "GPIO0 Interrupt", - "value": "7" - }, - "gpio1": { - "description": "GPIO1 Interrupt", - "value": "8" - }, - "gpio2": { - "description": "GPIO2 Interrupt", - "value": "9" - }, - "gpio3": { - "description": "GPIO3 Interrupt", - "value": "10" - }, - "gpio4": { - "description": "GPIO4 Interrupt", - "value": "11" - }, - "gpio5": { - "description": "GPIO5 Interrupt", - "value": "12" - }, - "gpio6": { - "description": "GPIO6 Interrupt", - "value": "13" - }, - "gpio7": { - "description": "GPIO7 Interrupt", - "value": "14" - }, - "gpio8": { - "description": "GPIO8 Interrupt", - "value": "15" - }, - "gpio9": { - "description": "GPIO9 Interrupt", - "value": "16" - }, - "gpio10": { - "description": "GPIO10 Interrupt", - "value": "17" - }, - "gpio11": { - "description": "GPIO11 Interrupt", - "value": "18" - }, - "gpio12": { - "description": "GPIO12 Interrupt", - "value": "19" - }, - "gpio13": { - "description": "GPIO13 Interrupt", - "value": "20" - }, - "gpio14": { - "description": "GPIO14 Interrupt", - "value": "21" - }, - "gpio15": { - "description": "GPIO15 Interrupt", - "value": "22" - } - } - }, - "uart0": { - "description": "Universal Asynchronous Receiver/Transmitter (UART) Peripheral", - "baseAddress": "0x20000000", - "size": "0x1000", - "resetMask": "none", - "groupName": "uart", - "registers": { - "txdata": { - "description": "Transmit Data Register", - "addressOffset": "0x000", - "fields": { - "data": { - "description": "Transmit data", - "bitOffset": "0", - "bitWidth": "8" - }, - "full": { - "description": "Transmit FIFO full", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "rxdata": { - "description": "Receive Data Register", - "addressOffset": "0x004", - "resetMask": "none", - "fields": { - "data": { - "description": "Received data", - "bitOffset": "0", - "bitWidth": "8", - "access": "r" - }, - "empty": { - "description": "Receive FIFO empty", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "txctrl": { - "description": "Transmit Control Register ", - "addressOffset": "0x008", - "fields": { - "txen": { - "description": "Transmit enable", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "nstop": { - "description": "Number of stop bits", - "bitOffset": "1", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "txcnt": { - "description": "Transmit watermark level", - "bitOffset": "16", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "rxctrl": { - "description": "Receive Control Register", - "addressOffset": "0x00C", - "fields": { - "rxen": { - "description": "Receive enable", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "rxcnt": { - "description": "Receive watermark level", - "bitOffset": "16", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ie": { - "description": "Interrupt Enable Register", - "addressOffset": "0x010", - "fields": { - "txwm": { - "description": "Transmit watermark interrupt enable", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "rxwm": { - "description": "Receive watermark interrupt enable", - "bitOffset": "1", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ip": { - "description": "Interrupt Pending Register", - "addressOffset": "0x014", - "access": "r", - "fields": { - "txwm": { - "description": "Transmit watermark interrupt pending", - "bitOffset": "0", - "bitWidth": "1" - }, - "rxwm": { - "description": "Receive watermark interrupt pending", - "bitOffset": "1", - "bitWidth": "1" - } - } - }, - "div": { - "description": "Baud Rate Divisor Register", - "addressOffset": "0x018", - "fields": { - "value": { - "description": "Baud rate divisor", - "bitOffset": "0", - "bitWidth": "16", - "resetMask": "all", - "resetValue": "0x0000FFFF" - } - } - } - }, - "interrupts": { - "uart0": { - "description": "UART0 Interrupt", - "value": "1" - } - } - }, - "spi0": { - "description": "Serial Peripheral Interface (SPI) Peripheral", - "baseAddress": "0x20004000", - "size": "0x1000", - "resetMask": "none", - "groupName": "spi", - "registers": { - "sckdiv": { - "description": "Serial clock divisor Register", - "addressOffset": "0x000", - "fields": { - "scale": { - "description": "Divisor for serial clock", - "bitOffset": "0", - "bitWidth": "12", - "resetMask": "all", - "resetValue": "0x003" - } - } - }, - "sckmode": { - "description": "Serial Clock Mode Register", - "addressOffset": "0x004", - "fields": { - "pha": { - "description": "Serial clock phase", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "pol": { - "description": "Serial clock polarity", - "bitOffset": "1", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "csid": { - "description": "Chip Select ID Register", - "addressOffset": "0x010", - "resetMask": "all", - "resetValue": "0x00000000" - }, - "csdef": { - "description": "Chip Select Default Register", - "addressOffset": "0x014", - "resetMask": "all", - "resetValue": "0x00000001" - }, - "csmode": { - "description": "Chip Select Mode Register", - "addressOffset": "0x018", - "fields": { - "mode": { - "description": "Chip select mode", - "bitOffset": "0", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0", - "enumerations": { - "csmode-enum": { - "description": "Chip Select Modes Enumeration", - "values": { - "0": { - "displayName": "auto", - "description": "Assert/de-assert CS at the beginning/end of each frame" - }, - "*": { - "displayName": "reserved" - }, - "2": { - "displayName": "hold", - "description": "Keep CS continuously asserted after the initial frame" - }, - "3": { - "displayName": "off", - "description": "Disable hardware control of the CS pin" - } - } - } - } - } - } - }, - "delay0": { - "description": "Delay Control 0 Register", - "addressOffset": "0x028", - "fields": { - "cssck": { - "description": "CS to SCK Delay", - "bitOffset": "0", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - }, - "sckcs": { - "description": "SCK to CS Delay", - "bitOffset": "16", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - } - } - }, - "delay1": { - "description": "Delay Control 1 Register", - "addressOffset": "0x02C", - "fields": { - "intercs": { - "description": "Minimum CS inactive time", - "bitOffset": "0", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - }, - "interxfr": { - "description": "Maximum interframe delay", - "bitOffset": "16", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - } - } - }, - "fmt": { - "description": "Frame Format Register", - "addressOffset": "0x040", - "fields": { - "proto": { - "description": "SPI Protocol", - "bitOffset": "0", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0", - "enumerations": { - "proto-enum": { - "description": "SPI Protocol Enumeration", - "values": { - "0": { - "displayName": "single", - "description": "DQ0 (MOSI), DQ1 (MISO)" - }, - "1": { - "displayName": "dual", - "description": "DQ0, DQ1" - }, - "2": { - "displayName": "quad", - "description": "DQ0, DQ1, DQ2, DQ3" - }, - "*": { - "displayName": "reserved" - } - } - } - } - }, - "endian": { - "description": "SPI endianness", - "bitOffset": "2", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0", - "enumerations": { - "endian-enum": { - "description": "SPI Endianness Enumeration", - "values": { - "0": { - "displayName": "msb", - "description": "Transmit most-significant bit (MSB) first" - }, - "1": { - "displayName": "lsb", - "description": "Transmit least-significant bit (LSB) first" - } - } - } - } - }, - "dir": { - "description": "SPI I/O Direction", - "bitOffset": "3", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1", - "enumerations": { - "dir-enum": { - "description": "SPI I/O Direction Enumeration", - "values": { - "0": { - "displayName": "rx", - "description": "For dual and quad protocols, the DQ pins are tri-stated. For the single protocol, the DQ0 pin is driven with the transmit data as normal." - }, - "1": { - "displayName": "tx", - "description": "The receive FIFO is not populated." - } - } - } - } - }, - "len": { - "description": "Number of bits per frame", - "bitOffset": "16", - "bitWidth": "4", - "resetMask": "all", - "resetValue": "0x8" - } - } - }, - "txdata": { - "description": "Tx FIFO Data Register", - "addressOffset": "0x048", - "fields": { - "data": { - "description": "Transmit data", - "bitOffset": "0", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x00" - }, - "full": { - "description": "FIFO full flag", - "bitOffset": "31", - "bitWidth": "1", - "access": "r" - } - } - }, - "rxdata": { - "description": "Rx FIFO Data Register", - "addressOffset": "0x04C", - "resetMask": "none", - "access": "r", - "fields": { - "data": { - "description": "Received data", - "bitOffset": "0", - "bitWidth": "8" - }, - "empty": { - "description": "FIFO empty flag", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "txmark": { - "description": "Tx FIFO Watermark Register", - "addressOffset": "0x050", - "fields": { - "value": { - "description": "Transmit watermark", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x1" - } - } - }, - "rxmark": { - "description": "Rx FIFO Watermark Register", - "addressOffset": "0x054", - "fields": { - "value": { - "description": "Receive watermark", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "fctrl": { - "description": "Flash Interface Control Register", - "addressOffset": "0x060", - "fields": { - "en": { - "description": "SPI Flash Mode Select", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1" - } - } - }, - "ffmt": { - "description": "Flash Instruction Format Register", - "addressOffset": "0x064", - "fields": { - "cmden": { - "description": "Enable sending of command", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1" - }, - "addrlen": { - "description": "Number of address bytes(0 to 4)", - "bitOffset": "1", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x3" - }, - "padcnt": { - "description": "Number of dummy cycles", - "bitOffset": "4", - "bitWidth": "4", - "resetMask": "all", - "resetValue": "0x0" - }, - "cmdproto": { - "description": "Protocol for transmitting command", - "bitOffset": "8", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0" - }, - "addrproto": { - "description": "Protocol for transmitting address and padding", - "bitOffset": "10", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0" - }, - "dataproto": { - "description": "Protocol for receiving data bytes", - "bitOffset": "12", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0" - }, - "cmdcode": { - "description": "Value of command byte", - "bitOffset": "16", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x03" - }, - "padcode": { - "description": "First 8 bits to transmit during dummy cycles", - "bitOffset": "24", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ie": { - "description": "Interrupt Enable Register", - "addressOffset": "0x070", - "fields": { - "txwm": { - "description": "Transmit watermark enable", - "bitOffset": "0", - "bitWidth": "1", - "access": "r", - "resetMask": "all", - "resetValue": "0x0" - }, - "rxwm": { - "description": "Receive watermark enable", - "bitOffset": "1", - "bitWidth": "1", - "access": "r", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ip": { - "description": "Interrupt Pending Register", - "addressOffset": "0x074", - "fields": { - "txwm": { - "description": "Transmit watermark pending", - "bitOffset": "0", - "bitWidth": "1", - "access": "r" - }, - "rxwm": { - "description": "Receive watermark pending", - "bitOffset": "1", - "bitWidth": "1", - "access": "r" - } - } - } - }, - "interrupts": { - "spi0": { - "description": "SPI0 Interrupt", - "value": "6" - } - } - }, - "pwm0": { - "description": "Pulse-Width Modulation (PWM) Peripheral", - "baseAddress": "0x20005000", - "size": "0x1000", - "resetMask": "none", - "groupName": "pwm", - "registers": { - "cfg": { - "description": "Configuration Register", - "addressOffset": "0x000", - "fields": { - "scale": { - "description": "Counter scale", - "bitOffset": "0", - "bitWidth": "4" - }, - "sticky": { - "description": "Sticky - disallow clearing pwmcmpXip bits", - "bitOffset": "8", - "bitWidth": "1" - }, - "zerocmp": { - "description": "Zero - counter resets to zero after match", - "bitOffset": "9", - "bitWidth": "1" - }, - "deglitch": { - "description": "Deglitch - latch pwmcmpXip within same cycle", - "bitOffset": "10", - "bitWidth": "1" - }, - "enalways": { - "description": "Enable always - run continuously", - "bitOffset": "12", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "enoneshot": { - "description": "enable one shot - run one cycle", - "bitOffset": "13", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "cmp0center": { - "description": "PWM0 Compare Center", - "bitOffset": "16", - "bitWidth": "1" - }, - "cmp1center": { - "description": "PWM1 Compare Center", - "bitOffset": "17", - "bitWidth": "1" - }, - "cmp2center": { - "description": "PWM2 Compare Center", - "bitOffset": "18", - "bitWidth": "1" - }, - "cmp3center": { - "description": "PWM3 Compare Center", - "bitOffset": "19", - "bitWidth": "1" - }, - "cmp0gang": { - "description": "PWM0/PWM1 Compare Gang", - "bitOffset": "24", - "bitWidth": "1" - }, - "cmp1gang": { - "description": "PWM1/PWM2 Compare Gang", - "bitOffset": "25", - "bitWidth": "1" - }, - "cmp2gang": { - "description": "PWM2/PWM3 Compare Gang", - "bitOffset": "26", - "bitWidth": "1" - }, - "cmp3gang": { - "description": "PWM3/PWM0 Compare Gang", - "bitOffset": "27", - "bitWidth": "1" - }, - "cmp0ip": { - "description": "PWM0 Interrupt Pending", - "bitOffset": "28", - "bitWidth": "1" - }, - "cmp1ip": { - "description": "PWM1 Interrupt Pending", - "bitOffset": "29", - "bitWidth": "1" - }, - "cmp2ip": { - "description": "PWM2 Interrupt Pending", - "bitOffset": "30", - "bitWidth": "1" - }, - "cmp3ip": { - "description": "PWM3 Interrupt Pending", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "count": { - "description": "Configuration Register", - "addressOffset": "0x008" - }, - "scale": { - "description": "Scale Register", - "addressOffset": "0x010", - "fields": { - "value": { - "description": "Compare value", - "bitOffset": "0", - "bitWidth": "8" - } - } - }, - "cmp": { - "arraySize": "4", - "description": "Compare Registers", - "addressOffset": "0x020", - "fields": { - "value": { - "description": "Compare value", - "bitOffset": "0", - "bitWidth": "8" - } - } - } - }, - "interrupts": { - "pwm0cmp0": { - "description": "PWM0 Compare 0 Interrupt", - "value": "23" - }, - "pwm0cmp1": { - "description": "PWM0 Compare 1 Interrupt", - "value": "24" - }, - "pwm0cmp2": { - "description": "PWM0 Compare 2 Interrupt", - "value": "25" - }, - "pwm0cmp3": { - "description": "PWM0 Compare 3 Interrupt", - "value": "26" - } - } - } - } - } - } -} \ No newline at end of file diff --git a/FreedomStudio/E31FPGA/dhrystone/sifive-coreplexip-e31-arty.cfg b/FreedomStudio/E31FPGA/dhrystone/sifive-coreplexip-e31-arty.cfg deleted file mode 100644 index 8b382dc..0000000 --- a/FreedomStudio/E31FPGA/dhrystone/sifive-coreplexip-e31-arty.cfg +++ /dev/null @@ -1,31 +0,0 @@ -# JTAG adapter setup -adapter_khz 10000 - -interface ftdi -ftdi_device_desc "Olimex OpenOCD JTAG ARM-USB-TINY-H" -ftdi_vid_pid 0x15ba 0x002a - -ftdi_layout_init 0x0808 0x0a1b -ftdi_layout_signal nSRST -oe 0x0200 -#ftdi_layout_signal nTRST -data 0x0100 -oe 0x0100 -ftdi_layout_signal LED -data 0x0800 - -set _CHIPNAME riscv -jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x20000001 - -set _TARGETNAME $_CHIPNAME.cpu - -target create $_TARGETNAME.0 riscv -chain-position $_TARGETNAME -$_TARGETNAME.0 configure -work-area-phys 0x80000000 -work-area-size 10000 -work-area-backup 1 - -# Un-comment these two flash lines if you have a SPI flash and want to write -# it. -flash bank spi0 fespi 0x40000000 0 0 0 $_TARGETNAME.0 0x20004000 -init -if {[ info exists pulse_srst]} { - ftdi_set_signal nSRST 0 - ftdi_set_signal nSRST z -} -halt -flash protect 0 64 last off -echo "Ready for Remote Connections" diff --git a/FreedomStudio/E31FPGA/global_interrupts/.cproject b/FreedomStudio/E31FPGA/global_interrupts/.cproject deleted file mode 100644 index 3d95eb4..0000000 --- a/FreedomStudio/E31FPGA/global_interrupts/.cproject +++ /dev/null @@ -1,215 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/FreedomStudio/E31FPGA/global_interrupts/.gitignore b/FreedomStudio/E31FPGA/global_interrupts/.gitignore deleted file mode 100644 index 3df573f..0000000 --- a/FreedomStudio/E31FPGA/global_interrupts/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/Debug/ diff --git a/FreedomStudio/E31FPGA/global_interrupts/.project b/FreedomStudio/E31FPGA/global_interrupts/.project deleted file mode 100644 index 6745f61..0000000 --- a/FreedomStudio/E31FPGA/global_interrupts/.project +++ /dev/null @@ -1,363 +0,0 @@ - - - global_interrupts - - - - - - org.eclipse.cdt.managedbuilder.core.genmakebuilder - clean,full,incremental, - - - - - org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder - full,incremental, - - - - - - org.eclipse.cdt.core.cnature - org.eclipse.cdt.managedbuilder.core.managedBuildNature - org.eclipse.cdt.managedbuilder.core.ScannerConfigNature - - - - bsp - 2 - virtual:/virtual - - - global_interrupts.c - 1 - PARENT-3-PROJECT_LOC/software/global_interrupts/global_interrupts.c - - - bsp/drivers - 2 - virtual:/virtual - - - bsp/env - 2 - virtual:/virtual - - - bsp/include - 2 - virtual:/virtual - - - bsp/libwrap - 2 - virtual:/virtual - - - bsp/drivers/fe300prci - 2 - virtual:/virtual - - - bsp/drivers/plic - 2 - virtual:/virtual - - - bsp/env/coreplexip-arty.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-arty.h - - - bsp/env/coreplexip-e31-arty - 2 - virtual:/virtual - - - bsp/env/encoding.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/encoding.h - - - bsp/env/entry.S - 1 - PARENT-3-PROJECT_LOC/bsp/env/entry.S - - - bsp/env/hifive1.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/hifive1.h - - - bsp/env/start.S - 1 - PARENT-3-PROJECT_LOC/bsp/env/start.S - - - bsp/include/sifive - 2 - virtual:/virtual - - - bsp/libwrap/misc - 2 - virtual:/virtual - - - bsp/libwrap/stdlib - 2 - virtual:/virtual - - - bsp/libwrap/sys - 2 - virtual:/virtual - - - bsp/drivers/fe300prci/fe300prci_driver.c - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/fe300prci/fe300prci_driver.c - - - bsp/drivers/fe300prci/fe300prci_driver.h - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/fe300prci/fe300prci_driver.h - - - bsp/drivers/plic/plic_driver.c - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/plic/plic_driver.c - - - bsp/drivers/plic/plic_driver.h - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/plic/plic_driver.h - - - bsp/env/coreplexip-e31-arty/dhrystone.lds - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e31-arty/dhrystone.lds - - - bsp/env/coreplexip-e31-arty/flash.lds - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e31-arty/flash.lds - - - bsp/env/coreplexip-e31-arty/init.c - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e31-arty/init.c - - - bsp/env/coreplexip-e31-arty/openocd.cfg - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e31-arty/openocd.cfg - - - bsp/env/coreplexip-e31-arty/platform.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e31-arty/platform.h - - - bsp/env/coreplexip-e31-arty/scratchpad.lds - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e31-arty/scratchpad.lds - - - bsp/env/coreplexip-e31-arty/settings.mk - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e31-arty/settings.mk - - - bsp/include/sifive/bits.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/bits.h - - - bsp/include/sifive/const.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/const.h - - - bsp/include/sifive/devices - 2 - virtual:/virtual - - - bsp/include/sifive/sections.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/sections.h - - - bsp/include/sifive/smp.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/smp.h - - - bsp/libwrap/misc/write_hex.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/misc/write_hex.c - - - bsp/libwrap/stdlib/malloc.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/stdlib/malloc.c - - - bsp/libwrap/sys/_exit.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/_exit.c - - - bsp/libwrap/sys/close.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/close.c - - - bsp/libwrap/sys/execve.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/execve.c - - - bsp/libwrap/sys/fork.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/fork.c - - - bsp/libwrap/sys/fstat.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/fstat.c - - - bsp/libwrap/sys/getpid.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/getpid.c - - - bsp/libwrap/sys/isatty.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/isatty.c - - - bsp/libwrap/sys/kill.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/kill.c - - - bsp/libwrap/sys/link.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/link.c - - - bsp/libwrap/sys/lseek.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/lseek.c - - - bsp/libwrap/sys/open.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/open.c - - - bsp/libwrap/sys/openat.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/openat.c - - - bsp/libwrap/sys/puts.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/puts.c - - - bsp/libwrap/sys/read.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/read.c - - - bsp/libwrap/sys/sbrk.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/sbrk.c - - - bsp/libwrap/sys/stat.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/stat.c - - - bsp/libwrap/sys/stub.h - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/stub.h - - - bsp/libwrap/sys/times.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/times.c - - - bsp/libwrap/sys/unlink.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/unlink.c - - - bsp/libwrap/sys/wait.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/wait.c - - - bsp/libwrap/sys/weak_under_alias.h - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/weak_under_alias.h - - - bsp/libwrap/sys/write.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/write.c - - - bsp/include/sifive/devices/aon.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/aon.h - - - bsp/include/sifive/devices/clint.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/clint.h - - - bsp/include/sifive/devices/gpio.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/gpio.h - - - bsp/include/sifive/devices/otp.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/otp.h - - - bsp/include/sifive/devices/plic.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/plic.h - - - bsp/include/sifive/devices/prci.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/prci.h - - - bsp/include/sifive/devices/pwm.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/pwm.h - - - bsp/include/sifive/devices/spi.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/spi.h - - - bsp/include/sifive/devices/uart.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/uart.h - - - diff --git a/FreedomStudio/E31FPGA/global_interrupts/e31arty-xsvd.json b/FreedomStudio/E31FPGA/global_interrupts/e31arty-xsvd.json deleted file mode 100644 index 4879d45..0000000 --- a/FreedomStudio/E31FPGA/global_interrupts/e31arty-xsvd.json +++ /dev/null @@ -1,1250 +0,0 @@ -{ - "schemaVersion": "0.2.4", - "contentVersion": "0.2.0", - "headerVersion": "0.2.0", - "device": { - "e31arty": { - "displayName": "Core Complex E31 Arty", - "description": "SiFive’s E31 is a synthesised version of Core Complex E31 running on the Arty board.", - "supplier": { - "name": "sifive", - "id": "1", - "displayName": "SiFive", - "fullName": "SiFive, Inc.", - "contact": "info@sifive.com" - }, - "busWidth": "32", - "resetMask": "all", - "resetValue": "0x00000000", - "access": "rw", - "headerGuardPrefix": "SIFIVE_DEVICES_ARTY_E31_", - "headerTypePrefix": "sifive_e31arty_", - "headerInterruptPrefix": "sifive_e31arty_interrupt_global_", - "headerInterruptEnumPrefix": "riscv_interrupts_global_", - "revision": "r0p0", - "numInterrupts": "26", - "priorityBits": "3", - "regWidth": "32", - "cores": { - "e31": { - "harts": "1", - "isa": "RV32IMAC", - "isaVersion": "2.2", - "mpu": "pmp", - "mmu": "none", - "localInterrupts": { - "machine_software": { - "description": "Machine Software Interrupt", - "value": "3" - }, - "machine_timer": { - "description": "Machine Timer Interrupt", - "value": "7" - }, - "machine_ext": { - "description": "Machine External Interrupt", - "value": "11" - }, - "0": { - "description": "Local Interrupt 0", - "value": "16" - }, - "1": { - "description": "Local Interrupt 1", - "value": "17" - }, - "2": { - "description": "Local Interrupt 2", - "value": "18" - }, - "3": { - "description": "Local Interrupt 3", - "value": "19" - }, - "4": { - "description": "Local Interrupt 4", - "value": "20" - }, - "5": { - "description": "Local Interrupt 5", - "value": "21" - }, - "6": { - "description": "Local Interrupt 6", - "value": "22" - }, - "7": { - "description": "Local Interrupt 7", - "value": "23" - }, - "8": { - "description": "Local Interrupt 8", - "value": "24" - }, - "9": { - "description": "Local Interrupt 9", - "value": "25" - }, - "10": { - "description": "Local Interrupt 10", - "value": "26" - }, - "11": { - "description": "Local Interrupt 11", - "value": "27" - }, - "12": { - "description": "Local Interrupt 12", - "value": "28" - }, - "13": { - "description": "Local Interrupt 13", - "value": "29" - }, - "14": { - "description": "Local Interrupt 14", - "value": "30" - }, - "15": { - "description": "Local Interrupt 15", - "value": "31" - } - }, - "numLocalInterrupts": "16" - } - }, - "peripherals": { - "clint": { - "description": "Core Complex Local Interruptor (CLINT) Peripheral", - "baseAddress": "0x02000000", - "size": "0x10000", - "registers": { - "msip": { - "description": "MSIP (Machine-mode Software Interrupts) Register per Hart", - "addressOffset": "0x0000", - "arraySize": "1" - } - }, - "clusters": { - "mtimecmp": { - "description": "Machine Time Compare Registers per Hart", - "addressOffset": "0x4000", - "arraySize": "1", - "registers": { - "low": { - "description": "Machine Compare Register Low", - "addressOffset": "0x0000" - }, - "high": { - "description": "Machine Compare Register High", - "addressOffset": "0x0004" - } - } - }, - "mtime": { - "description": "Machine Time Register", - "addressOffset": "0xBFF8", - "access": "r", - "registers": { - "low": { - "description": "Machine Time Register Low", - "addressOffset": "0x0000" - }, - "high": { - "description": "Machine Time Register High", - "addressOffset": "0x0004" - } - } - } - } - }, - "plic": { - "description": "Platform-Level Interrupt Controller (PLIC) Peripheral", - "baseAddress": "0x0C000000", - "size": "0x4000000", - "registers": { - "priorities": { - "arraySize": "27", - "description": "Interrupt Priorities Registers; 0 is reserved.", - "addressOffset": "0x0000", - "fields": { - "value": { - "description": "The priority for a given global interrupt", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "pendings": { - "arraySize": "8", - "description": "Interrupt Pending Bits Registers", - "addressOffset": "0x1000", - "access": "r" - } - }, - "clusters": { - "enablestarget0": { - "description": "Hart 0 Interrupt Enable Bits", - "addressOffset": "0x00002000", - "clusters": { - "m": { - "addressOffset": "0x0000", - "description": "Hart 0 M-mode Interrupt Enable Bits", - "registers": { - "enables": { - "arraySize": "8", - "description": "Interrupt Enable Bits Registers", - "addressOffset": "0x0000" - } - } - } - } - }, - "target0": { - "description": "Hart 0 Interrupt Thresholds", - "addressOffset": "0x00200000", - "clusters": { - "m": { - "addressOffset": "0x0000", - "description": "Hart 0 M-Mode Interrupt Threshold", - "registers": { - "threshold": { - "description": "The Priority Threshold Register", - "addressOffset": "0x0000", - "fields": { - "value": { - "description": "The priority threshold value", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "claimcomplete": { - "description": "The Interrupt Claim/Completion Register", - "addressOffset": "0x0004" - } - } - } - } - } - }, - "interrupts": { - "switch0": { - "description": "SWITCH 0 Interrupt", - "value": "2" - }, - "switch1": { - "description": "SWITCH 1 Interrupt", - "value": "3" - }, - "switch2": { - "description": "SWITCH 2 Interrupt", - "value": "4" - }, - "switch3": { - "description": "SWITCH 3 Interrupt", - "value": "5" - } - } - }, - "gpio": { - "description": "General Purpose Input/Output Controller (GPIO) Peripheral", - "baseAddress": "0x20002000", - "size": "0x1000", - "registers": { - "value": { - "description": "Pin Value Register", - "addressOffset": "0x000", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Value Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "inputen": { - "description": "Pin Input Enable Register", - "addressOffset": "0x004", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Pin Input Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "outputen": { - "description": "Pin Output Enable Register", - "addressOffset": "0x008", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Pin Output Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "port": { - "description": "Output Port Value Register", - "addressOffset": "0x00C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Output Port Value Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "pue": { - "description": "Internal Pull-up Enable Register", - "addressOffset": "0x010", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Internal Pull-up Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "ds": { - "description": "Pin Drive Strength Register", - "addressOffset": "0x014", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Pin Drive Strength Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "riseie": { - "description": "Rise Interrupt Enable Register", - "addressOffset": "0x018", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Rise Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "riseip": { - "description": "Rise Interrupt Pending Register", - "addressOffset": "0x01C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Rise Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "fallie": { - "description": "Fall Interrupt Enable Register", - "addressOffset": "0x020", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Fall Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "fallip": { - "description": "Fall Interrupt Pending Register", - "addressOffset": "0x024", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Fall Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "highie": { - "description": "High Interrupt Enable Register", - "addressOffset": "0x028", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "High Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "highip": { - "description": "High Interrupt Pending Register", - "addressOffset": "0x02C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "High Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "lowie": { - "description": "Low Interrupt Enable Register", - "addressOffset": "0x030", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Low Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "lowip": { - "description": "Low Interrupt Pending Register", - "addressOffset": "0x034", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Low Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "iofen": { - "description": "HW I/O Function Enable Register", - "addressOffset": "0x038", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "HW I/O Function Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "iofsel": { - "description": "HW I/O Function Select Register", - "addressOffset": "0x03C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "HW I/O Function Select Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "outxor": { - "description": "Output XOR (invert) Register", - "addressOffset": "0x040", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Output XOR Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - } - }, - "interrupts": { - "gpio0": { - "description": "GPIO0 Interrupt", - "value": "7" - }, - "gpio1": { - "description": "GPIO1 Interrupt", - "value": "8" - }, - "gpio2": { - "description": "GPIO2 Interrupt", - "value": "9" - }, - "gpio3": { - "description": "GPIO3 Interrupt", - "value": "10" - }, - "gpio4": { - "description": "GPIO4 Interrupt", - "value": "11" - }, - "gpio5": { - "description": "GPIO5 Interrupt", - "value": "12" - }, - "gpio6": { - "description": "GPIO6 Interrupt", - "value": "13" - }, - "gpio7": { - "description": "GPIO7 Interrupt", - "value": "14" - }, - "gpio8": { - "description": "GPIO8 Interrupt", - "value": "15" - }, - "gpio9": { - "description": "GPIO9 Interrupt", - "value": "16" - }, - "gpio10": { - "description": "GPIO10 Interrupt", - "value": "17" - }, - "gpio11": { - "description": "GPIO11 Interrupt", - "value": "18" - }, - "gpio12": { - "description": "GPIO12 Interrupt", - "value": "19" - }, - "gpio13": { - "description": "GPIO13 Interrupt", - "value": "20" - }, - "gpio14": { - "description": "GPIO14 Interrupt", - "value": "21" - }, - "gpio15": { - "description": "GPIO15 Interrupt", - "value": "22" - } - } - }, - "uart0": { - "description": "Universal Asynchronous Receiver/Transmitter (UART) Peripheral", - "baseAddress": "0x20000000", - "size": "0x1000", - "resetMask": "none", - "groupName": "uart", - "registers": { - "txdata": { - "description": "Transmit Data Register", - "addressOffset": "0x000", - "fields": { - "data": { - "description": "Transmit data", - "bitOffset": "0", - "bitWidth": "8" - }, - "full": { - "description": "Transmit FIFO full", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "rxdata": { - "description": "Receive Data Register", - "addressOffset": "0x004", - "resetMask": "none", - "fields": { - "data": { - "description": "Received data", - "bitOffset": "0", - "bitWidth": "8", - "access": "r" - }, - "empty": { - "description": "Receive FIFO empty", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "txctrl": { - "description": "Transmit Control Register ", - "addressOffset": "0x008", - "fields": { - "txen": { - "description": "Transmit enable", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "nstop": { - "description": "Number of stop bits", - "bitOffset": "1", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "txcnt": { - "description": "Transmit watermark level", - "bitOffset": "16", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "rxctrl": { - "description": "Receive Control Register", - "addressOffset": "0x00C", - "fields": { - "rxen": { - "description": "Receive enable", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "rxcnt": { - "description": "Receive watermark level", - "bitOffset": "16", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ie": { - "description": "Interrupt Enable Register", - "addressOffset": "0x010", - "fields": { - "txwm": { - "description": "Transmit watermark interrupt enable", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "rxwm": { - "description": "Receive watermark interrupt enable", - "bitOffset": "1", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ip": { - "description": "Interrupt Pending Register", - "addressOffset": "0x014", - "access": "r", - "fields": { - "txwm": { - "description": "Transmit watermark interrupt pending", - "bitOffset": "0", - "bitWidth": "1" - }, - "rxwm": { - "description": "Receive watermark interrupt pending", - "bitOffset": "1", - "bitWidth": "1" - } - } - }, - "div": { - "description": "Baud Rate Divisor Register", - "addressOffset": "0x018", - "fields": { - "value": { - "description": "Baud rate divisor", - "bitOffset": "0", - "bitWidth": "16", - "resetMask": "all", - "resetValue": "0x0000FFFF" - } - } - } - }, - "interrupts": { - "uart0": { - "description": "UART0 Interrupt", - "value": "1" - } - } - }, - "spi0": { - "description": "Serial Peripheral Interface (SPI) Peripheral", - "baseAddress": "0x20004000", - "size": "0x1000", - "resetMask": "none", - "groupName": "spi", - "registers": { - "sckdiv": { - "description": "Serial clock divisor Register", - "addressOffset": "0x000", - "fields": { - "scale": { - "description": "Divisor for serial clock", - "bitOffset": "0", - "bitWidth": "12", - "resetMask": "all", - "resetValue": "0x003" - } - } - }, - "sckmode": { - "description": "Serial Clock Mode Register", - "addressOffset": "0x004", - "fields": { - "pha": { - "description": "Serial clock phase", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "pol": { - "description": "Serial clock polarity", - "bitOffset": "1", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "csid": { - "description": "Chip Select ID Register", - "addressOffset": "0x010", - "resetMask": "all", - "resetValue": "0x00000000" - }, - "csdef": { - "description": "Chip Select Default Register", - "addressOffset": "0x014", - "resetMask": "all", - "resetValue": "0x00000001" - }, - "csmode": { - "description": "Chip Select Mode Register", - "addressOffset": "0x018", - "fields": { - "mode": { - "description": "Chip select mode", - "bitOffset": "0", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0", - "enumerations": { - "csmode-enum": { - "description": "Chip Select Modes Enumeration", - "values": { - "0": { - "displayName": "auto", - "description": "Assert/de-assert CS at the beginning/end of each frame" - }, - "*": { - "displayName": "reserved" - }, - "2": { - "displayName": "hold", - "description": "Keep CS continuously asserted after the initial frame" - }, - "3": { - "displayName": "off", - "description": "Disable hardware control of the CS pin" - } - } - } - } - } - } - }, - "delay0": { - "description": "Delay Control 0 Register", - "addressOffset": "0x028", - "fields": { - "cssck": { - "description": "CS to SCK Delay", - "bitOffset": "0", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - }, - "sckcs": { - "description": "SCK to CS Delay", - "bitOffset": "16", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - } - } - }, - "delay1": { - "description": "Delay Control 1 Register", - "addressOffset": "0x02C", - "fields": { - "intercs": { - "description": "Minimum CS inactive time", - "bitOffset": "0", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - }, - "interxfr": { - "description": "Maximum interframe delay", - "bitOffset": "16", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - } - } - }, - "fmt": { - "description": "Frame Format Register", - "addressOffset": "0x040", - "fields": { - "proto": { - "description": "SPI Protocol", - "bitOffset": "0", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0", - "enumerations": { - "proto-enum": { - "description": "SPI Protocol Enumeration", - "values": { - "0": { - "displayName": "single", - "description": "DQ0 (MOSI), DQ1 (MISO)" - }, - "1": { - "displayName": "dual", - "description": "DQ0, DQ1" - }, - "2": { - "displayName": "quad", - "description": "DQ0, DQ1, DQ2, DQ3" - }, - "*": { - "displayName": "reserved" - } - } - } - } - }, - "endian": { - "description": "SPI endianness", - "bitOffset": "2", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0", - "enumerations": { - "endian-enum": { - "description": "SPI Endianness Enumeration", - "values": { - "0": { - "displayName": "msb", - "description": "Transmit most-significant bit (MSB) first" - }, - "1": { - "displayName": "lsb", - "description": "Transmit least-significant bit (LSB) first" - } - } - } - } - }, - "dir": { - "description": "SPI I/O Direction", - "bitOffset": "3", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1", - "enumerations": { - "dir-enum": { - "description": "SPI I/O Direction Enumeration", - "values": { - "0": { - "displayName": "rx", - "description": "For dual and quad protocols, the DQ pins are tri-stated. For the single protocol, the DQ0 pin is driven with the transmit data as normal." - }, - "1": { - "displayName": "tx", - "description": "The receive FIFO is not populated." - } - } - } - } - }, - "len": { - "description": "Number of bits per frame", - "bitOffset": "16", - "bitWidth": "4", - "resetMask": "all", - "resetValue": "0x8" - } - } - }, - "txdata": { - "description": "Tx FIFO Data Register", - "addressOffset": "0x048", - "fields": { - "data": { - "description": "Transmit data", - "bitOffset": "0", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x00" - }, - "full": { - "description": "FIFO full flag", - "bitOffset": "31", - "bitWidth": "1", - "access": "r" - } - } - }, - "rxdata": { - "description": "Rx FIFO Data Register", - "addressOffset": "0x04C", - "resetMask": "none", - "access": "r", - "fields": { - "data": { - "description": "Received data", - "bitOffset": "0", - "bitWidth": "8" - }, - "empty": { - "description": "FIFO empty flag", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "txmark": { - "description": "Tx FIFO Watermark Register", - "addressOffset": "0x050", - "fields": { - "value": { - "description": "Transmit watermark", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x1" - } - } - }, - "rxmark": { - "description": "Rx FIFO Watermark Register", - "addressOffset": "0x054", - "fields": { - "value": { - "description": "Receive watermark", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "fctrl": { - "description": "Flash Interface Control Register", - "addressOffset": "0x060", - "fields": { - "en": { - "description": "SPI Flash Mode Select", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1" - } - } - }, - "ffmt": { - "description": "Flash Instruction Format Register", - "addressOffset": "0x064", - "fields": { - "cmden": { - "description": "Enable sending of command", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1" - }, - "addrlen": { - "description": "Number of address bytes(0 to 4)", - "bitOffset": "1", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x3" - }, - "padcnt": { - "description": "Number of dummy cycles", - "bitOffset": "4", - "bitWidth": "4", - "resetMask": "all", - "resetValue": "0x0" - }, - "cmdproto": { - "description": "Protocol for transmitting command", - "bitOffset": "8", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0" - }, - "addrproto": { - "description": "Protocol for transmitting address and padding", - "bitOffset": "10", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0" - }, - "dataproto": { - "description": "Protocol for receiving data bytes", - "bitOffset": "12", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0" - }, - "cmdcode": { - "description": "Value of command byte", - "bitOffset": "16", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x03" - }, - "padcode": { - "description": "First 8 bits to transmit during dummy cycles", - "bitOffset": "24", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ie": { - "description": "Interrupt Enable Register", - "addressOffset": "0x070", - "fields": { - "txwm": { - "description": "Transmit watermark enable", - "bitOffset": "0", - "bitWidth": "1", - "access": "r", - "resetMask": "all", - "resetValue": "0x0" - }, - "rxwm": { - "description": "Receive watermark enable", - "bitOffset": "1", - "bitWidth": "1", - "access": "r", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ip": { - "description": "Interrupt Pending Register", - "addressOffset": "0x074", - "fields": { - "txwm": { - "description": "Transmit watermark pending", - "bitOffset": "0", - "bitWidth": "1", - "access": "r" - }, - "rxwm": { - "description": "Receive watermark pending", - "bitOffset": "1", - "bitWidth": "1", - "access": "r" - } - } - } - }, - "interrupts": { - "spi0": { - "description": "SPI0 Interrupt", - "value": "6" - } - } - }, - "pwm0": { - "description": "Pulse-Width Modulation (PWM) Peripheral", - "baseAddress": "0x20005000", - "size": "0x1000", - "resetMask": "none", - "groupName": "pwm", - "registers": { - "cfg": { - "description": "Configuration Register", - "addressOffset": "0x000", - "fields": { - "scale": { - "description": "Counter scale", - "bitOffset": "0", - "bitWidth": "4" - }, - "sticky": { - "description": "Sticky - disallow clearing pwmcmpXip bits", - "bitOffset": "8", - "bitWidth": "1" - }, - "zerocmp": { - "description": "Zero - counter resets to zero after match", - "bitOffset": "9", - "bitWidth": "1" - }, - "deglitch": { - "description": "Deglitch - latch pwmcmpXip within same cycle", - "bitOffset": "10", - "bitWidth": "1" - }, - "enalways": { - "description": "Enable always - run continuously", - "bitOffset": "12", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "enoneshot": { - "description": "enable one shot - run one cycle", - "bitOffset": "13", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "cmp0center": { - "description": "PWM0 Compare Center", - "bitOffset": "16", - "bitWidth": "1" - }, - "cmp1center": { - "description": "PWM1 Compare Center", - "bitOffset": "17", - "bitWidth": "1" - }, - "cmp2center": { - "description": "PWM2 Compare Center", - "bitOffset": "18", - "bitWidth": "1" - }, - "cmp3center": { - "description": "PWM3 Compare Center", - "bitOffset": "19", - "bitWidth": "1" - }, - "cmp0gang": { - "description": "PWM0/PWM1 Compare Gang", - "bitOffset": "24", - "bitWidth": "1" - }, - "cmp1gang": { - "description": "PWM1/PWM2 Compare Gang", - "bitOffset": "25", - "bitWidth": "1" - }, - "cmp2gang": { - "description": "PWM2/PWM3 Compare Gang", - "bitOffset": "26", - "bitWidth": "1" - }, - "cmp3gang": { - "description": "PWM3/PWM0 Compare Gang", - "bitOffset": "27", - "bitWidth": "1" - }, - "cmp0ip": { - "description": "PWM0 Interrupt Pending", - "bitOffset": "28", - "bitWidth": "1" - }, - "cmp1ip": { - "description": "PWM1 Interrupt Pending", - "bitOffset": "29", - "bitWidth": "1" - }, - "cmp2ip": { - "description": "PWM2 Interrupt Pending", - "bitOffset": "30", - "bitWidth": "1" - }, - "cmp3ip": { - "description": "PWM3 Interrupt Pending", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "count": { - "description": "Configuration Register", - "addressOffset": "0x008" - }, - "scale": { - "description": "Scale Register", - "addressOffset": "0x010", - "fields": { - "value": { - "description": "Compare value", - "bitOffset": "0", - "bitWidth": "8" - } - } - }, - "cmp": { - "arraySize": "4", - "description": "Compare Registers", - "addressOffset": "0x020", - "fields": { - "value": { - "description": "Compare value", - "bitOffset": "0", - "bitWidth": "8" - } - } - } - }, - "interrupts": { - "pwm0cmp0": { - "description": "PWM0 Compare 0 Interrupt", - "value": "23" - }, - "pwm0cmp1": { - "description": "PWM0 Compare 1 Interrupt", - "value": "24" - }, - "pwm0cmp2": { - "description": "PWM0 Compare 2 Interrupt", - "value": "25" - }, - "pwm0cmp3": { - "description": "PWM0 Compare 3 Interrupt", - "value": "26" - } - } - } - } - } - } -} \ No newline at end of file diff --git a/FreedomStudio/E31FPGA/global_interrupts/global_interrupts JLINK.launch b/FreedomStudio/E31FPGA/global_interrupts/global_interrupts JLINK.launch deleted file mode 100644 index fbeda90..0000000 --- a/FreedomStudio/E31FPGA/global_interrupts/global_interrupts JLINK.launch +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/FreedomStudio/E31FPGA/global_interrupts/global_interrupts OpenOCD.launch b/FreedomStudio/E31FPGA/global_interrupts/global_interrupts OpenOCD.launch deleted file mode 100644 index 6f43500..0000000 --- a/FreedomStudio/E31FPGA/global_interrupts/global_interrupts OpenOCD.launch +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/FreedomStudio/E31FPGA/global_interrupts/sifive-coreplexip-e31-arty.cfg b/FreedomStudio/E31FPGA/global_interrupts/sifive-coreplexip-e31-arty.cfg deleted file mode 100644 index 8b382dc..0000000 --- a/FreedomStudio/E31FPGA/global_interrupts/sifive-coreplexip-e31-arty.cfg +++ /dev/null @@ -1,31 +0,0 @@ -# JTAG adapter setup -adapter_khz 10000 - -interface ftdi -ftdi_device_desc "Olimex OpenOCD JTAG ARM-USB-TINY-H" -ftdi_vid_pid 0x15ba 0x002a - -ftdi_layout_init 0x0808 0x0a1b -ftdi_layout_signal nSRST -oe 0x0200 -#ftdi_layout_signal nTRST -data 0x0100 -oe 0x0100 -ftdi_layout_signal LED -data 0x0800 - -set _CHIPNAME riscv -jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x20000001 - -set _TARGETNAME $_CHIPNAME.cpu - -target create $_TARGETNAME.0 riscv -chain-position $_TARGETNAME -$_TARGETNAME.0 configure -work-area-phys 0x80000000 -work-area-size 10000 -work-area-backup 1 - -# Un-comment these two flash lines if you have a SPI flash and want to write -# it. -flash bank spi0 fespi 0x40000000 0 0 0 $_TARGETNAME.0 0x20004000 -init -if {[ info exists pulse_srst]} { - ftdi_set_signal nSRST 0 - ftdi_set_signal nSRST z -} -halt -flash protect 0 64 last off -echo "Ready for Remote Connections" diff --git a/FreedomStudio/E31FPGA/local_interrupts/.cproject b/FreedomStudio/E31FPGA/local_interrupts/.cproject deleted file mode 100644 index 3842f21..0000000 --- a/FreedomStudio/E31FPGA/local_interrupts/.cproject +++ /dev/null @@ -1,210 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/FreedomStudio/E31FPGA/local_interrupts/.gitignore b/FreedomStudio/E31FPGA/local_interrupts/.gitignore deleted file mode 100644 index 3df573f..0000000 --- a/FreedomStudio/E31FPGA/local_interrupts/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/Debug/ diff --git a/FreedomStudio/E31FPGA/local_interrupts/.project b/FreedomStudio/E31FPGA/local_interrupts/.project deleted file mode 100644 index 43eecc9..0000000 --- a/FreedomStudio/E31FPGA/local_interrupts/.project +++ /dev/null @@ -1,363 +0,0 @@ - - - local_interrupts - - - - - - org.eclipse.cdt.managedbuilder.core.genmakebuilder - clean,full,incremental, - - - - - org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder - full,incremental, - - - - - - org.eclipse.cdt.core.cnature - org.eclipse.cdt.managedbuilder.core.managedBuildNature - org.eclipse.cdt.managedbuilder.core.ScannerConfigNature - - - - bsp - 2 - virtual:/virtual - - - local_interrupts.c - 1 - PARENT-3-PROJECT_LOC/software/local_interrupts/local_interrupts.c - - - bsp/drivers - 2 - virtual:/virtual - - - bsp/env - 2 - virtual:/virtual - - - bsp/include - 2 - virtual:/virtual - - - bsp/libwrap - 2 - virtual:/virtual - - - bsp/drivers/fe300prci - 2 - virtual:/virtual - - - bsp/drivers/plic - 2 - virtual:/virtual - - - bsp/env/coreplexip-arty.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-arty.h - - - bsp/env/coreplexip-e31-arty - 2 - virtual:/virtual - - - bsp/env/encoding.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/encoding.h - - - bsp/env/entry.S - 1 - PARENT-3-PROJECT_LOC/bsp/env/entry.S - - - bsp/env/hifive1.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/hifive1.h - - - bsp/env/start.S - 1 - PARENT-3-PROJECT_LOC/bsp/env/start.S - - - bsp/include/sifive - 2 - virtual:/virtual - - - bsp/libwrap/misc - 2 - virtual:/virtual - - - bsp/libwrap/stdlib - 2 - virtual:/virtual - - - bsp/libwrap/sys - 2 - virtual:/virtual - - - bsp/drivers/fe300prci/fe300prci_driver.c - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/fe300prci/fe300prci_driver.c - - - bsp/drivers/fe300prci/fe300prci_driver.h - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/fe300prci/fe300prci_driver.h - - - bsp/drivers/plic/plic_driver.c - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/plic/plic_driver.c - - - bsp/drivers/plic/plic_driver.h - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/plic/plic_driver.h - - - bsp/env/coreplexip-e31-arty/dhrystone.lds - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e31-arty/dhrystone.lds - - - bsp/env/coreplexip-e31-arty/flash.lds - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e31-arty/flash.lds - - - bsp/env/coreplexip-e31-arty/init.c - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e31-arty/init.c - - - bsp/env/coreplexip-e31-arty/openocd.cfg - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e31-arty/openocd.cfg - - - bsp/env/coreplexip-e31-arty/platform.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e31-arty/platform.h - - - bsp/env/coreplexip-e31-arty/scratchpad.lds - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e31-arty/scratchpad.lds - - - bsp/env/coreplexip-e31-arty/settings.mk - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e31-arty/settings.mk - - - bsp/include/sifive/bits.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/bits.h - - - bsp/include/sifive/const.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/const.h - - - bsp/include/sifive/devices - 2 - virtual:/virtual - - - bsp/include/sifive/sections.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/sections.h - - - bsp/include/sifive/smp.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/smp.h - - - bsp/libwrap/misc/write_hex.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/misc/write_hex.c - - - bsp/libwrap/stdlib/malloc.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/stdlib/malloc.c - - - bsp/libwrap/sys/_exit.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/_exit.c - - - bsp/libwrap/sys/close.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/close.c - - - bsp/libwrap/sys/execve.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/execve.c - - - bsp/libwrap/sys/fork.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/fork.c - - - bsp/libwrap/sys/fstat.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/fstat.c - - - bsp/libwrap/sys/getpid.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/getpid.c - - - bsp/libwrap/sys/isatty.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/isatty.c - - - bsp/libwrap/sys/kill.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/kill.c - - - bsp/libwrap/sys/link.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/link.c - - - bsp/libwrap/sys/lseek.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/lseek.c - - - bsp/libwrap/sys/open.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/open.c - - - bsp/libwrap/sys/openat.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/openat.c - - - bsp/libwrap/sys/puts.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/puts.c - - - bsp/libwrap/sys/read.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/read.c - - - bsp/libwrap/sys/sbrk.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/sbrk.c - - - bsp/libwrap/sys/stat.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/stat.c - - - bsp/libwrap/sys/stub.h - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/stub.h - - - bsp/libwrap/sys/times.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/times.c - - - bsp/libwrap/sys/unlink.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/unlink.c - - - bsp/libwrap/sys/wait.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/wait.c - - - bsp/libwrap/sys/weak_under_alias.h - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/weak_under_alias.h - - - bsp/libwrap/sys/write.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/write.c - - - bsp/include/sifive/devices/aon.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/aon.h - - - bsp/include/sifive/devices/clint.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/clint.h - - - bsp/include/sifive/devices/gpio.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/gpio.h - - - bsp/include/sifive/devices/otp.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/otp.h - - - bsp/include/sifive/devices/plic.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/plic.h - - - bsp/include/sifive/devices/prci.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/prci.h - - - bsp/include/sifive/devices/pwm.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/pwm.h - - - bsp/include/sifive/devices/spi.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/spi.h - - - bsp/include/sifive/devices/uart.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/uart.h - - - diff --git a/FreedomStudio/E31FPGA/local_interrupts/e31arty-xsvd.json b/FreedomStudio/E31FPGA/local_interrupts/e31arty-xsvd.json deleted file mode 100644 index 4879d45..0000000 --- a/FreedomStudio/E31FPGA/local_interrupts/e31arty-xsvd.json +++ /dev/null @@ -1,1250 +0,0 @@ -{ - "schemaVersion": "0.2.4", - "contentVersion": "0.2.0", - "headerVersion": "0.2.0", - "device": { - "e31arty": { - "displayName": "Core Complex E31 Arty", - "description": "SiFive’s E31 is a synthesised version of Core Complex E31 running on the Arty board.", - "supplier": { - "name": "sifive", - "id": "1", - "displayName": "SiFive", - "fullName": "SiFive, Inc.", - "contact": "info@sifive.com" - }, - "busWidth": "32", - "resetMask": "all", - "resetValue": "0x00000000", - "access": "rw", - "headerGuardPrefix": "SIFIVE_DEVICES_ARTY_E31_", - "headerTypePrefix": "sifive_e31arty_", - "headerInterruptPrefix": "sifive_e31arty_interrupt_global_", - "headerInterruptEnumPrefix": "riscv_interrupts_global_", - "revision": "r0p0", - "numInterrupts": "26", - "priorityBits": "3", - "regWidth": "32", - "cores": { - "e31": { - "harts": "1", - "isa": "RV32IMAC", - "isaVersion": "2.2", - "mpu": "pmp", - "mmu": "none", - "localInterrupts": { - "machine_software": { - "description": "Machine Software Interrupt", - "value": "3" - }, - "machine_timer": { - "description": "Machine Timer Interrupt", - "value": "7" - }, - "machine_ext": { - "description": "Machine External Interrupt", - "value": "11" - }, - "0": { - "description": "Local Interrupt 0", - "value": "16" - }, - "1": { - "description": "Local Interrupt 1", - "value": "17" - }, - "2": { - "description": "Local Interrupt 2", - "value": "18" - }, - "3": { - "description": "Local Interrupt 3", - "value": "19" - }, - "4": { - "description": "Local Interrupt 4", - "value": "20" - }, - "5": { - "description": "Local Interrupt 5", - "value": "21" - }, - "6": { - "description": "Local Interrupt 6", - "value": "22" - }, - "7": { - "description": "Local Interrupt 7", - "value": "23" - }, - "8": { - "description": "Local Interrupt 8", - "value": "24" - }, - "9": { - "description": "Local Interrupt 9", - "value": "25" - }, - "10": { - "description": "Local Interrupt 10", - "value": "26" - }, - "11": { - "description": "Local Interrupt 11", - "value": "27" - }, - "12": { - "description": "Local Interrupt 12", - "value": "28" - }, - "13": { - "description": "Local Interrupt 13", - "value": "29" - }, - "14": { - "description": "Local Interrupt 14", - "value": "30" - }, - "15": { - "description": "Local Interrupt 15", - "value": "31" - } - }, - "numLocalInterrupts": "16" - } - }, - "peripherals": { - "clint": { - "description": "Core Complex Local Interruptor (CLINT) Peripheral", - "baseAddress": "0x02000000", - "size": "0x10000", - "registers": { - "msip": { - "description": "MSIP (Machine-mode Software Interrupts) Register per Hart", - "addressOffset": "0x0000", - "arraySize": "1" - } - }, - "clusters": { - "mtimecmp": { - "description": "Machine Time Compare Registers per Hart", - "addressOffset": "0x4000", - "arraySize": "1", - "registers": { - "low": { - "description": "Machine Compare Register Low", - "addressOffset": "0x0000" - }, - "high": { - "description": "Machine Compare Register High", - "addressOffset": "0x0004" - } - } - }, - "mtime": { - "description": "Machine Time Register", - "addressOffset": "0xBFF8", - "access": "r", - "registers": { - "low": { - "description": "Machine Time Register Low", - "addressOffset": "0x0000" - }, - "high": { - "description": "Machine Time Register High", - "addressOffset": "0x0004" - } - } - } - } - }, - "plic": { - "description": "Platform-Level Interrupt Controller (PLIC) Peripheral", - "baseAddress": "0x0C000000", - "size": "0x4000000", - "registers": { - "priorities": { - "arraySize": "27", - "description": "Interrupt Priorities Registers; 0 is reserved.", - "addressOffset": "0x0000", - "fields": { - "value": { - "description": "The priority for a given global interrupt", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "pendings": { - "arraySize": "8", - "description": "Interrupt Pending Bits Registers", - "addressOffset": "0x1000", - "access": "r" - } - }, - "clusters": { - "enablestarget0": { - "description": "Hart 0 Interrupt Enable Bits", - "addressOffset": "0x00002000", - "clusters": { - "m": { - "addressOffset": "0x0000", - "description": "Hart 0 M-mode Interrupt Enable Bits", - "registers": { - "enables": { - "arraySize": "8", - "description": "Interrupt Enable Bits Registers", - "addressOffset": "0x0000" - } - } - } - } - }, - "target0": { - "description": "Hart 0 Interrupt Thresholds", - "addressOffset": "0x00200000", - "clusters": { - "m": { - "addressOffset": "0x0000", - "description": "Hart 0 M-Mode Interrupt Threshold", - "registers": { - "threshold": { - "description": "The Priority Threshold Register", - "addressOffset": "0x0000", - "fields": { - "value": { - "description": "The priority threshold value", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "claimcomplete": { - "description": "The Interrupt Claim/Completion Register", - "addressOffset": "0x0004" - } - } - } - } - } - }, - "interrupts": { - "switch0": { - "description": "SWITCH 0 Interrupt", - "value": "2" - }, - "switch1": { - "description": "SWITCH 1 Interrupt", - "value": "3" - }, - "switch2": { - "description": "SWITCH 2 Interrupt", - "value": "4" - }, - "switch3": { - "description": "SWITCH 3 Interrupt", - "value": "5" - } - } - }, - "gpio": { - "description": "General Purpose Input/Output Controller (GPIO) Peripheral", - "baseAddress": "0x20002000", - "size": "0x1000", - "registers": { - "value": { - "description": "Pin Value Register", - "addressOffset": "0x000", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Value Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "inputen": { - "description": "Pin Input Enable Register", - "addressOffset": "0x004", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Pin Input Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "outputen": { - "description": "Pin Output Enable Register", - "addressOffset": "0x008", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Pin Output Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "port": { - "description": "Output Port Value Register", - "addressOffset": "0x00C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Output Port Value Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "pue": { - "description": "Internal Pull-up Enable Register", - "addressOffset": "0x010", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Internal Pull-up Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "ds": { - "description": "Pin Drive Strength Register", - "addressOffset": "0x014", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Pin Drive Strength Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "riseie": { - "description": "Rise Interrupt Enable Register", - "addressOffset": "0x018", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Rise Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "riseip": { - "description": "Rise Interrupt Pending Register", - "addressOffset": "0x01C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Rise Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "fallie": { - "description": "Fall Interrupt Enable Register", - "addressOffset": "0x020", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Fall Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "fallip": { - "description": "Fall Interrupt Pending Register", - "addressOffset": "0x024", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Fall Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "highie": { - "description": "High Interrupt Enable Register", - "addressOffset": "0x028", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "High Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "highip": { - "description": "High Interrupt Pending Register", - "addressOffset": "0x02C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "High Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "lowie": { - "description": "Low Interrupt Enable Register", - "addressOffset": "0x030", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Low Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "lowip": { - "description": "Low Interrupt Pending Register", - "addressOffset": "0x034", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Low Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "iofen": { - "description": "HW I/O Function Enable Register", - "addressOffset": "0x038", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "HW I/O Function Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "iofsel": { - "description": "HW I/O Function Select Register", - "addressOffset": "0x03C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "HW I/O Function Select Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "outxor": { - "description": "Output XOR (invert) Register", - "addressOffset": "0x040", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Output XOR Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - } - }, - "interrupts": { - "gpio0": { - "description": "GPIO0 Interrupt", - "value": "7" - }, - "gpio1": { - "description": "GPIO1 Interrupt", - "value": "8" - }, - "gpio2": { - "description": "GPIO2 Interrupt", - "value": "9" - }, - "gpio3": { - "description": "GPIO3 Interrupt", - "value": "10" - }, - "gpio4": { - "description": "GPIO4 Interrupt", - "value": "11" - }, - "gpio5": { - "description": "GPIO5 Interrupt", - "value": "12" - }, - "gpio6": { - "description": "GPIO6 Interrupt", - "value": "13" - }, - "gpio7": { - "description": "GPIO7 Interrupt", - "value": "14" - }, - "gpio8": { - "description": "GPIO8 Interrupt", - "value": "15" - }, - "gpio9": { - "description": "GPIO9 Interrupt", - "value": "16" - }, - "gpio10": { - "description": "GPIO10 Interrupt", - "value": "17" - }, - "gpio11": { - "description": "GPIO11 Interrupt", - "value": "18" - }, - "gpio12": { - "description": "GPIO12 Interrupt", - "value": "19" - }, - "gpio13": { - "description": "GPIO13 Interrupt", - "value": "20" - }, - "gpio14": { - "description": "GPIO14 Interrupt", - "value": "21" - }, - "gpio15": { - "description": "GPIO15 Interrupt", - "value": "22" - } - } - }, - "uart0": { - "description": "Universal Asynchronous Receiver/Transmitter (UART) Peripheral", - "baseAddress": "0x20000000", - "size": "0x1000", - "resetMask": "none", - "groupName": "uart", - "registers": { - "txdata": { - "description": "Transmit Data Register", - "addressOffset": "0x000", - "fields": { - "data": { - "description": "Transmit data", - "bitOffset": "0", - "bitWidth": "8" - }, - "full": { - "description": "Transmit FIFO full", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "rxdata": { - "description": "Receive Data Register", - "addressOffset": "0x004", - "resetMask": "none", - "fields": { - "data": { - "description": "Received data", - "bitOffset": "0", - "bitWidth": "8", - "access": "r" - }, - "empty": { - "description": "Receive FIFO empty", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "txctrl": { - "description": "Transmit Control Register ", - "addressOffset": "0x008", - "fields": { - "txen": { - "description": "Transmit enable", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "nstop": { - "description": "Number of stop bits", - "bitOffset": "1", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "txcnt": { - "description": "Transmit watermark level", - "bitOffset": "16", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "rxctrl": { - "description": "Receive Control Register", - "addressOffset": "0x00C", - "fields": { - "rxen": { - "description": "Receive enable", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "rxcnt": { - "description": "Receive watermark level", - "bitOffset": "16", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ie": { - "description": "Interrupt Enable Register", - "addressOffset": "0x010", - "fields": { - "txwm": { - "description": "Transmit watermark interrupt enable", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "rxwm": { - "description": "Receive watermark interrupt enable", - "bitOffset": "1", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ip": { - "description": "Interrupt Pending Register", - "addressOffset": "0x014", - "access": "r", - "fields": { - "txwm": { - "description": "Transmit watermark interrupt pending", - "bitOffset": "0", - "bitWidth": "1" - }, - "rxwm": { - "description": "Receive watermark interrupt pending", - "bitOffset": "1", - "bitWidth": "1" - } - } - }, - "div": { - "description": "Baud Rate Divisor Register", - "addressOffset": "0x018", - "fields": { - "value": { - "description": "Baud rate divisor", - "bitOffset": "0", - "bitWidth": "16", - "resetMask": "all", - "resetValue": "0x0000FFFF" - } - } - } - }, - "interrupts": { - "uart0": { - "description": "UART0 Interrupt", - "value": "1" - } - } - }, - "spi0": { - "description": "Serial Peripheral Interface (SPI) Peripheral", - "baseAddress": "0x20004000", - "size": "0x1000", - "resetMask": "none", - "groupName": "spi", - "registers": { - "sckdiv": { - "description": "Serial clock divisor Register", - "addressOffset": "0x000", - "fields": { - "scale": { - "description": "Divisor for serial clock", - "bitOffset": "0", - "bitWidth": "12", - "resetMask": "all", - "resetValue": "0x003" - } - } - }, - "sckmode": { - "description": "Serial Clock Mode Register", - "addressOffset": "0x004", - "fields": { - "pha": { - "description": "Serial clock phase", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "pol": { - "description": "Serial clock polarity", - "bitOffset": "1", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "csid": { - "description": "Chip Select ID Register", - "addressOffset": "0x010", - "resetMask": "all", - "resetValue": "0x00000000" - }, - "csdef": { - "description": "Chip Select Default Register", - "addressOffset": "0x014", - "resetMask": "all", - "resetValue": "0x00000001" - }, - "csmode": { - "description": "Chip Select Mode Register", - "addressOffset": "0x018", - "fields": { - "mode": { - "description": "Chip select mode", - "bitOffset": "0", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0", - "enumerations": { - "csmode-enum": { - "description": "Chip Select Modes Enumeration", - "values": { - "0": { - "displayName": "auto", - "description": "Assert/de-assert CS at the beginning/end of each frame" - }, - "*": { - "displayName": "reserved" - }, - "2": { - "displayName": "hold", - "description": "Keep CS continuously asserted after the initial frame" - }, - "3": { - "displayName": "off", - "description": "Disable hardware control of the CS pin" - } - } - } - } - } - } - }, - "delay0": { - "description": "Delay Control 0 Register", - "addressOffset": "0x028", - "fields": { - "cssck": { - "description": "CS to SCK Delay", - "bitOffset": "0", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - }, - "sckcs": { - "description": "SCK to CS Delay", - "bitOffset": "16", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - } - } - }, - "delay1": { - "description": "Delay Control 1 Register", - "addressOffset": "0x02C", - "fields": { - "intercs": { - "description": "Minimum CS inactive time", - "bitOffset": "0", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - }, - "interxfr": { - "description": "Maximum interframe delay", - "bitOffset": "16", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - } - } - }, - "fmt": { - "description": "Frame Format Register", - "addressOffset": "0x040", - "fields": { - "proto": { - "description": "SPI Protocol", - "bitOffset": "0", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0", - "enumerations": { - "proto-enum": { - "description": "SPI Protocol Enumeration", - "values": { - "0": { - "displayName": "single", - "description": "DQ0 (MOSI), DQ1 (MISO)" - }, - "1": { - "displayName": "dual", - "description": "DQ0, DQ1" - }, - "2": { - "displayName": "quad", - "description": "DQ0, DQ1, DQ2, DQ3" - }, - "*": { - "displayName": "reserved" - } - } - } - } - }, - "endian": { - "description": "SPI endianness", - "bitOffset": "2", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0", - "enumerations": { - "endian-enum": { - "description": "SPI Endianness Enumeration", - "values": { - "0": { - "displayName": "msb", - "description": "Transmit most-significant bit (MSB) first" - }, - "1": { - "displayName": "lsb", - "description": "Transmit least-significant bit (LSB) first" - } - } - } - } - }, - "dir": { - "description": "SPI I/O Direction", - "bitOffset": "3", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1", - "enumerations": { - "dir-enum": { - "description": "SPI I/O Direction Enumeration", - "values": { - "0": { - "displayName": "rx", - "description": "For dual and quad protocols, the DQ pins are tri-stated. For the single protocol, the DQ0 pin is driven with the transmit data as normal." - }, - "1": { - "displayName": "tx", - "description": "The receive FIFO is not populated." - } - } - } - } - }, - "len": { - "description": "Number of bits per frame", - "bitOffset": "16", - "bitWidth": "4", - "resetMask": "all", - "resetValue": "0x8" - } - } - }, - "txdata": { - "description": "Tx FIFO Data Register", - "addressOffset": "0x048", - "fields": { - "data": { - "description": "Transmit data", - "bitOffset": "0", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x00" - }, - "full": { - "description": "FIFO full flag", - "bitOffset": "31", - "bitWidth": "1", - "access": "r" - } - } - }, - "rxdata": { - "description": "Rx FIFO Data Register", - "addressOffset": "0x04C", - "resetMask": "none", - "access": "r", - "fields": { - "data": { - "description": "Received data", - "bitOffset": "0", - "bitWidth": "8" - }, - "empty": { - "description": "FIFO empty flag", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "txmark": { - "description": "Tx FIFO Watermark Register", - "addressOffset": "0x050", - "fields": { - "value": { - "description": "Transmit watermark", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x1" - } - } - }, - "rxmark": { - "description": "Rx FIFO Watermark Register", - "addressOffset": "0x054", - "fields": { - "value": { - "description": "Receive watermark", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "fctrl": { - "description": "Flash Interface Control Register", - "addressOffset": "0x060", - "fields": { - "en": { - "description": "SPI Flash Mode Select", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1" - } - } - }, - "ffmt": { - "description": "Flash Instruction Format Register", - "addressOffset": "0x064", - "fields": { - "cmden": { - "description": "Enable sending of command", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1" - }, - "addrlen": { - "description": "Number of address bytes(0 to 4)", - "bitOffset": "1", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x3" - }, - "padcnt": { - "description": "Number of dummy cycles", - "bitOffset": "4", - "bitWidth": "4", - "resetMask": "all", - "resetValue": "0x0" - }, - "cmdproto": { - "description": "Protocol for transmitting command", - "bitOffset": "8", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0" - }, - "addrproto": { - "description": "Protocol for transmitting address and padding", - "bitOffset": "10", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0" - }, - "dataproto": { - "description": "Protocol for receiving data bytes", - "bitOffset": "12", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0" - }, - "cmdcode": { - "description": "Value of command byte", - "bitOffset": "16", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x03" - }, - "padcode": { - "description": "First 8 bits to transmit during dummy cycles", - "bitOffset": "24", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ie": { - "description": "Interrupt Enable Register", - "addressOffset": "0x070", - "fields": { - "txwm": { - "description": "Transmit watermark enable", - "bitOffset": "0", - "bitWidth": "1", - "access": "r", - "resetMask": "all", - "resetValue": "0x0" - }, - "rxwm": { - "description": "Receive watermark enable", - "bitOffset": "1", - "bitWidth": "1", - "access": "r", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ip": { - "description": "Interrupt Pending Register", - "addressOffset": "0x074", - "fields": { - "txwm": { - "description": "Transmit watermark pending", - "bitOffset": "0", - "bitWidth": "1", - "access": "r" - }, - "rxwm": { - "description": "Receive watermark pending", - "bitOffset": "1", - "bitWidth": "1", - "access": "r" - } - } - } - }, - "interrupts": { - "spi0": { - "description": "SPI0 Interrupt", - "value": "6" - } - } - }, - "pwm0": { - "description": "Pulse-Width Modulation (PWM) Peripheral", - "baseAddress": "0x20005000", - "size": "0x1000", - "resetMask": "none", - "groupName": "pwm", - "registers": { - "cfg": { - "description": "Configuration Register", - "addressOffset": "0x000", - "fields": { - "scale": { - "description": "Counter scale", - "bitOffset": "0", - "bitWidth": "4" - }, - "sticky": { - "description": "Sticky - disallow clearing pwmcmpXip bits", - "bitOffset": "8", - "bitWidth": "1" - }, - "zerocmp": { - "description": "Zero - counter resets to zero after match", - "bitOffset": "9", - "bitWidth": "1" - }, - "deglitch": { - "description": "Deglitch - latch pwmcmpXip within same cycle", - "bitOffset": "10", - "bitWidth": "1" - }, - "enalways": { - "description": "Enable always - run continuously", - "bitOffset": "12", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "enoneshot": { - "description": "enable one shot - run one cycle", - "bitOffset": "13", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "cmp0center": { - "description": "PWM0 Compare Center", - "bitOffset": "16", - "bitWidth": "1" - }, - "cmp1center": { - "description": "PWM1 Compare Center", - "bitOffset": "17", - "bitWidth": "1" - }, - "cmp2center": { - "description": "PWM2 Compare Center", - "bitOffset": "18", - "bitWidth": "1" - }, - "cmp3center": { - "description": "PWM3 Compare Center", - "bitOffset": "19", - "bitWidth": "1" - }, - "cmp0gang": { - "description": "PWM0/PWM1 Compare Gang", - "bitOffset": "24", - "bitWidth": "1" - }, - "cmp1gang": { - "description": "PWM1/PWM2 Compare Gang", - "bitOffset": "25", - "bitWidth": "1" - }, - "cmp2gang": { - "description": "PWM2/PWM3 Compare Gang", - "bitOffset": "26", - "bitWidth": "1" - }, - "cmp3gang": { - "description": "PWM3/PWM0 Compare Gang", - "bitOffset": "27", - "bitWidth": "1" - }, - "cmp0ip": { - "description": "PWM0 Interrupt Pending", - "bitOffset": "28", - "bitWidth": "1" - }, - "cmp1ip": { - "description": "PWM1 Interrupt Pending", - "bitOffset": "29", - "bitWidth": "1" - }, - "cmp2ip": { - "description": "PWM2 Interrupt Pending", - "bitOffset": "30", - "bitWidth": "1" - }, - "cmp3ip": { - "description": "PWM3 Interrupt Pending", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "count": { - "description": "Configuration Register", - "addressOffset": "0x008" - }, - "scale": { - "description": "Scale Register", - "addressOffset": "0x010", - "fields": { - "value": { - "description": "Compare value", - "bitOffset": "0", - "bitWidth": "8" - } - } - }, - "cmp": { - "arraySize": "4", - "description": "Compare Registers", - "addressOffset": "0x020", - "fields": { - "value": { - "description": "Compare value", - "bitOffset": "0", - "bitWidth": "8" - } - } - } - }, - "interrupts": { - "pwm0cmp0": { - "description": "PWM0 Compare 0 Interrupt", - "value": "23" - }, - "pwm0cmp1": { - "description": "PWM0 Compare 1 Interrupt", - "value": "24" - }, - "pwm0cmp2": { - "description": "PWM0 Compare 2 Interrupt", - "value": "25" - }, - "pwm0cmp3": { - "description": "PWM0 Compare 3 Interrupt", - "value": "26" - } - } - } - } - } - } -} \ No newline at end of file diff --git a/FreedomStudio/E31FPGA/local_interrupts/local_interrupts JLINK.launch b/FreedomStudio/E31FPGA/local_interrupts/local_interrupts JLINK.launch deleted file mode 100644 index 7ea0908..0000000 --- a/FreedomStudio/E31FPGA/local_interrupts/local_interrupts JLINK.launch +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/FreedomStudio/E31FPGA/local_interrupts/local_interrupts OpenOCD.launch b/FreedomStudio/E31FPGA/local_interrupts/local_interrupts OpenOCD.launch deleted file mode 100644 index 35d484b..0000000 --- a/FreedomStudio/E31FPGA/local_interrupts/local_interrupts OpenOCD.launch +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/FreedomStudio/E31FPGA/local_interrupts/sifive-coreplexip-e31-arty.cfg b/FreedomStudio/E31FPGA/local_interrupts/sifive-coreplexip-e31-arty.cfg deleted file mode 100644 index 8b382dc..0000000 --- a/FreedomStudio/E31FPGA/local_interrupts/sifive-coreplexip-e31-arty.cfg +++ /dev/null @@ -1,31 +0,0 @@ -# JTAG adapter setup -adapter_khz 10000 - -interface ftdi -ftdi_device_desc "Olimex OpenOCD JTAG ARM-USB-TINY-H" -ftdi_vid_pid 0x15ba 0x002a - -ftdi_layout_init 0x0808 0x0a1b -ftdi_layout_signal nSRST -oe 0x0200 -#ftdi_layout_signal nTRST -data 0x0100 -oe 0x0100 -ftdi_layout_signal LED -data 0x0800 - -set _CHIPNAME riscv -jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x20000001 - -set _TARGETNAME $_CHIPNAME.cpu - -target create $_TARGETNAME.0 riscv -chain-position $_TARGETNAME -$_TARGETNAME.0 configure -work-area-phys 0x80000000 -work-area-size 10000 -work-area-backup 1 - -# Un-comment these two flash lines if you have a SPI flash and want to write -# it. -flash bank spi0 fespi 0x40000000 0 0 0 $_TARGETNAME.0 0x20004000 -init -if {[ info exists pulse_srst]} { - ftdi_set_signal nSRST 0 - ftdi_set_signal nSRST z -} -halt -flash protect 0 64 last off -echo "Ready for Remote Connections" diff --git a/FreedomStudio/E31FPGA/performance_counters/.cproject b/FreedomStudio/E31FPGA/performance_counters/.cproject deleted file mode 100644 index 59b8831..0000000 --- a/FreedomStudio/E31FPGA/performance_counters/.cproject +++ /dev/null @@ -1,200 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/FreedomStudio/E31FPGA/performance_counters/.gitignore b/FreedomStudio/E31FPGA/performance_counters/.gitignore deleted file mode 100644 index 3df573f..0000000 --- a/FreedomStudio/E31FPGA/performance_counters/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/Debug/ diff --git a/FreedomStudio/E31FPGA/performance_counters/.project b/FreedomStudio/E31FPGA/performance_counters/.project deleted file mode 100644 index 0a7b057..0000000 --- a/FreedomStudio/E31FPGA/performance_counters/.project +++ /dev/null @@ -1,363 +0,0 @@ - - - performance_counters - - - - - - org.eclipse.cdt.managedbuilder.core.genmakebuilder - clean,full,incremental, - - - - - org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder - full,incremental, - - - - - - org.eclipse.cdt.core.cnature - org.eclipse.cdt.managedbuilder.core.managedBuildNature - org.eclipse.cdt.managedbuilder.core.ScannerConfigNature - - - - bsp - 2 - virtual:/virtual - - - performance_counters.c - 1 - PARENT-3-PROJECT_LOC/software/performance_counters/performance_counters.c - - - bsp/drivers - 2 - virtual:/virtual - - - bsp/env - 2 - virtual:/virtual - - - bsp/include - 2 - virtual:/virtual - - - bsp/libwrap - 2 - virtual:/virtual - - - bsp/drivers/fe300prci - 2 - virtual:/virtual - - - bsp/drivers/plic - 2 - virtual:/virtual - - - bsp/env/coreplexip-arty.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-arty.h - - - bsp/env/coreplexip-e31-arty - 2 - virtual:/virtual - - - bsp/env/encoding.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/encoding.h - - - bsp/env/entry.S - 1 - PARENT-3-PROJECT_LOC/bsp/env/entry.S - - - bsp/env/hifive1.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/hifive1.h - - - bsp/env/start.S - 1 - PARENT-3-PROJECT_LOC/bsp/env/start.S - - - bsp/include/sifive - 2 - virtual:/virtual - - - bsp/libwrap/misc - 2 - virtual:/virtual - - - bsp/libwrap/stdlib - 2 - virtual:/virtual - - - bsp/libwrap/sys - 2 - virtual:/virtual - - - bsp/drivers/fe300prci/fe300prci_driver.c - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/fe300prci/fe300prci_driver.c - - - bsp/drivers/fe300prci/fe300prci_driver.h - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/fe300prci/fe300prci_driver.h - - - bsp/drivers/plic/plic_driver.c - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/plic/plic_driver.c - - - bsp/drivers/plic/plic_driver.h - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/plic/plic_driver.h - - - bsp/env/coreplexip-e31-arty/dhrystone.lds - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e31-arty/dhrystone.lds - - - bsp/env/coreplexip-e31-arty/flash.lds - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e31-arty/flash.lds - - - bsp/env/coreplexip-e31-arty/init.c - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e31-arty/init.c - - - bsp/env/coreplexip-e31-arty/openocd.cfg - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e31-arty/openocd.cfg - - - bsp/env/coreplexip-e31-arty/platform.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e31-arty/platform.h - - - bsp/env/coreplexip-e31-arty/scratchpad.lds - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e31-arty/scratchpad.lds - - - bsp/env/coreplexip-e31-arty/settings.mk - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e31-arty/settings.mk - - - bsp/include/sifive/bits.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/bits.h - - - bsp/include/sifive/const.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/const.h - - - bsp/include/sifive/devices - 2 - virtual:/virtual - - - bsp/include/sifive/sections.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/sections.h - - - bsp/include/sifive/smp.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/smp.h - - - bsp/libwrap/misc/write_hex.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/misc/write_hex.c - - - bsp/libwrap/stdlib/malloc.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/stdlib/malloc.c - - - bsp/libwrap/sys/_exit.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/_exit.c - - - bsp/libwrap/sys/close.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/close.c - - - bsp/libwrap/sys/execve.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/execve.c - - - bsp/libwrap/sys/fork.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/fork.c - - - bsp/libwrap/sys/fstat.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/fstat.c - - - bsp/libwrap/sys/getpid.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/getpid.c - - - bsp/libwrap/sys/isatty.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/isatty.c - - - bsp/libwrap/sys/kill.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/kill.c - - - bsp/libwrap/sys/link.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/link.c - - - bsp/libwrap/sys/lseek.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/lseek.c - - - bsp/libwrap/sys/open.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/open.c - - - bsp/libwrap/sys/openat.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/openat.c - - - bsp/libwrap/sys/puts.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/puts.c - - - bsp/libwrap/sys/read.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/read.c - - - bsp/libwrap/sys/sbrk.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/sbrk.c - - - bsp/libwrap/sys/stat.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/stat.c - - - bsp/libwrap/sys/stub.h - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/stub.h - - - bsp/libwrap/sys/times.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/times.c - - - bsp/libwrap/sys/unlink.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/unlink.c - - - bsp/libwrap/sys/wait.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/wait.c - - - bsp/libwrap/sys/weak_under_alias.h - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/weak_under_alias.h - - - bsp/libwrap/sys/write.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/write.c - - - bsp/include/sifive/devices/aon.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/aon.h - - - bsp/include/sifive/devices/clint.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/clint.h - - - bsp/include/sifive/devices/gpio.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/gpio.h - - - bsp/include/sifive/devices/otp.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/otp.h - - - bsp/include/sifive/devices/plic.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/plic.h - - - bsp/include/sifive/devices/prci.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/prci.h - - - bsp/include/sifive/devices/pwm.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/pwm.h - - - bsp/include/sifive/devices/spi.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/spi.h - - - bsp/include/sifive/devices/uart.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/uart.h - - - diff --git a/FreedomStudio/E31FPGA/performance_counters/e31arty-xsvd.json b/FreedomStudio/E31FPGA/performance_counters/e31arty-xsvd.json deleted file mode 100644 index 4879d45..0000000 --- a/FreedomStudio/E31FPGA/performance_counters/e31arty-xsvd.json +++ /dev/null @@ -1,1250 +0,0 @@ -{ - "schemaVersion": "0.2.4", - "contentVersion": "0.2.0", - "headerVersion": "0.2.0", - "device": { - "e31arty": { - "displayName": "Core Complex E31 Arty", - "description": "SiFive’s E31 is a synthesised version of Core Complex E31 running on the Arty board.", - "supplier": { - "name": "sifive", - "id": "1", - "displayName": "SiFive", - "fullName": "SiFive, Inc.", - "contact": "info@sifive.com" - }, - "busWidth": "32", - "resetMask": "all", - "resetValue": "0x00000000", - "access": "rw", - "headerGuardPrefix": "SIFIVE_DEVICES_ARTY_E31_", - "headerTypePrefix": "sifive_e31arty_", - "headerInterruptPrefix": "sifive_e31arty_interrupt_global_", - "headerInterruptEnumPrefix": "riscv_interrupts_global_", - "revision": "r0p0", - "numInterrupts": "26", - "priorityBits": "3", - "regWidth": "32", - "cores": { - "e31": { - "harts": "1", - "isa": "RV32IMAC", - "isaVersion": "2.2", - "mpu": "pmp", - "mmu": "none", - "localInterrupts": { - "machine_software": { - "description": "Machine Software Interrupt", - "value": "3" - }, - "machine_timer": { - "description": "Machine Timer Interrupt", - "value": "7" - }, - "machine_ext": { - "description": "Machine External Interrupt", - "value": "11" - }, - "0": { - "description": "Local Interrupt 0", - "value": "16" - }, - "1": { - "description": "Local Interrupt 1", - "value": "17" - }, - "2": { - "description": "Local Interrupt 2", - "value": "18" - }, - "3": { - "description": "Local Interrupt 3", - "value": "19" - }, - "4": { - "description": "Local Interrupt 4", - "value": "20" - }, - "5": { - "description": "Local Interrupt 5", - "value": "21" - }, - "6": { - "description": "Local Interrupt 6", - "value": "22" - }, - "7": { - "description": "Local Interrupt 7", - "value": "23" - }, - "8": { - "description": "Local Interrupt 8", - "value": "24" - }, - "9": { - "description": "Local Interrupt 9", - "value": "25" - }, - "10": { - "description": "Local Interrupt 10", - "value": "26" - }, - "11": { - "description": "Local Interrupt 11", - "value": "27" - }, - "12": { - "description": "Local Interrupt 12", - "value": "28" - }, - "13": { - "description": "Local Interrupt 13", - "value": "29" - }, - "14": { - "description": "Local Interrupt 14", - "value": "30" - }, - "15": { - "description": "Local Interrupt 15", - "value": "31" - } - }, - "numLocalInterrupts": "16" - } - }, - "peripherals": { - "clint": { - "description": "Core Complex Local Interruptor (CLINT) Peripheral", - "baseAddress": "0x02000000", - "size": "0x10000", - "registers": { - "msip": { - "description": "MSIP (Machine-mode Software Interrupts) Register per Hart", - "addressOffset": "0x0000", - "arraySize": "1" - } - }, - "clusters": { - "mtimecmp": { - "description": "Machine Time Compare Registers per Hart", - "addressOffset": "0x4000", - "arraySize": "1", - "registers": { - "low": { - "description": "Machine Compare Register Low", - "addressOffset": "0x0000" - }, - "high": { - "description": "Machine Compare Register High", - "addressOffset": "0x0004" - } - } - }, - "mtime": { - "description": "Machine Time Register", - "addressOffset": "0xBFF8", - "access": "r", - "registers": { - "low": { - "description": "Machine Time Register Low", - "addressOffset": "0x0000" - }, - "high": { - "description": "Machine Time Register High", - "addressOffset": "0x0004" - } - } - } - } - }, - "plic": { - "description": "Platform-Level Interrupt Controller (PLIC) Peripheral", - "baseAddress": "0x0C000000", - "size": "0x4000000", - "registers": { - "priorities": { - "arraySize": "27", - "description": "Interrupt Priorities Registers; 0 is reserved.", - "addressOffset": "0x0000", - "fields": { - "value": { - "description": "The priority for a given global interrupt", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "pendings": { - "arraySize": "8", - "description": "Interrupt Pending Bits Registers", - "addressOffset": "0x1000", - "access": "r" - } - }, - "clusters": { - "enablestarget0": { - "description": "Hart 0 Interrupt Enable Bits", - "addressOffset": "0x00002000", - "clusters": { - "m": { - "addressOffset": "0x0000", - "description": "Hart 0 M-mode Interrupt Enable Bits", - "registers": { - "enables": { - "arraySize": "8", - "description": "Interrupt Enable Bits Registers", - "addressOffset": "0x0000" - } - } - } - } - }, - "target0": { - "description": "Hart 0 Interrupt Thresholds", - "addressOffset": "0x00200000", - "clusters": { - "m": { - "addressOffset": "0x0000", - "description": "Hart 0 M-Mode Interrupt Threshold", - "registers": { - "threshold": { - "description": "The Priority Threshold Register", - "addressOffset": "0x0000", - "fields": { - "value": { - "description": "The priority threshold value", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "claimcomplete": { - "description": "The Interrupt Claim/Completion Register", - "addressOffset": "0x0004" - } - } - } - } - } - }, - "interrupts": { - "switch0": { - "description": "SWITCH 0 Interrupt", - "value": "2" - }, - "switch1": { - "description": "SWITCH 1 Interrupt", - "value": "3" - }, - "switch2": { - "description": "SWITCH 2 Interrupt", - "value": "4" - }, - "switch3": { - "description": "SWITCH 3 Interrupt", - "value": "5" - } - } - }, - "gpio": { - "description": "General Purpose Input/Output Controller (GPIO) Peripheral", - "baseAddress": "0x20002000", - "size": "0x1000", - "registers": { - "value": { - "description": "Pin Value Register", - "addressOffset": "0x000", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Value Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "inputen": { - "description": "Pin Input Enable Register", - "addressOffset": "0x004", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Pin Input Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "outputen": { - "description": "Pin Output Enable Register", - "addressOffset": "0x008", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Pin Output Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "port": { - "description": "Output Port Value Register", - "addressOffset": "0x00C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Output Port Value Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "pue": { - "description": "Internal Pull-up Enable Register", - "addressOffset": "0x010", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Internal Pull-up Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "ds": { - "description": "Pin Drive Strength Register", - "addressOffset": "0x014", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Pin Drive Strength Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "riseie": { - "description": "Rise Interrupt Enable Register", - "addressOffset": "0x018", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Rise Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "riseip": { - "description": "Rise Interrupt Pending Register", - "addressOffset": "0x01C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Rise Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "fallie": { - "description": "Fall Interrupt Enable Register", - "addressOffset": "0x020", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Fall Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "fallip": { - "description": "Fall Interrupt Pending Register", - "addressOffset": "0x024", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Fall Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "highie": { - "description": "High Interrupt Enable Register", - "addressOffset": "0x028", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "High Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "highip": { - "description": "High Interrupt Pending Register", - "addressOffset": "0x02C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "High Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "lowie": { - "description": "Low Interrupt Enable Register", - "addressOffset": "0x030", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Low Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "lowip": { - "description": "Low Interrupt Pending Register", - "addressOffset": "0x034", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Low Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "iofen": { - "description": "HW I/O Function Enable Register", - "addressOffset": "0x038", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "HW I/O Function Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "iofsel": { - "description": "HW I/O Function Select Register", - "addressOffset": "0x03C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "HW I/O Function Select Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "outxor": { - "description": "Output XOR (invert) Register", - "addressOffset": "0x040", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Output XOR Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - } - }, - "interrupts": { - "gpio0": { - "description": "GPIO0 Interrupt", - "value": "7" - }, - "gpio1": { - "description": "GPIO1 Interrupt", - "value": "8" - }, - "gpio2": { - "description": "GPIO2 Interrupt", - "value": "9" - }, - "gpio3": { - "description": "GPIO3 Interrupt", - "value": "10" - }, - "gpio4": { - "description": "GPIO4 Interrupt", - "value": "11" - }, - "gpio5": { - "description": "GPIO5 Interrupt", - "value": "12" - }, - "gpio6": { - "description": "GPIO6 Interrupt", - "value": "13" - }, - "gpio7": { - "description": "GPIO7 Interrupt", - "value": "14" - }, - "gpio8": { - "description": "GPIO8 Interrupt", - "value": "15" - }, - "gpio9": { - "description": "GPIO9 Interrupt", - "value": "16" - }, - "gpio10": { - "description": "GPIO10 Interrupt", - "value": "17" - }, - "gpio11": { - "description": "GPIO11 Interrupt", - "value": "18" - }, - "gpio12": { - "description": "GPIO12 Interrupt", - "value": "19" - }, - "gpio13": { - "description": "GPIO13 Interrupt", - "value": "20" - }, - "gpio14": { - "description": "GPIO14 Interrupt", - "value": "21" - }, - "gpio15": { - "description": "GPIO15 Interrupt", - "value": "22" - } - } - }, - "uart0": { - "description": "Universal Asynchronous Receiver/Transmitter (UART) Peripheral", - "baseAddress": "0x20000000", - "size": "0x1000", - "resetMask": "none", - "groupName": "uart", - "registers": { - "txdata": { - "description": "Transmit Data Register", - "addressOffset": "0x000", - "fields": { - "data": { - "description": "Transmit data", - "bitOffset": "0", - "bitWidth": "8" - }, - "full": { - "description": "Transmit FIFO full", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "rxdata": { - "description": "Receive Data Register", - "addressOffset": "0x004", - "resetMask": "none", - "fields": { - "data": { - "description": "Received data", - "bitOffset": "0", - "bitWidth": "8", - "access": "r" - }, - "empty": { - "description": "Receive FIFO empty", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "txctrl": { - "description": "Transmit Control Register ", - "addressOffset": "0x008", - "fields": { - "txen": { - "description": "Transmit enable", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "nstop": { - "description": "Number of stop bits", - "bitOffset": "1", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "txcnt": { - "description": "Transmit watermark level", - "bitOffset": "16", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "rxctrl": { - "description": "Receive Control Register", - "addressOffset": "0x00C", - "fields": { - "rxen": { - "description": "Receive enable", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "rxcnt": { - "description": "Receive watermark level", - "bitOffset": "16", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ie": { - "description": "Interrupt Enable Register", - "addressOffset": "0x010", - "fields": { - "txwm": { - "description": "Transmit watermark interrupt enable", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "rxwm": { - "description": "Receive watermark interrupt enable", - "bitOffset": "1", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ip": { - "description": "Interrupt Pending Register", - "addressOffset": "0x014", - "access": "r", - "fields": { - "txwm": { - "description": "Transmit watermark interrupt pending", - "bitOffset": "0", - "bitWidth": "1" - }, - "rxwm": { - "description": "Receive watermark interrupt pending", - "bitOffset": "1", - "bitWidth": "1" - } - } - }, - "div": { - "description": "Baud Rate Divisor Register", - "addressOffset": "0x018", - "fields": { - "value": { - "description": "Baud rate divisor", - "bitOffset": "0", - "bitWidth": "16", - "resetMask": "all", - "resetValue": "0x0000FFFF" - } - } - } - }, - "interrupts": { - "uart0": { - "description": "UART0 Interrupt", - "value": "1" - } - } - }, - "spi0": { - "description": "Serial Peripheral Interface (SPI) Peripheral", - "baseAddress": "0x20004000", - "size": "0x1000", - "resetMask": "none", - "groupName": "spi", - "registers": { - "sckdiv": { - "description": "Serial clock divisor Register", - "addressOffset": "0x000", - "fields": { - "scale": { - "description": "Divisor for serial clock", - "bitOffset": "0", - "bitWidth": "12", - "resetMask": "all", - "resetValue": "0x003" - } - } - }, - "sckmode": { - "description": "Serial Clock Mode Register", - "addressOffset": "0x004", - "fields": { - "pha": { - "description": "Serial clock phase", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "pol": { - "description": "Serial clock polarity", - "bitOffset": "1", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "csid": { - "description": "Chip Select ID Register", - "addressOffset": "0x010", - "resetMask": "all", - "resetValue": "0x00000000" - }, - "csdef": { - "description": "Chip Select Default Register", - "addressOffset": "0x014", - "resetMask": "all", - "resetValue": "0x00000001" - }, - "csmode": { - "description": "Chip Select Mode Register", - "addressOffset": "0x018", - "fields": { - "mode": { - "description": "Chip select mode", - "bitOffset": "0", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0", - "enumerations": { - "csmode-enum": { - "description": "Chip Select Modes Enumeration", - "values": { - "0": { - "displayName": "auto", - "description": "Assert/de-assert CS at the beginning/end of each frame" - }, - "*": { - "displayName": "reserved" - }, - "2": { - "displayName": "hold", - "description": "Keep CS continuously asserted after the initial frame" - }, - "3": { - "displayName": "off", - "description": "Disable hardware control of the CS pin" - } - } - } - } - } - } - }, - "delay0": { - "description": "Delay Control 0 Register", - "addressOffset": "0x028", - "fields": { - "cssck": { - "description": "CS to SCK Delay", - "bitOffset": "0", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - }, - "sckcs": { - "description": "SCK to CS Delay", - "bitOffset": "16", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - } - } - }, - "delay1": { - "description": "Delay Control 1 Register", - "addressOffset": "0x02C", - "fields": { - "intercs": { - "description": "Minimum CS inactive time", - "bitOffset": "0", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - }, - "interxfr": { - "description": "Maximum interframe delay", - "bitOffset": "16", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - } - } - }, - "fmt": { - "description": "Frame Format Register", - "addressOffset": "0x040", - "fields": { - "proto": { - "description": "SPI Protocol", - "bitOffset": "0", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0", - "enumerations": { - "proto-enum": { - "description": "SPI Protocol Enumeration", - "values": { - "0": { - "displayName": "single", - "description": "DQ0 (MOSI), DQ1 (MISO)" - }, - "1": { - "displayName": "dual", - "description": "DQ0, DQ1" - }, - "2": { - "displayName": "quad", - "description": "DQ0, DQ1, DQ2, DQ3" - }, - "*": { - "displayName": "reserved" - } - } - } - } - }, - "endian": { - "description": "SPI endianness", - "bitOffset": "2", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0", - "enumerations": { - "endian-enum": { - "description": "SPI Endianness Enumeration", - "values": { - "0": { - "displayName": "msb", - "description": "Transmit most-significant bit (MSB) first" - }, - "1": { - "displayName": "lsb", - "description": "Transmit least-significant bit (LSB) first" - } - } - } - } - }, - "dir": { - "description": "SPI I/O Direction", - "bitOffset": "3", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1", - "enumerations": { - "dir-enum": { - "description": "SPI I/O Direction Enumeration", - "values": { - "0": { - "displayName": "rx", - "description": "For dual and quad protocols, the DQ pins are tri-stated. For the single protocol, the DQ0 pin is driven with the transmit data as normal." - }, - "1": { - "displayName": "tx", - "description": "The receive FIFO is not populated." - } - } - } - } - }, - "len": { - "description": "Number of bits per frame", - "bitOffset": "16", - "bitWidth": "4", - "resetMask": "all", - "resetValue": "0x8" - } - } - }, - "txdata": { - "description": "Tx FIFO Data Register", - "addressOffset": "0x048", - "fields": { - "data": { - "description": "Transmit data", - "bitOffset": "0", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x00" - }, - "full": { - "description": "FIFO full flag", - "bitOffset": "31", - "bitWidth": "1", - "access": "r" - } - } - }, - "rxdata": { - "description": "Rx FIFO Data Register", - "addressOffset": "0x04C", - "resetMask": "none", - "access": "r", - "fields": { - "data": { - "description": "Received data", - "bitOffset": "0", - "bitWidth": "8" - }, - "empty": { - "description": "FIFO empty flag", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "txmark": { - "description": "Tx FIFO Watermark Register", - "addressOffset": "0x050", - "fields": { - "value": { - "description": "Transmit watermark", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x1" - } - } - }, - "rxmark": { - "description": "Rx FIFO Watermark Register", - "addressOffset": "0x054", - "fields": { - "value": { - "description": "Receive watermark", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "fctrl": { - "description": "Flash Interface Control Register", - "addressOffset": "0x060", - "fields": { - "en": { - "description": "SPI Flash Mode Select", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1" - } - } - }, - "ffmt": { - "description": "Flash Instruction Format Register", - "addressOffset": "0x064", - "fields": { - "cmden": { - "description": "Enable sending of command", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1" - }, - "addrlen": { - "description": "Number of address bytes(0 to 4)", - "bitOffset": "1", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x3" - }, - "padcnt": { - "description": "Number of dummy cycles", - "bitOffset": "4", - "bitWidth": "4", - "resetMask": "all", - "resetValue": "0x0" - }, - "cmdproto": { - "description": "Protocol for transmitting command", - "bitOffset": "8", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0" - }, - "addrproto": { - "description": "Protocol for transmitting address and padding", - "bitOffset": "10", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0" - }, - "dataproto": { - "description": "Protocol for receiving data bytes", - "bitOffset": "12", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0" - }, - "cmdcode": { - "description": "Value of command byte", - "bitOffset": "16", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x03" - }, - "padcode": { - "description": "First 8 bits to transmit during dummy cycles", - "bitOffset": "24", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ie": { - "description": "Interrupt Enable Register", - "addressOffset": "0x070", - "fields": { - "txwm": { - "description": "Transmit watermark enable", - "bitOffset": "0", - "bitWidth": "1", - "access": "r", - "resetMask": "all", - "resetValue": "0x0" - }, - "rxwm": { - "description": "Receive watermark enable", - "bitOffset": "1", - "bitWidth": "1", - "access": "r", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ip": { - "description": "Interrupt Pending Register", - "addressOffset": "0x074", - "fields": { - "txwm": { - "description": "Transmit watermark pending", - "bitOffset": "0", - "bitWidth": "1", - "access": "r" - }, - "rxwm": { - "description": "Receive watermark pending", - "bitOffset": "1", - "bitWidth": "1", - "access": "r" - } - } - } - }, - "interrupts": { - "spi0": { - "description": "SPI0 Interrupt", - "value": "6" - } - } - }, - "pwm0": { - "description": "Pulse-Width Modulation (PWM) Peripheral", - "baseAddress": "0x20005000", - "size": "0x1000", - "resetMask": "none", - "groupName": "pwm", - "registers": { - "cfg": { - "description": "Configuration Register", - "addressOffset": "0x000", - "fields": { - "scale": { - "description": "Counter scale", - "bitOffset": "0", - "bitWidth": "4" - }, - "sticky": { - "description": "Sticky - disallow clearing pwmcmpXip bits", - "bitOffset": "8", - "bitWidth": "1" - }, - "zerocmp": { - "description": "Zero - counter resets to zero after match", - "bitOffset": "9", - "bitWidth": "1" - }, - "deglitch": { - "description": "Deglitch - latch pwmcmpXip within same cycle", - "bitOffset": "10", - "bitWidth": "1" - }, - "enalways": { - "description": "Enable always - run continuously", - "bitOffset": "12", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "enoneshot": { - "description": "enable one shot - run one cycle", - "bitOffset": "13", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "cmp0center": { - "description": "PWM0 Compare Center", - "bitOffset": "16", - "bitWidth": "1" - }, - "cmp1center": { - "description": "PWM1 Compare Center", - "bitOffset": "17", - "bitWidth": "1" - }, - "cmp2center": { - "description": "PWM2 Compare Center", - "bitOffset": "18", - "bitWidth": "1" - }, - "cmp3center": { - "description": "PWM3 Compare Center", - "bitOffset": "19", - "bitWidth": "1" - }, - "cmp0gang": { - "description": "PWM0/PWM1 Compare Gang", - "bitOffset": "24", - "bitWidth": "1" - }, - "cmp1gang": { - "description": "PWM1/PWM2 Compare Gang", - "bitOffset": "25", - "bitWidth": "1" - }, - "cmp2gang": { - "description": "PWM2/PWM3 Compare Gang", - "bitOffset": "26", - "bitWidth": "1" - }, - "cmp3gang": { - "description": "PWM3/PWM0 Compare Gang", - "bitOffset": "27", - "bitWidth": "1" - }, - "cmp0ip": { - "description": "PWM0 Interrupt Pending", - "bitOffset": "28", - "bitWidth": "1" - }, - "cmp1ip": { - "description": "PWM1 Interrupt Pending", - "bitOffset": "29", - "bitWidth": "1" - }, - "cmp2ip": { - "description": "PWM2 Interrupt Pending", - "bitOffset": "30", - "bitWidth": "1" - }, - "cmp3ip": { - "description": "PWM3 Interrupt Pending", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "count": { - "description": "Configuration Register", - "addressOffset": "0x008" - }, - "scale": { - "description": "Scale Register", - "addressOffset": "0x010", - "fields": { - "value": { - "description": "Compare value", - "bitOffset": "0", - "bitWidth": "8" - } - } - }, - "cmp": { - "arraySize": "4", - "description": "Compare Registers", - "addressOffset": "0x020", - "fields": { - "value": { - "description": "Compare value", - "bitOffset": "0", - "bitWidth": "8" - } - } - } - }, - "interrupts": { - "pwm0cmp0": { - "description": "PWM0 Compare 0 Interrupt", - "value": "23" - }, - "pwm0cmp1": { - "description": "PWM0 Compare 1 Interrupt", - "value": "24" - }, - "pwm0cmp2": { - "description": "PWM0 Compare 2 Interrupt", - "value": "25" - }, - "pwm0cmp3": { - "description": "PWM0 Compare 3 Interrupt", - "value": "26" - } - } - } - } - } - } -} \ No newline at end of file diff --git a/FreedomStudio/E31FPGA/performance_counters/performance_counters JLINK.launch b/FreedomStudio/E31FPGA/performance_counters/performance_counters JLINK.launch deleted file mode 100644 index d3f38d9..0000000 --- a/FreedomStudio/E31FPGA/performance_counters/performance_counters JLINK.launch +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/FreedomStudio/E31FPGA/performance_counters/performance_counters OpenOCD.launch b/FreedomStudio/E31FPGA/performance_counters/performance_counters OpenOCD.launch deleted file mode 100644 index 8b9c5cb..0000000 --- a/FreedomStudio/E31FPGA/performance_counters/performance_counters OpenOCD.launch +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/FreedomStudio/E31FPGA/performance_counters/sifive-coreplexip-e31-arty.cfg b/FreedomStudio/E31FPGA/performance_counters/sifive-coreplexip-e31-arty.cfg deleted file mode 100644 index 8b382dc..0000000 --- a/FreedomStudio/E31FPGA/performance_counters/sifive-coreplexip-e31-arty.cfg +++ /dev/null @@ -1,31 +0,0 @@ -# JTAG adapter setup -adapter_khz 10000 - -interface ftdi -ftdi_device_desc "Olimex OpenOCD JTAG ARM-USB-TINY-H" -ftdi_vid_pid 0x15ba 0x002a - -ftdi_layout_init 0x0808 0x0a1b -ftdi_layout_signal nSRST -oe 0x0200 -#ftdi_layout_signal nTRST -data 0x0100 -oe 0x0100 -ftdi_layout_signal LED -data 0x0800 - -set _CHIPNAME riscv -jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x20000001 - -set _TARGETNAME $_CHIPNAME.cpu - -target create $_TARGETNAME.0 riscv -chain-position $_TARGETNAME -$_TARGETNAME.0 configure -work-area-phys 0x80000000 -work-area-size 10000 -work-area-backup 1 - -# Un-comment these two flash lines if you have a SPI flash and want to write -# it. -flash bank spi0 fespi 0x40000000 0 0 0 $_TARGETNAME.0 0x20004000 -init -if {[ info exists pulse_srst]} { - ftdi_set_signal nSRST 0 - ftdi_set_signal nSRST z -} -halt -flash protect 0 64 last off -echo "Ready for Remote Connections" diff --git a/FreedomStudio/E31FPGA/vectored_interrupts/.cproject b/FreedomStudio/E31FPGA/vectored_interrupts/.cproject deleted file mode 100644 index f50ea8e..0000000 --- a/FreedomStudio/E31FPGA/vectored_interrupts/.cproject +++ /dev/null @@ -1,211 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/FreedomStudio/E31FPGA/vectored_interrupts/.gitignore b/FreedomStudio/E31FPGA/vectored_interrupts/.gitignore deleted file mode 100644 index 3df573f..0000000 --- a/FreedomStudio/E31FPGA/vectored_interrupts/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/Debug/ diff --git a/FreedomStudio/E31FPGA/vectored_interrupts/.project b/FreedomStudio/E31FPGA/vectored_interrupts/.project deleted file mode 100644 index 94e835c..0000000 --- a/FreedomStudio/E31FPGA/vectored_interrupts/.project +++ /dev/null @@ -1,358 +0,0 @@ - - - vectored_interrupts - - - - - - org.eclipse.cdt.managedbuilder.core.genmakebuilder - clean,full,incremental, - - - - - org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder - full,incremental, - - - - - - org.eclipse.cdt.core.cnature - org.eclipse.cdt.managedbuilder.core.managedBuildNature - org.eclipse.cdt.managedbuilder.core.ScannerConfigNature - - - - bsp - 2 - virtual:/virtual - - - vectored_interrupts.c - 1 - PARENT-3-PROJECT_LOC/software/vectored_interrupts/vectored_interrupts.c - - - bsp/drivers - 2 - virtual:/virtual - - - bsp/env - 2 - virtual:/virtual - - - bsp/include - 2 - virtual:/virtual - - - bsp/libwrap - 2 - virtual:/virtual - - - bsp/drivers/fe300prci - 2 - virtual:/virtual - - - bsp/drivers/plic - 2 - virtual:/virtual - - - bsp/env/coreplexip-arty.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-arty.h - - - bsp/env/coreplexip-e31-arty - 2 - virtual:/virtual - - - bsp/env/encoding.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/encoding.h - - - bsp/env/start.S - 1 - PARENT-3-PROJECT_LOC/bsp/env/start.S - - - bsp/env/ventry.S - 1 - PARENT-3-PROJECT_LOC/bsp/env/ventry.S - - - bsp/include/sifive - 2 - virtual:/virtual - - - bsp/libwrap/misc - 2 - virtual:/virtual - - - bsp/libwrap/stdlib - 2 - virtual:/virtual - - - bsp/libwrap/sys - 2 - virtual:/virtual - - - bsp/drivers/fe300prci/fe300prci_driver.c - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/fe300prci/fe300prci_driver.c - - - bsp/drivers/fe300prci/fe300prci_driver.h - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/fe300prci/fe300prci_driver.h - - - bsp/drivers/plic/plic_driver.c - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/plic/plic_driver.c - - - bsp/drivers/plic/plic_driver.h - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/plic/plic_driver.h - - - bsp/env/coreplexip-e31-arty/dhrystone.lds - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e31-arty/dhrystone.lds - - - bsp/env/coreplexip-e31-arty/flash.lds - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e31-arty/flash.lds - - - bsp/env/coreplexip-e31-arty/init.c - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e31-arty/init.c - - - bsp/env/coreplexip-e31-arty/openocd.cfg - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e31-arty/openocd.cfg - - - bsp/env/coreplexip-e31-arty/platform.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e31-arty/platform.h - - - bsp/env/coreplexip-e31-arty/scratchpad.lds - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e31-arty/scratchpad.lds - - - bsp/env/coreplexip-e31-arty/settings.mk - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e31-arty/settings.mk - - - bsp/include/sifive/bits.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/bits.h - - - bsp/include/sifive/const.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/const.h - - - bsp/include/sifive/devices - 2 - virtual:/virtual - - - bsp/include/sifive/sections.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/sections.h - - - bsp/include/sifive/smp.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/smp.h - - - bsp/libwrap/misc/write_hex.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/misc/write_hex.c - - - bsp/libwrap/stdlib/malloc.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/stdlib/malloc.c - - - bsp/libwrap/sys/_exit.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/_exit.c - - - bsp/libwrap/sys/close.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/close.c - - - bsp/libwrap/sys/execve.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/execve.c - - - bsp/libwrap/sys/fork.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/fork.c - - - bsp/libwrap/sys/fstat.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/fstat.c - - - bsp/libwrap/sys/getpid.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/getpid.c - - - bsp/libwrap/sys/isatty.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/isatty.c - - - bsp/libwrap/sys/kill.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/kill.c - - - bsp/libwrap/sys/link.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/link.c - - - bsp/libwrap/sys/lseek.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/lseek.c - - - bsp/libwrap/sys/open.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/open.c - - - bsp/libwrap/sys/openat.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/openat.c - - - bsp/libwrap/sys/puts.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/puts.c - - - bsp/libwrap/sys/read.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/read.c - - - bsp/libwrap/sys/sbrk.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/sbrk.c - - - bsp/libwrap/sys/stat.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/stat.c - - - bsp/libwrap/sys/stub.h - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/stub.h - - - bsp/libwrap/sys/times.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/times.c - - - bsp/libwrap/sys/unlink.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/unlink.c - - - bsp/libwrap/sys/wait.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/wait.c - - - bsp/libwrap/sys/weak_under_alias.h - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/weak_under_alias.h - - - bsp/libwrap/sys/write.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/write.c - - - bsp/include/sifive/devices/aon.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/aon.h - - - bsp/include/sifive/devices/clint.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/clint.h - - - bsp/include/sifive/devices/gpio.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/gpio.h - - - bsp/include/sifive/devices/otp.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/otp.h - - - bsp/include/sifive/devices/plic.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/plic.h - - - bsp/include/sifive/devices/prci.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/prci.h - - - bsp/include/sifive/devices/pwm.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/pwm.h - - - bsp/include/sifive/devices/spi.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/spi.h - - - bsp/include/sifive/devices/uart.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/uart.h - - - diff --git a/FreedomStudio/E31FPGA/vectored_interrupts/e31arty-xsvd.json b/FreedomStudio/E31FPGA/vectored_interrupts/e31arty-xsvd.json deleted file mode 100644 index 4879d45..0000000 --- a/FreedomStudio/E31FPGA/vectored_interrupts/e31arty-xsvd.json +++ /dev/null @@ -1,1250 +0,0 @@ -{ - "schemaVersion": "0.2.4", - "contentVersion": "0.2.0", - "headerVersion": "0.2.0", - "device": { - "e31arty": { - "displayName": "Core Complex E31 Arty", - "description": "SiFive’s E31 is a synthesised version of Core Complex E31 running on the Arty board.", - "supplier": { - "name": "sifive", - "id": "1", - "displayName": "SiFive", - "fullName": "SiFive, Inc.", - "contact": "info@sifive.com" - }, - "busWidth": "32", - "resetMask": "all", - "resetValue": "0x00000000", - "access": "rw", - "headerGuardPrefix": "SIFIVE_DEVICES_ARTY_E31_", - "headerTypePrefix": "sifive_e31arty_", - "headerInterruptPrefix": "sifive_e31arty_interrupt_global_", - "headerInterruptEnumPrefix": "riscv_interrupts_global_", - "revision": "r0p0", - "numInterrupts": "26", - "priorityBits": "3", - "regWidth": "32", - "cores": { - "e31": { - "harts": "1", - "isa": "RV32IMAC", - "isaVersion": "2.2", - "mpu": "pmp", - "mmu": "none", - "localInterrupts": { - "machine_software": { - "description": "Machine Software Interrupt", - "value": "3" - }, - "machine_timer": { - "description": "Machine Timer Interrupt", - "value": "7" - }, - "machine_ext": { - "description": "Machine External Interrupt", - "value": "11" - }, - "0": { - "description": "Local Interrupt 0", - "value": "16" - }, - "1": { - "description": "Local Interrupt 1", - "value": "17" - }, - "2": { - "description": "Local Interrupt 2", - "value": "18" - }, - "3": { - "description": "Local Interrupt 3", - "value": "19" - }, - "4": { - "description": "Local Interrupt 4", - "value": "20" - }, - "5": { - "description": "Local Interrupt 5", - "value": "21" - }, - "6": { - "description": "Local Interrupt 6", - "value": "22" - }, - "7": { - "description": "Local Interrupt 7", - "value": "23" - }, - "8": { - "description": "Local Interrupt 8", - "value": "24" - }, - "9": { - "description": "Local Interrupt 9", - "value": "25" - }, - "10": { - "description": "Local Interrupt 10", - "value": "26" - }, - "11": { - "description": "Local Interrupt 11", - "value": "27" - }, - "12": { - "description": "Local Interrupt 12", - "value": "28" - }, - "13": { - "description": "Local Interrupt 13", - "value": "29" - }, - "14": { - "description": "Local Interrupt 14", - "value": "30" - }, - "15": { - "description": "Local Interrupt 15", - "value": "31" - } - }, - "numLocalInterrupts": "16" - } - }, - "peripherals": { - "clint": { - "description": "Core Complex Local Interruptor (CLINT) Peripheral", - "baseAddress": "0x02000000", - "size": "0x10000", - "registers": { - "msip": { - "description": "MSIP (Machine-mode Software Interrupts) Register per Hart", - "addressOffset": "0x0000", - "arraySize": "1" - } - }, - "clusters": { - "mtimecmp": { - "description": "Machine Time Compare Registers per Hart", - "addressOffset": "0x4000", - "arraySize": "1", - "registers": { - "low": { - "description": "Machine Compare Register Low", - "addressOffset": "0x0000" - }, - "high": { - "description": "Machine Compare Register High", - "addressOffset": "0x0004" - } - } - }, - "mtime": { - "description": "Machine Time Register", - "addressOffset": "0xBFF8", - "access": "r", - "registers": { - "low": { - "description": "Machine Time Register Low", - "addressOffset": "0x0000" - }, - "high": { - "description": "Machine Time Register High", - "addressOffset": "0x0004" - } - } - } - } - }, - "plic": { - "description": "Platform-Level Interrupt Controller (PLIC) Peripheral", - "baseAddress": "0x0C000000", - "size": "0x4000000", - "registers": { - "priorities": { - "arraySize": "27", - "description": "Interrupt Priorities Registers; 0 is reserved.", - "addressOffset": "0x0000", - "fields": { - "value": { - "description": "The priority for a given global interrupt", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "pendings": { - "arraySize": "8", - "description": "Interrupt Pending Bits Registers", - "addressOffset": "0x1000", - "access": "r" - } - }, - "clusters": { - "enablestarget0": { - "description": "Hart 0 Interrupt Enable Bits", - "addressOffset": "0x00002000", - "clusters": { - "m": { - "addressOffset": "0x0000", - "description": "Hart 0 M-mode Interrupt Enable Bits", - "registers": { - "enables": { - "arraySize": "8", - "description": "Interrupt Enable Bits Registers", - "addressOffset": "0x0000" - } - } - } - } - }, - "target0": { - "description": "Hart 0 Interrupt Thresholds", - "addressOffset": "0x00200000", - "clusters": { - "m": { - "addressOffset": "0x0000", - "description": "Hart 0 M-Mode Interrupt Threshold", - "registers": { - "threshold": { - "description": "The Priority Threshold Register", - "addressOffset": "0x0000", - "fields": { - "value": { - "description": "The priority threshold value", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "claimcomplete": { - "description": "The Interrupt Claim/Completion Register", - "addressOffset": "0x0004" - } - } - } - } - } - }, - "interrupts": { - "switch0": { - "description": "SWITCH 0 Interrupt", - "value": "2" - }, - "switch1": { - "description": "SWITCH 1 Interrupt", - "value": "3" - }, - "switch2": { - "description": "SWITCH 2 Interrupt", - "value": "4" - }, - "switch3": { - "description": "SWITCH 3 Interrupt", - "value": "5" - } - } - }, - "gpio": { - "description": "General Purpose Input/Output Controller (GPIO) Peripheral", - "baseAddress": "0x20002000", - "size": "0x1000", - "registers": { - "value": { - "description": "Pin Value Register", - "addressOffset": "0x000", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Value Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "inputen": { - "description": "Pin Input Enable Register", - "addressOffset": "0x004", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Pin Input Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "outputen": { - "description": "Pin Output Enable Register", - "addressOffset": "0x008", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Pin Output Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "port": { - "description": "Output Port Value Register", - "addressOffset": "0x00C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Output Port Value Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "pue": { - "description": "Internal Pull-up Enable Register", - "addressOffset": "0x010", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Internal Pull-up Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "ds": { - "description": "Pin Drive Strength Register", - "addressOffset": "0x014", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Pin Drive Strength Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "riseie": { - "description": "Rise Interrupt Enable Register", - "addressOffset": "0x018", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Rise Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "riseip": { - "description": "Rise Interrupt Pending Register", - "addressOffset": "0x01C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Rise Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "fallie": { - "description": "Fall Interrupt Enable Register", - "addressOffset": "0x020", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Fall Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "fallip": { - "description": "Fall Interrupt Pending Register", - "addressOffset": "0x024", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Fall Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "highie": { - "description": "High Interrupt Enable Register", - "addressOffset": "0x028", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "High Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "highip": { - "description": "High Interrupt Pending Register", - "addressOffset": "0x02C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "High Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "lowie": { - "description": "Low Interrupt Enable Register", - "addressOffset": "0x030", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Low Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "lowip": { - "description": "Low Interrupt Pending Register", - "addressOffset": "0x034", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Low Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "iofen": { - "description": "HW I/O Function Enable Register", - "addressOffset": "0x038", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "HW I/O Function Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "iofsel": { - "description": "HW I/O Function Select Register", - "addressOffset": "0x03C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "HW I/O Function Select Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "outxor": { - "description": "Output XOR (invert) Register", - "addressOffset": "0x040", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Output XOR Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - } - }, - "interrupts": { - "gpio0": { - "description": "GPIO0 Interrupt", - "value": "7" - }, - "gpio1": { - "description": "GPIO1 Interrupt", - "value": "8" - }, - "gpio2": { - "description": "GPIO2 Interrupt", - "value": "9" - }, - "gpio3": { - "description": "GPIO3 Interrupt", - "value": "10" - }, - "gpio4": { - "description": "GPIO4 Interrupt", - "value": "11" - }, - "gpio5": { - "description": "GPIO5 Interrupt", - "value": "12" - }, - "gpio6": { - "description": "GPIO6 Interrupt", - "value": "13" - }, - "gpio7": { - "description": "GPIO7 Interrupt", - "value": "14" - }, - "gpio8": { - "description": "GPIO8 Interrupt", - "value": "15" - }, - "gpio9": { - "description": "GPIO9 Interrupt", - "value": "16" - }, - "gpio10": { - "description": "GPIO10 Interrupt", - "value": "17" - }, - "gpio11": { - "description": "GPIO11 Interrupt", - "value": "18" - }, - "gpio12": { - "description": "GPIO12 Interrupt", - "value": "19" - }, - "gpio13": { - "description": "GPIO13 Interrupt", - "value": "20" - }, - "gpio14": { - "description": "GPIO14 Interrupt", - "value": "21" - }, - "gpio15": { - "description": "GPIO15 Interrupt", - "value": "22" - } - } - }, - "uart0": { - "description": "Universal Asynchronous Receiver/Transmitter (UART) Peripheral", - "baseAddress": "0x20000000", - "size": "0x1000", - "resetMask": "none", - "groupName": "uart", - "registers": { - "txdata": { - "description": "Transmit Data Register", - "addressOffset": "0x000", - "fields": { - "data": { - "description": "Transmit data", - "bitOffset": "0", - "bitWidth": "8" - }, - "full": { - "description": "Transmit FIFO full", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "rxdata": { - "description": "Receive Data Register", - "addressOffset": "0x004", - "resetMask": "none", - "fields": { - "data": { - "description": "Received data", - "bitOffset": "0", - "bitWidth": "8", - "access": "r" - }, - "empty": { - "description": "Receive FIFO empty", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "txctrl": { - "description": "Transmit Control Register ", - "addressOffset": "0x008", - "fields": { - "txen": { - "description": "Transmit enable", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "nstop": { - "description": "Number of stop bits", - "bitOffset": "1", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "txcnt": { - "description": "Transmit watermark level", - "bitOffset": "16", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "rxctrl": { - "description": "Receive Control Register", - "addressOffset": "0x00C", - "fields": { - "rxen": { - "description": "Receive enable", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "rxcnt": { - "description": "Receive watermark level", - "bitOffset": "16", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ie": { - "description": "Interrupt Enable Register", - "addressOffset": "0x010", - "fields": { - "txwm": { - "description": "Transmit watermark interrupt enable", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "rxwm": { - "description": "Receive watermark interrupt enable", - "bitOffset": "1", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ip": { - "description": "Interrupt Pending Register", - "addressOffset": "0x014", - "access": "r", - "fields": { - "txwm": { - "description": "Transmit watermark interrupt pending", - "bitOffset": "0", - "bitWidth": "1" - }, - "rxwm": { - "description": "Receive watermark interrupt pending", - "bitOffset": "1", - "bitWidth": "1" - } - } - }, - "div": { - "description": "Baud Rate Divisor Register", - "addressOffset": "0x018", - "fields": { - "value": { - "description": "Baud rate divisor", - "bitOffset": "0", - "bitWidth": "16", - "resetMask": "all", - "resetValue": "0x0000FFFF" - } - } - } - }, - "interrupts": { - "uart0": { - "description": "UART0 Interrupt", - "value": "1" - } - } - }, - "spi0": { - "description": "Serial Peripheral Interface (SPI) Peripheral", - "baseAddress": "0x20004000", - "size": "0x1000", - "resetMask": "none", - "groupName": "spi", - "registers": { - "sckdiv": { - "description": "Serial clock divisor Register", - "addressOffset": "0x000", - "fields": { - "scale": { - "description": "Divisor for serial clock", - "bitOffset": "0", - "bitWidth": "12", - "resetMask": "all", - "resetValue": "0x003" - } - } - }, - "sckmode": { - "description": "Serial Clock Mode Register", - "addressOffset": "0x004", - "fields": { - "pha": { - "description": "Serial clock phase", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "pol": { - "description": "Serial clock polarity", - "bitOffset": "1", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "csid": { - "description": "Chip Select ID Register", - "addressOffset": "0x010", - "resetMask": "all", - "resetValue": "0x00000000" - }, - "csdef": { - "description": "Chip Select Default Register", - "addressOffset": "0x014", - "resetMask": "all", - "resetValue": "0x00000001" - }, - "csmode": { - "description": "Chip Select Mode Register", - "addressOffset": "0x018", - "fields": { - "mode": { - "description": "Chip select mode", - "bitOffset": "0", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0", - "enumerations": { - "csmode-enum": { - "description": "Chip Select Modes Enumeration", - "values": { - "0": { - "displayName": "auto", - "description": "Assert/de-assert CS at the beginning/end of each frame" - }, - "*": { - "displayName": "reserved" - }, - "2": { - "displayName": "hold", - "description": "Keep CS continuously asserted after the initial frame" - }, - "3": { - "displayName": "off", - "description": "Disable hardware control of the CS pin" - } - } - } - } - } - } - }, - "delay0": { - "description": "Delay Control 0 Register", - "addressOffset": "0x028", - "fields": { - "cssck": { - "description": "CS to SCK Delay", - "bitOffset": "0", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - }, - "sckcs": { - "description": "SCK to CS Delay", - "bitOffset": "16", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - } - } - }, - "delay1": { - "description": "Delay Control 1 Register", - "addressOffset": "0x02C", - "fields": { - "intercs": { - "description": "Minimum CS inactive time", - "bitOffset": "0", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - }, - "interxfr": { - "description": "Maximum interframe delay", - "bitOffset": "16", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - } - } - }, - "fmt": { - "description": "Frame Format Register", - "addressOffset": "0x040", - "fields": { - "proto": { - "description": "SPI Protocol", - "bitOffset": "0", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0", - "enumerations": { - "proto-enum": { - "description": "SPI Protocol Enumeration", - "values": { - "0": { - "displayName": "single", - "description": "DQ0 (MOSI), DQ1 (MISO)" - }, - "1": { - "displayName": "dual", - "description": "DQ0, DQ1" - }, - "2": { - "displayName": "quad", - "description": "DQ0, DQ1, DQ2, DQ3" - }, - "*": { - "displayName": "reserved" - } - } - } - } - }, - "endian": { - "description": "SPI endianness", - "bitOffset": "2", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0", - "enumerations": { - "endian-enum": { - "description": "SPI Endianness Enumeration", - "values": { - "0": { - "displayName": "msb", - "description": "Transmit most-significant bit (MSB) first" - }, - "1": { - "displayName": "lsb", - "description": "Transmit least-significant bit (LSB) first" - } - } - } - } - }, - "dir": { - "description": "SPI I/O Direction", - "bitOffset": "3", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1", - "enumerations": { - "dir-enum": { - "description": "SPI I/O Direction Enumeration", - "values": { - "0": { - "displayName": "rx", - "description": "For dual and quad protocols, the DQ pins are tri-stated. For the single protocol, the DQ0 pin is driven with the transmit data as normal." - }, - "1": { - "displayName": "tx", - "description": "The receive FIFO is not populated." - } - } - } - } - }, - "len": { - "description": "Number of bits per frame", - "bitOffset": "16", - "bitWidth": "4", - "resetMask": "all", - "resetValue": "0x8" - } - } - }, - "txdata": { - "description": "Tx FIFO Data Register", - "addressOffset": "0x048", - "fields": { - "data": { - "description": "Transmit data", - "bitOffset": "0", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x00" - }, - "full": { - "description": "FIFO full flag", - "bitOffset": "31", - "bitWidth": "1", - "access": "r" - } - } - }, - "rxdata": { - "description": "Rx FIFO Data Register", - "addressOffset": "0x04C", - "resetMask": "none", - "access": "r", - "fields": { - "data": { - "description": "Received data", - "bitOffset": "0", - "bitWidth": "8" - }, - "empty": { - "description": "FIFO empty flag", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "txmark": { - "description": "Tx FIFO Watermark Register", - "addressOffset": "0x050", - "fields": { - "value": { - "description": "Transmit watermark", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x1" - } - } - }, - "rxmark": { - "description": "Rx FIFO Watermark Register", - "addressOffset": "0x054", - "fields": { - "value": { - "description": "Receive watermark", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "fctrl": { - "description": "Flash Interface Control Register", - "addressOffset": "0x060", - "fields": { - "en": { - "description": "SPI Flash Mode Select", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1" - } - } - }, - "ffmt": { - "description": "Flash Instruction Format Register", - "addressOffset": "0x064", - "fields": { - "cmden": { - "description": "Enable sending of command", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1" - }, - "addrlen": { - "description": "Number of address bytes(0 to 4)", - "bitOffset": "1", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x3" - }, - "padcnt": { - "description": "Number of dummy cycles", - "bitOffset": "4", - "bitWidth": "4", - "resetMask": "all", - "resetValue": "0x0" - }, - "cmdproto": { - "description": "Protocol for transmitting command", - "bitOffset": "8", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0" - }, - "addrproto": { - "description": "Protocol for transmitting address and padding", - "bitOffset": "10", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0" - }, - "dataproto": { - "description": "Protocol for receiving data bytes", - "bitOffset": "12", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0" - }, - "cmdcode": { - "description": "Value of command byte", - "bitOffset": "16", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x03" - }, - "padcode": { - "description": "First 8 bits to transmit during dummy cycles", - "bitOffset": "24", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ie": { - "description": "Interrupt Enable Register", - "addressOffset": "0x070", - "fields": { - "txwm": { - "description": "Transmit watermark enable", - "bitOffset": "0", - "bitWidth": "1", - "access": "r", - "resetMask": "all", - "resetValue": "0x0" - }, - "rxwm": { - "description": "Receive watermark enable", - "bitOffset": "1", - "bitWidth": "1", - "access": "r", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ip": { - "description": "Interrupt Pending Register", - "addressOffset": "0x074", - "fields": { - "txwm": { - "description": "Transmit watermark pending", - "bitOffset": "0", - "bitWidth": "1", - "access": "r" - }, - "rxwm": { - "description": "Receive watermark pending", - "bitOffset": "1", - "bitWidth": "1", - "access": "r" - } - } - } - }, - "interrupts": { - "spi0": { - "description": "SPI0 Interrupt", - "value": "6" - } - } - }, - "pwm0": { - "description": "Pulse-Width Modulation (PWM) Peripheral", - "baseAddress": "0x20005000", - "size": "0x1000", - "resetMask": "none", - "groupName": "pwm", - "registers": { - "cfg": { - "description": "Configuration Register", - "addressOffset": "0x000", - "fields": { - "scale": { - "description": "Counter scale", - "bitOffset": "0", - "bitWidth": "4" - }, - "sticky": { - "description": "Sticky - disallow clearing pwmcmpXip bits", - "bitOffset": "8", - "bitWidth": "1" - }, - "zerocmp": { - "description": "Zero - counter resets to zero after match", - "bitOffset": "9", - "bitWidth": "1" - }, - "deglitch": { - "description": "Deglitch - latch pwmcmpXip within same cycle", - "bitOffset": "10", - "bitWidth": "1" - }, - "enalways": { - "description": "Enable always - run continuously", - "bitOffset": "12", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "enoneshot": { - "description": "enable one shot - run one cycle", - "bitOffset": "13", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "cmp0center": { - "description": "PWM0 Compare Center", - "bitOffset": "16", - "bitWidth": "1" - }, - "cmp1center": { - "description": "PWM1 Compare Center", - "bitOffset": "17", - "bitWidth": "1" - }, - "cmp2center": { - "description": "PWM2 Compare Center", - "bitOffset": "18", - "bitWidth": "1" - }, - "cmp3center": { - "description": "PWM3 Compare Center", - "bitOffset": "19", - "bitWidth": "1" - }, - "cmp0gang": { - "description": "PWM0/PWM1 Compare Gang", - "bitOffset": "24", - "bitWidth": "1" - }, - "cmp1gang": { - "description": "PWM1/PWM2 Compare Gang", - "bitOffset": "25", - "bitWidth": "1" - }, - "cmp2gang": { - "description": "PWM2/PWM3 Compare Gang", - "bitOffset": "26", - "bitWidth": "1" - }, - "cmp3gang": { - "description": "PWM3/PWM0 Compare Gang", - "bitOffset": "27", - "bitWidth": "1" - }, - "cmp0ip": { - "description": "PWM0 Interrupt Pending", - "bitOffset": "28", - "bitWidth": "1" - }, - "cmp1ip": { - "description": "PWM1 Interrupt Pending", - "bitOffset": "29", - "bitWidth": "1" - }, - "cmp2ip": { - "description": "PWM2 Interrupt Pending", - "bitOffset": "30", - "bitWidth": "1" - }, - "cmp3ip": { - "description": "PWM3 Interrupt Pending", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "count": { - "description": "Configuration Register", - "addressOffset": "0x008" - }, - "scale": { - "description": "Scale Register", - "addressOffset": "0x010", - "fields": { - "value": { - "description": "Compare value", - "bitOffset": "0", - "bitWidth": "8" - } - } - }, - "cmp": { - "arraySize": "4", - "description": "Compare Registers", - "addressOffset": "0x020", - "fields": { - "value": { - "description": "Compare value", - "bitOffset": "0", - "bitWidth": "8" - } - } - } - }, - "interrupts": { - "pwm0cmp0": { - "description": "PWM0 Compare 0 Interrupt", - "value": "23" - }, - "pwm0cmp1": { - "description": "PWM0 Compare 1 Interrupt", - "value": "24" - }, - "pwm0cmp2": { - "description": "PWM0 Compare 2 Interrupt", - "value": "25" - }, - "pwm0cmp3": { - "description": "PWM0 Compare 3 Interrupt", - "value": "26" - } - } - } - } - } - } -} \ No newline at end of file diff --git a/FreedomStudio/E31FPGA/vectored_interrupts/sifive-coreplexip-e31-arty.cfg b/FreedomStudio/E31FPGA/vectored_interrupts/sifive-coreplexip-e31-arty.cfg deleted file mode 100644 index 8b382dc..0000000 --- a/FreedomStudio/E31FPGA/vectored_interrupts/sifive-coreplexip-e31-arty.cfg +++ /dev/null @@ -1,31 +0,0 @@ -# JTAG adapter setup -adapter_khz 10000 - -interface ftdi -ftdi_device_desc "Olimex OpenOCD JTAG ARM-USB-TINY-H" -ftdi_vid_pid 0x15ba 0x002a - -ftdi_layout_init 0x0808 0x0a1b -ftdi_layout_signal nSRST -oe 0x0200 -#ftdi_layout_signal nTRST -data 0x0100 -oe 0x0100 -ftdi_layout_signal LED -data 0x0800 - -set _CHIPNAME riscv -jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x20000001 - -set _TARGETNAME $_CHIPNAME.cpu - -target create $_TARGETNAME.0 riscv -chain-position $_TARGETNAME -$_TARGETNAME.0 configure -work-area-phys 0x80000000 -work-area-size 10000 -work-area-backup 1 - -# Un-comment these two flash lines if you have a SPI flash and want to write -# it. -flash bank spi0 fespi 0x40000000 0 0 0 $_TARGETNAME.0 0x20004000 -init -if {[ info exists pulse_srst]} { - ftdi_set_signal nSRST 0 - ftdi_set_signal nSRST z -} -halt -flash protect 0 64 last off -echo "Ready for Remote Connections" diff --git a/FreedomStudio/E31FPGA/vectored_interrupts/vectored_interrupts JLINK.launch b/FreedomStudio/E31FPGA/vectored_interrupts/vectored_interrupts JLINK.launch deleted file mode 100644 index 0723d26..0000000 --- a/FreedomStudio/E31FPGA/vectored_interrupts/vectored_interrupts JLINK.launch +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/FreedomStudio/E31FPGA/vectored_interrupts/vectored_interrupts OpenOCD.launch b/FreedomStudio/E31FPGA/vectored_interrupts/vectored_interrupts OpenOCD.launch deleted file mode 100644 index 0574e02..0000000 --- a/FreedomStudio/E31FPGA/vectored_interrupts/vectored_interrupts OpenOCD.launch +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/FreedomStudio/E51FPGA/coreplexip_welcome/.cproject b/FreedomStudio/E51FPGA/coreplexip_welcome/.cproject deleted file mode 100644 index 7da94d5..0000000 --- a/FreedomStudio/E51FPGA/coreplexip_welcome/.cproject +++ /dev/null @@ -1,210 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/FreedomStudio/E51FPGA/coreplexip_welcome/.gitignore b/FreedomStudio/E51FPGA/coreplexip_welcome/.gitignore deleted file mode 100644 index 3df573f..0000000 --- a/FreedomStudio/E51FPGA/coreplexip_welcome/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/Debug/ diff --git a/FreedomStudio/E51FPGA/coreplexip_welcome/.project b/FreedomStudio/E51FPGA/coreplexip_welcome/.project deleted file mode 100644 index e2d1392..0000000 --- a/FreedomStudio/E51FPGA/coreplexip_welcome/.project +++ /dev/null @@ -1,353 +0,0 @@ - - - coreplexip_welcome - - - - - - org.eclipse.cdt.managedbuilder.core.genmakebuilder - clean,full,incremental, - - - - - org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder - full,incremental, - - - - - - org.eclipse.cdt.core.cnature - org.eclipse.cdt.managedbuilder.core.managedBuildNature - org.eclipse.cdt.managedbuilder.core.ScannerConfigNature - - - - bsp - 2 - virtual:/virtual - - - coreplexip_welcome.c - 1 - PARENT-3-PROJECT_LOC/software/coreplexip_welcome/coreplexip_welcome.c - - - bsp/drivers - 2 - virtual:/virtual - - - bsp/env - 2 - virtual:/virtual - - - bsp/include - 2 - virtual:/virtual - - - bsp/libwrap - 2 - virtual:/virtual - - - bsp/drivers/fe300prci - 2 - virtual:/virtual - - - bsp/drivers/plic - 2 - virtual:/virtual - - - bsp/env/coreplexip-arty.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-arty.h - - - bsp/env/coreplexip-e51-arty - 2 - virtual:/virtual - - - bsp/env/encoding.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/encoding.h - - - bsp/env/entry.S - 1 - PARENT-3-PROJECT_LOC/bsp/env/entry.S - - - bsp/env/hifive1.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/hifive1.h - - - bsp/env/start.S - 1 - PARENT-3-PROJECT_LOC/bsp/env/start.S - - - bsp/include/sifive - 2 - virtual:/virtual - - - bsp/libwrap/misc - 2 - virtual:/virtual - - - bsp/libwrap/stdlib - 2 - virtual:/virtual - - - bsp/libwrap/sys - 2 - virtual:/virtual - - - bsp/drivers/fe300prci/fe300prci_driver.c - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/fe300prci/fe300prci_driver.c - - - bsp/drivers/fe300prci/fe300prci_driver.h - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/fe300prci/fe300prci_driver.h - - - bsp/drivers/plic/plic_driver.c - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/plic/plic_driver.c - - - bsp/drivers/plic/plic_driver.h - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/plic/plic_driver.h - - - bsp/env/coreplexip-e51-arty/flash.lds - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e51-arty/flash.lds - - - bsp/env/coreplexip-e51-arty/init.c - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e51-arty/init.c - - - bsp/env/coreplexip-e51-arty/openocd.cfg - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e51-arty/openocd.cfg - - - bsp/env/coreplexip-e51-arty/platform.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e51-arty/platform.h - - - bsp/env/coreplexip-e51-arty/scratchpad.lds - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e51-arty/scratchpad.lds - - - bsp/include/sifive/bits.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/bits.h - - - bsp/include/sifive/const.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/const.h - - - bsp/include/sifive/devices - 2 - virtual:/virtual - - - bsp/include/sifive/sections.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/sections.h - - - bsp/include/sifive/smp.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/smp.h - - - bsp/libwrap/misc/write_hex.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/misc/write_hex.c - - - bsp/libwrap/stdlib/malloc.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/stdlib/malloc.c - - - bsp/libwrap/sys/_exit.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/_exit.c - - - bsp/libwrap/sys/close.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/close.c - - - bsp/libwrap/sys/execve.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/execve.c - - - bsp/libwrap/sys/fork.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/fork.c - - - bsp/libwrap/sys/fstat.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/fstat.c - - - bsp/libwrap/sys/getpid.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/getpid.c - - - bsp/libwrap/sys/isatty.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/isatty.c - - - bsp/libwrap/sys/kill.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/kill.c - - - bsp/libwrap/sys/link.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/link.c - - - bsp/libwrap/sys/lseek.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/lseek.c - - - bsp/libwrap/sys/open.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/open.c - - - bsp/libwrap/sys/openat.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/openat.c - - - bsp/libwrap/sys/puts.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/puts.c - - - bsp/libwrap/sys/read.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/read.c - - - bsp/libwrap/sys/sbrk.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/sbrk.c - - - bsp/libwrap/sys/stat.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/stat.c - - - bsp/libwrap/sys/stub.h - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/stub.h - - - bsp/libwrap/sys/times.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/times.c - - - bsp/libwrap/sys/unlink.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/unlink.c - - - bsp/libwrap/sys/wait.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/wait.c - - - bsp/libwrap/sys/weak_under_alias.h - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/weak_under_alias.h - - - bsp/libwrap/sys/write.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/write.c - - - bsp/include/sifive/devices/aon.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/aon.h - - - bsp/include/sifive/devices/clint.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/clint.h - - - bsp/include/sifive/devices/gpio.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/gpio.h - - - bsp/include/sifive/devices/otp.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/otp.h - - - bsp/include/sifive/devices/plic.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/plic.h - - - bsp/include/sifive/devices/prci.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/prci.h - - - bsp/include/sifive/devices/pwm.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/pwm.h - - - bsp/include/sifive/devices/spi.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/spi.h - - - bsp/include/sifive/devices/uart.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/uart.h - - - diff --git a/FreedomStudio/E51FPGA/coreplexip_welcome/coreplexip_welcome OpenOCD.launch b/FreedomStudio/E51FPGA/coreplexip_welcome/coreplexip_welcome OpenOCD.launch deleted file mode 100644 index 9d170a8..0000000 --- a/FreedomStudio/E51FPGA/coreplexip_welcome/coreplexip_welcome OpenOCD.launch +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/FreedomStudio/E51FPGA/coreplexip_welcome/e51arty-xsvd.json b/FreedomStudio/E51FPGA/coreplexip_welcome/e51arty-xsvd.json deleted file mode 100644 index aac7a77..0000000 --- a/FreedomStudio/E51FPGA/coreplexip_welcome/e51arty-xsvd.json +++ /dev/null @@ -1,1230 +0,0 @@ -{ - "schemaVersion": "0.2.4", - "contentVersion": "0.2.0", - "headerVersion": "0.2.0", - "device": { - "e51arty": { - "displayName": "Core Complex E51 Arty", - "description": "SiFive’s E51 is a synthesised version of Core Complex E31 running on the Arty board.", - "supplier": { - "name": "sifive", - "id": "1", - "displayName": "SiFive", - "fullName": "SiFive, Inc.", - "contact": "info@sifive.com" - }, - "busWidth": "64", - "resetMask": "all", - "resetValue": "0x0000000000000000", - "access": "rw", - "headerGuardPrefix": "SIFIVE_DEVICES_ARTY_E51_", - "headerTypePrefix": "sifive_e51arty_", - "headerInterruptPrefix": "sifive_e51arty_interrupt_global_", - "headerInterruptEnumPrefix": "riscv_interrupts_global_", - "revision": "r0p0", - "numInterrupts": "26", - "priorityBits": "3", - "regWidth": "32", - "cores": { - "e51": { - "harts": "1", - "isa": "RV64IMAC", - "isaVersion": "2.2", - "mpu": "pmp", - "mmu": "none", - "localInterrupts": { - "machine_software": { - "description": "Machine Software Interrupt", - "value": "3" - }, - "machine_timer": { - "description": "Machine Timer Interrupt", - "value": "7" - }, - "machine_ext": { - "description": "Machine External Interrupt", - "value": "11" - }, - "0": { - "description": "Local Interrupt 0", - "value": "16" - }, - "1": { - "description": "Local Interrupt 1", - "value": "17" - }, - "2": { - "description": "Local Interrupt 2", - "value": "18" - }, - "3": { - "description": "Local Interrupt 3", - "value": "19" - }, - "4": { - "description": "Local Interrupt 4", - "value": "20" - }, - "5": { - "description": "Local Interrupt 5", - "value": "21" - }, - "6": { - "description": "Local Interrupt 6", - "value": "22" - }, - "7": { - "description": "Local Interrupt 7", - "value": "23" - }, - "8": { - "description": "Local Interrupt 8", - "value": "24" - }, - "9": { - "description": "Local Interrupt 9", - "value": "25" - }, - "10": { - "description": "Local Interrupt 10", - "value": "26" - }, - "11": { - "description": "Local Interrupt 11", - "value": "27" - }, - "12": { - "description": "Local Interrupt 12", - "value": "28" - }, - "13": { - "description": "Local Interrupt 13", - "value": "29" - }, - "14": { - "description": "Local Interrupt 14", - "value": "30" - }, - "15": { - "description": "Local Interrupt 15", - "value": "31" - } - }, - "numLocalInterrupts": "16" - } - }, - "peripherals": { - "clint": { - "description": "Core Complex Local Interruptor (CLINT) Peripheral", - "baseAddress": "0x02000000", - "size": "0x10000", - "registers": { - "msip": { - "description": "MSIP (Machine-mode Software Interrupts) Register per Hart", - "addressOffset": "0x0000", - "arraySize": "1" - }, - "mtimecmp": { - "description": "Machine Time Compare Registers per Hart", - "addressOffset": "0x4000", - "arraySize": "1", - "regWidth": "64" - }, - "mtime": { - "description": "Machine Time Register", - "addressOffset": "0xBFF8", - "access": "r", - "regWidth": "64" - } - } - }, - "plic": { - "description": "Platform-Level Interrupt Controller (PLIC) Peripheral", - "baseAddress": "0x0C000000", - "size": "0x4000000", - "registers": { - "priorities": { - "arraySize": "27", - "description": "Interrupt Priorities Registers; 0 is reserved.", - "addressOffset": "0x0000", - "fields": { - "value": { - "description": "The priority for a given global interrupt", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "pendings": { - "arraySize": "16", - "description": "Interrupt Pending Bits Registers", - "addressOffset": "0x1000", - "access": "r" - } - }, - "clusters": { - "enablestarget0": { - "description": "Hart 0 Interrupt Enable Bits", - "addressOffset": "0x00002000", - "clusters": { - "m": { - "addressOffset": "0x0000", - "description": "Hart 0 M-mode Interrupt Enable Bits", - "registers": { - "enables": { - "arraySize": "16", - "description": "Interrupt Enable Bits Registers", - "addressOffset": "0x0000" - } - } - } - } - }, - "target0": { - "description": "Hart 0 Interrupt Thresholds", - "addressOffset": "0x00200000", - "clusters": { - "m": { - "addressOffset": "0x0000", - "description": "Hart 0 M-Mode Interrupt Threshold", - "registers": { - "threshold": { - "description": "The Priority Threshold Register", - "addressOffset": "0x0000", - "fields": { - "value": { - "description": "The priority threshold value", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "claimcomplete": { - "description": "The Interrupt Claim/Completion Register", - "addressOffset": "0x0004" - } - } - } - } - } - }, - "interrupts": { - "switch0": { - "description": "SWITCH 0 Interrupt", - "value": "2" - }, - "switch1": { - "description": "SWITCH 1 Interrupt", - "value": "3" - }, - "switch2": { - "description": "SWITCH 2 Interrupt", - "value": "4" - }, - "switch3": { - "description": "SWITCH 3 Interrupt", - "value": "5" - } - } - }, - "gpio": { - "description": "General Purpose Input/Output Controller (GPIO) Peripheral", - "baseAddress": "0x20002000", - "size": "0x1000", - "registers": { - "value": { - "description": "Pin Value Register", - "addressOffset": "0x000", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Value Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "inputen": { - "description": "Pin Input Enable Register", - "addressOffset": "0x004", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Pin Input Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "outputen": { - "description": "Pin Output Enable Register", - "addressOffset": "0x008", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Pin Output Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "port": { - "description": "Output Port Value Register", - "addressOffset": "0x00C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Output Port Value Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "pue": { - "description": "Internal Pull-up Enable Register", - "addressOffset": "0x010", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Internal Pull-up Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "ds": { - "description": "Pin Drive Strength Register", - "addressOffset": "0x014", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Pin Drive Strength Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "riseie": { - "description": "Rise Interrupt Enable Register", - "addressOffset": "0x018", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Rise Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "riseip": { - "description": "Rise Interrupt Pending Register", - "addressOffset": "0x01C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Rise Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "fallie": { - "description": "Fall Interrupt Enable Register", - "addressOffset": "0x020", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Fall Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "fallip": { - "description": "Fall Interrupt Pending Register", - "addressOffset": "0x024", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Fall Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "highie": { - "description": "High Interrupt Enable Register", - "addressOffset": "0x028", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "High Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "highip": { - "description": "High Interrupt Pending Register", - "addressOffset": "0x02C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "High Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "lowie": { - "description": "Low Interrupt Enable Register", - "addressOffset": "0x030", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Low Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "lowip": { - "description": "Low Interrupt Pending Register", - "addressOffset": "0x034", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Low Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "iofen": { - "description": "HW I/O Function Enable Register", - "addressOffset": "0x038", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "HW I/O Function Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "iofsel": { - "description": "HW I/O Function Select Register", - "addressOffset": "0x03C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "HW I/O Function Select Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "outxor": { - "description": "Output XOR (invert) Register", - "addressOffset": "0x040", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Output XOR Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - } - }, - "interrupts": { - "gpio0": { - "description": "GPIO0 Interrupt", - "value": "7" - }, - "gpio1": { - "description": "GPIO1 Interrupt", - "value": "8" - }, - "gpio2": { - "description": "GPIO2 Interrupt", - "value": "9" - }, - "gpio3": { - "description": "GPIO3 Interrupt", - "value": "10" - }, - "gpio4": { - "description": "GPIO4 Interrupt", - "value": "11" - }, - "gpio5": { - "description": "GPIO5 Interrupt", - "value": "12" - }, - "gpio6": { - "description": "GPIO6 Interrupt", - "value": "13" - }, - "gpio7": { - "description": "GPIO7 Interrupt", - "value": "14" - }, - "gpio8": { - "description": "GPIO8 Interrupt", - "value": "15" - }, - "gpio9": { - "description": "GPIO9 Interrupt", - "value": "16" - }, - "gpio10": { - "description": "GPIO10 Interrupt", - "value": "17" - }, - "gpio11": { - "description": "GPIO11 Interrupt", - "value": "18" - }, - "gpio12": { - "description": "GPIO12 Interrupt", - "value": "19" - }, - "gpio13": { - "description": "GPIO13 Interrupt", - "value": "20" - }, - "gpio14": { - "description": "GPIO14 Interrupt", - "value": "21" - }, - "gpio15": { - "description": "GPIO15 Interrupt", - "value": "22" - } - } - }, - "uart0": { - "description": "Universal Asynchronous Receiver/Transmitter (UART) Peripheral", - "baseAddress": "0x20000000", - "size": "0x1000", - "resetMask": "none", - "groupName": "uart", - "registers": { - "txdata": { - "description": "Transmit Data Register", - "addressOffset": "0x000", - "fields": { - "data": { - "description": "Transmit data", - "bitOffset": "0", - "bitWidth": "8" - }, - "full": { - "description": "Transmit FIFO full", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "rxdata": { - "description": "Receive Data Register", - "addressOffset": "0x004", - "resetMask": "none", - "fields": { - "data": { - "description": "Received data", - "bitOffset": "0", - "bitWidth": "8", - "access": "r" - }, - "empty": { - "description": "Receive FIFO empty", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "txctrl": { - "description": "Transmit Control Register ", - "addressOffset": "0x008", - "fields": { - "txen": { - "description": "Transmit enable", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "nstop": { - "description": "Number of stop bits", - "bitOffset": "1", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "txcnt": { - "description": "Transmit watermark level", - "bitOffset": "16", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "rxctrl": { - "description": "Receive Control Register", - "addressOffset": "0x00C", - "fields": { - "rxen": { - "description": "Receive enable", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "rxcnt": { - "description": "Receive watermark level", - "bitOffset": "16", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ie": { - "description": "Interrupt Enable Register", - "addressOffset": "0x010", - "fields": { - "txwm": { - "description": "Transmit watermark interrupt enable", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "rxwm": { - "description": "Receive watermark interrupt enable", - "bitOffset": "1", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ip": { - "description": "Interrupt Pending Register", - "addressOffset": "0x014", - "access": "r", - "fields": { - "txwm": { - "description": "Transmit watermark interrupt pending", - "bitOffset": "0", - "bitWidth": "1" - }, - "rxwm": { - "description": "Receive watermark interrupt pending", - "bitOffset": "1", - "bitWidth": "1" - } - } - }, - "div": { - "description": "Baud Rate Divisor Register", - "addressOffset": "0x018", - "fields": { - "value": { - "description": "Baud rate divisor", - "bitOffset": "0", - "bitWidth": "16", - "resetMask": "all", - "resetValue": "0x0000FFFF" - } - } - } - }, - "interrupts": { - "uart0": { - "description": "UART0 Interrupt", - "value": "1" - } - } - }, - "spi0": { - "description": "Serial Peripheral Interface (SPI) Peripheral", - "baseAddress": "0x20004000", - "size": "0x1000", - "resetMask": "none", - "groupName": "spi", - "registers": { - "sckdiv": { - "description": "Serial clock divisor Register", - "addressOffset": "0x000", - "fields": { - "scale": { - "description": "Divisor for serial clock", - "bitOffset": "0", - "bitWidth": "12", - "resetMask": "all", - "resetValue": "0x003" - } - } - }, - "sckmode": { - "description": "Serial Clock Mode Register", - "addressOffset": "0x004", - "fields": { - "pha": { - "description": "Serial clock phase", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "pol": { - "description": "Serial clock polarity", - "bitOffset": "1", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "csid": { - "description": "Chip Select ID Register", - "addressOffset": "0x010", - "resetMask": "all", - "resetValue": "0x00000000" - }, - "csdef": { - "description": "Chip Select Default Register", - "addressOffset": "0x014", - "resetMask": "all", - "resetValue": "0x00000001" - }, - "csmode": { - "description": "Chip Select Mode Register", - "addressOffset": "0x018", - "fields": { - "mode": { - "description": "Chip select mode", - "bitOffset": "0", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0", - "enumerations": { - "csmode-enum": { - "description": "Chip Select Modes Enumeration", - "values": { - "0": { - "displayName": "auto", - "description": "Assert/de-assert CS at the beginning/end of each frame" - }, - "*": { - "displayName": "reserved" - }, - "2": { - "displayName": "hold", - "description": "Keep CS continuously asserted after the initial frame" - }, - "3": { - "displayName": "off", - "description": "Disable hardware control of the CS pin" - } - } - } - } - } - } - }, - "delay0": { - "description": "Delay Control 0 Register", - "addressOffset": "0x028", - "fields": { - "cssck": { - "description": "CS to SCK Delay", - "bitOffset": "0", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - }, - "sckcs": { - "description": "SCK to CS Delay", - "bitOffset": "16", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - } - } - }, - "delay1": { - "description": "Delay Control 1 Register", - "addressOffset": "0x02C", - "fields": { - "intercs": { - "description": "Minimum CS inactive time", - "bitOffset": "0", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - }, - "interxfr": { - "description": "Maximum interframe delay", - "bitOffset": "16", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - } - } - }, - "fmt": { - "description": "Frame Format Register", - "addressOffset": "0x040", - "fields": { - "proto": { - "description": "SPI Protocol", - "bitOffset": "0", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0", - "enumerations": { - "proto-enum": { - "description": "SPI Protocol Enumeration", - "values": { - "0": { - "displayName": "single", - "description": "DQ0 (MOSI), DQ1 (MISO)" - }, - "1": { - "displayName": "dual", - "description": "DQ0, DQ1" - }, - "2": { - "displayName": "quad", - "description": "DQ0, DQ1, DQ2, DQ3" - }, - "*": { - "displayName": "reserved" - } - } - } - } - }, - "endian": { - "description": "SPI endianness", - "bitOffset": "2", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0", - "enumerations": { - "endian-enum": { - "description": "SPI Endianness Enumeration", - "values": { - "0": { - "displayName": "msb", - "description": "Transmit most-significant bit (MSB) first" - }, - "1": { - "displayName": "lsb", - "description": "Transmit least-significant bit (LSB) first" - } - } - } - } - }, - "dir": { - "description": "SPI I/O Direction", - "bitOffset": "3", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1", - "enumerations": { - "dir-enum": { - "description": "SPI I/O Direction Enumeration", - "values": { - "0": { - "displayName": "rx", - "description": "For dual and quad protocols, the DQ pins are tri-stated. For the single protocol, the DQ0 pin is driven with the transmit data as normal." - }, - "1": { - "displayName": "tx", - "description": "The receive FIFO is not populated." - } - } - } - } - }, - "len": { - "description": "Number of bits per frame", - "bitOffset": "16", - "bitWidth": "4", - "resetMask": "all", - "resetValue": "0x8" - } - } - }, - "txdata": { - "description": "Tx FIFO Data Register", - "addressOffset": "0x048", - "fields": { - "data": { - "description": "Transmit data", - "bitOffset": "0", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x00" - }, - "full": { - "description": "FIFO full flag", - "bitOffset": "31", - "bitWidth": "1", - "access": "r" - } - } - }, - "rxdata": { - "description": "Rx FIFO Data Register", - "addressOffset": "0x04C", - "resetMask": "none", - "access": "r", - "fields": { - "data": { - "description": "Received data", - "bitOffset": "0", - "bitWidth": "8" - }, - "empty": { - "description": "FIFO empty flag", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "txmark": { - "description": "Tx FIFO Watermark Register", - "addressOffset": "0x050", - "fields": { - "value": { - "description": "Transmit watermark", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x1" - } - } - }, - "rxmark": { - "description": "Rx FIFO Watermark Register", - "addressOffset": "0x054", - "fields": { - "value": { - "description": "Receive watermark", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "fctrl": { - "description": "Flash Interface Control Register", - "addressOffset": "0x060", - "fields": { - "en": { - "description": "SPI Flash Mode Select", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1" - } - } - }, - "ffmt": { - "description": "Flash Instruction Format Register", - "addressOffset": "0x064", - "fields": { - "cmden": { - "description": "Enable sending of command", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1" - }, - "addrlen": { - "description": "Number of address bytes(0 to 4)", - "bitOffset": "1", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x3" - }, - "padcnt": { - "description": "Number of dummy cycles", - "bitOffset": "4", - "bitWidth": "4", - "resetMask": "all", - "resetValue": "0x0" - }, - "cmdproto": { - "description": "Protocol for transmitting command", - "bitOffset": "8", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0" - }, - "addrproto": { - "description": "Protocol for transmitting address and padding", - "bitOffset": "10", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0" - }, - "dataproto": { - "description": "Protocol for receiving data bytes", - "bitOffset": "12", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0" - }, - "cmdcode": { - "description": "Value of command byte", - "bitOffset": "16", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x03" - }, - "padcode": { - "description": "First 8 bits to transmit during dummy cycles", - "bitOffset": "24", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ie": { - "description": "Interrupt Enable Register", - "addressOffset": "0x070", - "fields": { - "txwm": { - "description": "Transmit watermark enable", - "bitOffset": "0", - "bitWidth": "1", - "access": "r", - "resetMask": "all", - "resetValue": "0x0" - }, - "rxwm": { - "description": "Receive watermark enable", - "bitOffset": "1", - "bitWidth": "1", - "access": "r", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ip": { - "description": "Interrupt Pending Register", - "addressOffset": "0x074", - "fields": { - "txwm": { - "description": "Transmit watermark pending", - "bitOffset": "0", - "bitWidth": "1", - "access": "r" - }, - "rxwm": { - "description": "Receive watermark pending", - "bitOffset": "1", - "bitWidth": "1", - "access": "r" - } - } - } - }, - "interrupts": { - "spi0": { - "description": "SPI0 Interrupt", - "value": "6" - } - } - }, - "pwm0": { - "description": "Pulse-Width Modulation (PWM) Peripheral", - "baseAddress": "0x20005000", - "size": "0x1000", - "resetMask": "none", - "groupName": "pwm", - "registers": { - "cfg": { - "description": "Configuration Register", - "addressOffset": "0x000", - "fields": { - "scale": { - "description": "Counter scale", - "bitOffset": "0", - "bitWidth": "4" - }, - "sticky": { - "description": "Sticky - disallow clearing pwmcmpXip bits", - "bitOffset": "8", - "bitWidth": "1" - }, - "zerocmp": { - "description": "Zero - counter resets to zero after match", - "bitOffset": "9", - "bitWidth": "1" - }, - "deglitch": { - "description": "Deglitch - latch pwmcmpXip within same cycle", - "bitOffset": "10", - "bitWidth": "1" - }, - "enalways": { - "description": "Enable always - run continuously", - "bitOffset": "12", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "enoneshot": { - "description": "enable one shot - run one cycle", - "bitOffset": "13", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "cmp0center": { - "description": "PWM0 Compare Center", - "bitOffset": "16", - "bitWidth": "1" - }, - "cmp1center": { - "description": "PWM1 Compare Center", - "bitOffset": "17", - "bitWidth": "1" - }, - "cmp2center": { - "description": "PWM2 Compare Center", - "bitOffset": "18", - "bitWidth": "1" - }, - "cmp3center": { - "description": "PWM3 Compare Center", - "bitOffset": "19", - "bitWidth": "1" - }, - "cmp0gang": { - "description": "PWM0/PWM1 Compare Gang", - "bitOffset": "24", - "bitWidth": "1" - }, - "cmp1gang": { - "description": "PWM1/PWM2 Compare Gang", - "bitOffset": "25", - "bitWidth": "1" - }, - "cmp2gang": { - "description": "PWM2/PWM3 Compare Gang", - "bitOffset": "26", - "bitWidth": "1" - }, - "cmp3gang": { - "description": "PWM3/PWM0 Compare Gang", - "bitOffset": "27", - "bitWidth": "1" - }, - "cmp0ip": { - "description": "PWM0 Interrupt Pending", - "bitOffset": "28", - "bitWidth": "1" - }, - "cmp1ip": { - "description": "PWM1 Interrupt Pending", - "bitOffset": "29", - "bitWidth": "1" - }, - "cmp2ip": { - "description": "PWM2 Interrupt Pending", - "bitOffset": "30", - "bitWidth": "1" - }, - "cmp3ip": { - "description": "PWM3 Interrupt Pending", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "count": { - "description": "Configuration Register", - "addressOffset": "0x008" - }, - "scale": { - "description": "Scale Register", - "addressOffset": "0x010", - "fields": { - "value": { - "description": "Compare value", - "bitOffset": "0", - "bitWidth": "8" - } - } - }, - "cmp": { - "arraySize": "4", - "description": "Compare Registers", - "addressOffset": "0x020", - "fields": { - "value": { - "description": "Compare value", - "bitOffset": "0", - "bitWidth": "8" - } - } - } - }, - "interrupts": { - "pwm0cmp0": { - "description": "PWM0 Compare 0 Interrupt", - "value": "23" - }, - "pwm0cmp1": { - "description": "PWM0 Compare 1 Interrupt", - "value": "24" - }, - "pwm0cmp2": { - "description": "PWM0 Compare 2 Interrupt", - "value": "25" - }, - "pwm0cmp3": { - "description": "PWM0 Compare 3 Interrupt", - "value": "26" - } - } - } - } - } - } -} \ No newline at end of file diff --git a/FreedomStudio/E51FPGA/coreplexip_welcome/sifive-coreplexip-e51-arty.cfg b/FreedomStudio/E51FPGA/coreplexip_welcome/sifive-coreplexip-e51-arty.cfg deleted file mode 100644 index 8b382dc..0000000 --- a/FreedomStudio/E51FPGA/coreplexip_welcome/sifive-coreplexip-e51-arty.cfg +++ /dev/null @@ -1,31 +0,0 @@ -# JTAG adapter setup -adapter_khz 10000 - -interface ftdi -ftdi_device_desc "Olimex OpenOCD JTAG ARM-USB-TINY-H" -ftdi_vid_pid 0x15ba 0x002a - -ftdi_layout_init 0x0808 0x0a1b -ftdi_layout_signal nSRST -oe 0x0200 -#ftdi_layout_signal nTRST -data 0x0100 -oe 0x0100 -ftdi_layout_signal LED -data 0x0800 - -set _CHIPNAME riscv -jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x20000001 - -set _TARGETNAME $_CHIPNAME.cpu - -target create $_TARGETNAME.0 riscv -chain-position $_TARGETNAME -$_TARGETNAME.0 configure -work-area-phys 0x80000000 -work-area-size 10000 -work-area-backup 1 - -# Un-comment these two flash lines if you have a SPI flash and want to write -# it. -flash bank spi0 fespi 0x40000000 0 0 0 $_TARGETNAME.0 0x20004000 -init -if {[ info exists pulse_srst]} { - ftdi_set_signal nSRST 0 - ftdi_set_signal nSRST z -} -halt -flash protect 0 64 last off -echo "Ready for Remote Connections" diff --git a/FreedomStudio/E51FPGA/dhrystone/.cproject b/FreedomStudio/E51FPGA/dhrystone/.cproject deleted file mode 100644 index f27d03f..0000000 --- a/FreedomStudio/E51FPGA/dhrystone/.cproject +++ /dev/null @@ -1,213 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/FreedomStudio/E51FPGA/dhrystone/.gitignore b/FreedomStudio/E51FPGA/dhrystone/.gitignore deleted file mode 100644 index 3df573f..0000000 --- a/FreedomStudio/E51FPGA/dhrystone/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/Debug/ diff --git a/FreedomStudio/E51FPGA/dhrystone/.project b/FreedomStudio/E51FPGA/dhrystone/.project deleted file mode 100644 index 3683b2b..0000000 --- a/FreedomStudio/E51FPGA/dhrystone/.project +++ /dev/null @@ -1,378 +0,0 @@ - - - dhrystone - - - - - - org.eclipse.cdt.managedbuilder.core.genmakebuilder - clean,full,incremental, - - - - - org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder - full,incremental, - - - - - - org.eclipse.cdt.core.cnature - org.eclipse.cdt.managedbuilder.core.managedBuildNature - org.eclipse.cdt.managedbuilder.core.ScannerConfigNature - - - - bsp - 2 - virtual:/virtual - - - dhry.h - 1 - PARENT-3-PROJECT_LOC/software/dhrystone/dhry.h - - - dhry_1.c - 1 - PARENT-3-PROJECT_LOC/software/dhrystone/dhry_1.c - - - dhry_2.c - 1 - PARENT-3-PROJECT_LOC/software/dhrystone/dhry_2.c - - - dhry_printf.c - 1 - PARENT-3-PROJECT_LOC/software/dhrystone/dhry_printf.c - - - dhry_stubs.c - 1 - PARENT-3-PROJECT_LOC/software/dhrystone/dhry_stubs.c - - - bsp/drivers - 2 - virtual:/virtual - - - bsp/env - 2 - virtual:/virtual - - - bsp/include - 2 - virtual:/virtual - - - bsp/libwrap - 2 - virtual:/virtual - - - bsp/drivers/fe300prci - 2 - virtual:/virtual - - - bsp/drivers/plic - 2 - virtual:/virtual - - - bsp/env/coreplexip-arty.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-arty.h - - - bsp/env/coreplexip-e51-arty - 2 - virtual:/virtual - - - bsp/env/encoding.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/encoding.h - - - bsp/env/entry.S - 1 - PARENT-3-PROJECT_LOC/bsp/env/entry.S - - - bsp/env/hifive1.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/hifive1.h - - - bsp/env/start.S - 1 - PARENT-3-PROJECT_LOC/bsp/env/start.S - - - bsp/include/sifive - 2 - virtual:/virtual - - - bsp/libwrap/misc - 2 - virtual:/virtual - - - bsp/libwrap/stdlib - 2 - virtual:/virtual - - - bsp/libwrap/sys - 2 - virtual:/virtual - - - bsp/drivers/fe300prci/fe300prci_driver.c - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/fe300prci/fe300prci_driver.c - - - bsp/drivers/fe300prci/fe300prci_driver.h - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/fe300prci/fe300prci_driver.h - - - bsp/drivers/plic/plic_driver.c - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/plic/plic_driver.c - - - bsp/drivers/plic/plic_driver.h - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/plic/plic_driver.h - - - bsp/env/coreplexip-e51-arty/dhrystone.lds - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e51-arty/dhrystone.lds - - - bsp/env/coreplexip-e51-arty/flash.lds - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e51-arty/flash.lds - - - bsp/env/coreplexip-e51-arty/init.c - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e51-arty/init.c - - - bsp/env/coreplexip-e51-arty/openocd.cfg - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e51-arty/openocd.cfg - - - bsp/env/coreplexip-e51-arty/platform.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e51-arty/platform.h - - - bsp/env/coreplexip-e51-arty/scratchpad.lds - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e51-arty/scratchpad.lds - - - bsp/include/sifive/bits.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/bits.h - - - bsp/include/sifive/const.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/const.h - - - bsp/include/sifive/devices - 2 - virtual:/virtual - - - bsp/include/sifive/sections.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/sections.h - - - bsp/include/sifive/smp.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/smp.h - - - bsp/libwrap/misc/write_hex.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/misc/write_hex.c - - - bsp/libwrap/stdlib/malloc.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/stdlib/malloc.c - - - bsp/libwrap/sys/_exit.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/_exit.c - - - bsp/libwrap/sys/close.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/close.c - - - bsp/libwrap/sys/execve.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/execve.c - - - bsp/libwrap/sys/fork.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/fork.c - - - bsp/libwrap/sys/fstat.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/fstat.c - - - bsp/libwrap/sys/getpid.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/getpid.c - - - bsp/libwrap/sys/isatty.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/isatty.c - - - bsp/libwrap/sys/kill.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/kill.c - - - bsp/libwrap/sys/link.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/link.c - - - bsp/libwrap/sys/lseek.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/lseek.c - - - bsp/libwrap/sys/open.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/open.c - - - bsp/libwrap/sys/openat.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/openat.c - - - bsp/libwrap/sys/puts.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/puts.c - - - bsp/libwrap/sys/read.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/read.c - - - bsp/libwrap/sys/sbrk.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/sbrk.c - - - bsp/libwrap/sys/stat.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/stat.c - - - bsp/libwrap/sys/stub.h - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/stub.h - - - bsp/libwrap/sys/times.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/times.c - - - bsp/libwrap/sys/unlink.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/unlink.c - - - bsp/libwrap/sys/wait.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/wait.c - - - bsp/libwrap/sys/weak_under_alias.h - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/weak_under_alias.h - - - bsp/libwrap/sys/write.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/write.c - - - bsp/include/sifive/devices/aon.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/aon.h - - - bsp/include/sifive/devices/clint.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/clint.h - - - bsp/include/sifive/devices/gpio.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/gpio.h - - - bsp/include/sifive/devices/otp.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/otp.h - - - bsp/include/sifive/devices/plic.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/plic.h - - - bsp/include/sifive/devices/prci.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/prci.h - - - bsp/include/sifive/devices/pwm.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/pwm.h - - - bsp/include/sifive/devices/spi.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/spi.h - - - bsp/include/sifive/devices/uart.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/uart.h - - - diff --git a/FreedomStudio/E51FPGA/dhrystone/.settings/language.settings.xml b/FreedomStudio/E51FPGA/dhrystone/.settings/language.settings.xml deleted file mode 100644 index d44fee0..0000000 --- a/FreedomStudio/E51FPGA/dhrystone/.settings/language.settings.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/FreedomStudio/E51FPGA/dhrystone/dhrystone OpenOCD.launch b/FreedomStudio/E51FPGA/dhrystone/dhrystone OpenOCD.launch deleted file mode 100644 index 199c9c6..0000000 --- a/FreedomStudio/E51FPGA/dhrystone/dhrystone OpenOCD.launch +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/FreedomStudio/E51FPGA/dhrystone/e51arty-xsvd.json b/FreedomStudio/E51FPGA/dhrystone/e51arty-xsvd.json deleted file mode 100644 index aac7a77..0000000 --- a/FreedomStudio/E51FPGA/dhrystone/e51arty-xsvd.json +++ /dev/null @@ -1,1230 +0,0 @@ -{ - "schemaVersion": "0.2.4", - "contentVersion": "0.2.0", - "headerVersion": "0.2.0", - "device": { - "e51arty": { - "displayName": "Core Complex E51 Arty", - "description": "SiFive’s E51 is a synthesised version of Core Complex E31 running on the Arty board.", - "supplier": { - "name": "sifive", - "id": "1", - "displayName": "SiFive", - "fullName": "SiFive, Inc.", - "contact": "info@sifive.com" - }, - "busWidth": "64", - "resetMask": "all", - "resetValue": "0x0000000000000000", - "access": "rw", - "headerGuardPrefix": "SIFIVE_DEVICES_ARTY_E51_", - "headerTypePrefix": "sifive_e51arty_", - "headerInterruptPrefix": "sifive_e51arty_interrupt_global_", - "headerInterruptEnumPrefix": "riscv_interrupts_global_", - "revision": "r0p0", - "numInterrupts": "26", - "priorityBits": "3", - "regWidth": "32", - "cores": { - "e51": { - "harts": "1", - "isa": "RV64IMAC", - "isaVersion": "2.2", - "mpu": "pmp", - "mmu": "none", - "localInterrupts": { - "machine_software": { - "description": "Machine Software Interrupt", - "value": "3" - }, - "machine_timer": { - "description": "Machine Timer Interrupt", - "value": "7" - }, - "machine_ext": { - "description": "Machine External Interrupt", - "value": "11" - }, - "0": { - "description": "Local Interrupt 0", - "value": "16" - }, - "1": { - "description": "Local Interrupt 1", - "value": "17" - }, - "2": { - "description": "Local Interrupt 2", - "value": "18" - }, - "3": { - "description": "Local Interrupt 3", - "value": "19" - }, - "4": { - "description": "Local Interrupt 4", - "value": "20" - }, - "5": { - "description": "Local Interrupt 5", - "value": "21" - }, - "6": { - "description": "Local Interrupt 6", - "value": "22" - }, - "7": { - "description": "Local Interrupt 7", - "value": "23" - }, - "8": { - "description": "Local Interrupt 8", - "value": "24" - }, - "9": { - "description": "Local Interrupt 9", - "value": "25" - }, - "10": { - "description": "Local Interrupt 10", - "value": "26" - }, - "11": { - "description": "Local Interrupt 11", - "value": "27" - }, - "12": { - "description": "Local Interrupt 12", - "value": "28" - }, - "13": { - "description": "Local Interrupt 13", - "value": "29" - }, - "14": { - "description": "Local Interrupt 14", - "value": "30" - }, - "15": { - "description": "Local Interrupt 15", - "value": "31" - } - }, - "numLocalInterrupts": "16" - } - }, - "peripherals": { - "clint": { - "description": "Core Complex Local Interruptor (CLINT) Peripheral", - "baseAddress": "0x02000000", - "size": "0x10000", - "registers": { - "msip": { - "description": "MSIP (Machine-mode Software Interrupts) Register per Hart", - "addressOffset": "0x0000", - "arraySize": "1" - }, - "mtimecmp": { - "description": "Machine Time Compare Registers per Hart", - "addressOffset": "0x4000", - "arraySize": "1", - "regWidth": "64" - }, - "mtime": { - "description": "Machine Time Register", - "addressOffset": "0xBFF8", - "access": "r", - "regWidth": "64" - } - } - }, - "plic": { - "description": "Platform-Level Interrupt Controller (PLIC) Peripheral", - "baseAddress": "0x0C000000", - "size": "0x4000000", - "registers": { - "priorities": { - "arraySize": "27", - "description": "Interrupt Priorities Registers; 0 is reserved.", - "addressOffset": "0x0000", - "fields": { - "value": { - "description": "The priority for a given global interrupt", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "pendings": { - "arraySize": "16", - "description": "Interrupt Pending Bits Registers", - "addressOffset": "0x1000", - "access": "r" - } - }, - "clusters": { - "enablestarget0": { - "description": "Hart 0 Interrupt Enable Bits", - "addressOffset": "0x00002000", - "clusters": { - "m": { - "addressOffset": "0x0000", - "description": "Hart 0 M-mode Interrupt Enable Bits", - "registers": { - "enables": { - "arraySize": "16", - "description": "Interrupt Enable Bits Registers", - "addressOffset": "0x0000" - } - } - } - } - }, - "target0": { - "description": "Hart 0 Interrupt Thresholds", - "addressOffset": "0x00200000", - "clusters": { - "m": { - "addressOffset": "0x0000", - "description": "Hart 0 M-Mode Interrupt Threshold", - "registers": { - "threshold": { - "description": "The Priority Threshold Register", - "addressOffset": "0x0000", - "fields": { - "value": { - "description": "The priority threshold value", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "claimcomplete": { - "description": "The Interrupt Claim/Completion Register", - "addressOffset": "0x0004" - } - } - } - } - } - }, - "interrupts": { - "switch0": { - "description": "SWITCH 0 Interrupt", - "value": "2" - }, - "switch1": { - "description": "SWITCH 1 Interrupt", - "value": "3" - }, - "switch2": { - "description": "SWITCH 2 Interrupt", - "value": "4" - }, - "switch3": { - "description": "SWITCH 3 Interrupt", - "value": "5" - } - } - }, - "gpio": { - "description": "General Purpose Input/Output Controller (GPIO) Peripheral", - "baseAddress": "0x20002000", - "size": "0x1000", - "registers": { - "value": { - "description": "Pin Value Register", - "addressOffset": "0x000", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Value Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "inputen": { - "description": "Pin Input Enable Register", - "addressOffset": "0x004", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Pin Input Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "outputen": { - "description": "Pin Output Enable Register", - "addressOffset": "0x008", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Pin Output Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "port": { - "description": "Output Port Value Register", - "addressOffset": "0x00C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Output Port Value Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "pue": { - "description": "Internal Pull-up Enable Register", - "addressOffset": "0x010", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Internal Pull-up Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "ds": { - "description": "Pin Drive Strength Register", - "addressOffset": "0x014", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Pin Drive Strength Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "riseie": { - "description": "Rise Interrupt Enable Register", - "addressOffset": "0x018", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Rise Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "riseip": { - "description": "Rise Interrupt Pending Register", - "addressOffset": "0x01C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Rise Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "fallie": { - "description": "Fall Interrupt Enable Register", - "addressOffset": "0x020", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Fall Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "fallip": { - "description": "Fall Interrupt Pending Register", - "addressOffset": "0x024", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Fall Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "highie": { - "description": "High Interrupt Enable Register", - "addressOffset": "0x028", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "High Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "highip": { - "description": "High Interrupt Pending Register", - "addressOffset": "0x02C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "High Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "lowie": { - "description": "Low Interrupt Enable Register", - "addressOffset": "0x030", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Low Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "lowip": { - "description": "Low Interrupt Pending Register", - "addressOffset": "0x034", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Low Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "iofen": { - "description": "HW I/O Function Enable Register", - "addressOffset": "0x038", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "HW I/O Function Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "iofsel": { - "description": "HW I/O Function Select Register", - "addressOffset": "0x03C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "HW I/O Function Select Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "outxor": { - "description": "Output XOR (invert) Register", - "addressOffset": "0x040", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Output XOR Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - } - }, - "interrupts": { - "gpio0": { - "description": "GPIO0 Interrupt", - "value": "7" - }, - "gpio1": { - "description": "GPIO1 Interrupt", - "value": "8" - }, - "gpio2": { - "description": "GPIO2 Interrupt", - "value": "9" - }, - "gpio3": { - "description": "GPIO3 Interrupt", - "value": "10" - }, - "gpio4": { - "description": "GPIO4 Interrupt", - "value": "11" - }, - "gpio5": { - "description": "GPIO5 Interrupt", - "value": "12" - }, - "gpio6": { - "description": "GPIO6 Interrupt", - "value": "13" - }, - "gpio7": { - "description": "GPIO7 Interrupt", - "value": "14" - }, - "gpio8": { - "description": "GPIO8 Interrupt", - "value": "15" - }, - "gpio9": { - "description": "GPIO9 Interrupt", - "value": "16" - }, - "gpio10": { - "description": "GPIO10 Interrupt", - "value": "17" - }, - "gpio11": { - "description": "GPIO11 Interrupt", - "value": "18" - }, - "gpio12": { - "description": "GPIO12 Interrupt", - "value": "19" - }, - "gpio13": { - "description": "GPIO13 Interrupt", - "value": "20" - }, - "gpio14": { - "description": "GPIO14 Interrupt", - "value": "21" - }, - "gpio15": { - "description": "GPIO15 Interrupt", - "value": "22" - } - } - }, - "uart0": { - "description": "Universal Asynchronous Receiver/Transmitter (UART) Peripheral", - "baseAddress": "0x20000000", - "size": "0x1000", - "resetMask": "none", - "groupName": "uart", - "registers": { - "txdata": { - "description": "Transmit Data Register", - "addressOffset": "0x000", - "fields": { - "data": { - "description": "Transmit data", - "bitOffset": "0", - "bitWidth": "8" - }, - "full": { - "description": "Transmit FIFO full", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "rxdata": { - "description": "Receive Data Register", - "addressOffset": "0x004", - "resetMask": "none", - "fields": { - "data": { - "description": "Received data", - "bitOffset": "0", - "bitWidth": "8", - "access": "r" - }, - "empty": { - "description": "Receive FIFO empty", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "txctrl": { - "description": "Transmit Control Register ", - "addressOffset": "0x008", - "fields": { - "txen": { - "description": "Transmit enable", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "nstop": { - "description": "Number of stop bits", - "bitOffset": "1", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "txcnt": { - "description": "Transmit watermark level", - "bitOffset": "16", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "rxctrl": { - "description": "Receive Control Register", - "addressOffset": "0x00C", - "fields": { - "rxen": { - "description": "Receive enable", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "rxcnt": { - "description": "Receive watermark level", - "bitOffset": "16", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ie": { - "description": "Interrupt Enable Register", - "addressOffset": "0x010", - "fields": { - "txwm": { - "description": "Transmit watermark interrupt enable", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "rxwm": { - "description": "Receive watermark interrupt enable", - "bitOffset": "1", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ip": { - "description": "Interrupt Pending Register", - "addressOffset": "0x014", - "access": "r", - "fields": { - "txwm": { - "description": "Transmit watermark interrupt pending", - "bitOffset": "0", - "bitWidth": "1" - }, - "rxwm": { - "description": "Receive watermark interrupt pending", - "bitOffset": "1", - "bitWidth": "1" - } - } - }, - "div": { - "description": "Baud Rate Divisor Register", - "addressOffset": "0x018", - "fields": { - "value": { - "description": "Baud rate divisor", - "bitOffset": "0", - "bitWidth": "16", - "resetMask": "all", - "resetValue": "0x0000FFFF" - } - } - } - }, - "interrupts": { - "uart0": { - "description": "UART0 Interrupt", - "value": "1" - } - } - }, - "spi0": { - "description": "Serial Peripheral Interface (SPI) Peripheral", - "baseAddress": "0x20004000", - "size": "0x1000", - "resetMask": "none", - "groupName": "spi", - "registers": { - "sckdiv": { - "description": "Serial clock divisor Register", - "addressOffset": "0x000", - "fields": { - "scale": { - "description": "Divisor for serial clock", - "bitOffset": "0", - "bitWidth": "12", - "resetMask": "all", - "resetValue": "0x003" - } - } - }, - "sckmode": { - "description": "Serial Clock Mode Register", - "addressOffset": "0x004", - "fields": { - "pha": { - "description": "Serial clock phase", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "pol": { - "description": "Serial clock polarity", - "bitOffset": "1", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "csid": { - "description": "Chip Select ID Register", - "addressOffset": "0x010", - "resetMask": "all", - "resetValue": "0x00000000" - }, - "csdef": { - "description": "Chip Select Default Register", - "addressOffset": "0x014", - "resetMask": "all", - "resetValue": "0x00000001" - }, - "csmode": { - "description": "Chip Select Mode Register", - "addressOffset": "0x018", - "fields": { - "mode": { - "description": "Chip select mode", - "bitOffset": "0", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0", - "enumerations": { - "csmode-enum": { - "description": "Chip Select Modes Enumeration", - "values": { - "0": { - "displayName": "auto", - "description": "Assert/de-assert CS at the beginning/end of each frame" - }, - "*": { - "displayName": "reserved" - }, - "2": { - "displayName": "hold", - "description": "Keep CS continuously asserted after the initial frame" - }, - "3": { - "displayName": "off", - "description": "Disable hardware control of the CS pin" - } - } - } - } - } - } - }, - "delay0": { - "description": "Delay Control 0 Register", - "addressOffset": "0x028", - "fields": { - "cssck": { - "description": "CS to SCK Delay", - "bitOffset": "0", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - }, - "sckcs": { - "description": "SCK to CS Delay", - "bitOffset": "16", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - } - } - }, - "delay1": { - "description": "Delay Control 1 Register", - "addressOffset": "0x02C", - "fields": { - "intercs": { - "description": "Minimum CS inactive time", - "bitOffset": "0", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - }, - "interxfr": { - "description": "Maximum interframe delay", - "bitOffset": "16", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - } - } - }, - "fmt": { - "description": "Frame Format Register", - "addressOffset": "0x040", - "fields": { - "proto": { - "description": "SPI Protocol", - "bitOffset": "0", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0", - "enumerations": { - "proto-enum": { - "description": "SPI Protocol Enumeration", - "values": { - "0": { - "displayName": "single", - "description": "DQ0 (MOSI), DQ1 (MISO)" - }, - "1": { - "displayName": "dual", - "description": "DQ0, DQ1" - }, - "2": { - "displayName": "quad", - "description": "DQ0, DQ1, DQ2, DQ3" - }, - "*": { - "displayName": "reserved" - } - } - } - } - }, - "endian": { - "description": "SPI endianness", - "bitOffset": "2", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0", - "enumerations": { - "endian-enum": { - "description": "SPI Endianness Enumeration", - "values": { - "0": { - "displayName": "msb", - "description": "Transmit most-significant bit (MSB) first" - }, - "1": { - "displayName": "lsb", - "description": "Transmit least-significant bit (LSB) first" - } - } - } - } - }, - "dir": { - "description": "SPI I/O Direction", - "bitOffset": "3", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1", - "enumerations": { - "dir-enum": { - "description": "SPI I/O Direction Enumeration", - "values": { - "0": { - "displayName": "rx", - "description": "For dual and quad protocols, the DQ pins are tri-stated. For the single protocol, the DQ0 pin is driven with the transmit data as normal." - }, - "1": { - "displayName": "tx", - "description": "The receive FIFO is not populated." - } - } - } - } - }, - "len": { - "description": "Number of bits per frame", - "bitOffset": "16", - "bitWidth": "4", - "resetMask": "all", - "resetValue": "0x8" - } - } - }, - "txdata": { - "description": "Tx FIFO Data Register", - "addressOffset": "0x048", - "fields": { - "data": { - "description": "Transmit data", - "bitOffset": "0", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x00" - }, - "full": { - "description": "FIFO full flag", - "bitOffset": "31", - "bitWidth": "1", - "access": "r" - } - } - }, - "rxdata": { - "description": "Rx FIFO Data Register", - "addressOffset": "0x04C", - "resetMask": "none", - "access": "r", - "fields": { - "data": { - "description": "Received data", - "bitOffset": "0", - "bitWidth": "8" - }, - "empty": { - "description": "FIFO empty flag", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "txmark": { - "description": "Tx FIFO Watermark Register", - "addressOffset": "0x050", - "fields": { - "value": { - "description": "Transmit watermark", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x1" - } - } - }, - "rxmark": { - "description": "Rx FIFO Watermark Register", - "addressOffset": "0x054", - "fields": { - "value": { - "description": "Receive watermark", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "fctrl": { - "description": "Flash Interface Control Register", - "addressOffset": "0x060", - "fields": { - "en": { - "description": "SPI Flash Mode Select", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1" - } - } - }, - "ffmt": { - "description": "Flash Instruction Format Register", - "addressOffset": "0x064", - "fields": { - "cmden": { - "description": "Enable sending of command", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1" - }, - "addrlen": { - "description": "Number of address bytes(0 to 4)", - "bitOffset": "1", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x3" - }, - "padcnt": { - "description": "Number of dummy cycles", - "bitOffset": "4", - "bitWidth": "4", - "resetMask": "all", - "resetValue": "0x0" - }, - "cmdproto": { - "description": "Protocol for transmitting command", - "bitOffset": "8", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0" - }, - "addrproto": { - "description": "Protocol for transmitting address and padding", - "bitOffset": "10", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0" - }, - "dataproto": { - "description": "Protocol for receiving data bytes", - "bitOffset": "12", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0" - }, - "cmdcode": { - "description": "Value of command byte", - "bitOffset": "16", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x03" - }, - "padcode": { - "description": "First 8 bits to transmit during dummy cycles", - "bitOffset": "24", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ie": { - "description": "Interrupt Enable Register", - "addressOffset": "0x070", - "fields": { - "txwm": { - "description": "Transmit watermark enable", - "bitOffset": "0", - "bitWidth": "1", - "access": "r", - "resetMask": "all", - "resetValue": "0x0" - }, - "rxwm": { - "description": "Receive watermark enable", - "bitOffset": "1", - "bitWidth": "1", - "access": "r", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ip": { - "description": "Interrupt Pending Register", - "addressOffset": "0x074", - "fields": { - "txwm": { - "description": "Transmit watermark pending", - "bitOffset": "0", - "bitWidth": "1", - "access": "r" - }, - "rxwm": { - "description": "Receive watermark pending", - "bitOffset": "1", - "bitWidth": "1", - "access": "r" - } - } - } - }, - "interrupts": { - "spi0": { - "description": "SPI0 Interrupt", - "value": "6" - } - } - }, - "pwm0": { - "description": "Pulse-Width Modulation (PWM) Peripheral", - "baseAddress": "0x20005000", - "size": "0x1000", - "resetMask": "none", - "groupName": "pwm", - "registers": { - "cfg": { - "description": "Configuration Register", - "addressOffset": "0x000", - "fields": { - "scale": { - "description": "Counter scale", - "bitOffset": "0", - "bitWidth": "4" - }, - "sticky": { - "description": "Sticky - disallow clearing pwmcmpXip bits", - "bitOffset": "8", - "bitWidth": "1" - }, - "zerocmp": { - "description": "Zero - counter resets to zero after match", - "bitOffset": "9", - "bitWidth": "1" - }, - "deglitch": { - "description": "Deglitch - latch pwmcmpXip within same cycle", - "bitOffset": "10", - "bitWidth": "1" - }, - "enalways": { - "description": "Enable always - run continuously", - "bitOffset": "12", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "enoneshot": { - "description": "enable one shot - run one cycle", - "bitOffset": "13", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "cmp0center": { - "description": "PWM0 Compare Center", - "bitOffset": "16", - "bitWidth": "1" - }, - "cmp1center": { - "description": "PWM1 Compare Center", - "bitOffset": "17", - "bitWidth": "1" - }, - "cmp2center": { - "description": "PWM2 Compare Center", - "bitOffset": "18", - "bitWidth": "1" - }, - "cmp3center": { - "description": "PWM3 Compare Center", - "bitOffset": "19", - "bitWidth": "1" - }, - "cmp0gang": { - "description": "PWM0/PWM1 Compare Gang", - "bitOffset": "24", - "bitWidth": "1" - }, - "cmp1gang": { - "description": "PWM1/PWM2 Compare Gang", - "bitOffset": "25", - "bitWidth": "1" - }, - "cmp2gang": { - "description": "PWM2/PWM3 Compare Gang", - "bitOffset": "26", - "bitWidth": "1" - }, - "cmp3gang": { - "description": "PWM3/PWM0 Compare Gang", - "bitOffset": "27", - "bitWidth": "1" - }, - "cmp0ip": { - "description": "PWM0 Interrupt Pending", - "bitOffset": "28", - "bitWidth": "1" - }, - "cmp1ip": { - "description": "PWM1 Interrupt Pending", - "bitOffset": "29", - "bitWidth": "1" - }, - "cmp2ip": { - "description": "PWM2 Interrupt Pending", - "bitOffset": "30", - "bitWidth": "1" - }, - "cmp3ip": { - "description": "PWM3 Interrupt Pending", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "count": { - "description": "Configuration Register", - "addressOffset": "0x008" - }, - "scale": { - "description": "Scale Register", - "addressOffset": "0x010", - "fields": { - "value": { - "description": "Compare value", - "bitOffset": "0", - "bitWidth": "8" - } - } - }, - "cmp": { - "arraySize": "4", - "description": "Compare Registers", - "addressOffset": "0x020", - "fields": { - "value": { - "description": "Compare value", - "bitOffset": "0", - "bitWidth": "8" - } - } - } - }, - "interrupts": { - "pwm0cmp0": { - "description": "PWM0 Compare 0 Interrupt", - "value": "23" - }, - "pwm0cmp1": { - "description": "PWM0 Compare 1 Interrupt", - "value": "24" - }, - "pwm0cmp2": { - "description": "PWM0 Compare 2 Interrupt", - "value": "25" - }, - "pwm0cmp3": { - "description": "PWM0 Compare 3 Interrupt", - "value": "26" - } - } - } - } - } - } -} \ No newline at end of file diff --git a/FreedomStudio/E51FPGA/dhrystone/sifive-coreplexip-e51-arty.cfg b/FreedomStudio/E51FPGA/dhrystone/sifive-coreplexip-e51-arty.cfg deleted file mode 100644 index 8b382dc..0000000 --- a/FreedomStudio/E51FPGA/dhrystone/sifive-coreplexip-e51-arty.cfg +++ /dev/null @@ -1,31 +0,0 @@ -# JTAG adapter setup -adapter_khz 10000 - -interface ftdi -ftdi_device_desc "Olimex OpenOCD JTAG ARM-USB-TINY-H" -ftdi_vid_pid 0x15ba 0x002a - -ftdi_layout_init 0x0808 0x0a1b -ftdi_layout_signal nSRST -oe 0x0200 -#ftdi_layout_signal nTRST -data 0x0100 -oe 0x0100 -ftdi_layout_signal LED -data 0x0800 - -set _CHIPNAME riscv -jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x20000001 - -set _TARGETNAME $_CHIPNAME.cpu - -target create $_TARGETNAME.0 riscv -chain-position $_TARGETNAME -$_TARGETNAME.0 configure -work-area-phys 0x80000000 -work-area-size 10000 -work-area-backup 1 - -# Un-comment these two flash lines if you have a SPI flash and want to write -# it. -flash bank spi0 fespi 0x40000000 0 0 0 $_TARGETNAME.0 0x20004000 -init -if {[ info exists pulse_srst]} { - ftdi_set_signal nSRST 0 - ftdi_set_signal nSRST z -} -halt -flash protect 0 64 last off -echo "Ready for Remote Connections" diff --git a/FreedomStudio/E51FPGA/global_interrupts/.cproject b/FreedomStudio/E51FPGA/global_interrupts/.cproject deleted file mode 100644 index 672c12d..0000000 --- a/FreedomStudio/E51FPGA/global_interrupts/.cproject +++ /dev/null @@ -1,210 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/FreedomStudio/E51FPGA/global_interrupts/.gitignore b/FreedomStudio/E51FPGA/global_interrupts/.gitignore deleted file mode 100644 index 3df573f..0000000 --- a/FreedomStudio/E51FPGA/global_interrupts/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/Debug/ diff --git a/FreedomStudio/E51FPGA/global_interrupts/.project b/FreedomStudio/E51FPGA/global_interrupts/.project deleted file mode 100644 index 32aca6a..0000000 --- a/FreedomStudio/E51FPGA/global_interrupts/.project +++ /dev/null @@ -1,353 +0,0 @@ - - - global_interrupts - - - - - - org.eclipse.cdt.managedbuilder.core.genmakebuilder - clean,full,incremental, - - - - - org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder - full,incremental, - - - - - - org.eclipse.cdt.core.cnature - org.eclipse.cdt.managedbuilder.core.managedBuildNature - org.eclipse.cdt.managedbuilder.core.ScannerConfigNature - - - - bsp - 2 - virtual:/virtual - - - global_interrupts.c - 1 - PARENT-3-PROJECT_LOC/software/global_interrupts/global_interrupts.c - - - bsp/drivers - 2 - virtual:/virtual - - - bsp/env - 2 - virtual:/virtual - - - bsp/include - 2 - virtual:/virtual - - - bsp/libwrap - 2 - virtual:/virtual - - - bsp/drivers/fe300prci - 2 - virtual:/virtual - - - bsp/drivers/plic - 2 - virtual:/virtual - - - bsp/env/coreplexip-arty.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-arty.h - - - bsp/env/coreplexip-e51-arty - 2 - virtual:/virtual - - - bsp/env/encoding.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/encoding.h - - - bsp/env/entry.S - 1 - PARENT-3-PROJECT_LOC/bsp/env/entry.S - - - bsp/env/hifive1.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/hifive1.h - - - bsp/env/start.S - 1 - PARENT-3-PROJECT_LOC/bsp/env/start.S - - - bsp/include/sifive - 2 - virtual:/virtual - - - bsp/libwrap/misc - 2 - virtual:/virtual - - - bsp/libwrap/stdlib - 2 - virtual:/virtual - - - bsp/libwrap/sys - 2 - virtual:/virtual - - - bsp/drivers/fe300prci/fe300prci_driver.c - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/fe300prci/fe300prci_driver.c - - - bsp/drivers/fe300prci/fe300prci_driver.h - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/fe300prci/fe300prci_driver.h - - - bsp/drivers/plic/plic_driver.c - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/plic/plic_driver.c - - - bsp/drivers/plic/plic_driver.h - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/plic/plic_driver.h - - - bsp/env/coreplexip-e51-arty/flash.lds - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e51-arty/flash.lds - - - bsp/env/coreplexip-e51-arty/init.c - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e51-arty/init.c - - - bsp/env/coreplexip-e51-arty/openocd.cfg - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e51-arty/openocd.cfg - - - bsp/env/coreplexip-e51-arty/platform.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e51-arty/platform.h - - - bsp/env/coreplexip-e51-arty/scratchpad.lds - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e51-arty/scratchpad.lds - - - bsp/include/sifive/bits.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/bits.h - - - bsp/include/sifive/const.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/const.h - - - bsp/include/sifive/devices - 2 - virtual:/virtual - - - bsp/include/sifive/sections.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/sections.h - - - bsp/include/sifive/smp.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/smp.h - - - bsp/libwrap/misc/write_hex.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/misc/write_hex.c - - - bsp/libwrap/stdlib/malloc.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/stdlib/malloc.c - - - bsp/libwrap/sys/_exit.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/_exit.c - - - bsp/libwrap/sys/close.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/close.c - - - bsp/libwrap/sys/execve.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/execve.c - - - bsp/libwrap/sys/fork.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/fork.c - - - bsp/libwrap/sys/fstat.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/fstat.c - - - bsp/libwrap/sys/getpid.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/getpid.c - - - bsp/libwrap/sys/isatty.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/isatty.c - - - bsp/libwrap/sys/kill.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/kill.c - - - bsp/libwrap/sys/link.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/link.c - - - bsp/libwrap/sys/lseek.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/lseek.c - - - bsp/libwrap/sys/open.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/open.c - - - bsp/libwrap/sys/openat.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/openat.c - - - bsp/libwrap/sys/puts.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/puts.c - - - bsp/libwrap/sys/read.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/read.c - - - bsp/libwrap/sys/sbrk.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/sbrk.c - - - bsp/libwrap/sys/stat.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/stat.c - - - bsp/libwrap/sys/stub.h - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/stub.h - - - bsp/libwrap/sys/times.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/times.c - - - bsp/libwrap/sys/unlink.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/unlink.c - - - bsp/libwrap/sys/wait.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/wait.c - - - bsp/libwrap/sys/weak_under_alias.h - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/weak_under_alias.h - - - bsp/libwrap/sys/write.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/write.c - - - bsp/include/sifive/devices/aon.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/aon.h - - - bsp/include/sifive/devices/clint.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/clint.h - - - bsp/include/sifive/devices/gpio.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/gpio.h - - - bsp/include/sifive/devices/otp.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/otp.h - - - bsp/include/sifive/devices/plic.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/plic.h - - - bsp/include/sifive/devices/prci.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/prci.h - - - bsp/include/sifive/devices/pwm.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/pwm.h - - - bsp/include/sifive/devices/spi.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/spi.h - - - bsp/include/sifive/devices/uart.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/uart.h - - - diff --git a/FreedomStudio/E51FPGA/global_interrupts/e51arty-xsvd.json b/FreedomStudio/E51FPGA/global_interrupts/e51arty-xsvd.json deleted file mode 100644 index aac7a77..0000000 --- a/FreedomStudio/E51FPGA/global_interrupts/e51arty-xsvd.json +++ /dev/null @@ -1,1230 +0,0 @@ -{ - "schemaVersion": "0.2.4", - "contentVersion": "0.2.0", - "headerVersion": "0.2.0", - "device": { - "e51arty": { - "displayName": "Core Complex E51 Arty", - "description": "SiFive’s E51 is a synthesised version of Core Complex E31 running on the Arty board.", - "supplier": { - "name": "sifive", - "id": "1", - "displayName": "SiFive", - "fullName": "SiFive, Inc.", - "contact": "info@sifive.com" - }, - "busWidth": "64", - "resetMask": "all", - "resetValue": "0x0000000000000000", - "access": "rw", - "headerGuardPrefix": "SIFIVE_DEVICES_ARTY_E51_", - "headerTypePrefix": "sifive_e51arty_", - "headerInterruptPrefix": "sifive_e51arty_interrupt_global_", - "headerInterruptEnumPrefix": "riscv_interrupts_global_", - "revision": "r0p0", - "numInterrupts": "26", - "priorityBits": "3", - "regWidth": "32", - "cores": { - "e51": { - "harts": "1", - "isa": "RV64IMAC", - "isaVersion": "2.2", - "mpu": "pmp", - "mmu": "none", - "localInterrupts": { - "machine_software": { - "description": "Machine Software Interrupt", - "value": "3" - }, - "machine_timer": { - "description": "Machine Timer Interrupt", - "value": "7" - }, - "machine_ext": { - "description": "Machine External Interrupt", - "value": "11" - }, - "0": { - "description": "Local Interrupt 0", - "value": "16" - }, - "1": { - "description": "Local Interrupt 1", - "value": "17" - }, - "2": { - "description": "Local Interrupt 2", - "value": "18" - }, - "3": { - "description": "Local Interrupt 3", - "value": "19" - }, - "4": { - "description": "Local Interrupt 4", - "value": "20" - }, - "5": { - "description": "Local Interrupt 5", - "value": "21" - }, - "6": { - "description": "Local Interrupt 6", - "value": "22" - }, - "7": { - "description": "Local Interrupt 7", - "value": "23" - }, - "8": { - "description": "Local Interrupt 8", - "value": "24" - }, - "9": { - "description": "Local Interrupt 9", - "value": "25" - }, - "10": { - "description": "Local Interrupt 10", - "value": "26" - }, - "11": { - "description": "Local Interrupt 11", - "value": "27" - }, - "12": { - "description": "Local Interrupt 12", - "value": "28" - }, - "13": { - "description": "Local Interrupt 13", - "value": "29" - }, - "14": { - "description": "Local Interrupt 14", - "value": "30" - }, - "15": { - "description": "Local Interrupt 15", - "value": "31" - } - }, - "numLocalInterrupts": "16" - } - }, - "peripherals": { - "clint": { - "description": "Core Complex Local Interruptor (CLINT) Peripheral", - "baseAddress": "0x02000000", - "size": "0x10000", - "registers": { - "msip": { - "description": "MSIP (Machine-mode Software Interrupts) Register per Hart", - "addressOffset": "0x0000", - "arraySize": "1" - }, - "mtimecmp": { - "description": "Machine Time Compare Registers per Hart", - "addressOffset": "0x4000", - "arraySize": "1", - "regWidth": "64" - }, - "mtime": { - "description": "Machine Time Register", - "addressOffset": "0xBFF8", - "access": "r", - "regWidth": "64" - } - } - }, - "plic": { - "description": "Platform-Level Interrupt Controller (PLIC) Peripheral", - "baseAddress": "0x0C000000", - "size": "0x4000000", - "registers": { - "priorities": { - "arraySize": "27", - "description": "Interrupt Priorities Registers; 0 is reserved.", - "addressOffset": "0x0000", - "fields": { - "value": { - "description": "The priority for a given global interrupt", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "pendings": { - "arraySize": "16", - "description": "Interrupt Pending Bits Registers", - "addressOffset": "0x1000", - "access": "r" - } - }, - "clusters": { - "enablestarget0": { - "description": "Hart 0 Interrupt Enable Bits", - "addressOffset": "0x00002000", - "clusters": { - "m": { - "addressOffset": "0x0000", - "description": "Hart 0 M-mode Interrupt Enable Bits", - "registers": { - "enables": { - "arraySize": "16", - "description": "Interrupt Enable Bits Registers", - "addressOffset": "0x0000" - } - } - } - } - }, - "target0": { - "description": "Hart 0 Interrupt Thresholds", - "addressOffset": "0x00200000", - "clusters": { - "m": { - "addressOffset": "0x0000", - "description": "Hart 0 M-Mode Interrupt Threshold", - "registers": { - "threshold": { - "description": "The Priority Threshold Register", - "addressOffset": "0x0000", - "fields": { - "value": { - "description": "The priority threshold value", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "claimcomplete": { - "description": "The Interrupt Claim/Completion Register", - "addressOffset": "0x0004" - } - } - } - } - } - }, - "interrupts": { - "switch0": { - "description": "SWITCH 0 Interrupt", - "value": "2" - }, - "switch1": { - "description": "SWITCH 1 Interrupt", - "value": "3" - }, - "switch2": { - "description": "SWITCH 2 Interrupt", - "value": "4" - }, - "switch3": { - "description": "SWITCH 3 Interrupt", - "value": "5" - } - } - }, - "gpio": { - "description": "General Purpose Input/Output Controller (GPIO) Peripheral", - "baseAddress": "0x20002000", - "size": "0x1000", - "registers": { - "value": { - "description": "Pin Value Register", - "addressOffset": "0x000", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Value Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "inputen": { - "description": "Pin Input Enable Register", - "addressOffset": "0x004", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Pin Input Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "outputen": { - "description": "Pin Output Enable Register", - "addressOffset": "0x008", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Pin Output Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "port": { - "description": "Output Port Value Register", - "addressOffset": "0x00C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Output Port Value Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "pue": { - "description": "Internal Pull-up Enable Register", - "addressOffset": "0x010", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Internal Pull-up Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "ds": { - "description": "Pin Drive Strength Register", - "addressOffset": "0x014", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Pin Drive Strength Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "riseie": { - "description": "Rise Interrupt Enable Register", - "addressOffset": "0x018", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Rise Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "riseip": { - "description": "Rise Interrupt Pending Register", - "addressOffset": "0x01C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Rise Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "fallie": { - "description": "Fall Interrupt Enable Register", - "addressOffset": "0x020", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Fall Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "fallip": { - "description": "Fall Interrupt Pending Register", - "addressOffset": "0x024", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Fall Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "highie": { - "description": "High Interrupt Enable Register", - "addressOffset": "0x028", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "High Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "highip": { - "description": "High Interrupt Pending Register", - "addressOffset": "0x02C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "High Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "lowie": { - "description": "Low Interrupt Enable Register", - "addressOffset": "0x030", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Low Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "lowip": { - "description": "Low Interrupt Pending Register", - "addressOffset": "0x034", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Low Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "iofen": { - "description": "HW I/O Function Enable Register", - "addressOffset": "0x038", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "HW I/O Function Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "iofsel": { - "description": "HW I/O Function Select Register", - "addressOffset": "0x03C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "HW I/O Function Select Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "outxor": { - "description": "Output XOR (invert) Register", - "addressOffset": "0x040", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Output XOR Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - } - }, - "interrupts": { - "gpio0": { - "description": "GPIO0 Interrupt", - "value": "7" - }, - "gpio1": { - "description": "GPIO1 Interrupt", - "value": "8" - }, - "gpio2": { - "description": "GPIO2 Interrupt", - "value": "9" - }, - "gpio3": { - "description": "GPIO3 Interrupt", - "value": "10" - }, - "gpio4": { - "description": "GPIO4 Interrupt", - "value": "11" - }, - "gpio5": { - "description": "GPIO5 Interrupt", - "value": "12" - }, - "gpio6": { - "description": "GPIO6 Interrupt", - "value": "13" - }, - "gpio7": { - "description": "GPIO7 Interrupt", - "value": "14" - }, - "gpio8": { - "description": "GPIO8 Interrupt", - "value": "15" - }, - "gpio9": { - "description": "GPIO9 Interrupt", - "value": "16" - }, - "gpio10": { - "description": "GPIO10 Interrupt", - "value": "17" - }, - "gpio11": { - "description": "GPIO11 Interrupt", - "value": "18" - }, - "gpio12": { - "description": "GPIO12 Interrupt", - "value": "19" - }, - "gpio13": { - "description": "GPIO13 Interrupt", - "value": "20" - }, - "gpio14": { - "description": "GPIO14 Interrupt", - "value": "21" - }, - "gpio15": { - "description": "GPIO15 Interrupt", - "value": "22" - } - } - }, - "uart0": { - "description": "Universal Asynchronous Receiver/Transmitter (UART) Peripheral", - "baseAddress": "0x20000000", - "size": "0x1000", - "resetMask": "none", - "groupName": "uart", - "registers": { - "txdata": { - "description": "Transmit Data Register", - "addressOffset": "0x000", - "fields": { - "data": { - "description": "Transmit data", - "bitOffset": "0", - "bitWidth": "8" - }, - "full": { - "description": "Transmit FIFO full", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "rxdata": { - "description": "Receive Data Register", - "addressOffset": "0x004", - "resetMask": "none", - "fields": { - "data": { - "description": "Received data", - "bitOffset": "0", - "bitWidth": "8", - "access": "r" - }, - "empty": { - "description": "Receive FIFO empty", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "txctrl": { - "description": "Transmit Control Register ", - "addressOffset": "0x008", - "fields": { - "txen": { - "description": "Transmit enable", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "nstop": { - "description": "Number of stop bits", - "bitOffset": "1", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "txcnt": { - "description": "Transmit watermark level", - "bitOffset": "16", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "rxctrl": { - "description": "Receive Control Register", - "addressOffset": "0x00C", - "fields": { - "rxen": { - "description": "Receive enable", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "rxcnt": { - "description": "Receive watermark level", - "bitOffset": "16", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ie": { - "description": "Interrupt Enable Register", - "addressOffset": "0x010", - "fields": { - "txwm": { - "description": "Transmit watermark interrupt enable", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "rxwm": { - "description": "Receive watermark interrupt enable", - "bitOffset": "1", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ip": { - "description": "Interrupt Pending Register", - "addressOffset": "0x014", - "access": "r", - "fields": { - "txwm": { - "description": "Transmit watermark interrupt pending", - "bitOffset": "0", - "bitWidth": "1" - }, - "rxwm": { - "description": "Receive watermark interrupt pending", - "bitOffset": "1", - "bitWidth": "1" - } - } - }, - "div": { - "description": "Baud Rate Divisor Register", - "addressOffset": "0x018", - "fields": { - "value": { - "description": "Baud rate divisor", - "bitOffset": "0", - "bitWidth": "16", - "resetMask": "all", - "resetValue": "0x0000FFFF" - } - } - } - }, - "interrupts": { - "uart0": { - "description": "UART0 Interrupt", - "value": "1" - } - } - }, - "spi0": { - "description": "Serial Peripheral Interface (SPI) Peripheral", - "baseAddress": "0x20004000", - "size": "0x1000", - "resetMask": "none", - "groupName": "spi", - "registers": { - "sckdiv": { - "description": "Serial clock divisor Register", - "addressOffset": "0x000", - "fields": { - "scale": { - "description": "Divisor for serial clock", - "bitOffset": "0", - "bitWidth": "12", - "resetMask": "all", - "resetValue": "0x003" - } - } - }, - "sckmode": { - "description": "Serial Clock Mode Register", - "addressOffset": "0x004", - "fields": { - "pha": { - "description": "Serial clock phase", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "pol": { - "description": "Serial clock polarity", - "bitOffset": "1", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "csid": { - "description": "Chip Select ID Register", - "addressOffset": "0x010", - "resetMask": "all", - "resetValue": "0x00000000" - }, - "csdef": { - "description": "Chip Select Default Register", - "addressOffset": "0x014", - "resetMask": "all", - "resetValue": "0x00000001" - }, - "csmode": { - "description": "Chip Select Mode Register", - "addressOffset": "0x018", - "fields": { - "mode": { - "description": "Chip select mode", - "bitOffset": "0", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0", - "enumerations": { - "csmode-enum": { - "description": "Chip Select Modes Enumeration", - "values": { - "0": { - "displayName": "auto", - "description": "Assert/de-assert CS at the beginning/end of each frame" - }, - "*": { - "displayName": "reserved" - }, - "2": { - "displayName": "hold", - "description": "Keep CS continuously asserted after the initial frame" - }, - "3": { - "displayName": "off", - "description": "Disable hardware control of the CS pin" - } - } - } - } - } - } - }, - "delay0": { - "description": "Delay Control 0 Register", - "addressOffset": "0x028", - "fields": { - "cssck": { - "description": "CS to SCK Delay", - "bitOffset": "0", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - }, - "sckcs": { - "description": "SCK to CS Delay", - "bitOffset": "16", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - } - } - }, - "delay1": { - "description": "Delay Control 1 Register", - "addressOffset": "0x02C", - "fields": { - "intercs": { - "description": "Minimum CS inactive time", - "bitOffset": "0", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - }, - "interxfr": { - "description": "Maximum interframe delay", - "bitOffset": "16", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - } - } - }, - "fmt": { - "description": "Frame Format Register", - "addressOffset": "0x040", - "fields": { - "proto": { - "description": "SPI Protocol", - "bitOffset": "0", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0", - "enumerations": { - "proto-enum": { - "description": "SPI Protocol Enumeration", - "values": { - "0": { - "displayName": "single", - "description": "DQ0 (MOSI), DQ1 (MISO)" - }, - "1": { - "displayName": "dual", - "description": "DQ0, DQ1" - }, - "2": { - "displayName": "quad", - "description": "DQ0, DQ1, DQ2, DQ3" - }, - "*": { - "displayName": "reserved" - } - } - } - } - }, - "endian": { - "description": "SPI endianness", - "bitOffset": "2", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0", - "enumerations": { - "endian-enum": { - "description": "SPI Endianness Enumeration", - "values": { - "0": { - "displayName": "msb", - "description": "Transmit most-significant bit (MSB) first" - }, - "1": { - "displayName": "lsb", - "description": "Transmit least-significant bit (LSB) first" - } - } - } - } - }, - "dir": { - "description": "SPI I/O Direction", - "bitOffset": "3", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1", - "enumerations": { - "dir-enum": { - "description": "SPI I/O Direction Enumeration", - "values": { - "0": { - "displayName": "rx", - "description": "For dual and quad protocols, the DQ pins are tri-stated. For the single protocol, the DQ0 pin is driven with the transmit data as normal." - }, - "1": { - "displayName": "tx", - "description": "The receive FIFO is not populated." - } - } - } - } - }, - "len": { - "description": "Number of bits per frame", - "bitOffset": "16", - "bitWidth": "4", - "resetMask": "all", - "resetValue": "0x8" - } - } - }, - "txdata": { - "description": "Tx FIFO Data Register", - "addressOffset": "0x048", - "fields": { - "data": { - "description": "Transmit data", - "bitOffset": "0", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x00" - }, - "full": { - "description": "FIFO full flag", - "bitOffset": "31", - "bitWidth": "1", - "access": "r" - } - } - }, - "rxdata": { - "description": "Rx FIFO Data Register", - "addressOffset": "0x04C", - "resetMask": "none", - "access": "r", - "fields": { - "data": { - "description": "Received data", - "bitOffset": "0", - "bitWidth": "8" - }, - "empty": { - "description": "FIFO empty flag", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "txmark": { - "description": "Tx FIFO Watermark Register", - "addressOffset": "0x050", - "fields": { - "value": { - "description": "Transmit watermark", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x1" - } - } - }, - "rxmark": { - "description": "Rx FIFO Watermark Register", - "addressOffset": "0x054", - "fields": { - "value": { - "description": "Receive watermark", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "fctrl": { - "description": "Flash Interface Control Register", - "addressOffset": "0x060", - "fields": { - "en": { - "description": "SPI Flash Mode Select", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1" - } - } - }, - "ffmt": { - "description": "Flash Instruction Format Register", - "addressOffset": "0x064", - "fields": { - "cmden": { - "description": "Enable sending of command", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1" - }, - "addrlen": { - "description": "Number of address bytes(0 to 4)", - "bitOffset": "1", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x3" - }, - "padcnt": { - "description": "Number of dummy cycles", - "bitOffset": "4", - "bitWidth": "4", - "resetMask": "all", - "resetValue": "0x0" - }, - "cmdproto": { - "description": "Protocol for transmitting command", - "bitOffset": "8", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0" - }, - "addrproto": { - "description": "Protocol for transmitting address and padding", - "bitOffset": "10", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0" - }, - "dataproto": { - "description": "Protocol for receiving data bytes", - "bitOffset": "12", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0" - }, - "cmdcode": { - "description": "Value of command byte", - "bitOffset": "16", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x03" - }, - "padcode": { - "description": "First 8 bits to transmit during dummy cycles", - "bitOffset": "24", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ie": { - "description": "Interrupt Enable Register", - "addressOffset": "0x070", - "fields": { - "txwm": { - "description": "Transmit watermark enable", - "bitOffset": "0", - "bitWidth": "1", - "access": "r", - "resetMask": "all", - "resetValue": "0x0" - }, - "rxwm": { - "description": "Receive watermark enable", - "bitOffset": "1", - "bitWidth": "1", - "access": "r", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ip": { - "description": "Interrupt Pending Register", - "addressOffset": "0x074", - "fields": { - "txwm": { - "description": "Transmit watermark pending", - "bitOffset": "0", - "bitWidth": "1", - "access": "r" - }, - "rxwm": { - "description": "Receive watermark pending", - "bitOffset": "1", - "bitWidth": "1", - "access": "r" - } - } - } - }, - "interrupts": { - "spi0": { - "description": "SPI0 Interrupt", - "value": "6" - } - } - }, - "pwm0": { - "description": "Pulse-Width Modulation (PWM) Peripheral", - "baseAddress": "0x20005000", - "size": "0x1000", - "resetMask": "none", - "groupName": "pwm", - "registers": { - "cfg": { - "description": "Configuration Register", - "addressOffset": "0x000", - "fields": { - "scale": { - "description": "Counter scale", - "bitOffset": "0", - "bitWidth": "4" - }, - "sticky": { - "description": "Sticky - disallow clearing pwmcmpXip bits", - "bitOffset": "8", - "bitWidth": "1" - }, - "zerocmp": { - "description": "Zero - counter resets to zero after match", - "bitOffset": "9", - "bitWidth": "1" - }, - "deglitch": { - "description": "Deglitch - latch pwmcmpXip within same cycle", - "bitOffset": "10", - "bitWidth": "1" - }, - "enalways": { - "description": "Enable always - run continuously", - "bitOffset": "12", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "enoneshot": { - "description": "enable one shot - run one cycle", - "bitOffset": "13", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "cmp0center": { - "description": "PWM0 Compare Center", - "bitOffset": "16", - "bitWidth": "1" - }, - "cmp1center": { - "description": "PWM1 Compare Center", - "bitOffset": "17", - "bitWidth": "1" - }, - "cmp2center": { - "description": "PWM2 Compare Center", - "bitOffset": "18", - "bitWidth": "1" - }, - "cmp3center": { - "description": "PWM3 Compare Center", - "bitOffset": "19", - "bitWidth": "1" - }, - "cmp0gang": { - "description": "PWM0/PWM1 Compare Gang", - "bitOffset": "24", - "bitWidth": "1" - }, - "cmp1gang": { - "description": "PWM1/PWM2 Compare Gang", - "bitOffset": "25", - "bitWidth": "1" - }, - "cmp2gang": { - "description": "PWM2/PWM3 Compare Gang", - "bitOffset": "26", - "bitWidth": "1" - }, - "cmp3gang": { - "description": "PWM3/PWM0 Compare Gang", - "bitOffset": "27", - "bitWidth": "1" - }, - "cmp0ip": { - "description": "PWM0 Interrupt Pending", - "bitOffset": "28", - "bitWidth": "1" - }, - "cmp1ip": { - "description": "PWM1 Interrupt Pending", - "bitOffset": "29", - "bitWidth": "1" - }, - "cmp2ip": { - "description": "PWM2 Interrupt Pending", - "bitOffset": "30", - "bitWidth": "1" - }, - "cmp3ip": { - "description": "PWM3 Interrupt Pending", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "count": { - "description": "Configuration Register", - "addressOffset": "0x008" - }, - "scale": { - "description": "Scale Register", - "addressOffset": "0x010", - "fields": { - "value": { - "description": "Compare value", - "bitOffset": "0", - "bitWidth": "8" - } - } - }, - "cmp": { - "arraySize": "4", - "description": "Compare Registers", - "addressOffset": "0x020", - "fields": { - "value": { - "description": "Compare value", - "bitOffset": "0", - "bitWidth": "8" - } - } - } - }, - "interrupts": { - "pwm0cmp0": { - "description": "PWM0 Compare 0 Interrupt", - "value": "23" - }, - "pwm0cmp1": { - "description": "PWM0 Compare 1 Interrupt", - "value": "24" - }, - "pwm0cmp2": { - "description": "PWM0 Compare 2 Interrupt", - "value": "25" - }, - "pwm0cmp3": { - "description": "PWM0 Compare 3 Interrupt", - "value": "26" - } - } - } - } - } - } -} \ No newline at end of file diff --git a/FreedomStudio/E51FPGA/global_interrupts/global_interrupts OpenOCD.launch b/FreedomStudio/E51FPGA/global_interrupts/global_interrupts OpenOCD.launch deleted file mode 100644 index 6a7abd3..0000000 --- a/FreedomStudio/E51FPGA/global_interrupts/global_interrupts OpenOCD.launch +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/FreedomStudio/E51FPGA/global_interrupts/sifive-coreplexip-e51-arty.cfg b/FreedomStudio/E51FPGA/global_interrupts/sifive-coreplexip-e51-arty.cfg deleted file mode 100644 index 8b382dc..0000000 --- a/FreedomStudio/E51FPGA/global_interrupts/sifive-coreplexip-e51-arty.cfg +++ /dev/null @@ -1,31 +0,0 @@ -# JTAG adapter setup -adapter_khz 10000 - -interface ftdi -ftdi_device_desc "Olimex OpenOCD JTAG ARM-USB-TINY-H" -ftdi_vid_pid 0x15ba 0x002a - -ftdi_layout_init 0x0808 0x0a1b -ftdi_layout_signal nSRST -oe 0x0200 -#ftdi_layout_signal nTRST -data 0x0100 -oe 0x0100 -ftdi_layout_signal LED -data 0x0800 - -set _CHIPNAME riscv -jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x20000001 - -set _TARGETNAME $_CHIPNAME.cpu - -target create $_TARGETNAME.0 riscv -chain-position $_TARGETNAME -$_TARGETNAME.0 configure -work-area-phys 0x80000000 -work-area-size 10000 -work-area-backup 1 - -# Un-comment these two flash lines if you have a SPI flash and want to write -# it. -flash bank spi0 fespi 0x40000000 0 0 0 $_TARGETNAME.0 0x20004000 -init -if {[ info exists pulse_srst]} { - ftdi_set_signal nSRST 0 - ftdi_set_signal nSRST z -} -halt -flash protect 0 64 last off -echo "Ready for Remote Connections" diff --git a/FreedomStudio/E51FPGA/local_interrupts/.cproject b/FreedomStudio/E51FPGA/local_interrupts/.cproject deleted file mode 100644 index 672c12d..0000000 --- a/FreedomStudio/E51FPGA/local_interrupts/.cproject +++ /dev/null @@ -1,210 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/FreedomStudio/E51FPGA/local_interrupts/.gitignore b/FreedomStudio/E51FPGA/local_interrupts/.gitignore deleted file mode 100644 index 3df573f..0000000 --- a/FreedomStudio/E51FPGA/local_interrupts/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/Debug/ diff --git a/FreedomStudio/E51FPGA/local_interrupts/.project b/FreedomStudio/E51FPGA/local_interrupts/.project deleted file mode 100644 index e70b49a..0000000 --- a/FreedomStudio/E51FPGA/local_interrupts/.project +++ /dev/null @@ -1,353 +0,0 @@ - - - local_interrupts - - - - - - org.eclipse.cdt.managedbuilder.core.genmakebuilder - clean,full,incremental, - - - - - org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder - full,incremental, - - - - - - org.eclipse.cdt.core.cnature - org.eclipse.cdt.managedbuilder.core.managedBuildNature - org.eclipse.cdt.managedbuilder.core.ScannerConfigNature - - - - bsp - 2 - virtual:/virtual - - - local_interrupts.c - 1 - PARENT-3-PROJECT_LOC/software/local_interrupts/local_interrupts.c - - - bsp/drivers - 2 - virtual:/virtual - - - bsp/env - 2 - virtual:/virtual - - - bsp/include - 2 - virtual:/virtual - - - bsp/libwrap - 2 - virtual:/virtual - - - bsp/drivers/fe300prci - 2 - virtual:/virtual - - - bsp/drivers/plic - 2 - virtual:/virtual - - - bsp/env/coreplexip-arty.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-arty.h - - - bsp/env/coreplexip-e51-arty - 2 - virtual:/virtual - - - bsp/env/encoding.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/encoding.h - - - bsp/env/entry.S - 1 - PARENT-3-PROJECT_LOC/bsp/env/entry.S - - - bsp/env/hifive1.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/hifive1.h - - - bsp/env/start.S - 1 - PARENT-3-PROJECT_LOC/bsp/env/start.S - - - bsp/include/sifive - 2 - virtual:/virtual - - - bsp/libwrap/misc - 2 - virtual:/virtual - - - bsp/libwrap/stdlib - 2 - virtual:/virtual - - - bsp/libwrap/sys - 2 - virtual:/virtual - - - bsp/drivers/fe300prci/fe300prci_driver.c - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/fe300prci/fe300prci_driver.c - - - bsp/drivers/fe300prci/fe300prci_driver.h - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/fe300prci/fe300prci_driver.h - - - bsp/drivers/plic/plic_driver.c - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/plic/plic_driver.c - - - bsp/drivers/plic/plic_driver.h - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/plic/plic_driver.h - - - bsp/env/coreplexip-e51-arty/flash.lds - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e51-arty/flash.lds - - - bsp/env/coreplexip-e51-arty/init.c - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e51-arty/init.c - - - bsp/env/coreplexip-e51-arty/openocd.cfg - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e51-arty/openocd.cfg - - - bsp/env/coreplexip-e51-arty/platform.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e51-arty/platform.h - - - bsp/env/coreplexip-e51-arty/scratchpad.lds - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e51-arty/scratchpad.lds - - - bsp/include/sifive/bits.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/bits.h - - - bsp/include/sifive/const.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/const.h - - - bsp/include/sifive/devices - 2 - virtual:/virtual - - - bsp/include/sifive/sections.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/sections.h - - - bsp/include/sifive/smp.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/smp.h - - - bsp/libwrap/misc/write_hex.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/misc/write_hex.c - - - bsp/libwrap/stdlib/malloc.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/stdlib/malloc.c - - - bsp/libwrap/sys/_exit.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/_exit.c - - - bsp/libwrap/sys/close.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/close.c - - - bsp/libwrap/sys/execve.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/execve.c - - - bsp/libwrap/sys/fork.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/fork.c - - - bsp/libwrap/sys/fstat.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/fstat.c - - - bsp/libwrap/sys/getpid.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/getpid.c - - - bsp/libwrap/sys/isatty.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/isatty.c - - - bsp/libwrap/sys/kill.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/kill.c - - - bsp/libwrap/sys/link.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/link.c - - - bsp/libwrap/sys/lseek.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/lseek.c - - - bsp/libwrap/sys/open.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/open.c - - - bsp/libwrap/sys/openat.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/openat.c - - - bsp/libwrap/sys/puts.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/puts.c - - - bsp/libwrap/sys/read.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/read.c - - - bsp/libwrap/sys/sbrk.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/sbrk.c - - - bsp/libwrap/sys/stat.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/stat.c - - - bsp/libwrap/sys/stub.h - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/stub.h - - - bsp/libwrap/sys/times.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/times.c - - - bsp/libwrap/sys/unlink.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/unlink.c - - - bsp/libwrap/sys/wait.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/wait.c - - - bsp/libwrap/sys/weak_under_alias.h - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/weak_under_alias.h - - - bsp/libwrap/sys/write.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/write.c - - - bsp/include/sifive/devices/aon.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/aon.h - - - bsp/include/sifive/devices/clint.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/clint.h - - - bsp/include/sifive/devices/gpio.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/gpio.h - - - bsp/include/sifive/devices/otp.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/otp.h - - - bsp/include/sifive/devices/plic.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/plic.h - - - bsp/include/sifive/devices/prci.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/prci.h - - - bsp/include/sifive/devices/pwm.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/pwm.h - - - bsp/include/sifive/devices/spi.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/spi.h - - - bsp/include/sifive/devices/uart.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/uart.h - - - diff --git a/FreedomStudio/E51FPGA/local_interrupts/e51arty-xsvd.json b/FreedomStudio/E51FPGA/local_interrupts/e51arty-xsvd.json deleted file mode 100644 index aac7a77..0000000 --- a/FreedomStudio/E51FPGA/local_interrupts/e51arty-xsvd.json +++ /dev/null @@ -1,1230 +0,0 @@ -{ - "schemaVersion": "0.2.4", - "contentVersion": "0.2.0", - "headerVersion": "0.2.0", - "device": { - "e51arty": { - "displayName": "Core Complex E51 Arty", - "description": "SiFive’s E51 is a synthesised version of Core Complex E31 running on the Arty board.", - "supplier": { - "name": "sifive", - "id": "1", - "displayName": "SiFive", - "fullName": "SiFive, Inc.", - "contact": "info@sifive.com" - }, - "busWidth": "64", - "resetMask": "all", - "resetValue": "0x0000000000000000", - "access": "rw", - "headerGuardPrefix": "SIFIVE_DEVICES_ARTY_E51_", - "headerTypePrefix": "sifive_e51arty_", - "headerInterruptPrefix": "sifive_e51arty_interrupt_global_", - "headerInterruptEnumPrefix": "riscv_interrupts_global_", - "revision": "r0p0", - "numInterrupts": "26", - "priorityBits": "3", - "regWidth": "32", - "cores": { - "e51": { - "harts": "1", - "isa": "RV64IMAC", - "isaVersion": "2.2", - "mpu": "pmp", - "mmu": "none", - "localInterrupts": { - "machine_software": { - "description": "Machine Software Interrupt", - "value": "3" - }, - "machine_timer": { - "description": "Machine Timer Interrupt", - "value": "7" - }, - "machine_ext": { - "description": "Machine External Interrupt", - "value": "11" - }, - "0": { - "description": "Local Interrupt 0", - "value": "16" - }, - "1": { - "description": "Local Interrupt 1", - "value": "17" - }, - "2": { - "description": "Local Interrupt 2", - "value": "18" - }, - "3": { - "description": "Local Interrupt 3", - "value": "19" - }, - "4": { - "description": "Local Interrupt 4", - "value": "20" - }, - "5": { - "description": "Local Interrupt 5", - "value": "21" - }, - "6": { - "description": "Local Interrupt 6", - "value": "22" - }, - "7": { - "description": "Local Interrupt 7", - "value": "23" - }, - "8": { - "description": "Local Interrupt 8", - "value": "24" - }, - "9": { - "description": "Local Interrupt 9", - "value": "25" - }, - "10": { - "description": "Local Interrupt 10", - "value": "26" - }, - "11": { - "description": "Local Interrupt 11", - "value": "27" - }, - "12": { - "description": "Local Interrupt 12", - "value": "28" - }, - "13": { - "description": "Local Interrupt 13", - "value": "29" - }, - "14": { - "description": "Local Interrupt 14", - "value": "30" - }, - "15": { - "description": "Local Interrupt 15", - "value": "31" - } - }, - "numLocalInterrupts": "16" - } - }, - "peripherals": { - "clint": { - "description": "Core Complex Local Interruptor (CLINT) Peripheral", - "baseAddress": "0x02000000", - "size": "0x10000", - "registers": { - "msip": { - "description": "MSIP (Machine-mode Software Interrupts) Register per Hart", - "addressOffset": "0x0000", - "arraySize": "1" - }, - "mtimecmp": { - "description": "Machine Time Compare Registers per Hart", - "addressOffset": "0x4000", - "arraySize": "1", - "regWidth": "64" - }, - "mtime": { - "description": "Machine Time Register", - "addressOffset": "0xBFF8", - "access": "r", - "regWidth": "64" - } - } - }, - "plic": { - "description": "Platform-Level Interrupt Controller (PLIC) Peripheral", - "baseAddress": "0x0C000000", - "size": "0x4000000", - "registers": { - "priorities": { - "arraySize": "27", - "description": "Interrupt Priorities Registers; 0 is reserved.", - "addressOffset": "0x0000", - "fields": { - "value": { - "description": "The priority for a given global interrupt", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "pendings": { - "arraySize": "16", - "description": "Interrupt Pending Bits Registers", - "addressOffset": "0x1000", - "access": "r" - } - }, - "clusters": { - "enablestarget0": { - "description": "Hart 0 Interrupt Enable Bits", - "addressOffset": "0x00002000", - "clusters": { - "m": { - "addressOffset": "0x0000", - "description": "Hart 0 M-mode Interrupt Enable Bits", - "registers": { - "enables": { - "arraySize": "16", - "description": "Interrupt Enable Bits Registers", - "addressOffset": "0x0000" - } - } - } - } - }, - "target0": { - "description": "Hart 0 Interrupt Thresholds", - "addressOffset": "0x00200000", - "clusters": { - "m": { - "addressOffset": "0x0000", - "description": "Hart 0 M-Mode Interrupt Threshold", - "registers": { - "threshold": { - "description": "The Priority Threshold Register", - "addressOffset": "0x0000", - "fields": { - "value": { - "description": "The priority threshold value", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "claimcomplete": { - "description": "The Interrupt Claim/Completion Register", - "addressOffset": "0x0004" - } - } - } - } - } - }, - "interrupts": { - "switch0": { - "description": "SWITCH 0 Interrupt", - "value": "2" - }, - "switch1": { - "description": "SWITCH 1 Interrupt", - "value": "3" - }, - "switch2": { - "description": "SWITCH 2 Interrupt", - "value": "4" - }, - "switch3": { - "description": "SWITCH 3 Interrupt", - "value": "5" - } - } - }, - "gpio": { - "description": "General Purpose Input/Output Controller (GPIO) Peripheral", - "baseAddress": "0x20002000", - "size": "0x1000", - "registers": { - "value": { - "description": "Pin Value Register", - "addressOffset": "0x000", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Value Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "inputen": { - "description": "Pin Input Enable Register", - "addressOffset": "0x004", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Pin Input Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "outputen": { - "description": "Pin Output Enable Register", - "addressOffset": "0x008", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Pin Output Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "port": { - "description": "Output Port Value Register", - "addressOffset": "0x00C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Output Port Value Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "pue": { - "description": "Internal Pull-up Enable Register", - "addressOffset": "0x010", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Internal Pull-up Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "ds": { - "description": "Pin Drive Strength Register", - "addressOffset": "0x014", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Pin Drive Strength Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "riseie": { - "description": "Rise Interrupt Enable Register", - "addressOffset": "0x018", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Rise Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "riseip": { - "description": "Rise Interrupt Pending Register", - "addressOffset": "0x01C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Rise Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "fallie": { - "description": "Fall Interrupt Enable Register", - "addressOffset": "0x020", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Fall Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "fallip": { - "description": "Fall Interrupt Pending Register", - "addressOffset": "0x024", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Fall Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "highie": { - "description": "High Interrupt Enable Register", - "addressOffset": "0x028", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "High Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "highip": { - "description": "High Interrupt Pending Register", - "addressOffset": "0x02C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "High Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "lowie": { - "description": "Low Interrupt Enable Register", - "addressOffset": "0x030", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Low Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "lowip": { - "description": "Low Interrupt Pending Register", - "addressOffset": "0x034", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Low Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "iofen": { - "description": "HW I/O Function Enable Register", - "addressOffset": "0x038", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "HW I/O Function Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "iofsel": { - "description": "HW I/O Function Select Register", - "addressOffset": "0x03C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "HW I/O Function Select Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "outxor": { - "description": "Output XOR (invert) Register", - "addressOffset": "0x040", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Output XOR Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - } - }, - "interrupts": { - "gpio0": { - "description": "GPIO0 Interrupt", - "value": "7" - }, - "gpio1": { - "description": "GPIO1 Interrupt", - "value": "8" - }, - "gpio2": { - "description": "GPIO2 Interrupt", - "value": "9" - }, - "gpio3": { - "description": "GPIO3 Interrupt", - "value": "10" - }, - "gpio4": { - "description": "GPIO4 Interrupt", - "value": "11" - }, - "gpio5": { - "description": "GPIO5 Interrupt", - "value": "12" - }, - "gpio6": { - "description": "GPIO6 Interrupt", - "value": "13" - }, - "gpio7": { - "description": "GPIO7 Interrupt", - "value": "14" - }, - "gpio8": { - "description": "GPIO8 Interrupt", - "value": "15" - }, - "gpio9": { - "description": "GPIO9 Interrupt", - "value": "16" - }, - "gpio10": { - "description": "GPIO10 Interrupt", - "value": "17" - }, - "gpio11": { - "description": "GPIO11 Interrupt", - "value": "18" - }, - "gpio12": { - "description": "GPIO12 Interrupt", - "value": "19" - }, - "gpio13": { - "description": "GPIO13 Interrupt", - "value": "20" - }, - "gpio14": { - "description": "GPIO14 Interrupt", - "value": "21" - }, - "gpio15": { - "description": "GPIO15 Interrupt", - "value": "22" - } - } - }, - "uart0": { - "description": "Universal Asynchronous Receiver/Transmitter (UART) Peripheral", - "baseAddress": "0x20000000", - "size": "0x1000", - "resetMask": "none", - "groupName": "uart", - "registers": { - "txdata": { - "description": "Transmit Data Register", - "addressOffset": "0x000", - "fields": { - "data": { - "description": "Transmit data", - "bitOffset": "0", - "bitWidth": "8" - }, - "full": { - "description": "Transmit FIFO full", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "rxdata": { - "description": "Receive Data Register", - "addressOffset": "0x004", - "resetMask": "none", - "fields": { - "data": { - "description": "Received data", - "bitOffset": "0", - "bitWidth": "8", - "access": "r" - }, - "empty": { - "description": "Receive FIFO empty", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "txctrl": { - "description": "Transmit Control Register ", - "addressOffset": "0x008", - "fields": { - "txen": { - "description": "Transmit enable", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "nstop": { - "description": "Number of stop bits", - "bitOffset": "1", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "txcnt": { - "description": "Transmit watermark level", - "bitOffset": "16", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "rxctrl": { - "description": "Receive Control Register", - "addressOffset": "0x00C", - "fields": { - "rxen": { - "description": "Receive enable", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "rxcnt": { - "description": "Receive watermark level", - "bitOffset": "16", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ie": { - "description": "Interrupt Enable Register", - "addressOffset": "0x010", - "fields": { - "txwm": { - "description": "Transmit watermark interrupt enable", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "rxwm": { - "description": "Receive watermark interrupt enable", - "bitOffset": "1", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ip": { - "description": "Interrupt Pending Register", - "addressOffset": "0x014", - "access": "r", - "fields": { - "txwm": { - "description": "Transmit watermark interrupt pending", - "bitOffset": "0", - "bitWidth": "1" - }, - "rxwm": { - "description": "Receive watermark interrupt pending", - "bitOffset": "1", - "bitWidth": "1" - } - } - }, - "div": { - "description": "Baud Rate Divisor Register", - "addressOffset": "0x018", - "fields": { - "value": { - "description": "Baud rate divisor", - "bitOffset": "0", - "bitWidth": "16", - "resetMask": "all", - "resetValue": "0x0000FFFF" - } - } - } - }, - "interrupts": { - "uart0": { - "description": "UART0 Interrupt", - "value": "1" - } - } - }, - "spi0": { - "description": "Serial Peripheral Interface (SPI) Peripheral", - "baseAddress": "0x20004000", - "size": "0x1000", - "resetMask": "none", - "groupName": "spi", - "registers": { - "sckdiv": { - "description": "Serial clock divisor Register", - "addressOffset": "0x000", - "fields": { - "scale": { - "description": "Divisor for serial clock", - "bitOffset": "0", - "bitWidth": "12", - "resetMask": "all", - "resetValue": "0x003" - } - } - }, - "sckmode": { - "description": "Serial Clock Mode Register", - "addressOffset": "0x004", - "fields": { - "pha": { - "description": "Serial clock phase", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "pol": { - "description": "Serial clock polarity", - "bitOffset": "1", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "csid": { - "description": "Chip Select ID Register", - "addressOffset": "0x010", - "resetMask": "all", - "resetValue": "0x00000000" - }, - "csdef": { - "description": "Chip Select Default Register", - "addressOffset": "0x014", - "resetMask": "all", - "resetValue": "0x00000001" - }, - "csmode": { - "description": "Chip Select Mode Register", - "addressOffset": "0x018", - "fields": { - "mode": { - "description": "Chip select mode", - "bitOffset": "0", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0", - "enumerations": { - "csmode-enum": { - "description": "Chip Select Modes Enumeration", - "values": { - "0": { - "displayName": "auto", - "description": "Assert/de-assert CS at the beginning/end of each frame" - }, - "*": { - "displayName": "reserved" - }, - "2": { - "displayName": "hold", - "description": "Keep CS continuously asserted after the initial frame" - }, - "3": { - "displayName": "off", - "description": "Disable hardware control of the CS pin" - } - } - } - } - } - } - }, - "delay0": { - "description": "Delay Control 0 Register", - "addressOffset": "0x028", - "fields": { - "cssck": { - "description": "CS to SCK Delay", - "bitOffset": "0", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - }, - "sckcs": { - "description": "SCK to CS Delay", - "bitOffset": "16", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - } - } - }, - "delay1": { - "description": "Delay Control 1 Register", - "addressOffset": "0x02C", - "fields": { - "intercs": { - "description": "Minimum CS inactive time", - "bitOffset": "0", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - }, - "interxfr": { - "description": "Maximum interframe delay", - "bitOffset": "16", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - } - } - }, - "fmt": { - "description": "Frame Format Register", - "addressOffset": "0x040", - "fields": { - "proto": { - "description": "SPI Protocol", - "bitOffset": "0", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0", - "enumerations": { - "proto-enum": { - "description": "SPI Protocol Enumeration", - "values": { - "0": { - "displayName": "single", - "description": "DQ0 (MOSI), DQ1 (MISO)" - }, - "1": { - "displayName": "dual", - "description": "DQ0, DQ1" - }, - "2": { - "displayName": "quad", - "description": "DQ0, DQ1, DQ2, DQ3" - }, - "*": { - "displayName": "reserved" - } - } - } - } - }, - "endian": { - "description": "SPI endianness", - "bitOffset": "2", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0", - "enumerations": { - "endian-enum": { - "description": "SPI Endianness Enumeration", - "values": { - "0": { - "displayName": "msb", - "description": "Transmit most-significant bit (MSB) first" - }, - "1": { - "displayName": "lsb", - "description": "Transmit least-significant bit (LSB) first" - } - } - } - } - }, - "dir": { - "description": "SPI I/O Direction", - "bitOffset": "3", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1", - "enumerations": { - "dir-enum": { - "description": "SPI I/O Direction Enumeration", - "values": { - "0": { - "displayName": "rx", - "description": "For dual and quad protocols, the DQ pins are tri-stated. For the single protocol, the DQ0 pin is driven with the transmit data as normal." - }, - "1": { - "displayName": "tx", - "description": "The receive FIFO is not populated." - } - } - } - } - }, - "len": { - "description": "Number of bits per frame", - "bitOffset": "16", - "bitWidth": "4", - "resetMask": "all", - "resetValue": "0x8" - } - } - }, - "txdata": { - "description": "Tx FIFO Data Register", - "addressOffset": "0x048", - "fields": { - "data": { - "description": "Transmit data", - "bitOffset": "0", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x00" - }, - "full": { - "description": "FIFO full flag", - "bitOffset": "31", - "bitWidth": "1", - "access": "r" - } - } - }, - "rxdata": { - "description": "Rx FIFO Data Register", - "addressOffset": "0x04C", - "resetMask": "none", - "access": "r", - "fields": { - "data": { - "description": "Received data", - "bitOffset": "0", - "bitWidth": "8" - }, - "empty": { - "description": "FIFO empty flag", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "txmark": { - "description": "Tx FIFO Watermark Register", - "addressOffset": "0x050", - "fields": { - "value": { - "description": "Transmit watermark", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x1" - } - } - }, - "rxmark": { - "description": "Rx FIFO Watermark Register", - "addressOffset": "0x054", - "fields": { - "value": { - "description": "Receive watermark", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "fctrl": { - "description": "Flash Interface Control Register", - "addressOffset": "0x060", - "fields": { - "en": { - "description": "SPI Flash Mode Select", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1" - } - } - }, - "ffmt": { - "description": "Flash Instruction Format Register", - "addressOffset": "0x064", - "fields": { - "cmden": { - "description": "Enable sending of command", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1" - }, - "addrlen": { - "description": "Number of address bytes(0 to 4)", - "bitOffset": "1", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x3" - }, - "padcnt": { - "description": "Number of dummy cycles", - "bitOffset": "4", - "bitWidth": "4", - "resetMask": "all", - "resetValue": "0x0" - }, - "cmdproto": { - "description": "Protocol for transmitting command", - "bitOffset": "8", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0" - }, - "addrproto": { - "description": "Protocol for transmitting address and padding", - "bitOffset": "10", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0" - }, - "dataproto": { - "description": "Protocol for receiving data bytes", - "bitOffset": "12", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0" - }, - "cmdcode": { - "description": "Value of command byte", - "bitOffset": "16", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x03" - }, - "padcode": { - "description": "First 8 bits to transmit during dummy cycles", - "bitOffset": "24", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ie": { - "description": "Interrupt Enable Register", - "addressOffset": "0x070", - "fields": { - "txwm": { - "description": "Transmit watermark enable", - "bitOffset": "0", - "bitWidth": "1", - "access": "r", - "resetMask": "all", - "resetValue": "0x0" - }, - "rxwm": { - "description": "Receive watermark enable", - "bitOffset": "1", - "bitWidth": "1", - "access": "r", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ip": { - "description": "Interrupt Pending Register", - "addressOffset": "0x074", - "fields": { - "txwm": { - "description": "Transmit watermark pending", - "bitOffset": "0", - "bitWidth": "1", - "access": "r" - }, - "rxwm": { - "description": "Receive watermark pending", - "bitOffset": "1", - "bitWidth": "1", - "access": "r" - } - } - } - }, - "interrupts": { - "spi0": { - "description": "SPI0 Interrupt", - "value": "6" - } - } - }, - "pwm0": { - "description": "Pulse-Width Modulation (PWM) Peripheral", - "baseAddress": "0x20005000", - "size": "0x1000", - "resetMask": "none", - "groupName": "pwm", - "registers": { - "cfg": { - "description": "Configuration Register", - "addressOffset": "0x000", - "fields": { - "scale": { - "description": "Counter scale", - "bitOffset": "0", - "bitWidth": "4" - }, - "sticky": { - "description": "Sticky - disallow clearing pwmcmpXip bits", - "bitOffset": "8", - "bitWidth": "1" - }, - "zerocmp": { - "description": "Zero - counter resets to zero after match", - "bitOffset": "9", - "bitWidth": "1" - }, - "deglitch": { - "description": "Deglitch - latch pwmcmpXip within same cycle", - "bitOffset": "10", - "bitWidth": "1" - }, - "enalways": { - "description": "Enable always - run continuously", - "bitOffset": "12", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "enoneshot": { - "description": "enable one shot - run one cycle", - "bitOffset": "13", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "cmp0center": { - "description": "PWM0 Compare Center", - "bitOffset": "16", - "bitWidth": "1" - }, - "cmp1center": { - "description": "PWM1 Compare Center", - "bitOffset": "17", - "bitWidth": "1" - }, - "cmp2center": { - "description": "PWM2 Compare Center", - "bitOffset": "18", - "bitWidth": "1" - }, - "cmp3center": { - "description": "PWM3 Compare Center", - "bitOffset": "19", - "bitWidth": "1" - }, - "cmp0gang": { - "description": "PWM0/PWM1 Compare Gang", - "bitOffset": "24", - "bitWidth": "1" - }, - "cmp1gang": { - "description": "PWM1/PWM2 Compare Gang", - "bitOffset": "25", - "bitWidth": "1" - }, - "cmp2gang": { - "description": "PWM2/PWM3 Compare Gang", - "bitOffset": "26", - "bitWidth": "1" - }, - "cmp3gang": { - "description": "PWM3/PWM0 Compare Gang", - "bitOffset": "27", - "bitWidth": "1" - }, - "cmp0ip": { - "description": "PWM0 Interrupt Pending", - "bitOffset": "28", - "bitWidth": "1" - }, - "cmp1ip": { - "description": "PWM1 Interrupt Pending", - "bitOffset": "29", - "bitWidth": "1" - }, - "cmp2ip": { - "description": "PWM2 Interrupt Pending", - "bitOffset": "30", - "bitWidth": "1" - }, - "cmp3ip": { - "description": "PWM3 Interrupt Pending", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "count": { - "description": "Configuration Register", - "addressOffset": "0x008" - }, - "scale": { - "description": "Scale Register", - "addressOffset": "0x010", - "fields": { - "value": { - "description": "Compare value", - "bitOffset": "0", - "bitWidth": "8" - } - } - }, - "cmp": { - "arraySize": "4", - "description": "Compare Registers", - "addressOffset": "0x020", - "fields": { - "value": { - "description": "Compare value", - "bitOffset": "0", - "bitWidth": "8" - } - } - } - }, - "interrupts": { - "pwm0cmp0": { - "description": "PWM0 Compare 0 Interrupt", - "value": "23" - }, - "pwm0cmp1": { - "description": "PWM0 Compare 1 Interrupt", - "value": "24" - }, - "pwm0cmp2": { - "description": "PWM0 Compare 2 Interrupt", - "value": "25" - }, - "pwm0cmp3": { - "description": "PWM0 Compare 3 Interrupt", - "value": "26" - } - } - } - } - } - } -} \ No newline at end of file diff --git a/FreedomStudio/E51FPGA/local_interrupts/local_interrupts OpenOCD.launch b/FreedomStudio/E51FPGA/local_interrupts/local_interrupts OpenOCD.launch deleted file mode 100644 index e03495c..0000000 --- a/FreedomStudio/E51FPGA/local_interrupts/local_interrupts OpenOCD.launch +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/FreedomStudio/E51FPGA/local_interrupts/sifive-coreplexip-e51-arty.cfg b/FreedomStudio/E51FPGA/local_interrupts/sifive-coreplexip-e51-arty.cfg deleted file mode 100644 index 8b382dc..0000000 --- a/FreedomStudio/E51FPGA/local_interrupts/sifive-coreplexip-e51-arty.cfg +++ /dev/null @@ -1,31 +0,0 @@ -# JTAG adapter setup -adapter_khz 10000 - -interface ftdi -ftdi_device_desc "Olimex OpenOCD JTAG ARM-USB-TINY-H" -ftdi_vid_pid 0x15ba 0x002a - -ftdi_layout_init 0x0808 0x0a1b -ftdi_layout_signal nSRST -oe 0x0200 -#ftdi_layout_signal nTRST -data 0x0100 -oe 0x0100 -ftdi_layout_signal LED -data 0x0800 - -set _CHIPNAME riscv -jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x20000001 - -set _TARGETNAME $_CHIPNAME.cpu - -target create $_TARGETNAME.0 riscv -chain-position $_TARGETNAME -$_TARGETNAME.0 configure -work-area-phys 0x80000000 -work-area-size 10000 -work-area-backup 1 - -# Un-comment these two flash lines if you have a SPI flash and want to write -# it. -flash bank spi0 fespi 0x40000000 0 0 0 $_TARGETNAME.0 0x20004000 -init -if {[ info exists pulse_srst]} { - ftdi_set_signal nSRST 0 - ftdi_set_signal nSRST z -} -halt -flash protect 0 64 last off -echo "Ready for Remote Connections" diff --git a/FreedomStudio/E51FPGA/performance_counters/.cproject b/FreedomStudio/E51FPGA/performance_counters/.cproject deleted file mode 100644 index 6a5801a..0000000 --- a/FreedomStudio/E51FPGA/performance_counters/.cproject +++ /dev/null @@ -1,208 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/FreedomStudio/E51FPGA/performance_counters/.gitignore b/FreedomStudio/E51FPGA/performance_counters/.gitignore deleted file mode 100644 index 3df573f..0000000 --- a/FreedomStudio/E51FPGA/performance_counters/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/Debug/ diff --git a/FreedomStudio/E51FPGA/performance_counters/.project b/FreedomStudio/E51FPGA/performance_counters/.project deleted file mode 100644 index ab25a9b..0000000 --- a/FreedomStudio/E51FPGA/performance_counters/.project +++ /dev/null @@ -1,353 +0,0 @@ - - - performance_counters - - - - - - org.eclipse.cdt.managedbuilder.core.genmakebuilder - clean,full,incremental, - - - - - org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder - full,incremental, - - - - - - org.eclipse.cdt.core.cnature - org.eclipse.cdt.managedbuilder.core.managedBuildNature - org.eclipse.cdt.managedbuilder.core.ScannerConfigNature - - - - bsp - 2 - virtual:/virtual - - - performance_counters.c - 1 - PARENT-3-PROJECT_LOC/software/performance_counters/performance_counters.c - - - bsp/drivers - 2 - virtual:/virtual - - - bsp/env - 2 - virtual:/virtual - - - bsp/include - 2 - virtual:/virtual - - - bsp/libwrap - 2 - virtual:/virtual - - - bsp/drivers/fe300prci - 2 - virtual:/virtual - - - bsp/drivers/plic - 2 - virtual:/virtual - - - bsp/env/coreplexip-arty.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-arty.h - - - bsp/env/coreplexip-e51-arty - 2 - virtual:/virtual - - - bsp/env/encoding.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/encoding.h - - - bsp/env/entry.S - 1 - PARENT-3-PROJECT_LOC/bsp/env/entry.S - - - bsp/env/hifive1.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/hifive1.h - - - bsp/env/start.S - 1 - PARENT-3-PROJECT_LOC/bsp/env/start.S - - - bsp/include/sifive - 2 - virtual:/virtual - - - bsp/libwrap/misc - 2 - virtual:/virtual - - - bsp/libwrap/stdlib - 2 - virtual:/virtual - - - bsp/libwrap/sys - 2 - virtual:/virtual - - - bsp/drivers/fe300prci/fe300prci_driver.c - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/fe300prci/fe300prci_driver.c - - - bsp/drivers/fe300prci/fe300prci_driver.h - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/fe300prci/fe300prci_driver.h - - - bsp/drivers/plic/plic_driver.c - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/plic/plic_driver.c - - - bsp/drivers/plic/plic_driver.h - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/plic/plic_driver.h - - - bsp/env/coreplexip-e51-arty/flash.lds - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e51-arty/flash.lds - - - bsp/env/coreplexip-e51-arty/init.c - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e51-arty/init.c - - - bsp/env/coreplexip-e51-arty/openocd.cfg - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e51-arty/openocd.cfg - - - bsp/env/coreplexip-e51-arty/platform.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e51-arty/platform.h - - - bsp/env/coreplexip-e51-arty/scratchpad.lds - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e51-arty/scratchpad.lds - - - bsp/include/sifive/bits.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/bits.h - - - bsp/include/sifive/const.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/const.h - - - bsp/include/sifive/devices - 2 - virtual:/virtual - - - bsp/include/sifive/sections.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/sections.h - - - bsp/include/sifive/smp.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/smp.h - - - bsp/libwrap/misc/write_hex.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/misc/write_hex.c - - - bsp/libwrap/stdlib/malloc.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/stdlib/malloc.c - - - bsp/libwrap/sys/_exit.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/_exit.c - - - bsp/libwrap/sys/close.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/close.c - - - bsp/libwrap/sys/execve.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/execve.c - - - bsp/libwrap/sys/fork.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/fork.c - - - bsp/libwrap/sys/fstat.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/fstat.c - - - bsp/libwrap/sys/getpid.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/getpid.c - - - bsp/libwrap/sys/isatty.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/isatty.c - - - bsp/libwrap/sys/kill.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/kill.c - - - bsp/libwrap/sys/link.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/link.c - - - bsp/libwrap/sys/lseek.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/lseek.c - - - bsp/libwrap/sys/open.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/open.c - - - bsp/libwrap/sys/openat.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/openat.c - - - bsp/libwrap/sys/puts.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/puts.c - - - bsp/libwrap/sys/read.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/read.c - - - bsp/libwrap/sys/sbrk.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/sbrk.c - - - bsp/libwrap/sys/stat.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/stat.c - - - bsp/libwrap/sys/stub.h - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/stub.h - - - bsp/libwrap/sys/times.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/times.c - - - bsp/libwrap/sys/unlink.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/unlink.c - - - bsp/libwrap/sys/wait.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/wait.c - - - bsp/libwrap/sys/weak_under_alias.h - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/weak_under_alias.h - - - bsp/libwrap/sys/write.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/write.c - - - bsp/include/sifive/devices/aon.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/aon.h - - - bsp/include/sifive/devices/clint.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/clint.h - - - bsp/include/sifive/devices/gpio.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/gpio.h - - - bsp/include/sifive/devices/otp.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/otp.h - - - bsp/include/sifive/devices/plic.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/plic.h - - - bsp/include/sifive/devices/prci.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/prci.h - - - bsp/include/sifive/devices/pwm.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/pwm.h - - - bsp/include/sifive/devices/spi.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/spi.h - - - bsp/include/sifive/devices/uart.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/uart.h - - - diff --git a/FreedomStudio/E51FPGA/performance_counters/e51arty-xsvd.json b/FreedomStudio/E51FPGA/performance_counters/e51arty-xsvd.json deleted file mode 100644 index aac7a77..0000000 --- a/FreedomStudio/E51FPGA/performance_counters/e51arty-xsvd.json +++ /dev/null @@ -1,1230 +0,0 @@ -{ - "schemaVersion": "0.2.4", - "contentVersion": "0.2.0", - "headerVersion": "0.2.0", - "device": { - "e51arty": { - "displayName": "Core Complex E51 Arty", - "description": "SiFive’s E51 is a synthesised version of Core Complex E31 running on the Arty board.", - "supplier": { - "name": "sifive", - "id": "1", - "displayName": "SiFive", - "fullName": "SiFive, Inc.", - "contact": "info@sifive.com" - }, - "busWidth": "64", - "resetMask": "all", - "resetValue": "0x0000000000000000", - "access": "rw", - "headerGuardPrefix": "SIFIVE_DEVICES_ARTY_E51_", - "headerTypePrefix": "sifive_e51arty_", - "headerInterruptPrefix": "sifive_e51arty_interrupt_global_", - "headerInterruptEnumPrefix": "riscv_interrupts_global_", - "revision": "r0p0", - "numInterrupts": "26", - "priorityBits": "3", - "regWidth": "32", - "cores": { - "e51": { - "harts": "1", - "isa": "RV64IMAC", - "isaVersion": "2.2", - "mpu": "pmp", - "mmu": "none", - "localInterrupts": { - "machine_software": { - "description": "Machine Software Interrupt", - "value": "3" - }, - "machine_timer": { - "description": "Machine Timer Interrupt", - "value": "7" - }, - "machine_ext": { - "description": "Machine External Interrupt", - "value": "11" - }, - "0": { - "description": "Local Interrupt 0", - "value": "16" - }, - "1": { - "description": "Local Interrupt 1", - "value": "17" - }, - "2": { - "description": "Local Interrupt 2", - "value": "18" - }, - "3": { - "description": "Local Interrupt 3", - "value": "19" - }, - "4": { - "description": "Local Interrupt 4", - "value": "20" - }, - "5": { - "description": "Local Interrupt 5", - "value": "21" - }, - "6": { - "description": "Local Interrupt 6", - "value": "22" - }, - "7": { - "description": "Local Interrupt 7", - "value": "23" - }, - "8": { - "description": "Local Interrupt 8", - "value": "24" - }, - "9": { - "description": "Local Interrupt 9", - "value": "25" - }, - "10": { - "description": "Local Interrupt 10", - "value": "26" - }, - "11": { - "description": "Local Interrupt 11", - "value": "27" - }, - "12": { - "description": "Local Interrupt 12", - "value": "28" - }, - "13": { - "description": "Local Interrupt 13", - "value": "29" - }, - "14": { - "description": "Local Interrupt 14", - "value": "30" - }, - "15": { - "description": "Local Interrupt 15", - "value": "31" - } - }, - "numLocalInterrupts": "16" - } - }, - "peripherals": { - "clint": { - "description": "Core Complex Local Interruptor (CLINT) Peripheral", - "baseAddress": "0x02000000", - "size": "0x10000", - "registers": { - "msip": { - "description": "MSIP (Machine-mode Software Interrupts) Register per Hart", - "addressOffset": "0x0000", - "arraySize": "1" - }, - "mtimecmp": { - "description": "Machine Time Compare Registers per Hart", - "addressOffset": "0x4000", - "arraySize": "1", - "regWidth": "64" - }, - "mtime": { - "description": "Machine Time Register", - "addressOffset": "0xBFF8", - "access": "r", - "regWidth": "64" - } - } - }, - "plic": { - "description": "Platform-Level Interrupt Controller (PLIC) Peripheral", - "baseAddress": "0x0C000000", - "size": "0x4000000", - "registers": { - "priorities": { - "arraySize": "27", - "description": "Interrupt Priorities Registers; 0 is reserved.", - "addressOffset": "0x0000", - "fields": { - "value": { - "description": "The priority for a given global interrupt", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "pendings": { - "arraySize": "16", - "description": "Interrupt Pending Bits Registers", - "addressOffset": "0x1000", - "access": "r" - } - }, - "clusters": { - "enablestarget0": { - "description": "Hart 0 Interrupt Enable Bits", - "addressOffset": "0x00002000", - "clusters": { - "m": { - "addressOffset": "0x0000", - "description": "Hart 0 M-mode Interrupt Enable Bits", - "registers": { - "enables": { - "arraySize": "16", - "description": "Interrupt Enable Bits Registers", - "addressOffset": "0x0000" - } - } - } - } - }, - "target0": { - "description": "Hart 0 Interrupt Thresholds", - "addressOffset": "0x00200000", - "clusters": { - "m": { - "addressOffset": "0x0000", - "description": "Hart 0 M-Mode Interrupt Threshold", - "registers": { - "threshold": { - "description": "The Priority Threshold Register", - "addressOffset": "0x0000", - "fields": { - "value": { - "description": "The priority threshold value", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "claimcomplete": { - "description": "The Interrupt Claim/Completion Register", - "addressOffset": "0x0004" - } - } - } - } - } - }, - "interrupts": { - "switch0": { - "description": "SWITCH 0 Interrupt", - "value": "2" - }, - "switch1": { - "description": "SWITCH 1 Interrupt", - "value": "3" - }, - "switch2": { - "description": "SWITCH 2 Interrupt", - "value": "4" - }, - "switch3": { - "description": "SWITCH 3 Interrupt", - "value": "5" - } - } - }, - "gpio": { - "description": "General Purpose Input/Output Controller (GPIO) Peripheral", - "baseAddress": "0x20002000", - "size": "0x1000", - "registers": { - "value": { - "description": "Pin Value Register", - "addressOffset": "0x000", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Value Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "inputen": { - "description": "Pin Input Enable Register", - "addressOffset": "0x004", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Pin Input Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "outputen": { - "description": "Pin Output Enable Register", - "addressOffset": "0x008", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Pin Output Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "port": { - "description": "Output Port Value Register", - "addressOffset": "0x00C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Output Port Value Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "pue": { - "description": "Internal Pull-up Enable Register", - "addressOffset": "0x010", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Internal Pull-up Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "ds": { - "description": "Pin Drive Strength Register", - "addressOffset": "0x014", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Pin Drive Strength Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "riseie": { - "description": "Rise Interrupt Enable Register", - "addressOffset": "0x018", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Rise Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "riseip": { - "description": "Rise Interrupt Pending Register", - "addressOffset": "0x01C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Rise Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "fallie": { - "description": "Fall Interrupt Enable Register", - "addressOffset": "0x020", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Fall Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "fallip": { - "description": "Fall Interrupt Pending Register", - "addressOffset": "0x024", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Fall Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "highie": { - "description": "High Interrupt Enable Register", - "addressOffset": "0x028", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "High Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "highip": { - "description": "High Interrupt Pending Register", - "addressOffset": "0x02C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "High Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "lowie": { - "description": "Low Interrupt Enable Register", - "addressOffset": "0x030", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Low Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "lowip": { - "description": "Low Interrupt Pending Register", - "addressOffset": "0x034", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Low Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "iofen": { - "description": "HW I/O Function Enable Register", - "addressOffset": "0x038", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "HW I/O Function Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "iofsel": { - "description": "HW I/O Function Select Register", - "addressOffset": "0x03C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "HW I/O Function Select Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "outxor": { - "description": "Output XOR (invert) Register", - "addressOffset": "0x040", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Output XOR Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - } - }, - "interrupts": { - "gpio0": { - "description": "GPIO0 Interrupt", - "value": "7" - }, - "gpio1": { - "description": "GPIO1 Interrupt", - "value": "8" - }, - "gpio2": { - "description": "GPIO2 Interrupt", - "value": "9" - }, - "gpio3": { - "description": "GPIO3 Interrupt", - "value": "10" - }, - "gpio4": { - "description": "GPIO4 Interrupt", - "value": "11" - }, - "gpio5": { - "description": "GPIO5 Interrupt", - "value": "12" - }, - "gpio6": { - "description": "GPIO6 Interrupt", - "value": "13" - }, - "gpio7": { - "description": "GPIO7 Interrupt", - "value": "14" - }, - "gpio8": { - "description": "GPIO8 Interrupt", - "value": "15" - }, - "gpio9": { - "description": "GPIO9 Interrupt", - "value": "16" - }, - "gpio10": { - "description": "GPIO10 Interrupt", - "value": "17" - }, - "gpio11": { - "description": "GPIO11 Interrupt", - "value": "18" - }, - "gpio12": { - "description": "GPIO12 Interrupt", - "value": "19" - }, - "gpio13": { - "description": "GPIO13 Interrupt", - "value": "20" - }, - "gpio14": { - "description": "GPIO14 Interrupt", - "value": "21" - }, - "gpio15": { - "description": "GPIO15 Interrupt", - "value": "22" - } - } - }, - "uart0": { - "description": "Universal Asynchronous Receiver/Transmitter (UART) Peripheral", - "baseAddress": "0x20000000", - "size": "0x1000", - "resetMask": "none", - "groupName": "uart", - "registers": { - "txdata": { - "description": "Transmit Data Register", - "addressOffset": "0x000", - "fields": { - "data": { - "description": "Transmit data", - "bitOffset": "0", - "bitWidth": "8" - }, - "full": { - "description": "Transmit FIFO full", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "rxdata": { - "description": "Receive Data Register", - "addressOffset": "0x004", - "resetMask": "none", - "fields": { - "data": { - "description": "Received data", - "bitOffset": "0", - "bitWidth": "8", - "access": "r" - }, - "empty": { - "description": "Receive FIFO empty", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "txctrl": { - "description": "Transmit Control Register ", - "addressOffset": "0x008", - "fields": { - "txen": { - "description": "Transmit enable", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "nstop": { - "description": "Number of stop bits", - "bitOffset": "1", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "txcnt": { - "description": "Transmit watermark level", - "bitOffset": "16", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "rxctrl": { - "description": "Receive Control Register", - "addressOffset": "0x00C", - "fields": { - "rxen": { - "description": "Receive enable", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "rxcnt": { - "description": "Receive watermark level", - "bitOffset": "16", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ie": { - "description": "Interrupt Enable Register", - "addressOffset": "0x010", - "fields": { - "txwm": { - "description": "Transmit watermark interrupt enable", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "rxwm": { - "description": "Receive watermark interrupt enable", - "bitOffset": "1", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ip": { - "description": "Interrupt Pending Register", - "addressOffset": "0x014", - "access": "r", - "fields": { - "txwm": { - "description": "Transmit watermark interrupt pending", - "bitOffset": "0", - "bitWidth": "1" - }, - "rxwm": { - "description": "Receive watermark interrupt pending", - "bitOffset": "1", - "bitWidth": "1" - } - } - }, - "div": { - "description": "Baud Rate Divisor Register", - "addressOffset": "0x018", - "fields": { - "value": { - "description": "Baud rate divisor", - "bitOffset": "0", - "bitWidth": "16", - "resetMask": "all", - "resetValue": "0x0000FFFF" - } - } - } - }, - "interrupts": { - "uart0": { - "description": "UART0 Interrupt", - "value": "1" - } - } - }, - "spi0": { - "description": "Serial Peripheral Interface (SPI) Peripheral", - "baseAddress": "0x20004000", - "size": "0x1000", - "resetMask": "none", - "groupName": "spi", - "registers": { - "sckdiv": { - "description": "Serial clock divisor Register", - "addressOffset": "0x000", - "fields": { - "scale": { - "description": "Divisor for serial clock", - "bitOffset": "0", - "bitWidth": "12", - "resetMask": "all", - "resetValue": "0x003" - } - } - }, - "sckmode": { - "description": "Serial Clock Mode Register", - "addressOffset": "0x004", - "fields": { - "pha": { - "description": "Serial clock phase", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "pol": { - "description": "Serial clock polarity", - "bitOffset": "1", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "csid": { - "description": "Chip Select ID Register", - "addressOffset": "0x010", - "resetMask": "all", - "resetValue": "0x00000000" - }, - "csdef": { - "description": "Chip Select Default Register", - "addressOffset": "0x014", - "resetMask": "all", - "resetValue": "0x00000001" - }, - "csmode": { - "description": "Chip Select Mode Register", - "addressOffset": "0x018", - "fields": { - "mode": { - "description": "Chip select mode", - "bitOffset": "0", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0", - "enumerations": { - "csmode-enum": { - "description": "Chip Select Modes Enumeration", - "values": { - "0": { - "displayName": "auto", - "description": "Assert/de-assert CS at the beginning/end of each frame" - }, - "*": { - "displayName": "reserved" - }, - "2": { - "displayName": "hold", - "description": "Keep CS continuously asserted after the initial frame" - }, - "3": { - "displayName": "off", - "description": "Disable hardware control of the CS pin" - } - } - } - } - } - } - }, - "delay0": { - "description": "Delay Control 0 Register", - "addressOffset": "0x028", - "fields": { - "cssck": { - "description": "CS to SCK Delay", - "bitOffset": "0", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - }, - "sckcs": { - "description": "SCK to CS Delay", - "bitOffset": "16", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - } - } - }, - "delay1": { - "description": "Delay Control 1 Register", - "addressOffset": "0x02C", - "fields": { - "intercs": { - "description": "Minimum CS inactive time", - "bitOffset": "0", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - }, - "interxfr": { - "description": "Maximum interframe delay", - "bitOffset": "16", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - } - } - }, - "fmt": { - "description": "Frame Format Register", - "addressOffset": "0x040", - "fields": { - "proto": { - "description": "SPI Protocol", - "bitOffset": "0", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0", - "enumerations": { - "proto-enum": { - "description": "SPI Protocol Enumeration", - "values": { - "0": { - "displayName": "single", - "description": "DQ0 (MOSI), DQ1 (MISO)" - }, - "1": { - "displayName": "dual", - "description": "DQ0, DQ1" - }, - "2": { - "displayName": "quad", - "description": "DQ0, DQ1, DQ2, DQ3" - }, - "*": { - "displayName": "reserved" - } - } - } - } - }, - "endian": { - "description": "SPI endianness", - "bitOffset": "2", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0", - "enumerations": { - "endian-enum": { - "description": "SPI Endianness Enumeration", - "values": { - "0": { - "displayName": "msb", - "description": "Transmit most-significant bit (MSB) first" - }, - "1": { - "displayName": "lsb", - "description": "Transmit least-significant bit (LSB) first" - } - } - } - } - }, - "dir": { - "description": "SPI I/O Direction", - "bitOffset": "3", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1", - "enumerations": { - "dir-enum": { - "description": "SPI I/O Direction Enumeration", - "values": { - "0": { - "displayName": "rx", - "description": "For dual and quad protocols, the DQ pins are tri-stated. For the single protocol, the DQ0 pin is driven with the transmit data as normal." - }, - "1": { - "displayName": "tx", - "description": "The receive FIFO is not populated." - } - } - } - } - }, - "len": { - "description": "Number of bits per frame", - "bitOffset": "16", - "bitWidth": "4", - "resetMask": "all", - "resetValue": "0x8" - } - } - }, - "txdata": { - "description": "Tx FIFO Data Register", - "addressOffset": "0x048", - "fields": { - "data": { - "description": "Transmit data", - "bitOffset": "0", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x00" - }, - "full": { - "description": "FIFO full flag", - "bitOffset": "31", - "bitWidth": "1", - "access": "r" - } - } - }, - "rxdata": { - "description": "Rx FIFO Data Register", - "addressOffset": "0x04C", - "resetMask": "none", - "access": "r", - "fields": { - "data": { - "description": "Received data", - "bitOffset": "0", - "bitWidth": "8" - }, - "empty": { - "description": "FIFO empty flag", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "txmark": { - "description": "Tx FIFO Watermark Register", - "addressOffset": "0x050", - "fields": { - "value": { - "description": "Transmit watermark", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x1" - } - } - }, - "rxmark": { - "description": "Rx FIFO Watermark Register", - "addressOffset": "0x054", - "fields": { - "value": { - "description": "Receive watermark", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "fctrl": { - "description": "Flash Interface Control Register", - "addressOffset": "0x060", - "fields": { - "en": { - "description": "SPI Flash Mode Select", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1" - } - } - }, - "ffmt": { - "description": "Flash Instruction Format Register", - "addressOffset": "0x064", - "fields": { - "cmden": { - "description": "Enable sending of command", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1" - }, - "addrlen": { - "description": "Number of address bytes(0 to 4)", - "bitOffset": "1", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x3" - }, - "padcnt": { - "description": "Number of dummy cycles", - "bitOffset": "4", - "bitWidth": "4", - "resetMask": "all", - "resetValue": "0x0" - }, - "cmdproto": { - "description": "Protocol for transmitting command", - "bitOffset": "8", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0" - }, - "addrproto": { - "description": "Protocol for transmitting address and padding", - "bitOffset": "10", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0" - }, - "dataproto": { - "description": "Protocol for receiving data bytes", - "bitOffset": "12", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0" - }, - "cmdcode": { - "description": "Value of command byte", - "bitOffset": "16", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x03" - }, - "padcode": { - "description": "First 8 bits to transmit during dummy cycles", - "bitOffset": "24", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ie": { - "description": "Interrupt Enable Register", - "addressOffset": "0x070", - "fields": { - "txwm": { - "description": "Transmit watermark enable", - "bitOffset": "0", - "bitWidth": "1", - "access": "r", - "resetMask": "all", - "resetValue": "0x0" - }, - "rxwm": { - "description": "Receive watermark enable", - "bitOffset": "1", - "bitWidth": "1", - "access": "r", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ip": { - "description": "Interrupt Pending Register", - "addressOffset": "0x074", - "fields": { - "txwm": { - "description": "Transmit watermark pending", - "bitOffset": "0", - "bitWidth": "1", - "access": "r" - }, - "rxwm": { - "description": "Receive watermark pending", - "bitOffset": "1", - "bitWidth": "1", - "access": "r" - } - } - } - }, - "interrupts": { - "spi0": { - "description": "SPI0 Interrupt", - "value": "6" - } - } - }, - "pwm0": { - "description": "Pulse-Width Modulation (PWM) Peripheral", - "baseAddress": "0x20005000", - "size": "0x1000", - "resetMask": "none", - "groupName": "pwm", - "registers": { - "cfg": { - "description": "Configuration Register", - "addressOffset": "0x000", - "fields": { - "scale": { - "description": "Counter scale", - "bitOffset": "0", - "bitWidth": "4" - }, - "sticky": { - "description": "Sticky - disallow clearing pwmcmpXip bits", - "bitOffset": "8", - "bitWidth": "1" - }, - "zerocmp": { - "description": "Zero - counter resets to zero after match", - "bitOffset": "9", - "bitWidth": "1" - }, - "deglitch": { - "description": "Deglitch - latch pwmcmpXip within same cycle", - "bitOffset": "10", - "bitWidth": "1" - }, - "enalways": { - "description": "Enable always - run continuously", - "bitOffset": "12", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "enoneshot": { - "description": "enable one shot - run one cycle", - "bitOffset": "13", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "cmp0center": { - "description": "PWM0 Compare Center", - "bitOffset": "16", - "bitWidth": "1" - }, - "cmp1center": { - "description": "PWM1 Compare Center", - "bitOffset": "17", - "bitWidth": "1" - }, - "cmp2center": { - "description": "PWM2 Compare Center", - "bitOffset": "18", - "bitWidth": "1" - }, - "cmp3center": { - "description": "PWM3 Compare Center", - "bitOffset": "19", - "bitWidth": "1" - }, - "cmp0gang": { - "description": "PWM0/PWM1 Compare Gang", - "bitOffset": "24", - "bitWidth": "1" - }, - "cmp1gang": { - "description": "PWM1/PWM2 Compare Gang", - "bitOffset": "25", - "bitWidth": "1" - }, - "cmp2gang": { - "description": "PWM2/PWM3 Compare Gang", - "bitOffset": "26", - "bitWidth": "1" - }, - "cmp3gang": { - "description": "PWM3/PWM0 Compare Gang", - "bitOffset": "27", - "bitWidth": "1" - }, - "cmp0ip": { - "description": "PWM0 Interrupt Pending", - "bitOffset": "28", - "bitWidth": "1" - }, - "cmp1ip": { - "description": "PWM1 Interrupt Pending", - "bitOffset": "29", - "bitWidth": "1" - }, - "cmp2ip": { - "description": "PWM2 Interrupt Pending", - "bitOffset": "30", - "bitWidth": "1" - }, - "cmp3ip": { - "description": "PWM3 Interrupt Pending", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "count": { - "description": "Configuration Register", - "addressOffset": "0x008" - }, - "scale": { - "description": "Scale Register", - "addressOffset": "0x010", - "fields": { - "value": { - "description": "Compare value", - "bitOffset": "0", - "bitWidth": "8" - } - } - }, - "cmp": { - "arraySize": "4", - "description": "Compare Registers", - "addressOffset": "0x020", - "fields": { - "value": { - "description": "Compare value", - "bitOffset": "0", - "bitWidth": "8" - } - } - } - }, - "interrupts": { - "pwm0cmp0": { - "description": "PWM0 Compare 0 Interrupt", - "value": "23" - }, - "pwm0cmp1": { - "description": "PWM0 Compare 1 Interrupt", - "value": "24" - }, - "pwm0cmp2": { - "description": "PWM0 Compare 2 Interrupt", - "value": "25" - }, - "pwm0cmp3": { - "description": "PWM0 Compare 3 Interrupt", - "value": "26" - } - } - } - } - } - } -} \ No newline at end of file diff --git a/FreedomStudio/E51FPGA/performance_counters/performance_counters OpenOCD.launch b/FreedomStudio/E51FPGA/performance_counters/performance_counters OpenOCD.launch deleted file mode 100644 index 75f80ba..0000000 --- a/FreedomStudio/E51FPGA/performance_counters/performance_counters OpenOCD.launch +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/FreedomStudio/E51FPGA/performance_counters/sifive-coreplexip-e51-arty.cfg b/FreedomStudio/E51FPGA/performance_counters/sifive-coreplexip-e51-arty.cfg deleted file mode 100644 index 8b382dc..0000000 --- a/FreedomStudio/E51FPGA/performance_counters/sifive-coreplexip-e51-arty.cfg +++ /dev/null @@ -1,31 +0,0 @@ -# JTAG adapter setup -adapter_khz 10000 - -interface ftdi -ftdi_device_desc "Olimex OpenOCD JTAG ARM-USB-TINY-H" -ftdi_vid_pid 0x15ba 0x002a - -ftdi_layout_init 0x0808 0x0a1b -ftdi_layout_signal nSRST -oe 0x0200 -#ftdi_layout_signal nTRST -data 0x0100 -oe 0x0100 -ftdi_layout_signal LED -data 0x0800 - -set _CHIPNAME riscv -jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x20000001 - -set _TARGETNAME $_CHIPNAME.cpu - -target create $_TARGETNAME.0 riscv -chain-position $_TARGETNAME -$_TARGETNAME.0 configure -work-area-phys 0x80000000 -work-area-size 10000 -work-area-backup 1 - -# Un-comment these two flash lines if you have a SPI flash and want to write -# it. -flash bank spi0 fespi 0x40000000 0 0 0 $_TARGETNAME.0 0x20004000 -init -if {[ info exists pulse_srst]} { - ftdi_set_signal nSRST 0 - ftdi_set_signal nSRST z -} -halt -flash protect 0 64 last off -echo "Ready for Remote Connections" diff --git a/FreedomStudio/E51FPGA/vectored_interrupts/.cproject b/FreedomStudio/E51FPGA/vectored_interrupts/.cproject deleted file mode 100644 index 747f474..0000000 --- a/FreedomStudio/E51FPGA/vectored_interrupts/.cproject +++ /dev/null @@ -1,211 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/FreedomStudio/E51FPGA/vectored_interrupts/.gitignore b/FreedomStudio/E51FPGA/vectored_interrupts/.gitignore deleted file mode 100644 index 3df573f..0000000 --- a/FreedomStudio/E51FPGA/vectored_interrupts/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/Debug/ diff --git a/FreedomStudio/E51FPGA/vectored_interrupts/.project b/FreedomStudio/E51FPGA/vectored_interrupts/.project deleted file mode 100644 index f83b549..0000000 --- a/FreedomStudio/E51FPGA/vectored_interrupts/.project +++ /dev/null @@ -1,353 +0,0 @@ - - - vectored_interrupts - - - - - - org.eclipse.cdt.managedbuilder.core.genmakebuilder - clean,full,incremental, - - - - - org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder - full,incremental, - - - - - - org.eclipse.cdt.core.cnature - org.eclipse.cdt.managedbuilder.core.managedBuildNature - org.eclipse.cdt.managedbuilder.core.ScannerConfigNature - - - - bsp - 2 - virtual:/virtual - - - vectored_interrupts.c - 1 - PARENT-3-PROJECT_LOC/software/vectored_interrupts/vectored_interrupts.c - - - bsp/drivers - 2 - virtual:/virtual - - - bsp/env - 2 - virtual:/virtual - - - bsp/include - 2 - virtual:/virtual - - - bsp/libwrap - 2 - virtual:/virtual - - - bsp/drivers/fe300prci - 2 - virtual:/virtual - - - bsp/drivers/plic - 2 - virtual:/virtual - - - bsp/env/coreplexip-arty.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-arty.h - - - bsp/env/coreplexip-e51-arty - 2 - virtual:/virtual - - - bsp/env/encoding.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/encoding.h - - - bsp/env/hifive1.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/hifive1.h - - - bsp/env/start.S - 1 - PARENT-3-PROJECT_LOC/bsp/env/start.S - - - bsp/env/ventry.S - 1 - PARENT-3-PROJECT_LOC/bsp/env/ventry.S - - - bsp/include/sifive - 2 - virtual:/virtual - - - bsp/libwrap/misc - 2 - virtual:/virtual - - - bsp/libwrap/stdlib - 2 - virtual:/virtual - - - bsp/libwrap/sys - 2 - virtual:/virtual - - - bsp/drivers/fe300prci/fe300prci_driver.c - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/fe300prci/fe300prci_driver.c - - - bsp/drivers/fe300prci/fe300prci_driver.h - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/fe300prci/fe300prci_driver.h - - - bsp/drivers/plic/plic_driver.c - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/plic/plic_driver.c - - - bsp/drivers/plic/plic_driver.h - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/plic/plic_driver.h - - - bsp/env/coreplexip-e51-arty/flash.lds - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e51-arty/flash.lds - - - bsp/env/coreplexip-e51-arty/init.c - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e51-arty/init.c - - - bsp/env/coreplexip-e51-arty/openocd.cfg - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e51-arty/openocd.cfg - - - bsp/env/coreplexip-e51-arty/platform.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e51-arty/platform.h - - - bsp/env/coreplexip-e51-arty/scratchpad.lds - 1 - PARENT-3-PROJECT_LOC/bsp/env/coreplexip-e51-arty/scratchpad.lds - - - bsp/include/sifive/bits.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/bits.h - - - bsp/include/sifive/const.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/const.h - - - bsp/include/sifive/devices - 2 - virtual:/virtual - - - bsp/include/sifive/sections.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/sections.h - - - bsp/include/sifive/smp.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/smp.h - - - bsp/libwrap/misc/write_hex.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/misc/write_hex.c - - - bsp/libwrap/stdlib/malloc.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/stdlib/malloc.c - - - bsp/libwrap/sys/_exit.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/_exit.c - - - bsp/libwrap/sys/close.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/close.c - - - bsp/libwrap/sys/execve.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/execve.c - - - bsp/libwrap/sys/fork.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/fork.c - - - bsp/libwrap/sys/fstat.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/fstat.c - - - bsp/libwrap/sys/getpid.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/getpid.c - - - bsp/libwrap/sys/isatty.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/isatty.c - - - bsp/libwrap/sys/kill.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/kill.c - - - bsp/libwrap/sys/link.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/link.c - - - bsp/libwrap/sys/lseek.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/lseek.c - - - bsp/libwrap/sys/open.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/open.c - - - bsp/libwrap/sys/openat.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/openat.c - - - bsp/libwrap/sys/puts.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/puts.c - - - bsp/libwrap/sys/read.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/read.c - - - bsp/libwrap/sys/sbrk.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/sbrk.c - - - bsp/libwrap/sys/stat.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/stat.c - - - bsp/libwrap/sys/stub.h - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/stub.h - - - bsp/libwrap/sys/times.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/times.c - - - bsp/libwrap/sys/unlink.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/unlink.c - - - bsp/libwrap/sys/wait.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/wait.c - - - bsp/libwrap/sys/weak_under_alias.h - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/weak_under_alias.h - - - bsp/libwrap/sys/write.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/write.c - - - bsp/include/sifive/devices/aon.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/aon.h - - - bsp/include/sifive/devices/clint.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/clint.h - - - bsp/include/sifive/devices/gpio.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/gpio.h - - - bsp/include/sifive/devices/otp.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/otp.h - - - bsp/include/sifive/devices/plic.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/plic.h - - - bsp/include/sifive/devices/prci.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/prci.h - - - bsp/include/sifive/devices/pwm.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/pwm.h - - - bsp/include/sifive/devices/spi.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/spi.h - - - bsp/include/sifive/devices/uart.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/uart.h - - - diff --git a/FreedomStudio/E51FPGA/vectored_interrupts/e51arty-xsvd.json b/FreedomStudio/E51FPGA/vectored_interrupts/e51arty-xsvd.json deleted file mode 100644 index aac7a77..0000000 --- a/FreedomStudio/E51FPGA/vectored_interrupts/e51arty-xsvd.json +++ /dev/null @@ -1,1230 +0,0 @@ -{ - "schemaVersion": "0.2.4", - "contentVersion": "0.2.0", - "headerVersion": "0.2.0", - "device": { - "e51arty": { - "displayName": "Core Complex E51 Arty", - "description": "SiFive’s E51 is a synthesised version of Core Complex E31 running on the Arty board.", - "supplier": { - "name": "sifive", - "id": "1", - "displayName": "SiFive", - "fullName": "SiFive, Inc.", - "contact": "info@sifive.com" - }, - "busWidth": "64", - "resetMask": "all", - "resetValue": "0x0000000000000000", - "access": "rw", - "headerGuardPrefix": "SIFIVE_DEVICES_ARTY_E51_", - "headerTypePrefix": "sifive_e51arty_", - "headerInterruptPrefix": "sifive_e51arty_interrupt_global_", - "headerInterruptEnumPrefix": "riscv_interrupts_global_", - "revision": "r0p0", - "numInterrupts": "26", - "priorityBits": "3", - "regWidth": "32", - "cores": { - "e51": { - "harts": "1", - "isa": "RV64IMAC", - "isaVersion": "2.2", - "mpu": "pmp", - "mmu": "none", - "localInterrupts": { - "machine_software": { - "description": "Machine Software Interrupt", - "value": "3" - }, - "machine_timer": { - "description": "Machine Timer Interrupt", - "value": "7" - }, - "machine_ext": { - "description": "Machine External Interrupt", - "value": "11" - }, - "0": { - "description": "Local Interrupt 0", - "value": "16" - }, - "1": { - "description": "Local Interrupt 1", - "value": "17" - }, - "2": { - "description": "Local Interrupt 2", - "value": "18" - }, - "3": { - "description": "Local Interrupt 3", - "value": "19" - }, - "4": { - "description": "Local Interrupt 4", - "value": "20" - }, - "5": { - "description": "Local Interrupt 5", - "value": "21" - }, - "6": { - "description": "Local Interrupt 6", - "value": "22" - }, - "7": { - "description": "Local Interrupt 7", - "value": "23" - }, - "8": { - "description": "Local Interrupt 8", - "value": "24" - }, - "9": { - "description": "Local Interrupt 9", - "value": "25" - }, - "10": { - "description": "Local Interrupt 10", - "value": "26" - }, - "11": { - "description": "Local Interrupt 11", - "value": "27" - }, - "12": { - "description": "Local Interrupt 12", - "value": "28" - }, - "13": { - "description": "Local Interrupt 13", - "value": "29" - }, - "14": { - "description": "Local Interrupt 14", - "value": "30" - }, - "15": { - "description": "Local Interrupt 15", - "value": "31" - } - }, - "numLocalInterrupts": "16" - } - }, - "peripherals": { - "clint": { - "description": "Core Complex Local Interruptor (CLINT) Peripheral", - "baseAddress": "0x02000000", - "size": "0x10000", - "registers": { - "msip": { - "description": "MSIP (Machine-mode Software Interrupts) Register per Hart", - "addressOffset": "0x0000", - "arraySize": "1" - }, - "mtimecmp": { - "description": "Machine Time Compare Registers per Hart", - "addressOffset": "0x4000", - "arraySize": "1", - "regWidth": "64" - }, - "mtime": { - "description": "Machine Time Register", - "addressOffset": "0xBFF8", - "access": "r", - "regWidth": "64" - } - } - }, - "plic": { - "description": "Platform-Level Interrupt Controller (PLIC) Peripheral", - "baseAddress": "0x0C000000", - "size": "0x4000000", - "registers": { - "priorities": { - "arraySize": "27", - "description": "Interrupt Priorities Registers; 0 is reserved.", - "addressOffset": "0x0000", - "fields": { - "value": { - "description": "The priority for a given global interrupt", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "pendings": { - "arraySize": "16", - "description": "Interrupt Pending Bits Registers", - "addressOffset": "0x1000", - "access": "r" - } - }, - "clusters": { - "enablestarget0": { - "description": "Hart 0 Interrupt Enable Bits", - "addressOffset": "0x00002000", - "clusters": { - "m": { - "addressOffset": "0x0000", - "description": "Hart 0 M-mode Interrupt Enable Bits", - "registers": { - "enables": { - "arraySize": "16", - "description": "Interrupt Enable Bits Registers", - "addressOffset": "0x0000" - } - } - } - } - }, - "target0": { - "description": "Hart 0 Interrupt Thresholds", - "addressOffset": "0x00200000", - "clusters": { - "m": { - "addressOffset": "0x0000", - "description": "Hart 0 M-Mode Interrupt Threshold", - "registers": { - "threshold": { - "description": "The Priority Threshold Register", - "addressOffset": "0x0000", - "fields": { - "value": { - "description": "The priority threshold value", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "claimcomplete": { - "description": "The Interrupt Claim/Completion Register", - "addressOffset": "0x0004" - } - } - } - } - } - }, - "interrupts": { - "switch0": { - "description": "SWITCH 0 Interrupt", - "value": "2" - }, - "switch1": { - "description": "SWITCH 1 Interrupt", - "value": "3" - }, - "switch2": { - "description": "SWITCH 2 Interrupt", - "value": "4" - }, - "switch3": { - "description": "SWITCH 3 Interrupt", - "value": "5" - } - } - }, - "gpio": { - "description": "General Purpose Input/Output Controller (GPIO) Peripheral", - "baseAddress": "0x20002000", - "size": "0x1000", - "registers": { - "value": { - "description": "Pin Value Register", - "addressOffset": "0x000", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Value Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "inputen": { - "description": "Pin Input Enable Register", - "addressOffset": "0x004", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Pin Input Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "outputen": { - "description": "Pin Output Enable Register", - "addressOffset": "0x008", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Pin Output Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "port": { - "description": "Output Port Value Register", - "addressOffset": "0x00C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Output Port Value Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "pue": { - "description": "Internal Pull-up Enable Register", - "addressOffset": "0x010", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Internal Pull-up Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "ds": { - "description": "Pin Drive Strength Register", - "addressOffset": "0x014", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Pin Drive Strength Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "riseie": { - "description": "Rise Interrupt Enable Register", - "addressOffset": "0x018", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Rise Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "riseip": { - "description": "Rise Interrupt Pending Register", - "addressOffset": "0x01C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Rise Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "fallie": { - "description": "Fall Interrupt Enable Register", - "addressOffset": "0x020", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Fall Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "fallip": { - "description": "Fall Interrupt Pending Register", - "addressOffset": "0x024", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Fall Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "highie": { - "description": "High Interrupt Enable Register", - "addressOffset": "0x028", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "High Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "highip": { - "description": "High Interrupt Pending Register", - "addressOffset": "0x02C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "High Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "lowie": { - "description": "Low Interrupt Enable Register", - "addressOffset": "0x030", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Low Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "lowip": { - "description": "Low Interrupt Pending Register", - "addressOffset": "0x034", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Low Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "iofen": { - "description": "HW I/O Function Enable Register", - "addressOffset": "0x038", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "HW I/O Function Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "iofsel": { - "description": "HW I/O Function Select Register", - "addressOffset": "0x03C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "HW I/O Function Select Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "outxor": { - "description": "Output XOR (invert) Register", - "addressOffset": "0x040", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Output XOR Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - } - }, - "interrupts": { - "gpio0": { - "description": "GPIO0 Interrupt", - "value": "7" - }, - "gpio1": { - "description": "GPIO1 Interrupt", - "value": "8" - }, - "gpio2": { - "description": "GPIO2 Interrupt", - "value": "9" - }, - "gpio3": { - "description": "GPIO3 Interrupt", - "value": "10" - }, - "gpio4": { - "description": "GPIO4 Interrupt", - "value": "11" - }, - "gpio5": { - "description": "GPIO5 Interrupt", - "value": "12" - }, - "gpio6": { - "description": "GPIO6 Interrupt", - "value": "13" - }, - "gpio7": { - "description": "GPIO7 Interrupt", - "value": "14" - }, - "gpio8": { - "description": "GPIO8 Interrupt", - "value": "15" - }, - "gpio9": { - "description": "GPIO9 Interrupt", - "value": "16" - }, - "gpio10": { - "description": "GPIO10 Interrupt", - "value": "17" - }, - "gpio11": { - "description": "GPIO11 Interrupt", - "value": "18" - }, - "gpio12": { - "description": "GPIO12 Interrupt", - "value": "19" - }, - "gpio13": { - "description": "GPIO13 Interrupt", - "value": "20" - }, - "gpio14": { - "description": "GPIO14 Interrupt", - "value": "21" - }, - "gpio15": { - "description": "GPIO15 Interrupt", - "value": "22" - } - } - }, - "uart0": { - "description": "Universal Asynchronous Receiver/Transmitter (UART) Peripheral", - "baseAddress": "0x20000000", - "size": "0x1000", - "resetMask": "none", - "groupName": "uart", - "registers": { - "txdata": { - "description": "Transmit Data Register", - "addressOffset": "0x000", - "fields": { - "data": { - "description": "Transmit data", - "bitOffset": "0", - "bitWidth": "8" - }, - "full": { - "description": "Transmit FIFO full", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "rxdata": { - "description": "Receive Data Register", - "addressOffset": "0x004", - "resetMask": "none", - "fields": { - "data": { - "description": "Received data", - "bitOffset": "0", - "bitWidth": "8", - "access": "r" - }, - "empty": { - "description": "Receive FIFO empty", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "txctrl": { - "description": "Transmit Control Register ", - "addressOffset": "0x008", - "fields": { - "txen": { - "description": "Transmit enable", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "nstop": { - "description": "Number of stop bits", - "bitOffset": "1", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "txcnt": { - "description": "Transmit watermark level", - "bitOffset": "16", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "rxctrl": { - "description": "Receive Control Register", - "addressOffset": "0x00C", - "fields": { - "rxen": { - "description": "Receive enable", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "rxcnt": { - "description": "Receive watermark level", - "bitOffset": "16", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ie": { - "description": "Interrupt Enable Register", - "addressOffset": "0x010", - "fields": { - "txwm": { - "description": "Transmit watermark interrupt enable", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "rxwm": { - "description": "Receive watermark interrupt enable", - "bitOffset": "1", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ip": { - "description": "Interrupt Pending Register", - "addressOffset": "0x014", - "access": "r", - "fields": { - "txwm": { - "description": "Transmit watermark interrupt pending", - "bitOffset": "0", - "bitWidth": "1" - }, - "rxwm": { - "description": "Receive watermark interrupt pending", - "bitOffset": "1", - "bitWidth": "1" - } - } - }, - "div": { - "description": "Baud Rate Divisor Register", - "addressOffset": "0x018", - "fields": { - "value": { - "description": "Baud rate divisor", - "bitOffset": "0", - "bitWidth": "16", - "resetMask": "all", - "resetValue": "0x0000FFFF" - } - } - } - }, - "interrupts": { - "uart0": { - "description": "UART0 Interrupt", - "value": "1" - } - } - }, - "spi0": { - "description": "Serial Peripheral Interface (SPI) Peripheral", - "baseAddress": "0x20004000", - "size": "0x1000", - "resetMask": "none", - "groupName": "spi", - "registers": { - "sckdiv": { - "description": "Serial clock divisor Register", - "addressOffset": "0x000", - "fields": { - "scale": { - "description": "Divisor for serial clock", - "bitOffset": "0", - "bitWidth": "12", - "resetMask": "all", - "resetValue": "0x003" - } - } - }, - "sckmode": { - "description": "Serial Clock Mode Register", - "addressOffset": "0x004", - "fields": { - "pha": { - "description": "Serial clock phase", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "pol": { - "description": "Serial clock polarity", - "bitOffset": "1", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "csid": { - "description": "Chip Select ID Register", - "addressOffset": "0x010", - "resetMask": "all", - "resetValue": "0x00000000" - }, - "csdef": { - "description": "Chip Select Default Register", - "addressOffset": "0x014", - "resetMask": "all", - "resetValue": "0x00000001" - }, - "csmode": { - "description": "Chip Select Mode Register", - "addressOffset": "0x018", - "fields": { - "mode": { - "description": "Chip select mode", - "bitOffset": "0", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0", - "enumerations": { - "csmode-enum": { - "description": "Chip Select Modes Enumeration", - "values": { - "0": { - "displayName": "auto", - "description": "Assert/de-assert CS at the beginning/end of each frame" - }, - "*": { - "displayName": "reserved" - }, - "2": { - "displayName": "hold", - "description": "Keep CS continuously asserted after the initial frame" - }, - "3": { - "displayName": "off", - "description": "Disable hardware control of the CS pin" - } - } - } - } - } - } - }, - "delay0": { - "description": "Delay Control 0 Register", - "addressOffset": "0x028", - "fields": { - "cssck": { - "description": "CS to SCK Delay", - "bitOffset": "0", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - }, - "sckcs": { - "description": "SCK to CS Delay", - "bitOffset": "16", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - } - } - }, - "delay1": { - "description": "Delay Control 1 Register", - "addressOffset": "0x02C", - "fields": { - "intercs": { - "description": "Minimum CS inactive time", - "bitOffset": "0", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - }, - "interxfr": { - "description": "Maximum interframe delay", - "bitOffset": "16", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - } - } - }, - "fmt": { - "description": "Frame Format Register", - "addressOffset": "0x040", - "fields": { - "proto": { - "description": "SPI Protocol", - "bitOffset": "0", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0", - "enumerations": { - "proto-enum": { - "description": "SPI Protocol Enumeration", - "values": { - "0": { - "displayName": "single", - "description": "DQ0 (MOSI), DQ1 (MISO)" - }, - "1": { - "displayName": "dual", - "description": "DQ0, DQ1" - }, - "2": { - "displayName": "quad", - "description": "DQ0, DQ1, DQ2, DQ3" - }, - "*": { - "displayName": "reserved" - } - } - } - } - }, - "endian": { - "description": "SPI endianness", - "bitOffset": "2", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0", - "enumerations": { - "endian-enum": { - "description": "SPI Endianness Enumeration", - "values": { - "0": { - "displayName": "msb", - "description": "Transmit most-significant bit (MSB) first" - }, - "1": { - "displayName": "lsb", - "description": "Transmit least-significant bit (LSB) first" - } - } - } - } - }, - "dir": { - "description": "SPI I/O Direction", - "bitOffset": "3", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1", - "enumerations": { - "dir-enum": { - "description": "SPI I/O Direction Enumeration", - "values": { - "0": { - "displayName": "rx", - "description": "For dual and quad protocols, the DQ pins are tri-stated. For the single protocol, the DQ0 pin is driven with the transmit data as normal." - }, - "1": { - "displayName": "tx", - "description": "The receive FIFO is not populated." - } - } - } - } - }, - "len": { - "description": "Number of bits per frame", - "bitOffset": "16", - "bitWidth": "4", - "resetMask": "all", - "resetValue": "0x8" - } - } - }, - "txdata": { - "description": "Tx FIFO Data Register", - "addressOffset": "0x048", - "fields": { - "data": { - "description": "Transmit data", - "bitOffset": "0", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x00" - }, - "full": { - "description": "FIFO full flag", - "bitOffset": "31", - "bitWidth": "1", - "access": "r" - } - } - }, - "rxdata": { - "description": "Rx FIFO Data Register", - "addressOffset": "0x04C", - "resetMask": "none", - "access": "r", - "fields": { - "data": { - "description": "Received data", - "bitOffset": "0", - "bitWidth": "8" - }, - "empty": { - "description": "FIFO empty flag", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "txmark": { - "description": "Tx FIFO Watermark Register", - "addressOffset": "0x050", - "fields": { - "value": { - "description": "Transmit watermark", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x1" - } - } - }, - "rxmark": { - "description": "Rx FIFO Watermark Register", - "addressOffset": "0x054", - "fields": { - "value": { - "description": "Receive watermark", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "fctrl": { - "description": "Flash Interface Control Register", - "addressOffset": "0x060", - "fields": { - "en": { - "description": "SPI Flash Mode Select", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1" - } - } - }, - "ffmt": { - "description": "Flash Instruction Format Register", - "addressOffset": "0x064", - "fields": { - "cmden": { - "description": "Enable sending of command", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1" - }, - "addrlen": { - "description": "Number of address bytes(0 to 4)", - "bitOffset": "1", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x3" - }, - "padcnt": { - "description": "Number of dummy cycles", - "bitOffset": "4", - "bitWidth": "4", - "resetMask": "all", - "resetValue": "0x0" - }, - "cmdproto": { - "description": "Protocol for transmitting command", - "bitOffset": "8", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0" - }, - "addrproto": { - "description": "Protocol for transmitting address and padding", - "bitOffset": "10", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0" - }, - "dataproto": { - "description": "Protocol for receiving data bytes", - "bitOffset": "12", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0" - }, - "cmdcode": { - "description": "Value of command byte", - "bitOffset": "16", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x03" - }, - "padcode": { - "description": "First 8 bits to transmit during dummy cycles", - "bitOffset": "24", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ie": { - "description": "Interrupt Enable Register", - "addressOffset": "0x070", - "fields": { - "txwm": { - "description": "Transmit watermark enable", - "bitOffset": "0", - "bitWidth": "1", - "access": "r", - "resetMask": "all", - "resetValue": "0x0" - }, - "rxwm": { - "description": "Receive watermark enable", - "bitOffset": "1", - "bitWidth": "1", - "access": "r", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ip": { - "description": "Interrupt Pending Register", - "addressOffset": "0x074", - "fields": { - "txwm": { - "description": "Transmit watermark pending", - "bitOffset": "0", - "bitWidth": "1", - "access": "r" - }, - "rxwm": { - "description": "Receive watermark pending", - "bitOffset": "1", - "bitWidth": "1", - "access": "r" - } - } - } - }, - "interrupts": { - "spi0": { - "description": "SPI0 Interrupt", - "value": "6" - } - } - }, - "pwm0": { - "description": "Pulse-Width Modulation (PWM) Peripheral", - "baseAddress": "0x20005000", - "size": "0x1000", - "resetMask": "none", - "groupName": "pwm", - "registers": { - "cfg": { - "description": "Configuration Register", - "addressOffset": "0x000", - "fields": { - "scale": { - "description": "Counter scale", - "bitOffset": "0", - "bitWidth": "4" - }, - "sticky": { - "description": "Sticky - disallow clearing pwmcmpXip bits", - "bitOffset": "8", - "bitWidth": "1" - }, - "zerocmp": { - "description": "Zero - counter resets to zero after match", - "bitOffset": "9", - "bitWidth": "1" - }, - "deglitch": { - "description": "Deglitch - latch pwmcmpXip within same cycle", - "bitOffset": "10", - "bitWidth": "1" - }, - "enalways": { - "description": "Enable always - run continuously", - "bitOffset": "12", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "enoneshot": { - "description": "enable one shot - run one cycle", - "bitOffset": "13", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "cmp0center": { - "description": "PWM0 Compare Center", - "bitOffset": "16", - "bitWidth": "1" - }, - "cmp1center": { - "description": "PWM1 Compare Center", - "bitOffset": "17", - "bitWidth": "1" - }, - "cmp2center": { - "description": "PWM2 Compare Center", - "bitOffset": "18", - "bitWidth": "1" - }, - "cmp3center": { - "description": "PWM3 Compare Center", - "bitOffset": "19", - "bitWidth": "1" - }, - "cmp0gang": { - "description": "PWM0/PWM1 Compare Gang", - "bitOffset": "24", - "bitWidth": "1" - }, - "cmp1gang": { - "description": "PWM1/PWM2 Compare Gang", - "bitOffset": "25", - "bitWidth": "1" - }, - "cmp2gang": { - "description": "PWM2/PWM3 Compare Gang", - "bitOffset": "26", - "bitWidth": "1" - }, - "cmp3gang": { - "description": "PWM3/PWM0 Compare Gang", - "bitOffset": "27", - "bitWidth": "1" - }, - "cmp0ip": { - "description": "PWM0 Interrupt Pending", - "bitOffset": "28", - "bitWidth": "1" - }, - "cmp1ip": { - "description": "PWM1 Interrupt Pending", - "bitOffset": "29", - "bitWidth": "1" - }, - "cmp2ip": { - "description": "PWM2 Interrupt Pending", - "bitOffset": "30", - "bitWidth": "1" - }, - "cmp3ip": { - "description": "PWM3 Interrupt Pending", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "count": { - "description": "Configuration Register", - "addressOffset": "0x008" - }, - "scale": { - "description": "Scale Register", - "addressOffset": "0x010", - "fields": { - "value": { - "description": "Compare value", - "bitOffset": "0", - "bitWidth": "8" - } - } - }, - "cmp": { - "arraySize": "4", - "description": "Compare Registers", - "addressOffset": "0x020", - "fields": { - "value": { - "description": "Compare value", - "bitOffset": "0", - "bitWidth": "8" - } - } - } - }, - "interrupts": { - "pwm0cmp0": { - "description": "PWM0 Compare 0 Interrupt", - "value": "23" - }, - "pwm0cmp1": { - "description": "PWM0 Compare 1 Interrupt", - "value": "24" - }, - "pwm0cmp2": { - "description": "PWM0 Compare 2 Interrupt", - "value": "25" - }, - "pwm0cmp3": { - "description": "PWM0 Compare 3 Interrupt", - "value": "26" - } - } - } - } - } - } -} \ No newline at end of file diff --git a/FreedomStudio/E51FPGA/vectored_interrupts/sifive-coreplexip-e51-arty.cfg b/FreedomStudio/E51FPGA/vectored_interrupts/sifive-coreplexip-e51-arty.cfg deleted file mode 100644 index 8b382dc..0000000 --- a/FreedomStudio/E51FPGA/vectored_interrupts/sifive-coreplexip-e51-arty.cfg +++ /dev/null @@ -1,31 +0,0 @@ -# JTAG adapter setup -adapter_khz 10000 - -interface ftdi -ftdi_device_desc "Olimex OpenOCD JTAG ARM-USB-TINY-H" -ftdi_vid_pid 0x15ba 0x002a - -ftdi_layout_init 0x0808 0x0a1b -ftdi_layout_signal nSRST -oe 0x0200 -#ftdi_layout_signal nTRST -data 0x0100 -oe 0x0100 -ftdi_layout_signal LED -data 0x0800 - -set _CHIPNAME riscv -jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x20000001 - -set _TARGETNAME $_CHIPNAME.cpu - -target create $_TARGETNAME.0 riscv -chain-position $_TARGETNAME -$_TARGETNAME.0 configure -work-area-phys 0x80000000 -work-area-size 10000 -work-area-backup 1 - -# Un-comment these two flash lines if you have a SPI flash and want to write -# it. -flash bank spi0 fespi 0x40000000 0 0 0 $_TARGETNAME.0 0x20004000 -init -if {[ info exists pulse_srst]} { - ftdi_set_signal nSRST 0 - ftdi_set_signal nSRST z -} -halt -flash protect 0 64 last off -echo "Ready for Remote Connections" diff --git a/FreedomStudio/E51FPGA/vectored_interrupts/vectored_interrupts OpenOCD.launch b/FreedomStudio/E51FPGA/vectored_interrupts/vectored_interrupts OpenOCD.launch deleted file mode 100644 index 6d29781..0000000 --- a/FreedomStudio/E51FPGA/vectored_interrupts/vectored_interrupts OpenOCD.launch +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/FreedomStudio/HiFive1/demo_gpio/.cproject b/FreedomStudio/HiFive1/demo_gpio/.cproject deleted file mode 100644 index ab6f99e..0000000 --- a/FreedomStudio/HiFive1/demo_gpio/.cproject +++ /dev/null @@ -1,211 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/FreedomStudio/HiFive1/demo_gpio/.gitignore b/FreedomStudio/HiFive1/demo_gpio/.gitignore deleted file mode 100644 index 3df573f..0000000 --- a/FreedomStudio/HiFive1/demo_gpio/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/Debug/ diff --git a/FreedomStudio/HiFive1/demo_gpio/.project b/FreedomStudio/HiFive1/demo_gpio/.project deleted file mode 100644 index 0e42de2..0000000 --- a/FreedomStudio/HiFive1/demo_gpio/.project +++ /dev/null @@ -1,348 +0,0 @@ - - - demo_gpio - - - - - - org.eclipse.cdt.managedbuilder.core.genmakebuilder - clean,full,incremental, - - - - - org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder - full,incremental, - - - - - - org.eclipse.cdt.core.cnature - org.eclipse.cdt.managedbuilder.core.managedBuildNature - org.eclipse.cdt.managedbuilder.core.ScannerConfigNature - - - - bsp - 2 - virtual:/virtual - - - demo_gpio.c - 1 - PARENT-3-PROJECT_LOC/software/demo_gpio/demo_gpio.c - - - bsp/drivers - 2 - virtual:/virtual - - - bsp/env - 2 - virtual:/virtual - - - bsp/include - 2 - virtual:/virtual - - - bsp/libwrap - 2 - virtual:/virtual - - - bsp/drivers/fe300prci - 2 - virtual:/virtual - - - bsp/drivers/plic - 2 - virtual:/virtual - - - bsp/env/encoding.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/encoding.h - - - bsp/env/entry.S - 1 - PARENT-3-PROJECT_LOC/bsp/env/entry.S - - - bsp/env/freedom-e300-hifive1 - 2 - virtual:/virtual - - - bsp/env/hifive1.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/hifive1.h - - - bsp/env/start.S - 1 - PARENT-3-PROJECT_LOC/bsp/env/start.S - - - bsp/include/sifive - 2 - virtual:/virtual - - - bsp/libwrap/misc - 2 - virtual:/virtual - - - bsp/libwrap/stdlib - 2 - virtual:/virtual - - - bsp/libwrap/sys - 2 - virtual:/virtual - - - bsp/drivers/fe300prci/fe300prci_driver.c - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/fe300prci/fe300prci_driver.c - - - bsp/drivers/fe300prci/fe300prci_driver.h - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/fe300prci/fe300prci_driver.h - - - bsp/drivers/plic/plic_driver.c - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/plic/plic_driver.c - - - bsp/drivers/plic/plic_driver.h - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/plic/plic_driver.h - - - bsp/env/freedom-e300-hifive1/dhrystone.lds - 1 - PARENT-3-PROJECT_LOC/bsp/env/freedom-e300-hifive1/dhrystone.lds - - - bsp/env/freedom-e300-hifive1/flash.lds - 1 - PARENT-3-PROJECT_LOC/bsp/env/freedom-e300-hifive1/flash.lds - - - bsp/env/freedom-e300-hifive1/init.c - 1 - PARENT-3-PROJECT_LOC/bsp/env/freedom-e300-hifive1/init.c - - - bsp/env/freedom-e300-hifive1/openocd.cfg - 1 - PARENT-3-PROJECT_LOC/bsp/env/freedom-e300-hifive1/openocd.cfg - - - bsp/env/freedom-e300-hifive1/platform.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/freedom-e300-hifive1/platform.h - - - bsp/include/sifive/bits.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/bits.h - - - bsp/include/sifive/const.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/const.h - - - bsp/include/sifive/devices - 2 - virtual:/virtual - - - bsp/include/sifive/sections.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/sections.h - - - bsp/include/sifive/smp.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/smp.h - - - bsp/libwrap/misc/write_hex.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/misc/write_hex.c - - - bsp/libwrap/stdlib/malloc.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/stdlib/malloc.c - - - bsp/libwrap/sys/_exit.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/_exit.c - - - bsp/libwrap/sys/close.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/close.c - - - bsp/libwrap/sys/execve.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/execve.c - - - bsp/libwrap/sys/fork.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/fork.c - - - bsp/libwrap/sys/fstat.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/fstat.c - - - bsp/libwrap/sys/getpid.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/getpid.c - - - bsp/libwrap/sys/isatty.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/isatty.c - - - bsp/libwrap/sys/kill.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/kill.c - - - bsp/libwrap/sys/link.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/link.c - - - bsp/libwrap/sys/lseek.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/lseek.c - - - bsp/libwrap/sys/open.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/open.c - - - bsp/libwrap/sys/openat.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/openat.c - - - bsp/libwrap/sys/puts.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/puts.c - - - bsp/libwrap/sys/read.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/read.c - - - bsp/libwrap/sys/sbrk.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/sbrk.c - - - bsp/libwrap/sys/stat.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/stat.c - - - bsp/libwrap/sys/stub.h - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/stub.h - - - bsp/libwrap/sys/times.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/times.c - - - bsp/libwrap/sys/unlink.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/unlink.c - - - bsp/libwrap/sys/wait.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/wait.c - - - bsp/libwrap/sys/weak_under_alias.h - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/weak_under_alias.h - - - bsp/libwrap/sys/write.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/write.c - - - bsp/include/sifive/devices/aon.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/aon.h - - - bsp/include/sifive/devices/clint.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/clint.h - - - bsp/include/sifive/devices/gpio.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/gpio.h - - - bsp/include/sifive/devices/otp.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/otp.h - - - bsp/include/sifive/devices/plic.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/plic.h - - - bsp/include/sifive/devices/prci.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/prci.h - - - bsp/include/sifive/devices/pwm.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/pwm.h - - - bsp/include/sifive/devices/spi.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/spi.h - - - bsp/include/sifive/devices/uart.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/uart.h - - - diff --git a/FreedomStudio/HiFive1/demo_gpio/demo_gpio OpenOCD.launch b/FreedomStudio/HiFive1/demo_gpio/demo_gpio OpenOCD.launch deleted file mode 100644 index daada7b..0000000 --- a/FreedomStudio/HiFive1/demo_gpio/demo_gpio OpenOCD.launch +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/FreedomStudio/HiFive1/demo_gpio/fe310-xsvd.json b/FreedomStudio/HiFive1/demo_gpio/fe310-xsvd.json deleted file mode 100644 index 1722e54..0000000 --- a/FreedomStudio/HiFive1/demo_gpio/fe310-xsvd.json +++ /dev/null @@ -1,2325 +0,0 @@ -{ - "schemaVersion": "0.2.4", - "contentVersion": "0.2.0", - "headerVersion": "0.2.0", - "device": { - "fe310": { - "displayName": "Freedom E310-G000", - "description": "The FE310-G000 is the first Freedom E300 SoC, and is the industry's first commercially available RISC-V SoC. The FE310-G000 is built around the E31 Core Complex instantiated in the Freedom E300 platform.", - "supplier": { - "name": "sifive", - "id": "1", - "displayName": "SiFive", - "fullName": "SiFive, Inc.", - "contact": "info@sifive.com" - }, - "busWidth": "32", - "resetMask": "all", - "resetValue": "0x00000000", - "access": "rw", - "headerGuardPrefix": "SIFIVE_DEVICES_FE310_", - "headerTypePrefix": "sifive_fe310_", - "headerInterruptPrefix": "sifive_fe310_interrupt_global_", - "headerInterruptEnumPrefix": "riscv_interrupts_global_", - "revision": "r0p0", - "numInterrupts": "51", - "priorityBits": "3", - "regWidth": "32", - "cores": { - "e31": { - "harts": "1", - "isa": "RV32IMAC", - "isaVersion": "2.2", - "mpu": "pmp", - "mmu": "none", - "localInterrupts": { - "machine_software": { - "description": "Machine Software Interrupt", - "value": "3" - }, - "machine_timer": { - "description": "Machine Timer Interrupt", - "value": "7" - }, - "machine_ext": { - "description": "Machine External Interrupt", - "value": "11" - } - }, - "numLocalInterrupts": "0" - } - }, - "peripherals": { - "clint": { - "description": "Core Complex Local Interruptor (CLINT) Peripheral", - "baseAddress": "0x02000000", - "size": "0x10000", - "registers": { - "msip": { - "description": "MSIP (Machine-mode Software Interrupts) Register per Hart", - "addressOffset": "0x0000", - "arraySize": "1" - } - }, - "clusters": { - "mtimecmp": { - "description": "Machine Time Compare Registers per Hart", - "addressOffset": "0x4000", - "arraySize": "1", - "registers": { - "low": { - "description": "Machine Compare Register Low", - "addressOffset": "0x0000" - }, - "high": { - "description": "Machine Compare Register High", - "addressOffset": "0x0004" - } - } - }, - "mtime": { - "description": "Machine Time Register", - "addressOffset": "0xBFF8", - "access": "r", - "registers": { - "low": { - "description": "Machine Time Register Low", - "addressOffset": "0x0000" - }, - "high": { - "description": "Machine Time Register High", - "addressOffset": "0x0004" - } - } - } - } - }, - "plic": { - "description": "Platform-Level Interrupt Controller (PLIC) Peripheral", - "baseAddress": "0x0C000000", - "size": "0x4000000", - "registers": { - "priorities": { - "arraySize": "52", - "description": "Interrupt Priorities Registers; 0 is reserved.", - "addressOffset": "0x0000", - "fields": { - "value": { - "description": "The priority for a given global interrupt", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "pendings": { - "arraySize": "2", - "description": "Interrupt Pending Bits Registers", - "addressOffset": "0x1000", - "access": "r" - } - }, - "clusters": { - "enablestarget0": { - "description": "Hart 0 Interrupt Enable Bits", - "addressOffset": "0x00002000", - "clusters": { - "m": { - "addressOffset": "0x0000", - "description": "Hart 0 M-mode Interrupt Enable Bits", - "registers": { - "enables": { - "arraySize": "2", - "description": "Interrupt Enable Bits Registers", - "addressOffset": "0x0000" - } - } - } - } - }, - "target0": { - "description": "Hart 0 Interrupt Thresholds", - "addressOffset": "0x00200000", - "clusters": { - "m": { - "addressOffset": "0x0000", - "description": "Hart 0 M-Mode Interrupt Threshold", - "registers": { - "threshold": { - "description": "The Priority Threshold Register", - "addressOffset": "0x0000", - "fields": { - "value": { - "description": "The priority threshold value", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "claimcomplete": { - "description": "The Interrupt Claim/Completion Register", - "addressOffset": "0x0004" - } - } - } - } - } - } - }, - "wdog": { - "description": "Watchdog Timer (WDT), part of Always-On Domain", - "baseAddress": "0x10000000", - "size": "0x0040", - "resetMask": "none", - "registers": { - "cfg": { - "description": "Watchdog Configuration Register", - "addressOffset": "0x0000", - "fields": { - "scale": { - "description": "Watchdog counter scale", - "bitOffset": "0", - "bitWidth": "4" - }, - "rsten": { - "description": "Watchdog full reset enable", - "bitOffset": "8", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "zerocmp": { - "description": "Watchdog zero on comparator", - "bitOffset": "9", - "bitWidth": "1" - }, - "enalways": { - "description": "Watchdog enable counter always", - "bitOffset": "12", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "encoreawake": { - "description": "Watchdog counter only when awake", - "bitOffset": "13", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "cmpip": { - "description": "Watchdog interrupt pending", - "bitOffset": "28", - "bitWidth": "1" - } - } - }, - "count": { - "description": "Watchdog Count Register", - "addressOffset": "0x0008" - }, - "scale": { - "description": "Watchdog Scale Register", - "addressOffset": "0x0010", - "fields": { - "value": { - "description": "Watchdog scale value", - "bitOffset": "0", - "bitWidth": "16" - } - } - }, - "feed": { - "description": "Watchdog Feed Address Register", - "addressOffset": "0x0018" - }, - "key": { - "description": "Watchdog Key Register", - "addressOffset": "0x001C" - }, - "cmp": { - "description": "Watchdog Compare Register", - "addressOffset": "0x0020", - "fields": { - "value": { - "description": "Watchdog compare value", - "bitOffset": "0", - "bitWidth": "16" - } - } - } - }, - "interrupts": { - "wdogcmp": { - "description": "Watchdog Compare Interrupt", - "value": "1" - } - } - }, - "rtc": { - "description": "Real-Time Clock (RTC), part of Always-On Domain", - "baseAddress": "0x10000040", - "size": "0x0030", - "resetMask": "none", - "registers": { - "cfg": { - "description": "RTC Configuration Register", - "addressOffset": "0x0000", - "fields": { - "scale": { - "description": "RTC clock rate scale", - "bitOffset": "0", - "bitWidth": "4" - }, - "enalways": { - "description": "RTC counter enable", - "bitOffset": "12", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "cmpip": { - "description": "RTC comparator interrupt pending", - "bitOffset": "28", - "bitWidth": "1", - "access": "r" - } - } - }, - "low": { - "description": "RTC Counter Register Low", - "addressOffset": "0x0008" - }, - "high": { - "description": "RTC Counter Register High", - "addressOffset": "0x000C", - "fields": { - "value": { - "description": "RTC counter register, high bits", - "bitOffset": "0", - "bitWidth": "16" - } - } - }, - "scale": { - "description": "RTC Scale Register", - "addressOffset": "0x0010" - }, - "cmp": { - "description": "RTC Compare Register", - "addressOffset": "0x0020" - } - }, - "interrupts": { - "rtccmp": { - "description": "RTC Compare Interrupt", - "value": "2" - } - } - }, - "pmu": { - "description": "Power-Management Unit (PMU), part of Always-On Domain", - "baseAddress": "0x10000100", - "size": "0x0050", - "resetMask": "none", - "registers": { - "wakeupi": { - "description": "Wakeup program instruction Registers", - "addressOffset": "0x0000", - "arraySize": "8" - }, - "sleepi": { - "description": "Sleep Program Instruction Registers", - "addressOffset": "0x0020", - "arraySize": "8" - }, - "ie": { - "description": "PMU Interrupt Enables Register", - "addressOffset": "0x0040", - "fields": { - "rtc": { - "description": "RTC Comparator active", - "bitOffset": "1", - "bitWidth": "1" - }, - "dwakeup": { - "description": "dwakeup_n pin active", - "bitOffset": "2", - "bitWidth": "1" - } - } - }, - "cause": { - "description": "PMU Wakeup Cause Register", - "addressOffset": "0x0044", - "fields": { - "wakeupcause": { - "description": "Wakeup cause", - "bitOffset": "0", - "bitWidth": "2", - "access": "r", - "enumerations": { - "wakeupcause-enum": { - "description": "Wakeup Cause Values Enumeration", - "values": { - "0": { - "displayName": "reset", - "description": "Reset Wakeup" - }, - "1": { - "displayName": "rtc", - "description": "RTC Wakeup" - }, - "2": { - "displayName": "dwakeup", - "description": "Digital input Wakeup" - }, - "*": { - "displayName": "undefined" - } - } - } - } - }, - "resetcause": { - "description": "Reset cause", - "bitOffset": "8", - "bitWidth": "2", - "access": "r", - "enumerations": { - "resetcause-enum": { - "description": "Reset Cause Values Enumeration", - "values": { - "1": { - "displayName": "external", - "description": "External reset" - }, - "2": { - "displayName": "watchdog", - "description": "Watchdog timer reset" - }, - "*": { - "displayName": "undefined" - } - } - } - } - } - } - }, - "sleep": { - "description": "PMU Initiate Sleep Sequence Register", - "addressOffset": "0x0048" - }, - "key": { - "description": "PMU Key Register", - "addressOffset": "0x004C" - } - } - }, - "aon": { - "description": "Always-On (AON) Domain", - "baseAddress": "0x10000070", - "size": "0x0090", - "resetMask": "none", - "registers": { - "lfrosccfg": { - "description": "Internal Programmable Low-Frequency Ring Oscillator Register", - "addressOffset": "0x0000", - "fields": { - "div": { - "description": "LFROSC divider", - "bitOffset": "0", - "bitWidth": "6", - "resetMask": "all", - "resetValue": "0x04" - }, - "trim": { - "description": "LFROSC trim value", - "bitOffset": "16", - "bitWidth": "5", - "resetMask": "all", - "resetValue": "0x10" - }, - "en": { - "description": "LFROSC enable", - "bitOffset": "30", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1" - }, - "rdy": { - "description": "LFROSC ready", - "bitOffset": "31", - "bitWidth": "1", - "access": "r" - } - } - }, - "backup": { - "description": "Backup Registers", - "addressOffset": "0x0010", - "arraySize": "32" - } - } - }, - "prci": { - "description": "Power, Reset, Clock, Interrupt (PRCI) Peripheral", - "baseAddress": "0x10008000", - "size": "0x8000", - "registers": { - "hfrosccfg": { - "description": "Internal Trimmable Programmable 72 MHz Oscillator Register", - "addressOffset": "0x0000", - "fields": { - "div": { - "description": "HFROSC divider", - "bitOffset": "0", - "bitWidth": "6", - "resetMask": "all", - "resetValue": "0x04" - }, - "trim": { - "description": "HFROSC trim value", - "bitOffset": "16", - "bitWidth": "5", - "resetMask": "all", - "resetValue": "0x10" - }, - "en": { - "description": "HFROSC enable", - "bitOffset": "30", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1" - }, - "rdy": { - "description": "HFROSC ready", - "bitOffset": "31", - "bitWidth": "1", - "access": "r" - } - } - }, - "hfxosccfg": { - "description": "External 16 MHz Crystal Oscillator Register", - "addressOffset": "0x0004", - "fields": { - "en": { - "description": "HFXOSC enable", - "bitOffset": "30", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1" - }, - "rdy": { - "description": "HFXOSC ready", - "bitOffset": "31", - "bitWidth": "1", - "access": "r" - } - } - }, - "pllcfg": { - "description": "Internal High-Frequency PLL (HFPLL) Register", - "addressOffset": "0x0008", - "fields": { - "r": { - "description": "PLL R input divider value", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x1", - "enumerations": { - "pllr-enum": { - "description": "Reference Clock R Divide Ratio Enumeration", - "values": { - "0": { - "displayName": "/1", - "headerName": "div1", - "description": "Unchanged" - }, - "1": { - "displayName": "/2", - "headerName": "div2", - "description": "Divided by 2" - }, - "2": { - "displayName": "/3", - "headerName": "div3", - "description": "Divided by 3" - }, - "3": { - "displayName": "/4", - "headerName": "div4", - "description": "Divided by 4" - } - } - } - } - }, - "f": { - "description": "PLL F multiplier value", - "bitOffset": "4", - "bitWidth": "6", - "resetMask": "all", - "resetValue": "0x1F", - "enumerations": { - "pllf-enum": { - "description": "Reference Clock F Multiplier Ratio Enumeration", - "values": { - "0": { - "displayName": "*2", - "headerName": "mul2", - "description": "Multiplied by 2" - }, - "1": { - "displayName": "*4", - "headerName": "mul4", - "description": "Multiplied by 4" - }, - "2": { - "displayName": "*6", - "headerName": "mul6", - "description": "Multiplied by 6" - }, - "3": { - "displayName": "*8", - "headerName": "mul8", - "description": "Multiplied by 8" - }, - "4": { - "displayName": "*10", - "headerName": "mul10", - "description": "Multiplied by 10" - }, - "5": { - "displayName": "*12", - "headerName": "mul12", - "description": "Multiplied by 12" - }, - "6": { - "displayName": "*14", - "headerName": "mul14", - "description": "Multiplied by 14" - }, - "7": { - "displayName": "*16", - "headerName": "mul16", - "description": "Multiplied by 16" - }, - "8": { - "displayName": "*18", - "headerName": "mul18", - "description": "Multiplied by 18" - }, - "9": { - "displayName": "*20", - "headerName": "mul20", - "description": "Multiplied by 20" - }, - "10": { - "displayName": "*22", - "headerName": "mul22", - "description": "Multiplied by 22" - }, - "11": { - "displayName": "*24", - "headerName": "mul24", - "description": "Multiplied by 24" - }, - "12": { - "displayName": "*26", - "headerName": "mul26", - "description": "Multiplied by 26" - }, - "13": { - "displayName": "*28", - "headerName": "mul28", - "description": "Multiplied by 28" - }, - "14": { - "displayName": "*30", - "headerName": "mul30", - "description": "Multiplied by 30" - }, - "15": { - "displayName": "*32", - "headerName": "mul32", - "description": "Multiplied by 32" - }, - "16": { - "displayName": "*34", - "headerName": "mul34", - "description": "Multiplied by 34" - }, - "17": { - "displayName": "*36", - "headerName": "mul36", - "description": "Multiplied by 36" - }, - "18": { - "displayName": "*38", - "headerName": "mul38", - "description": "Multiplied by 38" - }, - "19": { - "displayName": "*40", - "headerName": "mul40", - "description": "Multiplied by 40" - }, - "20": { - "displayName": "*42", - "headerName": "mul42", - "description": "Multiplied by 42" - }, - "21": { - "displayName": "*44", - "headerName": "mul44", - "description": "Multiplied by 44" - }, - "22": { - "displayName": "*46", - "headerName": "mul46", - "description": "Multiplied by 46" - }, - "23": { - "displayName": "*48", - "headerName": "mul48", - "description": "Multiplied by 48" - }, - "24": { - "displayName": "*50", - "headerName": "mul50", - "description": "Multiplied by 50" - }, - "25": { - "displayName": "*52", - "headerName": "mul52", - "description": "Multiplied by 52" - }, - "26": { - "displayName": "*54", - "headerName": "mul54", - "description": "Multiplied by 54" - }, - "27": { - "displayName": "*56", - "headerName": "mul56", - "description": "Multiplied by 56" - }, - "28": { - "displayName": "*58", - "headerName": "mul58", - "description": "Multiplied by 58" - }, - "29": { - "displayName": "*60", - "headerName": "mul60", - "description": "Multiplied by 60" - }, - "30": { - "displayName": "*62", - "headerName": "mul62", - "description": "Multiplied by 62" - }, - "31": { - "displayName": "*64", - "headerName": "mul64", - "description": "Multiplied by 64" - }, - "32": { - "displayName": "*66", - "headerName": "mul66", - "description": "Multiplied by 66" - }, - "33": { - "displayName": "*68", - "headerName": "mul68", - "description": "Multiplied by 68" - }, - "34": { - "displayName": "*70", - "headerName": "mul70", - "description": "Multiplied by 70" - }, - "35": { - "displayName": "*72", - "headerName": "mul72", - "description": "Multiplied by 72" - }, - "36": { - "displayName": "*74", - "headerName": "mul74", - "description": "Multiplied by 74" - }, - "37": { - "displayName": "*76", - "headerName": "mul76", - "description": "Multiplied by 76" - }, - "38": { - "displayName": "*78", - "headerName": "mul78", - "description": "Multiplied by 78" - }, - "39": { - "displayName": "*80", - "headerName": "mul80", - "description": "Multiplied by 80" - }, - "40": { - "displayName": "*82", - "headerName": "mul82", - "description": "Multiplied by 82" - }, - "41": { - "displayName": "*84", - "headerName": "mul84", - "description": "Multiplied by 84" - }, - "42": { - "displayName": "*86", - "headerName": "mul86", - "description": "Multiplied by 86" - }, - "43": { - "displayName": "*88", - "headerName": "mul88", - "description": "Multiplied by 88" - }, - "44": { - "displayName": "*90", - "headerName": "mul90", - "description": "Multiplied by 90" - }, - "45": { - "displayName": "*92", - "headerName": "mul92", - "description": "Multiplied by 92" - }, - "46": { - "displayName": "*94", - "headerName": "mul94", - "description": "Multiplied by 94" - }, - "47": { - "displayName": "*96", - "headerName": "mul96", - "description": "Multiplied by 96" - }, - "48": { - "displayName": "*98", - "headerName": "mul98", - "description": "Multiplied by 98" - }, - "49": { - "displayName": "*100", - "headerName": "mul100", - "description": "Multiplied by 100" - }, - "50": { - "displayName": "*102", - "headerName": "mul102", - "description": "Multiplied by 102" - }, - "51": { - "displayName": "*104", - "headerName": "mul104", - "description": "Multiplied by 104" - }, - "52": { - "displayName": "*106", - "headerName": "mul106", - "description": "Multiplied by 106" - }, - "53": { - "displayName": "*108", - "headerName": "mul108", - "description": "Multiplied by 108" - }, - "54": { - "displayName": "*110", - "headerName": "mul110", - "description": "Multiplied by 110" - }, - "55": { - "displayName": "*112", - "headerName": "mul112", - "description": "Multiplied by 112" - }, - "56": { - "displayName": "*114", - "headerName": "mul114", - "description": "Multiplied by 114" - }, - "57": { - "displayName": "*116", - "headerName": "mul116", - "description": "Multiplied by 116" - }, - "58": { - "displayName": "*118", - "headerName": "mul118", - "description": "Multiplied by 118" - }, - "59": { - "displayName": "*120", - "headerName": "mul120", - "description": "Multiplied by 120" - }, - "60": { - "displayName": "*122", - "headerName": "mul122", - "description": "Multiplied by 122" - }, - "61": { - "displayName": "*124", - "headerName": "mul124", - "description": "Multiplied by 124" - }, - "62": { - "displayName": "*126", - "headerName": "mul126", - "description": "Multiplied by 126" - }, - "63": { - "displayName": "*128", - "headerName": "mul128", - "description": "Multiplied by 128" - } - } - } - } - }, - "q": { - "description": "PLL Q output divider value", - "bitOffset": "10", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x3", - "enumerations": { - "pllq-enum": { - "description": "Reference Clock Q Divide Ratio Enumeration", - "values": { - "*": { - "displayName": "n/a", - "description": "Not supported" - }, - "1": { - "displayName": "/2", - "headerName": "div2", - "description": "Divided by 2" - }, - "2": { - "displayName": "/4", - "headerName": "div4", - "description": "Divided by 4" - }, - "3": { - "displayName": "/8", - "headerName": "div8", - "description": "Divided by 8" - } - } - } - } - }, - "sel": { - "description": "PLL select", - "bitOffset": "16", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "refsel": { - "description": "PLL reference select", - "bitOffset": "17", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1" - }, - "bypass": { - "description": "PLL bypass", - "bitOffset": "18", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1" - }, - "lock": { - "description": "PLL lock indicator", - "bitOffset": "31", - "bitWidth": "1", - "access": "r" - } - } - }, - "plloutdiv": { - "description": "PLL Output Divider", - "addressOffset": "0x000C" - } - } - }, - "otp": { - "description": "One-Time Programmable Memory (OTP) Peripheral", - "baseAddress": "0x10010000", - "size": "0x1000", - "registers": { - "lock": { - "description": "Programmed-I/O Lock Register", - "addressOffset": "0x0000" - }, - "ck": { - "description": "Device Clock Signal Register", - "addressOffset": "0x0004" - }, - "oe": { - "description": "Device Output-Enable Signal Register", - "addressOffset": "0x0008" - }, - "sel": { - "description": "Device Chip-Select Signal Register", - "addressOffset": "0x000C" - }, - "we": { - "description": "Device Write-Enable Signal Register", - "addressOffset": "0x0010" - }, - "mr": { - "description": "Device Mode Register", - "addressOffset": "0x0014" - }, - "mrr": { - "description": "Read-Voltage Regulator Control Register", - "addressOffset": "0x0018" - }, - "mpp": { - "description": "Write-Voltage Charge Pump Control Register", - "addressOffset": "0x001C" - }, - "vrren": { - "description": "Read-Voltage Enable Register", - "addressOffset": "0x0020" - }, - "vppen": { - "description": "Write-Voltage Enable Register", - "addressOffset": "0x0024" - }, - "a": { - "description": "Device Address Register", - "addressOffset": "0x0028" - }, - "d": { - "description": "Device Data Input Register", - "addressOffset": "0x002C" - }, - "q": { - "description": "Device Data Output Register", - "addressOffset": "0x0030" - }, - "rsctrl": { - "description": "Read Sequencer Control Register", - "addressOffset": "0x0034", - "fields": { - "scale": { - "description": "OTP timescale", - "bitOffset": "0", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x1" - }, - "tas": { - "description": "Address setup time", - "bitOffset": "3", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "trp": { - "description": "Read pulse time", - "bitOffset": "4", - "bitWidth": "1" - }, - "tracc": { - "description": "Read access time", - "bitOffset": "5", - "bitWidth": "1" - } - } - } - } - }, - "gpio": { - "description": "General Purpose Input/Output Controller (GPIO) Peripheral", - "baseAddress": "0x10012000", - "size": "0x1000", - "registers": { - "value": { - "description": "Pin Value Register", - "addressOffset": "0x000", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Value Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "inputen": { - "description": "Pin Input Enable Register", - "addressOffset": "0x004", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Pin Input Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "outputen": { - "description": "Pin Output Enable Register", - "addressOffset": "0x008", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Pin Output Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "port": { - "description": "Output Port Value Register", - "addressOffset": "0x00C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Output Port Value Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "pue": { - "description": "Internal Pull-up Enable Register", - "addressOffset": "0x010", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Internal Pull-up Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "ds": { - "description": "Pin Drive Strength Register", - "addressOffset": "0x014", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Pin Drive Strength Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "riseie": { - "description": "Rise Interrupt Enable Register", - "addressOffset": "0x018", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Rise Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "riseip": { - "description": "Rise Interrupt Pending Register", - "addressOffset": "0x01C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Rise Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "fallie": { - "description": "Fall Interrupt Enable Register", - "addressOffset": "0x020", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Fall Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "fallip": { - "description": "Fall Interrupt Pending Register", - "addressOffset": "0x024", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Fall Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "highie": { - "description": "High Interrupt Enable Register", - "addressOffset": "0x028", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "High Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "highip": { - "description": "High Interrupt Pending Register", - "addressOffset": "0x02C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "High Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "lowie": { - "description": "Low Interrupt Enable Register", - "addressOffset": "0x030", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Low Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "lowip": { - "description": "Low Interrupt Pending Register", - "addressOffset": "0x034", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Low Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "iofen": { - "description": "HW I/O Function Enable Register", - "addressOffset": "0x038", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "HW I/O Function Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "iofsel": { - "description": "HW I/O Function Select Register", - "addressOffset": "0x03C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "HW I/O Function Select Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "outxor": { - "description": "Output XOR (invert) Register", - "addressOffset": "0x040", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Output XOR Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - } - }, - "interrupts": { - "gpio0": { - "description": "GPIO0 Interrupt", - "value": "8" - }, - "gpio1": { - "description": "GPIO1 Interrupt", - "value": "9" - }, - "gpio2": { - "description": "GPIO2 Interrupt", - "value": "10" - }, - "gpio3": { - "description": "GPIO3 Interrupt", - "value": "11" - }, - "gpio4": { - "description": "GPIO4 Interrupt", - "value": "12" - }, - "gpio5": { - "description": "GPIO5 Interrupt", - "value": "13" - }, - "gpio6": { - "description": "GPIO6 Interrupt", - "value": "14" - }, - "gpio7": { - "description": "GPIO7 Interrupt", - "value": "15" - }, - "gpio8": { - "description": "GPIO8 Interrupt", - "value": "16" - }, - "gpio9": { - "description": "GPIO9 Interrupt", - "value": "17" - }, - "gpio10": { - "description": "GPIO10 Interrupt", - "value": "18" - }, - "gpio11": { - "description": "GPIO11 Interrupt", - "value": "19" - }, - "gpio12": { - "description": "GPIO12 Interrupt", - "value": "20" - }, - "gpio13": { - "description": "GPIO13 Interrupt", - "value": "21" - }, - "gpio14": { - "description": "GPIO14 Interrupt", - "value": "22" - }, - "gpio15": { - "description": "GPIO15 Interrupt", - "value": "23" - }, - "gpio16": { - "description": "GPIO16 Interrupt", - "value": "24" - }, - "gpio17": { - "description": "GPIO17 Interrupt", - "value": "25" - }, - "gpio18": { - "description": "GPIO18 Interrupt", - "value": "26" - }, - "gpio19": { - "description": "GPIO19 Interrupt", - "value": "27" - }, - "gpio20": { - "description": "GPIO20 Interrupt", - "value": "28" - }, - "gpio21": { - "description": "GPIO21 Interrupt", - "value": "29" - }, - "gpio22": { - "description": "GPIO22 Interrupt", - "value": "30" - }, - "gpio23": { - "description": "GPIO23 Interrupt", - "value": "31" - }, - "gpio24": { - "description": "GPIO24 Interrupt", - "value": "32" - }, - "gpio25": { - "description": "GPIO25 Interrupt", - "value": "33" - }, - "gpio26": { - "description": "GPIO26 Interrupt", - "value": "34" - }, - "gpio27": { - "description": "GPIO27 Interrupt", - "value": "35" - }, - "gpio28": { - "description": "GPIO28 Interrupt", - "value": "36" - }, - "gpio29": { - "description": "GPIO29 Interrupt", - "value": "37" - }, - "gpio30": { - "description": "GPIO30 Interrupt", - "value": "38" - }, - "gpio31": { - "description": "GPIO31 Interrupt", - "value": "39" - } - } - }, - "uart0": { - "description": "Universal Asynchronous Receiver/Transmitter (UART) Peripheral", - "baseAddress": "0x10013000", - "size": "0x1000", - "resetMask": "none", - "groupName": "uart", - "registers": { - "txdata": { - "description": "Transmit Data Register", - "addressOffset": "0x000", - "fields": { - "data": { - "description": "Transmit data", - "bitOffset": "0", - "bitWidth": "8" - }, - "full": { - "description": "Transmit FIFO full", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "rxdata": { - "description": "Receive Data Register", - "addressOffset": "0x004", - "resetMask": "none", - "fields": { - "data": { - "description": "Received data", - "bitOffset": "0", - "bitWidth": "8", - "access": "r" - }, - "empty": { - "description": "Receive FIFO empty", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "txctrl": { - "description": "Transmit Control Register ", - "addressOffset": "0x008", - "fields": { - "txen": { - "description": "Transmit enable", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "nstop": { - "description": "Number of stop bits", - "bitOffset": "1", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "txcnt": { - "description": "Transmit watermark level", - "bitOffset": "16", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "rxctrl": { - "description": "Receive Control Register", - "addressOffset": "0x00C", - "fields": { - "rxen": { - "description": "Receive enable", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "rxcnt": { - "description": "Receive watermark level", - "bitOffset": "16", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ie": { - "description": "Interrupt Enable Register", - "addressOffset": "0x010", - "fields": { - "txwm": { - "description": "Transmit watermark interrupt enable", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "rxwm": { - "description": "Receive watermark interrupt enable", - "bitOffset": "1", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ip": { - "description": "Interrupt Pending Register", - "addressOffset": "0x014", - "access": "r", - "fields": { - "txwm": { - "description": "Transmit watermark interrupt pending", - "bitOffset": "0", - "bitWidth": "1" - }, - "rxwm": { - "description": "Receive watermark interrupt pending", - "bitOffset": "1", - "bitWidth": "1" - } - } - }, - "div": { - "description": "Baud Rate Divisor Register", - "addressOffset": "0x018", - "fields": { - "value": { - "description": "Baud rate divisor", - "bitOffset": "0", - "bitWidth": "16", - "resetMask": "all", - "resetValue": "0x0000FFFF" - } - } - } - }, - "interrupts": { - "uart0": { - "description": "UART0 Interrupt", - "value": "3" - } - } - }, - "spi0": { - "description": "Serial Peripheral Interface (SPI) Peripheral", - "baseAddress": "0x10014000", - "size": "0x1000", - "resetMask": "none", - "groupName": "spi", - "registers": { - "sckdiv": { - "description": "Serial clock divisor Register", - "addressOffset": "0x000", - "fields": { - "scale": { - "description": "Divisor for serial clock", - "bitOffset": "0", - "bitWidth": "12", - "resetMask": "all", - "resetValue": "0x003" - } - } - }, - "sckmode": { - "description": "Serial Clock Mode Register", - "addressOffset": "0x004", - "fields": { - "pha": { - "description": "Serial clock phase", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "pol": { - "description": "Serial clock polarity", - "bitOffset": "1", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "csid": { - "description": "Chip Select ID Register", - "addressOffset": "0x010", - "resetMask": "all", - "resetValue": "0x00000000" - }, - "csdef": { - "description": "Chip Select Default Register", - "addressOffset": "0x014", - "resetMask": "all", - "resetValue": "0x00000001" - }, - "csmode": { - "description": "Chip Select Mode Register", - "addressOffset": "0x018", - "fields": { - "mode": { - "description": "Chip select mode", - "bitOffset": "0", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0", - "enumerations": { - "csmode-enum": { - "description": "Chip Select Modes Enumeration", - "values": { - "0": { - "displayName": "auto", - "description": "Assert/de-assert CS at the beginning/end of each frame" - }, - "*": { - "displayName": "reserved" - }, - "2": { - "displayName": "hold", - "description": "Keep CS continuously asserted after the initial frame" - }, - "3": { - "displayName": "off", - "description": "Disable hardware control of the CS pin" - } - } - } - } - } - } - }, - "delay0": { - "description": "Delay Control 0 Register", - "addressOffset": "0x028", - "fields": { - "cssck": { - "description": "CS to SCK Delay", - "bitOffset": "0", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - }, - "sckcs": { - "description": "SCK to CS Delay", - "bitOffset": "16", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - } - } - }, - "delay1": { - "description": "Delay Control 1 Register", - "addressOffset": "0x02C", - "fields": { - "intercs": { - "description": "Minimum CS inactive time", - "bitOffset": "0", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - }, - "interxfr": { - "description": "Maximum interframe delay", - "bitOffset": "16", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - } - } - }, - "fmt": { - "description": "Frame Format Register", - "addressOffset": "0x040", - "fields": { - "proto": { - "description": "SPI Protocol", - "bitOffset": "0", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0", - "enumerations": { - "proto-enum": { - "description": "SPI Protocol Enumeration", - "values": { - "0": { - "displayName": "single", - "description": "DQ0 (MOSI), DQ1 (MISO)" - }, - "1": { - "displayName": "dual", - "description": "DQ0, DQ1" - }, - "2": { - "displayName": "quad", - "description": "DQ0, DQ1, DQ2, DQ3" - }, - "*": { - "displayName": "reserved" - } - } - } - } - }, - "endian": { - "description": "SPI endianness", - "bitOffset": "2", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0", - "enumerations": { - "endian-enum": { - "description": "SPI Endianness Enumeration", - "values": { - "0": { - "displayName": "msb", - "description": "Transmit most-significant bit (MSB) first" - }, - "1": { - "displayName": "lsb", - "description": "Transmit least-significant bit (LSB) first" - } - } - } - } - }, - "dir": { - "description": "SPI I/O Direction", - "bitOffset": "3", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1", - "enumerations": { - "dir-enum": { - "description": "SPI I/O Direction Enumeration", - "values": { - "0": { - "displayName": "rx", - "description": "For dual and quad protocols, the DQ pins are tri-stated. For the single protocol, the DQ0 pin is driven with the transmit data as normal." - }, - "1": { - "displayName": "tx", - "description": "The receive FIFO is not populated." - } - } - } - } - }, - "len": { - "description": "Number of bits per frame", - "bitOffset": "16", - "bitWidth": "4", - "resetMask": "all", - "resetValue": "0x8" - } - } - }, - "txdata": { - "description": "Tx FIFO Data Register", - "addressOffset": "0x048", - "fields": { - "data": { - "description": "Transmit data", - "bitOffset": "0", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x00" - }, - "full": { - "description": "FIFO full flag", - "bitOffset": "31", - "bitWidth": "1", - "access": "r" - } - } - }, - "rxdata": { - "description": "Rx FIFO Data Register", - "addressOffset": "0x04C", - "resetMask": "none", - "access": "r", - "fields": { - "data": { - "description": "Received data", - "bitOffset": "0", - "bitWidth": "8" - }, - "empty": { - "description": "FIFO empty flag", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "txmark": { - "description": "Tx FIFO Watermark Register", - "addressOffset": "0x050", - "fields": { - "value": { - "description": "Transmit watermark", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x1" - } - } - }, - "rxmark": { - "description": "Rx FIFO Watermark Register", - "addressOffset": "0x054", - "fields": { - "value": { - "description": "Receive watermark", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "fctrl": { - "description": "Flash Interface Control Register", - "addressOffset": "0x060", - "fields": { - "en": { - "description": "SPI Flash Mode Select", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1" - } - } - }, - "ffmt": { - "description": "Flash Instruction Format Register", - "addressOffset": "0x064", - "fields": { - "cmden": { - "description": "Enable sending of command", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1" - }, - "addrlen": { - "description": "Number of address bytes(0 to 4)", - "bitOffset": "1", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x3" - }, - "padcnt": { - "description": "Number of dummy cycles", - "bitOffset": "4", - "bitWidth": "4", - "resetMask": "all", - "resetValue": "0x0" - }, - "cmdproto": { - "description": "Protocol for transmitting command", - "bitOffset": "8", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0" - }, - "addrproto": { - "description": "Protocol for transmitting address and padding", - "bitOffset": "10", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0" - }, - "dataproto": { - "description": "Protocol for receiving data bytes", - "bitOffset": "12", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0" - }, - "cmdcode": { - "description": "Value of command byte", - "bitOffset": "16", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x03" - }, - "padcode": { - "description": "First 8 bits to transmit during dummy cycles", - "bitOffset": "24", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ie": { - "description": "Interrupt Enable Register", - "addressOffset": "0x070", - "fields": { - "txwm": { - "description": "Transmit watermark enable", - "bitOffset": "0", - "bitWidth": "1", - "access": "r", - "resetMask": "all", - "resetValue": "0x0" - }, - "rxwm": { - "description": "Receive watermark enable", - "bitOffset": "1", - "bitWidth": "1", - "access": "r", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ip": { - "description": "Interrupt Pending Register", - "addressOffset": "0x074", - "fields": { - "txwm": { - "description": "Transmit watermark pending", - "bitOffset": "0", - "bitWidth": "1", - "access": "r" - }, - "rxwm": { - "description": "Receive watermark pending", - "bitOffset": "1", - "bitWidth": "1", - "access": "r" - } - } - } - }, - "interrupts": { - "spi0": { - "description": "SPI0 Interrupt", - "value": "5" - } - } - }, - "pwm0": { - "description": "Pulse-Width Modulation (PWM) Peripheral", - "baseAddress": "0x10015000", - "size": "0x1000", - "resetMask": "none", - "registers": { - "cfg": { - "description": "Configuration Register", - "addressOffset": "0x000", - "fields": { - "scale": { - "description": "Counter scale", - "bitOffset": "0", - "bitWidth": "4" - }, - "sticky": { - "description": "Sticky - disallow clearing pwmcmpXip bits", - "bitOffset": "8", - "bitWidth": "1" - }, - "zerocmp": { - "description": "Zero - counter resets to zero after match", - "bitOffset": "9", - "bitWidth": "1" - }, - "deglitch": { - "description": "Deglitch - latch pwmcmpXip within same cycle", - "bitOffset": "10", - "bitWidth": "1" - }, - "enalways": { - "description": "Enable always - run continuously", - "bitOffset": "12", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "enoneshot": { - "description": "enable one shot - run one cycle", - "bitOffset": "13", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "cmp0center": { - "description": "PWM0 Compare Center", - "bitOffset": "16", - "bitWidth": "1" - }, - "cmp1center": { - "description": "PWM1 Compare Center", - "bitOffset": "17", - "bitWidth": "1" - }, - "cmp2center": { - "description": "PWM2 Compare Center", - "bitOffset": "18", - "bitWidth": "1" - }, - "cmp3center": { - "description": "PWM3 Compare Center", - "bitOffset": "19", - "bitWidth": "1" - }, - "cmp0gang": { - "description": "PWM0/PWM1 Compare Gang", - "bitOffset": "24", - "bitWidth": "1" - }, - "cmp1gang": { - "description": "PWM1/PWM2 Compare Gang", - "bitOffset": "25", - "bitWidth": "1" - }, - "cmp2gang": { - "description": "PWM2/PWM3 Compare Gang", - "bitOffset": "26", - "bitWidth": "1" - }, - "cmp3gang": { - "description": "PWM3/PWM0 Compare Gang", - "bitOffset": "27", - "bitWidth": "1" - }, - "cmp0ip": { - "description": "PWM0 Interrupt Pending", - "bitOffset": "28", - "bitWidth": "1" - }, - "cmp1ip": { - "description": "PWM1 Interrupt Pending", - "bitOffset": "29", - "bitWidth": "1" - }, - "cmp2ip": { - "description": "PWM2 Interrupt Pending", - "bitOffset": "30", - "bitWidth": "1" - }, - "cmp3ip": { - "description": "PWM3 Interrupt Pending", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "count": { - "description": "Configuration Register", - "addressOffset": "0x008" - }, - "scale": { - "description": "Scale Register", - "addressOffset": "0x010", - "fields": { - "value": { - "description": "Compare value", - "bitOffset": "0", - "bitWidth": "8" - } - } - }, - "cmp": { - "arraySize": "4", - "description": "Compare Registers", - "addressOffset": "0x020", - "fields": { - "value": { - "description": "Compare value", - "bitOffset": "0", - "bitWidth": "8" - } - } - } - }, - "interrupts": { - "pwm0cmp0": { - "description": "PWM0 Compare 0 Interrupt", - "value": "40" - }, - "pwm0cmp1": { - "description": "PWM0 Compare 1 Interrupt", - "value": "41" - }, - "pwm0cmp2": { - "description": "PWM0 Compare 2 Interrupt", - "value": "42" - }, - "pwm0cmp3": { - "description": "PWM0 Compare 3 Interrupt", - "value": "43" - } - } - }, - "uart1": { - "baseAddress": "0x10023000", - "derivedFrom": "uart0", - "groupName": "uart", - "interrupts": { - "uart1": { - "description": "UART1 Interrupt", - "value": "4" - } - } - }, - "spi1": { - "baseAddress": "0x10024000", - "derivedFrom": "spi0", - "groupName": "spi", - "interrupts": { - "spi1": { - "description": "SPI1 Interrupt", - "value": "6" - } - } - }, - "pwm1": { - "description": "Pulse-Width Modulation (PWM) Peripheral", - "baseAddress": "0x10025000", - "groupName": "pwm", - "size": "0x1000", - "resetMask": "none", - "groupName": "pwm", - "registers": { - "cfg": { - "description": "Configuration Register", - "addressOffset": "0x000", - "fields": { - "scale": { - "description": "Counter scale", - "bitOffset": "0", - "bitWidth": "4" - }, - "sticky": { - "description": "Sticky - disallow clearing pwmcmpXip bits", - "bitOffset": "8", - "bitWidth": "1" - }, - "zerocmp": { - "description": "Zero - counter resets to zero after match", - "bitOffset": "9", - "bitWidth": "1" - }, - "deglitch": { - "description": "Deglitch - latch pwmcmpXip within same cycle", - "bitOffset": "10", - "bitWidth": "1" - }, - "enalways": { - "description": "Enable always - run continuously", - "bitOffset": "12", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "enoneshot": { - "description": "enable one shot - run one cycle", - "bitOffset": "13", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "cmp0center": { - "description": "PWM0 Compare Center", - "bitOffset": "16", - "bitWidth": "1" - }, - "cmp1center": { - "description": "PWM1 Compare Center", - "bitOffset": "17", - "bitWidth": "1" - }, - "cmp2center": { - "description": "PWM2 Compare Center", - "bitOffset": "18", - "bitWidth": "1" - }, - "cmp3center": { - "description": "PWM3 Compare Center", - "bitOffset": "19", - "bitWidth": "1" - }, - "cmp0gang": { - "description": "PWM0/PWM1 Compare Gang", - "bitOffset": "24", - "bitWidth": "1" - }, - "cmp1gang": { - "description": "PWM1/PWM2 Compare Gang", - "bitOffset": "25", - "bitWidth": "1" - }, - "cmp2gang": { - "description": "PWM2/PWM3 Compare Gang", - "bitOffset": "26", - "bitWidth": "1" - }, - "cmp3gang": { - "description": "PWM3/PWM0 Compare Gang", - "bitOffset": "27", - "bitWidth": "1" - }, - "cmp0ip": { - "description": "PWM0 Interrupt Pending", - "bitOffset": "28", - "bitWidth": "1" - }, - "cmp1ip": { - "description": "PWM1 Interrupt Pending", - "bitOffset": "29", - "bitWidth": "1" - }, - "cmp2ip": { - "description": "PWM2 Interrupt Pending", - "bitOffset": "30", - "bitWidth": "1" - }, - "cmp3ip": { - "description": "PWM3 Interrupt Pending", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "count": { - "description": "Configuration Register", - "addressOffset": "0x008" - }, - "scale": { - "description": "Scale Register", - "addressOffset": "0x010", - "fields": { - "value": { - "description": "Compare value", - "bitOffset": "0", - "bitWidth": "16" - } - } - }, - "cmp": { - "arraySize": "4", - "description": "Compare Registers", - "addressOffset": "0x020", - "fields": { - "value": { - "description": "Compare value", - "bitOffset": "0", - "bitWidth": "16" - } - } - } - }, - "interrupts": { - "pwm1cmp0": { - "description": "PWM1 Compare 0 Interrupt", - "value": "44" - }, - "pwm1cmp1": { - "description": "PWM1 Compare 1 Interrupt", - "value": "45" - }, - "pwm1cmp2": { - "description": "PWM1 Compare 2 Interrupt", - "value": "46" - }, - "pwm1cmp3": { - "description": "PWM1 Compare 3 Interrupt", - "value": "47" - } - } - }, - "spi2": { - "baseAddress": "0x10034000", - "derivedFrom": "spi0", - "groupName": "spi", - "interrupts": { - "spi2": { - "description": "SPI2 Interrupt", - "value": "7" - } - } - }, - "pwm2": { - "baseAddress": "0x10035000", - "derivedFrom": "pwm1", - "groupName": "pwm", - "interrupts": { - "pwm2cmp0": { - "description": "PWM2 Compare 0 Interrupt", - "value": "48" - }, - "pwm2cmp1": { - "description": "PWM2 Compare 1 Interrupt", - "value": "49" - }, - "pwm2cmp2": { - "description": "PWM2 Compare 2 Interrupt", - "value": "50" - }, - "pwm2cmp3": { - "description": "PWM2 Compare 3 Interrupt", - "value": "51" - } - } - } - } - } - } -} \ No newline at end of file diff --git a/FreedomStudio/HiFive1/demo_gpio/sifive-freedom-e300-hifive1.cfg b/FreedomStudio/HiFive1/demo_gpio/sifive-freedom-e300-hifive1.cfg deleted file mode 100644 index b0a8e26..0000000 --- a/FreedomStudio/HiFive1/demo_gpio/sifive-freedom-e300-hifive1.cfg +++ /dev/null @@ -1,34 +0,0 @@ -adapter_khz 10000 - -interface ftdi -ftdi_device_desc "Dual RS232-HS" -ftdi_vid_pid 0x0403 0x6010 - -ftdi_layout_init 0x0008 0x001b -ftdi_layout_signal nSRST -oe 0x0020 -data 0x0020 - -#Reset Stretcher logic on FE310 is ~1 second long -#This doesn't apply if you use -# ftdi_set_signal, but still good to document -#adapter_nsrst_delay 1500 - -set _CHIPNAME riscv -jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x10e31913 - -set _TARGETNAME $_CHIPNAME.cpu -target create $_TARGETNAME riscv -chain-position $_TARGETNAME -$_TARGETNAME configure -work-area-phys 0x80000000 -work-area-size 10000 -work-area-backup 1 - -flash bank onboard_spi_flash fespi 0x20000000 0 0 0 $_TARGETNAME -init -#reset -- This type of reset is not implemented yet -if {[ info exists pulse_srst]} { - ftdi_set_signal nSRST 0 - ftdi_set_signal nSRST z - #Wait for the reset stretcher - #It will work without this, but - #will incur lots of delays for later commands. - sleep 1500 -} -halt -flash protect 0 64 last off diff --git a/FreedomStudio/HiFive1/dhrystone/.cproject b/FreedomStudio/HiFive1/dhrystone/.cproject deleted file mode 100644 index ca95225..0000000 --- a/FreedomStudio/HiFive1/dhrystone/.cproject +++ /dev/null @@ -1,211 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/FreedomStudio/HiFive1/dhrystone/.gitignore b/FreedomStudio/HiFive1/dhrystone/.gitignore deleted file mode 100644 index 3df573f..0000000 --- a/FreedomStudio/HiFive1/dhrystone/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/Debug/ diff --git a/FreedomStudio/HiFive1/dhrystone/.project b/FreedomStudio/HiFive1/dhrystone/.project deleted file mode 100644 index 040d41a..0000000 --- a/FreedomStudio/HiFive1/dhrystone/.project +++ /dev/null @@ -1,368 +0,0 @@ - - - dhrystone - - - - - - org.eclipse.cdt.managedbuilder.core.genmakebuilder - clean,full,incremental, - - - - - org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder - full,incremental, - - - - - - org.eclipse.cdt.core.cnature - org.eclipse.cdt.managedbuilder.core.managedBuildNature - org.eclipse.cdt.managedbuilder.core.ScannerConfigNature - - - - bsp - 2 - virtual:/virtual - - - dhry.h - 1 - PARENT-3-PROJECT_LOC/software/dhrystone/dhry.h - - - dhry_1.c - 1 - PARENT-3-PROJECT_LOC/software/dhrystone/dhry_1.c - - - dhry_2.c - 1 - PARENT-3-PROJECT_LOC/software/dhrystone/dhry_2.c - - - dhry_printf.c - 1 - PARENT-3-PROJECT_LOC/software/dhrystone/dhry_printf.c - - - dhry_stubs.c - 1 - PARENT-3-PROJECT_LOC/software/dhrystone/dhry_stubs.c - - - bsp/drivers - 2 - virtual:/virtual - - - bsp/env - 2 - virtual:/virtual - - - bsp/include - 2 - virtual:/virtual - - - bsp/libwrap - 2 - virtual:/virtual - - - bsp/drivers/fe300prci - 2 - virtual:/virtual - - - bsp/drivers/plic - 2 - virtual:/virtual - - - bsp/env/encoding.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/encoding.h - - - bsp/env/entry.S - 1 - PARENT-3-PROJECT_LOC/bsp/env/entry.S - - - bsp/env/freedom-e300-hifive1 - 2 - virtual:/virtual - - - bsp/env/hifive1.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/hifive1.h - - - bsp/env/start.S - 1 - PARENT-3-PROJECT_LOC/bsp/env/start.S - - - bsp/include/sifive - 2 - virtual:/virtual - - - bsp/libwrap/misc - 2 - virtual:/virtual - - - bsp/libwrap/stdlib - 2 - virtual:/virtual - - - bsp/libwrap/sys - 2 - virtual:/virtual - - - bsp/drivers/fe300prci/fe300prci_driver.c - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/fe300prci/fe300prci_driver.c - - - bsp/drivers/fe300prci/fe300prci_driver.h - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/fe300prci/fe300prci_driver.h - - - bsp/drivers/plic/plic_driver.c - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/plic/plic_driver.c - - - bsp/drivers/plic/plic_driver.h - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/plic/plic_driver.h - - - bsp/env/freedom-e300-hifive1/dhrystone.lds - 1 - PARENT-3-PROJECT_LOC/bsp/env/freedom-e300-hifive1/dhrystone.lds - - - bsp/env/freedom-e300-hifive1/flash.lds - 1 - PARENT-3-PROJECT_LOC/bsp/env/freedom-e300-hifive1/flash.lds - - - bsp/env/freedom-e300-hifive1/init.c - 1 - PARENT-3-PROJECT_LOC/bsp/env/freedom-e300-hifive1/init.c - - - bsp/env/freedom-e300-hifive1/openocd.cfg - 1 - PARENT-3-PROJECT_LOC/bsp/env/freedom-e300-hifive1/openocd.cfg - - - bsp/env/freedom-e300-hifive1/platform.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/freedom-e300-hifive1/platform.h - - - bsp/include/sifive/bits.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/bits.h - - - bsp/include/sifive/const.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/const.h - - - bsp/include/sifive/devices - 2 - virtual:/virtual - - - bsp/include/sifive/sections.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/sections.h - - - bsp/include/sifive/smp.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/smp.h - - - bsp/libwrap/misc/write_hex.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/misc/write_hex.c - - - bsp/libwrap/stdlib/malloc.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/stdlib/malloc.c - - - bsp/libwrap/sys/_exit.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/_exit.c - - - bsp/libwrap/sys/close.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/close.c - - - bsp/libwrap/sys/execve.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/execve.c - - - bsp/libwrap/sys/fork.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/fork.c - - - bsp/libwrap/sys/fstat.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/fstat.c - - - bsp/libwrap/sys/getpid.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/getpid.c - - - bsp/libwrap/sys/isatty.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/isatty.c - - - bsp/libwrap/sys/kill.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/kill.c - - - bsp/libwrap/sys/link.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/link.c - - - bsp/libwrap/sys/lseek.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/lseek.c - - - bsp/libwrap/sys/open.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/open.c - - - bsp/libwrap/sys/openat.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/openat.c - - - bsp/libwrap/sys/puts.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/puts.c - - - bsp/libwrap/sys/read.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/read.c - - - bsp/libwrap/sys/sbrk.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/sbrk.c - - - bsp/libwrap/sys/stat.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/stat.c - - - bsp/libwrap/sys/stub.h - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/stub.h - - - bsp/libwrap/sys/times.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/times.c - - - bsp/libwrap/sys/unlink.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/unlink.c - - - bsp/libwrap/sys/wait.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/wait.c - - - bsp/libwrap/sys/weak_under_alias.h - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/weak_under_alias.h - - - bsp/libwrap/sys/write.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/write.c - - - bsp/include/sifive/devices/aon.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/aon.h - - - bsp/include/sifive/devices/clint.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/clint.h - - - bsp/include/sifive/devices/gpio.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/gpio.h - - - bsp/include/sifive/devices/otp.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/otp.h - - - bsp/include/sifive/devices/plic.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/plic.h - - - bsp/include/sifive/devices/prci.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/prci.h - - - bsp/include/sifive/devices/pwm.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/pwm.h - - - bsp/include/sifive/devices/spi.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/spi.h - - - bsp/include/sifive/devices/uart.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/uart.h - - - diff --git a/FreedomStudio/HiFive1/dhrystone/dhrystone.launch b/FreedomStudio/HiFive1/dhrystone/dhrystone.launch deleted file mode 100644 index 57e1418..0000000 --- a/FreedomStudio/HiFive1/dhrystone/dhrystone.launch +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/FreedomStudio/HiFive1/dhrystone/fe310-xsvd.json b/FreedomStudio/HiFive1/dhrystone/fe310-xsvd.json deleted file mode 100644 index 1722e54..0000000 --- a/FreedomStudio/HiFive1/dhrystone/fe310-xsvd.json +++ /dev/null @@ -1,2325 +0,0 @@ -{ - "schemaVersion": "0.2.4", - "contentVersion": "0.2.0", - "headerVersion": "0.2.0", - "device": { - "fe310": { - "displayName": "Freedom E310-G000", - "description": "The FE310-G000 is the first Freedom E300 SoC, and is the industry's first commercially available RISC-V SoC. The FE310-G000 is built around the E31 Core Complex instantiated in the Freedom E300 platform.", - "supplier": { - "name": "sifive", - "id": "1", - "displayName": "SiFive", - "fullName": "SiFive, Inc.", - "contact": "info@sifive.com" - }, - "busWidth": "32", - "resetMask": "all", - "resetValue": "0x00000000", - "access": "rw", - "headerGuardPrefix": "SIFIVE_DEVICES_FE310_", - "headerTypePrefix": "sifive_fe310_", - "headerInterruptPrefix": "sifive_fe310_interrupt_global_", - "headerInterruptEnumPrefix": "riscv_interrupts_global_", - "revision": "r0p0", - "numInterrupts": "51", - "priorityBits": "3", - "regWidth": "32", - "cores": { - "e31": { - "harts": "1", - "isa": "RV32IMAC", - "isaVersion": "2.2", - "mpu": "pmp", - "mmu": "none", - "localInterrupts": { - "machine_software": { - "description": "Machine Software Interrupt", - "value": "3" - }, - "machine_timer": { - "description": "Machine Timer Interrupt", - "value": "7" - }, - "machine_ext": { - "description": "Machine External Interrupt", - "value": "11" - } - }, - "numLocalInterrupts": "0" - } - }, - "peripherals": { - "clint": { - "description": "Core Complex Local Interruptor (CLINT) Peripheral", - "baseAddress": "0x02000000", - "size": "0x10000", - "registers": { - "msip": { - "description": "MSIP (Machine-mode Software Interrupts) Register per Hart", - "addressOffset": "0x0000", - "arraySize": "1" - } - }, - "clusters": { - "mtimecmp": { - "description": "Machine Time Compare Registers per Hart", - "addressOffset": "0x4000", - "arraySize": "1", - "registers": { - "low": { - "description": "Machine Compare Register Low", - "addressOffset": "0x0000" - }, - "high": { - "description": "Machine Compare Register High", - "addressOffset": "0x0004" - } - } - }, - "mtime": { - "description": "Machine Time Register", - "addressOffset": "0xBFF8", - "access": "r", - "registers": { - "low": { - "description": "Machine Time Register Low", - "addressOffset": "0x0000" - }, - "high": { - "description": "Machine Time Register High", - "addressOffset": "0x0004" - } - } - } - } - }, - "plic": { - "description": "Platform-Level Interrupt Controller (PLIC) Peripheral", - "baseAddress": "0x0C000000", - "size": "0x4000000", - "registers": { - "priorities": { - "arraySize": "52", - "description": "Interrupt Priorities Registers; 0 is reserved.", - "addressOffset": "0x0000", - "fields": { - "value": { - "description": "The priority for a given global interrupt", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "pendings": { - "arraySize": "2", - "description": "Interrupt Pending Bits Registers", - "addressOffset": "0x1000", - "access": "r" - } - }, - "clusters": { - "enablestarget0": { - "description": "Hart 0 Interrupt Enable Bits", - "addressOffset": "0x00002000", - "clusters": { - "m": { - "addressOffset": "0x0000", - "description": "Hart 0 M-mode Interrupt Enable Bits", - "registers": { - "enables": { - "arraySize": "2", - "description": "Interrupt Enable Bits Registers", - "addressOffset": "0x0000" - } - } - } - } - }, - "target0": { - "description": "Hart 0 Interrupt Thresholds", - "addressOffset": "0x00200000", - "clusters": { - "m": { - "addressOffset": "0x0000", - "description": "Hart 0 M-Mode Interrupt Threshold", - "registers": { - "threshold": { - "description": "The Priority Threshold Register", - "addressOffset": "0x0000", - "fields": { - "value": { - "description": "The priority threshold value", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "claimcomplete": { - "description": "The Interrupt Claim/Completion Register", - "addressOffset": "0x0004" - } - } - } - } - } - } - }, - "wdog": { - "description": "Watchdog Timer (WDT), part of Always-On Domain", - "baseAddress": "0x10000000", - "size": "0x0040", - "resetMask": "none", - "registers": { - "cfg": { - "description": "Watchdog Configuration Register", - "addressOffset": "0x0000", - "fields": { - "scale": { - "description": "Watchdog counter scale", - "bitOffset": "0", - "bitWidth": "4" - }, - "rsten": { - "description": "Watchdog full reset enable", - "bitOffset": "8", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "zerocmp": { - "description": "Watchdog zero on comparator", - "bitOffset": "9", - "bitWidth": "1" - }, - "enalways": { - "description": "Watchdog enable counter always", - "bitOffset": "12", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "encoreawake": { - "description": "Watchdog counter only when awake", - "bitOffset": "13", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "cmpip": { - "description": "Watchdog interrupt pending", - "bitOffset": "28", - "bitWidth": "1" - } - } - }, - "count": { - "description": "Watchdog Count Register", - "addressOffset": "0x0008" - }, - "scale": { - "description": "Watchdog Scale Register", - "addressOffset": "0x0010", - "fields": { - "value": { - "description": "Watchdog scale value", - "bitOffset": "0", - "bitWidth": "16" - } - } - }, - "feed": { - "description": "Watchdog Feed Address Register", - "addressOffset": "0x0018" - }, - "key": { - "description": "Watchdog Key Register", - "addressOffset": "0x001C" - }, - "cmp": { - "description": "Watchdog Compare Register", - "addressOffset": "0x0020", - "fields": { - "value": { - "description": "Watchdog compare value", - "bitOffset": "0", - "bitWidth": "16" - } - } - } - }, - "interrupts": { - "wdogcmp": { - "description": "Watchdog Compare Interrupt", - "value": "1" - } - } - }, - "rtc": { - "description": "Real-Time Clock (RTC), part of Always-On Domain", - "baseAddress": "0x10000040", - "size": "0x0030", - "resetMask": "none", - "registers": { - "cfg": { - "description": "RTC Configuration Register", - "addressOffset": "0x0000", - "fields": { - "scale": { - "description": "RTC clock rate scale", - "bitOffset": "0", - "bitWidth": "4" - }, - "enalways": { - "description": "RTC counter enable", - "bitOffset": "12", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "cmpip": { - "description": "RTC comparator interrupt pending", - "bitOffset": "28", - "bitWidth": "1", - "access": "r" - } - } - }, - "low": { - "description": "RTC Counter Register Low", - "addressOffset": "0x0008" - }, - "high": { - "description": "RTC Counter Register High", - "addressOffset": "0x000C", - "fields": { - "value": { - "description": "RTC counter register, high bits", - "bitOffset": "0", - "bitWidth": "16" - } - } - }, - "scale": { - "description": "RTC Scale Register", - "addressOffset": "0x0010" - }, - "cmp": { - "description": "RTC Compare Register", - "addressOffset": "0x0020" - } - }, - "interrupts": { - "rtccmp": { - "description": "RTC Compare Interrupt", - "value": "2" - } - } - }, - "pmu": { - "description": "Power-Management Unit (PMU), part of Always-On Domain", - "baseAddress": "0x10000100", - "size": "0x0050", - "resetMask": "none", - "registers": { - "wakeupi": { - "description": "Wakeup program instruction Registers", - "addressOffset": "0x0000", - "arraySize": "8" - }, - "sleepi": { - "description": "Sleep Program Instruction Registers", - "addressOffset": "0x0020", - "arraySize": "8" - }, - "ie": { - "description": "PMU Interrupt Enables Register", - "addressOffset": "0x0040", - "fields": { - "rtc": { - "description": "RTC Comparator active", - "bitOffset": "1", - "bitWidth": "1" - }, - "dwakeup": { - "description": "dwakeup_n pin active", - "bitOffset": "2", - "bitWidth": "1" - } - } - }, - "cause": { - "description": "PMU Wakeup Cause Register", - "addressOffset": "0x0044", - "fields": { - "wakeupcause": { - "description": "Wakeup cause", - "bitOffset": "0", - "bitWidth": "2", - "access": "r", - "enumerations": { - "wakeupcause-enum": { - "description": "Wakeup Cause Values Enumeration", - "values": { - "0": { - "displayName": "reset", - "description": "Reset Wakeup" - }, - "1": { - "displayName": "rtc", - "description": "RTC Wakeup" - }, - "2": { - "displayName": "dwakeup", - "description": "Digital input Wakeup" - }, - "*": { - "displayName": "undefined" - } - } - } - } - }, - "resetcause": { - "description": "Reset cause", - "bitOffset": "8", - "bitWidth": "2", - "access": "r", - "enumerations": { - "resetcause-enum": { - "description": "Reset Cause Values Enumeration", - "values": { - "1": { - "displayName": "external", - "description": "External reset" - }, - "2": { - "displayName": "watchdog", - "description": "Watchdog timer reset" - }, - "*": { - "displayName": "undefined" - } - } - } - } - } - } - }, - "sleep": { - "description": "PMU Initiate Sleep Sequence Register", - "addressOffset": "0x0048" - }, - "key": { - "description": "PMU Key Register", - "addressOffset": "0x004C" - } - } - }, - "aon": { - "description": "Always-On (AON) Domain", - "baseAddress": "0x10000070", - "size": "0x0090", - "resetMask": "none", - "registers": { - "lfrosccfg": { - "description": "Internal Programmable Low-Frequency Ring Oscillator Register", - "addressOffset": "0x0000", - "fields": { - "div": { - "description": "LFROSC divider", - "bitOffset": "0", - "bitWidth": "6", - "resetMask": "all", - "resetValue": "0x04" - }, - "trim": { - "description": "LFROSC trim value", - "bitOffset": "16", - "bitWidth": "5", - "resetMask": "all", - "resetValue": "0x10" - }, - "en": { - "description": "LFROSC enable", - "bitOffset": "30", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1" - }, - "rdy": { - "description": "LFROSC ready", - "bitOffset": "31", - "bitWidth": "1", - "access": "r" - } - } - }, - "backup": { - "description": "Backup Registers", - "addressOffset": "0x0010", - "arraySize": "32" - } - } - }, - "prci": { - "description": "Power, Reset, Clock, Interrupt (PRCI) Peripheral", - "baseAddress": "0x10008000", - "size": "0x8000", - "registers": { - "hfrosccfg": { - "description": "Internal Trimmable Programmable 72 MHz Oscillator Register", - "addressOffset": "0x0000", - "fields": { - "div": { - "description": "HFROSC divider", - "bitOffset": "0", - "bitWidth": "6", - "resetMask": "all", - "resetValue": "0x04" - }, - "trim": { - "description": "HFROSC trim value", - "bitOffset": "16", - "bitWidth": "5", - "resetMask": "all", - "resetValue": "0x10" - }, - "en": { - "description": "HFROSC enable", - "bitOffset": "30", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1" - }, - "rdy": { - "description": "HFROSC ready", - "bitOffset": "31", - "bitWidth": "1", - "access": "r" - } - } - }, - "hfxosccfg": { - "description": "External 16 MHz Crystal Oscillator Register", - "addressOffset": "0x0004", - "fields": { - "en": { - "description": "HFXOSC enable", - "bitOffset": "30", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1" - }, - "rdy": { - "description": "HFXOSC ready", - "bitOffset": "31", - "bitWidth": "1", - "access": "r" - } - } - }, - "pllcfg": { - "description": "Internal High-Frequency PLL (HFPLL) Register", - "addressOffset": "0x0008", - "fields": { - "r": { - "description": "PLL R input divider value", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x1", - "enumerations": { - "pllr-enum": { - "description": "Reference Clock R Divide Ratio Enumeration", - "values": { - "0": { - "displayName": "/1", - "headerName": "div1", - "description": "Unchanged" - }, - "1": { - "displayName": "/2", - "headerName": "div2", - "description": "Divided by 2" - }, - "2": { - "displayName": "/3", - "headerName": "div3", - "description": "Divided by 3" - }, - "3": { - "displayName": "/4", - "headerName": "div4", - "description": "Divided by 4" - } - } - } - } - }, - "f": { - "description": "PLL F multiplier value", - "bitOffset": "4", - "bitWidth": "6", - "resetMask": "all", - "resetValue": "0x1F", - "enumerations": { - "pllf-enum": { - "description": "Reference Clock F Multiplier Ratio Enumeration", - "values": { - "0": { - "displayName": "*2", - "headerName": "mul2", - "description": "Multiplied by 2" - }, - "1": { - "displayName": "*4", - "headerName": "mul4", - "description": "Multiplied by 4" - }, - "2": { - "displayName": "*6", - "headerName": "mul6", - "description": "Multiplied by 6" - }, - "3": { - "displayName": "*8", - "headerName": "mul8", - "description": "Multiplied by 8" - }, - "4": { - "displayName": "*10", - "headerName": "mul10", - "description": "Multiplied by 10" - }, - "5": { - "displayName": "*12", - "headerName": "mul12", - "description": "Multiplied by 12" - }, - "6": { - "displayName": "*14", - "headerName": "mul14", - "description": "Multiplied by 14" - }, - "7": { - "displayName": "*16", - "headerName": "mul16", - "description": "Multiplied by 16" - }, - "8": { - "displayName": "*18", - "headerName": "mul18", - "description": "Multiplied by 18" - }, - "9": { - "displayName": "*20", - "headerName": "mul20", - "description": "Multiplied by 20" - }, - "10": { - "displayName": "*22", - "headerName": "mul22", - "description": "Multiplied by 22" - }, - "11": { - "displayName": "*24", - "headerName": "mul24", - "description": "Multiplied by 24" - }, - "12": { - "displayName": "*26", - "headerName": "mul26", - "description": "Multiplied by 26" - }, - "13": { - "displayName": "*28", - "headerName": "mul28", - "description": "Multiplied by 28" - }, - "14": { - "displayName": "*30", - "headerName": "mul30", - "description": "Multiplied by 30" - }, - "15": { - "displayName": "*32", - "headerName": "mul32", - "description": "Multiplied by 32" - }, - "16": { - "displayName": "*34", - "headerName": "mul34", - "description": "Multiplied by 34" - }, - "17": { - "displayName": "*36", - "headerName": "mul36", - "description": "Multiplied by 36" - }, - "18": { - "displayName": "*38", - "headerName": "mul38", - "description": "Multiplied by 38" - }, - "19": { - "displayName": "*40", - "headerName": "mul40", - "description": "Multiplied by 40" - }, - "20": { - "displayName": "*42", - "headerName": "mul42", - "description": "Multiplied by 42" - }, - "21": { - "displayName": "*44", - "headerName": "mul44", - "description": "Multiplied by 44" - }, - "22": { - "displayName": "*46", - "headerName": "mul46", - "description": "Multiplied by 46" - }, - "23": { - "displayName": "*48", - "headerName": "mul48", - "description": "Multiplied by 48" - }, - "24": { - "displayName": "*50", - "headerName": "mul50", - "description": "Multiplied by 50" - }, - "25": { - "displayName": "*52", - "headerName": "mul52", - "description": "Multiplied by 52" - }, - "26": { - "displayName": "*54", - "headerName": "mul54", - "description": "Multiplied by 54" - }, - "27": { - "displayName": "*56", - "headerName": "mul56", - "description": "Multiplied by 56" - }, - "28": { - "displayName": "*58", - "headerName": "mul58", - "description": "Multiplied by 58" - }, - "29": { - "displayName": "*60", - "headerName": "mul60", - "description": "Multiplied by 60" - }, - "30": { - "displayName": "*62", - "headerName": "mul62", - "description": "Multiplied by 62" - }, - "31": { - "displayName": "*64", - "headerName": "mul64", - "description": "Multiplied by 64" - }, - "32": { - "displayName": "*66", - "headerName": "mul66", - "description": "Multiplied by 66" - }, - "33": { - "displayName": "*68", - "headerName": "mul68", - "description": "Multiplied by 68" - }, - "34": { - "displayName": "*70", - "headerName": "mul70", - "description": "Multiplied by 70" - }, - "35": { - "displayName": "*72", - "headerName": "mul72", - "description": "Multiplied by 72" - }, - "36": { - "displayName": "*74", - "headerName": "mul74", - "description": "Multiplied by 74" - }, - "37": { - "displayName": "*76", - "headerName": "mul76", - "description": "Multiplied by 76" - }, - "38": { - "displayName": "*78", - "headerName": "mul78", - "description": "Multiplied by 78" - }, - "39": { - "displayName": "*80", - "headerName": "mul80", - "description": "Multiplied by 80" - }, - "40": { - "displayName": "*82", - "headerName": "mul82", - "description": "Multiplied by 82" - }, - "41": { - "displayName": "*84", - "headerName": "mul84", - "description": "Multiplied by 84" - }, - "42": { - "displayName": "*86", - "headerName": "mul86", - "description": "Multiplied by 86" - }, - "43": { - "displayName": "*88", - "headerName": "mul88", - "description": "Multiplied by 88" - }, - "44": { - "displayName": "*90", - "headerName": "mul90", - "description": "Multiplied by 90" - }, - "45": { - "displayName": "*92", - "headerName": "mul92", - "description": "Multiplied by 92" - }, - "46": { - "displayName": "*94", - "headerName": "mul94", - "description": "Multiplied by 94" - }, - "47": { - "displayName": "*96", - "headerName": "mul96", - "description": "Multiplied by 96" - }, - "48": { - "displayName": "*98", - "headerName": "mul98", - "description": "Multiplied by 98" - }, - "49": { - "displayName": "*100", - "headerName": "mul100", - "description": "Multiplied by 100" - }, - "50": { - "displayName": "*102", - "headerName": "mul102", - "description": "Multiplied by 102" - }, - "51": { - "displayName": "*104", - "headerName": "mul104", - "description": "Multiplied by 104" - }, - "52": { - "displayName": "*106", - "headerName": "mul106", - "description": "Multiplied by 106" - }, - "53": { - "displayName": "*108", - "headerName": "mul108", - "description": "Multiplied by 108" - }, - "54": { - "displayName": "*110", - "headerName": "mul110", - "description": "Multiplied by 110" - }, - "55": { - "displayName": "*112", - "headerName": "mul112", - "description": "Multiplied by 112" - }, - "56": { - "displayName": "*114", - "headerName": "mul114", - "description": "Multiplied by 114" - }, - "57": { - "displayName": "*116", - "headerName": "mul116", - "description": "Multiplied by 116" - }, - "58": { - "displayName": "*118", - "headerName": "mul118", - "description": "Multiplied by 118" - }, - "59": { - "displayName": "*120", - "headerName": "mul120", - "description": "Multiplied by 120" - }, - "60": { - "displayName": "*122", - "headerName": "mul122", - "description": "Multiplied by 122" - }, - "61": { - "displayName": "*124", - "headerName": "mul124", - "description": "Multiplied by 124" - }, - "62": { - "displayName": "*126", - "headerName": "mul126", - "description": "Multiplied by 126" - }, - "63": { - "displayName": "*128", - "headerName": "mul128", - "description": "Multiplied by 128" - } - } - } - } - }, - "q": { - "description": "PLL Q output divider value", - "bitOffset": "10", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x3", - "enumerations": { - "pllq-enum": { - "description": "Reference Clock Q Divide Ratio Enumeration", - "values": { - "*": { - "displayName": "n/a", - "description": "Not supported" - }, - "1": { - "displayName": "/2", - "headerName": "div2", - "description": "Divided by 2" - }, - "2": { - "displayName": "/4", - "headerName": "div4", - "description": "Divided by 4" - }, - "3": { - "displayName": "/8", - "headerName": "div8", - "description": "Divided by 8" - } - } - } - } - }, - "sel": { - "description": "PLL select", - "bitOffset": "16", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "refsel": { - "description": "PLL reference select", - "bitOffset": "17", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1" - }, - "bypass": { - "description": "PLL bypass", - "bitOffset": "18", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1" - }, - "lock": { - "description": "PLL lock indicator", - "bitOffset": "31", - "bitWidth": "1", - "access": "r" - } - } - }, - "plloutdiv": { - "description": "PLL Output Divider", - "addressOffset": "0x000C" - } - } - }, - "otp": { - "description": "One-Time Programmable Memory (OTP) Peripheral", - "baseAddress": "0x10010000", - "size": "0x1000", - "registers": { - "lock": { - "description": "Programmed-I/O Lock Register", - "addressOffset": "0x0000" - }, - "ck": { - "description": "Device Clock Signal Register", - "addressOffset": "0x0004" - }, - "oe": { - "description": "Device Output-Enable Signal Register", - "addressOffset": "0x0008" - }, - "sel": { - "description": "Device Chip-Select Signal Register", - "addressOffset": "0x000C" - }, - "we": { - "description": "Device Write-Enable Signal Register", - "addressOffset": "0x0010" - }, - "mr": { - "description": "Device Mode Register", - "addressOffset": "0x0014" - }, - "mrr": { - "description": "Read-Voltage Regulator Control Register", - "addressOffset": "0x0018" - }, - "mpp": { - "description": "Write-Voltage Charge Pump Control Register", - "addressOffset": "0x001C" - }, - "vrren": { - "description": "Read-Voltage Enable Register", - "addressOffset": "0x0020" - }, - "vppen": { - "description": "Write-Voltage Enable Register", - "addressOffset": "0x0024" - }, - "a": { - "description": "Device Address Register", - "addressOffset": "0x0028" - }, - "d": { - "description": "Device Data Input Register", - "addressOffset": "0x002C" - }, - "q": { - "description": "Device Data Output Register", - "addressOffset": "0x0030" - }, - "rsctrl": { - "description": "Read Sequencer Control Register", - "addressOffset": "0x0034", - "fields": { - "scale": { - "description": "OTP timescale", - "bitOffset": "0", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x1" - }, - "tas": { - "description": "Address setup time", - "bitOffset": "3", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "trp": { - "description": "Read pulse time", - "bitOffset": "4", - "bitWidth": "1" - }, - "tracc": { - "description": "Read access time", - "bitOffset": "5", - "bitWidth": "1" - } - } - } - } - }, - "gpio": { - "description": "General Purpose Input/Output Controller (GPIO) Peripheral", - "baseAddress": "0x10012000", - "size": "0x1000", - "registers": { - "value": { - "description": "Pin Value Register", - "addressOffset": "0x000", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Value Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "inputen": { - "description": "Pin Input Enable Register", - "addressOffset": "0x004", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Pin Input Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "outputen": { - "description": "Pin Output Enable Register", - "addressOffset": "0x008", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Pin Output Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "port": { - "description": "Output Port Value Register", - "addressOffset": "0x00C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Output Port Value Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "pue": { - "description": "Internal Pull-up Enable Register", - "addressOffset": "0x010", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Internal Pull-up Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "ds": { - "description": "Pin Drive Strength Register", - "addressOffset": "0x014", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Pin Drive Strength Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "riseie": { - "description": "Rise Interrupt Enable Register", - "addressOffset": "0x018", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Rise Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "riseip": { - "description": "Rise Interrupt Pending Register", - "addressOffset": "0x01C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Rise Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "fallie": { - "description": "Fall Interrupt Enable Register", - "addressOffset": "0x020", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Fall Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "fallip": { - "description": "Fall Interrupt Pending Register", - "addressOffset": "0x024", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Fall Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "highie": { - "description": "High Interrupt Enable Register", - "addressOffset": "0x028", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "High Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "highip": { - "description": "High Interrupt Pending Register", - "addressOffset": "0x02C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "High Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "lowie": { - "description": "Low Interrupt Enable Register", - "addressOffset": "0x030", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Low Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "lowip": { - "description": "Low Interrupt Pending Register", - "addressOffset": "0x034", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Low Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "iofen": { - "description": "HW I/O Function Enable Register", - "addressOffset": "0x038", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "HW I/O Function Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "iofsel": { - "description": "HW I/O Function Select Register", - "addressOffset": "0x03C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "HW I/O Function Select Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "outxor": { - "description": "Output XOR (invert) Register", - "addressOffset": "0x040", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Output XOR Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - } - }, - "interrupts": { - "gpio0": { - "description": "GPIO0 Interrupt", - "value": "8" - }, - "gpio1": { - "description": "GPIO1 Interrupt", - "value": "9" - }, - "gpio2": { - "description": "GPIO2 Interrupt", - "value": "10" - }, - "gpio3": { - "description": "GPIO3 Interrupt", - "value": "11" - }, - "gpio4": { - "description": "GPIO4 Interrupt", - "value": "12" - }, - "gpio5": { - "description": "GPIO5 Interrupt", - "value": "13" - }, - "gpio6": { - "description": "GPIO6 Interrupt", - "value": "14" - }, - "gpio7": { - "description": "GPIO7 Interrupt", - "value": "15" - }, - "gpio8": { - "description": "GPIO8 Interrupt", - "value": "16" - }, - "gpio9": { - "description": "GPIO9 Interrupt", - "value": "17" - }, - "gpio10": { - "description": "GPIO10 Interrupt", - "value": "18" - }, - "gpio11": { - "description": "GPIO11 Interrupt", - "value": "19" - }, - "gpio12": { - "description": "GPIO12 Interrupt", - "value": "20" - }, - "gpio13": { - "description": "GPIO13 Interrupt", - "value": "21" - }, - "gpio14": { - "description": "GPIO14 Interrupt", - "value": "22" - }, - "gpio15": { - "description": "GPIO15 Interrupt", - "value": "23" - }, - "gpio16": { - "description": "GPIO16 Interrupt", - "value": "24" - }, - "gpio17": { - "description": "GPIO17 Interrupt", - "value": "25" - }, - "gpio18": { - "description": "GPIO18 Interrupt", - "value": "26" - }, - "gpio19": { - "description": "GPIO19 Interrupt", - "value": "27" - }, - "gpio20": { - "description": "GPIO20 Interrupt", - "value": "28" - }, - "gpio21": { - "description": "GPIO21 Interrupt", - "value": "29" - }, - "gpio22": { - "description": "GPIO22 Interrupt", - "value": "30" - }, - "gpio23": { - "description": "GPIO23 Interrupt", - "value": "31" - }, - "gpio24": { - "description": "GPIO24 Interrupt", - "value": "32" - }, - "gpio25": { - "description": "GPIO25 Interrupt", - "value": "33" - }, - "gpio26": { - "description": "GPIO26 Interrupt", - "value": "34" - }, - "gpio27": { - "description": "GPIO27 Interrupt", - "value": "35" - }, - "gpio28": { - "description": "GPIO28 Interrupt", - "value": "36" - }, - "gpio29": { - "description": "GPIO29 Interrupt", - "value": "37" - }, - "gpio30": { - "description": "GPIO30 Interrupt", - "value": "38" - }, - "gpio31": { - "description": "GPIO31 Interrupt", - "value": "39" - } - } - }, - "uart0": { - "description": "Universal Asynchronous Receiver/Transmitter (UART) Peripheral", - "baseAddress": "0x10013000", - "size": "0x1000", - "resetMask": "none", - "groupName": "uart", - "registers": { - "txdata": { - "description": "Transmit Data Register", - "addressOffset": "0x000", - "fields": { - "data": { - "description": "Transmit data", - "bitOffset": "0", - "bitWidth": "8" - }, - "full": { - "description": "Transmit FIFO full", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "rxdata": { - "description": "Receive Data Register", - "addressOffset": "0x004", - "resetMask": "none", - "fields": { - "data": { - "description": "Received data", - "bitOffset": "0", - "bitWidth": "8", - "access": "r" - }, - "empty": { - "description": "Receive FIFO empty", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "txctrl": { - "description": "Transmit Control Register ", - "addressOffset": "0x008", - "fields": { - "txen": { - "description": "Transmit enable", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "nstop": { - "description": "Number of stop bits", - "bitOffset": "1", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "txcnt": { - "description": "Transmit watermark level", - "bitOffset": "16", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "rxctrl": { - "description": "Receive Control Register", - "addressOffset": "0x00C", - "fields": { - "rxen": { - "description": "Receive enable", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "rxcnt": { - "description": "Receive watermark level", - "bitOffset": "16", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ie": { - "description": "Interrupt Enable Register", - "addressOffset": "0x010", - "fields": { - "txwm": { - "description": "Transmit watermark interrupt enable", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "rxwm": { - "description": "Receive watermark interrupt enable", - "bitOffset": "1", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ip": { - "description": "Interrupt Pending Register", - "addressOffset": "0x014", - "access": "r", - "fields": { - "txwm": { - "description": "Transmit watermark interrupt pending", - "bitOffset": "0", - "bitWidth": "1" - }, - "rxwm": { - "description": "Receive watermark interrupt pending", - "bitOffset": "1", - "bitWidth": "1" - } - } - }, - "div": { - "description": "Baud Rate Divisor Register", - "addressOffset": "0x018", - "fields": { - "value": { - "description": "Baud rate divisor", - "bitOffset": "0", - "bitWidth": "16", - "resetMask": "all", - "resetValue": "0x0000FFFF" - } - } - } - }, - "interrupts": { - "uart0": { - "description": "UART0 Interrupt", - "value": "3" - } - } - }, - "spi0": { - "description": "Serial Peripheral Interface (SPI) Peripheral", - "baseAddress": "0x10014000", - "size": "0x1000", - "resetMask": "none", - "groupName": "spi", - "registers": { - "sckdiv": { - "description": "Serial clock divisor Register", - "addressOffset": "0x000", - "fields": { - "scale": { - "description": "Divisor for serial clock", - "bitOffset": "0", - "bitWidth": "12", - "resetMask": "all", - "resetValue": "0x003" - } - } - }, - "sckmode": { - "description": "Serial Clock Mode Register", - "addressOffset": "0x004", - "fields": { - "pha": { - "description": "Serial clock phase", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "pol": { - "description": "Serial clock polarity", - "bitOffset": "1", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "csid": { - "description": "Chip Select ID Register", - "addressOffset": "0x010", - "resetMask": "all", - "resetValue": "0x00000000" - }, - "csdef": { - "description": "Chip Select Default Register", - "addressOffset": "0x014", - "resetMask": "all", - "resetValue": "0x00000001" - }, - "csmode": { - "description": "Chip Select Mode Register", - "addressOffset": "0x018", - "fields": { - "mode": { - "description": "Chip select mode", - "bitOffset": "0", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0", - "enumerations": { - "csmode-enum": { - "description": "Chip Select Modes Enumeration", - "values": { - "0": { - "displayName": "auto", - "description": "Assert/de-assert CS at the beginning/end of each frame" - }, - "*": { - "displayName": "reserved" - }, - "2": { - "displayName": "hold", - "description": "Keep CS continuously asserted after the initial frame" - }, - "3": { - "displayName": "off", - "description": "Disable hardware control of the CS pin" - } - } - } - } - } - } - }, - "delay0": { - "description": "Delay Control 0 Register", - "addressOffset": "0x028", - "fields": { - "cssck": { - "description": "CS to SCK Delay", - "bitOffset": "0", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - }, - "sckcs": { - "description": "SCK to CS Delay", - "bitOffset": "16", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - } - } - }, - "delay1": { - "description": "Delay Control 1 Register", - "addressOffset": "0x02C", - "fields": { - "intercs": { - "description": "Minimum CS inactive time", - "bitOffset": "0", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - }, - "interxfr": { - "description": "Maximum interframe delay", - "bitOffset": "16", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - } - } - }, - "fmt": { - "description": "Frame Format Register", - "addressOffset": "0x040", - "fields": { - "proto": { - "description": "SPI Protocol", - "bitOffset": "0", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0", - "enumerations": { - "proto-enum": { - "description": "SPI Protocol Enumeration", - "values": { - "0": { - "displayName": "single", - "description": "DQ0 (MOSI), DQ1 (MISO)" - }, - "1": { - "displayName": "dual", - "description": "DQ0, DQ1" - }, - "2": { - "displayName": "quad", - "description": "DQ0, DQ1, DQ2, DQ3" - }, - "*": { - "displayName": "reserved" - } - } - } - } - }, - "endian": { - "description": "SPI endianness", - "bitOffset": "2", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0", - "enumerations": { - "endian-enum": { - "description": "SPI Endianness Enumeration", - "values": { - "0": { - "displayName": "msb", - "description": "Transmit most-significant bit (MSB) first" - }, - "1": { - "displayName": "lsb", - "description": "Transmit least-significant bit (LSB) first" - } - } - } - } - }, - "dir": { - "description": "SPI I/O Direction", - "bitOffset": "3", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1", - "enumerations": { - "dir-enum": { - "description": "SPI I/O Direction Enumeration", - "values": { - "0": { - "displayName": "rx", - "description": "For dual and quad protocols, the DQ pins are tri-stated. For the single protocol, the DQ0 pin is driven with the transmit data as normal." - }, - "1": { - "displayName": "tx", - "description": "The receive FIFO is not populated." - } - } - } - } - }, - "len": { - "description": "Number of bits per frame", - "bitOffset": "16", - "bitWidth": "4", - "resetMask": "all", - "resetValue": "0x8" - } - } - }, - "txdata": { - "description": "Tx FIFO Data Register", - "addressOffset": "0x048", - "fields": { - "data": { - "description": "Transmit data", - "bitOffset": "0", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x00" - }, - "full": { - "description": "FIFO full flag", - "bitOffset": "31", - "bitWidth": "1", - "access": "r" - } - } - }, - "rxdata": { - "description": "Rx FIFO Data Register", - "addressOffset": "0x04C", - "resetMask": "none", - "access": "r", - "fields": { - "data": { - "description": "Received data", - "bitOffset": "0", - "bitWidth": "8" - }, - "empty": { - "description": "FIFO empty flag", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "txmark": { - "description": "Tx FIFO Watermark Register", - "addressOffset": "0x050", - "fields": { - "value": { - "description": "Transmit watermark", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x1" - } - } - }, - "rxmark": { - "description": "Rx FIFO Watermark Register", - "addressOffset": "0x054", - "fields": { - "value": { - "description": "Receive watermark", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "fctrl": { - "description": "Flash Interface Control Register", - "addressOffset": "0x060", - "fields": { - "en": { - "description": "SPI Flash Mode Select", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1" - } - } - }, - "ffmt": { - "description": "Flash Instruction Format Register", - "addressOffset": "0x064", - "fields": { - "cmden": { - "description": "Enable sending of command", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1" - }, - "addrlen": { - "description": "Number of address bytes(0 to 4)", - "bitOffset": "1", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x3" - }, - "padcnt": { - "description": "Number of dummy cycles", - "bitOffset": "4", - "bitWidth": "4", - "resetMask": "all", - "resetValue": "0x0" - }, - "cmdproto": { - "description": "Protocol for transmitting command", - "bitOffset": "8", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0" - }, - "addrproto": { - "description": "Protocol for transmitting address and padding", - "bitOffset": "10", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0" - }, - "dataproto": { - "description": "Protocol for receiving data bytes", - "bitOffset": "12", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0" - }, - "cmdcode": { - "description": "Value of command byte", - "bitOffset": "16", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x03" - }, - "padcode": { - "description": "First 8 bits to transmit during dummy cycles", - "bitOffset": "24", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ie": { - "description": "Interrupt Enable Register", - "addressOffset": "0x070", - "fields": { - "txwm": { - "description": "Transmit watermark enable", - "bitOffset": "0", - "bitWidth": "1", - "access": "r", - "resetMask": "all", - "resetValue": "0x0" - }, - "rxwm": { - "description": "Receive watermark enable", - "bitOffset": "1", - "bitWidth": "1", - "access": "r", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ip": { - "description": "Interrupt Pending Register", - "addressOffset": "0x074", - "fields": { - "txwm": { - "description": "Transmit watermark pending", - "bitOffset": "0", - "bitWidth": "1", - "access": "r" - }, - "rxwm": { - "description": "Receive watermark pending", - "bitOffset": "1", - "bitWidth": "1", - "access": "r" - } - } - } - }, - "interrupts": { - "spi0": { - "description": "SPI0 Interrupt", - "value": "5" - } - } - }, - "pwm0": { - "description": "Pulse-Width Modulation (PWM) Peripheral", - "baseAddress": "0x10015000", - "size": "0x1000", - "resetMask": "none", - "registers": { - "cfg": { - "description": "Configuration Register", - "addressOffset": "0x000", - "fields": { - "scale": { - "description": "Counter scale", - "bitOffset": "0", - "bitWidth": "4" - }, - "sticky": { - "description": "Sticky - disallow clearing pwmcmpXip bits", - "bitOffset": "8", - "bitWidth": "1" - }, - "zerocmp": { - "description": "Zero - counter resets to zero after match", - "bitOffset": "9", - "bitWidth": "1" - }, - "deglitch": { - "description": "Deglitch - latch pwmcmpXip within same cycle", - "bitOffset": "10", - "bitWidth": "1" - }, - "enalways": { - "description": "Enable always - run continuously", - "bitOffset": "12", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "enoneshot": { - "description": "enable one shot - run one cycle", - "bitOffset": "13", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "cmp0center": { - "description": "PWM0 Compare Center", - "bitOffset": "16", - "bitWidth": "1" - }, - "cmp1center": { - "description": "PWM1 Compare Center", - "bitOffset": "17", - "bitWidth": "1" - }, - "cmp2center": { - "description": "PWM2 Compare Center", - "bitOffset": "18", - "bitWidth": "1" - }, - "cmp3center": { - "description": "PWM3 Compare Center", - "bitOffset": "19", - "bitWidth": "1" - }, - "cmp0gang": { - "description": "PWM0/PWM1 Compare Gang", - "bitOffset": "24", - "bitWidth": "1" - }, - "cmp1gang": { - "description": "PWM1/PWM2 Compare Gang", - "bitOffset": "25", - "bitWidth": "1" - }, - "cmp2gang": { - "description": "PWM2/PWM3 Compare Gang", - "bitOffset": "26", - "bitWidth": "1" - }, - "cmp3gang": { - "description": "PWM3/PWM0 Compare Gang", - "bitOffset": "27", - "bitWidth": "1" - }, - "cmp0ip": { - "description": "PWM0 Interrupt Pending", - "bitOffset": "28", - "bitWidth": "1" - }, - "cmp1ip": { - "description": "PWM1 Interrupt Pending", - "bitOffset": "29", - "bitWidth": "1" - }, - "cmp2ip": { - "description": "PWM2 Interrupt Pending", - "bitOffset": "30", - "bitWidth": "1" - }, - "cmp3ip": { - "description": "PWM3 Interrupt Pending", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "count": { - "description": "Configuration Register", - "addressOffset": "0x008" - }, - "scale": { - "description": "Scale Register", - "addressOffset": "0x010", - "fields": { - "value": { - "description": "Compare value", - "bitOffset": "0", - "bitWidth": "8" - } - } - }, - "cmp": { - "arraySize": "4", - "description": "Compare Registers", - "addressOffset": "0x020", - "fields": { - "value": { - "description": "Compare value", - "bitOffset": "0", - "bitWidth": "8" - } - } - } - }, - "interrupts": { - "pwm0cmp0": { - "description": "PWM0 Compare 0 Interrupt", - "value": "40" - }, - "pwm0cmp1": { - "description": "PWM0 Compare 1 Interrupt", - "value": "41" - }, - "pwm0cmp2": { - "description": "PWM0 Compare 2 Interrupt", - "value": "42" - }, - "pwm0cmp3": { - "description": "PWM0 Compare 3 Interrupt", - "value": "43" - } - } - }, - "uart1": { - "baseAddress": "0x10023000", - "derivedFrom": "uart0", - "groupName": "uart", - "interrupts": { - "uart1": { - "description": "UART1 Interrupt", - "value": "4" - } - } - }, - "spi1": { - "baseAddress": "0x10024000", - "derivedFrom": "spi0", - "groupName": "spi", - "interrupts": { - "spi1": { - "description": "SPI1 Interrupt", - "value": "6" - } - } - }, - "pwm1": { - "description": "Pulse-Width Modulation (PWM) Peripheral", - "baseAddress": "0x10025000", - "groupName": "pwm", - "size": "0x1000", - "resetMask": "none", - "groupName": "pwm", - "registers": { - "cfg": { - "description": "Configuration Register", - "addressOffset": "0x000", - "fields": { - "scale": { - "description": "Counter scale", - "bitOffset": "0", - "bitWidth": "4" - }, - "sticky": { - "description": "Sticky - disallow clearing pwmcmpXip bits", - "bitOffset": "8", - "bitWidth": "1" - }, - "zerocmp": { - "description": "Zero - counter resets to zero after match", - "bitOffset": "9", - "bitWidth": "1" - }, - "deglitch": { - "description": "Deglitch - latch pwmcmpXip within same cycle", - "bitOffset": "10", - "bitWidth": "1" - }, - "enalways": { - "description": "Enable always - run continuously", - "bitOffset": "12", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "enoneshot": { - "description": "enable one shot - run one cycle", - "bitOffset": "13", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "cmp0center": { - "description": "PWM0 Compare Center", - "bitOffset": "16", - "bitWidth": "1" - }, - "cmp1center": { - "description": "PWM1 Compare Center", - "bitOffset": "17", - "bitWidth": "1" - }, - "cmp2center": { - "description": "PWM2 Compare Center", - "bitOffset": "18", - "bitWidth": "1" - }, - "cmp3center": { - "description": "PWM3 Compare Center", - "bitOffset": "19", - "bitWidth": "1" - }, - "cmp0gang": { - "description": "PWM0/PWM1 Compare Gang", - "bitOffset": "24", - "bitWidth": "1" - }, - "cmp1gang": { - "description": "PWM1/PWM2 Compare Gang", - "bitOffset": "25", - "bitWidth": "1" - }, - "cmp2gang": { - "description": "PWM2/PWM3 Compare Gang", - "bitOffset": "26", - "bitWidth": "1" - }, - "cmp3gang": { - "description": "PWM3/PWM0 Compare Gang", - "bitOffset": "27", - "bitWidth": "1" - }, - "cmp0ip": { - "description": "PWM0 Interrupt Pending", - "bitOffset": "28", - "bitWidth": "1" - }, - "cmp1ip": { - "description": "PWM1 Interrupt Pending", - "bitOffset": "29", - "bitWidth": "1" - }, - "cmp2ip": { - "description": "PWM2 Interrupt Pending", - "bitOffset": "30", - "bitWidth": "1" - }, - "cmp3ip": { - "description": "PWM3 Interrupt Pending", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "count": { - "description": "Configuration Register", - "addressOffset": "0x008" - }, - "scale": { - "description": "Scale Register", - "addressOffset": "0x010", - "fields": { - "value": { - "description": "Compare value", - "bitOffset": "0", - "bitWidth": "16" - } - } - }, - "cmp": { - "arraySize": "4", - "description": "Compare Registers", - "addressOffset": "0x020", - "fields": { - "value": { - "description": "Compare value", - "bitOffset": "0", - "bitWidth": "16" - } - } - } - }, - "interrupts": { - "pwm1cmp0": { - "description": "PWM1 Compare 0 Interrupt", - "value": "44" - }, - "pwm1cmp1": { - "description": "PWM1 Compare 1 Interrupt", - "value": "45" - }, - "pwm1cmp2": { - "description": "PWM1 Compare 2 Interrupt", - "value": "46" - }, - "pwm1cmp3": { - "description": "PWM1 Compare 3 Interrupt", - "value": "47" - } - } - }, - "spi2": { - "baseAddress": "0x10034000", - "derivedFrom": "spi0", - "groupName": "spi", - "interrupts": { - "spi2": { - "description": "SPI2 Interrupt", - "value": "7" - } - } - }, - "pwm2": { - "baseAddress": "0x10035000", - "derivedFrom": "pwm1", - "groupName": "pwm", - "interrupts": { - "pwm2cmp0": { - "description": "PWM2 Compare 0 Interrupt", - "value": "48" - }, - "pwm2cmp1": { - "description": "PWM2 Compare 1 Interrupt", - "value": "49" - }, - "pwm2cmp2": { - "description": "PWM2 Compare 2 Interrupt", - "value": "50" - }, - "pwm2cmp3": { - "description": "PWM2 Compare 3 Interrupt", - "value": "51" - } - } - } - } - } - } -} \ No newline at end of file diff --git a/FreedomStudio/HiFive1/dhrystone/sifive-freedom-e300-hifive1.cfg b/FreedomStudio/HiFive1/dhrystone/sifive-freedom-e300-hifive1.cfg deleted file mode 100644 index b0a8e26..0000000 --- a/FreedomStudio/HiFive1/dhrystone/sifive-freedom-e300-hifive1.cfg +++ /dev/null @@ -1,34 +0,0 @@ -adapter_khz 10000 - -interface ftdi -ftdi_device_desc "Dual RS232-HS" -ftdi_vid_pid 0x0403 0x6010 - -ftdi_layout_init 0x0008 0x001b -ftdi_layout_signal nSRST -oe 0x0020 -data 0x0020 - -#Reset Stretcher logic on FE310 is ~1 second long -#This doesn't apply if you use -# ftdi_set_signal, but still good to document -#adapter_nsrst_delay 1500 - -set _CHIPNAME riscv -jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x10e31913 - -set _TARGETNAME $_CHIPNAME.cpu -target create $_TARGETNAME riscv -chain-position $_TARGETNAME -$_TARGETNAME configure -work-area-phys 0x80000000 -work-area-size 10000 -work-area-backup 1 - -flash bank onboard_spi_flash fespi 0x20000000 0 0 0 $_TARGETNAME -init -#reset -- This type of reset is not implemented yet -if {[ info exists pulse_srst]} { - ftdi_set_signal nSRST 0 - ftdi_set_signal nSRST z - #Wait for the reset stretcher - #It will work without this, but - #will incur lots of delays for later commands. - sleep 1500 -} -halt -flash protect 0 64 last off diff --git a/FreedomStudio/HiFive1/hello/.cproject b/FreedomStudio/HiFive1/hello/.cproject deleted file mode 100644 index 6fab261..0000000 --- a/FreedomStudio/HiFive1/hello/.cproject +++ /dev/null @@ -1,208 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/FreedomStudio/HiFive1/hello/.gitignore b/FreedomStudio/HiFive1/hello/.gitignore deleted file mode 100644 index 3df573f..0000000 --- a/FreedomStudio/HiFive1/hello/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/Debug/ diff --git a/FreedomStudio/HiFive1/hello/.project b/FreedomStudio/HiFive1/hello/.project deleted file mode 100644 index 8a86c16..0000000 --- a/FreedomStudio/HiFive1/hello/.project +++ /dev/null @@ -1,348 +0,0 @@ - - - hello - - - - - - org.eclipse.cdt.managedbuilder.core.genmakebuilder - clean,full,incremental, - - - - - org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder - full,incremental, - - - - - - org.eclipse.cdt.core.cnature - org.eclipse.cdt.managedbuilder.core.managedBuildNature - org.eclipse.cdt.managedbuilder.core.ScannerConfigNature - - - - bsp - 2 - virtual:/virtual - - - hello.c - 1 - PARENT-3-PROJECT_LOC/software/hello/hello.c - - - bsp/drivers - 2 - virtual:/virtual - - - bsp/env - 2 - virtual:/virtual - - - bsp/include - 2 - virtual:/virtual - - - bsp/libwrap - 2 - virtual:/virtual - - - bsp/drivers/fe300prci - 2 - virtual:/virtual - - - bsp/drivers/plic - 2 - virtual:/virtual - - - bsp/env/encoding.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/encoding.h - - - bsp/env/entry.S - 1 - PARENT-3-PROJECT_LOC/bsp/env/entry.S - - - bsp/env/freedom-e300-hifive1 - 2 - virtual:/virtual - - - bsp/env/hifive1.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/hifive1.h - - - bsp/env/start.S - 1 - PARENT-3-PROJECT_LOC/bsp/env/start.S - - - bsp/include/sifive - 2 - virtual:/virtual - - - bsp/libwrap/misc - 2 - virtual:/virtual - - - bsp/libwrap/stdlib - 2 - virtual:/virtual - - - bsp/libwrap/sys - 2 - virtual:/virtual - - - bsp/drivers/fe300prci/fe300prci_driver.c - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/fe300prci/fe300prci_driver.c - - - bsp/drivers/fe300prci/fe300prci_driver.h - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/fe300prci/fe300prci_driver.h - - - bsp/drivers/plic/plic_driver.c - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/plic/plic_driver.c - - - bsp/drivers/plic/plic_driver.h - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/plic/plic_driver.h - - - bsp/env/freedom-e300-hifive1/dhrystone.lds - 1 - PARENT-3-PROJECT_LOC/bsp/env/freedom-e300-hifive1/dhrystone.lds - - - bsp/env/freedom-e300-hifive1/flash.lds - 1 - PARENT-3-PROJECT_LOC/bsp/env/freedom-e300-hifive1/flash.lds - - - bsp/env/freedom-e300-hifive1/init.c - 1 - PARENT-3-PROJECT_LOC/bsp/env/freedom-e300-hifive1/init.c - - - bsp/env/freedom-e300-hifive1/openocd.cfg - 1 - PARENT-3-PROJECT_LOC/bsp/env/freedom-e300-hifive1/openocd.cfg - - - bsp/env/freedom-e300-hifive1/platform.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/freedom-e300-hifive1/platform.h - - - bsp/include/sifive/bits.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/bits.h - - - bsp/include/sifive/const.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/const.h - - - bsp/include/sifive/devices - 2 - virtual:/virtual - - - bsp/include/sifive/sections.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/sections.h - - - bsp/include/sifive/smp.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/smp.h - - - bsp/libwrap/misc/write_hex.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/misc/write_hex.c - - - bsp/libwrap/stdlib/malloc.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/stdlib/malloc.c - - - bsp/libwrap/sys/_exit.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/_exit.c - - - bsp/libwrap/sys/close.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/close.c - - - bsp/libwrap/sys/execve.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/execve.c - - - bsp/libwrap/sys/fork.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/fork.c - - - bsp/libwrap/sys/fstat.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/fstat.c - - - bsp/libwrap/sys/getpid.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/getpid.c - - - bsp/libwrap/sys/isatty.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/isatty.c - - - bsp/libwrap/sys/kill.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/kill.c - - - bsp/libwrap/sys/link.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/link.c - - - bsp/libwrap/sys/lseek.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/lseek.c - - - bsp/libwrap/sys/open.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/open.c - - - bsp/libwrap/sys/openat.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/openat.c - - - bsp/libwrap/sys/puts.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/puts.c - - - bsp/libwrap/sys/read.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/read.c - - - bsp/libwrap/sys/sbrk.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/sbrk.c - - - bsp/libwrap/sys/stat.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/stat.c - - - bsp/libwrap/sys/stub.h - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/stub.h - - - bsp/libwrap/sys/times.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/times.c - - - bsp/libwrap/sys/unlink.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/unlink.c - - - bsp/libwrap/sys/wait.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/wait.c - - - bsp/libwrap/sys/weak_under_alias.h - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/weak_under_alias.h - - - bsp/libwrap/sys/write.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/write.c - - - bsp/include/sifive/devices/aon.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/aon.h - - - bsp/include/sifive/devices/clint.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/clint.h - - - bsp/include/sifive/devices/gpio.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/gpio.h - - - bsp/include/sifive/devices/otp.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/otp.h - - - bsp/include/sifive/devices/plic.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/plic.h - - - bsp/include/sifive/devices/prci.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/prci.h - - - bsp/include/sifive/devices/pwm.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/pwm.h - - - bsp/include/sifive/devices/spi.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/spi.h - - - bsp/include/sifive/devices/uart.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/uart.h - - - diff --git a/FreedomStudio/HiFive1/hello/fe310-xsvd.json b/FreedomStudio/HiFive1/hello/fe310-xsvd.json deleted file mode 100644 index 1722e54..0000000 --- a/FreedomStudio/HiFive1/hello/fe310-xsvd.json +++ /dev/null @@ -1,2325 +0,0 @@ -{ - "schemaVersion": "0.2.4", - "contentVersion": "0.2.0", - "headerVersion": "0.2.0", - "device": { - "fe310": { - "displayName": "Freedom E310-G000", - "description": "The FE310-G000 is the first Freedom E300 SoC, and is the industry's first commercially available RISC-V SoC. The FE310-G000 is built around the E31 Core Complex instantiated in the Freedom E300 platform.", - "supplier": { - "name": "sifive", - "id": "1", - "displayName": "SiFive", - "fullName": "SiFive, Inc.", - "contact": "info@sifive.com" - }, - "busWidth": "32", - "resetMask": "all", - "resetValue": "0x00000000", - "access": "rw", - "headerGuardPrefix": "SIFIVE_DEVICES_FE310_", - "headerTypePrefix": "sifive_fe310_", - "headerInterruptPrefix": "sifive_fe310_interrupt_global_", - "headerInterruptEnumPrefix": "riscv_interrupts_global_", - "revision": "r0p0", - "numInterrupts": "51", - "priorityBits": "3", - "regWidth": "32", - "cores": { - "e31": { - "harts": "1", - "isa": "RV32IMAC", - "isaVersion": "2.2", - "mpu": "pmp", - "mmu": "none", - "localInterrupts": { - "machine_software": { - "description": "Machine Software Interrupt", - "value": "3" - }, - "machine_timer": { - "description": "Machine Timer Interrupt", - "value": "7" - }, - "machine_ext": { - "description": "Machine External Interrupt", - "value": "11" - } - }, - "numLocalInterrupts": "0" - } - }, - "peripherals": { - "clint": { - "description": "Core Complex Local Interruptor (CLINT) Peripheral", - "baseAddress": "0x02000000", - "size": "0x10000", - "registers": { - "msip": { - "description": "MSIP (Machine-mode Software Interrupts) Register per Hart", - "addressOffset": "0x0000", - "arraySize": "1" - } - }, - "clusters": { - "mtimecmp": { - "description": "Machine Time Compare Registers per Hart", - "addressOffset": "0x4000", - "arraySize": "1", - "registers": { - "low": { - "description": "Machine Compare Register Low", - "addressOffset": "0x0000" - }, - "high": { - "description": "Machine Compare Register High", - "addressOffset": "0x0004" - } - } - }, - "mtime": { - "description": "Machine Time Register", - "addressOffset": "0xBFF8", - "access": "r", - "registers": { - "low": { - "description": "Machine Time Register Low", - "addressOffset": "0x0000" - }, - "high": { - "description": "Machine Time Register High", - "addressOffset": "0x0004" - } - } - } - } - }, - "plic": { - "description": "Platform-Level Interrupt Controller (PLIC) Peripheral", - "baseAddress": "0x0C000000", - "size": "0x4000000", - "registers": { - "priorities": { - "arraySize": "52", - "description": "Interrupt Priorities Registers; 0 is reserved.", - "addressOffset": "0x0000", - "fields": { - "value": { - "description": "The priority for a given global interrupt", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "pendings": { - "arraySize": "2", - "description": "Interrupt Pending Bits Registers", - "addressOffset": "0x1000", - "access": "r" - } - }, - "clusters": { - "enablestarget0": { - "description": "Hart 0 Interrupt Enable Bits", - "addressOffset": "0x00002000", - "clusters": { - "m": { - "addressOffset": "0x0000", - "description": "Hart 0 M-mode Interrupt Enable Bits", - "registers": { - "enables": { - "arraySize": "2", - "description": "Interrupt Enable Bits Registers", - "addressOffset": "0x0000" - } - } - } - } - }, - "target0": { - "description": "Hart 0 Interrupt Thresholds", - "addressOffset": "0x00200000", - "clusters": { - "m": { - "addressOffset": "0x0000", - "description": "Hart 0 M-Mode Interrupt Threshold", - "registers": { - "threshold": { - "description": "The Priority Threshold Register", - "addressOffset": "0x0000", - "fields": { - "value": { - "description": "The priority threshold value", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "claimcomplete": { - "description": "The Interrupt Claim/Completion Register", - "addressOffset": "0x0004" - } - } - } - } - } - } - }, - "wdog": { - "description": "Watchdog Timer (WDT), part of Always-On Domain", - "baseAddress": "0x10000000", - "size": "0x0040", - "resetMask": "none", - "registers": { - "cfg": { - "description": "Watchdog Configuration Register", - "addressOffset": "0x0000", - "fields": { - "scale": { - "description": "Watchdog counter scale", - "bitOffset": "0", - "bitWidth": "4" - }, - "rsten": { - "description": "Watchdog full reset enable", - "bitOffset": "8", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "zerocmp": { - "description": "Watchdog zero on comparator", - "bitOffset": "9", - "bitWidth": "1" - }, - "enalways": { - "description": "Watchdog enable counter always", - "bitOffset": "12", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "encoreawake": { - "description": "Watchdog counter only when awake", - "bitOffset": "13", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "cmpip": { - "description": "Watchdog interrupt pending", - "bitOffset": "28", - "bitWidth": "1" - } - } - }, - "count": { - "description": "Watchdog Count Register", - "addressOffset": "0x0008" - }, - "scale": { - "description": "Watchdog Scale Register", - "addressOffset": "0x0010", - "fields": { - "value": { - "description": "Watchdog scale value", - "bitOffset": "0", - "bitWidth": "16" - } - } - }, - "feed": { - "description": "Watchdog Feed Address Register", - "addressOffset": "0x0018" - }, - "key": { - "description": "Watchdog Key Register", - "addressOffset": "0x001C" - }, - "cmp": { - "description": "Watchdog Compare Register", - "addressOffset": "0x0020", - "fields": { - "value": { - "description": "Watchdog compare value", - "bitOffset": "0", - "bitWidth": "16" - } - } - } - }, - "interrupts": { - "wdogcmp": { - "description": "Watchdog Compare Interrupt", - "value": "1" - } - } - }, - "rtc": { - "description": "Real-Time Clock (RTC), part of Always-On Domain", - "baseAddress": "0x10000040", - "size": "0x0030", - "resetMask": "none", - "registers": { - "cfg": { - "description": "RTC Configuration Register", - "addressOffset": "0x0000", - "fields": { - "scale": { - "description": "RTC clock rate scale", - "bitOffset": "0", - "bitWidth": "4" - }, - "enalways": { - "description": "RTC counter enable", - "bitOffset": "12", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "cmpip": { - "description": "RTC comparator interrupt pending", - "bitOffset": "28", - "bitWidth": "1", - "access": "r" - } - } - }, - "low": { - "description": "RTC Counter Register Low", - "addressOffset": "0x0008" - }, - "high": { - "description": "RTC Counter Register High", - "addressOffset": "0x000C", - "fields": { - "value": { - "description": "RTC counter register, high bits", - "bitOffset": "0", - "bitWidth": "16" - } - } - }, - "scale": { - "description": "RTC Scale Register", - "addressOffset": "0x0010" - }, - "cmp": { - "description": "RTC Compare Register", - "addressOffset": "0x0020" - } - }, - "interrupts": { - "rtccmp": { - "description": "RTC Compare Interrupt", - "value": "2" - } - } - }, - "pmu": { - "description": "Power-Management Unit (PMU), part of Always-On Domain", - "baseAddress": "0x10000100", - "size": "0x0050", - "resetMask": "none", - "registers": { - "wakeupi": { - "description": "Wakeup program instruction Registers", - "addressOffset": "0x0000", - "arraySize": "8" - }, - "sleepi": { - "description": "Sleep Program Instruction Registers", - "addressOffset": "0x0020", - "arraySize": "8" - }, - "ie": { - "description": "PMU Interrupt Enables Register", - "addressOffset": "0x0040", - "fields": { - "rtc": { - "description": "RTC Comparator active", - "bitOffset": "1", - "bitWidth": "1" - }, - "dwakeup": { - "description": "dwakeup_n pin active", - "bitOffset": "2", - "bitWidth": "1" - } - } - }, - "cause": { - "description": "PMU Wakeup Cause Register", - "addressOffset": "0x0044", - "fields": { - "wakeupcause": { - "description": "Wakeup cause", - "bitOffset": "0", - "bitWidth": "2", - "access": "r", - "enumerations": { - "wakeupcause-enum": { - "description": "Wakeup Cause Values Enumeration", - "values": { - "0": { - "displayName": "reset", - "description": "Reset Wakeup" - }, - "1": { - "displayName": "rtc", - "description": "RTC Wakeup" - }, - "2": { - "displayName": "dwakeup", - "description": "Digital input Wakeup" - }, - "*": { - "displayName": "undefined" - } - } - } - } - }, - "resetcause": { - "description": "Reset cause", - "bitOffset": "8", - "bitWidth": "2", - "access": "r", - "enumerations": { - "resetcause-enum": { - "description": "Reset Cause Values Enumeration", - "values": { - "1": { - "displayName": "external", - "description": "External reset" - }, - "2": { - "displayName": "watchdog", - "description": "Watchdog timer reset" - }, - "*": { - "displayName": "undefined" - } - } - } - } - } - } - }, - "sleep": { - "description": "PMU Initiate Sleep Sequence Register", - "addressOffset": "0x0048" - }, - "key": { - "description": "PMU Key Register", - "addressOffset": "0x004C" - } - } - }, - "aon": { - "description": "Always-On (AON) Domain", - "baseAddress": "0x10000070", - "size": "0x0090", - "resetMask": "none", - "registers": { - "lfrosccfg": { - "description": "Internal Programmable Low-Frequency Ring Oscillator Register", - "addressOffset": "0x0000", - "fields": { - "div": { - "description": "LFROSC divider", - "bitOffset": "0", - "bitWidth": "6", - "resetMask": "all", - "resetValue": "0x04" - }, - "trim": { - "description": "LFROSC trim value", - "bitOffset": "16", - "bitWidth": "5", - "resetMask": "all", - "resetValue": "0x10" - }, - "en": { - "description": "LFROSC enable", - "bitOffset": "30", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1" - }, - "rdy": { - "description": "LFROSC ready", - "bitOffset": "31", - "bitWidth": "1", - "access": "r" - } - } - }, - "backup": { - "description": "Backup Registers", - "addressOffset": "0x0010", - "arraySize": "32" - } - } - }, - "prci": { - "description": "Power, Reset, Clock, Interrupt (PRCI) Peripheral", - "baseAddress": "0x10008000", - "size": "0x8000", - "registers": { - "hfrosccfg": { - "description": "Internal Trimmable Programmable 72 MHz Oscillator Register", - "addressOffset": "0x0000", - "fields": { - "div": { - "description": "HFROSC divider", - "bitOffset": "0", - "bitWidth": "6", - "resetMask": "all", - "resetValue": "0x04" - }, - "trim": { - "description": "HFROSC trim value", - "bitOffset": "16", - "bitWidth": "5", - "resetMask": "all", - "resetValue": "0x10" - }, - "en": { - "description": "HFROSC enable", - "bitOffset": "30", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1" - }, - "rdy": { - "description": "HFROSC ready", - "bitOffset": "31", - "bitWidth": "1", - "access": "r" - } - } - }, - "hfxosccfg": { - "description": "External 16 MHz Crystal Oscillator Register", - "addressOffset": "0x0004", - "fields": { - "en": { - "description": "HFXOSC enable", - "bitOffset": "30", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1" - }, - "rdy": { - "description": "HFXOSC ready", - "bitOffset": "31", - "bitWidth": "1", - "access": "r" - } - } - }, - "pllcfg": { - "description": "Internal High-Frequency PLL (HFPLL) Register", - "addressOffset": "0x0008", - "fields": { - "r": { - "description": "PLL R input divider value", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x1", - "enumerations": { - "pllr-enum": { - "description": "Reference Clock R Divide Ratio Enumeration", - "values": { - "0": { - "displayName": "/1", - "headerName": "div1", - "description": "Unchanged" - }, - "1": { - "displayName": "/2", - "headerName": "div2", - "description": "Divided by 2" - }, - "2": { - "displayName": "/3", - "headerName": "div3", - "description": "Divided by 3" - }, - "3": { - "displayName": "/4", - "headerName": "div4", - "description": "Divided by 4" - } - } - } - } - }, - "f": { - "description": "PLL F multiplier value", - "bitOffset": "4", - "bitWidth": "6", - "resetMask": "all", - "resetValue": "0x1F", - "enumerations": { - "pllf-enum": { - "description": "Reference Clock F Multiplier Ratio Enumeration", - "values": { - "0": { - "displayName": "*2", - "headerName": "mul2", - "description": "Multiplied by 2" - }, - "1": { - "displayName": "*4", - "headerName": "mul4", - "description": "Multiplied by 4" - }, - "2": { - "displayName": "*6", - "headerName": "mul6", - "description": "Multiplied by 6" - }, - "3": { - "displayName": "*8", - "headerName": "mul8", - "description": "Multiplied by 8" - }, - "4": { - "displayName": "*10", - "headerName": "mul10", - "description": "Multiplied by 10" - }, - "5": { - "displayName": "*12", - "headerName": "mul12", - "description": "Multiplied by 12" - }, - "6": { - "displayName": "*14", - "headerName": "mul14", - "description": "Multiplied by 14" - }, - "7": { - "displayName": "*16", - "headerName": "mul16", - "description": "Multiplied by 16" - }, - "8": { - "displayName": "*18", - "headerName": "mul18", - "description": "Multiplied by 18" - }, - "9": { - "displayName": "*20", - "headerName": "mul20", - "description": "Multiplied by 20" - }, - "10": { - "displayName": "*22", - "headerName": "mul22", - "description": "Multiplied by 22" - }, - "11": { - "displayName": "*24", - "headerName": "mul24", - "description": "Multiplied by 24" - }, - "12": { - "displayName": "*26", - "headerName": "mul26", - "description": "Multiplied by 26" - }, - "13": { - "displayName": "*28", - "headerName": "mul28", - "description": "Multiplied by 28" - }, - "14": { - "displayName": "*30", - "headerName": "mul30", - "description": "Multiplied by 30" - }, - "15": { - "displayName": "*32", - "headerName": "mul32", - "description": "Multiplied by 32" - }, - "16": { - "displayName": "*34", - "headerName": "mul34", - "description": "Multiplied by 34" - }, - "17": { - "displayName": "*36", - "headerName": "mul36", - "description": "Multiplied by 36" - }, - "18": { - "displayName": "*38", - "headerName": "mul38", - "description": "Multiplied by 38" - }, - "19": { - "displayName": "*40", - "headerName": "mul40", - "description": "Multiplied by 40" - }, - "20": { - "displayName": "*42", - "headerName": "mul42", - "description": "Multiplied by 42" - }, - "21": { - "displayName": "*44", - "headerName": "mul44", - "description": "Multiplied by 44" - }, - "22": { - "displayName": "*46", - "headerName": "mul46", - "description": "Multiplied by 46" - }, - "23": { - "displayName": "*48", - "headerName": "mul48", - "description": "Multiplied by 48" - }, - "24": { - "displayName": "*50", - "headerName": "mul50", - "description": "Multiplied by 50" - }, - "25": { - "displayName": "*52", - "headerName": "mul52", - "description": "Multiplied by 52" - }, - "26": { - "displayName": "*54", - "headerName": "mul54", - "description": "Multiplied by 54" - }, - "27": { - "displayName": "*56", - "headerName": "mul56", - "description": "Multiplied by 56" - }, - "28": { - "displayName": "*58", - "headerName": "mul58", - "description": "Multiplied by 58" - }, - "29": { - "displayName": "*60", - "headerName": "mul60", - "description": "Multiplied by 60" - }, - "30": { - "displayName": "*62", - "headerName": "mul62", - "description": "Multiplied by 62" - }, - "31": { - "displayName": "*64", - "headerName": "mul64", - "description": "Multiplied by 64" - }, - "32": { - "displayName": "*66", - "headerName": "mul66", - "description": "Multiplied by 66" - }, - "33": { - "displayName": "*68", - "headerName": "mul68", - "description": "Multiplied by 68" - }, - "34": { - "displayName": "*70", - "headerName": "mul70", - "description": "Multiplied by 70" - }, - "35": { - "displayName": "*72", - "headerName": "mul72", - "description": "Multiplied by 72" - }, - "36": { - "displayName": "*74", - "headerName": "mul74", - "description": "Multiplied by 74" - }, - "37": { - "displayName": "*76", - "headerName": "mul76", - "description": "Multiplied by 76" - }, - "38": { - "displayName": "*78", - "headerName": "mul78", - "description": "Multiplied by 78" - }, - "39": { - "displayName": "*80", - "headerName": "mul80", - "description": "Multiplied by 80" - }, - "40": { - "displayName": "*82", - "headerName": "mul82", - "description": "Multiplied by 82" - }, - "41": { - "displayName": "*84", - "headerName": "mul84", - "description": "Multiplied by 84" - }, - "42": { - "displayName": "*86", - "headerName": "mul86", - "description": "Multiplied by 86" - }, - "43": { - "displayName": "*88", - "headerName": "mul88", - "description": "Multiplied by 88" - }, - "44": { - "displayName": "*90", - "headerName": "mul90", - "description": "Multiplied by 90" - }, - "45": { - "displayName": "*92", - "headerName": "mul92", - "description": "Multiplied by 92" - }, - "46": { - "displayName": "*94", - "headerName": "mul94", - "description": "Multiplied by 94" - }, - "47": { - "displayName": "*96", - "headerName": "mul96", - "description": "Multiplied by 96" - }, - "48": { - "displayName": "*98", - "headerName": "mul98", - "description": "Multiplied by 98" - }, - "49": { - "displayName": "*100", - "headerName": "mul100", - "description": "Multiplied by 100" - }, - "50": { - "displayName": "*102", - "headerName": "mul102", - "description": "Multiplied by 102" - }, - "51": { - "displayName": "*104", - "headerName": "mul104", - "description": "Multiplied by 104" - }, - "52": { - "displayName": "*106", - "headerName": "mul106", - "description": "Multiplied by 106" - }, - "53": { - "displayName": "*108", - "headerName": "mul108", - "description": "Multiplied by 108" - }, - "54": { - "displayName": "*110", - "headerName": "mul110", - "description": "Multiplied by 110" - }, - "55": { - "displayName": "*112", - "headerName": "mul112", - "description": "Multiplied by 112" - }, - "56": { - "displayName": "*114", - "headerName": "mul114", - "description": "Multiplied by 114" - }, - "57": { - "displayName": "*116", - "headerName": "mul116", - "description": "Multiplied by 116" - }, - "58": { - "displayName": "*118", - "headerName": "mul118", - "description": "Multiplied by 118" - }, - "59": { - "displayName": "*120", - "headerName": "mul120", - "description": "Multiplied by 120" - }, - "60": { - "displayName": "*122", - "headerName": "mul122", - "description": "Multiplied by 122" - }, - "61": { - "displayName": "*124", - "headerName": "mul124", - "description": "Multiplied by 124" - }, - "62": { - "displayName": "*126", - "headerName": "mul126", - "description": "Multiplied by 126" - }, - "63": { - "displayName": "*128", - "headerName": "mul128", - "description": "Multiplied by 128" - } - } - } - } - }, - "q": { - "description": "PLL Q output divider value", - "bitOffset": "10", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x3", - "enumerations": { - "pllq-enum": { - "description": "Reference Clock Q Divide Ratio Enumeration", - "values": { - "*": { - "displayName": "n/a", - "description": "Not supported" - }, - "1": { - "displayName": "/2", - "headerName": "div2", - "description": "Divided by 2" - }, - "2": { - "displayName": "/4", - "headerName": "div4", - "description": "Divided by 4" - }, - "3": { - "displayName": "/8", - "headerName": "div8", - "description": "Divided by 8" - } - } - } - } - }, - "sel": { - "description": "PLL select", - "bitOffset": "16", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "refsel": { - "description": "PLL reference select", - "bitOffset": "17", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1" - }, - "bypass": { - "description": "PLL bypass", - "bitOffset": "18", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1" - }, - "lock": { - "description": "PLL lock indicator", - "bitOffset": "31", - "bitWidth": "1", - "access": "r" - } - } - }, - "plloutdiv": { - "description": "PLL Output Divider", - "addressOffset": "0x000C" - } - } - }, - "otp": { - "description": "One-Time Programmable Memory (OTP) Peripheral", - "baseAddress": "0x10010000", - "size": "0x1000", - "registers": { - "lock": { - "description": "Programmed-I/O Lock Register", - "addressOffset": "0x0000" - }, - "ck": { - "description": "Device Clock Signal Register", - "addressOffset": "0x0004" - }, - "oe": { - "description": "Device Output-Enable Signal Register", - "addressOffset": "0x0008" - }, - "sel": { - "description": "Device Chip-Select Signal Register", - "addressOffset": "0x000C" - }, - "we": { - "description": "Device Write-Enable Signal Register", - "addressOffset": "0x0010" - }, - "mr": { - "description": "Device Mode Register", - "addressOffset": "0x0014" - }, - "mrr": { - "description": "Read-Voltage Regulator Control Register", - "addressOffset": "0x0018" - }, - "mpp": { - "description": "Write-Voltage Charge Pump Control Register", - "addressOffset": "0x001C" - }, - "vrren": { - "description": "Read-Voltage Enable Register", - "addressOffset": "0x0020" - }, - "vppen": { - "description": "Write-Voltage Enable Register", - "addressOffset": "0x0024" - }, - "a": { - "description": "Device Address Register", - "addressOffset": "0x0028" - }, - "d": { - "description": "Device Data Input Register", - "addressOffset": "0x002C" - }, - "q": { - "description": "Device Data Output Register", - "addressOffset": "0x0030" - }, - "rsctrl": { - "description": "Read Sequencer Control Register", - "addressOffset": "0x0034", - "fields": { - "scale": { - "description": "OTP timescale", - "bitOffset": "0", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x1" - }, - "tas": { - "description": "Address setup time", - "bitOffset": "3", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "trp": { - "description": "Read pulse time", - "bitOffset": "4", - "bitWidth": "1" - }, - "tracc": { - "description": "Read access time", - "bitOffset": "5", - "bitWidth": "1" - } - } - } - } - }, - "gpio": { - "description": "General Purpose Input/Output Controller (GPIO) Peripheral", - "baseAddress": "0x10012000", - "size": "0x1000", - "registers": { - "value": { - "description": "Pin Value Register", - "addressOffset": "0x000", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Value Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "inputen": { - "description": "Pin Input Enable Register", - "addressOffset": "0x004", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Pin Input Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "outputen": { - "description": "Pin Output Enable Register", - "addressOffset": "0x008", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Pin Output Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "port": { - "description": "Output Port Value Register", - "addressOffset": "0x00C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Output Port Value Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "pue": { - "description": "Internal Pull-up Enable Register", - "addressOffset": "0x010", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Internal Pull-up Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "ds": { - "description": "Pin Drive Strength Register", - "addressOffset": "0x014", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Pin Drive Strength Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "riseie": { - "description": "Rise Interrupt Enable Register", - "addressOffset": "0x018", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Rise Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "riseip": { - "description": "Rise Interrupt Pending Register", - "addressOffset": "0x01C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Rise Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "fallie": { - "description": "Fall Interrupt Enable Register", - "addressOffset": "0x020", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Fall Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "fallip": { - "description": "Fall Interrupt Pending Register", - "addressOffset": "0x024", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Fall Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "highie": { - "description": "High Interrupt Enable Register", - "addressOffset": "0x028", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "High Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "highip": { - "description": "High Interrupt Pending Register", - "addressOffset": "0x02C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "High Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "lowie": { - "description": "Low Interrupt Enable Register", - "addressOffset": "0x030", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Low Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "lowip": { - "description": "Low Interrupt Pending Register", - "addressOffset": "0x034", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Low Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "iofen": { - "description": "HW I/O Function Enable Register", - "addressOffset": "0x038", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "HW I/O Function Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "iofsel": { - "description": "HW I/O Function Select Register", - "addressOffset": "0x03C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "HW I/O Function Select Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "outxor": { - "description": "Output XOR (invert) Register", - "addressOffset": "0x040", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Output XOR Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - } - }, - "interrupts": { - "gpio0": { - "description": "GPIO0 Interrupt", - "value": "8" - }, - "gpio1": { - "description": "GPIO1 Interrupt", - "value": "9" - }, - "gpio2": { - "description": "GPIO2 Interrupt", - "value": "10" - }, - "gpio3": { - "description": "GPIO3 Interrupt", - "value": "11" - }, - "gpio4": { - "description": "GPIO4 Interrupt", - "value": "12" - }, - "gpio5": { - "description": "GPIO5 Interrupt", - "value": "13" - }, - "gpio6": { - "description": "GPIO6 Interrupt", - "value": "14" - }, - "gpio7": { - "description": "GPIO7 Interrupt", - "value": "15" - }, - "gpio8": { - "description": "GPIO8 Interrupt", - "value": "16" - }, - "gpio9": { - "description": "GPIO9 Interrupt", - "value": "17" - }, - "gpio10": { - "description": "GPIO10 Interrupt", - "value": "18" - }, - "gpio11": { - "description": "GPIO11 Interrupt", - "value": "19" - }, - "gpio12": { - "description": "GPIO12 Interrupt", - "value": "20" - }, - "gpio13": { - "description": "GPIO13 Interrupt", - "value": "21" - }, - "gpio14": { - "description": "GPIO14 Interrupt", - "value": "22" - }, - "gpio15": { - "description": "GPIO15 Interrupt", - "value": "23" - }, - "gpio16": { - "description": "GPIO16 Interrupt", - "value": "24" - }, - "gpio17": { - "description": "GPIO17 Interrupt", - "value": "25" - }, - "gpio18": { - "description": "GPIO18 Interrupt", - "value": "26" - }, - "gpio19": { - "description": "GPIO19 Interrupt", - "value": "27" - }, - "gpio20": { - "description": "GPIO20 Interrupt", - "value": "28" - }, - "gpio21": { - "description": "GPIO21 Interrupt", - "value": "29" - }, - "gpio22": { - "description": "GPIO22 Interrupt", - "value": "30" - }, - "gpio23": { - "description": "GPIO23 Interrupt", - "value": "31" - }, - "gpio24": { - "description": "GPIO24 Interrupt", - "value": "32" - }, - "gpio25": { - "description": "GPIO25 Interrupt", - "value": "33" - }, - "gpio26": { - "description": "GPIO26 Interrupt", - "value": "34" - }, - "gpio27": { - "description": "GPIO27 Interrupt", - "value": "35" - }, - "gpio28": { - "description": "GPIO28 Interrupt", - "value": "36" - }, - "gpio29": { - "description": "GPIO29 Interrupt", - "value": "37" - }, - "gpio30": { - "description": "GPIO30 Interrupt", - "value": "38" - }, - "gpio31": { - "description": "GPIO31 Interrupt", - "value": "39" - } - } - }, - "uart0": { - "description": "Universal Asynchronous Receiver/Transmitter (UART) Peripheral", - "baseAddress": "0x10013000", - "size": "0x1000", - "resetMask": "none", - "groupName": "uart", - "registers": { - "txdata": { - "description": "Transmit Data Register", - "addressOffset": "0x000", - "fields": { - "data": { - "description": "Transmit data", - "bitOffset": "0", - "bitWidth": "8" - }, - "full": { - "description": "Transmit FIFO full", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "rxdata": { - "description": "Receive Data Register", - "addressOffset": "0x004", - "resetMask": "none", - "fields": { - "data": { - "description": "Received data", - "bitOffset": "0", - "bitWidth": "8", - "access": "r" - }, - "empty": { - "description": "Receive FIFO empty", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "txctrl": { - "description": "Transmit Control Register ", - "addressOffset": "0x008", - "fields": { - "txen": { - "description": "Transmit enable", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "nstop": { - "description": "Number of stop bits", - "bitOffset": "1", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "txcnt": { - "description": "Transmit watermark level", - "bitOffset": "16", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "rxctrl": { - "description": "Receive Control Register", - "addressOffset": "0x00C", - "fields": { - "rxen": { - "description": "Receive enable", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "rxcnt": { - "description": "Receive watermark level", - "bitOffset": "16", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ie": { - "description": "Interrupt Enable Register", - "addressOffset": "0x010", - "fields": { - "txwm": { - "description": "Transmit watermark interrupt enable", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "rxwm": { - "description": "Receive watermark interrupt enable", - "bitOffset": "1", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ip": { - "description": "Interrupt Pending Register", - "addressOffset": "0x014", - "access": "r", - "fields": { - "txwm": { - "description": "Transmit watermark interrupt pending", - "bitOffset": "0", - "bitWidth": "1" - }, - "rxwm": { - "description": "Receive watermark interrupt pending", - "bitOffset": "1", - "bitWidth": "1" - } - } - }, - "div": { - "description": "Baud Rate Divisor Register", - "addressOffset": "0x018", - "fields": { - "value": { - "description": "Baud rate divisor", - "bitOffset": "0", - "bitWidth": "16", - "resetMask": "all", - "resetValue": "0x0000FFFF" - } - } - } - }, - "interrupts": { - "uart0": { - "description": "UART0 Interrupt", - "value": "3" - } - } - }, - "spi0": { - "description": "Serial Peripheral Interface (SPI) Peripheral", - "baseAddress": "0x10014000", - "size": "0x1000", - "resetMask": "none", - "groupName": "spi", - "registers": { - "sckdiv": { - "description": "Serial clock divisor Register", - "addressOffset": "0x000", - "fields": { - "scale": { - "description": "Divisor for serial clock", - "bitOffset": "0", - "bitWidth": "12", - "resetMask": "all", - "resetValue": "0x003" - } - } - }, - "sckmode": { - "description": "Serial Clock Mode Register", - "addressOffset": "0x004", - "fields": { - "pha": { - "description": "Serial clock phase", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "pol": { - "description": "Serial clock polarity", - "bitOffset": "1", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "csid": { - "description": "Chip Select ID Register", - "addressOffset": "0x010", - "resetMask": "all", - "resetValue": "0x00000000" - }, - "csdef": { - "description": "Chip Select Default Register", - "addressOffset": "0x014", - "resetMask": "all", - "resetValue": "0x00000001" - }, - "csmode": { - "description": "Chip Select Mode Register", - "addressOffset": "0x018", - "fields": { - "mode": { - "description": "Chip select mode", - "bitOffset": "0", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0", - "enumerations": { - "csmode-enum": { - "description": "Chip Select Modes Enumeration", - "values": { - "0": { - "displayName": "auto", - "description": "Assert/de-assert CS at the beginning/end of each frame" - }, - "*": { - "displayName": "reserved" - }, - "2": { - "displayName": "hold", - "description": "Keep CS continuously asserted after the initial frame" - }, - "3": { - "displayName": "off", - "description": "Disable hardware control of the CS pin" - } - } - } - } - } - } - }, - "delay0": { - "description": "Delay Control 0 Register", - "addressOffset": "0x028", - "fields": { - "cssck": { - "description": "CS to SCK Delay", - "bitOffset": "0", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - }, - "sckcs": { - "description": "SCK to CS Delay", - "bitOffset": "16", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - } - } - }, - "delay1": { - "description": "Delay Control 1 Register", - "addressOffset": "0x02C", - "fields": { - "intercs": { - "description": "Minimum CS inactive time", - "bitOffset": "0", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - }, - "interxfr": { - "description": "Maximum interframe delay", - "bitOffset": "16", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - } - } - }, - "fmt": { - "description": "Frame Format Register", - "addressOffset": "0x040", - "fields": { - "proto": { - "description": "SPI Protocol", - "bitOffset": "0", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0", - "enumerations": { - "proto-enum": { - "description": "SPI Protocol Enumeration", - "values": { - "0": { - "displayName": "single", - "description": "DQ0 (MOSI), DQ1 (MISO)" - }, - "1": { - "displayName": "dual", - "description": "DQ0, DQ1" - }, - "2": { - "displayName": "quad", - "description": "DQ0, DQ1, DQ2, DQ3" - }, - "*": { - "displayName": "reserved" - } - } - } - } - }, - "endian": { - "description": "SPI endianness", - "bitOffset": "2", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0", - "enumerations": { - "endian-enum": { - "description": "SPI Endianness Enumeration", - "values": { - "0": { - "displayName": "msb", - "description": "Transmit most-significant bit (MSB) first" - }, - "1": { - "displayName": "lsb", - "description": "Transmit least-significant bit (LSB) first" - } - } - } - } - }, - "dir": { - "description": "SPI I/O Direction", - "bitOffset": "3", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1", - "enumerations": { - "dir-enum": { - "description": "SPI I/O Direction Enumeration", - "values": { - "0": { - "displayName": "rx", - "description": "For dual and quad protocols, the DQ pins are tri-stated. For the single protocol, the DQ0 pin is driven with the transmit data as normal." - }, - "1": { - "displayName": "tx", - "description": "The receive FIFO is not populated." - } - } - } - } - }, - "len": { - "description": "Number of bits per frame", - "bitOffset": "16", - "bitWidth": "4", - "resetMask": "all", - "resetValue": "0x8" - } - } - }, - "txdata": { - "description": "Tx FIFO Data Register", - "addressOffset": "0x048", - "fields": { - "data": { - "description": "Transmit data", - "bitOffset": "0", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x00" - }, - "full": { - "description": "FIFO full flag", - "bitOffset": "31", - "bitWidth": "1", - "access": "r" - } - } - }, - "rxdata": { - "description": "Rx FIFO Data Register", - "addressOffset": "0x04C", - "resetMask": "none", - "access": "r", - "fields": { - "data": { - "description": "Received data", - "bitOffset": "0", - "bitWidth": "8" - }, - "empty": { - "description": "FIFO empty flag", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "txmark": { - "description": "Tx FIFO Watermark Register", - "addressOffset": "0x050", - "fields": { - "value": { - "description": "Transmit watermark", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x1" - } - } - }, - "rxmark": { - "description": "Rx FIFO Watermark Register", - "addressOffset": "0x054", - "fields": { - "value": { - "description": "Receive watermark", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "fctrl": { - "description": "Flash Interface Control Register", - "addressOffset": "0x060", - "fields": { - "en": { - "description": "SPI Flash Mode Select", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1" - } - } - }, - "ffmt": { - "description": "Flash Instruction Format Register", - "addressOffset": "0x064", - "fields": { - "cmden": { - "description": "Enable sending of command", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1" - }, - "addrlen": { - "description": "Number of address bytes(0 to 4)", - "bitOffset": "1", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x3" - }, - "padcnt": { - "description": "Number of dummy cycles", - "bitOffset": "4", - "bitWidth": "4", - "resetMask": "all", - "resetValue": "0x0" - }, - "cmdproto": { - "description": "Protocol for transmitting command", - "bitOffset": "8", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0" - }, - "addrproto": { - "description": "Protocol for transmitting address and padding", - "bitOffset": "10", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0" - }, - "dataproto": { - "description": "Protocol for receiving data bytes", - "bitOffset": "12", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0" - }, - "cmdcode": { - "description": "Value of command byte", - "bitOffset": "16", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x03" - }, - "padcode": { - "description": "First 8 bits to transmit during dummy cycles", - "bitOffset": "24", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ie": { - "description": "Interrupt Enable Register", - "addressOffset": "0x070", - "fields": { - "txwm": { - "description": "Transmit watermark enable", - "bitOffset": "0", - "bitWidth": "1", - "access": "r", - "resetMask": "all", - "resetValue": "0x0" - }, - "rxwm": { - "description": "Receive watermark enable", - "bitOffset": "1", - "bitWidth": "1", - "access": "r", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ip": { - "description": "Interrupt Pending Register", - "addressOffset": "0x074", - "fields": { - "txwm": { - "description": "Transmit watermark pending", - "bitOffset": "0", - "bitWidth": "1", - "access": "r" - }, - "rxwm": { - "description": "Receive watermark pending", - "bitOffset": "1", - "bitWidth": "1", - "access": "r" - } - } - } - }, - "interrupts": { - "spi0": { - "description": "SPI0 Interrupt", - "value": "5" - } - } - }, - "pwm0": { - "description": "Pulse-Width Modulation (PWM) Peripheral", - "baseAddress": "0x10015000", - "size": "0x1000", - "resetMask": "none", - "registers": { - "cfg": { - "description": "Configuration Register", - "addressOffset": "0x000", - "fields": { - "scale": { - "description": "Counter scale", - "bitOffset": "0", - "bitWidth": "4" - }, - "sticky": { - "description": "Sticky - disallow clearing pwmcmpXip bits", - "bitOffset": "8", - "bitWidth": "1" - }, - "zerocmp": { - "description": "Zero - counter resets to zero after match", - "bitOffset": "9", - "bitWidth": "1" - }, - "deglitch": { - "description": "Deglitch - latch pwmcmpXip within same cycle", - "bitOffset": "10", - "bitWidth": "1" - }, - "enalways": { - "description": "Enable always - run continuously", - "bitOffset": "12", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "enoneshot": { - "description": "enable one shot - run one cycle", - "bitOffset": "13", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "cmp0center": { - "description": "PWM0 Compare Center", - "bitOffset": "16", - "bitWidth": "1" - }, - "cmp1center": { - "description": "PWM1 Compare Center", - "bitOffset": "17", - "bitWidth": "1" - }, - "cmp2center": { - "description": "PWM2 Compare Center", - "bitOffset": "18", - "bitWidth": "1" - }, - "cmp3center": { - "description": "PWM3 Compare Center", - "bitOffset": "19", - "bitWidth": "1" - }, - "cmp0gang": { - "description": "PWM0/PWM1 Compare Gang", - "bitOffset": "24", - "bitWidth": "1" - }, - "cmp1gang": { - "description": "PWM1/PWM2 Compare Gang", - "bitOffset": "25", - "bitWidth": "1" - }, - "cmp2gang": { - "description": "PWM2/PWM3 Compare Gang", - "bitOffset": "26", - "bitWidth": "1" - }, - "cmp3gang": { - "description": "PWM3/PWM0 Compare Gang", - "bitOffset": "27", - "bitWidth": "1" - }, - "cmp0ip": { - "description": "PWM0 Interrupt Pending", - "bitOffset": "28", - "bitWidth": "1" - }, - "cmp1ip": { - "description": "PWM1 Interrupt Pending", - "bitOffset": "29", - "bitWidth": "1" - }, - "cmp2ip": { - "description": "PWM2 Interrupt Pending", - "bitOffset": "30", - "bitWidth": "1" - }, - "cmp3ip": { - "description": "PWM3 Interrupt Pending", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "count": { - "description": "Configuration Register", - "addressOffset": "0x008" - }, - "scale": { - "description": "Scale Register", - "addressOffset": "0x010", - "fields": { - "value": { - "description": "Compare value", - "bitOffset": "0", - "bitWidth": "8" - } - } - }, - "cmp": { - "arraySize": "4", - "description": "Compare Registers", - "addressOffset": "0x020", - "fields": { - "value": { - "description": "Compare value", - "bitOffset": "0", - "bitWidth": "8" - } - } - } - }, - "interrupts": { - "pwm0cmp0": { - "description": "PWM0 Compare 0 Interrupt", - "value": "40" - }, - "pwm0cmp1": { - "description": "PWM0 Compare 1 Interrupt", - "value": "41" - }, - "pwm0cmp2": { - "description": "PWM0 Compare 2 Interrupt", - "value": "42" - }, - "pwm0cmp3": { - "description": "PWM0 Compare 3 Interrupt", - "value": "43" - } - } - }, - "uart1": { - "baseAddress": "0x10023000", - "derivedFrom": "uart0", - "groupName": "uart", - "interrupts": { - "uart1": { - "description": "UART1 Interrupt", - "value": "4" - } - } - }, - "spi1": { - "baseAddress": "0x10024000", - "derivedFrom": "spi0", - "groupName": "spi", - "interrupts": { - "spi1": { - "description": "SPI1 Interrupt", - "value": "6" - } - } - }, - "pwm1": { - "description": "Pulse-Width Modulation (PWM) Peripheral", - "baseAddress": "0x10025000", - "groupName": "pwm", - "size": "0x1000", - "resetMask": "none", - "groupName": "pwm", - "registers": { - "cfg": { - "description": "Configuration Register", - "addressOffset": "0x000", - "fields": { - "scale": { - "description": "Counter scale", - "bitOffset": "0", - "bitWidth": "4" - }, - "sticky": { - "description": "Sticky - disallow clearing pwmcmpXip bits", - "bitOffset": "8", - "bitWidth": "1" - }, - "zerocmp": { - "description": "Zero - counter resets to zero after match", - "bitOffset": "9", - "bitWidth": "1" - }, - "deglitch": { - "description": "Deglitch - latch pwmcmpXip within same cycle", - "bitOffset": "10", - "bitWidth": "1" - }, - "enalways": { - "description": "Enable always - run continuously", - "bitOffset": "12", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "enoneshot": { - "description": "enable one shot - run one cycle", - "bitOffset": "13", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "cmp0center": { - "description": "PWM0 Compare Center", - "bitOffset": "16", - "bitWidth": "1" - }, - "cmp1center": { - "description": "PWM1 Compare Center", - "bitOffset": "17", - "bitWidth": "1" - }, - "cmp2center": { - "description": "PWM2 Compare Center", - "bitOffset": "18", - "bitWidth": "1" - }, - "cmp3center": { - "description": "PWM3 Compare Center", - "bitOffset": "19", - "bitWidth": "1" - }, - "cmp0gang": { - "description": "PWM0/PWM1 Compare Gang", - "bitOffset": "24", - "bitWidth": "1" - }, - "cmp1gang": { - "description": "PWM1/PWM2 Compare Gang", - "bitOffset": "25", - "bitWidth": "1" - }, - "cmp2gang": { - "description": "PWM2/PWM3 Compare Gang", - "bitOffset": "26", - "bitWidth": "1" - }, - "cmp3gang": { - "description": "PWM3/PWM0 Compare Gang", - "bitOffset": "27", - "bitWidth": "1" - }, - "cmp0ip": { - "description": "PWM0 Interrupt Pending", - "bitOffset": "28", - "bitWidth": "1" - }, - "cmp1ip": { - "description": "PWM1 Interrupt Pending", - "bitOffset": "29", - "bitWidth": "1" - }, - "cmp2ip": { - "description": "PWM2 Interrupt Pending", - "bitOffset": "30", - "bitWidth": "1" - }, - "cmp3ip": { - "description": "PWM3 Interrupt Pending", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "count": { - "description": "Configuration Register", - "addressOffset": "0x008" - }, - "scale": { - "description": "Scale Register", - "addressOffset": "0x010", - "fields": { - "value": { - "description": "Compare value", - "bitOffset": "0", - "bitWidth": "16" - } - } - }, - "cmp": { - "arraySize": "4", - "description": "Compare Registers", - "addressOffset": "0x020", - "fields": { - "value": { - "description": "Compare value", - "bitOffset": "0", - "bitWidth": "16" - } - } - } - }, - "interrupts": { - "pwm1cmp0": { - "description": "PWM1 Compare 0 Interrupt", - "value": "44" - }, - "pwm1cmp1": { - "description": "PWM1 Compare 1 Interrupt", - "value": "45" - }, - "pwm1cmp2": { - "description": "PWM1 Compare 2 Interrupt", - "value": "46" - }, - "pwm1cmp3": { - "description": "PWM1 Compare 3 Interrupt", - "value": "47" - } - } - }, - "spi2": { - "baseAddress": "0x10034000", - "derivedFrom": "spi0", - "groupName": "spi", - "interrupts": { - "spi2": { - "description": "SPI2 Interrupt", - "value": "7" - } - } - }, - "pwm2": { - "baseAddress": "0x10035000", - "derivedFrom": "pwm1", - "groupName": "pwm", - "interrupts": { - "pwm2cmp0": { - "description": "PWM2 Compare 0 Interrupt", - "value": "48" - }, - "pwm2cmp1": { - "description": "PWM2 Compare 1 Interrupt", - "value": "49" - }, - "pwm2cmp2": { - "description": "PWM2 Compare 2 Interrupt", - "value": "50" - }, - "pwm2cmp3": { - "description": "PWM2 Compare 3 Interrupt", - "value": "51" - } - } - } - } - } - } -} \ No newline at end of file diff --git a/FreedomStudio/HiFive1/hello/hello OpenOCD.launch b/FreedomStudio/HiFive1/hello/hello OpenOCD.launch deleted file mode 100644 index 55bd731..0000000 --- a/FreedomStudio/HiFive1/hello/hello OpenOCD.launch +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/FreedomStudio/HiFive1/hello/sifive-freedom-e300-hifive1.cfg b/FreedomStudio/HiFive1/hello/sifive-freedom-e300-hifive1.cfg deleted file mode 100644 index b0a8e26..0000000 --- a/FreedomStudio/HiFive1/hello/sifive-freedom-e300-hifive1.cfg +++ /dev/null @@ -1,34 +0,0 @@ -adapter_khz 10000 - -interface ftdi -ftdi_device_desc "Dual RS232-HS" -ftdi_vid_pid 0x0403 0x6010 - -ftdi_layout_init 0x0008 0x001b -ftdi_layout_signal nSRST -oe 0x0020 -data 0x0020 - -#Reset Stretcher logic on FE310 is ~1 second long -#This doesn't apply if you use -# ftdi_set_signal, but still good to document -#adapter_nsrst_delay 1500 - -set _CHIPNAME riscv -jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x10e31913 - -set _TARGETNAME $_CHIPNAME.cpu -target create $_TARGETNAME riscv -chain-position $_TARGETNAME -$_TARGETNAME configure -work-area-phys 0x80000000 -work-area-size 10000 -work-area-backup 1 - -flash bank onboard_spi_flash fespi 0x20000000 0 0 0 $_TARGETNAME -init -#reset -- This type of reset is not implemented yet -if {[ info exists pulse_srst]} { - ftdi_set_signal nSRST 0 - ftdi_set_signal nSRST z - #Wait for the reset stretcher - #It will work without this, but - #will incur lots of delays for later commands. - sleep 1500 -} -halt -flash protect 0 64 last off diff --git a/FreedomStudio/HiFive1/led_fade/.cproject b/FreedomStudio/HiFive1/led_fade/.cproject deleted file mode 100644 index e0d1e09..0000000 --- a/FreedomStudio/HiFive1/led_fade/.cproject +++ /dev/null @@ -1,210 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/FreedomStudio/HiFive1/led_fade/.gitignore b/FreedomStudio/HiFive1/led_fade/.gitignore deleted file mode 100644 index 3df573f..0000000 --- a/FreedomStudio/HiFive1/led_fade/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/Debug/ diff --git a/FreedomStudio/HiFive1/led_fade/.project b/FreedomStudio/HiFive1/led_fade/.project deleted file mode 100644 index f915b0d..0000000 --- a/FreedomStudio/HiFive1/led_fade/.project +++ /dev/null @@ -1,348 +0,0 @@ - - - led_fade - - - - - - org.eclipse.cdt.managedbuilder.core.genmakebuilder - clean,full,incremental, - - - - - org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder - full,incremental, - - - - - - org.eclipse.cdt.core.cnature - org.eclipse.cdt.managedbuilder.core.managedBuildNature - org.eclipse.cdt.managedbuilder.core.ScannerConfigNature - - - - bsp - 2 - virtual:/virtual - - - led_fade.c - 1 - PARENT-3-PROJECT_LOC/software/led_fade/led_fade.c - - - bsp/drivers - 2 - virtual:/virtual - - - bsp/env - 2 - virtual:/virtual - - - bsp/include - 2 - virtual:/virtual - - - bsp/libwrap - 2 - virtual:/virtual - - - bsp/drivers/fe300prci - 2 - virtual:/virtual - - - bsp/drivers/plic - 2 - virtual:/virtual - - - bsp/env/encoding.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/encoding.h - - - bsp/env/entry.S - 1 - PARENT-3-PROJECT_LOC/bsp/env/entry.S - - - bsp/env/freedom-e300-hifive1 - 2 - virtual:/virtual - - - bsp/env/hifive1.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/hifive1.h - - - bsp/env/start.S - 1 - PARENT-3-PROJECT_LOC/bsp/env/start.S - - - bsp/include/sifive - 2 - virtual:/virtual - - - bsp/libwrap/misc - 2 - virtual:/virtual - - - bsp/libwrap/stdlib - 2 - virtual:/virtual - - - bsp/libwrap/sys - 2 - virtual:/virtual - - - bsp/drivers/fe300prci/fe300prci_driver.c - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/fe300prci/fe300prci_driver.c - - - bsp/drivers/fe300prci/fe300prci_driver.h - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/fe300prci/fe300prci_driver.h - - - bsp/drivers/plic/plic_driver.c - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/plic/plic_driver.c - - - bsp/drivers/plic/plic_driver.h - 1 - PARENT-3-PROJECT_LOC/bsp/drivers/plic/plic_driver.h - - - bsp/env/freedom-e300-hifive1/dhrystone.lds - 1 - PARENT-3-PROJECT_LOC/bsp/env/freedom-e300-hifive1/dhrystone.lds - - - bsp/env/freedom-e300-hifive1/flash.lds - 1 - PARENT-3-PROJECT_LOC/bsp/env/freedom-e300-hifive1/flash.lds - - - bsp/env/freedom-e300-hifive1/init.c - 1 - PARENT-3-PROJECT_LOC/bsp/env/freedom-e300-hifive1/init.c - - - bsp/env/freedom-e300-hifive1/openocd.cfg - 1 - PARENT-3-PROJECT_LOC/bsp/env/freedom-e300-hifive1/openocd.cfg - - - bsp/env/freedom-e300-hifive1/platform.h - 1 - PARENT-3-PROJECT_LOC/bsp/env/freedom-e300-hifive1/platform.h - - - bsp/include/sifive/bits.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/bits.h - - - bsp/include/sifive/const.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/const.h - - - bsp/include/sifive/devices - 2 - virtual:/virtual - - - bsp/include/sifive/sections.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/sections.h - - - bsp/include/sifive/smp.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/smp.h - - - bsp/libwrap/misc/write_hex.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/misc/write_hex.c - - - bsp/libwrap/stdlib/malloc.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/stdlib/malloc.c - - - bsp/libwrap/sys/_exit.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/_exit.c - - - bsp/libwrap/sys/close.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/close.c - - - bsp/libwrap/sys/execve.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/execve.c - - - bsp/libwrap/sys/fork.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/fork.c - - - bsp/libwrap/sys/fstat.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/fstat.c - - - bsp/libwrap/sys/getpid.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/getpid.c - - - bsp/libwrap/sys/isatty.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/isatty.c - - - bsp/libwrap/sys/kill.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/kill.c - - - bsp/libwrap/sys/link.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/link.c - - - bsp/libwrap/sys/lseek.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/lseek.c - - - bsp/libwrap/sys/open.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/open.c - - - bsp/libwrap/sys/openat.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/openat.c - - - bsp/libwrap/sys/puts.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/puts.c - - - bsp/libwrap/sys/read.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/read.c - - - bsp/libwrap/sys/sbrk.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/sbrk.c - - - bsp/libwrap/sys/stat.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/stat.c - - - bsp/libwrap/sys/stub.h - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/stub.h - - - bsp/libwrap/sys/times.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/times.c - - - bsp/libwrap/sys/unlink.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/unlink.c - - - bsp/libwrap/sys/wait.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/wait.c - - - bsp/libwrap/sys/weak_under_alias.h - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/weak_under_alias.h - - - bsp/libwrap/sys/write.c - 1 - PARENT-3-PROJECT_LOC/bsp/libwrap/sys/write.c - - - bsp/include/sifive/devices/aon.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/aon.h - - - bsp/include/sifive/devices/clint.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/clint.h - - - bsp/include/sifive/devices/gpio.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/gpio.h - - - bsp/include/sifive/devices/otp.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/otp.h - - - bsp/include/sifive/devices/plic.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/plic.h - - - bsp/include/sifive/devices/prci.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/prci.h - - - bsp/include/sifive/devices/pwm.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/pwm.h - - - bsp/include/sifive/devices/spi.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/spi.h - - - bsp/include/sifive/devices/uart.h - 1 - PARENT-3-PROJECT_LOC/bsp/include/sifive/devices/uart.h - - - diff --git a/FreedomStudio/HiFive1/led_fade/fe310-xsvd.json b/FreedomStudio/HiFive1/led_fade/fe310-xsvd.json deleted file mode 100644 index 1722e54..0000000 --- a/FreedomStudio/HiFive1/led_fade/fe310-xsvd.json +++ /dev/null @@ -1,2325 +0,0 @@ -{ - "schemaVersion": "0.2.4", - "contentVersion": "0.2.0", - "headerVersion": "0.2.0", - "device": { - "fe310": { - "displayName": "Freedom E310-G000", - "description": "The FE310-G000 is the first Freedom E300 SoC, and is the industry's first commercially available RISC-V SoC. The FE310-G000 is built around the E31 Core Complex instantiated in the Freedom E300 platform.", - "supplier": { - "name": "sifive", - "id": "1", - "displayName": "SiFive", - "fullName": "SiFive, Inc.", - "contact": "info@sifive.com" - }, - "busWidth": "32", - "resetMask": "all", - "resetValue": "0x00000000", - "access": "rw", - "headerGuardPrefix": "SIFIVE_DEVICES_FE310_", - "headerTypePrefix": "sifive_fe310_", - "headerInterruptPrefix": "sifive_fe310_interrupt_global_", - "headerInterruptEnumPrefix": "riscv_interrupts_global_", - "revision": "r0p0", - "numInterrupts": "51", - "priorityBits": "3", - "regWidth": "32", - "cores": { - "e31": { - "harts": "1", - "isa": "RV32IMAC", - "isaVersion": "2.2", - "mpu": "pmp", - "mmu": "none", - "localInterrupts": { - "machine_software": { - "description": "Machine Software Interrupt", - "value": "3" - }, - "machine_timer": { - "description": "Machine Timer Interrupt", - "value": "7" - }, - "machine_ext": { - "description": "Machine External Interrupt", - "value": "11" - } - }, - "numLocalInterrupts": "0" - } - }, - "peripherals": { - "clint": { - "description": "Core Complex Local Interruptor (CLINT) Peripheral", - "baseAddress": "0x02000000", - "size": "0x10000", - "registers": { - "msip": { - "description": "MSIP (Machine-mode Software Interrupts) Register per Hart", - "addressOffset": "0x0000", - "arraySize": "1" - } - }, - "clusters": { - "mtimecmp": { - "description": "Machine Time Compare Registers per Hart", - "addressOffset": "0x4000", - "arraySize": "1", - "registers": { - "low": { - "description": "Machine Compare Register Low", - "addressOffset": "0x0000" - }, - "high": { - "description": "Machine Compare Register High", - "addressOffset": "0x0004" - } - } - }, - "mtime": { - "description": "Machine Time Register", - "addressOffset": "0xBFF8", - "access": "r", - "registers": { - "low": { - "description": "Machine Time Register Low", - "addressOffset": "0x0000" - }, - "high": { - "description": "Machine Time Register High", - "addressOffset": "0x0004" - } - } - } - } - }, - "plic": { - "description": "Platform-Level Interrupt Controller (PLIC) Peripheral", - "baseAddress": "0x0C000000", - "size": "0x4000000", - "registers": { - "priorities": { - "arraySize": "52", - "description": "Interrupt Priorities Registers; 0 is reserved.", - "addressOffset": "0x0000", - "fields": { - "value": { - "description": "The priority for a given global interrupt", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "pendings": { - "arraySize": "2", - "description": "Interrupt Pending Bits Registers", - "addressOffset": "0x1000", - "access": "r" - } - }, - "clusters": { - "enablestarget0": { - "description": "Hart 0 Interrupt Enable Bits", - "addressOffset": "0x00002000", - "clusters": { - "m": { - "addressOffset": "0x0000", - "description": "Hart 0 M-mode Interrupt Enable Bits", - "registers": { - "enables": { - "arraySize": "2", - "description": "Interrupt Enable Bits Registers", - "addressOffset": "0x0000" - } - } - } - } - }, - "target0": { - "description": "Hart 0 Interrupt Thresholds", - "addressOffset": "0x00200000", - "clusters": { - "m": { - "addressOffset": "0x0000", - "description": "Hart 0 M-Mode Interrupt Threshold", - "registers": { - "threshold": { - "description": "The Priority Threshold Register", - "addressOffset": "0x0000", - "fields": { - "value": { - "description": "The priority threshold value", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "claimcomplete": { - "description": "The Interrupt Claim/Completion Register", - "addressOffset": "0x0004" - } - } - } - } - } - } - }, - "wdog": { - "description": "Watchdog Timer (WDT), part of Always-On Domain", - "baseAddress": "0x10000000", - "size": "0x0040", - "resetMask": "none", - "registers": { - "cfg": { - "description": "Watchdog Configuration Register", - "addressOffset": "0x0000", - "fields": { - "scale": { - "description": "Watchdog counter scale", - "bitOffset": "0", - "bitWidth": "4" - }, - "rsten": { - "description": "Watchdog full reset enable", - "bitOffset": "8", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "zerocmp": { - "description": "Watchdog zero on comparator", - "bitOffset": "9", - "bitWidth": "1" - }, - "enalways": { - "description": "Watchdog enable counter always", - "bitOffset": "12", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "encoreawake": { - "description": "Watchdog counter only when awake", - "bitOffset": "13", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "cmpip": { - "description": "Watchdog interrupt pending", - "bitOffset": "28", - "bitWidth": "1" - } - } - }, - "count": { - "description": "Watchdog Count Register", - "addressOffset": "0x0008" - }, - "scale": { - "description": "Watchdog Scale Register", - "addressOffset": "0x0010", - "fields": { - "value": { - "description": "Watchdog scale value", - "bitOffset": "0", - "bitWidth": "16" - } - } - }, - "feed": { - "description": "Watchdog Feed Address Register", - "addressOffset": "0x0018" - }, - "key": { - "description": "Watchdog Key Register", - "addressOffset": "0x001C" - }, - "cmp": { - "description": "Watchdog Compare Register", - "addressOffset": "0x0020", - "fields": { - "value": { - "description": "Watchdog compare value", - "bitOffset": "0", - "bitWidth": "16" - } - } - } - }, - "interrupts": { - "wdogcmp": { - "description": "Watchdog Compare Interrupt", - "value": "1" - } - } - }, - "rtc": { - "description": "Real-Time Clock (RTC), part of Always-On Domain", - "baseAddress": "0x10000040", - "size": "0x0030", - "resetMask": "none", - "registers": { - "cfg": { - "description": "RTC Configuration Register", - "addressOffset": "0x0000", - "fields": { - "scale": { - "description": "RTC clock rate scale", - "bitOffset": "0", - "bitWidth": "4" - }, - "enalways": { - "description": "RTC counter enable", - "bitOffset": "12", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "cmpip": { - "description": "RTC comparator interrupt pending", - "bitOffset": "28", - "bitWidth": "1", - "access": "r" - } - } - }, - "low": { - "description": "RTC Counter Register Low", - "addressOffset": "0x0008" - }, - "high": { - "description": "RTC Counter Register High", - "addressOffset": "0x000C", - "fields": { - "value": { - "description": "RTC counter register, high bits", - "bitOffset": "0", - "bitWidth": "16" - } - } - }, - "scale": { - "description": "RTC Scale Register", - "addressOffset": "0x0010" - }, - "cmp": { - "description": "RTC Compare Register", - "addressOffset": "0x0020" - } - }, - "interrupts": { - "rtccmp": { - "description": "RTC Compare Interrupt", - "value": "2" - } - } - }, - "pmu": { - "description": "Power-Management Unit (PMU), part of Always-On Domain", - "baseAddress": "0x10000100", - "size": "0x0050", - "resetMask": "none", - "registers": { - "wakeupi": { - "description": "Wakeup program instruction Registers", - "addressOffset": "0x0000", - "arraySize": "8" - }, - "sleepi": { - "description": "Sleep Program Instruction Registers", - "addressOffset": "0x0020", - "arraySize": "8" - }, - "ie": { - "description": "PMU Interrupt Enables Register", - "addressOffset": "0x0040", - "fields": { - "rtc": { - "description": "RTC Comparator active", - "bitOffset": "1", - "bitWidth": "1" - }, - "dwakeup": { - "description": "dwakeup_n pin active", - "bitOffset": "2", - "bitWidth": "1" - } - } - }, - "cause": { - "description": "PMU Wakeup Cause Register", - "addressOffset": "0x0044", - "fields": { - "wakeupcause": { - "description": "Wakeup cause", - "bitOffset": "0", - "bitWidth": "2", - "access": "r", - "enumerations": { - "wakeupcause-enum": { - "description": "Wakeup Cause Values Enumeration", - "values": { - "0": { - "displayName": "reset", - "description": "Reset Wakeup" - }, - "1": { - "displayName": "rtc", - "description": "RTC Wakeup" - }, - "2": { - "displayName": "dwakeup", - "description": "Digital input Wakeup" - }, - "*": { - "displayName": "undefined" - } - } - } - } - }, - "resetcause": { - "description": "Reset cause", - "bitOffset": "8", - "bitWidth": "2", - "access": "r", - "enumerations": { - "resetcause-enum": { - "description": "Reset Cause Values Enumeration", - "values": { - "1": { - "displayName": "external", - "description": "External reset" - }, - "2": { - "displayName": "watchdog", - "description": "Watchdog timer reset" - }, - "*": { - "displayName": "undefined" - } - } - } - } - } - } - }, - "sleep": { - "description": "PMU Initiate Sleep Sequence Register", - "addressOffset": "0x0048" - }, - "key": { - "description": "PMU Key Register", - "addressOffset": "0x004C" - } - } - }, - "aon": { - "description": "Always-On (AON) Domain", - "baseAddress": "0x10000070", - "size": "0x0090", - "resetMask": "none", - "registers": { - "lfrosccfg": { - "description": "Internal Programmable Low-Frequency Ring Oscillator Register", - "addressOffset": "0x0000", - "fields": { - "div": { - "description": "LFROSC divider", - "bitOffset": "0", - "bitWidth": "6", - "resetMask": "all", - "resetValue": "0x04" - }, - "trim": { - "description": "LFROSC trim value", - "bitOffset": "16", - "bitWidth": "5", - "resetMask": "all", - "resetValue": "0x10" - }, - "en": { - "description": "LFROSC enable", - "bitOffset": "30", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1" - }, - "rdy": { - "description": "LFROSC ready", - "bitOffset": "31", - "bitWidth": "1", - "access": "r" - } - } - }, - "backup": { - "description": "Backup Registers", - "addressOffset": "0x0010", - "arraySize": "32" - } - } - }, - "prci": { - "description": "Power, Reset, Clock, Interrupt (PRCI) Peripheral", - "baseAddress": "0x10008000", - "size": "0x8000", - "registers": { - "hfrosccfg": { - "description": "Internal Trimmable Programmable 72 MHz Oscillator Register", - "addressOffset": "0x0000", - "fields": { - "div": { - "description": "HFROSC divider", - "bitOffset": "0", - "bitWidth": "6", - "resetMask": "all", - "resetValue": "0x04" - }, - "trim": { - "description": "HFROSC trim value", - "bitOffset": "16", - "bitWidth": "5", - "resetMask": "all", - "resetValue": "0x10" - }, - "en": { - "description": "HFROSC enable", - "bitOffset": "30", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1" - }, - "rdy": { - "description": "HFROSC ready", - "bitOffset": "31", - "bitWidth": "1", - "access": "r" - } - } - }, - "hfxosccfg": { - "description": "External 16 MHz Crystal Oscillator Register", - "addressOffset": "0x0004", - "fields": { - "en": { - "description": "HFXOSC enable", - "bitOffset": "30", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1" - }, - "rdy": { - "description": "HFXOSC ready", - "bitOffset": "31", - "bitWidth": "1", - "access": "r" - } - } - }, - "pllcfg": { - "description": "Internal High-Frequency PLL (HFPLL) Register", - "addressOffset": "0x0008", - "fields": { - "r": { - "description": "PLL R input divider value", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x1", - "enumerations": { - "pllr-enum": { - "description": "Reference Clock R Divide Ratio Enumeration", - "values": { - "0": { - "displayName": "/1", - "headerName": "div1", - "description": "Unchanged" - }, - "1": { - "displayName": "/2", - "headerName": "div2", - "description": "Divided by 2" - }, - "2": { - "displayName": "/3", - "headerName": "div3", - "description": "Divided by 3" - }, - "3": { - "displayName": "/4", - "headerName": "div4", - "description": "Divided by 4" - } - } - } - } - }, - "f": { - "description": "PLL F multiplier value", - "bitOffset": "4", - "bitWidth": "6", - "resetMask": "all", - "resetValue": "0x1F", - "enumerations": { - "pllf-enum": { - "description": "Reference Clock F Multiplier Ratio Enumeration", - "values": { - "0": { - "displayName": "*2", - "headerName": "mul2", - "description": "Multiplied by 2" - }, - "1": { - "displayName": "*4", - "headerName": "mul4", - "description": "Multiplied by 4" - }, - "2": { - "displayName": "*6", - "headerName": "mul6", - "description": "Multiplied by 6" - }, - "3": { - "displayName": "*8", - "headerName": "mul8", - "description": "Multiplied by 8" - }, - "4": { - "displayName": "*10", - "headerName": "mul10", - "description": "Multiplied by 10" - }, - "5": { - "displayName": "*12", - "headerName": "mul12", - "description": "Multiplied by 12" - }, - "6": { - "displayName": "*14", - "headerName": "mul14", - "description": "Multiplied by 14" - }, - "7": { - "displayName": "*16", - "headerName": "mul16", - "description": "Multiplied by 16" - }, - "8": { - "displayName": "*18", - "headerName": "mul18", - "description": "Multiplied by 18" - }, - "9": { - "displayName": "*20", - "headerName": "mul20", - "description": "Multiplied by 20" - }, - "10": { - "displayName": "*22", - "headerName": "mul22", - "description": "Multiplied by 22" - }, - "11": { - "displayName": "*24", - "headerName": "mul24", - "description": "Multiplied by 24" - }, - "12": { - "displayName": "*26", - "headerName": "mul26", - "description": "Multiplied by 26" - }, - "13": { - "displayName": "*28", - "headerName": "mul28", - "description": "Multiplied by 28" - }, - "14": { - "displayName": "*30", - "headerName": "mul30", - "description": "Multiplied by 30" - }, - "15": { - "displayName": "*32", - "headerName": "mul32", - "description": "Multiplied by 32" - }, - "16": { - "displayName": "*34", - "headerName": "mul34", - "description": "Multiplied by 34" - }, - "17": { - "displayName": "*36", - "headerName": "mul36", - "description": "Multiplied by 36" - }, - "18": { - "displayName": "*38", - "headerName": "mul38", - "description": "Multiplied by 38" - }, - "19": { - "displayName": "*40", - "headerName": "mul40", - "description": "Multiplied by 40" - }, - "20": { - "displayName": "*42", - "headerName": "mul42", - "description": "Multiplied by 42" - }, - "21": { - "displayName": "*44", - "headerName": "mul44", - "description": "Multiplied by 44" - }, - "22": { - "displayName": "*46", - "headerName": "mul46", - "description": "Multiplied by 46" - }, - "23": { - "displayName": "*48", - "headerName": "mul48", - "description": "Multiplied by 48" - }, - "24": { - "displayName": "*50", - "headerName": "mul50", - "description": "Multiplied by 50" - }, - "25": { - "displayName": "*52", - "headerName": "mul52", - "description": "Multiplied by 52" - }, - "26": { - "displayName": "*54", - "headerName": "mul54", - "description": "Multiplied by 54" - }, - "27": { - "displayName": "*56", - "headerName": "mul56", - "description": "Multiplied by 56" - }, - "28": { - "displayName": "*58", - "headerName": "mul58", - "description": "Multiplied by 58" - }, - "29": { - "displayName": "*60", - "headerName": "mul60", - "description": "Multiplied by 60" - }, - "30": { - "displayName": "*62", - "headerName": "mul62", - "description": "Multiplied by 62" - }, - "31": { - "displayName": "*64", - "headerName": "mul64", - "description": "Multiplied by 64" - }, - "32": { - "displayName": "*66", - "headerName": "mul66", - "description": "Multiplied by 66" - }, - "33": { - "displayName": "*68", - "headerName": "mul68", - "description": "Multiplied by 68" - }, - "34": { - "displayName": "*70", - "headerName": "mul70", - "description": "Multiplied by 70" - }, - "35": { - "displayName": "*72", - "headerName": "mul72", - "description": "Multiplied by 72" - }, - "36": { - "displayName": "*74", - "headerName": "mul74", - "description": "Multiplied by 74" - }, - "37": { - "displayName": "*76", - "headerName": "mul76", - "description": "Multiplied by 76" - }, - "38": { - "displayName": "*78", - "headerName": "mul78", - "description": "Multiplied by 78" - }, - "39": { - "displayName": "*80", - "headerName": "mul80", - "description": "Multiplied by 80" - }, - "40": { - "displayName": "*82", - "headerName": "mul82", - "description": "Multiplied by 82" - }, - "41": { - "displayName": "*84", - "headerName": "mul84", - "description": "Multiplied by 84" - }, - "42": { - "displayName": "*86", - "headerName": "mul86", - "description": "Multiplied by 86" - }, - "43": { - "displayName": "*88", - "headerName": "mul88", - "description": "Multiplied by 88" - }, - "44": { - "displayName": "*90", - "headerName": "mul90", - "description": "Multiplied by 90" - }, - "45": { - "displayName": "*92", - "headerName": "mul92", - "description": "Multiplied by 92" - }, - "46": { - "displayName": "*94", - "headerName": "mul94", - "description": "Multiplied by 94" - }, - "47": { - "displayName": "*96", - "headerName": "mul96", - "description": "Multiplied by 96" - }, - "48": { - "displayName": "*98", - "headerName": "mul98", - "description": "Multiplied by 98" - }, - "49": { - "displayName": "*100", - "headerName": "mul100", - "description": "Multiplied by 100" - }, - "50": { - "displayName": "*102", - "headerName": "mul102", - "description": "Multiplied by 102" - }, - "51": { - "displayName": "*104", - "headerName": "mul104", - "description": "Multiplied by 104" - }, - "52": { - "displayName": "*106", - "headerName": "mul106", - "description": "Multiplied by 106" - }, - "53": { - "displayName": "*108", - "headerName": "mul108", - "description": "Multiplied by 108" - }, - "54": { - "displayName": "*110", - "headerName": "mul110", - "description": "Multiplied by 110" - }, - "55": { - "displayName": "*112", - "headerName": "mul112", - "description": "Multiplied by 112" - }, - "56": { - "displayName": "*114", - "headerName": "mul114", - "description": "Multiplied by 114" - }, - "57": { - "displayName": "*116", - "headerName": "mul116", - "description": "Multiplied by 116" - }, - "58": { - "displayName": "*118", - "headerName": "mul118", - "description": "Multiplied by 118" - }, - "59": { - "displayName": "*120", - "headerName": "mul120", - "description": "Multiplied by 120" - }, - "60": { - "displayName": "*122", - "headerName": "mul122", - "description": "Multiplied by 122" - }, - "61": { - "displayName": "*124", - "headerName": "mul124", - "description": "Multiplied by 124" - }, - "62": { - "displayName": "*126", - "headerName": "mul126", - "description": "Multiplied by 126" - }, - "63": { - "displayName": "*128", - "headerName": "mul128", - "description": "Multiplied by 128" - } - } - } - } - }, - "q": { - "description": "PLL Q output divider value", - "bitOffset": "10", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x3", - "enumerations": { - "pllq-enum": { - "description": "Reference Clock Q Divide Ratio Enumeration", - "values": { - "*": { - "displayName": "n/a", - "description": "Not supported" - }, - "1": { - "displayName": "/2", - "headerName": "div2", - "description": "Divided by 2" - }, - "2": { - "displayName": "/4", - "headerName": "div4", - "description": "Divided by 4" - }, - "3": { - "displayName": "/8", - "headerName": "div8", - "description": "Divided by 8" - } - } - } - } - }, - "sel": { - "description": "PLL select", - "bitOffset": "16", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "refsel": { - "description": "PLL reference select", - "bitOffset": "17", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1" - }, - "bypass": { - "description": "PLL bypass", - "bitOffset": "18", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1" - }, - "lock": { - "description": "PLL lock indicator", - "bitOffset": "31", - "bitWidth": "1", - "access": "r" - } - } - }, - "plloutdiv": { - "description": "PLL Output Divider", - "addressOffset": "0x000C" - } - } - }, - "otp": { - "description": "One-Time Programmable Memory (OTP) Peripheral", - "baseAddress": "0x10010000", - "size": "0x1000", - "registers": { - "lock": { - "description": "Programmed-I/O Lock Register", - "addressOffset": "0x0000" - }, - "ck": { - "description": "Device Clock Signal Register", - "addressOffset": "0x0004" - }, - "oe": { - "description": "Device Output-Enable Signal Register", - "addressOffset": "0x0008" - }, - "sel": { - "description": "Device Chip-Select Signal Register", - "addressOffset": "0x000C" - }, - "we": { - "description": "Device Write-Enable Signal Register", - "addressOffset": "0x0010" - }, - "mr": { - "description": "Device Mode Register", - "addressOffset": "0x0014" - }, - "mrr": { - "description": "Read-Voltage Regulator Control Register", - "addressOffset": "0x0018" - }, - "mpp": { - "description": "Write-Voltage Charge Pump Control Register", - "addressOffset": "0x001C" - }, - "vrren": { - "description": "Read-Voltage Enable Register", - "addressOffset": "0x0020" - }, - "vppen": { - "description": "Write-Voltage Enable Register", - "addressOffset": "0x0024" - }, - "a": { - "description": "Device Address Register", - "addressOffset": "0x0028" - }, - "d": { - "description": "Device Data Input Register", - "addressOffset": "0x002C" - }, - "q": { - "description": "Device Data Output Register", - "addressOffset": "0x0030" - }, - "rsctrl": { - "description": "Read Sequencer Control Register", - "addressOffset": "0x0034", - "fields": { - "scale": { - "description": "OTP timescale", - "bitOffset": "0", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x1" - }, - "tas": { - "description": "Address setup time", - "bitOffset": "3", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "trp": { - "description": "Read pulse time", - "bitOffset": "4", - "bitWidth": "1" - }, - "tracc": { - "description": "Read access time", - "bitOffset": "5", - "bitWidth": "1" - } - } - } - } - }, - "gpio": { - "description": "General Purpose Input/Output Controller (GPIO) Peripheral", - "baseAddress": "0x10012000", - "size": "0x1000", - "registers": { - "value": { - "description": "Pin Value Register", - "addressOffset": "0x000", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Value Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "inputen": { - "description": "Pin Input Enable Register", - "addressOffset": "0x004", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Pin Input Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "outputen": { - "description": "Pin Output Enable Register", - "addressOffset": "0x008", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Pin Output Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "port": { - "description": "Output Port Value Register", - "addressOffset": "0x00C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Output Port Value Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "pue": { - "description": "Internal Pull-up Enable Register", - "addressOffset": "0x010", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Internal Pull-up Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "ds": { - "description": "Pin Drive Strength Register", - "addressOffset": "0x014", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Pin Drive Strength Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "riseie": { - "description": "Rise Interrupt Enable Register", - "addressOffset": "0x018", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Rise Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "riseip": { - "description": "Rise Interrupt Pending Register", - "addressOffset": "0x01C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Rise Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "fallie": { - "description": "Fall Interrupt Enable Register", - "addressOffset": "0x020", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Fall Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "fallip": { - "description": "Fall Interrupt Pending Register", - "addressOffset": "0x024", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Fall Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "highie": { - "description": "High Interrupt Enable Register", - "addressOffset": "0x028", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "High Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "highip": { - "description": "High Interrupt Pending Register", - "addressOffset": "0x02C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "High Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "lowie": { - "description": "Low Interrupt Enable Register", - "addressOffset": "0x030", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Low Interrupt Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "lowip": { - "description": "Low Interrupt Pending Register", - "addressOffset": "0x034", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Low Interrupt Pending Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "iofen": { - "description": "HW I/O Function Enable Register", - "addressOffset": "0x038", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "HW I/O Function Enable Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "iofsel": { - "description": "HW I/O Function Select Register", - "addressOffset": "0x03C", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "HW I/O Function Select Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - }, - "outxor": { - "description": "Output XOR (invert) Register", - "addressOffset": "0x040", - "fields": { - "bit": { - "repeatGenerator": "0-31", - "description": "Output XOR Bit Field", - "bitOffset": "0", - "bitWidth": "1", - "headerName": "" - } - } - } - }, - "interrupts": { - "gpio0": { - "description": "GPIO0 Interrupt", - "value": "8" - }, - "gpio1": { - "description": "GPIO1 Interrupt", - "value": "9" - }, - "gpio2": { - "description": "GPIO2 Interrupt", - "value": "10" - }, - "gpio3": { - "description": "GPIO3 Interrupt", - "value": "11" - }, - "gpio4": { - "description": "GPIO4 Interrupt", - "value": "12" - }, - "gpio5": { - "description": "GPIO5 Interrupt", - "value": "13" - }, - "gpio6": { - "description": "GPIO6 Interrupt", - "value": "14" - }, - "gpio7": { - "description": "GPIO7 Interrupt", - "value": "15" - }, - "gpio8": { - "description": "GPIO8 Interrupt", - "value": "16" - }, - "gpio9": { - "description": "GPIO9 Interrupt", - "value": "17" - }, - "gpio10": { - "description": "GPIO10 Interrupt", - "value": "18" - }, - "gpio11": { - "description": "GPIO11 Interrupt", - "value": "19" - }, - "gpio12": { - "description": "GPIO12 Interrupt", - "value": "20" - }, - "gpio13": { - "description": "GPIO13 Interrupt", - "value": "21" - }, - "gpio14": { - "description": "GPIO14 Interrupt", - "value": "22" - }, - "gpio15": { - "description": "GPIO15 Interrupt", - "value": "23" - }, - "gpio16": { - "description": "GPIO16 Interrupt", - "value": "24" - }, - "gpio17": { - "description": "GPIO17 Interrupt", - "value": "25" - }, - "gpio18": { - "description": "GPIO18 Interrupt", - "value": "26" - }, - "gpio19": { - "description": "GPIO19 Interrupt", - "value": "27" - }, - "gpio20": { - "description": "GPIO20 Interrupt", - "value": "28" - }, - "gpio21": { - "description": "GPIO21 Interrupt", - "value": "29" - }, - "gpio22": { - "description": "GPIO22 Interrupt", - "value": "30" - }, - "gpio23": { - "description": "GPIO23 Interrupt", - "value": "31" - }, - "gpio24": { - "description": "GPIO24 Interrupt", - "value": "32" - }, - "gpio25": { - "description": "GPIO25 Interrupt", - "value": "33" - }, - "gpio26": { - "description": "GPIO26 Interrupt", - "value": "34" - }, - "gpio27": { - "description": "GPIO27 Interrupt", - "value": "35" - }, - "gpio28": { - "description": "GPIO28 Interrupt", - "value": "36" - }, - "gpio29": { - "description": "GPIO29 Interrupt", - "value": "37" - }, - "gpio30": { - "description": "GPIO30 Interrupt", - "value": "38" - }, - "gpio31": { - "description": "GPIO31 Interrupt", - "value": "39" - } - } - }, - "uart0": { - "description": "Universal Asynchronous Receiver/Transmitter (UART) Peripheral", - "baseAddress": "0x10013000", - "size": "0x1000", - "resetMask": "none", - "groupName": "uart", - "registers": { - "txdata": { - "description": "Transmit Data Register", - "addressOffset": "0x000", - "fields": { - "data": { - "description": "Transmit data", - "bitOffset": "0", - "bitWidth": "8" - }, - "full": { - "description": "Transmit FIFO full", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "rxdata": { - "description": "Receive Data Register", - "addressOffset": "0x004", - "resetMask": "none", - "fields": { - "data": { - "description": "Received data", - "bitOffset": "0", - "bitWidth": "8", - "access": "r" - }, - "empty": { - "description": "Receive FIFO empty", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "txctrl": { - "description": "Transmit Control Register ", - "addressOffset": "0x008", - "fields": { - "txen": { - "description": "Transmit enable", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "nstop": { - "description": "Number of stop bits", - "bitOffset": "1", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "txcnt": { - "description": "Transmit watermark level", - "bitOffset": "16", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "rxctrl": { - "description": "Receive Control Register", - "addressOffset": "0x00C", - "fields": { - "rxen": { - "description": "Receive enable", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "rxcnt": { - "description": "Receive watermark level", - "bitOffset": "16", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ie": { - "description": "Interrupt Enable Register", - "addressOffset": "0x010", - "fields": { - "txwm": { - "description": "Transmit watermark interrupt enable", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "rxwm": { - "description": "Receive watermark interrupt enable", - "bitOffset": "1", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ip": { - "description": "Interrupt Pending Register", - "addressOffset": "0x014", - "access": "r", - "fields": { - "txwm": { - "description": "Transmit watermark interrupt pending", - "bitOffset": "0", - "bitWidth": "1" - }, - "rxwm": { - "description": "Receive watermark interrupt pending", - "bitOffset": "1", - "bitWidth": "1" - } - } - }, - "div": { - "description": "Baud Rate Divisor Register", - "addressOffset": "0x018", - "fields": { - "value": { - "description": "Baud rate divisor", - "bitOffset": "0", - "bitWidth": "16", - "resetMask": "all", - "resetValue": "0x0000FFFF" - } - } - } - }, - "interrupts": { - "uart0": { - "description": "UART0 Interrupt", - "value": "3" - } - } - }, - "spi0": { - "description": "Serial Peripheral Interface (SPI) Peripheral", - "baseAddress": "0x10014000", - "size": "0x1000", - "resetMask": "none", - "groupName": "spi", - "registers": { - "sckdiv": { - "description": "Serial clock divisor Register", - "addressOffset": "0x000", - "fields": { - "scale": { - "description": "Divisor for serial clock", - "bitOffset": "0", - "bitWidth": "12", - "resetMask": "all", - "resetValue": "0x003" - } - } - }, - "sckmode": { - "description": "Serial Clock Mode Register", - "addressOffset": "0x004", - "fields": { - "pha": { - "description": "Serial clock phase", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "pol": { - "description": "Serial clock polarity", - "bitOffset": "1", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "csid": { - "description": "Chip Select ID Register", - "addressOffset": "0x010", - "resetMask": "all", - "resetValue": "0x00000000" - }, - "csdef": { - "description": "Chip Select Default Register", - "addressOffset": "0x014", - "resetMask": "all", - "resetValue": "0x00000001" - }, - "csmode": { - "description": "Chip Select Mode Register", - "addressOffset": "0x018", - "fields": { - "mode": { - "description": "Chip select mode", - "bitOffset": "0", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0", - "enumerations": { - "csmode-enum": { - "description": "Chip Select Modes Enumeration", - "values": { - "0": { - "displayName": "auto", - "description": "Assert/de-assert CS at the beginning/end of each frame" - }, - "*": { - "displayName": "reserved" - }, - "2": { - "displayName": "hold", - "description": "Keep CS continuously asserted after the initial frame" - }, - "3": { - "displayName": "off", - "description": "Disable hardware control of the CS pin" - } - } - } - } - } - } - }, - "delay0": { - "description": "Delay Control 0 Register", - "addressOffset": "0x028", - "fields": { - "cssck": { - "description": "CS to SCK Delay", - "bitOffset": "0", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - }, - "sckcs": { - "description": "SCK to CS Delay", - "bitOffset": "16", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - } - } - }, - "delay1": { - "description": "Delay Control 1 Register", - "addressOffset": "0x02C", - "fields": { - "intercs": { - "description": "Minimum CS inactive time", - "bitOffset": "0", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - }, - "interxfr": { - "description": "Maximum interframe delay", - "bitOffset": "16", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x01" - } - } - }, - "fmt": { - "description": "Frame Format Register", - "addressOffset": "0x040", - "fields": { - "proto": { - "description": "SPI Protocol", - "bitOffset": "0", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0", - "enumerations": { - "proto-enum": { - "description": "SPI Protocol Enumeration", - "values": { - "0": { - "displayName": "single", - "description": "DQ0 (MOSI), DQ1 (MISO)" - }, - "1": { - "displayName": "dual", - "description": "DQ0, DQ1" - }, - "2": { - "displayName": "quad", - "description": "DQ0, DQ1, DQ2, DQ3" - }, - "*": { - "displayName": "reserved" - } - } - } - } - }, - "endian": { - "description": "SPI endianness", - "bitOffset": "2", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0", - "enumerations": { - "endian-enum": { - "description": "SPI Endianness Enumeration", - "values": { - "0": { - "displayName": "msb", - "description": "Transmit most-significant bit (MSB) first" - }, - "1": { - "displayName": "lsb", - "description": "Transmit least-significant bit (LSB) first" - } - } - } - } - }, - "dir": { - "description": "SPI I/O Direction", - "bitOffset": "3", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1", - "enumerations": { - "dir-enum": { - "description": "SPI I/O Direction Enumeration", - "values": { - "0": { - "displayName": "rx", - "description": "For dual and quad protocols, the DQ pins are tri-stated. For the single protocol, the DQ0 pin is driven with the transmit data as normal." - }, - "1": { - "displayName": "tx", - "description": "The receive FIFO is not populated." - } - } - } - } - }, - "len": { - "description": "Number of bits per frame", - "bitOffset": "16", - "bitWidth": "4", - "resetMask": "all", - "resetValue": "0x8" - } - } - }, - "txdata": { - "description": "Tx FIFO Data Register", - "addressOffset": "0x048", - "fields": { - "data": { - "description": "Transmit data", - "bitOffset": "0", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x00" - }, - "full": { - "description": "FIFO full flag", - "bitOffset": "31", - "bitWidth": "1", - "access": "r" - } - } - }, - "rxdata": { - "description": "Rx FIFO Data Register", - "addressOffset": "0x04C", - "resetMask": "none", - "access": "r", - "fields": { - "data": { - "description": "Received data", - "bitOffset": "0", - "bitWidth": "8" - }, - "empty": { - "description": "FIFO empty flag", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "txmark": { - "description": "Tx FIFO Watermark Register", - "addressOffset": "0x050", - "fields": { - "value": { - "description": "Transmit watermark", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x1" - } - } - }, - "rxmark": { - "description": "Rx FIFO Watermark Register", - "addressOffset": "0x054", - "fields": { - "value": { - "description": "Receive watermark", - "bitOffset": "0", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "fctrl": { - "description": "Flash Interface Control Register", - "addressOffset": "0x060", - "fields": { - "en": { - "description": "SPI Flash Mode Select", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1" - } - } - }, - "ffmt": { - "description": "Flash Instruction Format Register", - "addressOffset": "0x064", - "fields": { - "cmden": { - "description": "Enable sending of command", - "bitOffset": "0", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x1" - }, - "addrlen": { - "description": "Number of address bytes(0 to 4)", - "bitOffset": "1", - "bitWidth": "3", - "resetMask": "all", - "resetValue": "0x3" - }, - "padcnt": { - "description": "Number of dummy cycles", - "bitOffset": "4", - "bitWidth": "4", - "resetMask": "all", - "resetValue": "0x0" - }, - "cmdproto": { - "description": "Protocol for transmitting command", - "bitOffset": "8", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0" - }, - "addrproto": { - "description": "Protocol for transmitting address and padding", - "bitOffset": "10", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0" - }, - "dataproto": { - "description": "Protocol for receiving data bytes", - "bitOffset": "12", - "bitWidth": "2", - "resetMask": "all", - "resetValue": "0x0" - }, - "cmdcode": { - "description": "Value of command byte", - "bitOffset": "16", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x03" - }, - "padcode": { - "description": "First 8 bits to transmit during dummy cycles", - "bitOffset": "24", - "bitWidth": "8", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ie": { - "description": "Interrupt Enable Register", - "addressOffset": "0x070", - "fields": { - "txwm": { - "description": "Transmit watermark enable", - "bitOffset": "0", - "bitWidth": "1", - "access": "r", - "resetMask": "all", - "resetValue": "0x0" - }, - "rxwm": { - "description": "Receive watermark enable", - "bitOffset": "1", - "bitWidth": "1", - "access": "r", - "resetMask": "all", - "resetValue": "0x0" - } - } - }, - "ip": { - "description": "Interrupt Pending Register", - "addressOffset": "0x074", - "fields": { - "txwm": { - "description": "Transmit watermark pending", - "bitOffset": "0", - "bitWidth": "1", - "access": "r" - }, - "rxwm": { - "description": "Receive watermark pending", - "bitOffset": "1", - "bitWidth": "1", - "access": "r" - } - } - } - }, - "interrupts": { - "spi0": { - "description": "SPI0 Interrupt", - "value": "5" - } - } - }, - "pwm0": { - "description": "Pulse-Width Modulation (PWM) Peripheral", - "baseAddress": "0x10015000", - "size": "0x1000", - "resetMask": "none", - "registers": { - "cfg": { - "description": "Configuration Register", - "addressOffset": "0x000", - "fields": { - "scale": { - "description": "Counter scale", - "bitOffset": "0", - "bitWidth": "4" - }, - "sticky": { - "description": "Sticky - disallow clearing pwmcmpXip bits", - "bitOffset": "8", - "bitWidth": "1" - }, - "zerocmp": { - "description": "Zero - counter resets to zero after match", - "bitOffset": "9", - "bitWidth": "1" - }, - "deglitch": { - "description": "Deglitch - latch pwmcmpXip within same cycle", - "bitOffset": "10", - "bitWidth": "1" - }, - "enalways": { - "description": "Enable always - run continuously", - "bitOffset": "12", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "enoneshot": { - "description": "enable one shot - run one cycle", - "bitOffset": "13", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "cmp0center": { - "description": "PWM0 Compare Center", - "bitOffset": "16", - "bitWidth": "1" - }, - "cmp1center": { - "description": "PWM1 Compare Center", - "bitOffset": "17", - "bitWidth": "1" - }, - "cmp2center": { - "description": "PWM2 Compare Center", - "bitOffset": "18", - "bitWidth": "1" - }, - "cmp3center": { - "description": "PWM3 Compare Center", - "bitOffset": "19", - "bitWidth": "1" - }, - "cmp0gang": { - "description": "PWM0/PWM1 Compare Gang", - "bitOffset": "24", - "bitWidth": "1" - }, - "cmp1gang": { - "description": "PWM1/PWM2 Compare Gang", - "bitOffset": "25", - "bitWidth": "1" - }, - "cmp2gang": { - "description": "PWM2/PWM3 Compare Gang", - "bitOffset": "26", - "bitWidth": "1" - }, - "cmp3gang": { - "description": "PWM3/PWM0 Compare Gang", - "bitOffset": "27", - "bitWidth": "1" - }, - "cmp0ip": { - "description": "PWM0 Interrupt Pending", - "bitOffset": "28", - "bitWidth": "1" - }, - "cmp1ip": { - "description": "PWM1 Interrupt Pending", - "bitOffset": "29", - "bitWidth": "1" - }, - "cmp2ip": { - "description": "PWM2 Interrupt Pending", - "bitOffset": "30", - "bitWidth": "1" - }, - "cmp3ip": { - "description": "PWM3 Interrupt Pending", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "count": { - "description": "Configuration Register", - "addressOffset": "0x008" - }, - "scale": { - "description": "Scale Register", - "addressOffset": "0x010", - "fields": { - "value": { - "description": "Compare value", - "bitOffset": "0", - "bitWidth": "8" - } - } - }, - "cmp": { - "arraySize": "4", - "description": "Compare Registers", - "addressOffset": "0x020", - "fields": { - "value": { - "description": "Compare value", - "bitOffset": "0", - "bitWidth": "8" - } - } - } - }, - "interrupts": { - "pwm0cmp0": { - "description": "PWM0 Compare 0 Interrupt", - "value": "40" - }, - "pwm0cmp1": { - "description": "PWM0 Compare 1 Interrupt", - "value": "41" - }, - "pwm0cmp2": { - "description": "PWM0 Compare 2 Interrupt", - "value": "42" - }, - "pwm0cmp3": { - "description": "PWM0 Compare 3 Interrupt", - "value": "43" - } - } - }, - "uart1": { - "baseAddress": "0x10023000", - "derivedFrom": "uart0", - "groupName": "uart", - "interrupts": { - "uart1": { - "description": "UART1 Interrupt", - "value": "4" - } - } - }, - "spi1": { - "baseAddress": "0x10024000", - "derivedFrom": "spi0", - "groupName": "spi", - "interrupts": { - "spi1": { - "description": "SPI1 Interrupt", - "value": "6" - } - } - }, - "pwm1": { - "description": "Pulse-Width Modulation (PWM) Peripheral", - "baseAddress": "0x10025000", - "groupName": "pwm", - "size": "0x1000", - "resetMask": "none", - "groupName": "pwm", - "registers": { - "cfg": { - "description": "Configuration Register", - "addressOffset": "0x000", - "fields": { - "scale": { - "description": "Counter scale", - "bitOffset": "0", - "bitWidth": "4" - }, - "sticky": { - "description": "Sticky - disallow clearing pwmcmpXip bits", - "bitOffset": "8", - "bitWidth": "1" - }, - "zerocmp": { - "description": "Zero - counter resets to zero after match", - "bitOffset": "9", - "bitWidth": "1" - }, - "deglitch": { - "description": "Deglitch - latch pwmcmpXip within same cycle", - "bitOffset": "10", - "bitWidth": "1" - }, - "enalways": { - "description": "Enable always - run continuously", - "bitOffset": "12", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "enoneshot": { - "description": "enable one shot - run one cycle", - "bitOffset": "13", - "bitWidth": "1", - "resetMask": "all", - "resetValue": "0x0" - }, - "cmp0center": { - "description": "PWM0 Compare Center", - "bitOffset": "16", - "bitWidth": "1" - }, - "cmp1center": { - "description": "PWM1 Compare Center", - "bitOffset": "17", - "bitWidth": "1" - }, - "cmp2center": { - "description": "PWM2 Compare Center", - "bitOffset": "18", - "bitWidth": "1" - }, - "cmp3center": { - "description": "PWM3 Compare Center", - "bitOffset": "19", - "bitWidth": "1" - }, - "cmp0gang": { - "description": "PWM0/PWM1 Compare Gang", - "bitOffset": "24", - "bitWidth": "1" - }, - "cmp1gang": { - "description": "PWM1/PWM2 Compare Gang", - "bitOffset": "25", - "bitWidth": "1" - }, - "cmp2gang": { - "description": "PWM2/PWM3 Compare Gang", - "bitOffset": "26", - "bitWidth": "1" - }, - "cmp3gang": { - "description": "PWM3/PWM0 Compare Gang", - "bitOffset": "27", - "bitWidth": "1" - }, - "cmp0ip": { - "description": "PWM0 Interrupt Pending", - "bitOffset": "28", - "bitWidth": "1" - }, - "cmp1ip": { - "description": "PWM1 Interrupt Pending", - "bitOffset": "29", - "bitWidth": "1" - }, - "cmp2ip": { - "description": "PWM2 Interrupt Pending", - "bitOffset": "30", - "bitWidth": "1" - }, - "cmp3ip": { - "description": "PWM3 Interrupt Pending", - "bitOffset": "31", - "bitWidth": "1" - } - } - }, - "count": { - "description": "Configuration Register", - "addressOffset": "0x008" - }, - "scale": { - "description": "Scale Register", - "addressOffset": "0x010", - "fields": { - "value": { - "description": "Compare value", - "bitOffset": "0", - "bitWidth": "16" - } - } - }, - "cmp": { - "arraySize": "4", - "description": "Compare Registers", - "addressOffset": "0x020", - "fields": { - "value": { - "description": "Compare value", - "bitOffset": "0", - "bitWidth": "16" - } - } - } - }, - "interrupts": { - "pwm1cmp0": { - "description": "PWM1 Compare 0 Interrupt", - "value": "44" - }, - "pwm1cmp1": { - "description": "PWM1 Compare 1 Interrupt", - "value": "45" - }, - "pwm1cmp2": { - "description": "PWM1 Compare 2 Interrupt", - "value": "46" - }, - "pwm1cmp3": { - "description": "PWM1 Compare 3 Interrupt", - "value": "47" - } - } - }, - "spi2": { - "baseAddress": "0x10034000", - "derivedFrom": "spi0", - "groupName": "spi", - "interrupts": { - "spi2": { - "description": "SPI2 Interrupt", - "value": "7" - } - } - }, - "pwm2": { - "baseAddress": "0x10035000", - "derivedFrom": "pwm1", - "groupName": "pwm", - "interrupts": { - "pwm2cmp0": { - "description": "PWM2 Compare 0 Interrupt", - "value": "48" - }, - "pwm2cmp1": { - "description": "PWM2 Compare 1 Interrupt", - "value": "49" - }, - "pwm2cmp2": { - "description": "PWM2 Compare 2 Interrupt", - "value": "50" - }, - "pwm2cmp3": { - "description": "PWM2 Compare 3 Interrupt", - "value": "51" - } - } - } - } - } - } -} \ No newline at end of file diff --git a/FreedomStudio/HiFive1/led_fade/led_fade OpenOCD.launch b/FreedomStudio/HiFive1/led_fade/led_fade OpenOCD.launch deleted file mode 100644 index abe9c3e..0000000 --- a/FreedomStudio/HiFive1/led_fade/led_fade OpenOCD.launch +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/FreedomStudio/HiFive1/led_fade/sifive-freedom-e300-hifive1.cfg b/FreedomStudio/HiFive1/led_fade/sifive-freedom-e300-hifive1.cfg deleted file mode 100644 index b0a8e26..0000000 --- a/FreedomStudio/HiFive1/led_fade/sifive-freedom-e300-hifive1.cfg +++ /dev/null @@ -1,34 +0,0 @@ -adapter_khz 10000 - -interface ftdi -ftdi_device_desc "Dual RS232-HS" -ftdi_vid_pid 0x0403 0x6010 - -ftdi_layout_init 0x0008 0x001b -ftdi_layout_signal nSRST -oe 0x0020 -data 0x0020 - -#Reset Stretcher logic on FE310 is ~1 second long -#This doesn't apply if you use -# ftdi_set_signal, but still good to document -#adapter_nsrst_delay 1500 - -set _CHIPNAME riscv -jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x10e31913 - -set _TARGETNAME $_CHIPNAME.cpu -target create $_TARGETNAME riscv -chain-position $_TARGETNAME -$_TARGETNAME configure -work-area-phys 0x80000000 -work-area-size 10000 -work-area-backup 1 - -flash bank onboard_spi_flash fespi 0x20000000 0 0 0 $_TARGETNAME -init -#reset -- This type of reset is not implemented yet -if {[ info exists pulse_srst]} { - ftdi_set_signal nSRST 0 - ftdi_set_signal nSRST z - #Wait for the reset stretcher - #It will work without this, but - #will incur lots of delays for later commands. - sleep 1500 -} -halt -flash protect 0 64 last off -- cgit v1.2.3