Skip to content

Commit

Permalink
Refactoring adjusts
Browse files Browse the repository at this point in the history
  • Loading branch information
edualvss committed Jan 7, 2017
1 parent 4241c54 commit 2676a44
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Simulator/FlowGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,9 @@ void FlowGenerator::p_SEND() {
// current flow to the value previously calculated value. Then, it inserts
// wait cycles until cycle_to_send_next_pck is reached
cycleToSendNextPacket += flow.idle;
if( cycleToSendNextPacket < i_CLK_CYCLES.read() ) {
std::cout << std::endl << "FG " << FG_ID << " under congestion to send packets.";
}
// ZEFERINO
while ( i_CLK_CYCLES.read() < cycleToSendNextPacket) wait(); // Wait until the cycle to send the packet

Expand Down
1 change: 0 additions & 1 deletion Simulator/TerminalInstrumentation.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ class TerminalInstrumentation : public SoCINModule {
}

u_FIFO_OUT = new UnboundedFifo("FifoOutTG"); // Unbounded Fifo Packet Source
u_FIFO_OUT->id = TG_ID;
u_FIFO_OUT->i_CLK(i_CLK);
u_FIFO_OUT->i_RST(i_RST);
u_FIFO_OUT->i_DATA_IN(w_DATA_SEND);
Expand Down

0 comments on commit 2676a44

Please sign in to comment.