Cyclic Redundancy Code Generator Macro: Features Functional Description
Cyclic Redundancy Code Generator Macro: Features Functional Description
Cyclic Redundancy Code Generator Macro: Features Functional Description
D Q D Q D Q D Q CRC
Data D Q D Q D Q D Q D Q D Q D Q
out
in D Q D Q D Q D Q D Q
J an u a r y 2 0 0 2 1
© 2002 Actel Corporation
C y c lic R e d u n d a n c y C o d e Ge n e r a t o r M a c r o
PAD [7:0]
DI[7:0] D Q PARCRC8
E DFE
PAD [15:0]
D Q CRC [15:0
>CLK
E DFE
D Q >CLK
ENABLE
DF1
>CLK
D Q
INIT
DF1
>CLK
CLK
2 v4.0
C yc l ic R e d u n d a n c y C o d e G e n e r a t o r M a c r o
Top-Level Interface
LOAD
D (M:0)
D e l i ve r ab l e s
A Win32 console application (NT/Win95/Win98/Win2000 If the user wants a different polynomial, an "Enter your
compatible) allows choosing the desired polynomial from polynomial" option is available. For example, the X25
the menu. There are several common generator polynomials polynomial would be entered as 10001000000100001.
supported with the Actel CRC Macro as follow: User-defined polynomials up to 32nd order (comparable to
sCRC8, ATM (HEC) CRC32, for example) are supported.
x8+x2+x+1 In addition, the number of input data bits to be calculated
CRC10, ATM (OAM Cell) in parallel (up to 32) can be selected. The program will
generate a fully synthesizable, completely behavioral VHDL
x10+x9+x5+x4+x+1
description.
CANbus
A simple test bench has been implemented illustrating CRC
x15+x14+x10+x8+x7+x4+x3+1
generation using the X25 polynomial and is supplied with
CRC16 the macro. The test bench reads in random data and
x16+x12+x2+1 calculates the CRC both serially and with 8-bit parallel data.
CRC16 inverted At the end of the simulation, the two CRCs are compared to
x16+x14+x+1 verify that the parallel CRC was implemented correctly
(serial CRCs are correct by inspection). The test bench can
X25 (SDLC, HDLC, CRC-CCITT) be easily modified to accommodate different polynomials.
x16+x12+x5+1
CRC32 (Ethernet, FDDI)
x32+x26+x23+x22+x16+x12+x11+x10+x8+x7+x5+x4+x2+x+1
v4.0 3
C y c lic R e d u n d a n c y C o d e Ge n e r a t o r M a c r o
4 v4.0
All other trademarks are the property of their owners.
Actel and the Actel logo are registered trademarks of Actel Corporation.
http://www.actel.com
5172158-1/1.02