Risc-v spu32 en unamiga
Publicado: 27 Mar 2019, 01:37
https://github.com/maikmerten/spu32/blo ... /README.md
Los enlaces fuente son:
Una vez se tiene en /opt/riscv32i/bin/ los binarios del toolchain se procede a compilar las roms de la carpeta donde esta contenido el fichero make /spu32-master/software/asm/Makefile.
Y el código tiene que quedar así:
Y consume muy pocas puertas lógicas:
Y el código tiene que quedar así:
Código: Seleccionar todo
LINK=/opt/riscv32i/bin/riscv32-unknown-elf-gcc -march=rv32i -O0 -nostdlib -nostartfiles -Tlink.ld -x assembler-with-cpp
DUMP=/opt/riscv32i/bin/riscv32-unknown-elf-objdump
COPY=/opt/riscv32i/bin/riscv32-unknown-elf-objcopy
all: blink-test.dat blink-test.bin uart-echo.dat spi-test.dat trap-test.dat timer-test.dat bootrom.dat bootrom.bin
%.o: %.s
$(LINK) -o $@ $<
%.bin: %.o
$(DUMP) -d $<
$(COPY) -O binary $< $@
%.dat: %.bin
hexdump -v -e '1/1 "%02x" "\n"' $< > $@
clean:
-rm *.o *.bin *.dat