Skip to content

Commit

Permalink
fixed bug on missing vc on some traffics
Browse files Browse the repository at this point in the history
  • Loading branch information
davidepatti committed Feb 21, 2020
1 parent 3e0f7ca commit c4ab5ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ProcessingElement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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();

Expand Down

0 comments on commit c4ab5ba

Please sign in to comment.