From c4e7e18eeb72ede635ea75314406a19fa532fdd6 Mon Sep 17 00:00:00 2001 From: Nilay Vaish Date: Tue, 20 Aug 2013 11:32:31 -0500 Subject: ruby: add option for number of transitions per cycle The number of transitions per cycle that a controller can carry out is a proxy for the number of ports that a controller has. This value is currently 32 which is way too high. The patch introduces an option for the number of ports and uses this option in the protocol files to set the number of transitions. The default value is being set to 4. None of the se regressions change. Ruby stats for the fs regression change and are being updated. --- configs/ruby/MOESI_hammer.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'configs/ruby/MOESI_hammer.py') diff --git a/configs/ruby/MOESI_hammer.py b/configs/ruby/MOESI_hammer.py index 124845ab8..819834f56 100644 --- a/configs/ruby/MOESI_hammer.py +++ b/configs/ruby/MOESI_hammer.py @@ -107,6 +107,7 @@ def create_system(options, system, piobus, dma_ports, ruby_system): options.allow_atomic_migration, send_evictions = ( options.cpu_type == "detailed"), + transitions_per_cycle = options.ports, ruby_system = ruby_system) cpu_seq = RubySequencer(version = i, @@ -196,6 +197,7 @@ def create_system(options, system, piobus, dma_ports, ruby_system): memBuffer = mem_cntrl, probe_filter_enabled = options.pf_on, full_bit_dir_enabled = options.dir_on, + transitions_per_cycle = options.ports, ruby_system = ruby_system) if options.recycle_latency: @@ -216,6 +218,7 @@ def create_system(options, system, piobus, dma_ports, ruby_system): dma_cntrl = DMA_Controller(version = i, cntrl_id = cntrl_count, dma_sequencer = dma_seq, + transitions_per_cycle = options.ports, ruby_system = ruby_system) exec("ruby_system.dma_cntrl%d = dma_cntrl" % i) -- cgit v1.2.3