RFC Errata
Found 1 record.
Status: Verified (1)
RFC 3385, "Internet Protocol Small Computer System Interface (iSCSI) Cyclic Redundancy Check (CRC)/Checksum Considerations", September 2002
Source of RFC: Legacy
Errata ID: 286
Status: Verified
Type: Technical
Publication Format(s) : TEXT
Reported By: Vicente Cavanna
Date Reported: 2002-11-18
Section 8.1 says:
/////////////////////////////////////////////////////////////////////// // File: CRC32_D1.v // Date: Mon Nov 18 18:51:31 2002 // // Copyright (C) 1999 Easics NV. // This source file may be used and distributed without restriction // provided that this copyright statement is not removed from the file // and that any derivative work contains the original copyright notice // and the associated disclaimer. // // THIS SOURCE FILE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS // OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED // WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. // // Purpose: Verilog module containing a synthesizable CRC function // * polynomial: p(0 to 32) := "100000101111011000111011011110001" // * data width: 1 // // Info: jand@easics.be (Jan Decaluwe) // http://www.easics.com /////////////////////////////////////////////////////////////////////// module CRC32_D1; // polynomial: p(0 to 32) := "100000101111011000111011011110001" // data width: 1 function [31:0] nextCRC32_D1; input Data; input [31:0] CRC; reg [0:0] D; reg [31:0] C; reg [31:0] NewCRC; begin D[0] = Data; C = CRC; NewCRC[0] = D[0] ^ C[31]; NewCRC[1] = C[0]; NewCRC[2] = C[1]; NewCRC[3] = C[2]; NewCRC[4] = C[3]; NewCRC[5] = C[4]; NewCRC[6] = D[0] ^ C[5] ^ C[31]; NewCRC[7] = C[6]; NewCRC[8] = D[0] ^ C[7] ^ C[31]; NewCRC[9] = D[0] ^ C[8] ^ C[31]; NewCRC[10] = D[0] ^ C[9] ^ C[31]; NewCRC[11] = D[0] ^ C[10] ^ C[31]; NewCRC[12] = C[11]; NewCRC[13] = D[0] ^ C[12] ^ C[31]; NewCRC[14] = D[0] ^ C[13] ^ C[31]; NewCRC[15] = C[14]; NewCRC[16] = C[15]; NewCRC[17] = C[16]; NewCRC[18] = D[0] ^ C[17] ^ C[31]; NewCRC[19] = D[0] ^ C[18] ^ C[31]; NewCRC[20] = D[0] ^ C[19] ^ C[31]; NewCRC[21] = C[20]; NewCRC[22] = D[0] ^ C[21] ^ C[31]; NewCRC[23] = D[0] ^ C[22] ^ C[31]; NewCRC[24] = C[23]; NewCRC[25] = D[0] ^ C[24] ^ C[31]; NewCRC[26] = D[0] ^ C[25] ^ C[31]; NewCRC[27] = D[0] ^ C[26] ^ C[31]; NewCRC[28] = D[0] ^ C[27] ^ C[31]; NewCRC[29] = C[28]; NewCRC[30] = C[29]; NewCRC[31] = C[30]; nextCRC32_D1 = NewCRC; end endfunction endmodule