MESI_Three_Level.py (13951:b8ec67ca5e42) MESI_Three_Level.py (13980:62a28c423e91)
1# Copyright (c) 2006-2007 The Regents of The University of Michigan
2# Copyright (c) 2009,2015 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

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

258 io_controller.responseFromDir = MessageBuffer(ordered = True)
259 io_controller.responseFromDir.slave = ruby_system.network.master
260 io_controller.requestToDir = MessageBuffer()
261 io_controller.requestToDir.master = ruby_system.network.slave
262
263 all_cntrls = all_cntrls + [io_controller]
264 # Register configuration with filesystem
265 else:
1# Copyright (c) 2006-2007 The Regents of The University of Michigan
2# Copyright (c) 2009,2015 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

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

258 io_controller.responseFromDir = MessageBuffer(ordered = True)
259 io_controller.responseFromDir.slave = ruby_system.network.master
260 io_controller.requestToDir = MessageBuffer()
261 io_controller.requestToDir.master = ruby_system.network.slave
262
263 all_cntrls = all_cntrls + [io_controller]
264 # Register configuration with filesystem
265 else:
266 FileSystemConfig.config_filesystem(options)
267
268 for i in xrange(options.num_clusters):
269 for j in xrange(num_cpus_per_cluster):
270 FileSystemConfig.register_cpu(physical_package_id = 0,
271 core_siblings = xrange(options.num_cpus),
272 core_id = i*num_cpus_per_cluster+j,
273 thread_siblings = [])
274
275 FileSystemConfig.register_cache(level = 0,

--- 31 unchanged lines hidden ---
266 for i in xrange(options.num_clusters):
267 for j in xrange(num_cpus_per_cluster):
268 FileSystemConfig.register_cpu(physical_package_id = 0,
269 core_siblings = xrange(options.num_cpus),
270 core_id = i*num_cpus_per_cluster+j,
271 thread_siblings = [])
272
273 FileSystemConfig.register_cache(level = 0,

--- 31 unchanged lines hidden ---