input clear, \r
input [7:0] data,\r
input calc,\r
- output [31:0] crc_out);\r
+ output [31:0] crc_out,\r
+ output match);\r
\r
function[31:0] NextCRC;\r
input[7:0] D;\r
crc_reg[16],crc_reg[17],crc_reg[18],crc_reg[19],crc_reg[20],crc_reg[21],crc_reg[22],crc_reg[23],\r
crc_reg[8],crc_reg[9],crc_reg[10],crc_reg[11],crc_reg[12],crc_reg[13],crc_reg[14],crc_reg[15],\r
crc_reg[0],crc_reg[1],crc_reg[2],crc_reg[3],crc_reg[4],crc_reg[5],crc_reg[6],crc_reg[7] };\r
- \r
+\r
+ assign match = (crc_reg == 32'hc704_dd7b);\r
+ \r
endmodule // crc\r