URL
https://opencores.org/ocsvn/neorv32/neorv32/trunk
Subversion Repositories neorv32
Compare Revisions
- This comparison shows the changes necessary to convert path
/neorv32/trunk/docs/datasheet
- from Rev 62 to Rev 63
- ↔ Reverse comparison
Rev 62 → Rev 63
/cpu.adoc
13,6 → 13,7
** `E` - embedded CPU version (reduced register file size) |
** `M` - integer multiplication and division hardware |
** `U` - less-privileged _user_ mode |
** `Zbb` - basic bit-manipulation operations |
** `Zfinx` - single-precision floating-point unit |
** `Zicsr` - control and status register access (privileged architecture) |
** `Zifencei` - instruction stream synchronization |
342,10 → 343,15
Volume II: Privileged Architecture_, which are available in the projects `docs/references` folder. |
|
[TIP] |
The CPU can discover available ISA extensions via the <<_misa>> and <<_mzext>> CSRs or by executing an instruction |
and checking for an _illegal instruction exception_. |
The CPU can discover available ISA extensions via the <<_misa>> CSR and the |
_SYSINFO_CPU_ <<_system_configuration_information_memory_sysinfo, SYSINFO>> register |
or by executing an instruction and checking for an _illegal instruction exception_. |
|
[NOTE] |
Executing an instruction from an extension that is not implemented or not enabled (for example via the according |
top entity generic) will raise an _illegal instruction_ exception. |
|
|
==== **`A`** - Atomic Memory Access |
|
Atomic memory access instructions (for implementing semaphores and mutexes) are available when the |
387,7 → 393,8
requirements. This extensions is enabled when the `CPU_EXTENSION_RISCV_E` configuration generic is _true_. Accesses to registers beyond |
`x15` will raise and _illegal instruction exception_. |
|
Due to the reduced register file an alternate ABI (**`ilp32e`**) is required for the toolchain. |
[IMPORTANT] |
Due to the reduced register file size an alternate toolchain ABI (**`ilp32e`**) is required. |
|
|
==== **`I`** - Base Integer ISA |
439,10 → 446,10
|
* multiplication: `mul`, `mulh`, `mulhsu`, `mulhu` |
|
If `Zmmul` is enabled, executing any division instruction from the `M` ISA (`div`, `divu`, `rem`, `remu`) |
will raise an illegal instruction exception. |
If `Zmmul` is enabled, executing any division instruction from the `M` ISA extension (`div`, `divu`, `rem`, `remu`) |
will raise an _illegal instruction exception_. |
|
Note that `M` and `Zmmul` extensions _cannot_ be enabled in parallel. |
Note that `M` and `Zmmul` extensions _cannot_ be enabled at the same time. |
|
[TIP] |
If your RISC-V GCC toolchain does not (yet) support the `_Zmmul` ISA extensions, it can be "emulated" |
452,7 → 459,7
|
==== **`U`** - Less-Privileged User Mode |
|
Adds the less-privileged _user mode_ when the `CPU_EXTENSION_RISCV_U` configuration generic is _true_. For |
Adds the less-privileged _user mode_ if the `CPU_EXTENSION_RISCV_U` configuration generic is _true_. For |
instance, use-level code cannot access machine-mode CSRs. Furthermore, access to the address space (like |
peripheral/IO devices) can be limited via the physical memory protection (_PMP_) unit for code running in user mode. |
|
461,25 → 468,19
|
The NEORV32-specific extensions are always enabled and are indicated by the set `X` bit in the `misa` CSR. |
|
[NOTE] |
The CPU provides 16 _fast interrupt_ interrupts (`FIRQ)`, which are controlled via custom bits in the `mie` |
The most important points of the NEORV32-specific extensions are: |
* The CPU provides 16 _fast interrupt_ interrupts (`FIRQ)`, which are controlled via custom bits in the `mie` |
and `mip` CSR. This extension is mapped to bits, that are available for custom use (according to the |
RISC-V specs). Also, custom trap codes for `mcause` are implemented. |
* The CPU provides a single _non-maskable_ interrupt (`NMI)` that also provides a custom trap code for `mcause`. |
* All undefined/unimplemented/malformed/illegal instructions do raise an illegal instruction exception (see <<_full_virtualization>>). |
|
[NOTE] |
The CPU provides a single _non-maskable_ interrupt (`NMI)` that also provides a custom trap code for `mcause`. |
|
[NOTE] |
A custom CSR `mzext` is available that can be used to check for implemented `Z*` CPU extensions |
(for example `Zifencei`). This CSR is mapped to the official "custom CSR address region". |
==== **`Zfinx`** Single-Precision Floating-Point Operations |
|
[NOTE] |
All undefined/unimplemented/malformed/illegal instructions do raise an illegal instruction exception |
(see <<_full_virtualization>>). |
[WARNING] |
The NEORV32 `Zfinx` extension is specification-compliant and operational but still _experimental_. |
|
|
==== **`Zfinx`** Single-Precision Floating-Point Operations |
|
The `Zfinx` floating-point extension is an alternative of the `F` floating-point instruction that also uses the |
integer register file `x` to store and operate on floating-point data (hence, `F-in-x`). Since not dedicated floating-point `f` |
register file exists, the `Zfinx` extension requires less hardware resources and features faster context changes. |
516,9 → 517,36
intrinsic library is provided to utilize the provided `Zfinx` floating-point extension from C-language |
code (see `sw/example/floating_point_test`). |
|
|
==== **`Zbb`** Basic Bit-Manipulation Operations |
|
[WARNING] |
The NEORV32 `Zbb` extension is specification-compliant and operational but still _experimental_. |
|
The `Zbb` extension implements the _basic_ sub-set of the RISC-V bit-manipulation extensions `B`. |
The official RISC-V specifications can be found here: https://github.com/riscv/riscv-bitmanip |
|
The `Zbb` extension is implemented when the `CPU_EXTENSION_RISCV_Zbb` configuration |
generic is _true_. In this case the following instructions are available: |
|
* `andn`, `orn`, `xnor` |
* `clz`, `ctz`, `cpop` |
* `max`, `maxu`, `min`, `minu` |
* `sext.b`, `sext.h`, `zext.h` |
* `rol`, `ror`, `rori` |
* `orc.b`, `rev8` |
|
[TIP] |
By default, the bit-manipulation unit uses an _iterative_ approach to compute shift-related operations |
like `clz` and `rol`. To increase performance (at the cost of additional hardware resources) the |
<<_fast_shift_en>> generic can be enabled to implement full-parallel logic (like barrel shifters) for all |
shift-related `Zbb` instructions. |
|
[IMPORTANT] |
Note that any FPU instruction including all FPU-related CSR accesses will raise an illegal instruction exception |
if the FPU is not enabled via the <<_mstatus>> CSR (`FS` bits). |
The `Zbb` extension is frozen but not officially ratified yet. There is no |
software support for this extension in the upstream GCC RISC-V port yet. However, an |
intrinsic library is provided to utilize the provided `Zbb` extension from C-language |
code (see `sw/example/bitmanip_test`). |
|
|
==== **`Zicsr`** Control and Status Register Access / Privileged Architecture |
706,6 → 734,10
| Floating-point - misc | `Zfinx` | `fsgnj.s` `fsgnjn.s` `fsgnjx.s` `fclass.s` | 12 |
| Floating-point - conversion | `Zfinx` | `fcvt.w.s` `fcvt.wu.s` | 47 |
| Floating-point - conversion | `Zfinx` | `fcvt.s.w` `fcvt.s.wu` | 48 |
| Basic bit-manip - logic | `Zbb` | `andn` `orn` `xnor` | 3 |
| Basic bit-manip - shift | `Zbb` | `clz` `ctz` `cpop` `rol` `ror` `rori` | 4+SA, FAST_SHIFT: 4 |
| Basic bit-manip - arith | `Zbb` | `max` `maxu` `min` `minu` | 3 |
| Basic bit-manip - misc | `Zbb` | `sext.b` `sext.h` `zext.h` `orc.b` `rev8` | 3 |
|======================= |
|
[NOTE] |
/cpu_csr.adoc
107,8 → 107,6
| 0xf13 | <<_mimpid>> | _CSR_MIMPID_ | r/- | Machine implementation ID / version | |
| 0xf14 | <<_mhartid>> | _CSR_MHARTID_ | r/- | Machine thread ID | |
| 0xf15 | <<_mconfigptr>> | _CSR_MCONFIGPTR_ | r/- | Machine configuration pointer register | |
6+^| **<<_neorv32_specific_custom_csrs>>** |
| 0xfc0 | <<_mzext>> | _CSR_MZEXT_ | r/- | Available `Z*` CPU extensions | |
|======================= |
|
|
188,9 → 186,6
| Bit | Name [C] | R/W | Function |
| 31 | _CSR_MSTATUS_SD_ | r/- | Read-only bit that is set if the FS field is not all-zero (state _OFF_) |
| 21 | _CSR_MSTATUS_TW_ | r/w | Timeout wait: raise illegal instruction exception if `WFI` instruction is executed outside of M-mode when set |
| 14:13 | _CSR_MSTATUS_FS_H_ : _CSR_MSTATUS_FS_L_ | r/w | Floating-point extension state; `00` = _OFF_, `11` = _DIRTY_; writing any other value will |
always set _DIRTY_; if `FS` is _off_ all FPU instructions and FPU CSR access will raise an illegal instruction exception; these status bits are hardwired |
to zero if no FPU is present (_CPU_MZEXT_ZFINX_ = false) |
| 12:11 | _CSR_MSTATUS_MPP_H_ : _CSR_MSTATUS_MPP_L_ | r/w | Previous machine privilege level, 11 = machine (M) level, 00 = user (U) level |
| 7 | _CSR_MSTATUS_MPIE_ | r/w | Previous machine global interrupt enable flag state |
| 3 | _CSR_MSTATUS_MIE_ | r/w | Machine global interrupt enable flag |
233,7 → 228,8
|======================= |
|
[TIP] |
Information regarding the implemented RISC-V `Z*` _sub-extensions_ (like `Zicsr` or `Zfinx`) can be found in the <<_mzext>> CSR. |
Information regarding the implemented RISC-V `Z*` _sub-extensions_ (like `Zicsr` or `Zfinx`) can be found |
in the _SYSINFO_CPU_ <<_system_configuration_information_memory_sysinfo, SYSINFO>> register. |
|
|
:sectnums!: |
512,16 → 508,16
[IMPORTANT] |
If _CPU_CNT_WIDTH_ is less than 64 (the default value) and greater than or equal 32, the according |
MSBs of `[m]cycleh` and `[m]instreth` are read-only and always read as zero. This configuration |
will also set the _ZXSCNT_ flag in the <<_mzext>> CSR. + |
will also set the _SYSINFO_CPU_ZXSCNT_ flag in the _SYSINFO_CPU_ <<_system_configuration_information_memory_sysinfo, SYSINFO>> register. + |
+ |
If _CPU_CNT_WIDTH_ is less than 32 and greater than 0, the `[m]cycleh` and `[m]instreth` do not |
exist and any access will raise an illegal instruction exception. Furthermore, the according MSBs of |
`[m]cycle` and `[m]instret` are read-only and always read as zero. This configuration will also |
set the _ZXSCNT_ flag in the <<_mzext>> CSR. + |
set the _SYSINFO_CPU_ZXSCNT_ flag in the _SYSINFO_CPU_ <<_system_configuration_information_memory_sysinfo, SYSINFO>> register. + |
+ |
If _CPU_CNT_WIDTH_ is 0, <<_cycleh>> and <<_instreth>> / <<_mcycleh>> and <<_minstreth>> do not |
exist and any access will raise an illegal instruction exception. This configuration will also set the |
_ZXNOCNT_ flag in the <<_mzext>> CSR. |
_SYSINFO_CPU_ZXNOCNT_ flag in the _SYSINFO_CPU_ <<_system_configuration_information_memory_sysinfo, SYSINFO>> register. |
|
|
:sectnums!: |
782,39 → 778,3
Software can traverse this data structure to discover information about the harts, the platform, and their configuration. |
**NOTE: Not assigned yet.** |
|====== |
|
|
|
<<< |
// #################################################################################################################### |
:sectnums: |
==== NEORV32-Specific Custom CSRs |
|
|
:sectnums!: |
===== **`mzext`** |
|
[cols="4,27,>7"] |
[frame="topbot",grid="none"] |
|====== |
| 0xfc0 | **Available Z* extensions** | `mzext` |
3+| Reset value: _0x00000000_ |
3+| The `mzext` CSR is a custom read-only CSR that shows the implemented Z* extensions. The following bits |
are implemented (all remaining bits are always zero). The entire CSR is read-only. |
|====== |
|
.Machine counter-inhibit register |
[cols="^1,<3,^1,<5"] |
[options="header",grid="rows"] |
|======================= |
| Bit | Name [C] | R/W | Event |
| 0 | _CPU_MZEXT_ZICSR_ | r/- | `Zicsr` extensions available (enabled via <<_cpu_extension_riscv_zicsr>> generic) |
| 1 | _CPU_MZEXT_ZIFENCEI_ | r/- | `Zifencei` extensions available (enabled via <<_cpu_extension_riscv_zifencei>> generic) |
| 2 | _CPU_MZEXT_ZMMUL_ | r/- | `Zmmul` extensions available (enabled via <<_cpu_extension_riscv_zmmul>> generic) |
| 5 | _CPU_MZEXT_ZFINX_ | r/- | `Zfinx` extensions available (enabled via <<_cpu_extension_riscv_zfinx>> generic) |
| 6 | _CPU_MZEXT_ZXSCNT_ | r/- | custom extension: "Small CPU counters": `cycle[h]` & `instret[h]` CSRs have less than 64-bit when set (when <<_cpu_cnt_width>> generic is less than 64) |
| 7 | _CPU_MZEXT_ZXNOCNT_ | r/- | custom extension: "NO CPU counters": `cycle[h]` & `instret[h]` CSRs are not available at all when set (when <<_cpu_cnt_width>> generic is 0) |
| 8 | _CSR_MZEXT_PMP_ | r/- | PMP (physical memory protection) extension available (<<_pmp_num_regions>> generic > 0) |
| 9 | _CSR_MZEXT_HPM_ | r/- | HPM (hardware performance monitors) extension available (<<_hpm_num_cnts>> generic > 0) |
| 10 | _CSR_MZEXT_DEBUGMODE_ | r/- | RISC-V "CPU debug mode" extension available (enabled via <<_cpu_top_entity_generics,_CPU_EXTENSION_RISCV_DEBUG_>> generic) |
|======================= |
/overview.adoc
144,41 → 144,41
=== Project Folder Structure |
|
................................... |
neorv32 - Project home folder |
neorv32 - Project home folder |
│ |
├docs - Project documentation |
│├datasheet - .adoc sources for NEORV32 data sheet |
│├doxygen_build - Software framework documentation (generated by doxygen) |
│├figures - Figures and logos |
│├icons - Misc. symbols |
│├references - Data sheets and RISC-V specs. |
│└src_adoc - AsciiDoc sources for this document |
├docs - Project documentation |
│├datasheet - .adoc sources for NEORV32 data sheet |
│├doxygen_build - Software framework documentation (generated by doxygen) |
│├figures - Figures and logos |
│├icons - Misc. symbols |
│├references - Data sheets and RISC-V specs. |
│└src_adoc - AsciiDoc sources for this document |
│ |
├rtl - VHDL sources |
│├core - Core sources of the CPU & SoC |
│└templates - Alternate/additional top entities & wrappers |
│ ├processor - Processor SoC wrappers |
│ └system - System wrappers for advanced connectivity |
├rtl - VHDL sources |
│├core - Core sources of the CPU & SoC |
│├processor_templates - Pre-configured SoC wrappers |
│├system_integration - System wrappers for advanced connectivity |
│└test_setups - Minimal test setup "SoCs" used in the User Guide |
│ |
├setups - Example setups for various FPGAs, boards and toolchains |
├setups - Example setups for various FPGAs, boards and toolchains |
│└... |
│ |
├sim - Simulation files (see User Guide) |
├sim - Simulation files (see User Guide) |
│ |
â””sw - Software framework |
├bootloader - Sources and scripts for the NEORV32 internal bootloader |
├common - Linker script and crt0.S start-up code |
├example - Various example programs |
â””sw - Software framework |
├bootloader - Sources and scripts for the NEORV32 internal bootloader |
├common - Linker script and crt0.S start-up code |
├example - Various example programs |
│└... |
├isa-test |
│├riscv-arch-test - RISC-V spec. compatibility test framework (submodule) |
│└port-neorv32 - Port files for the official RISC-V architecture tests |
├ocd_firmware - source code for on-chip debugger's "park loop" |
├openocd - OpenOCD on-chip debugger configuration files |
├image_gen - Helper program to generate NEORV32 executables |
â””lib - Processor core library |
├include - Header files (*.h) |
â””source - Source files (*.c) |
│├riscv-arch-test - RISC-V spec. compatibility test framework (submodule) |
│└port-neorv32 - Port files for the official RISC-V architecture tests |
├ocd_firmware - source code for on-chip debugger's "park loop" |
├openocd - OpenOCD on-chip debugger configuration files |
├image_gen - Helper program to generate NEORV32 executables |
â””lib - Processor core library |
├include - Header files (*.h) |
â””source - Source files (*.c) |
................................... |
|
|
203,6 → 203,7
│ |
├neorv32_cpu.vhd - NEORV32 CPU top entity |
│├neorv32_cpu_alu.vhd - Arithmetic/logic unit |
││├neorv32_cpu_cp_bitmanip.vhd - Bit-manipulation co-processor (B ext.) |
││├neorv32_cpu_cp_fpu.vhd - Floating-point co-processor (Zfinx ext.) |
││├neorv32_cpu_cp_muldiv.vhd - Mul/Div co-processor (M extension) |
││└neorv32_cpu_cp_shifter.vhd - Bit-shift co-processor |
275,7 → 276,8
[TIP] |
The CPU provides further options to reduce the area footprint (for example by constraining the CPU-internal |
counter sizes) or to increase performance (for example by using a barrel-shifter; at cost of extra hardware). |
See section <<_processor_top_entity_generics>> for more information. |
See section <<_processor_top_entity_generics>> for more information. Also, take a look at the User Guide section |
https://stnolting.github.io/neorv32/ug/#_application_specific_processor_configuration[Application-Specific Processor Configuration]. |
|
|
:sectnums: |
335,6 → 337,10
This benchmark focuses on testing the capabilities of the CPU core itself rather than the performance of the whole |
system. The according sources can be found in the `sw/example/coremark` folder. |
|
.Dhrystone |
[TIP] |
A _simple_ port of the Dhrystone benchmark is also available in `sw/example/dhrystone`. |
|
The resulting CoreMark score is defined as CoreMark iterations per second. |
The execution time is determined via the RISC-V `[m]cycle[h]` CSRs. The relative CoreMark score is |
defined as CoreMark score divided by the CPU's clock frequency in MHz. |
/soc.adoc
131,18 → 131,20
[TIP] |
The NEORV32 generics allow to configure the system according to your needs. The generics are |
used to control implementation of certain CPU extensions and peripheral modules and even allow to |
optimize the system for certain design goals like minimal area or maximum performance. |
optimize the system for certain design goals like minimal area or maximum performance. + |
**More information can be found in the user guides' section |
https://stnolting.github.io/neorv32/ug/#_application_specific_processor_configuration[Application-Specific Processor Configuration]**. |
|
[TIP] |
Privileged software can determine the actual CPU and processor configuration via the `misa` and |
`mzext` (see <<_machine_trap_setup>> and <<_neorv32_specific_custom_csrs>>) CSRs and via the memory-mapped _SYSINFO_ module (see <<_system_configuration_information_memory_sysinfo>>), |
respectively. |
Privileged software can determine the actual CPU and processor configuration via the `misa` and the |
i_SYSINFO_CPU_ <<_system_configuration_information_memory_sysinfo, SYSINFO>> register. |
|
[TIP] |
If optional modules (like CPU extensions or peripheral devices) are *not enabled* the according circuitry **will not be synthesized at all**. |
Hence, the disabled modules do not increase area and power requirements and do not impact the timing. |
[NOTE] |
If optional modules (like CPU extensions or peripheral devices) are *not enabled* the according circuitry |
**will not be synthesized at all**. Hence, the disabled modules do not increase area and power requirements |
and do not impact the timing. |
|
[TIP] |
[NOTE] |
Not all configuration combinations are valid. The processor RTL code provides sanity checks to inform the user |
during synthesis/simulation if an invalid combination has been detected. |
|
172,7 → 174,8
[frame="all",grid="none"] |
|====== |
| **CLOCK_FREQUENCY** | _natural_ | _none_ |
3+| The clock frequency of the processor's `clk_i` input port in Hertz (Hz). |
3+| The clock frequency of the processor's `clk_i` input port in Hertz (Hz). This value can be retrieved by software |
from the <<_system_configuration_information_memory_sysinfo, SYSINFO>> module. |
|====== |
|
|
190,17 → 193,6
|
|
:sectnums!: |
===== _USER_CODE_ |
|
[cols="4,4,2"] |
[frame="all",grid="none"] |
|====== |
| **USER_CODE** | _std_ulogic_vector(31 downto 0)_ | x"00000000" |
3+| Custom user code that can be read by software via the _SYSINFO_ module. |
|====== |
|
|
:sectnums!: |
===== _HW_THREAD_ID_ |
|
[cols="4,4,2"] |
207,7 → 199,8
[frame="all",grid="none"] |
|====== |
| **HW_THREAD_ID** | _natural_ | 0 |
3+| The hart ID of the CPU. Can be read via the `mhartid` CSR. Hart IDs must be unique within a system. |
3+| The hart ID of the CPU. Software can retrieve this value from the `mhartid` CSR. |
Note that hart IDs must be unique within a system. |
|====== |
|
|
218,7 → 211,8
[frame="all",grid="none"] |
|====== |
| **ON_CHIP_DEBUGGER_EN** | _boolean_ | false |
3+| Implement on-chip debugger (OCD). See chapter <<_on_chip_debugger_ocd>>. |
3+| Implement the on-chip debugger (OCD) and the CPU debug mode. |
See chapter <<_on_chip_debugger_ocd>> for more information. |
|====== |
|
|
226,7 → 220,10
:sectnums: |
==== RISC-V CPU Extensions |
|
See section <<_instruction_sets_and_extensions>> for more information. |
[TIP] |
See section <<_instruction_sets_and_extensions>> for more information. The configuration of the RISC-V _main_ ISA extensions |
(like `M`) can be determined via the <<_misa>> CSR. The configuration of ISA _sub-extensions_ (like `Zicsr`) and _extension options_ |
can be determined via memory-mapped registers of the <<_system_configuration_information_memory_sysinfo>> module. |
|
|
:sectnums!: |
248,8 → 245,8
[frame="all",grid="none"] |
|====== |
| **CPU_EXTENSION_RISCV_C** | _boolean_ | false |
3+| Implement compressed instructions (16-bit) when _true_. |
See section <<_c_compressed_instructions>>. |
3+| Implement compressed instructions (16-bit) when _true_. Compressed instructions can reduce program code |
size by approx. 30%. See section <<_c_compressed_instructions>>. |
|====== |
|
|
260,8 → 257,9
[frame="all",grid="none"] |
|====== |
| **CPU_EXTENSION_RISCV_E** | _boolean_ | false |
3+| Implement the embedded CPU extension (only implement the first 16 data registers) when _true_. |
See section <<_e_embedded_cpu>>. |
3+| Implement the embedded CPU extension (only implement the first 16 data registers) when _true_. This reduces embedded memory |
requirements for the register file. See section <<_e_embedded_cpu>> for more information. Note that this RISC-V extensions |
requires a different application binary interface (ABI). |
|====== |
|
|
272,8 → 270,11
[frame="all",grid="none"] |
|====== |
| **CPU_EXTENSION_RISCV_M** | _boolean_ | false |
3+| Implement integer multiplication and division instructions when _true_. |
See section <<_m_integer_multiplication_and_division>>. |
3+| Implement hardware accelerators for integer multiplication and division instructions when _true_. |
If this extensions is not enabled, multiplication and division operations (_not_ instructions) will be computed entirely in software. |
If only a hardware multiplier is required use the <<_cpu_extension_riscv_zmmul>> extension. Multiplication can also be mapped |
to DSP slices via the <<_fast_mul_en>> generic. |
See section <<_m_integer_multiplication_and_division>> for more information. |
|====== |
|
|
285,11 → 286,23
|====== |
| **CPU_EXTENSION_RISCV_U** | _boolean_ | false |
3+| Implement less-privileged user mode when _true_. |
See section <<_u_less_privileged_user_mode>>. |
See section <<_u_less_privileged_user_mode>> for more information. |
|====== |
|
|
:sectnums!: |
===== _CPU_EXTENSION_RISCV_Zbb_ |
|
[cols="4,4,2"] |
[frame="all",grid="none"] |
|====== |
| **CPU_EXTENSION_RISCV_Zbb** | _boolean_ | false |
3+| Implement the `Zbb` _basic_ bit-manipulation sub-extension when _true_. |
See section <<_zbb_basic_bit_manipulation_operations>> for more information. |
|====== |
|
|
:sectnums!: |
===== _CPU_EXTENSION_RISCV_Zfinx_ |
|
[cols="4,4,2"] |
297,7 → 310,7
|====== |
| **CPU_EXTENSION_RISCV_Zfinx** | _boolean_ | false |
3+| Implement the 32-bit single-precision floating-point extension (using integer registers) when _true_. |
See section <<_zfinx_single_precision_floating_point_operations>>. |
See section <<_zfinx_single_precision_floating_point_operations>> for more information. |
|====== |
|
|
311,7 → 324,7
3+| Implement the control and status register (CSR) access instructions when true. Note: When this option is |
disabled, the complete privileged architecture / trap system will be excluded from synthesis. Hence, no interrupts, no exceptions and |
no machine information will be available. |
See section <<_zicsr_control_and_status_register_access_privileged_architecture>>. |
See section <<_zicsr_control_and_status_register_access_privileged_architecture>> for more information. |
|====== |
|
|
323,8 → 336,8
|====== |
| **CPU_EXTENSION_RISCV_Zifencei** | _boolean_ | false |
3+| Implement the instruction fetch synchronization instruction `fence.i`. For example, this option is required |
for self-modifying code (and/or for i-cache flushes). |
See section <<_zifencei_instruction_stream_synchronization>>. |
for self-modifying code (and/or for instruction cache and CPU prefetch buffer flushes). |
See section <<_zifencei_instruction_stream_synchronization>> for more information. |
|====== |
|
|
335,8 → 348,8
[frame="all",grid="none"] |
|====== |
| **CPU_EXTENSION_RISCV_Zmmul** | _boolean_ | false |
3+| Implement integer multiplication-only instructions when _true_. This is a sub-extensions of the `M` extension. |
See section <<_zmmul_integer_multiplication>>. |
3+| Implement integer multiplication-only instructions when _true_. This is a sub-extension of the `M` extension, which |
cannot be used together with the `M` extension. See section <<_zmmul_integer_multiplication>> for more information. |
|====== |
|
|
354,9 → 367,11
[frame="all",grid="none"] |
|====== |
| **FAST_MUL_EN** | _boolean_ | false |
3+| When this generic is enabled, the multiplier of the `M` extension is realized using DSPs blocks instead of an |
iterative bit-serial approach. This generic is only relevant when the multiplier and divider CPU extension is |
enabled (<<_cpu_extension_riscv_m>> is _true_). |
3+| When this generic is enabled, the multiplier of the `M` extension is implemented using DSPs blocks instead of an |
iterative bit-serial approach. Performance will be increased and LUT utilization will be reduced at the cost of DSP slice |
utilization. This generic is only relevant when a hardware multiplier CPU extension is |
enabled (<<_cpu_extension_riscv_m>> or <<_cpu_extension_riscv_zmmul>> is _true_). **Note that the multipliers of the |
<<_zfinx_single_precision_floating_point_operations>> extension are always mapped to DSP block (if available).** |
|====== |
|
|
367,9 → 382,11
[frame="all",grid="none"] |
|====== |
| **FAST_SHIFT_EN** | _boolean_ | false |
3+| When this generic is set _true_ the shifter unit of the CPU's ALU is implemented as fast barrel shifter (requiring |
more hardware resources). If it is set _false_ the CPU uses a serial shifter that only performs a single bit shift per cycle |
(small but slow). |
3+| If this generic is set _true_ the shifter unit of the CPU's ALU is implemented as fast barrel shifter (requiring |
more hardware resources but completing within two clock cycles). If it is set _false_, the CPU uses a serial shifter |
that only performs a single bit shift per cycle (requiring less hardware resources, but requires up to 32 clock |
cycles to complete - depending on shift amount). **Note that this option also implements barrel shifters for _all_ |
shift-related operations of the <<_zbb_basic_bit_manipulation_operations>> extension.** |
|====== |
|
|
381,9 → 398,8
|====== |
| **CPU_CNT_WIDTH** | _natural_ | 64 |
3+| This generic configures the total size of the CPU's `cycle` and `instret` CSRs (low word + high word). |
The maximum value is 64, the minimum value is 0. See |
section <<_machine_counters_and_timers>> for more information. Note: configurations with <<_cpu_cnt_width>> |
less than 64 bits do not comply to the RISC-V specs. |
The maximum value is 64, the minimum value is 0. See section <<_machine_counters_and_timers>> for more information. |
Note: configurations with <<_cpu_cnt_width>> less than 64 bits do not comply to the RISC-V specs. |
|====== |
|
|
396,8 → 412,7
| **CPU_IPB_ENTRIES** | _natural_ | 2 |
3+| This generic configures the number of entries in the CPU's instruction prefetch buffer (a FIFO). |
The value has to be a power of two and has to be greater than zero. |
Long linear sequences of code can benefit from an increased IPB size. For setups that use the instruction |
cache (<<_icache_en>>) this generic should be set to 1. |
Long linear sequences of code can benefit from an increased IPB size. |
|====== |
|
|
416,8 → 431,8
|====== |
| **PMP_NUM_REGIONS** | _natural_ | 0 |
3+| Total number of implemented protections regions (0..64). If this generics is zero no physical memory |
protection logic will be implemented at all. Setting <<_pmp_num_regions>>_ > 0 will set the _CSR_MZEXT_PMP_ flag |
in the <<_mzext>> CSR. |
protection logic will be implemented at all. Setting <<_pmp_num_regions>>_ > 0 will set the _SYSINFO_CPU_PMP_ flag |
in the _SYSINFO_CPU_ <<_system_configuration_information_memory_sysinfo, SYSINFO>> register. |
|====== |
|
|
446,9 → 461,9
[frame="all",grid="none"] |
|====== |
| **HPM_NUM_CNTS** | _natural_ | 0 |
3+| Total number of implemented hardware performance monitor counters (0..29). If this generics is zero no |
hardware performance monitor logic will be implemented at all. Setting <<_hpm_num_cnts>> > 0 will set the _CSR_MZEXT_HPM_ flag |
in the <<_mzext>> CSR. |
3+| Total number of implemented hardware performance monitor counters (0..29). If this generics is zero, no |
hardware performance monitor logic will be implemented at all. Setting <<_hpm_num_cnts>> > 0 will set the _SYSINFO_CPU_HPM_ flag |
in the _SYSINFO_CPU_ <<_system_configuration_information_memory_sysinfo, SYSINFO>> register. |
|====== |
|
|
459,8 → 474,8
[frame="all",grid="none"] |
|====== |
| **HPM_CNT_WIDTH** | _natural_ | 40 |
3+| This generic defines the total LSB-aligned size of each HPM counter (size(`[m]hpmcounter*h`) + |
size(`[m]hpmcounter*`)). The maximum value is 64, the minimal is 0. If the size is less than 64-bit, the |
3+| This generic defines the total LSB-aligned size of each HPM counter (`size([m]hpmcounter*h)` + |
`size([m]hpmcounter*)`). The maximum value is 64, the minimal is 0. If the size is less than 64-bit, the |
unused MSB-aligned counter bits are hardwired to zero. |
|====== |
|
490,7 → 505,7
[frame="all",grid="none"] |
|====== |
| **MEM_INT_IMEM_SIZE** | _natural_ | 16*1024 |
3+| Size in bytes of the processor internal instruction memory (IMEM). Has no effect when _MEM_INT_IMEM_EN_ is _false_. |
3+| Size in bytes of the processor internal instruction memory (IMEM). Has no effect when <<_mem_int_imem_en>> is _false_. |
|====== |
|
|
519,7 → 534,7
[frame="all",grid="none"] |
|====== |
| **MEM_INT_DMEM_SIZE** | _natural_ | 8*1024 |
3+| Size in bytes of the processor-internal data memory (DMEM). Has no effect when _MEM_INT_DMEM_EN_ is _false_. |
3+| Size in bytes of the processor-internal data memory (DMEM). Has no effect when <<_mem_int_dmem_en>> is _false_. |
|====== |
|
|
537,7 → 552,8
[frame="all",grid="none"] |
|====== |
| **ICACHE_EN** | _boolean_ | false |
3+| Implement processor internal instruction cache when _true_. |
3+| Implement processor internal instruction cache when _true_. Note: if the setup only uses processor-internal data |
and instruction memories there is not point of implementing the i-cache. |
|====== |
|
|
549,7 → 565,7
|====== |
| **ICACHE_NUM_BLOCKS** | _natural_ | 4 |
3+| Number of blocks (cache "pages" or "lines") in the instruction cache. Has to be a power of two. Has no |
effect when _ICACHE_DMEM_EN_ is false. |
effect when <<_icache_dmem_en>> is false. |
|====== |
|
|
561,7 → 577,7
|====== |
| **ICACHE_BLOCK_SIZE** | _natural_ | 64 |
3+| Size in bytes of each block in the instruction cache. Has to be a power of two. Has no effect when |
_ICACHE_EN_ is _false_. |
<<_icache_dmem_en>> is _false_. |
|====== |
|
|
573,7 → 589,7
|====== |
| **ICACHE_ASSOCIATIVITY** | _natural_ | 1 |
3+| Associativity (= number of sets) of the instruction cache. Has to be a power of two. Allowed configurations: |
`1` = 1 set, direct mapped; `2` = 2-way set-associative. Has no effect when _ICACHE_EN_ is _false_. |
`1` = 1 set, direct mapped; `2` = 2-way set-associative. Has no effect when <<_icache_dmem_en>> is _false_. |
|====== |
|
|
602,7 → 618,8
[frame="all",grid="none"] |
|====== |
| **MEM_EXT_TIMEOUT** | _natural_ | 255 |
3+| Clock cycles after which a pending external bus access will auto-terminate and raise a bus fault exception. Set to 0 to disable auto-timeout. |
3+| Clock cycles after which a pending external bus access will auto-terminate and raise a bus fault exception. |
If set to zero, there will be no auto-timeout and no bus fault exception (might permanently stall system!). |
|====== |
|
|
613,7 → 630,8
[frame="all",grid="none"] |
|====== |
| **MEM_EXT_PIPE_MODE** | _boolean_ | false |
3+| Use _standard_ ("classic") Wishbone protocol for external bus when _false_; use _pipelined_ Wishbone protocol when _true_. |
3+| Use _standard_ ("classic") Wishbone protocol for external bus when _false_. |
Use _pipelined_ Wishbone protocol when _true_. |
|====== |
|
|
624,7 → 642,7
[frame="all",grid="none"] |
|====== |
| **MEM_EXT_BIG_ENDIAN** | _boolean_ | false |
3+| Use BIG endian interface for external bus when _true_; use little endian interface when _false_. |
3+| Use BIG endian interface for external bus when _true_. Use little endian interface when _false_. |
|====== |
|
|
637,7 → 655,7
| **MEM_EXT_ASYNC_RX** | _boolen_ | false |
3+| By default, _MEM_EXT_ASYNC_RX_ = _false_ implements a registered read-back path (RX) for incoming data in the bus interface |
in order to shorten the critical path. By setting _MEM_EXT_ASYNC_RX_ = _true_ an _asynchronous_ ("direct") read-back path is |
implemented reducing access latency by one cycle. |
implemented reducing access latency by one cycle but eventually increasing the critical path. |
|====== |
|
|
718,7 → 736,7
|====== |
| **XIRQ_TRIGGER_TYPE** | _std_ulogic_vector(31 downto 0)_ | 0xFFFFFFFF |
3+| Interrupt trigger type configuration (one bit for each IRQ channel): `0` = level-triggered, '1' = edge triggered. |
_XIRQ_TRIGGER_POLARITY_ generic is used to specify the actual level (high/low) or edge (falling/rising). |
<<_xirq_trigger_polarity>> generic is used to specify the actual level (high/low) or edge (falling/rising). |
|====== |
|
|
730,7 → 748,7
|====== |
| **XIRQ_TRIGGER_POLARITY** | _std_ulogic_vector(31 downto 0)_ | 0xFFFFFFFF |
3+| Interrupt trigger polarity configuration (one bit for each IRQ channel): `0` = low-level/falling-edge, |
'1' = high-level/rising-edge. _XIRQ_TRIGGER_TYPE_ generic is used to specify the actual type (level or edge). |
'1' = high-level/rising-edge. <<_xirq_trigger_type>> generic is used to specify the actual type (level or edge). |
|====== |
|
|
/soc_sysinfo.adoc
26,41 → 26,82
[options="header",grid="all"] |
|======================= |
| Address | Name [C] | Function |
| `0xffffffe0` | _SYSINFO_CLK_ | clock speed in Hz (via top's _CLOCK_FREQUENCY_ generic) |
| `0xffffffe4` | _SYSINFO_USER_CODE_ | custom user code, assigned via top's _USER_CODE_ generic |
| `0xffffffe8` | _SYSINFO_FEATURES_ | specific hardware configuration (see next table) |
| `0xffffffec` | _SYSINFO_CACHE_ | cache configuration information (see next table) |
| `0xfffffff0` | _SYSINFO_ISPACE_BASE_ | instruction address space base (defined via `ispace_base_c` constant in the `neorv32_package.vhd` file) |
| `0xfffffff4` | _SYSINFO_IMEM_SIZE_ | internal IMEM size in bytes (defined via top's _MEM_INT_IMEM_SIZE_ generic) |
| `0xfffffff8` | _SYSINFO_DSPACE_BASE_ | data address space base (defined via `sdspace_base_c` constant in the `neorv32_package.vhd` file) |
| `0xfffffffc` | _SYSINFO_DMEM_SIZE_ | internal DMEM size in bytes (defined via top's _MEM_INT_DMEM_SIZE_ generic) |
| `0xffffffe0` | _SYSINFO_CLK_ | clock speed in Hz (via top's <<_clock_frequency>> generic) |
| `0xffffffe4` | _SYSINFO_CPU_ | specific CPU configuration (see <<_sysinfo_cpu_configuration>>) |
| `0xffffffe8` | _SYSINFO_FEATURES_ | specific SoC configuration (see <<_sysinfo_soc_configuration>>) |
| `0xffffffec` | _SYSINFO_CACHE_ | cache configuration information (see <<_sysinfo_cache_configuration>>) |
| `0xfffffff0` | _SYSINFO_ISPACE_BASE_ | instruction address space base (via package's `ispace_base_c` constant) |
| `0xfffffff4` | _SYSINFO_IMEM_SIZE_ | internal IMEM size in bytes (via top's <<_mem_int_imem_size>> generic) |
| `0xfffffff8` | _SYSINFO_DSPACE_BASE_ | data address space base (via package's `sdspace_base_c` constant) |
| `0xfffffffc` | _SYSINFO_DMEM_SIZE_ | internal DMEM size in bytes (via top's <<_mem_int_dmem_size>> generic) |
|======================= |
|
|
===== SYSINFO - CPU Configuration |
|
._SYSINFO_CPU_ bits |
[cols="^1,<10,<11"] |
[options="header",grid="all"] |
|======================= |
| Bit | Name [C] | Function |
| `0` | _SYSINFO_CPU_ZICSR_ | `Zicsr` extension (`I` sub-extension) available when set (via top's <<_cpu_extension_riscv_zicsr>> generic) |
| `1` | _SYSINFO_CPU_ZIFENCEI_ | `Zifencei` extension (`I` sub-extension) available when set (via top's <<_cpu_extension_riscv_zifencei>> generic) |
| `2` | _SYSINFO_CPU_ZMMUL_ | `Zmmul` extension (`M` sub-extension) available when set (via top's <<_cpu_extension_riscv_zmmul>> generic) |
| `3` | _SYSINFO_CPU_ZBB_ | `Zbb` extension (`B` sub-extension) available when set (via top's <<_cpu_extension_riscv_zbb>> generic) |
| `5` | _SYSINFO_CPU_ZFINX_ | `Zfinx` extension (`F` sub-/alternative-extension) available when set (via top's <<_cpu_extension_riscv_zfinx>> generic) |
| `6` | _SYSINFO_CPU_ZXSCNT_ | Custom extension - _Small_ CPU counters: `[m]cycle` & `[m]instret` CSRs have less than 64-bit when set (via top's <<_cpu_cnt_width>> generic) |
| `7` | _SYSINFO_CPU_ZXNOCNT_ | Custom extension - _NO_ CPU counters: `[m]cycle` & `[m]instret` CSRs are NOT available at all when set (via top's <<_cpu_cnt_width>> generic) |
| `8` | _SYSINFO_CPU_PMP_ | `PMP` (physical memory protection) extension available when set (via top's <<_>> generic) |
| `9` | _SYSINFO_CPU_HPM_ | `HPM` (hardware performance monitors) extension available when set (via top's <<_>> generic) |
| `10` | _SYSINFO_CPU_DEBUGMODE_ | RISC-V CPU `debug_mode` available when set (via top's <<_>> generic) |
| `30 | _SYSINFO_CPU_FASTMUL_ | fast multiplication available when set (via top's <<_fast_mul_en>> generic) |
| `31` | _SYSINFO_CPU_FASTSHIFT_ | fast shifts available when set (via top's <<_fast_shift_en>> generic) |
|======================= |
|
|
===== SYSINFO - SoC Configuration |
|
._SYSINFO_FEATURES_ bits |
[cols="^1,<10,<11"] |
[options="header",grid="all"] |
|======================= |
| Bit | Name [C] | Function |
| `0` | _SYSINFO_FEATURES_BOOTLOADER_ | set if the processor-internal bootloader is implemented (via top's _INT_BOOTLOADER_EN_ generic) |
| `1` | _SYSINFO_FEATURES_MEM_EXT_ | set if the external Wishbone bus interface is implemented (via top's _MEM_EXT_EN_ generic) |
| `2` | _SYSINFO_FEATURES_MEM_INT_IMEM_ | set if the processor-internal DMEM implemented (via top's _MEM_INT_DMEM_EN_ generic) |
| `3` | _SYSINFO_FEATURES_MEM_INT_DMEM_ | set if the processor-internal IMEM is implemented (via top's _MEM_INT_IMEM_EN_ generic) |
| `4` | _SYSINFO_FEATURES_MEM_EXT_ENDIAN_ | set if external bus interface uses BIG-endian byte-order (via top's _MEM_EXT_BIG_ENDIAN_ generic) |
| `5` | _SYSINFO_FEATURES_ICACHE_ | set if processor-internal instruction cache is implemented (via _ICACHE_EN_ generic) |
| `14` | _SYSINFO_FEATURES_HW_RESET_ | set if on-chip debugger implemented (via _ON_CHIP_DEBUGGER_EN_ generic) |
| `15` | _SYSINFO_FEATURES_HW_RST_ | set if a dedicated hardware reset of all core registers is implemented (via package's _dedicated_reset_c_ constant) |
| `15` | _SYSINFO_FEATURES_HW_RST_ | set if a dedicated hardware reset of all core registers is implemented (via package's _dedicated_reset_c_ constant) |
| `16` | _SYSINFO_FEATURES_IO_GPIO_ | set if the GPIO is implemented (via top's _IO_GPIO_EN_ generic) |
| `17` | _SYSINFO_FEATURES_IO_MTIME_ | set if the MTIME is implemented (via top's _IO_MTIME_EN_ generic) |
| `18` | _SYSINFO_FEATURES_IO_UART0_ | set if the primary UART0 is implemented (via top's _IO_UART0_EN_ generic) |
| `19` | _SYSINFO_FEATURES_IO_SPI_ | set if the SPI is implemented (via top's _IO_SPI_EN_ generic) |
| `20` | _SYSINFO_FEATURES_IO_TWI_ | set if the TWI is implemented (via top's _IO_TWI_EN_ generic) |
| `21` | _SYSINFO_FEATURES_IO_PWM_ | set if the PWM is implemented (via top's _IO_PWM_EN_ generic) |
| `22` | _SYSINFO_FEATURES_IO_WDT_ | set if the WDT is implemented (via top's _IO_WDT_EN_ generic) |
| `23` | _SYSINFO_FEATURES_IO_CFS_ | set if the custom functions subsystem is implemented (via top's _IO_CFS_EN_ generic) |
| `0` | _SYSINFO_FEATURES_BOOTLOADER_ | set if the processor-internal bootloader is implemented (via top's <<_int_bootloader_en>> generic) |
| `1` | _SYSINFO_FEATURES_MEM_EXT_ | set if the external Wishbone bus interface is implemented (via top's <<_mem_ext_en>> generic) |
| `2` | _SYSINFO_FEATURES_MEM_INT_IMEM_ | set if the processor-internal DMEM implemented (via top's <<_mem_int_dmem_en>> generic) |
| `3` | _SYSINFO_FEATURES_MEM_INT_DMEM_ | set if the processor-internal IMEM is implemented (via top's <<_mem_int_imem_en>> generic) |
| `4` | _SYSINFO_FEATURES_MEM_EXT_ENDIAN_ | set if external bus interface uses BIG-endian byte-order (via top's <<_mem_ext_big_endian>> generic) |
| `5` | _SYSINFO_FEATURES_ICACHE_ | set if processor-internal instruction cache is implemented (via top's <<_icache_en>> generic) |
| `14` | _SYSINFO_FEATURES_HW_RESET_ | set if on-chip debugger implemented (via top's <<_on_chip_debugger_en>> generic) |
| `15` | _SYSINFO_FEATURES_HW_RST_ | set if a dedicated hardware reset of all core registers is implemented (via package's `dedicated_reset_c` constant) |
| `16` | _SYSINFO_FEATURES_IO_GPIO_ | set if the GPIO is implemented (via top's <<_io_gpio_en>> generic) |
| `17` | _SYSINFO_FEATURES_IO_MTIME_ | set if the MTIME is implemented (via top's <<_io_mtime_en>> generic) |
| `18` | _SYSINFO_FEATURES_IO_UART0_ | set if the primary UART0 is implemented (via top's <<_io_uart0_en>> generic) |
| `19` | _SYSINFO_FEATURES_IO_SPI_ | set if the SPI is implemented (via top's <<_io_spi_en>> generic) |
| `20` | _SYSINFO_FEATURES_IO_TWI_ | set if the TWI is implemented (via top's <<_io_twi_en>> generic) |
| `21` | _SYSINFO_FEATURES_IO_PWM_ | set if the PWM is implemented (via top's <<_io_pwm_en>> generic) |
| `22` | _SYSINFO_FEATURES_IO_WDT_ | set if the WDT is implemented (via top's <<_io_wdt_en>> generic) |
| `23` | _SYSINFO_FEATURES_IO_CFS_ | set if the custom functions subsystem is implemented (via top's <<_io_cfs_en>> generic) |
| `24` | _SYSINFO_FEATURES_IO_TRNG_ | set if the TRNG is implemented (via top's _IO_TRNG_EN_ generic) |
| `25` | _SYSINFO_FEATURES_IO_SLINK_ | set if the SLINK is implemented (via top's _SLINK_NUM_TX_ / _SLINK_NUM_RX_ generics) |
| `26` | _SYSINFO_FEATURES_IO_UART1_ | set if the secondary UART1 is implemented (via top's _IO_UART1_EN_ generic) |
| `27` | _SYSINFO_FEATURES_IO_NEOLED_ | set if the NEOLED is implemented (via top's _IO_NEOLED_EN_ generic) |
| `25` | _SYSINFO_FEATURES_IO_SLINK_ | set if the SLINK is implemented (via top's <<_slink_num_tx>> and/or <<_slink_num_rx>> generics) |
| `26` | _SYSINFO_FEATURES_IO_UART1_ | set if the secondary UART1 is implemented (via top's <<_io_uart1_en>> generic) |
| `27` | _SYSINFO_FEATURES_IO_NEOLED_ | set if the NEOLED is implemented (via top's <<_io_neoled_en>> generic) |
|======================= |
|
|
===== SYSINFO - Cache Configuration |
|
[NOTE] |
Bit fields in this register are set to all-zero if the according cache is not implemented. |
|
._SYSINFO_CACHE_ bits |
[cols="^1,<10,<11"] |
[options="header",grid="all"] |
|======================= |
| Bit | Name [C] | Function |
| `3:0` | _SYSINFO_CACHE_IC_BLOCK_SIZE_3_ : _SYSINFO_CACHE_IC_BLOCK_SIZE_0_ | _log2_(i-cache block size in bytes), via top's <<_icache_block_size>> generic |
| `7:4` | _SYSINFO_CACHE_IC_NUM_BLOCKS_3_ : _SYSINFO_CACHE_IC_NUM_BLOCKS_0_ | _log2_(i-cache number of cache blocks), via top's <<_icache_num_blocks>> generic |
| `11:9` | _SYSINFO_CACHE_IC_ASSOCIATIVITY_3_ : _SYSINFO_CACHE_IC_ASSOCIATIVITY_0_ | _log2_(i-cache associativity), via top's <<_icache_associativity>> generic |
| `15:12` | _SYSINFO_CACHE_IC_REPLACEMENT_3_ : _SYSINFO_CACHE_IC_REPLACEMENT_0_ | i-cache replacement policy (`0001` = LRU if associativity > 0) |
| `32:16` | - | zero, reserved for d-cache |
|======================= |
/soc_wishbone.adoc
133,7 → 133,7
|
**AXI4-Lite Connectivity** |
|
The AXI4-Lite wrapper (`rtl/templates/system/neorv32_SystemTop_axi4lite.vhd`) provides a Wishbone-to- |
The AXI4-Lite wrapper (`rtl/system_integration/neorv32_SystemTop_axi4lite.vhd`) provides a Wishbone-to- |
AXI4-Lite bridge, compatible with Xilinx Vivado (IP packager and block design editor). All entity signals of |
this wrapper are of type _std_logic_ or _std_logic_vector_, respectively. |
|
145,4 → 145,4
|
[WARNING] |
Using the auto-termination timeout feature (_MEM_EXT_TIMEOUT_ greater than zero) is **not AXI4 compliant** as the AXI protocol does not support canceling of |
bus transactions. Therefore, the NEORV32 top wrapper with AXI4-Lite interface (`rtl/templates/system/neorv32_SystemTop_axi4lite`) configures _MEM_EXT_TIMEOUT_ = 0 by default. |
bus transactions. Therefore, the NEORV32 top wrapper with AXI4-Lite interface (`rtl/system_integration/neorv32_SystemTop_axi4lite`) configures _MEM_EXT_TIMEOUT_ = 0 by default. |
/software.adoc
124,6 → 124,7
exe - compile and generate <neorv32_exe.bin> executable for upload via bootloader |
hex - compile and generate <neorv32_exe.hex> executable raw file |
install - compile, generate and install VHDL IMEM boot image (for application) |
sim - in-console simulation using the default testbench and GHDL |
all - exe + hex + install |
elf_info - show ELF layout info |
clean - clean up project |
457,8 → 458,8
| `HWV` | Processor hardware version (from the `mimpid` CSR) in BCD format (example: `0x01040606` = v1.4.6.6). |
| `CLK` | Processor clock speed in Hz (via the SYSINFO module, from the _CLOCK_FREQUENCY_ generic). |
| `MISA` | CPU extensions (from the `misa` CSR). |
| `ZEXT` | CPU sub-extensions (from the `mzext` CSR) |
| `PROC` | Processor configuration (via the SYSINFO module, from the IO_* and MEM_* configuration generics). |
| `ZEXT` | CPU sub-extensions (via the _SYSINFO_CPU_ register in the SYSINFO module) |
| `PROC` | Processor configuration (via the _SYSINFO_FEATURES_ register in the SYSINFO module / from the IO_* and MEM_* configuration generics). |
| `IMEM` | IMEM memory base address and size in byte (from the _MEM_INT_IMEM_SIZE_ generic). |
| `DMEM` | DMEM memory base address and size in byte (from the _MEM_INT_DMEM_SIZE_ generic). |
|======================= |