You are on page 1of 2

Experiment No: 7 Date:

Implementation of CRC (Cyclic Redundancy Check) using C-Program to perform Error


Detection mechanism

The instruction document is available in moodle


(Refer the CRC Code Template Doc uploaded in moodle for help)
AIM:

a. To Implement CRC (Cyclic Redundancy check) using C-Program to perform Error Detection
mechanism

SOFTWARE USED:
C Programming Language, Any C/C++ compiler, gcc compiler (Linux)

Online C compiler : https://www.onlinegdb.com/online_c_compiler can be used if you don’t have


any IDE such as Dev C/C++ etc or linux gcc

PROGRAM:

<Write CRC Encoding Program IN C>


<Write CRC Decoding Program IN C>
A CRC is constructed to generate a 3 bit FCS (Frame check sequence – Trailer) for a 4-bit
message (data word). The generator pattern is 1011.
a. Show the generation of the codeword at the sender site
b. Show the checking of the codeword at the receiver site (assume no error).
c. Show that the detection algorithm detects error if received codeword is corrupted.

PROCEDURE:
Division in CRC encoder
Division in the CRC decoder for two cases

RESULT & INFERENCES:

You might also like