MESI_Two_Level.py (10529:05b5a6cf3521) MESI_Two_Level.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 = 3
40class L1Cache(RubyCache): pass
41class L2Cache(RubyCache): pass
42
42
43#
44# Note: the L2 Cache latency is not currently used
45#
46class L2Cache(RubyCache):
47 latency = 15
48
49def define_options(parser):
50 return
51
52def create_system(options, full_system, system, dma_ports, ruby_system):
53
54 if buildEnv['PROTOCOL'] != 'MESI_Two_Level':
55 fatal("This script requires the MESI_Two_Level protocol to be built.")
56

--- 166 unchanged lines hidden ---
43def define_options(parser):
44 return
45
46def create_system(options, full_system, system, dma_ports, ruby_system):
47
48 if buildEnv['PROTOCOL'] != 'MESI_Two_Level':
49 fatal("This script requires the MESI_Two_Level protocol to be built.")
50

--- 166 unchanged lines hidden ---