From: jiemingyin Date: Wed, 21 Oct 2020 23:43:05 +0000 (-0400) Subject: mem-garnet: Fix garnet network interface stats X-Git-Tag: v20.1.0.1~1 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4a435b982b94cfb885e621d7536da6529fca62aa;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 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/37115 Maintainer: Bobby R. Bruce Reviewed-by: Daniel Carvalho Reviewed-by: Jieming Yin --- diff --git a/src/mem/ruby/network/garnet/NetworkInterface.cc b/src/mem/ruby/network/garnet/NetworkInterface.cc index 6dbe0d999..bd5390fc0 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); }