From c4ab5ba4cf832217186d05cf67fe6aa9f9922dde Mon Sep 17 00:00:00 2001 From: davidepatti Date: Fri, 21 Feb 2020 17:32:42 +0100 Subject: [PATCH] fixed bug on missing vc on some traffics --- src/ProcessingElement.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ProcessingElement.cpp b/src/ProcessingElement.cpp index 1355ad33..d4cec96e 100644 --- a/src/ProcessingElement.cpp +++ b/src/ProcessingElement.cpp @@ -268,6 +268,7 @@ Packet ProcessingElement::trafficULocal() p.timestamp = sc_time_stamp().to_double() / GlobalParams::clock_period_ps; p.size = p.flit_left = getRandomSize(); + p.vc_id = randInt(0,GlobalParams::n_virtual_channels-1); return p; } @@ -412,6 +413,7 @@ Packet ProcessingElement::trafficBitReversal() p.src_id = local_id; p.dst_id = dnode; + p.vc_id = randInt(0,GlobalParams::n_virtual_channels-1); p.timestamp = sc_time_stamp().to_double() / GlobalParams::clock_period_ps; p.size = p.flit_left = getRandomSize();