diff options
author | Tushar Krishna <tushar@csail.mit.edu> | 2011-02-06 22:14:16 -0800 |
---|---|---|
committer | Tushar Krishna <tushar@csail.mit.edu> | 2011-02-06 22:14:16 -0800 |
commit | 59163f824c71e4290399be7c1c4b6e70b799a388 (patch) | |
tree | 77942dd87d46e09326f1239cc4147f9218829d9f /src/mem/ruby/network/garnet/fixed-pipeline/GarnetNetwork_d.cc | |
parent | afd754dc0d644f989e8aa00884203ce0e4143d47 (diff) | |
download | gem5-59163f824c71e4290399be7c1c4b6e70b799a388.tar.xz |
garnet: separate data and ctrl VCs
Separate data VCs and ctrl VCs in garnet, as ctrl VCs have 1 buffer per VC,
while data VCs have > 1 buffers per VC. This is for correct power estimations.
Diffstat (limited to 'src/mem/ruby/network/garnet/fixed-pipeline/GarnetNetwork_d.cc')
-rw-r--r-- | src/mem/ruby/network/garnet/fixed-pipeline/GarnetNetwork_d.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mem/ruby/network/garnet/fixed-pipeline/GarnetNetwork_d.cc b/src/mem/ruby/network/garnet/fixed-pipeline/GarnetNetwork_d.cc index 216234bcb..d11054abf 100644 --- a/src/mem/ruby/network/garnet/fixed-pipeline/GarnetNetwork_d.cc +++ b/src/mem/ruby/network/garnet/fixed-pipeline/GarnetNetwork_d.cc @@ -107,6 +107,12 @@ GarnetNetwork_d::init() for (int i = 0; i < m_router_ptr_vector.size(); i++) { m_router_ptr_vector[i]->init(); } + + m_vnet_type.resize(m_virtual_networks); + for (int i = 0; i < m_vnet_type.size(); i++) { + m_vnet_type[i] = CTRL_VNET_; + // DATA_VNET_ updated later based on traffic + } } GarnetNetwork_d::~GarnetNetwork_d() |