MOESI_CMP_directory.py (10092:c0db268f811b) | MOESI_CMP_directory.py (10116:d61a59beb670) |
---|---|
1# Copyright (c) 2006-2007 The Regents of The University of Michigan 2# Copyright (c) 2009 Advanced Micro Devices, Inc. 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions are 7# met: redistributions of source code must retain the above copyright 8# notice, this list of conditions and the following disclaimer; --- 34 unchanged lines hidden (view full) --- 43# Note: the L2 Cache latency is not currently used 44# 45class L2Cache(RubyCache): 46 latency = 15 47 48def define_options(parser): 49 return 50 | 1# Copyright (c) 2006-2007 The Regents of The University of Michigan 2# Copyright (c) 2009 Advanced Micro Devices, Inc. 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions are 7# met: redistributions of source code must retain the above copyright 8# notice, this list of conditions and the following disclaimer; --- 34 unchanged lines hidden (view full) --- 43# Note: the L2 Cache latency is not currently used 44# 45class L2Cache(RubyCache): 46 latency = 15 47 48def define_options(parser): 49 return 50 |
51def create_system(options, system, piobus, dma_ports, ruby_system): | 51def create_system(options, system, dma_ports, ruby_system): |
52 53 if buildEnv['PROTOCOL'] != 'MOESI_CMP_directory': 54 panic("This script requires the MOESI_CMP_directory protocol to be built.") 55 56 cpu_sequencers = [] 57 58 # 59 # The ruby network creation expects the list of nodes in the system to be --- 35 unchanged lines hidden (view full) --- 95 ruby_system = ruby_system) 96 97 cpu_seq = RubySequencer(version = i, 98 icache = l1i_cache, 99 dcache = l1d_cache, 100 ruby_system = ruby_system) 101 102 l1_cntrl.sequencer = cpu_seq | 52 53 if buildEnv['PROTOCOL'] != 'MOESI_CMP_directory': 54 panic("This script requires the MOESI_CMP_directory protocol to be built.") 55 56 cpu_sequencers = [] 57 58 # 59 # The ruby network creation expects the list of nodes in the system to be --- 35 unchanged lines hidden (view full) --- 95 ruby_system = ruby_system) 96 97 cpu_seq = RubySequencer(version = i, 98 icache = l1i_cache, 99 dcache = l1d_cache, 100 ruby_system = ruby_system) 101 102 l1_cntrl.sequencer = cpu_seq |
103 104 if piobus != None: 105 cpu_seq.pio_master_port = piobus.slave 106 cpu_seq.mem_master_port = piobus.slave 107 cpu_seq.pio_slave_port = piobus.master 108 | |
109 exec("ruby_system.l1_cntrl%d = l1_cntrl" % i) | 103 exec("ruby_system.l1_cntrl%d = l1_cntrl" % i) |
104 |
|
110 # 111 # Add controllers and sequencers to the appropriate lists 112 # 113 cpu_sequencers.append(cpu_seq) 114 l1_cntrl_nodes.append(l1_cntrl) 115 116 l2_index_start = block_size_bits + l2_bits 117 --- 76 unchanged lines hidden --- | 105 # 106 # Add controllers and sequencers to the appropriate lists 107 # 108 cpu_sequencers.append(cpu_seq) 109 l1_cntrl_nodes.append(l1_cntrl) 110 111 l2_index_start = block_size_bits + l2_bits 112 --- 76 unchanged lines hidden --- |