GRLIB L4STAT Model

The L4STAT device is part of the GRLIB IP library. It is available in libTEMUL4STAT.so.

Loading the Plugin

import L4STAT

Configuration

@L4STAT Reference

Properties

Name Type Description

Class

*void

Class object

Component

*void

Pointer to component object if part of component

LoggingFlags

uint64_t

Flags for logging info

Name

*char

Object name

TimeSource

*void

Time source object

Commands

Name Description

delete

Dispose instance of @L4STAT

new

Create new instance of L4STAT

Command new Arguments

Name Type Required Description

name

string

yes

Name of object to create

L4STAT Reference

Properties

Name Type Description

CCTRL

[uint32_t; 16]

Counter control register

CSVAL

[uint32_t; 16]

Counter max/latch register

CVAL

[uint32_t; 16]

Counter value register

Class

*void

Class object

Component

*void

Pointer to component object if part of component

LoggingFlags

uint64_t

Flags for logging info

Name

*char

Object name

TSTAMP

uint32_t

Timestamp register

TimeSource

*void

Time source object

apb.pnp.bar

uint32_t

apb.pnp.config

uint32_t

Interfaces

Name Type Description

ApbIface

ApbIface

DeviceIface

DeviceIface

MemAccessIface

MemAccessIface

ResetIface

ResetIface

Registers

Register support is currently experimental!

Register Bank default

Register CCTRL
Description

Counter control register

Reset value

0x00000000

Warm reset mask

0x00000000

Field Mask Reset Description

-

-

-

-

Register CSVAL
Description

Counter max/latch register

Reset value

0x00000000

Warm reset mask

0x00000000

Field Mask Reset Description

-

-

-

-

Register CVAL
Description

Counter value register

Reset value

0x00000000

Warm reset mask

0x00000000

Field Mask Reset Description

-

-

-

-

Register TSTAMP
Description

Timestamp register

Reset value

0x00000000

Warm reset mask

0x00000000

Field Mask Reset Description

-

-

-

-

Commands

Name Description

delete

Dispose instance of L4STAT

Limitations

The L4STAT device is non-functional, providing only registers and PNP data. Statistics is thus not collected by the device.

The end user is expected to write to registers manually, in order to inject statistics data.