From caab6fb968c866c24b31c3dc6f5c3c1a3a2a87b8 Mon Sep 17 00:00:00 2001 From: Colin Schmidt Date: Wed, 5 Aug 2020 11:27:14 -0700 Subject: [PATCH] Add run-binary-hex docs --- docs/Simulation/Software-RTL-Simulation.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/Simulation/Software-RTL-Simulation.rst b/docs/Simulation/Software-RTL-Simulation.rst index 93e4dcc6..28ae223e 100644 --- a/docs/Simulation/Software-RTL-Simulation.rst +++ b/docs/Simulation/Software-RTL-Simulation.rst @@ -150,6 +150,12 @@ The ``.hex`` file should be a text file with a hexadecimal number on each line. Each line uses little-endian order, so this file would produce the bytes "ef be ad de 01 23". ``LOADMEM_ADDR`` specifies which address in memory (in hexadecimal) to write the first byte to. The default is 0x81000000. +A special target that facilitates automatically generating a hex file for an entire elf RISC-V exectuable and then running the simulator with the appropriate flags is also available. + +.. code-block:: shell + + make run-binary-hex BINARY=test.riscv + Generating Waveforms -----------------------