The environment variable $REPO_TOP
is the top-level of the git source tree.
Make sure you followed the install instructions to prepare the system and to install the software development tools and Verilator.
Build the simulator and the software and then run the simulation
$ cd $REPO_TOP $ fusesoc --cores-root . sim --build-only lowrisc:systems:top_earlgrey_verilator $ make SIM=1 -C sw/boot_rom clean all $ make SIM=1 -C sw/tests/hello_world clean all $ build/lowrisc_systems_top_earlgrey_verilator_0.1/sim-verilator/Vtop_earlgrey_verilator --rominit=sw/boot_rom/boot_rom.vmem \ $ --flashinit=sw/tests/hello_world/hello_world.vmem
See the getting started for a complete guide.
This description assumes the usage of the Nexys Video board.
Make sure you followed the install instructions to prepare the system and to install the software development tools and Xilinx Vivado.
Build the software and the bitstream and then program the board
$ cd $REPO_TOP $ make -C sw/boot_rom clean all $ make -C sw/tests/hello_world clean all $ . /tools/xilinx/Vivado/2018.3/settings64.sh $ fusesoc --cores-root . build lowrisc:systems:top_earlgrey_nexysvideo $ fusesoc --cores-root . pgm lowrisc:systems:top_earlgrey_nexysvideo:0.1
See the getting started for a complete guide.