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:
- Returns:
Cache instance
- Return type:
Methods
__init__
(element, size, level, line_size, ...)Create a Cache object.
Attributes
Data cache flag (class:~.bool).
Instruction cache (class:~.bool).
Cache description (class:~.str).
Corresponding microarchitecture element (
MicroarchitectureElement
).Cache level (class:~.int).
Cache line size in bytes (class:~.int).
Cache name (class:~.str).
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).