OVP Peripheral Model: RiscvCLINT

Model Specific Information

This page provides introductory usage information for an Imperas OVP peripheral behavioral model. The page is split into sections providing specific information for this peripheral, including any ports for connecting into a platform, registers, other component parts, and configuration options and general information for peripheral modeling with Imperas OVP.


Open Source Apache 2.0


Risc-V Core Local Interruptor (CLINT). Use the num_harts parameter to specify the number of harts suported (default 1). For each supported hart there will be an MTimerInterruptN and MSWInterruptN net port, plus msipN and mtimecmpN registers implemented, where N is a value from 0..num_harts-1 There is also a single mtime register.


Writes to mtime register are not supported


SiFive Freedom U540-C000 Manual FU540-C000-v1.0.pdf (


The CLINT peripheral model is located in an Imperas/OVP installation at the VLNV: / peripheral / CLINT / 1.0.

Peripheral Instance Parameters

This model accepts the following parameters:

Table : Peripheral Parameters

num_hartsuns32Number of harts implemented
clockMHzdoubleClock rate used in timer calculations (in MHz)

Net Ports

This model has the following net ports:

Table 1: Net Ports

NameTypeMust Be ConnectedDescription
MTimerInterrupt0outputF (False)
MSWInterrupt0outputF (False)

Bus Slave Ports

This model has the following bus slave ports:

Bus Slave Port: port0

Table 2: Bus Slave Port: port0

NameSize (bytes)Must Be ConnectedDescription
port00xc000F (False)

Table 3: Bus Slave Port: port0 Registers:

NameOffsetWidth (bits)DescriptionR/Wis Volatile
msip_msip00x032Hart 0 Machine-Mode Software Interrupt
mtime_mtimecmpLo00x400032Hart 0 Machine-Mode Timer Compare Low
mtime_mtimecmpHi00x400432Hart 0 Machine-Mode Timer Compare High
mtime_mtimeLo0xbff832Machine-Mode mtime Low
mtime_mtimeHi0xbffc32Machine-Mode mtime High

Platforms that use this peripheral component

Peripheral components can be used in many different platforms, including those developed by Imperas or by other users of OVP. You can use this peripheral in your own platforms.

Table 4: Publicly available platforms using peripheral 'CLINT'

Platform NameVendor

Page was generated in 0.0162 seconds