Small Cache Related Types
CacheSpecific: TYPE = REF CacheSpecificRec;
CacheSpecificRec:
TYPE =
RECORD [
pbus: DM.Component ← NIL,
pbusOp: DMPBusModel.PCmdType ← NoOp,
mbus: DM.Component ← NIL,
mbusHasSC: BOOL ← TRUE,
nLines: LineName ← maxLines,
cam: CamType,
ram: RamType
];
maxLines: INT = 64;
CamType: TYPE = ARRAY LineName OF Line;
RamType: TYPE = ARRAY LineName OF DM.Word ← ALL [DM.ZerosWord];
LineName: TYPE = [1..maxLines];
Line:
TYPE =
RECORD [
va: DM.Word,
shared: BOOL,
master: BOOL,
valid: BOOL ← FALSE
];