[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] r10749 - gnuradio/trunk/usrp2/fpga/simple_gemac
From: |
matt |
Subject: |
[Commit-gnuradio] r10749 - gnuradio/trunk/usrp2/fpga/simple_gemac |
Date: |
Thu, 2 Apr 2009 17:30:32 -0600 (MDT) |
Author: matt
Date: 2009-04-02 17:30:31 -0600 (Thu, 02 Apr 2009)
New Revision: 10749
Modified:
gnuradio/trunk/usrp2/fpga/simple_gemac/eth_tasks.v
Log:
simulate a hiccup in the filling of the fifo. If long enough, will cause a tx
underrun.
Modified: gnuradio/trunk/usrp2/fpga/simple_gemac/eth_tasks.v
===================================================================
--- gnuradio/trunk/usrp2/fpga/simple_gemac/eth_tasks.v 2009-04-02 21:30:48 UTC
(rev 10748)
+++ gnuradio/trunk/usrp2/fpga/simple_gemac/eth_tasks.v 2009-04-02 23:30:31 UTC
(rev 10749)
@@ -107,8 +107,21 @@
end
endtask // SendPacketFromFile
+task Waiter;
+ input [31:0] wait_length;
+ begin
+ tx_ll_src_rdy2 <= 0;
+ repeat(wait_length)
+ @(posedge clk);
+ tx_ll_src_rdy2 <= 1;
+ end
+endtask // Waiter
+
task SendPacketFromFile_ll8;
input [31:0] data_len;
+ input [31:0] wait_length;
+ input [31:0] wait_time;
+
integer count;
begin
$display("Sending Packet From File to LL8 Len=%d, %d",data_len,$time);
@@ -129,6 +142,8 @@
tx_ll_data2 <= pkt_rom[i];
tx_ll_sof2 <= 0;
@(posedge clk);
+ if(i==wait_time)
+ Waiter(wait_length);
end
while(~tx_ll_dst_rdy2)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Commit-gnuradio] r10749 - gnuradio/trunk/usrp2/fpga/simple_gemac,
matt <=