Pt2Pt.py (9100:3caf131d7a95) | Pt2Pt.py (9148:a7a72f42919e) |
---|---|
1# Copyright (c) 2011 Advanced Micro Devices, Inc. 2# 2011 Massachusetts Institute of Technology 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; --- 17 unchanged lines hidden (view full) --- 26# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27# 28# Authors: Brad Beckmann 29# Tushar Krishna 30 31from m5.params import * 32from m5.objects import * 33 | 1# Copyright (c) 2011 Advanced Micro Devices, Inc. 2# 2011 Massachusetts Institute of Technology 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; --- 17 unchanged lines hidden (view full) --- 26# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27# 28# Authors: Brad Beckmann 29# Tushar Krishna 30 31from m5.params import * 32from m5.objects import * 33 |
34from BaseTopology import BaseTopology | 34from BaseTopology import SimpleTopology |
35 | 35 |
36class Pt2Pt(BaseTopology): | 36class Pt2Pt(SimpleTopology): |
37 description='Pt2Pt' 38 39 def __init__(self, controllers): 40 self.nodes = controllers 41 42 def makeTopology(self, options, IntLink, ExtLink, Router): 43 nodes = self.nodes 44 # Create an individual router for each controller, and connect all to all. --- 16 unchanged lines hidden --- | 37 description='Pt2Pt' 38 39 def __init__(self, controllers): 40 self.nodes = controllers 41 42 def makeTopology(self, options, IntLink, ExtLink, Router): 43 nodes = self.nodes 44 # Create an individual router for each controller, and connect all to all. --- 16 unchanged lines hidden --- |