diff options
author | Nilay Vaish <nilay@cs.wisc.edu> | 2013-03-06 21:53:16 -0600 |
---|---|---|
committer | Nilay Vaish <nilay@cs.wisc.edu> | 2013-03-06 21:53:16 -0600 |
commit | e8802fa127f5a446e708eb9f7ce8509e850bf699 (patch) | |
tree | 7845eb915cdf2718e8264f5811e0be22aaddf342 /src/mem/ruby/network/garnet/fixed-pipeline/GarnetNetwork_d.cc | |
parent | 09b2430e95df4f744a000bac34100eeb9ebcb878 (diff) | |
download | gem5-e8802fa127f5a446e708eb9f7ce8509e850bf699.tar.xz |
ruby: garnet: fixed: implement functional access
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 | 20 |
1 files changed, 20 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 6404eb6ff..f6fcc2514 100644 --- a/src/mem/ruby/network/garnet/fixed-pipeline/GarnetNetwork_d.cc +++ b/src/mem/ruby/network/garnet/fixed-pipeline/GarnetNetwork_d.cc @@ -346,3 +346,23 @@ GarnetNetwork_dParams::create() { return new GarnetNetwork_d(this); } + +uint32_t +GarnetNetwork_d::functionalWrite(Packet *pkt) +{ + uint32_t num_functional_writes = 0; + + for (unsigned int i = 0; i < m_router_ptr_vector.size(); i++) { + num_functional_writes += m_router_ptr_vector[i]->functionalWrite(pkt); + } + + for (unsigned int i = 0; i < m_ni_ptr_vector.size(); ++i) { + num_functional_writes += m_ni_ptr_vector[i]->functionalWrite(pkt); + } + + for (unsigned int i = 0; i < m_link_ptr_vector.size(); ++i) { + num_functional_writes += m_link_ptr_vector[i]->functionalWrite(pkt); + } + + return num_functional_writes; +} |