LIBRARY  |  COMPANIES |   PLATFORMS |   PROCESSORS |   PERIPHERALS
RiscvCLINT



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.

Licensing

Open Source Apache 2.0

Description

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.

Limitations

Writes to mtime register are not supported

Reference

SiFive Freedom U540-C000 Manual FU540-C000-v1.0.pdf (https://www.sifive.com/documentation/chips/freedom-u540-c000-manual)

Location

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



Peripheral Instance Parameters

This model accepts the following parameters:

Table : Peripheral Parameters

NameTypeDescription
num_hartsuns32Number of harts implemented
clockMHzfloatClock 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
RiscvRV32FreeRTOSimperas.ovpworld.org
virtioriscv.ovpworld.org
FU540sifive.ovpworld.org
S51CCsifive.ovpworld.org



RiscVperipherals
Page was generated in 0.0187 seconds