summaryrefslogtreecommitdiff
path: root/src/mem/ruby/network/garnet/fixed-pipeline/GarnetNetwork_d.hh
diff options
context:
space:
mode:
authorTushar Krishna <tushar@csail.mit.edu>2011-05-21 00:40:57 -0400
committerTushar Krishna <tushar@csail.mit.edu>2011-05-21 00:40:57 -0400
commitfc1d2d967924f9e8116d156550786ed0b527d1e3 (patch)
tree3377418687c629dac97afad18a52f29c69b89e0f /src/mem/ruby/network/garnet/fixed-pipeline/GarnetNetwork_d.hh
parentde97d759658253ae0b7b49ff4b541b49a429b37b (diff)
downloadgem5-fc1d2d967924f9e8116d156550786ed0b527d1e3.tar.xz
garnet: use vnet_type from protocol to decide buffer depths
The virtual channels within "response" vnets are made buffers_per_data_vc deep (default=4), while virtual channels within other vnets are made buffers_per_ctrl_vc deep (default = 1). This is for accurate power estimates.
Diffstat (limited to 'src/mem/ruby/network/garnet/fixed-pipeline/GarnetNetwork_d.hh')
-rw-r--r--src/mem/ruby/network/garnet/fixed-pipeline/GarnetNetwork_d.hh10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/mem/ruby/network/garnet/fixed-pipeline/GarnetNetwork_d.hh b/src/mem/ruby/network/garnet/fixed-pipeline/GarnetNetwork_d.hh
index f2b3bd4ef..2030bb4f0 100644
--- a/src/mem/ruby/network/garnet/fixed-pipeline/GarnetNetwork_d.hh
+++ b/src/mem/ruby/network/garnet/fixed-pipeline/GarnetNetwork_d.hh
@@ -73,13 +73,6 @@ class GarnetNetwork_d : public BaseGarnetNetwork
void printConfig(std::ostream& out) const;
void print(std::ostream& out) const;
- void
- set_vnet_type(int vc, VNET_type vnet_type)
- {
- int vnet = vc/getVCsPerVnet();
- m_vnet_type[vnet] = vnet_type;
- }
-
VNET_type
get_vnet_type(int vc)
{
@@ -124,7 +117,8 @@ class GarnetNetwork_d : public BaseGarnetNetwork
bool isReconfiguration);
private:
- void checkNetworkAllocation(NodeID id, bool ordered, int network_num);
+ void checkNetworkAllocation(NodeID id, bool ordered, int network_num,
+ std::string vnet_type);
GarnetNetwork_d(const GarnetNetwork_d& obj);
GarnetNetwork_d& operator=(const GarnetNetwork_d& obj);