From 076a0e1f5f432842d5a3b2df2ad1aaf1f94ca927 Mon Sep 17 00:00:00 2001 From: jiemingyin Date: Wed, 21 Oct 2020 19:43:05 -0400 Subject: [PATCH] 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 --- src/mem/ruby/network/garnet/NetworkInterface.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.30.2