commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r9055 - gnuradio/branches/developers/gnychis/fpga/usrp


From: gnychis
Subject: [Commit-gnuradio] r9055 - gnuradio/branches/developers/gnychis/fpga/usrp/fpga/inband_lib/testbenches
Date: Wed, 30 Jul 2008 11:38:33 -0600 (MDT)

Author: gnychis
Date: 2008-07-30 11:38:31 -0600 (Wed, 30 Jul 2008)
New Revision: 9055

Modified:
   
gnuradio/branches/developers/gnychis/fpga/usrp/fpga/inband_lib/testbenches/tb_timestamps.v
Log:
working on writing data

Modified: 
gnuradio/branches/developers/gnychis/fpga/usrp/fpga/inband_lib/testbenches/tb_timestamps.v
===================================================================
--- 
gnuradio/branches/developers/gnychis/fpga/usrp/fpga/inband_lib/testbenches/tb_timestamps.v
  2008-07-30 04:07:35 UTC (rev 9054)
+++ 
gnuradio/branches/developers/gnychis/fpga/usrp/fpga/inband_lib/testbenches/tb_timestamps.v
  2008-07-30 17:38:31 UTC (rev 9055)
@@ -38,6 +38,7 @@
 
   reg [11:0] signal;
   integer out_file;
+  integer count;
 
   rx_buffer_inband rx_buffer
     (.timestamp_clock(timestamp_clock), .usbclk(usbclk), .bus_reset(bus_reset),
@@ -99,20 +100,20 @@
   
   always @(posedge usbclk)
     begin
-
-      if(have_pkt_rdy == 1'b1)
+      if(have_pkt_rdy == 1'b1 and RD == 1'b0)
         begin
           RD <= 1'b1;
+          count <= 256;
         end
+      else if(RD == 1'b1 and count > 0)
+        begin
+          count <= count - 1;
+          $fwrite(out_file, usbdata);
+        end
       else
         begin
           RD <= 1'b0;
         end
-
-      if(RD == 1'b1)
-        begin
-          $fwrite(out_file, usbdata);
-        end
     end
 
   always @(posedge rxstrobe)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]