RISC-V: ACLINT Model

The AIA device is part of the RISC-V models. It is available in libTEMUAIA.so.

Loading the Plugin

import AIA

Configuration

@AIA Reference

Properties

Name Type Description

Class

*void

Class object

Component

*void

Pointer to component object if part of component

LocalName

*char

Local name (in component, if applicable)

LoggingFlags

uint64_t

Flags for logging info

Name

*char

Object name

ObjectID

uint64_t

Unique ObjectID.

TimeSource

*void

Time source object

Commands

Name Description

delete

Dispose instance of @AIA

new

Create new instance of AIA

Command new Arguments

Name Type Required Description

name

string

yes

Name of object to create

AIA Reference

Properties

Name Type Description

Class

*void

Class object

Component

*void

Pointer to component object if part of component

LocalName

*char

Local name (in component, if applicable)

LoggingFlags

uint64_t

Flags for logging info

Name

*char

Object name

ObjectID

uint64_t

Unique ObjectID.

TimeSource

*void

Time source object

config.enExtIrq

uint8_t

config.littleEndian

uint8_t

Endianess of memory interface.

config.logInterrupts

uint8_t

config.nCpu

uint8_t

config.traceReads

uint8_t

config.traceWrites

uint8_t

cpu

[temu_IfaceRef; 8]/ <unknown>

Processors

irqCtrl

[temu_IfaceRef; 8]/ <unknown>

Upstream interrupt controllers (e.g. processor)

pnp.bar

uint32_t

pnp.config

uint32_t

Interfaces

Name Type Description

AiaCsrIface

temu::AiaCsrIface

ApbIface

ApbIface

DeviceIface

DeviceIface

IrqClientIface

IrqClientIface

uptree interrupt handlers (e.g. CPUs)

IrqIface

IrqCtrlIface

MemAccessIface

MemAccessIface

RegisterIface

temu::RegisterIface

ResetIface

ResetIface

Ports

Prop Iface Description

irqCtrl

IrqClientIface

irq port

Commands

Name Description

delete

Dispose instance of AIA

raiseExternalIrq

Raise interrupt

Command raiseExternalIrq Arguments

Name Type Required Description

irq

int

yes

Interrupt number

Limitations

No limitations are documented at this point.