ruby: specify number of vnets for each protocol

The default value for number of virtual networks is being removed.  Each protocol
should now specify the value it needs.
This commit is contained in:
Nilay Vaish 2015-08-30 12:24:18 -05:00
parent bf8ae288fa
commit a60a93eb05
8 changed files with 12 additions and 1 deletions

View file

@ -260,5 +260,6 @@ def create_system(options, full_system, system, dma_ports, ruby_system):
all_cntrls = all_cntrls + [io_controller]
ruby_system.network.number_of_virtual_networks = 3
topology = create_topology(all_cntrls, options)
return (cpu_sequencers, dir_cntrl_nodes, topology)

View file

@ -236,5 +236,6 @@ def create_system(options, full_system, system, dma_ports, ruby_system):
all_cntrls = all_cntrls + [io_controller]
ruby_system.network.number_of_virtual_networks = 3
topology = create_topology(all_cntrls, options)
return (cpu_sequencers, dir_cntrl_nodes, topology)

View file

@ -189,5 +189,6 @@ def create_system(options, full_system, system, dma_ports, ruby_system):
all_cntrls = all_cntrls + [io_controller]
ruby_system.network.number_of_virtual_networks = 5
topology = create_topology(all_cntrls, options)
return (cpu_sequencers, dir_cntrl_nodes, topology)

View file

@ -241,5 +241,6 @@ def create_system(options, full_system, system, dma_ports, ruby_system):
all_cntrls = all_cntrls + [io_controller]
ruby_system.network.number_of_virtual_networks = 3
topology = create_topology(all_cntrls, options)
return (cpu_sequencers, dir_cntrl_nodes, topology)

View file

@ -269,5 +269,6 @@ def create_system(options, full_system, system, dma_ports, ruby_system):
all_cntrls = all_cntrls + [io_controller]
ruby_system.network.number_of_virtual_networks = 6
topology = create_topology(all_cntrls, options)
return (cpu_sequencers, dir_cntrl_nodes, topology)

View file

@ -258,5 +258,6 @@ def create_system(options, full_system, system, dma_ports, ruby_system):
all_cntrls = all_cntrls + [io_controller]
ruby_system.network.number_of_virtual_networks = 6
topology = create_topology(all_cntrls, options)
return (cpu_sequencers, dir_cntrl_nodes, topology)

View file

@ -125,5 +125,6 @@ def create_system(options, full_system, system, dma_ports, ruby_system):
all_cntrls = l1_cntrl_nodes + dir_cntrl_nodes
ruby_system.network.number_of_virtual_networks = 3
topology = create_topology(all_cntrls, options)
return (cpu_sequencers, dir_cntrl_nodes, topology)

View file

@ -39,7 +39,11 @@ class RubyNetwork(ClockedObject):
topology = Param.String("Not Specified",
"the name of the imported topology module")
number_of_virtual_networks = Param.Int(10, "")
number_of_virtual_networks = Param.Unsigned("Number of virtual networks "
"used by the coherence protocol in use. The on-chip network "
"assumes the protocol numbers vnets starting from 0. Therefore, "
"the number of virtual networks should be one more than the "
"highest numbered vnet in use.")
control_msg_size = Param.Int(8, "")
ruby_system = Param.RubySystem("")