randomization = Param.Bool(False,
"insert random delays on message enqueue times");
clock = '1GHz'
- block_size_bytes = Param.Int(64,
+ block_size_bytes = Param.UInt32(64,
"default cache block size; must be a power of two");
mem_size = Param.MemorySize("total memory size of the system");
stats_filename = Param.String("ruby.stats",
int RubySystem::m_random_seed;
bool RubySystem::m_randomization;
-int RubySystem::m_block_size_bytes;
-int RubySystem::m_block_size_bits;
-uint64 RubySystem::m_memory_size_bytes;
-int RubySystem::m_memory_size_bits;
+uint32_t RubySystem::m_block_size_bytes;
+uint32_t RubySystem::m_block_size_bits;
+uint64_t RubySystem::m_memory_size_bytes;
+uint32_t RubySystem::m_memory_size_bits;
RubySystem::RubySystem(const Params *p)
: ClockedObject(p)
// config accessors
static int getRandomSeed() { return m_random_seed; }
static int getRandomization() { return m_randomization; }
- static int getBlockSizeBytes() { return m_block_size_bytes; }
- static int getBlockSizeBits() { return m_block_size_bits; }
- static uint64 getMemorySizeBytes() { return m_memory_size_bytes; }
- static int getMemorySizeBits() { return m_memory_size_bits; }
+ static uint32_t getBlockSizeBytes() { return m_block_size_bytes; }
+ static uint32_t getBlockSizeBits() { return m_block_size_bits; }
+ static uint64_t getMemorySizeBytes() { return m_memory_size_bytes; }
+ static uint32_t getMemorySizeBits() { return m_memory_size_bits; }
Cycles getTime() const { return curCycle(); }
// Public Methods
// configuration parameters
static int m_random_seed;
static bool m_randomization;
- static int m_block_size_bytes;
- static int m_block_size_bits;
- static uint64 m_memory_size_bytes;
- static int m_memory_size_bits;
+ static uint32_t m_block_size_bytes;
+ static uint32_t m_block_size_bits;
+ static uint64_t m_memory_size_bytes;
+ static uint32_t m_memory_size_bits;
Network* m_network_ptr;
std::vector<MemoryControl *> m_memory_controller_vec;