6 $display("Sending Flow Control, quanta = %d, time = %d", fc_len,$time);
12 $display("Sent Flow Control");
14 endtask // SendFlowCtrl
16 task SendPacket_to_fifo36;
17 input [31:0] data_start;
18 input [15:0] data_len;
21 $display("Sending Packet Len=%d, %d", data_len, $time);
23 tx_f36_data <= {2'b0, 1'b0, 1'b1, data_start};
26 while(count < data_len)
28 while(~tx_f36_dst_rdy)
31 tx_f36_data[31:0] = tx_f36_data[31:0] + 32'h0101_0101;
36 while(~tx_f36_dst_rdy)
41 endtask // SendPacket_to_fifo36
45 input [31:0] wait_length;
56 task SendPacketFromFile_f36;
57 input [31:0] data_len;
58 input [31:0] wait_length;
59 input [31:0] wait_time;
63 $display("Sending Packet From File to LL8 Len=%d, %d",data_len,$time);
64 $readmemh("test_packet.mem",pkt_rom );
66 while(~tx_f36_dst_rdy)
68 tx_f36_data <= pkt_rom[0];
73 for(i=1;i<data_len-1;i=i+1)
75 while(~tx_ll_dst_rdy2)
77 tx_ll_data2 <= pkt_rom[i];
81 // Waiter(wait_length);
84 while(~tx_ll_dst_rdy2)
87 tx_ll_data2 <= pkt_rom[data_len-1];