Overview
CRC code generation is an important tool in computer networking at the data link layer level, since it is at that level that error detection is done by hardware. At a higher layer (transport), error detection is done in software, using a much simpler algorithm to allow speedy processing. In all cases, error detection provides an efficient means of implementing error control for reliable transmission of messages.
Datasheet: 74LS74
[Copyright 1995 National Semiconductor Corporation. Datasheet
June 1989]
Datasheet: 74LS86
[Copyright 1995 National Semiconductor Corporation.
Datasheet June 1989]
Datasheet: 74LS00
[Copyright 1995 National Semiconductor Corporation.
Datasheet June 1989]
Objectives
Setup
Connect the ByteBlaster cable from the parallel port to your Altera board. Connect power and ground (don't turn on yet.) Open Quartus II on your computer.
Exercise - Part 1
Input | CLK | LED 1 | LED 2 | LED 3 | LED 4 |
---|---|---|---|---|---|
1 | ↑ | 1 | 0 | 0 | 0 |
1 | ↑ | 1 | 1 | 0 | 0 |
1 | ↑ | 1 | 1 | 1 | 0 |
1 | ↑ | 1 | 1 | 1 | 1 |
1 | ↑ | 0 | 0 | 1 | 1 |
1 | ↑ | 0 | 1 | 0 | 1 |
1 | ↑ | 0 | 1 | 1 | 0 |
1 | ↑ | 1 | 0 | 1 | 1 |
1 | ↑ | 0 | 0 | 0 | 1 |
1 | ↑ | 0 | 1 | 0 | 0 |
1 | ↑ | 1 | 0 | 1 | 0 |
NOTE: If you are selecting the device, or assigning pins for the first time this project compile again before downloading.
Exercise - Part 2
Polynomial Arithmetic for CRC Generation
The CRC, or frame check sequence R, is the remainder of the
following binary division: . M
is a k-bit message, and P is a
generating polynomial of degree n. The remainder, R,
is then appended to the message M to form a (k
+ n)-bit frame T to be transmitted.
Demonstrate and explain your results to the lab instructor.
Polynomial Arithmetic for CRC Reception
At the receiver, the received frame T is divided by the same generating polynomial P. A remainder of 0 indicates no error. Any other remainder is an indication of a burst error. Codes that are generated using shiftback registers and based on generating polynomials can detect 100% of all burst errors up to length n, that is, up to n bits in error, where n is the degree of the generating polynomial P. Higher burst lengths can also be detected, but at a lesser percentage.
Demonstrate and explain your results to the lab instructor.
Part 3
Demonstrate and explain your results to the lab instructor.
Part 4
Demonstrate and explain your results to the lab instructor