Everything

PerformanceCondition


This class creates conditions of performance measurement. [RH850][E1/E2/E20/Full-spec emulator/IE850A]

[Type]

class PerformanceCondition:
        StartAddress = ""
        StartData = ""
        StartPerformanceType = PerformanceType.Execution
        EndAddress = ""
        EndData = ""
        EndPerformanceType = PerformanceType.Execution
        PerformanceMode = PerformanceMode.MaxCount
        PerformanceItem = PerformanceItem.AllFetchCall

[Variable]

Variable

Description

StartAddress

Specify an address starting performance measurement.

StartData

Specify a data condition (number) of an address starting performance measurement.

This is valid only when the condition of performance measurement is data access.

StartPerformanceType

Specify the type which start performance measurement.

The types that can be specified are shown below.

Type

Description

PerformanceType.Execution

Start/end performance measurement at execution (default)

PerformanceType.Read

Start/end performance measurement at data read

PerformanceType.Write

Start/end performance measurement at data write

PerformanceType.Access

Start/end performance measurement at data access

EndAddress

Specify the type which end performance measurement.

EndData

Specify a data condition (number) of an address ending performance measurement.

This is valid only when the condition of performance measurement is data access.

EndPerformanceType

Specify the type which end performance measurement.

The types that can be specified are shown below.

Type

Description

PerformanceType.Execution

Start/end performance measurement at execution (default)

PerformanceType.Read

Start/end performance measurement at data read

PerformanceType.Write

Start/end performance measurement at data write

PerformanceType.Access

Start/end performance measurement at data access

PerformanceMode

Specify the mode for performance measurement.

The modes that can be specified are shown below.

Mode

Description

PerformanceMode.PassCount

Pass count

PerformanceMode.NewCount

New count

PerformanceMode.MinCount

Minium count

PerformanceMode.MaxCount

Maximum count

PerformanceMode.AddCount

Total count

PerformanceItem

Specify performance measurement items.

The items that can be specified are shown below.

Item

Description

PerformanceItem.FlashRomDataRequest

Flash ROM data request count [RH850G3M, RH850G3K, RH850G3MH, RH850G3KH]

PerformanceItem.CpuFetchRequestHit

Response count for CPU issued instruction fetch request

PerformanceItem.CpuFetchRequest

CPU issued instruction fetch request count

PerformanceItem.DisableInterruptCycle

Interrupt disable cycle of DI/EI

PerformanceItem.NoInterruptCycle

Non-interrupt cycle

PerformanceItem.ClockCycle

Clock cycle

PerformanceItem.StallCycle

Stall cycle of instructions issued to the instruction execution unit [RH850G4MH]

PerformanceItem.ALLInstructionSyncException

All instruction sync exception count

PerformanceItem.AllInstructionAsyncException

All instruction async exception count

PerformanceItem.FetchFELevelInterrupt

FE level interrupt count

PerformanceItem.FetchEILevelInterrupt

EI level interrupt count

PerformanceItem.BranchPredictionMiss

Number of errors in branch prediction for conditional branch instructions (for Bcond and Loop instructions) [RH850G4MH]

PerformanceItem.FetchBcondLoop

Number of executed conditional branch instructions (for Bcond and Loop instructions) [RH850G4MH]

PerformanceItem.FetchBranch

Number of executed branch instructions (except for Bcond, Loop, and exception instructions for which the conditions were not matched) [RH850G4MH]

PerformanceItem.AllFetchBranch

Branch instruction count [RH850G3M, RH850G3K, RH850G3MH, RH850G3KH]

PerformanceItem.AllFetchCall

All instruction count

[Detailed description]

-

"PerformanceCondition" is in class format, and the condition of performance measurement is set in the variable.
In order to create a condition of performance measurement, create an instance, and set conditions for that instance.