CrossbarSwitch.cc (11666:10d59d546ea2) CrossbarSwitch.cc (12071:fd0b4bd769dd)
1/*
2 * Copyright (c) 2008 Princeton University
3 * Copyright (c) 2016 Georgia Institute of Technology
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

--- 96 unchanged lines hidden (view full) ---

105 uint32_t num_functional_writes = 0;
106
107 for (uint32_t i = 0; i < m_switch_buffer.size(); ++i) {
108 num_functional_writes += m_switch_buffer[i]->functionalWrite(pkt);
109 }
110
111 return num_functional_writes;
112}
1/*
2 * Copyright (c) 2008 Princeton University
3 * Copyright (c) 2016 Georgia Institute of Technology
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

--- 96 unchanged lines hidden (view full) ---

105 uint32_t num_functional_writes = 0;
106
107 for (uint32_t i = 0; i < m_switch_buffer.size(); ++i) {
108 num_functional_writes += m_switch_buffer[i]->functionalWrite(pkt);
109 }
110
111 return num_functional_writes;
112}
113
114void
115CrossbarSwitch::resetStats()
116{
117 m_crossbar_activity = 0;
118}