diff options
Diffstat (limited to 'src/mem/ruby/network/simple/SimpleNetwork.py')
-rw-r--r-- | src/mem/ruby/network/simple/SimpleNetwork.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mem/ruby/network/simple/SimpleNetwork.py b/src/mem/ruby/network/simple/SimpleNetwork.py index 6394ee01a..0603546ce 100644 --- a/src/mem/ruby/network/simple/SimpleNetwork.py +++ b/src/mem/ruby/network/simple/SimpleNetwork.py @@ -28,7 +28,9 @@ # Brad Beckmann from m5.params import * +from m5.proxy import * from Network import RubyNetwork +from BasicRouter import BasicRouter class SimpleNetwork(RubyNetwork): type = 'SimpleNetwork' @@ -36,3 +38,9 @@ class SimpleNetwork(RubyNetwork): "default buffer size; 0 indicates infinite buffering"); endpoint_bandwidth = Param.Int(1000, "bandwidth adjustment factor"); adaptive_routing = Param.Bool(False, "enable adaptive routing"); + +class Switch(BasicRouter): + type = 'Switch' + cxx_class = 'Switch' + virt_nets = Param.Int(Parent.number_of_virtual_networks, + "number of virtual networks") |