SwitchAllocator.cc (11831:3c38d3e74980) | SwitchAllocator.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 --- 373 unchanged lines hidden (view full) --- 382SwitchAllocator::clear_request_vector() 383{ 384 for (int i = 0; i < m_num_outports; i++) { 385 for (int j = 0; j < m_num_inports; j++) { 386 m_port_requests[i][j] = false; 387 } 388 } 389} | 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 --- 373 unchanged lines hidden (view full) --- 382SwitchAllocator::clear_request_vector() 383{ 384 for (int i = 0; i < m_num_outports; i++) { 385 for (int j = 0; j < m_num_inports; j++) { 386 m_port_requests[i][j] = false; 387 } 388 } 389} |
390 391void 392SwitchAllocator::resetStats() 393{ 394 m_input_arbiter_activity = 0; 395 m_output_arbiter_activity = 0; 396} |
|