MESI_Three_Level.py (10652:e5936c2d53a0) MESI_Three_Level.py (10970:ea8bdb1d9f1e)
1# Copyright (c) 2006-2007 The Regents of The University of Michigan
2# Copyright (c) 2009 Advanced Micro Devices, Inc.
3# Copyright (c) 2013 Mark D. Hill and David A. Wood
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

--- 81 unchanged lines hidden (view full) ---

90 # controller constructors are called before the network constructor
91 #
92 for i in xrange(options.num_clusters):
93 for j in xrange(num_cpus_per_cluster):
94 #
95 # First create the Ruby objects associated with this cpu
96 #
97 l0i_cache = L0Cache(size = '4096B', assoc = 1, is_icache = True,
1# Copyright (c) 2006-2007 The Regents of The University of Michigan
2# Copyright (c) 2009 Advanced Micro Devices, Inc.
3# Copyright (c) 2013 Mark D. Hill and David A. Wood
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

--- 81 unchanged lines hidden (view full) ---

90 # controller constructors are called before the network constructor
91 #
92 for i in xrange(options.num_clusters):
93 for j in xrange(num_cpus_per_cluster):
94 #
95 # First create the Ruby objects associated with this cpu
96 #
97 l0i_cache = L0Cache(size = '4096B', assoc = 1, is_icache = True,
98 start_index_bit = block_size_bits, replacement_policy="LRU")
98 start_index_bit = block_size_bits,
99 replacement_policy = LRUReplacementPolicy())
99
100 l0d_cache = L0Cache(size = '4096B', assoc = 1, is_icache = False,
100
101 l0d_cache = L0Cache(size = '4096B', assoc = 1, is_icache = False,
101 start_index_bit = block_size_bits, replacement_policy="LRU")
102 start_index_bit = block_size_bits,
103 replacement_policy = LRUReplacementPolicy())
102
103 l0_cntrl = L0Cache_Controller(version = i*num_cpus_per_cluster + j,
104 Icache = l0i_cache, Dcache = l0d_cache,
105 send_evictions = send_evicts(options),
106 clk_domain=system.cpu[i].clk_domain,
107 ruby_system = ruby_system)
108
109 cpu_seq = RubySequencer(version = i, icache = l0i_cache,

--- 136 unchanged lines hidden ---
104
105 l0_cntrl = L0Cache_Controller(version = i*num_cpus_per_cluster + j,
106 Icache = l0i_cache, Dcache = l0d_cache,
107 send_evictions = send_evicts(options),
108 clk_domain=system.cpu[i].clk_domain,
109 ruby_system = ruby_system)
110
111 cpu_seq = RubySequencer(version = i, icache = l0i_cache,

--- 136 unchanged lines hidden ---