Cmake support

This commit is contained in:
Màrius Montón 2021-04-25 19:07:01 +02:00
parent a99ac59096
commit da4ebcbe6c
1 changed files with 19 additions and 0 deletions

View File

@ -125,6 +125,25 @@ And then you can execute the simulator:
$ ./RISCV_TLM asm/BasicLoop.hex
```
### Using cmake
It is possible to use cmake:
```
mkdir build
cd build
cmake ..
make
```
note that SystemC must be compiled with cmake:
```
cd <systemc directory>
mkdir build
cd build
cmake ../ -DCMAKE_CXX_STANDARD=17
make
```
### Arguments
-L loglevel: 3 for detailed (INFO) log, 0 to ERROR log level