microprobe.target.uarch.cache.Cache

class Cache(element: MicroarchitectureElement, size: int, level: int, line_size: int, address_size: int, data: bool, ins: bool)[source]

Bases: object

Class to represent a cache.

__init__(element: MicroarchitectureElement, size: int, level: int, line_size: int, address_size: int, data: bool, ins: bool)[source]

Create a Cache object.

Parameters:
  • element (MicroarchitectureElement) – Micrarchitecture element

  • size (int) – Cache size in kilobytes

  • level (int) – Cache level

  • line_size (int) – Line size in bytes

  • address_size (int) – Address size in bits

  • data (bool) – Data cache flag

  • ins (bool) – Instruction cache flag

Returns:

Cache instance

Return type:

Cache

Methods

__init__(element, size, level, line_size, ...)

Create a Cache object.

Attributes

contains_data

Data cache flag (class:~.bool).

contains_instructions

Instruction cache (class:~.bool).

description

Cache description (class:~.str).

element

Corresponding microarchitecture element (MicroarchitectureElement).

level

Cache level (class:~.int).

line_size

Cache line size in bytes (class:~.int).

name

Cache name (class:~.str).

size

Cache size in kilobytes (class:~.int).




property element

Corresponding microarchitecture element (MicroarchitectureElement).

property size

Cache size in kilobytes (class:~.int).

property line_size

Cache line size in bytes (class:~.int).

property contains_data

Data cache flag (class:~.bool).

property contains_instructions

Instruction cache (class:~.bool).

property level

Cache level (class:~.int).

property name

Cache name (class:~.str).

property description

Cache description (class:~.str).