SlideShare uma empresa Scribd logo
1 de 13
Cyclic Code redundancy
          CRC
CRC Introduction
• CRC is technique used in the communication system to add some error
  check bits at the Transmitter side using Encoder circuits and check the
  message data for error free transmission at the Receiver side using the
  decoder circuit.
• In this method of CRC error checksum we add some CRC checksum bits at
  the transmitter side using the encoder and then send the message data
  including CRC bits to the Receiver and then decode the data which
  received at the receiver using the same CRC method.
• Now if the CRC checksum bits are zero at the receiver side it means there
  is no error else there occur some error at the transmission medium. Due
  to that the message has not properly received.
• The CRC Encoder/Decoder circuit can be design using the help of LFSR. The
  LFSR generate the CRC bit using the feedback XOR gates.
Explanation of CRC
•   Take a message data which is going to transmit over the medium.
•   Now generate the message polynomial M(x) using the data bit as the increasing
    order of the power of x.
•   Take the predefined CRC polynomial C(x) as a polynomial of x.
•   Then take the highest degree term of x from the CRC polynomial C(x) as xi.
•   Multiply the message polynomial M(x) by the xi CRC highest degree term of CRC polynomial.
•   Then divide the product of xi . M(x) by the CRC polynomial C(x). And take the remainder data
    as a polynomial of x as R(x).
•   Convert the remainder polynomial R(x) to the corresponding binary bits where the respective
    power coefficient of x occur as 1 and other as 0.
•   Append the CRC bits to the message data to the transmit the data over the medium.
•   Now at the receiver side the same CRC checksum circuit is used to decoding the data by
    passing the data over the decoder circuit in the same process as encoding.
•   Now again check the remainder data. If it is a polynomial of x as zero coefficient of each x
    term. It means there is no error else if it is a polynomial of non zero coefficient of x means
    there is a error in the transmitted data.
CRC Example
Take a example CRC – 3 checksum polynomial as x3 + x2 +1.
Now let the message data is 8 bit binary value 10101010.
Generate the message polynomial as the following
M(x) = 1 * x7 + 0 * x6+ 1 * x5 + 0 * x4 + 1 * x3 + 0 * x2 + 1 * x1 + 0* x0

M(x) = x7 + x5 + x3 + x1
The message polynomial is generated in the increasing order of x starting with x0.
Now multiply the message polynomial by the highest degree of CRC polinomial of x2.
G (x) = x3 * ( x7 + x5 + x3 + x1 )
G (x) = x10 + x8 + x6 + x4
divide the G (x) by the CRC polynomial C (x) and take the remainder and quotient.
    M (X) = C (x) * Q (x) + R(x)               : where R (x) is the remainder.
                                               : Q(x) is the quotient of G (x ) / C(x)
Division by CRC
                          x7   +   x6   +   x4   +   x3   +       x2   +   x
x3   +   x2   +   1   )   x10 +    x8   +   x6   +   x4       (
                          x10 +    x9   +   x7
                          x9   +   x8   +   x7   +   x6   +       x4
                          x9   +   x8   +   x6
                          x7   +   x4
                          x7   +   x6   +   x4
                          x6
                          x6   +   x5   +   x3
                          x5   +   x3
                          x5   +   x4   +   x2
                          x4   +   x3   +   x2
                          x4   +   x3   +   x
                          x2   +   x
Result
                               Of CRC
• The result of CRC is 110.
• Now the encoder output data is { message data : CRC bits}
•         {10101010 : 110}
• This data will go to the decoder block to check the error on the message
  data.
• If the CRC decoder bits are zero then it means there is no error.
• Repeat the same encoder process to the decoder and get the CRC data
  bits.
CRC generation using Verilog Design
•   The data is a serial data form as sin to the Encoder circuit and having a data valid
    signal at the same time and having a start signal at one clock cycle early.
•   CRC can be generated using Encoder Circuit which consist a LFSR register.
•   The Encoder circuit CRC encoder send data and CRC data to output as
    data_crc_out and data_crc_valid signals.
•   To the CRC decoder circuit which has the input data_crc_out and data_crc_valid
    and start bit is functioning same as the encoder circuit and checking the error on
    sent data if there is any error then it makes HIGH the ERROR signal else it is LOW.
•   As the ENCODER/DECODER circuit is same so there is one more signal E_D_en
    which triggering the circuit to function either Encoder or Decoder.
•   The LFSR register block consist of a number of FF as the CRC bits.
•   So as the LFSR circuit having FF so there are two more signal as clk and reset.
Block diagram for CRC
         Encoder/ Decoder
                     Top Level Black box for CRC


       clk                                                      clk
                                            Data_Crc_out
                 Data_Crc_out


                 Data_Crc_valid             Data_Crc_valid
                                   Test
                                    cr                       DECODER
ENCODER      EN_en
                                                    DC_en
                                  Bench
             Sin
                                          ERROR
             Data_valid

 rst                                                            rst
CRC- 3 ENCODER / DECODER BLOCK
           DIAGRAM
start



               clk            Data_Crc_out

               rst            Data_Crc_valid



               sin

        Data_valid

                              ERROR

                     E_D_en
Block diagram of LFSR
•   LFSR is used to create the CRC checksum bits.
•   The block diagram for a an example x3 + x2 +1.
Verilog code for CRC -3
Timing diagram for Data 10101010
      for Encoder Decoder
Result
• Hence I have verified all the operation on a CRC ENCODER/DECODER
  Circuit.
• Now it’s your time to do some CRC Checksum data calculation using some
  more example as the same method.




                                                  Thankyou

Mais conteúdo relacionado

Mais procurados

Asynchronous Transfer Mode
Asynchronous Transfer ModeAsynchronous Transfer Mode
Asynchronous Transfer ModeNishant Munjal
 
CSMA /CD PPT ON SLIDESHARE
CSMA /CD PPT ON SLIDESHARECSMA /CD PPT ON SLIDESHARE
CSMA /CD PPT ON SLIDESHAREKhushboo Pal
 
Forward error correction
Forward error correctionForward error correction
Forward error correctionPrankit Mishra
 
Multiple Access Protocal
Multiple Access ProtocalMultiple Access Protocal
Multiple Access Protocaltes31
 
Error correction and detection th
Error correction and detection thError correction and detection th
Error correction and detection thShardaSalunkhe1
 
Selective repeat protocol
Selective repeat protocolSelective repeat protocol
Selective repeat protocolManusha Dilan
 
Parity Generator and Parity Checker
Parity Generator and Parity CheckerParity Generator and Parity Checker
Parity Generator and Parity CheckerJignesh Navdiya
 
Flow & Error Control
Flow & Error ControlFlow & Error Control
Flow & Error Controltameemyousaf
 
Input Output Organization
Input Output OrganizationInput Output Organization
Input Output OrganizationKamal Acharya
 
Topic:Terminal handling & polling
Topic:Terminal handling & pollingTopic:Terminal handling & polling
Topic:Terminal handling & pollingDr Rajiv Srivastava
 
Cyclic Redundancy Check in Computers Network
Cyclic Redundancy Check in Computers Network Cyclic Redundancy Check in Computers Network
Cyclic Redundancy Check in Computers Network ShivangiTak1
 

Mais procurados (20)

Asynchronous Transfer Mode
Asynchronous Transfer ModeAsynchronous Transfer Mode
Asynchronous Transfer Mode
 
Mobile Transport layer
Mobile Transport layerMobile Transport layer
Mobile Transport layer
 
Hamming code system
Hamming code systemHamming code system
Hamming code system
 
CSMA /CD PPT ON SLIDESHARE
CSMA /CD PPT ON SLIDESHARECSMA /CD PPT ON SLIDESHARE
CSMA /CD PPT ON SLIDESHARE
 
Frame relay
Frame relayFrame relay
Frame relay
 
Forward error correction
Forward error correctionForward error correction
Forward error correction
 
Data Link Layer| Error Detection
Data Link Layer| Error DetectionData Link Layer| Error Detection
Data Link Layer| Error Detection
 
Computer networks - Channelization
Computer networks - ChannelizationComputer networks - Channelization
Computer networks - Channelization
 
Multiple Access Protocal
Multiple Access ProtocalMultiple Access Protocal
Multiple Access Protocal
 
Error correction and detection th
Error correction and detection thError correction and detection th
Error correction and detection th
 
Chapter 10
Chapter 10Chapter 10
Chapter 10
 
Sliding window protocol
Sliding window protocolSliding window protocol
Sliding window protocol
 
Selective repeat protocol
Selective repeat protocolSelective repeat protocol
Selective repeat protocol
 
Transport layer
Transport layer Transport layer
Transport layer
 
Code generation
Code generationCode generation
Code generation
 
Parity Generator and Parity Checker
Parity Generator and Parity CheckerParity Generator and Parity Checker
Parity Generator and Parity Checker
 
Flow & Error Control
Flow & Error ControlFlow & Error Control
Flow & Error Control
 
Input Output Organization
Input Output OrganizationInput Output Organization
Input Output Organization
 
Topic:Terminal handling & polling
Topic:Terminal handling & pollingTopic:Terminal handling & polling
Topic:Terminal handling & polling
 
Cyclic Redundancy Check in Computers Network
Cyclic Redundancy Check in Computers Network Cyclic Redundancy Check in Computers Network
Cyclic Redundancy Check in Computers Network
 

Semelhante a CRC Error coding technique

Skr+3200+chapter+3+(kweh)
Skr+3200+chapter+3+(kweh)Skr+3200+chapter+3+(kweh)
Skr+3200+chapter+3+(kweh)Ammar Shafiq
 
CRC implementation
CRC implementation CRC implementation
CRC implementation ajay singh
 
Error Detection and correction concepts in Data communication and networks
Error Detection and correction concepts in Data communication and networksError Detection and correction concepts in Data communication and networks
Error Detection and correction concepts in Data communication and networksNt Arvind
 
13-DataLink_02.ppt
13-DataLink_02.ppt13-DataLink_02.ppt
13-DataLink_02.pptWinterSnow16
 
Error detection.
Error detection.Error detection.
Error detection.Wasim Akbar
 
05 directnets errors
05 directnets errors05 directnets errors
05 directnets errorsjyang1983
 
第四次课程 Chap8
第四次课程 Chap8第四次课程 Chap8
第四次课程 Chap8Emma2013
 
Viterbi Decoder Algorithm.pptx
Viterbi Decoder Algorithm.pptxViterbi Decoder Algorithm.pptx
Viterbi Decoder Algorithm.pptxChandralekhaR2
 
Error detection methods-computer networks
Error detection methods-computer networksError detection methods-computer networks
Error detection methods-computer networksDHIVYADEVAKI
 
3F4ecc.ppt
3F4ecc.ppt3F4ecc.ppt
3F4ecc.pptAnnymus
 
computer networks Error Detection Methods.pdf
computer networks Error Detection Methods.pdfcomputer networks Error Detection Methods.pdf
computer networks Error Detection Methods.pdfBalasubramanian699229
 
Encoder for (7,3) cyclic code using matlab
Encoder for (7,3) cyclic code using matlabEncoder for (7,3) cyclic code using matlab
Encoder for (7,3) cyclic code using matlabSneheshDutta
 
Cyclic redundancy check
Cyclic redundancy checkCyclic redundancy check
Cyclic redundancy checkSaleh Alrkiyan
 
Code-Division Multiple Access (CDMA)
Code-Division Multiple Access (CDMA)Code-Division Multiple Access (CDMA)
Code-Division Multiple Access (CDMA)Soumen Santra
 

Semelhante a CRC Error coding technique (20)

Skr+3200+chapter+3+(kweh)
Skr+3200+chapter+3+(kweh)Skr+3200+chapter+3+(kweh)
Skr+3200+chapter+3+(kweh)
 
CRC implementation
CRC implementation CRC implementation
CRC implementation
 
Error Detection and correction concepts in Data communication and networks
Error Detection and correction concepts in Data communication and networksError Detection and correction concepts in Data communication and networks
Error Detection and correction concepts in Data communication and networks
 
Data links
Data links Data links
Data links
 
13-DataLink_02.ppt
13-DataLink_02.ppt13-DataLink_02.ppt
13-DataLink_02.ppt
 
Error detection.
Error detection.Error detection.
Error detection.
 
CRC JAVA CODE
CRC JAVA CODECRC JAVA CODE
CRC JAVA CODE
 
05 directnets errors
05 directnets errors05 directnets errors
05 directnets errors
 
B0210714
B0210714B0210714
B0210714
 
第四次课程 Chap8
第四次课程 Chap8第四次课程 Chap8
第四次课程 Chap8
 
Lecture 21
Lecture 21Lecture 21
Lecture 21
 
Viterbi Decoder Algorithm.pptx
Viterbi Decoder Algorithm.pptxViterbi Decoder Algorithm.pptx
Viterbi Decoder Algorithm.pptx
 
Error detection methods-computer networks
Error detection methods-computer networksError detection methods-computer networks
Error detection methods-computer networks
 
3F4ecc.ppt
3F4ecc.ppt3F4ecc.ppt
3F4ecc.ppt
 
computer networks Error Detection Methods.pdf
computer networks Error Detection Methods.pdfcomputer networks Error Detection Methods.pdf
computer networks Error Detection Methods.pdf
 
Encoder for (7,3) cyclic code using matlab
Encoder for (7,3) cyclic code using matlabEncoder for (7,3) cyclic code using matlab
Encoder for (7,3) cyclic code using matlab
 
BCH Codes
BCH CodesBCH Codes
BCH Codes
 
Cyclic redundancy check
Cyclic redundancy checkCyclic redundancy check
Cyclic redundancy check
 
Ch3 datalink
Ch3 datalinkCh3 datalink
Ch3 datalink
 
Code-Division Multiple Access (CDMA)
Code-Division Multiple Access (CDMA)Code-Division Multiple Access (CDMA)
Code-Division Multiple Access (CDMA)
 

Mais de Mantra VLSI

Mais de Mantra VLSI (9)

Flip Chip technology
Flip Chip technologyFlip Chip technology
Flip Chip technology
 
Number system
Number systemNumber system
Number system
 
Physical design
Physical design Physical design
Physical design
 
Basic electronics
Basic electronicsBasic electronics
Basic electronics
 
Verilog HDL
Verilog HDLVerilog HDL
Verilog HDL
 
Ethertnet data transfer.ppt
Ethertnet data transfer.pptEthertnet data transfer.ppt
Ethertnet data transfer.ppt
 
verilog code
verilog codeverilog code
verilog code
 
Divide by N clock
Divide by N clockDivide by N clock
Divide by N clock
 
Synthesis
SynthesisSynthesis
Synthesis
 

Último

Eye-Catching Web Design Crafting User Interfaces .docx
Eye-Catching Web Design Crafting User Interfaces .docxEye-Catching Web Design Crafting User Interfaces .docx
Eye-Catching Web Design Crafting User Interfaces .docxMdBokhtiyarHossainNi
 
Design-System - FinTech - Isadora Agency
Design-System - FinTech - Isadora AgencyDesign-System - FinTech - Isadora Agency
Design-System - FinTech - Isadora AgencyIsadora Agency
 
Call Girls In Ratnagiri Escorts ☎️8617370543 🔝 💃 Enjoy 24/7 Escort Service En...
Call Girls In Ratnagiri Escorts ☎️8617370543 🔝 💃 Enjoy 24/7 Escort Service En...Call Girls In Ratnagiri Escorts ☎️8617370543 🔝 💃 Enjoy 24/7 Escort Service En...
Call Girls In Ratnagiri Escorts ☎️8617370543 🔝 💃 Enjoy 24/7 Escort Service En...Nitya salvi
 
Q4-Trends-Networks-Module-3.pdfqquater days sheets123456789
Q4-Trends-Networks-Module-3.pdfqquater days sheets123456789Q4-Trends-Networks-Module-3.pdfqquater days sheets123456789
Q4-Trends-Networks-Module-3.pdfqquater days sheets123456789CristineGraceAcuyan
 
Sweety Planet Packaging Design Process Book.pptx
Sweety Planet Packaging Design Process Book.pptxSweety Planet Packaging Design Process Book.pptx
Sweety Planet Packaging Design Process Book.pptxbingyichin04
 
一比一定(购)滑铁卢大学毕业证(UW毕业证)成绩单学位证
一比一定(购)滑铁卢大学毕业证(UW毕业证)成绩单学位证一比一定(购)滑铁卢大学毕业证(UW毕业证)成绩单学位证
一比一定(购)滑铁卢大学毕业证(UW毕业证)成绩单学位证wpkuukw
 
NO1 Top Pakistani Amil Baba Real Amil baba In Pakistan Najoomi Baba in Pakist...
NO1 Top Pakistani Amil Baba Real Amil baba In Pakistan Najoomi Baba in Pakist...NO1 Top Pakistani Amil Baba Real Amil baba In Pakistan Najoomi Baba in Pakist...
NO1 Top Pakistani Amil Baba Real Amil baba In Pakistan Najoomi Baba in Pakist...Amil baba
 
Just Call Vip call girls Fatehpur Escorts ☎️8617370543 Two shot with one girl...
Just Call Vip call girls Fatehpur Escorts ☎️8617370543 Two shot with one girl...Just Call Vip call girls Fatehpur Escorts ☎️8617370543 Two shot with one girl...
Just Call Vip call girls Fatehpur Escorts ☎️8617370543 Two shot with one girl...Nitya salvi
 
怎样办理巴斯大学毕业证(Bath毕业证书)成绩单留信认证
怎样办理巴斯大学毕业证(Bath毕业证书)成绩单留信认证怎样办理巴斯大学毕业证(Bath毕业证书)成绩单留信认证
怎样办理巴斯大学毕业证(Bath毕业证书)成绩单留信认证eeanqy
 
一比一原版(ANU毕业证书)澳大利亚国立大学毕业证原件一模一样
一比一原版(ANU毕业证书)澳大利亚国立大学毕业证原件一模一样一比一原版(ANU毕业证书)澳大利亚国立大学毕业证原件一模一样
一比一原版(ANU毕业证书)澳大利亚国立大学毕业证原件一模一样yhavx
 
How to Create a Productive Workspace Trends and Tips.pdf
How to Create a Productive Workspace Trends and Tips.pdfHow to Create a Productive Workspace Trends and Tips.pdf
How to Create a Productive Workspace Trends and Tips.pdfOffice Furniture Plus - Irving
 
怎样办理伦敦国王学院毕业证(KCL毕业证书)成绩单留信认证
怎样办理伦敦国王学院毕业证(KCL毕业证书)成绩单留信认证怎样办理伦敦国王学院毕业证(KCL毕业证书)成绩单留信认证
怎样办理伦敦国王学院毕业证(KCL毕业证书)成绩单留信认证eeanqy
 
一比一原版(WLU毕业证)罗瑞尔大学毕业证成绩单留信学历认证原版一模一样
一比一原版(WLU毕业证)罗瑞尔大学毕业证成绩单留信学历认证原版一模一样一比一原版(WLU毕业证)罗瑞尔大学毕业证成绩单留信学历认证原版一模一样
一比一原版(WLU毕业证)罗瑞尔大学毕业证成绩单留信学历认证原版一模一样awasv46j
 
The hottest UI and UX Design Trends 2024
The hottest UI and UX Design Trends 2024The hottest UI and UX Design Trends 2024
The hottest UI and UX Design Trends 2024Ilham Brata
 
Independent Escorts Goregaon WhatsApp +91-9930687706, Best Service
Independent Escorts Goregaon WhatsApp +91-9930687706, Best ServiceIndependent Escorts Goregaon WhatsApp +91-9930687706, Best Service
Independent Escorts Goregaon WhatsApp +91-9930687706, Best Servicemeghakumariji156
 
Just Call Vip call girls Kasganj Escorts ☎️8617370543 Two shot with one girl ...
Just Call Vip call girls Kasganj Escorts ☎️8617370543 Two shot with one girl ...Just Call Vip call girls Kasganj Escorts ☎️8617370543 Two shot with one girl ...
Just Call Vip call girls Kasganj Escorts ☎️8617370543 Two shot with one girl ...Nitya salvi
 
一比一定(购)卡尔顿大学毕业证(CU毕业证)成绩单学位证
一比一定(购)卡尔顿大学毕业证(CU毕业证)成绩单学位证一比一定(购)卡尔顿大学毕业证(CU毕业证)成绩单学位证
一比一定(购)卡尔顿大学毕业证(CU毕业证)成绩单学位证wpkuukw
 
Abortion pill for sale in Muscat (+918761049707)) Get Cytotec Cash on deliver...
Abortion pill for sale in Muscat (+918761049707)) Get Cytotec Cash on deliver...Abortion pill for sale in Muscat (+918761049707)) Get Cytotec Cash on deliver...
Abortion pill for sale in Muscat (+918761049707)) Get Cytotec Cash on deliver...instagramfab782445
 
Pondicherry Escorts Service Girl ^ 9332606886, WhatsApp Anytime Pondicherry
Pondicherry Escorts Service Girl ^ 9332606886, WhatsApp Anytime PondicherryPondicherry Escorts Service Girl ^ 9332606886, WhatsApp Anytime Pondicherry
Pondicherry Escorts Service Girl ^ 9332606886, WhatsApp Anytime Pondicherrymeghakumariji156
 

Último (20)

Eye-Catching Web Design Crafting User Interfaces .docx
Eye-Catching Web Design Crafting User Interfaces .docxEye-Catching Web Design Crafting User Interfaces .docx
Eye-Catching Web Design Crafting User Interfaces .docx
 
Design-System - FinTech - Isadora Agency
Design-System - FinTech - Isadora AgencyDesign-System - FinTech - Isadora Agency
Design-System - FinTech - Isadora Agency
 
Call Girls In Ratnagiri Escorts ☎️8617370543 🔝 💃 Enjoy 24/7 Escort Service En...
Call Girls In Ratnagiri Escorts ☎️8617370543 🔝 💃 Enjoy 24/7 Escort Service En...Call Girls In Ratnagiri Escorts ☎️8617370543 🔝 💃 Enjoy 24/7 Escort Service En...
Call Girls In Ratnagiri Escorts ☎️8617370543 🔝 💃 Enjoy 24/7 Escort Service En...
 
Q4-Trends-Networks-Module-3.pdfqquater days sheets123456789
Q4-Trends-Networks-Module-3.pdfqquater days sheets123456789Q4-Trends-Networks-Module-3.pdfqquater days sheets123456789
Q4-Trends-Networks-Module-3.pdfqquater days sheets123456789
 
Sweety Planet Packaging Design Process Book.pptx
Sweety Planet Packaging Design Process Book.pptxSweety Planet Packaging Design Process Book.pptx
Sweety Planet Packaging Design Process Book.pptx
 
一比一定(购)滑铁卢大学毕业证(UW毕业证)成绩单学位证
一比一定(购)滑铁卢大学毕业证(UW毕业证)成绩单学位证一比一定(购)滑铁卢大学毕业证(UW毕业证)成绩单学位证
一比一定(购)滑铁卢大学毕业证(UW毕业证)成绩单学位证
 
NO1 Top Pakistani Amil Baba Real Amil baba In Pakistan Najoomi Baba in Pakist...
NO1 Top Pakistani Amil Baba Real Amil baba In Pakistan Najoomi Baba in Pakist...NO1 Top Pakistani Amil Baba Real Amil baba In Pakistan Najoomi Baba in Pakist...
NO1 Top Pakistani Amil Baba Real Amil baba In Pakistan Najoomi Baba in Pakist...
 
Just Call Vip call girls Fatehpur Escorts ☎️8617370543 Two shot with one girl...
Just Call Vip call girls Fatehpur Escorts ☎️8617370543 Two shot with one girl...Just Call Vip call girls Fatehpur Escorts ☎️8617370543 Two shot with one girl...
Just Call Vip call girls Fatehpur Escorts ☎️8617370543 Two shot with one girl...
 
怎样办理巴斯大学毕业证(Bath毕业证书)成绩单留信认证
怎样办理巴斯大学毕业证(Bath毕业证书)成绩单留信认证怎样办理巴斯大学毕业证(Bath毕业证书)成绩单留信认证
怎样办理巴斯大学毕业证(Bath毕业证书)成绩单留信认证
 
一比一原版(ANU毕业证书)澳大利亚国立大学毕业证原件一模一样
一比一原版(ANU毕业证书)澳大利亚国立大学毕业证原件一模一样一比一原版(ANU毕业证书)澳大利亚国立大学毕业证原件一模一样
一比一原版(ANU毕业证书)澳大利亚国立大学毕业证原件一模一样
 
How to Create a Productive Workspace Trends and Tips.pdf
How to Create a Productive Workspace Trends and Tips.pdfHow to Create a Productive Workspace Trends and Tips.pdf
How to Create a Productive Workspace Trends and Tips.pdf
 
怎样办理伦敦国王学院毕业证(KCL毕业证书)成绩单留信认证
怎样办理伦敦国王学院毕业证(KCL毕业证书)成绩单留信认证怎样办理伦敦国王学院毕业证(KCL毕业证书)成绩单留信认证
怎样办理伦敦国王学院毕业证(KCL毕业证书)成绩单留信认证
 
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman MuscatAbortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
 
一比一原版(WLU毕业证)罗瑞尔大学毕业证成绩单留信学历认证原版一模一样
一比一原版(WLU毕业证)罗瑞尔大学毕业证成绩单留信学历认证原版一模一样一比一原版(WLU毕业证)罗瑞尔大学毕业证成绩单留信学历认证原版一模一样
一比一原版(WLU毕业证)罗瑞尔大学毕业证成绩单留信学历认证原版一模一样
 
The hottest UI and UX Design Trends 2024
The hottest UI and UX Design Trends 2024The hottest UI and UX Design Trends 2024
The hottest UI and UX Design Trends 2024
 
Independent Escorts Goregaon WhatsApp +91-9930687706, Best Service
Independent Escorts Goregaon WhatsApp +91-9930687706, Best ServiceIndependent Escorts Goregaon WhatsApp +91-9930687706, Best Service
Independent Escorts Goregaon WhatsApp +91-9930687706, Best Service
 
Just Call Vip call girls Kasganj Escorts ☎️8617370543 Two shot with one girl ...
Just Call Vip call girls Kasganj Escorts ☎️8617370543 Two shot with one girl ...Just Call Vip call girls Kasganj Escorts ☎️8617370543 Two shot with one girl ...
Just Call Vip call girls Kasganj Escorts ☎️8617370543 Two shot with one girl ...
 
一比一定(购)卡尔顿大学毕业证(CU毕业证)成绩单学位证
一比一定(购)卡尔顿大学毕业证(CU毕业证)成绩单学位证一比一定(购)卡尔顿大学毕业证(CU毕业证)成绩单学位证
一比一定(购)卡尔顿大学毕业证(CU毕业证)成绩单学位证
 
Abortion pill for sale in Muscat (+918761049707)) Get Cytotec Cash on deliver...
Abortion pill for sale in Muscat (+918761049707)) Get Cytotec Cash on deliver...Abortion pill for sale in Muscat (+918761049707)) Get Cytotec Cash on deliver...
Abortion pill for sale in Muscat (+918761049707)) Get Cytotec Cash on deliver...
 
Pondicherry Escorts Service Girl ^ 9332606886, WhatsApp Anytime Pondicherry
Pondicherry Escorts Service Girl ^ 9332606886, WhatsApp Anytime PondicherryPondicherry Escorts Service Girl ^ 9332606886, WhatsApp Anytime Pondicherry
Pondicherry Escorts Service Girl ^ 9332606886, WhatsApp Anytime Pondicherry
 

CRC Error coding technique

  • 2. CRC Introduction • CRC is technique used in the communication system to add some error check bits at the Transmitter side using Encoder circuits and check the message data for error free transmission at the Receiver side using the decoder circuit. • In this method of CRC error checksum we add some CRC checksum bits at the transmitter side using the encoder and then send the message data including CRC bits to the Receiver and then decode the data which received at the receiver using the same CRC method. • Now if the CRC checksum bits are zero at the receiver side it means there is no error else there occur some error at the transmission medium. Due to that the message has not properly received. • The CRC Encoder/Decoder circuit can be design using the help of LFSR. The LFSR generate the CRC bit using the feedback XOR gates.
  • 3. Explanation of CRC • Take a message data which is going to transmit over the medium. • Now generate the message polynomial M(x) using the data bit as the increasing order of the power of x. • Take the predefined CRC polynomial C(x) as a polynomial of x. • Then take the highest degree term of x from the CRC polynomial C(x) as xi. • Multiply the message polynomial M(x) by the xi CRC highest degree term of CRC polynomial. • Then divide the product of xi . M(x) by the CRC polynomial C(x). And take the remainder data as a polynomial of x as R(x). • Convert the remainder polynomial R(x) to the corresponding binary bits where the respective power coefficient of x occur as 1 and other as 0. • Append the CRC bits to the message data to the transmit the data over the medium. • Now at the receiver side the same CRC checksum circuit is used to decoding the data by passing the data over the decoder circuit in the same process as encoding. • Now again check the remainder data. If it is a polynomial of x as zero coefficient of each x term. It means there is no error else if it is a polynomial of non zero coefficient of x means there is a error in the transmitted data.
  • 4. CRC Example Take a example CRC – 3 checksum polynomial as x3 + x2 +1. Now let the message data is 8 bit binary value 10101010. Generate the message polynomial as the following M(x) = 1 * x7 + 0 * x6+ 1 * x5 + 0 * x4 + 1 * x3 + 0 * x2 + 1 * x1 + 0* x0 M(x) = x7 + x5 + x3 + x1 The message polynomial is generated in the increasing order of x starting with x0. Now multiply the message polynomial by the highest degree of CRC polinomial of x2. G (x) = x3 * ( x7 + x5 + x3 + x1 ) G (x) = x10 + x8 + x6 + x4 divide the G (x) by the CRC polynomial C (x) and take the remainder and quotient. M (X) = C (x) * Q (x) + R(x) : where R (x) is the remainder. : Q(x) is the quotient of G (x ) / C(x)
  • 5. Division by CRC x7 + x6 + x4 + x3 + x2 + x x3 + x2 + 1 ) x10 + x8 + x6 + x4 ( x10 + x9 + x7 x9 + x8 + x7 + x6 + x4 x9 + x8 + x6 x7 + x4 x7 + x6 + x4 x6 x6 + x5 + x3 x5 + x3 x5 + x4 + x2 x4 + x3 + x2 x4 + x3 + x x2 + x
  • 6. Result Of CRC • The result of CRC is 110. • Now the encoder output data is { message data : CRC bits} • {10101010 : 110} • This data will go to the decoder block to check the error on the message data. • If the CRC decoder bits are zero then it means there is no error. • Repeat the same encoder process to the decoder and get the CRC data bits.
  • 7. CRC generation using Verilog Design • The data is a serial data form as sin to the Encoder circuit and having a data valid signal at the same time and having a start signal at one clock cycle early. • CRC can be generated using Encoder Circuit which consist a LFSR register. • The Encoder circuit CRC encoder send data and CRC data to output as data_crc_out and data_crc_valid signals. • To the CRC decoder circuit which has the input data_crc_out and data_crc_valid and start bit is functioning same as the encoder circuit and checking the error on sent data if there is any error then it makes HIGH the ERROR signal else it is LOW. • As the ENCODER/DECODER circuit is same so there is one more signal E_D_en which triggering the circuit to function either Encoder or Decoder. • The LFSR register block consist of a number of FF as the CRC bits. • So as the LFSR circuit having FF so there are two more signal as clk and reset.
  • 8. Block diagram for CRC Encoder/ Decoder Top Level Black box for CRC clk clk Data_Crc_out Data_Crc_out Data_Crc_valid Data_Crc_valid Test cr DECODER ENCODER EN_en DC_en Bench Sin ERROR Data_valid rst rst
  • 9. CRC- 3 ENCODER / DECODER BLOCK DIAGRAM start clk Data_Crc_out rst Data_Crc_valid sin Data_valid ERROR E_D_en
  • 10. Block diagram of LFSR • LFSR is used to create the CRC checksum bits. • The block diagram for a an example x3 + x2 +1.
  • 12. Timing diagram for Data 10101010 for Encoder Decoder
  • 13. Result • Hence I have verified all the operation on a CRC ENCODER/DECODER Circuit. • Now it’s your time to do some CRC Checksum data calculation using some more example as the same method. Thankyou