Skip to content

Commit

Permalink
Update software framework to gcc-13.2.0 (#705)
Browse files Browse the repository at this point in the history
  • Loading branch information
stnolting authored Oct 13, 2023
2 parents 1d68932 + dbea5a6 commit cbe646c
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/Processor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
USER_FLAGS+=-DUART0_SIM_MODE
USER_FLAGS+=-DSUPPRESS_OPTIONAL_UART_PRINT
USER_FLAGS+=-flto
MARCH=rv32imac
MARCH=rv32imac_zicsr_zifencei
info
all
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ mimpid = 0x01040312 -> Version 01.04.03.12 -> v1.4.3.12

| Date (*dd.mm.yyyy*) | Version | Comment |
|:-------------------:|:-------:|:--------|
| 13.10.2023 | 1.9.0.1 | update software framework to GCC-13.2.0; [#705](https://github.com/stnolting/neorv32/pull/705) |
| 13.10.2023 | [**:rocket:1.9.0**](https://github.com/stnolting/neorv32/releases/tag/v1.9.0) | **New release** |
| 13.10.2023 | 1.8.9.9 | minor hardware edits and optimizations; [#703](https://github.com/stnolting/neorv32/pull/703) |
| 07.10.2023 | 1.8.9.8 | add "transfer done" flag to DMA; [#699](https://github.com/stnolting/neorv32/pull/699) |
Expand Down
2 changes: 1 addition & 1 deletion do.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def task_BuildAndInstallSoftwareFrameworkTests():
"make -C sw/bootloader clean_all info bootloader",
# Compile and install test application, redirect UART0 TX to text.io simulation output via <UARTx_SIM_MODE> user flags
"echo 'Compiling and installing CPU/Processor test application'",
"make -C sw/example/processor_check clean_all USER_FLAGS+=-DUART0_SIM_MODE USER_FLAGS+=-DUART1_SIM_MODE USER_FLAGS+=-flto EFFORT=-Os MARCH=rv32imac info all",
"make -C sw/example/processor_check clean_all USER_FLAGS+=-DUART0_SIM_MODE USER_FLAGS+=-DUART1_SIM_MODE USER_FLAGS+=-flto EFFORT=-Os MARCH=rv32imac_zicsr_zifencei info all",
],
"doc": "Build all sw/example/*; install bootloader and processor check",
}
Expand Down
6 changes: 3 additions & 3 deletions docs/datasheet/software.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ Make sure to add the bin folder of RISC-V GCC to your PATH variable.
USER_FLAGS - Custom toolchain flags [append only], default ""
USER_LIBS - Custom libraries [append only], default ""
EFFORT - Optimization level, default "-Os"
MARCH - Machine architecture, default "rv32i_zicsr"
MARCH - Machine architecture, default "rv32i_zicsr_zifencei"
MABI - Machine binary interface, default "ilp32"
APP_INC - C include folder(s) [append only], default "-I ."
ASM_INC - ASM include folder(s) [append only], default "-I ."
Expand All @@ -197,7 +197,7 @@ makefile (`sw/common/common.mk`):
.Customizing Makefile Variables
[TIP]
The makefile configuration variables can be overridden or extended directly when invoking the makefile. For
example `$ make MARCH=rv32ic_zicsr clean_all exe` overrides the default `MARCH` variable definitions.
example `$ make MARCH=rv32ic_zicsr_zifencei clean_all exe` overrides the default `MARCH` variable definitions.
.Default Makefile Configuration
[source,makefile]
Expand All @@ -217,7 +217,7 @@ EFFORT ?= -Os
# Compiler toolchain
RISCV_PREFIX ?= riscv32-unknown-elf-
# CPU architecture and ABI
MARCH ?= rv32i_zicsr
MARCH ?= rv32i_zicsr_zifencei
MABI ?= ilp32
# User flags for additional configuration (will be added to compiler flags)
USER_FLAGS ?=
Expand Down
2 changes: 1 addition & 1 deletion rtl/core/neorv32_package.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ package neorv32_package is

-- Architecture Constants -----------------------------------------------------------------
-- -------------------------------------------------------------------------------------------
constant hw_version_c : std_ulogic_vector(31 downto 0) := x"01090000"; -- hardware version
constant hw_version_c : std_ulogic_vector(31 downto 0) := x"01090001"; -- hardware version
constant archid_c : natural := 19; -- official RISC-V architecture ID
constant XLEN : natural := 32; -- native data path width, do not change!

Expand Down
2 changes: 1 addition & 1 deletion sw/common/common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ EFFORT ?= -Os
RISCV_PREFIX ?= riscv32-unknown-elf-

# CPU architecture and ABI
MARCH ?= rv32i_zicsr
MARCH ?= rv32i_zicsr_zifencei
MABI ?= ilp32

# User flags for additional configuration (will be added to compiler flags)
Expand Down
9 changes: 1 addition & 8 deletions sw/example/demo_freeRTOS/makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# *****************************************************************************
# USER CONFIGURATION
# USER CONFIGURATION OVERRIDE
# *****************************************************************************
# User's application sources (*.c, *.cpp, *.s, *.S); add additional files here
APP_SRC ?= $(wildcard ./*.c) $(wildcard ./*.s) $(wildcard ./*.cpp) $(wildcard ./*.S)
Expand All @@ -9,13 +9,6 @@ APP_INC ?= -I .
# User's application include folders - for assembly files only (don't forget the '-I' before each entry)
ASM_INC ?= -I .

# Optimization
EFFORT ?= -Os

# CPU architecture and ABI
MARCH ?= rv32i
MABI ?= ilp32

# User flags for additional configuration (will be added to compiler flags)
USER_FLAGS ?=
# *****************************************************************************
Expand Down
9 changes: 1 addition & 8 deletions sw/example/demo_freeRTOS_xirq/makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# *****************************************************************************
# USER CONFIGURATION
# USER CONFIGURATION OVERRIDE
# *****************************************************************************
# User's application sources (*.c, *.cpp, *.s, *.S); add additional files here
APP_SRC ?= $(wildcard ./*.c) $(wildcard ./*.s) $(wildcard ./*.cpp) $(wildcard ./*.S)
Expand All @@ -9,13 +9,6 @@ APP_INC ?= -I .
# User's application include folders - for assembly files only (don't forget the '-I' before each entry)
ASM_INC ?= -I .

# Optimization
EFFORT ?= -Os

# CPU architecture and ABI
MARCH ?= rv32i
MABI ?= ilp32

# User flags for additional configuration (will be added to compiler flags)
USER_FLAGS ?=
# *****************************************************************************
Expand Down
2 changes: 1 addition & 1 deletion sw/example/processor_check/run_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
set -e

echo "Starting processor check simulation..."
make USER_FLAGS+="-DUART0_SIM_MODE -DUART1_SIM_MODE -g -flto" EFFORT=-Os MARCH=rv32imac clean_all all sim
make USER_FLAGS+="-DUART0_SIM_MODE -DUART1_SIM_MODE -g -flto" EFFORT=-Os MARCH=rv32imac_zicsr_zifencei clean_all all sim
2 changes: 1 addition & 1 deletion sw/ocd-firmware/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ EFFORT ?= -Os
RISCV_PREFIX ?= riscv32-unknown-elf-

# CPU architecture and ABI
MARCH = rv32i
MARCH = rv32i_zicsr_zifencei
MABI = ilp32

# User flags for additional configuration (will be added to compiler flags)
Expand Down

0 comments on commit cbe646c

Please sign in to comment.