commit-gnuradio
[Top][All Lists]
Advanced

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

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


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

Author: gnychis
Date: 2008-07-30 11:48:41 -0600 (Wed, 30 Jul 2008)
New Revision: 9056

Modified:
   
gnuradio/branches/developers/gnychis/fpga/usrp/fpga/inband_lib/testbenches/tb_timestamps.v
Log:
fixing syntax error

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 17:38:31 UTC (rev 9055)
+++ 
gnuradio/branches/developers/gnychis/fpga/usrp/fpga/inband_lib/testbenches/tb_timestamps.v
  2008-07-30 17:48:41 UTC (rev 9056)
@@ -100,20 +100,24 @@
   
   always @(posedge usbclk)
     begin
-      if(have_pkt_rdy == 1'b1 and RD == 1'b0)
+      if(have_pkt_rdy == 1'b1 && RD == 1'b0)
         begin
           RD <= 1'b1;
           count <= 256;
         end
-      else if(RD == 1'b1 and count > 0)
+      else if(RD == 1'b1 && 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]