ParaNut SystemC Model
A SystemC Model of the ParaNut architecture
Execution Unit

Execution Unit options. More...

Collaboration diagram for Execution Unit:

Execution Unit options...

#define CFG_EXU_M_EXTENSION   1
 RISC-V M-Extension. More...
 
#define CFG_EXU_A_EXTENSION   1
 RISC-V A-Extension. More...
 
#define CFG_PRIV_LEVELS   1
 Privilege Mode options. More...
 
#define CFG_EXU_PERFCOUNT_ENABLE   1
 Performance counter enable. More...
 
#define CFG_EXU_PERFCOUNTER_BITS   40
 Performance counter register width. More...
 
#define CFG_EXU_PERFCOUNTERS_LD   3
 Performance counter number of registers as log2. More...
 
#define CFG_EXU_PERFCOUNTERS   (1 << CFG_EXU_PERFCOUNTERS_LD)
 Performance counter number of registers (derived). More...
 

Detailed Description

Execution Unit options.

Macro Definition Documentation

◆ CFG_EXU_A_EXTENSION

#define CFG_EXU_A_EXTENSION   1

RISC-V A-Extension.

Defines if the RISC-V A-Extension hardw

Parameters
0- extension disabled
1- extension enabled

◆ CFG_EXU_M_EXTENSION

#define CFG_EXU_M_EXTENSION   1

RISC-V M-Extension.

Defines if the RISC-V M-Extension hardware is enabled/disabled.

Parameters
0- extension disabled
1- extension enabled

◆ CFG_EXU_PERFCOUNT_ENABLE

#define CFG_EXU_PERFCOUNT_ENABLE   1

Performance counter enable.

Defines if the hardware performance counters are enabled/disabled.

Parameters
0- no performance counters
1- performance counter and 64bit cycle counter is added

◆ CFG_EXU_PERFCOUNTER_BITS

#define CFG_EXU_PERFCOUNTER_BITS   40

Performance counter register width.

Defines the number of bits for the hardware performance counters.

Warning
Has to be between 33 and 64.

◆ CFG_EXU_PERFCOUNTERS

#define CFG_EXU_PERFCOUNTERS   (1 << CFG_EXU_PERFCOUNTERS_LD)

Performance counter number of registers (derived).

◆ CFG_EXU_PERFCOUNTERS_LD

#define CFG_EXU_PERFCOUNTERS_LD   3

Performance counter number of registers as log2.

Defines the log2 of the number of hardware performance counters.

Warning
3 is the only supported value for now (see exu.cpp for implemented counters)

◆ CFG_PRIV_LEVELS

#define CFG_PRIV_LEVELS   1

Privilege Mode options.

Defines the RISC-V privilege mode capability of the ParaNut. Do NOT use any other value!

Parameters
1- only M-Mode is available
2- M- and U-Mode are available
3- M-, S- and U-Mode available, enable the Memory Management Unit (MMU)