cluster.py (3646:66853026ad52) cluster.py (4876:a18cedc19da5)
1# Copyright (c) 2006 The Regents of The University of Michigan
1# Copyright (c) 2006-2007 The Regents of The University of Michigan
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright
9# notice, this list of conditions and the following disclaimer in the

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

46parser.add_option("-m", "--maxtick", type="int")
47parser.add_option("-c", "--numclusters",
48 help="Number of clusters", type="int")
49parser.add_option("-n", "--numcpus",
50 help="Number of cpus in total", type="int")
51parser.add_option("-f", "--frequency",
52 default = "1GHz",
53 help="Frequency of each CPU")
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright
9# notice, this list of conditions and the following disclaimer in the

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

46parser.add_option("-m", "--maxtick", type="int")
47parser.add_option("-c", "--numclusters",
48 help="Number of clusters", type="int")
49parser.add_option("-n", "--numcpus",
50 help="Number of cpus in total", type="int")
51parser.add_option("-f", "--frequency",
52 default = "1GHz",
53 help="Frequency of each CPU")
54parser.add_option("-p", "--protocol",
55 default="moesi",
56 help="The coherence protocol to use for the L1'a (i.e. MOESI, MOSI)")
57parser.add_option("--l1size",
58 default = "32kB")
59parser.add_option("--l1latency",
60 default = 1)
61parser.add_option("--l2size",
62 default = "256kB")
63parser.add_option("--l2latency",
64 default = 10)

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

136# Base L1 Cache Definition
137# ====================
138
139class L1(BaseCache):
140 latency = options.l1latency
141 block_size = 64
142 mshrs = 12
143 tgts_per_mshr = 8
54parser.add_option("--l1size",
55 default = "32kB")
56parser.add_option("--l1latency",
57 default = 1)
58parser.add_option("--l2size",
59 default = "256kB")
60parser.add_option("--l2latency",
61 default = 10)

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

133# Base L1 Cache Definition
134# ====================
135
136class L1(BaseCache):
137 latency = options.l1latency
138 block_size = 64
139 mshrs = 12
140 tgts_per_mshr = 8
144 protocol = CoherenceProtocol(protocol=options.protocol)
145
146# ----------------------
147# Base L2 Cache Definition
148# ----------------------
149
150class L2(BaseCache):
151 block_size = 64
152 latency = options.l2latency

--- 151 unchanged lines hidden ---
141
142# ----------------------
143# Base L2 Cache Definition
144# ----------------------
145
146class L2(BaseCache):
147 block_size = 64
148 latency = options.l2latency

--- 151 unchanged lines hidden ---