commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] r10728 - gnuradio/trunk/usrp2/fpga/simple_gemac


From: matt
Subject: [Commit-gnuradio] r10728 - gnuradio/trunk/usrp2/fpga/simple_gemac
Date: Tue, 31 Mar 2009 20:25:04 -0600 (MDT)

Author: matt
Date: 2009-03-31 20:25:04 -0600 (Tue, 31 Mar 2009)
New Revision: 10728

Modified:
   gnuradio/trunk/usrp2/fpga/simple_gemac/crc.v
Log:
now checks the crc as well for the received side


Modified: gnuradio/trunk/usrp2/fpga/simple_gemac/crc.v
===================================================================
--- gnuradio/trunk/usrp2/fpga/simple_gemac/crc.v        2009-04-01 01:25:11 UTC 
(rev 10727)
+++ gnuradio/trunk/usrp2/fpga/simple_gemac/crc.v        2009-04-01 02:25:04 UTC 
(rev 10728)
@@ -5,7 +5,8 @@
    input clear, 
    input [7:0] data,
    input calc,
-   output [31:0] crc_out);
+   output [31:0] crc_out,
+   output match);
    
    function[31:0]  NextCRC;
       input[7:0]      D;
@@ -59,5 +60,7 @@
                      
crc_reg[16],crc_reg[17],crc_reg[18],crc_reg[19],crc_reg[20],crc_reg[21],crc_reg[22],crc_reg[23],
                      
crc_reg[8],crc_reg[9],crc_reg[10],crc_reg[11],crc_reg[12],crc_reg[13],crc_reg[14],crc_reg[15],
                      
crc_reg[0],crc_reg[1],crc_reg[2],crc_reg[3],crc_reg[4],crc_reg[5],crc_reg[6],crc_reg[7]
 };
-   
+
+   assign match  = (crc_reg == 32'hc704_dd7b);
+                   
 endmodule // crc





reply via email to

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