Update README.md
parent
b894d419d4
commit
e96d8140f8
49
README.md
49
README.md
|
@ -99,3 +99,52 @@ in this case the architecture x64 for windows binaries(https://github.com/xpack-
|
||||||
-rw-rw-rw- 1 adriz 0 432 2024-02-24 01:45 neorv32_raw_exe.bin
|
-rw-rw-rw- 1 adriz 0 432 2024-02-24 01:45 neorv32_raw_exe.bin
|
||||||
-rw-rw-rw- 1 adriz 0 972 2024-02-24 01:45 neorv32_raw_exe.hex
|
-rw-rw-rw- 1 adriz 0 972 2024-02-24 01:45 neorv32_raw_exe.hex
|
||||||
```
|
```
|
||||||
|
10. you have been able to compiled assembly for the RISCV on windows.
|
||||||
|
|
||||||
|
|
||||||
|
## Linux Installation
|
||||||
|
|
||||||
|
1. Open shell and run:
|
||||||
|
```
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install autoconf automake autotools-dev curl python3 python3-pip libmpc-dev libmpfr-dev libgmp-dev gawk build-essential bison flex texinfo gperf libtool patchutils bc zlib1g-dev libexpat-dev ninja-build git cmake libglib2.0-dev
|
||||||
|
git clone https://github.com/riscv/riscv-gnu-toolchain
|
||||||
|
cd riscv-gnu-toolchain/
|
||||||
|
mkdir build/
|
||||||
|
cd build
|
||||||
|
sudo mkdir /opt/riscv32im
|
||||||
|
sudo chown $USER /opt/riscv32im
|
||||||
|
./configure --with-arch=rv32im --prefix=/opt/riscv32im
|
||||||
|
make -j$(nproc)
|
||||||
|
```
|
||||||
|
2. clone this repository.
|
||||||
|
3. go to the directory where you cloned or donwloaded this repository to the directory **neorv32\sw\example\demo_blink_led_asm**
|
||||||
|
```
|
||||||
|
$ cd neorv32\sw\example\demo_blink_led
|
||||||
|
```
|
||||||
|
4. run the command **make all**
|
||||||
|
```
|
||||||
|
$ make all
|
||||||
|
Memory utilization:
|
||||||
|
text data bss dec hex filename
|
||||||
|
1012 0 0 1012 3f4 main.elf
|
||||||
|
Executable (neorv32_exe.bin) size in bytes:
|
||||||
|
1024
|
||||||
|
Installing application image to ../../../rtl/core/neorv32_application_image.vhd
|
||||||
|
|
||||||
|
```
|
||||||
|
5. list the generated files and you will see
|
||||||
|
|
||||||
|
```
|
||||||
|
$ ls -l
|
||||||
|
-rw-r--r-- 1 adrizcorp adrizcorp 18160 Feb 24 01:54 main.asm
|
||||||
|
-rw-r--r-- 1 adrizcorp adrizcorp 1012 Feb 24 01:54 main.bin
|
||||||
|
-rw-r--r-- 1 adrizcorp adrizcorp 4314 Feb 23 15:08 main.c
|
||||||
|
-rw-r--r-- 1 adrizcorp adrizcorp 7696 Feb 24 01:54 main.c.o
|
||||||
|
-rwxr-xr-x 1 adrizcorp adrizcorp 42856 Feb 24 01:54 main.elf
|
||||||
|
-rw-r--r-- 1 adrizcorp adrizcorp 141 Feb 23 15:08 makefile
|
||||||
|
-rw-r--r-- 1 adrizcorp adrizcorp 3704 Feb 24 01:54 neorv32_application_image.vhd
|
||||||
|
-rw-r--r-- 1 adrizcorp adrizcorp 1024 Feb 24 01:54 neorv32_exe.bin
|
||||||
|
-rw-r--r-- 1 adrizcorp adrizcorp 1012 Feb 24 01:54 neorv32_raw_exe.bin
|
||||||
|
-rw-r--r-- 1 adrizcorp adrizcorp 2277 Feb 24 01:54 neorv32_raw_exe.hex
|
||||||
|
```
|
Loading…
Reference in New Issue