eel3792c_rv32i

RV32I implementation on a DE10-Lite FPGA for the EEL3792C course.
Log | Files | Refs

commit fa0b37e4e90eed92766273e354d6f7b6d01d3554
parent f267c351b754a8133f4f4a88863a42fc8cb65324
Author: vin <git@vineetk.net>
Date:   Thu, 17 Apr 2025 16:03:17 -0400

add makefile to compile C code easier

Diffstat:
AMakefile | 15+++++++++++++++
1 file changed, 15 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile @@ -0,0 +1,15 @@ +CC = riscv32-none-elf-gcc +CP = riscv32-none-elf-objcopy +CFLAGS = -fno-pic -nostdlib -fno-delete-null-pointer-checks --param=min-pagesize=0 -O3 -march=rv32i -mabi=ilp32 -Wall -Wextra -pedantic + +SRC = fibonacci.c +ROM = riscvtest_rom_image.txt + +all: + ${CC} ${CFLAGS} ${SRC} + ${CP} -j .text -O binary a.out /dev/stdout \ + | od -t x4 -w4 - | cut -d' ' -f2 | head -n -1 \ + > ${ROM} + +clean: + rm -f a.out