Merge branch 'main' of https://git.1159.cl/Mario1159/RVSCC
Some checks are pending
continuous-integration/drone/push Build is pending

This commit is contained in:
Mario Romero 2023-02-18 17:48:31 -03:00
commit 4e22943ba7

View File

@ -45,11 +45,13 @@ docker run -it git.1159.cl/mario1159/rvscc
## Build
To build the firmware that will be loaded in the instruction memory execute CMake in the `fw` directory specifying the RISC-V toolchain and build the recipe based in your selected generator (`make` in the following example).
```
cmake -DCMAKE_TOOLCHAIN_FILE=./cmake/toolchain.cmake -Bbuild
make -Cbuild
cmake -Bbuild
cmake --build build
```
This will generate a `sandbox.mem` file in the `/build` folder. To load the file in the simulation make sure to add it to your simulator sources and that the memory path matches the path specifies in the memory module.
## Tests
(TODO)
```
ctest --test-dir build
```
## Benchmark
(TODO)