MOESI_hammer.py (10917:c38f28fad4c3) MOESI_hammer.py (11019:fc1e41e88fd3)
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;

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

30import math
31import m5
32from m5.objects import *
33from m5.defines import buildEnv
34from Ruby import create_topology
35from Ruby import send_evicts
36
37#
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;

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

30import math
31import m5
32from m5.objects import *
33from m5.defines import buildEnv
34from Ruby import create_topology
35from Ruby import send_evicts
36
37#
38# Note: the L1 Cache latency is only used by the sequencer on fast path hits
38# Declare caches used by the protocol
39#
39#
40class L1Cache(RubyCache):
41 latency = 2
42
40class L1Cache(RubyCache): pass
41class L2Cache(RubyCache): pass
43#
42#
44# Note: the L2 Cache latency is not currently used
43# Probe filter is a cache
45#
44#
46class L2Cache(RubyCache):
47 latency = 10
45class ProbeFilter(RubyCache): pass
48
46
49#
50# Probe filter is a cache, latency is not used
51#
52class ProbeFilter(RubyCache):
53 latency = 1
54
55def define_options(parser):
56 parser.add_option("--allow-atomic-migration", action="store_true",
57 help="allow migratory sharing for atomic only accessed blocks")
58 parser.add_option("--pf-on", action="store_true",
59 help="Hammer: enable Probe Filter")
60 parser.add_option("--dir-on", action="store_true",
61 help="Hammer: enable Full-bit Directory")
62

--- 184 unchanged lines hidden ---
47def define_options(parser):
48 parser.add_option("--allow-atomic-migration", action="store_true",
49 help="allow migratory sharing for atomic only accessed blocks")
50 parser.add_option("--pf-on", action="store_true",
51 help="Hammer: enable Probe Filter")
52 parser.add_option("--dir-on", action="store_true",
53 help="Hammer: enable Full-bit Directory")
54

--- 184 unchanged lines hidden ---