dsp: add bootloader

It works!!
This commit is contained in:
Paul Mathieu
2021-04-17 23:13:20 -07:00
parent a864ca3d7e
commit c12c28fb44
5 changed files with 133 additions and 2 deletions

View File

@@ -8,7 +8,13 @@ LD = ../bin/ld
CFLAGS = -I../wave -I../uart
boot_rom.gen.vhdl: main.o ../uart/uart.o
offset = $(shell printf "%d" 0x1100)
boot_rom.gen.vhdl: bootloader.o ../uart/uart.o
hello.bin: hello.o ../uart/uart.o
synth.bin: main.o ../uart/uart.o
sim_sources = dsp_test.vhdl
sources = boot_rom.gen.vhdl dsp.vhdl ram.vhdl \
@@ -24,6 +30,9 @@ sources = boot_rom.gen.vhdl dsp.vhdl ram.vhdl \
../lab/dsp/au_base_project.runs/synth_1/runme.sh
%.bin:
$(LD) -o $@ --offset $(offset) $^
%.gen.vhdl:
$(LD) -o $@ --vhdl $*.vhdl.in $^
@@ -38,7 +47,7 @@ work-obj93.cf: $(sim_sources) $(sources)
PHONY: bin sim rom clean
clean:
rm -rf *.o *.gen.vhdl *.ghw work-obj93.cf
rm -rf *.o *.gen.vhdl *.ghw work-obj93.cf *.bin
.DELETE_ON_ERROR: