8b/10b Encoder/Decoder

Reference Design LogoMany serial data transmission standards utilize 8b/10b encoding to ensure sufficient data transitions for clock recovery. This reference design describes an encoder/decoder suitable for performing 8b/10b encoding/decoding within Lattice programmable logic devices. Several generic CPLD and FPGA implementations are shown with this reference design.

Features

  • 8b to 10b encoder and 10b to 8b decoder
  • Previous octet disparity input and current disparity output
  • Output to indicate when invalid control character is requested to be encoded
  • Output to indicate when invalid data/control character is received
  • Running disparity checking
  • Conform to 8b/10b specified in IEEE 802.3z and ANSI X3.230-1994

Jump to

Block Diagram

8b/10b Encoder/Decoder

Performance and Size

Tested Devices* Design Size Performance I/O Pins Revision
LCMXO1200C-3T100C 152 LUTs >100 MHz 43 1.1
LFE3-150EA-7FN1156C 184 LUTs > 200 MHz 43 1.2
LFE2M-50E-6F672C 184 LUTs > 200 MHz 43 1.2
LFECP-6E-5T144C 184 LUTs >100 MHz 43 1.2
LFXP2-5E-5M132C 184 LUTs > 100 MHz 43 1.2
LC4256B-3T100C 74 Macrocells >90 MHz 43 1.1
LC51024MB-52F484C 73 Macrocells >90 MHz 43 1.1

* May work in other devices as well.

Note: The performance and design sizes shown above are estimates only. The actual results may vary depending upon the chosen parameters, timing constraints, and device implementation. See the design's documentation for details. All coding and design work was done on a PC platform unless noted otherwise.

Documentation

Technical Resources
TITLE NUMBER VERSION DATE FORMAT SIZE
Select All
8b/10b Encoder/Decoder - Source Code
1.4 1/29/2021 ZIP 1.9 MB
8b/10b Encoder/Decoder - Documentation
FPGA-RD-02103 1.5 1/29/2021 PDF 940.3 KB

*By clicking on the "Notify Me of Changes" button, you agree to receive notifications on changes to the document(s) you selected.