Debian Codegraph @

examples/riscv-firmware/README.md

raw symbols SCIP
1
2 Here are both compiled and source codes for the tiny riscv, which are intended to test the functioning of various DSP ascetics.
3
4 Compilation itself is not provided because this imposes too strong requirements on the client environment.
5 Those interested can read [lesson 20](https://github.com/BrunoLevy/learn-fpga/tree/master/FemtoRV/TUTORIALS/FROM_BLINKER_TO_RISCV#step-20-using-the-gnu-toolchain-to-compile-programs---assembly)
6
7
8 This is an example Makefile that was used to create these .hex files
9
10 ``` Makefile
11 mult36x36.hex: mult36x36.bram.elf
12 ./firmware_words mult36x36.bram.elf -ram 6144 -max_addr 6144 -out mult36x36.hex
13
14 mult36x36.bram.elf: mult36x36.o wait.o start.o
15 riscv64-none-elf-ld mult36x36.o wait.o start.o -o mult36x36.bram.elf -T bram.ld -m elf32lriscv -nostdlib
16
17 %.o: %.S
18 riscv64-none-elf-as -march=rv32i -mabi=ilp32 -mno-relax $< -o $@
19 ```
20