microprobe.target.uarch.cache.SetAssociativeCache¶
-
class
SetAssociativeCache(element, size, level, line_size, address_size, data, ins, ways)[source]¶ Bases:
microprobe.target.uarch.cache.CacheClass to represent a set-associative cache.
-
__init__(element, size, level, line_size, address_size, data, ins, ways)[source]¶ Create a SetAssociativeCache object.
- Parameters
- Returns
Cache instance
- Return type
Methods
__init__(element, size, level, line_size, …)Create a SetAssociativeCache object.
congruence_class(value)Return the congruence class for a given value.
lines()Number of lines (class:~.int).
offset(value)- param value
sets()Number of cache sets (class:~.int).
setsways()Return the list of sets and ways.
Attributes
Number of bits per line (class:~.int).
Number of offset bits (class:~.int).
Number of bits per set (class:~.int).
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).
Number of offset bits (class:~.int).
Number of bits per way (class:~.int).
Cache size in kilobytes (class:~.int).
Number of cache ways (class:~.int).
-
property
ways¶ Number of cache ways (class:~.int).
-
property
bits_x_set¶ Number of bits per set (class:~.int).
-
property
bits_x_lines¶ Number of bits per line (class:~.int).
-
property
bits_x_offset¶ Number of offset bits (class:~.int).
-
property
set_ways_bits¶ Number of bits per way (class:~.int).
-
property
offset_bits¶ Number of offset bits (class:~.int).
-
setsways()[source]¶ Return the list of sets and ways.
- Returns
List of available sets * ways
- Return type
listofint
-
property
contains_data¶ Data cache flag (class:~.bool).
-
property
contains_instructions¶ Instruction cache (class:~.bool).
-
property
description¶ Cache description (class:~.str).
-
property
element¶ Corresponding microarchitecture element (
MicroarchitectureElement).
-
property
level¶ Cache level (class:~.int).
-
property
line_size¶ Cache line size in bytes (class:~.int).
-
property
name¶ Cache name (class:~.str).
-
property
size¶ Cache size in kilobytes (class:~.int).
-