Cache2.mesa
Copyright © 1986 by Xerox Corporation. All rights reserved.
McCreight, April 10, 1986 12:01:44 pm PST
DIRECTORY CacheOps, Core, Dragon, Ports, Random;
Cache2: CEDAR DEFINITIONS
= BEGIN
PI: TYPE = {PhA, PhB, PData, PCmdA, PRejectB, PFaultB, ResetAB};
Cache: PUBLIC PROC [ vm: CacheOps.VirtualMemory, nLines: NAT ← CacheOps.StdLinesPerCache, skipRejects: BOOLFALSE ] RETURNS [ ct: Core.CellType ];
CacheState: TYPE = RECORD [
phALast: BOOLFALSE, -- hack to improve simulation performance
cache: CacheOps.Cache,
randomStream: Random.RandomStream,
cycleNo: INT ← 0,
skipRejects: BOOLFALSE,
rejectCycles: NAT ← 0,
cmdAB: Dragon.PBusCommands ← NoOp,
address, fetchData, storeDataBA: Dragon.HexWord ← 0,
cmdType: {noOp, reset, fetch, store} ← noOp,
pageFault, writeFault, firstBOfCmdBA: BOOLFALSE
];
END.