public void InstructionFetchTest_CacheOnly()
        {
            MemoryManagementUnit MMU = new MemoryManagementUnit();

            for(ulong i = 0; i < ((ulong)1<<48); i++)
            {
                MMU.InstructionFetch(i);
                MMU.OperandFetch(i);
                MMU.OperandStore(i);
            }
        }
Example #2
0
 public SimulationRunner(String filePath, ulong addressSpaceSize, ulong numInstructions, uint loadInstructionFrequency, uint storeInstructionFrequency,
     uint testBranchFrequency,
     uint otherInstructionFrequency,
     String logFilePath,
     uint numberOfOperands,
     uint percentBranchTaken,
     ulong distanceFromInstruction)
 {
     ConfigInfo.VirtualAddressSpaceSize = addressSpaceSize;
     ConfigInfo.LoadInstructionFrequency = loadInstructionFrequency;
     ConfigInfo.NumberOfInstructions = numInstructions;
     ConfigInfo.StoreInstructionFrequency = storeInstructionFrequency;
     ConfigInfo.TestBranchFrequency = testBranchFrequency;
     ConfigInfo.OtherInstructionFrequency = otherInstructionFrequency;
     ConfigInfo.LogFilePath = logFilePath;
     ConfigInfo.NumberOfOperands = numberOfOperands;
     ConfigInfo.InstructionFilePath = filePath;
     ConfigInfo.PercentBranchTaken = percentBranchTaken;
     ConfigInfo.DistanceFromInstruction = distanceFromInstruction;
     mmu = new MemoryManagementUnit();
 }