diff --git a/Makefile b/Makefile index 3651e8c..69180e2 100644 --- a/Makefile +++ b/Makefile @@ -48,5 +48,5 @@ clean: ${Q}make ${MAKEOPTS} -C system clean ${Q}make ${MAKEOPTS} -C boot_code clean -upload: +upload: boot_code/gnome_sort.txt make -C system upload diff --git a/boot_code/Makefile b/boot_code/Makefile index 888dcbc..4fa7926 100644 --- a/boot_code/Makefile +++ b/boot_code/Makefile @@ -11,6 +11,7 @@ all: ${BINARIES} brainfuck_interpreted.bin: brainfuck_interpreter_v0.asm hello_9086.bf.asm dos_layer.asm brainfuck_compiled.bin: brainfuck_compiler_v1.asm hello_9086.bf.asm dos_layer.asm brainfuck_mandelbrot.bin: brainfuck_compiler_v1.asm mandelbrot.bf.asm dos_layer.asm +colored_led.bin: dos_layer.asm fibonacci.bin: helpers.asm gnome_sort.bin: helpers.asm diff --git a/system/Makefile b/system/Makefile index 45d13f7..fc65db4 100644 --- a/system/Makefile +++ b/system/Makefile @@ -75,7 +75,7 @@ simplified_ucode.txt:ucode.txt ${Q}tr 'x' '0' < $^ | sed 's@//.*@@' | grep ^@ |sort | sed 's/.* .//;s/ $$//' | tr -d _ > $@ #TODO: we are relying on yosys to trim the input program txt file and hope its enough for the whole program... -synth_ecp5.json: ${SOURCES} ${TOP_LEVEL_SOURCE} fpga_config/${FPGA_BOARD}/fpga_top.v ${EXTRA_SYNTHESIS_SOURCES} ${INCLUDES} ../boot_code/colored_led.txt simplified_ucode.txt +synth_ecp5.json: ${SOURCES} ${TOP_LEVEL_SOURCE} fpga_config/${FPGA_BOARD}/fpga_top.v ${EXTRA_SYNTHESIS_SOURCES} ${INCLUDES} ../boot_code/gnome_sort.txt simplified_ucode.txt ${QUIET_YOSYS} ${Q} yosys -q -D BUILTIN_RAM=512 -D NOT_FULL -p 'read -sv '"${SOURCES} ${TOP_LEVEL_SOURCE} fpga_config/${FPGA_BOARD}/fpga_top.v ${EXTRA_SYNTHESIS_SOURCES} ; synth_ecp5 -json $@ -top fpga_top"