BaseTopology.py (9148:a7a72f42919e) BaseTopology.py (9862:54d6728d99cf)
1# Copyright (c) 2012 Advanced Micro Devices, Inc.
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

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

33
34 def __init__(self):
35 """ When overriding place any objects created in
36 configs/ruby/<protocol>.py that are needed in
37 makeTopology (below) here. The minimum is usually
38 all of the controllers created in the above file.
39 """
40
1# Copyright (c) 2012 Advanced Micro Devices, Inc.
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

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

33
34 def __init__(self):
35 """ When overriding place any objects created in
36 configs/ruby/<protocol>.py that are needed in
37 makeTopology (below) here. The minimum is usually
38 all of the controllers created in the above file.
39 """
40
41 def makeTopology(self, options, IntLink, ExtLink, Router):
41 def makeTopology(self, options, network, IntLink, ExtLink, Router):
42 """ Called from configs/ruby/Ruby.py
43 The return value is ( list(Router), list(IntLink), list(ExtLink))
44 The API of this function cannot change when subclassing!!
45 Any additional information needed to create this topology should
46 be passed into the constructor when it's instantiated in
47 configs/ruby/<protocol>.py
48 """
49 m5.util.fatal("BaseTopology should have been overridden!!")

--- 17 unchanged lines hidden ---
42 """ Called from configs/ruby/Ruby.py
43 The return value is ( list(Router), list(IntLink), list(ExtLink))
44 The API of this function cannot change when subclassing!!
45 Any additional information needed to create this topology should
46 be passed into the constructor when it's instantiated in
47 configs/ruby/<protocol>.py
48 """
49 m5.util.fatal("BaseTopology should have been overridden!!")

--- 17 unchanged lines hidden ---