From: jiemingyin Date: Wed, 21 Oct 2020 23:43:05 +0000 (-0400) Subject: mem-garnet: Fix garnet network interface stats X-Git-Tag: develop-gem5-snapshot~588 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=076a0e1f5f432842d5a3b2df2ad1aaf1f94ca927;p=gem5.git mem-garnet: Fix garnet network interface stats Fixing a bug in garnet network interface where flit source delay is computed using both tick and cycle. Change-Id: If21a985f371a818611d13e9cd5ce344dbcf5fb2b Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/36416 Reviewed-by: Srikant Bharadwaj Maintainer: Matthew Poremba Tested-by: kokoro --- diff --git a/src/mem/ruby/network/garnet/NetworkInterface.cc b/src/mem/ruby/network/garnet/NetworkInterface.cc index bbff5b416..e6c22000c 100644 --- a/src/mem/ruby/network/garnet/NetworkInterface.cc +++ b/src/mem/ruby/network/garnet/NetworkInterface.cc @@ -435,7 +435,7 @@ NetworkInterface::flitisizeMessage(MsgPtr msg_ptr, int vnet) net_msg_ptr->getMessageSize()), oPort->bitWidth(), curTick()); - fl->set_src_delay(curTick() - ticksToCycles(msg_ptr->getTime())); + fl->set_src_delay(curTick() - msg_ptr->getTime()); niOutVcs[vc].insert(fl); }