summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormatt <matt@221aa14e-8319-0410-a670-987f0aec2ac5>2009-04-01 02:25:04 +0000
committermatt <matt@221aa14e-8319-0410-a670-987f0aec2ac5>2009-04-01 02:25:04 +0000
commit51537982b07107419964447cf212e0c0501c4311 (patch)
treed0dc951565e3405c47055dc48292a10247203602
parent6315030c94e7716bbf39a3da13d75ed27599f676 (diff)
downloaduhd-51537982b07107419964447cf212e0c0501c4311.tar.gz
uhd-51537982b07107419964447cf212e0c0501c4311.tar.bz2
uhd-51537982b07107419964447cf212e0c0501c4311.zip
now checks the crc as well for the received side
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10728 221aa14e-8319-0410-a670-987f0aec2ac5
-rw-r--r--simple_gemac/crc.v7
1 files changed, 5 insertions, 2 deletions
diff --git a/simple_gemac/crc.v b/simple_gemac/crc.v
index c54623859..ac019083a 100644
--- a/simple_gemac/crc.v
+++ b/simple_gemac/crc.v
@@ -5,7 +5,8 @@ module crc
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 @@ module crc
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