diff options
author | Nilay Vaish <nilay@cs.wisc.edu> | 2013-02-10 21:43:09 -0600 |
---|---|---|
committer | Nilay Vaish <nilay@cs.wisc.edu> | 2013-02-10 21:43:09 -0600 |
commit | f6e3ab7bd4d6c27fd400c718bfe225b09a3b486b (patch) | |
tree | 2caf127834234cf6e6bcaef279f179d08ce385da /src/mem/ruby/network/garnet/fixed-pipeline/SWallocator_d.cc | |
parent | 9d6d6c67180533464fc839a8a6da182226cb3ee2 (diff) | |
download | gem5-f6e3ab7bd4d6c27fd400c718bfe225b09a3b486b.tar.xz |
ruby: replace Time with Cycles in garnet fixed and flexible
Diffstat (limited to 'src/mem/ruby/network/garnet/fixed-pipeline/SWallocator_d.cc')
-rw-r--r-- | src/mem/ruby/network/garnet/fixed-pipeline/SWallocator_d.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mem/ruby/network/garnet/fixed-pipeline/SWallocator_d.cc b/src/mem/ruby/network/garnet/fixed-pipeline/SWallocator_d.cc index 49f2e8c57..b12c5416c 100644 --- a/src/mem/ruby/network/garnet/fixed-pipeline/SWallocator_d.cc +++ b/src/mem/ruby/network/garnet/fixed-pipeline/SWallocator_d.cc @@ -181,7 +181,8 @@ SWallocator_d::arbitrate_outports() t_flit->advance_stage(ST_, m_router->curCycle()); t_flit->set_vc(outvc); t_flit->set_outport(outport); - t_flit->set_time(m_router->curCycle() + 1); + t_flit->set_time(m_router->curCycle() + Cycles(1)); + m_output_unit[outport]->decrement_credit(outvc); m_router->update_sw_winner(inport, t_flit); m_global_arbiter_activity++; @@ -200,7 +201,8 @@ SWallocator_d::arbitrate_outports() m_input_unit[inport]->set_vc_state(IDLE_, invc, m_router->curCycle()); - m_input_unit[inport]->set_enqueue_time(invc, INFINITE_); + m_input_unit[inport]->set_enqueue_time(invc, + Cycles(INFINITE_)); } else { // Send a credit back // but do not indicate that the VC is idle |