#ifndef SYSTEM_H #define SYSTEM_H #include #include #include #include const int WORD_SIZE=4; //the word size in bytes const long int NUM_CYCLES = 1000000; //number of clock cycles to simulate //const int NUM_PES=4; //max number of processing elements in the system const int BLOCK_SIZE=8; //default size of the block in words const int C=2; //the counter value as in protocol specifications //instruction probabilities const float ARITH_PROB=0.46f; //the prob that the next instr arithmetic (add, subtract, compare) const float BRANCH_PROB=0.19f; //the prob that the next instr is a branch const float LOAD_PROB=0.26f; //the prob that the next instr is a load const float STORE_PROB=0.09f; //the prob that the next instr is a store const float DATA_PROB=0.05f; //the percentage of blocks that are data const float NEXT_ADDR_PROB=0.90f; //the prob that the next address will be //the current address + 1 const int MEM_OFFSET=500; //the mem offset if not next address const int OFFSET_RANGE=500; //the range of the offset // Direct mapped cache!! // // // #endif