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/OutVcState_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/OutVcState_d.cc')
-rw-r--r-- | src/mem/ruby/network/garnet/fixed-pipeline/OutVcState_d.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mem/ruby/network/garnet/fixed-pipeline/OutVcState_d.cc b/src/mem/ruby/network/garnet/fixed-pipeline/OutVcState_d.cc index 202a4537e..ee89ec004 100644 --- a/src/mem/ruby/network/garnet/fixed-pipeline/OutVcState_d.cc +++ b/src/mem/ruby/network/garnet/fixed-pipeline/OutVcState_d.cc @@ -37,5 +37,11 @@ OutVcState_d::OutVcState_d(int id, GarnetNetwork_d *network_ptr) m_id = id; m_vc_state = IDLE_; m_time = g_eventQueue_ptr->getTime(); - m_credit_count = m_network_ptr->getBufferSize(); + + // this value is updated later for data VCs by set_credit_count() + m_credit_count = m_network_ptr->getBuffersPerCtrlVC(); + + // (num_flits > 1) is used to determine ctrl vs data vnet + // in NetworkInterface_d.cc + assert(m_credit_count == 1); } |