334 lines
25 KiB
Markdown
334 lines
25 KiB
Markdown
[![NEORV32](https://raw.githubusercontent.com/stnolting/neorv32/main/docs/figures/neorv32_logo_riscv.png)](https://github.com/stnolting/neorv32)
|
||
|
||
# The NEORV32 RISC-V Processor
|
||
|
||
[![datasheet (pdf)](https://img.shields.io/badge/data%20sheet-PDF-ffbd00?longCache=true&style=flat-square&logo=asciidoctor)](https://github.com/stnolting/neorv32/releases/tag/nightly)
|
||
[![datasheet (html)](https://img.shields.io/badge/-HTML-ffbd00?longCache=true&style=flat-square)](https://stnolting.github.io/neorv32)
|
||
[![userguide (pdf)](https://img.shields.io/badge/user%20guide-PDF-ffbd00?longCache=true&style=flat-square&logo=asciidoctor)](https://github.com/stnolting/neorv32/releases/tag/nightly)
|
||
[![userguide (html)](https://img.shields.io/badge/-HTML-ffbd00?longCache=true&style=flat-square)](https://stnolting.github.io/neorv32/ug)
|
||
[![doxygen](https://img.shields.io/badge/doxygen-HTML-ffbd00?longCache=true&style=flat-square&logo=Doxygen)](https://stnolting.github.io/neorv32/sw/files.html)
|
||
[![Gitter](https://img.shields.io/badge/Chat-on%20gitter-4db797.svg?longCache=true&style=flat-square&logo=gitter&logoColor=e8ecef)](https://gitter.im/neorv32/community)
|
||
|
||
1. [Overview](#1-Overview)
|
||
* [Key Features](#Key-Features)
|
||
* [Project Status](#Project-Status)
|
||
2. [Features](#2-Features)
|
||
3. [FPGA Implementation Results](#3-FPGA-Implementation-Results)
|
||
4. [Performance](#4-Performance)
|
||
5. [Software Framework & Tooling](#5-Software-Framework-and-Tooling)
|
||
6. [**Getting Started**](#6-Getting-Started) :rocket:
|
||
|
||
|
||
|
||
## 1. Overview
|
||
|
||
![neorv32 Overview](https://raw.githubusercontent.com/stnolting/neorv32/main/docs/figures/neorv32_processor.png)
|
||
|
||
The NEORV32 Processor is a **customizable microcontroller-like system on chip (SoC)** built around the NEORV32
|
||
[RISC-V](https://riscv.org/) CPU and written in **platform-independent VHDL**. The processor is intended as auxiliary
|
||
controller in larger SoC designs or as *ready-to-go* stand-alone custom microcontroller that even fits into a
|
||
Lattice iCE40 UltraPlus low-power & low-density FPGA. The project is intended to work _out of the box_ and targets
|
||
FPGA / RISC-V beginners as well as advanced users.
|
||
|
||
Special focus is paid on **execution safety** to provide defined and predictable behavior at any time.
|
||
Therefore, the CPU ensures that _all_ memory accesses are properly acknowledged and that _all_ invalid/malformed
|
||
instructions are always detected as such. Whenever an unexpected situation occurs the application software is
|
||
informed via _precise and resumable_ hardware exceptions.
|
||
|
||
* :interrobang: Want to know more? Check out the [project's rationale](https://stnolting.github.io/neorv32/#_rationale).
|
||
* :books: For detailed information see the [NEORV32 online documentation](https://stnolting.github.io/neorv32/).
|
||
* :recycle: Looking for an **all-Verilog** version? Have a look at [neorv32-verilog](https://github.com/stnolting/neorv32-verilog).
|
||
* :heavy_check_mark: [Continuous integration](#Project-Status) to check for regressions (including RISC-V ISA compatibility test using **RISCOF**).
|
||
* :package: [Exemplary setups](https://github.com/stnolting/neorv32-setups) and
|
||
[community projects](https://github.com/stnolting/neorv32-setups/blob/main/README.md#Community-Projects)
|
||
targeting various FPGA boards and toolchains to get started.
|
||
* :kite: Support for [Zephyr](https://docs.zephyrproject.org/latest/boards/riscv/neorv32/doc/index.html) &
|
||
[FreeRTOS](https://github.com/stnolting/neorv32/tree/main/sw/example/demo_freeRTOS) operating systems and
|
||
[LiteX](https://github.com/enjoy-digital/litex/wiki/CPUs#risc-v---neorv32) SoC Builder Framework.
|
||
* :label: The project's change log is available in [CHANGELOG.md](https://github.com/stnolting/neorv32/blob/main/CHANGELOG.md).
|
||
* :rocket: Check out the [quick links below](#6-Getting-Started) and the
|
||
[*User Guide*](https://stnolting.github.io/neorv32/ug/) to get started setting up _your_ NEORV32 processor!
|
||
|
||
:bulb: Feel free to open a new [issue](https://github.com/stnolting/neorv32/issues) or start a new
|
||
[discussion](https://github.com/stnolting/neorv32/discussions) if you have questions, comments, ideas or if something is
|
||
not working as expected. Or have a chat on our [gitter channel](https://gitter.im/neorv32/community).
|
||
See how to [contribute](https://github.com/stnolting/neorv32/blob/main/CONTRIBUTING.md).
|
||
|
||
|
||
### Key Features
|
||
|
||
- [x] all-in-one package: **CPU** + **SoC** + **Software Framework & Tooling**
|
||
- [x] completely described in behavioral, platform-independent VHDL - **no** platform-specific primitives, macros, attributes, etc.; an all-Verilog "version" is also [available](https://github.com/stnolting/neorv32-verilog)
|
||
- [x] extensive configuration options for adapting the processor to the requirements of the application
|
||
- [x] highly [extensible hardware](https://stnolting.github.io/neorv32/ug/#_comparative_summary) - on CPU, processor and system level
|
||
- [x] aims to be as small as possible while being as RISC-V-compliant as possible - with a reasonable area-vs-performance trade-off
|
||
- [x] FPGA friendly (e.g. _all_ internal memories can be mapped to block RAM - including the CPU's register file)
|
||
- [x] optimized for high clock frequencies to ease integration / timing closure
|
||
- [x] from zero to _"hello world!"_ - completely open source and documented
|
||
- [x] easy to use even for FPGA / RISC-V starters – intended to _work out of the box_
|
||
|
||
|
||
### Project Status
|
||
|
||
[![release](https://img.shields.io/github/v/release/stnolting/neorv32?longCache=true&style=flat-square&logo=GitHub)](https://github.com/stnolting/neorv32/releases)
|
||
[![commits-since-latest-release](https://img.shields.io/github/commits-since/stnolting/neorv32/latest?longCache=true&style=flat-square&logo=GitHub)](https://github.com/stnolting/neorv32/releases)
|
||
|
||
| | Repository | CI Status |
|
||
|:--------|:-----------|:----------|
|
||
| GitHub Pages (docs) | [neorv32](https://github.com/stnolting/neorv32) | [![GitHub Pages](https://img.shields.io/website.svg?label=stnolting.github.io%2Fneorv32&longCache=true&style=flat-square&url=http%3A%2F%2Fstnolting.github.io%2Fneorv32%2Findex.html&logo=GitHub)](https://stnolting.github.io/neorv32) |
|
||
| Build documentation | [neorv32](https://github.com/stnolting/neorv32) | [![Documentation](https://img.shields.io/github/actions/workflow/status/stnolting/neorv32/Documentation.yml?branch=main&longCache=true&style=flat-square&label=Documentation&logo=Github%20Actions&logoColor=fff)](https://github.com/stnolting/neorv32/actions?query=workflow%3ADocumentation) |
|
||
| Processor (SoC) verification | [neorv32](https://github.com/stnolting/neorv32) | [![Processor](https://img.shields.io/github/actions/workflow/status/stnolting/neorv32/Processor.yml?branch=main&longCache=true&style=flat-square&label=Processor%20Check&logo=Github%20Actions&logoColor=fff)](https://github.com/stnolting/neorv32/actions?query=workflow%3AProcessor) |
|
||
| RISCOF core verification | [neorv32-riscof](https://github.com/stnolting/neorv32-riscof) | [![neorv32-riscof](https://img.shields.io/github/actions/workflow/status/stnolting/neorv32-riscof/main.yml?branch=main&longCache=true&style=flat-square&label=neorv32-riscof&logo=Github%20Actions&logoColor=fff)](https://github.com/stnolting/neorv32-riscof/actions/workflows/main.yml) |
|
||
| FPGA implementations | [neorv32-setups](https://github.com/stnolting/neorv32-setups) | [![Implementation](https://img.shields.io/github/actions/workflow/status/stnolting/neorv32-setups/Implementation.yml?branch=main&longCache=true&style=flat-square&label=Implementation&logo=Github%20Actions&logoColor=fff)](https://github.com/stnolting/neorv32-setups/actions?query=workflow%3AImplementation) |
|
||
| All-Verilog "version" | [neorv32-verilog](https://github.com/stnolting/neorv32-verilog) | [![neorv32-verilog](https://img.shields.io/github/actions/workflow/status/stnolting/neorv32-verilog/main.yml?branch=main&longCache=true&style=flat-square&label=neorv32-verilog&logo=Github%20Actions&logoColor=fff)](https://github.com/stnolting/neorv32-verilog/actions/workflows/main.yml) |
|
||
| Prebuilt GCC toolchains | [riscv-gcc-prebuilt](https://github.com/stnolting/riscv-gcc-prebuilt) | [![Prebuilt_Toolchains](https://img.shields.io/github/actions/workflow/status/stnolting/riscv-gcc-prebuilt/main.yml?branch=main&longCache=true&style=flat-square&label=Prebuilt%20Toolchains&logo=Github%20Actions&logoColor=fff)](https://github.com/stnolting/riscv-gcc-prebuilt/actions/workflows/main.yml) |
|
||
|
||
The processor passes the official RISC-V architecture tests to ensure compatibility with the RISC-V ISA specs., which is checked by the
|
||
[neorv32-riscof](https://github.com/stnolting/neorv32-riscof) repository. It can successfully run _any_ C program
|
||
(for example from the [`sw/example`](https://github.com/stnolting/neorv32/tree/main/sw/example) folder) including CoreMark
|
||
and FreeRTOS and can be synthesized for _any_ target technology - [tested](https://github.com/stnolting/neorv32-setups)
|
||
on Intel, Xilinx and Lattice FPGAs. The conversion into a plain-Verilog netlist module is automatically checked by the
|
||
[neorv32-verilog](https://github.com/stnolting/neorv32-verilog) repository.
|
||
|
||
[[back to top](#The-NEORV32-RISC-V-Processor)]
|
||
|
||
|
||
|
||
## 2. Features
|
||
|
||
The NEORV32 Processor provides a full-featured microcontroller-like SoC build around the NEORV32 CPU.
|
||
By using generics the design is highly configurable and allows a flexible customization to tailor the
|
||
setup according to your needs. Note that all of the following SoC modules are entirely _optional_.
|
||
|
||
**CPU Core**
|
||
|
||
* [![NEORV32_MARCHID](https://img.shields.io/badge/RISC--V%20Architecture%20ID-19-000000.svg?longCache=true&style=flat-square&colorA=273274&colorB=fbb517)](https://github.com/riscv/riscv-isa-manual/blob/master/marchid.md) -
|
||
see the [_open-source architecture ID list_](https://github.com/riscv/riscv-isa-manual/blob/master/marchid.md) in the official RISC-V ISA manual repository
|
||
* 32-bit little-endian RISC-V single-core, pipelined/multi-cycle modified Harvard architecture
|
||
* configurable ISA extensions:
|
||
\
|
||
`RV32`
|
||
[[`I`](https://stnolting.github.io/neorv32/#_i_base_integer_isa)/
|
||
[`E`](https://stnolting.github.io/neorv32/#_e_embedded_cpu)]
|
||
[[`B`](https://stnolting.github.io/neorv32/#_b_bit_manipulation_operations)]
|
||
[[`C`](https://stnolting.github.io/neorv32/#_c_compressed_instructions)]
|
||
[[`M`](https://stnolting.github.io/neorv32/#_m_integer_multiplication_and_division)]
|
||
[[`U`](https://stnolting.github.io/neorv32/#_u_less_privileged_user_mode)]
|
||
[[`X`](https://stnolting.github.io/neorv32/#_x_neorv32_specific_custom_extensions)]
|
||
[[`Zicsr`](https://stnolting.github.io/neorv32/#_zicsr_control_and_status_register_access_privileged_architecture)]
|
||
[[`Zicntr`](https://stnolting.github.io/neorv32/#_zicntr_cpu_base_counters)]
|
||
[[`Zihpm`](https://stnolting.github.io/neorv32/#_zihpm_hardware_performance_monitors)]
|
||
[[`Zifencei`](https://stnolting.github.io/neorv32/#_zifencei_instruction_stream_synchronization)]
|
||
[[`Zfinx`](https://stnolting.github.io/neorv32/#_zfinx_single_precision_floating_point_operations)]
|
||
[[`Zmmul`](https://stnolting.github.io/neorv32/#_zmmul_integer_multiplication)]
|
||
[[`Zxcfu`](https://stnolting.github.io/neorv32/#_zxcfu_custom_instructions_extension_cfu)]
|
||
[[`PMP`](https://stnolting.github.io/neorv32/#_pmp_physical_memory_protection)]
|
||
[[`Sdext`](https://stnolting.github.io/neorv32/#_sdext_external_debug_support)]
|
||
[[`Sdtrig`](https://stnolting.github.io/neorv32/#_sdtrig_trigger_module)]
|
||
* compatible to subsets of the RISC-V
|
||
*Unprivileged ISA Specification* ([pdf](https://github.com/stnolting/neorv32/blob/main/docs/references/riscv-spec.pdf))
|
||
and *Privileged Architecture Specification* ([pdf](https://github.com/stnolting/neorv32/blob/main/docs/references/riscv-privileged.pdf)).
|
||
* `machine` and `user` privilege modes
|
||
* implements **all** standard RISC-V exceptions and interrupts (including MTI, MEI & MSI)
|
||
* 16 fast interrupt request channels as NEORV32-specific extension
|
||
* custom functions unit ([CFU](https://stnolting.github.io/neorv32/#_custom_functions_unit_cfu) as `Zxcfu` ISA extension)
|
||
for _custom RISC-V instructions_ (R3-type, R4-type and R5-type);
|
||
* _intrinsic_ libraries for the `Zxcfu` and `Zfinx` ISA extensions
|
||
|
||
**Memories**
|
||
|
||
* processor-internal data and instruction memories ([DMEM](https://stnolting.github.io/neorv32/#_data_memory_dmem) /
|
||
[IMEM](https://stnolting.github.io/neorv32/#_instruction_memory_imem)) &
|
||
cache ([iCACHE](https://stnolting.github.io/neorv32/#_processor_internal_instruction_cache_icache))
|
||
* pre-installed bootloader ([BOOTLDROM](https://stnolting.github.io/neorv32/#_bootloader_rom_bootrom)) with serial user interface;
|
||
allows booting application code via UART or from external SPI flash
|
||
|
||
**Timers and Counters**
|
||
|
||
* 64-bit machine system timer ([MTIME](https://stnolting.github.io/neorv32/#_machine_system_timer_mtime)), RISC-V spec. compatible
|
||
* 32-bit general purpose timer ([GPTMR](https://stnolting.github.io/neorv32/#_general_purpose_timer_gptmr))
|
||
* watchdog timer ([WDT](https://stnolting.github.io/neorv32/#_watchdog_timer_wdt))
|
||
|
||
**Input / Output**
|
||
|
||
* standard serial interfaces
|
||
([UART](https://stnolting.github.io/neorv32/#_primary_universal_asynchronous_receiver_and_transmitter_uart0),
|
||
[SPI](https://stnolting.github.io/neorv32/#_serial_peripheral_interface_controller_spi),
|
||
[TWI/I²C](https://stnolting.github.io/neorv32/#_two_wire_serial_interface_controller_twi)),
|
||
[ONEWIRE/1-Wire](https://stnolting.github.io/neorv32/#_one_wire_serial_interface_controller_onewire))
|
||
* general purpose IOs ([GPIO](https://stnolting.github.io/neorv32/#_general_purpose_input_and_output_port_gpio)) and
|
||
[PWM](https://stnolting.github.io/neorv32/#_pulse_width_modulation_controller_pwm)
|
||
* smart LED interface ([NEOLED](https://stnolting.github.io/neorv32/#_smart_led_interface_neoled)) to directly control NeoPixel(TM) LEDs
|
||
|
||
**SoC Connectivity**
|
||
|
||
* 32-bit external bus interface - Wishbone b4 compatible
|
||
([WISHBONE](https://stnolting.github.io/neorv32/#_processor_external_memory_interface_wishbone_axi4_lite));
|
||
[wrappers](https://github.com/stnolting/neorv32/blob/main/rtl/system_integration) for AXI4-Lite and Avalon-MM host interfaces
|
||
* 32-bit stream link interface with up to 8 independent RX and TX channels
|
||
([SLINK](https://stnolting.github.io/neorv32/#_stream_link_interface_slink)) - AXI4-Stream compatible
|
||
* external interrupts controller with up to 32 channels
|
||
([XIRQ](https://stnolting.github.io/neorv32/#_external_interrupt_controller_xirq))
|
||
|
||
**Advanced**
|
||
|
||
* **true** random number generator ([TRNG](https://stnolting.github.io/neorv32/#_true_random_number_generator_trng)) based
|
||
on the [neoTRNG](https://github.com/stnolting/neoTRNG)
|
||
* execute-in-place module ([XIP](https://stnolting.github.io/neorv32/#_execute_in_place_module_xip)) to execute code directly from SPI flash
|
||
* custom functions subsystem ([CFS](https://stnolting.github.io/neorv32/#_custom_functions_subsystem_cfs))
|
||
for custom tightly-coupled co-processors, accelerators or interfaces
|
||
|
||
**Debugging**
|
||
|
||
* on-chip debugger ([OCD](https://stnolting.github.io/neorv32/#_on_chip_debugger_ocd)) accessible via standard JTAG interface
|
||
* compliant to the "Minimal RISC-V Debug Specification Version 1.0"
|
||
* compatible with **OpenOCD** + **gdb** and **Segger Embedded Studio**
|
||
|
||
[[back to top](#The-NEORV32-RISC-V-Processor)]
|
||
|
||
|
||
## 3. FPGA Implementation Results
|
||
|
||
Implementation results for **exemplary CPU configurations** generated for an Intel Cyclone IV `EP4CE22F17C6` FPGA
|
||
using Intel Quartus Prime Lite 21.1 (no timing constrains, _balanced optimization_, f_max from _Slow 1200mV 0C Model_).
|
||
|
||
| CPU Configuration (version [1.7.8.5](https://github.com/stnolting/neorv32/blob/main/CHANGELOG.md)) | LEs | FFs | Memory bits | DSPs | f_max |
|
||
|:-----------------------|:----:|:----:|:----:|:-:|:-------:|
|
||
| `rv32i_Zicsr` | 1223 | 607 | 1024 | 0 | 130 MHz |
|
||
| `rv32i_Zicsr_Zicntr` | 1578 | 773 | 1024 | 0 | 130 MHz |
|
||
| `rv32imc_Zicsr_Zicntr` | 2338 | 992 | 1024 | 0 | 130 MHz |
|
||
|
||
Implementation results for an **exemplary SoC/Processor configurations** generated for a Xilinx Artix-7 `xc7a35ticsg324-1L` FPGA
|
||
using Xilinx Vivado 2019.2 (no constraints except for clock speed).
|
||
|
||
| SoC Configuration (version [1.7.7.3](https://github.com/stnolting/neorv32/blob/main/CHANGELOG.md)) | LUTs | FFs | BRAMs | DSPs | Clock |
|
||
|:------------------------------------------------------------------------------------------------------|:----:|:----:|:-----:|:----:|:-------:|
|
||
| CPU: `rv32imcu_Zicsr_Zicnt_DEBUG` + `FST_MUL` + `FAST_SHIFT`; Peripherals: `UART0` + `MTIME` + `GPIO` | 2488 | 1807 | 7 | 4 | 150 MHz |
|
||
|
||
:bulb: An incremental list of the CPU extensions and the Processor modules can be found in the
|
||
[_Data Sheet: FPGA Implementation Results_](https://stnolting.github.io/neorv32/#_fpga_implementation_results).
|
||
|
||
[[back to top](#The-NEORV32-RISC-V-Processor)]
|
||
|
||
|
||
## 4. Performance
|
||
|
||
The NEORV32 CPU is based on a two-stages pipeline architecture (fetch and execute).
|
||
The average CPI (cycles per instruction) depends on the instruction mix of a specific applications and also on the
|
||
available CPU extensions.
|
||
|
||
The following table shows the performance results (scores and average CPI) for exemplary CPU configurations (no caches) executing
|
||
2000 iterations of the [CoreMark](https://github.com/stnolting/neorv32/blob/main/sw/example/coremark) CPU benchmark
|
||
(using plain GCC10 rv32i built-in libraries only!).
|
||
|
||
| CPU Configuration (version [1.5.7.10](https://github.com/stnolting/neorv32/blob/main/CHANGELOG.md)) | CoreMark Score | CoreMarks/MHz | Average CPI |
|
||
|:------------------------------------------------|:-----:|:----------:|:--------:|
|
||
| _small_ (`rv32i_Zicsr`) | 33.89 | **0.3389** | **4.04** |
|
||
| _medium_ (`rv32imc_Zicsr`) | 62.50 | **0.6250** | **5.34** |
|
||
| _performance_ (`rv32imc_Zicsr` + perf. options) | 95.23 | **0.9523** | **3.54** |
|
||
|
||
:bulb: More information regarding the CPU performance can be found in the
|
||
[_Data Sheet: CPU Performance_](https://stnolting.github.io/neorv32/#_cpu_performance).
|
||
The CPU & SoC provide further "tuning" options to optimize the design for maximum performance,
|
||
maximum clock speed, minimal area or minimal power consumption:
|
||
[_UG: Application-Specific Processor Configuration_](https://stnolting.github.io/neorv32/ug/#_application_specific_processor_configuration)
|
||
|
||
[[back to top](#The-NEORV32-RISC-V-Processor)]
|
||
|
||
|
||
|
||
## 5. Software Framework and Tooling
|
||
|
||
* [core libraries](https://github.com/stnolting/neorv32/tree/main/sw/lib) for high-level usage of the provided functions and peripherals
|
||
* application compilation based on GNU makefiles
|
||
* gcc-based toolchain ([pre-compiled toolchains available](https://github.com/stnolting/riscv-gcc-prebuilt))
|
||
* [SVD file](https://github.com/stnolting/neorv32/tree/main/sw/svd) for advanced debugging and IDE integration
|
||
* bootloader with UART interface console
|
||
* runtime environment for handling traps
|
||
* several [example programs](https://github.com/stnolting/neorv32/tree/main/sw/example) to get started including CoreMark, FreeRTOS and Conway's Game of Life
|
||
* doxygen-based documentation, available on [GitHub pages](https://stnolting.github.io/neorv32/sw/files.html)
|
||
* supports implementation using open source toolchains - both, software and hardware can be
|
||
developed and debugged with open source tools ([GHDL](https://github.com/ghdl/ghdl), Yosys, nextpnr, openOCD, gtkwave, ...)
|
||
* [continuous integration](https://github.com/stnolting/neorv32/actions) is available for:
|
||
* allowing users to see the expected execution/output of the tools
|
||
* ensuring RISC-V specification compatibility using [RISCOF](https://github.com/stnolting/neorv32-riscof)
|
||
* catching regressions
|
||
* providing ready-to-use and up-to-date [bitstreams](https://github.com/stnolting/neorv32-setups/actions/workflows/Implementation.yml)
|
||
and [documentation](https://stnolting.github.io/neorv32/)
|
||
|
||
:bulb: Want to know more? Check out the [_Data Sheet: Software Framework_](https://stnolting.github.io/neorv32/#_software_framework).
|
||
|
||
[[back to top](#The-NEORV32-RISC-V-Processor)]
|
||
|
||
|
||
|
||
## 6. Getting Started
|
||
|
||
This overview provides some *quick links* to the most important sections of the
|
||
[online Data Sheet](https://stnolting.github.io/neorv32) and the [online User Guide](https://stnolting.github.io/neorv32/ug).
|
||
|
||
### :mag: Project Overview
|
||
|
||
* **[NEORV32 Project](https://stnolting.github.io/neorv32/#_overview) - introduction**
|
||
* [Rationale](https://stnolting.github.io/neorv32/#_rationale) - why? how come? what for?
|
||
* [Key Features](https://stnolting.github.io/neorv32/#_project_key_features) - what makes it special
|
||
* [Structure](https://stnolting.github.io/neorv32/#_project_folder_structure) - folders and RTL files
|
||
* [Metrics](https://stnolting.github.io/neorv32/#_fpga_implementation_results) - FPGA implementation and performance evaluation
|
||
|
||
### :electric_plug: Hardware Overview
|
||
|
||
* **[NEORV32 Processor](https://stnolting.github.io/neorv32/#_neorv32_processor_soc) - the SoC**
|
||
* [Top Entity - Signals](https://stnolting.github.io/neorv32/#_processor_top_entity_signals) - how to connect to the processor
|
||
* [Top Entity - Generics](https://stnolting.github.io/neorv32/#_processor_top_entity_generics) - processor/CPU configuration options
|
||
* [Address Space](https://stnolting.github.io/neorv32/#_address_space) - memory layout and boot configurations
|
||
* [SoC Modules](https://stnolting.github.io/neorv32/#_processor_internal_modules) - IO/peripheral modules and memories
|
||
* [On-Chip Debugger](https://stnolting.github.io/neorv32/#_on_chip_debugger_ocd) - in-system debugging of the processor via JTAG
|
||
|
||
* **[NEORV32 CPU](https://stnolting.github.io/neorv32/#_neorv32_central_processing_unit_cpu) - the Core**
|
||
* [RISC-V Compatibility](https://stnolting.github.io/neorv32/#_risc_v_compatibility) - what is compatible to the specs and what is not
|
||
* [Architecture](https://stnolting.github.io/neorv32/#_architecture) - a look under the hood
|
||
* [Full Virtualization](https://stnolting.github.io/neorv32/#_full_virtualization) - execution safety
|
||
* [ISA and Extensions](https://stnolting.github.io/neorv32/#_instruction_sets_and_extensions) - available (RISC-V) ISA extensions
|
||
* [CSRs](https://stnolting.github.io/neorv32/#_control_and_status_registers_csrs) - control and status registers
|
||
* [Traps](https://stnolting.github.io/neorv32/#_traps_exceptions_and_interrupts) - interrupts and exceptions
|
||
|
||
### :floppy_disk: Software Overview
|
||
|
||
* [Example Programs](https://github.com/stnolting/neorv32/tree/main/sw/example) - examples how to use the processor's IO/peripheral modules
|
||
* [Core Libraries](https://stnolting.github.io/neorv32/#_core_libraries) - high-level functions for accessing the processor's peripherals
|
||
* [Software Framework Documentation](https://stnolting.github.io/neorv32/sw/files.html) - _doxygen_-based
|
||
* [Application Makefile](https://stnolting.github.io/neorv32/#_application_makefile) - turning _your_ application into an executable
|
||
* [Bootloader](https://stnolting.github.io/neorv32/#_bootloader) - the build-in NEORV32 bootloader
|
||
|
||
### :rocket: User Guide
|
||
|
||
* [Toolchain Setup](https://stnolting.github.io/neorv32/ug/#_software_toolchain_setup) - install and setup the RISC-V GCC toolchain
|
||
* [General Hardware Setup](https://stnolting.github.io/neorv32/ug/#_general_hardware_setup) - setup a new NEORV32 FPGA project
|
||
* [General Software Setup](https://stnolting.github.io/neorv32/ug/#_general_software_framework_setup) - configure the software framework
|
||
* [Application Compilation](https://stnolting.github.io/neorv32/ug/#_application_program_compilation) - compile an application using `make`
|
||
* [Upload via Bootloader](https://stnolting.github.io/neorv32/ug/#_uploading_and_starting_of_a_binary_executable_image_via_uart) - upload and execute executables
|
||
* [Application-Specific Processor Configuration](https://stnolting.github.io/neorv32/ug/#_application_specific_processor_configuration) - tailor the processor to your needs
|
||
* [Adding Custom Hardware Modules](https://stnolting.github.io/neorv32/ug/#_adding_custom_hardware_modules) - add _your_ custom hardware
|
||
* [Debugging via the On-Chip Debugger](https://stnolting.github.io/neorv32/ug/#_debugging_using_the_on_chip_debugger) - step through code *online* and *in-system*
|
||
* [Simulation](https://stnolting.github.io/neorv32/ug/#_simulating_the_processor) - simulate the whole SoC
|
||
* [LiteX Integration](https://stnolting.github.io/neorv32/ug/#_litex_soc_builder_support) - build a SoC using NEORV32 + [LiteX](https://github.com/enjoy-digital/litex)
|
||
* [Convert to Verilog](https://stnolting.github.io/neorv32/ug/#_neorv32_in_verilog) - turn the NEORV32 into an all-Verilog design
|
||
|
||
### :copyright: Legal
|
||
|
||
[![license](https://img.shields.io/github/license/stnolting/neorv32?longCache=true&style=flat)](https://github.com/stnolting/neorv32/blob/main/LICENSE)
|
||
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.5018888.svg)](https://doi.org/10.5281/zenodo.5018888)
|
||
|
||
* [Overview](https://stnolting.github.io/neorv32/#_legal) - license, disclaimer, limitation of liability for external links, proprietary notice, etc.
|
||
* [Citing](https://stnolting.github.io/neorv32/#_citing) - citing information
|
||
|
||
This is an open-source project that is free of charge. Use this project in any way you like
|
||
(as long as it complies to the permissive [license](https://github.com/stnolting/neorv32/blob/main/LICENSE)).
|
||
Please cite it appropriately. :+1:
|
||
|
||
[[back to top](#The-NEORV32-RISC-V-Processor)]
|
||
|
||
|
||
---------------------------------------
|
||
|
||
**:heart: A big shout-out to the community and all the [contributors](https://github.com/stnolting/neorv32/graphs/contributors), who helped improving this project!**
|