### Riscof Plugin for SPIKE RISC-V ISA Simulator

- Using the SPIKE RISC-V ISA Simulator

The [Spike, RISC-V ISA Simulator](https://github.com/riscv/riscv-isa-sim) implements a functional 
model of one or more RISC-V Harts. It can be used as a target for running tests using riscof.


- Config file entry
```
# Name of the Plugin. All entries are case sensitive. Including the name.
[spike_parallel]

#path to the directory where the plugin is present. (required)
pluginpath=<path-to-plugin>

#path where the riscv-isa-sim binary is available. (optional)
#if this value is absent, it is assumed that the binaries are available as executables by default
PATH=<path-to-binaries>

#path to the ISA config file. (required)
ispec=<path-to-isa-config>

#path to the Platform config file. (required)
pspec=<path-to-platform-config>

#number of jobs to spawn in parallel (optional)
jobs=1

#the make command to use while executing the make file. Any of bmake,cmake,pmake,make etc. (optional)
#Default is make
make=make
```

- Export command
```
pwd=pwd;export PYTHONPATH=$pwd:$PYTHONPATH;
```

- This plugin also supports coverage collection using ISAC. The coverage reported might be
  inaccurate due to the missing information in the logs generated by spike. See [here](https://riscv-isac.readthedocs.io/en/stable/python_plugins.html#writing-your-own-plugins) for more details.
