diff options
-rw-r--r-- | README.md | 3 | ||||
-rwxr-xr-x | prog/build.sh | 6 |
2 files changed, 2 insertions, 7 deletions
@@ -11,8 +11,9 @@ The board used in this project is a [Tang Nano 9K](https://wiki.sipeed.com/hardw * `make all` alias for `make simulate`. * `make simulate` to run all the testbenches (sim/testbench_*.v). * `make bitstream` to synthesize, place and route the design and to generate the bitstream. -* `make program` to upload the bitstream to the FPGA. +* `make upload` to upload the bitstream to the FPGA. * `make flash` to flash the bitsream to the FPGA. * `make clean` to clean build files. * `gtkwave build/waveform_*.vcd` to view waveform of corresponding testbench. +* `make rom` to compile source files in prog/src, link and generate rom file. diff --git a/prog/build.sh b/prog/build.sh deleted file mode 100755 index 22557b4..0000000 --- a/prog/build.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh -riscv64-unknown-elf-as -march=rv32i -mabi=ilp32 -o main.o main.s -riscv64-unknown-elf-ld -T link.ld -m elf32lriscv -o main.elf main.o -riscv64-unknown-elf-objcopy -O binary main.elf main.bin -xxd -g 1 -c 1 -p main.bin >main.hex -cp -f main.hex ../rom/rom.hex |