Configuration - janomach/the-hardisc GitHub Wiki
Pre-compile time
The options in the setting.sv file configure the architecture of the Hardisc and RTL simulation settings.
- SIMULATION - enables functionalities present only in the simulation (not-synthesizable)
- PROT_PIPE - enables pipeline protection
- PROT_INTF - enables interface protection
- SEE_TESTING - enables SEE (fault) insertion logic
Other available options:
Option | Default | Description |
---|---|---|
FIFO_SIZE | 4 | Number of entries in Instruction Fetch Buffer |
BHT_SIZE | 64 | Number of entries in Predictor's BHB |
BTB_SIZE | 16 | Number of entries in Predictor's BTB |
JTB_SIZE | 8 | Number of entries in Predictor's JTB |
SHARED | 20 | Number of address bits not saved in Predictor's xTBs |
BOP_SIZE | 3 | Number of entries in Buffer of Predictions |
RAS_SIZE | 2 | Number of entries in Return Address Stack |
Post-compile time
The following simulation parameters are command-line arguments and can be set post-compilation.
- CLKPERIOD - duration of system clock period in picoseconds
- TIMEOUT - simulation time in the number of clock cycles
- LOGGING - controls logging verbosity (0-3)
- LFILE - file for dumping spike-like trace
- LAT - disables (0) or enables (other than 0) memory latencies
- BIN - binary to execute
- SEE_PROB - probability of SEE insertion
- SEE_GROUP - enables fault insertion in different groups