From 62a93f0bf03385c5ed298b740162b06022f2e2ee Mon Sep 17 00:00:00 2001 From: Nilay Vaish Date: Fri, 28 Jun 2013 21:36:11 -0500 Subject: ruby: check for compatibility between mem size and num dirs The configuration scripts provided for ruby assume that the available physical memory is equally distributed amongst the directory controllers. But there is no check to ensure this assumption has been adhered to. This patch adds the required check. --- configs/ruby/MI_example.py | 1 + 1 file changed, 1 insertion(+) (limited to 'configs/ruby/MI_example.py') diff --git a/configs/ruby/MI_example.py b/configs/ruby/MI_example.py index 6bbd35ea7..896a01a61 100644 --- a/configs/ruby/MI_example.py +++ b/configs/ruby/MI_example.py @@ -107,6 +107,7 @@ def create_system(options, system, piobus, dma_ports, ruby_system): phys_mem_size = sum(map(lambda mem: mem.range.size(), system.memories.unproxy(system))) + assert(phys_mem_size % options.num_dirs == 0) mem_module_size = phys_mem_size / options.num_dirs # Run each of the ruby memory controllers at a ratio of the frequency of -- cgit v1.2.3