Build Software

Prerequisites

Make sure you followed the install instructions to [prepare the system]({{< relref “install_instructions#system-preparation” >}}) and install the [compiler toolchain]({{< relref “install_instructions#compiler-toolchain” >}}).

Building software

The following commands build the boot_rom and hello_world binaries:

$ cd $REPO_TOP
$ make -C sw/device SW_DIR=boot_rom clean all
$ make -C sw/device SW_DIR=examples/hello_world clean all

The build process produces a variety of output files.

  • .elf: the linked program in ELF format
  • .bin: the linked program as plain binary
  • .dis: the disassembled program
  • .vmem: a Verilog memory file which can be read by $readmemh() in Verilog code

Please see SW build flow for more details.