commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] r6898 - gnuradio/branches/developers/zhuochen/inband/u


From: gnychis
Subject: [Commit-gnuradio] r6898 - gnuradio/branches/developers/zhuochen/inband/usrp/fpga/inband_lib
Date: Wed, 14 Nov 2007 10:09:48 -0700 (MST)

Author: gnychis
Date: 2007-11-14 10:09:47 -0700 (Wed, 14 Nov 2007)
New Revision: 6898

Modified:
   
gnuradio/branches/developers/zhuochen/inband/usrp/fpga/inband_lib/packet_builder.v
Log:
Two things wrong here.  The maximum payload size is not 252, I'm not sure where
this number came from... other than it being half the real maximum payload size.
Second, the payload should not be shifted, it starts at bit 0 in the first word
of our header.  Considering we're generating fixed size payload now for packets
from the USRP to the host, a simple fixed 504 will do.


Modified: 
gnuradio/branches/developers/zhuochen/inband/usrp/fpga/inband_lib/packet_builder.v
===================================================================
--- 
gnuradio/branches/developers/zhuochen/inband/usrp/fpga/inband_lib/packet_builder.v
  2007-11-14 17:06:20 UTC (rev 6897)
+++ 
gnuradio/branches/developers/zhuochen/inband/usrp/fpga/inband_lib/packet_builder.v
  2007-11-14 17:09:47 UTC (rev 6898)
@@ -98,10 +98,8 @@
             end
             
             `HEADER1: begin
-                fifodata[`PAYLOAD_LEN] <= #1 (chan_used > 9'd252
-                                           ? 9'd252 : chan_used << 1);
-                payload_len <= #1 (chan_used > 9'd252
-                                ? 9'd252 : chan_used << 1);
+                fifodata[`PAYLOAD_LEN] <= #1 9'd504;
+                payload_len <= #1 9'd504;
                 fifodata[`TAG] <= #1 0;
                 fifodata[`MBZ] <= #1 0;
                 WR <= #1 1;





reply via email to

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