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; --- 70 unchanged lines hidden (view full) --- 79 # 80 l1i_cache = L1Cache(size = options.l1i_size, 81 assoc = options.l1i_assoc, 82 start_index_bit = block_size_bits) 83 l1d_cache = L1Cache(size = options.l1d_size, 84 assoc = options.l1d_assoc, 85 start_index_bit = block_size_bits) 86 |
87 l1_cntrl = L1Cache_Controller(version = i, 88 cntrl_id = cntrl_count, 89 L1IcacheMemory = l1i_cache, 90 L1DcacheMemory = l1d_cache, 91 l2_select_num_bits = l2_bits) 92 |
93 cpu_seq = RubySequencer(version = i, 94 icache = l1i_cache, 95 dcache = l1d_cache, 96 physMemPort = system.physmem.port, 97 physmem = system.physmem) 98 |
99 l1_cntrl.sequencer = cpu_seq 100 |
101 if piobus != None: 102 cpu_seq.pio_port = piobus.port 103 |
104 exec("system.l1_cntrl%d = l1_cntrl" % i) 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 cntrl_count += 1 --- 74 unchanged lines hidden --- |