Altera Reed-Solomon Compiler User Manual

Reed-Solomon Compiler
User Guide
101 Innovation Drive San Jose, CA 95134
www.altera.com
c The Reed-Solomon IP Core is scheduled for product obsolescence and discontinued
support as described in PDN1410. Therefore, Altera does not recommend use of this IP in new designs. For more information about Altera’s current IP offering, refer to Altera’s
Intellectual Property website.
UG-RSCOMPILER-14.1
Feedback Subscribe
© 2014 Altera Corporation. All rights reserved. ALTERA, ARRIA, CYCLONE, HARDCOPY, MAX, MEGACORE, NIOS, QUARTUS and STRATIX words and logos are trademarks of Altera Corporation and registered in the U.S. Patent and Trademark Office and in other countries. All other words and logos identified as trademarks or service marks are the property of their respective holders as described at www.altera.com/common/legal.html. Altera warrants performance of its semiconductor products to current specifications in accordance with Altera's standard warranty, but reserves the right to make changes to any products and services at any time without notice. Altera assumes no responsibility or liability arising out of the application or use of any information, product, or service described herein except as expressly agreed to in writing by Altera. Altera customers are advised to obtain the latest version of device specifications before relying on any published information and before placing orders for products or services.
ISO
9001:2008
Registered
December 2014 Altera Corporation Reed-Solomon Compiler
User Guide

Contents

Chapter 1. About This Compiler
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1–1
Release Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1–2
Device Family Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1–2
Performance and Resource Utilization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1–3
Chapter 2. Getting Started
Installing and Licensing IP Cores . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2–1
OpenCore Plus IP Evaluation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2–1
OpenCore Plus Time-Out Behavior . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2–2
Specifying IP Core Parameters and Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2–2
Parameterizing the Reed Solomon MegaCore Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2–3
Generated Files (For Arria V, Cyclone V, MAX 10, and Stratix V Devices) . . . . . . . . . . . . . . . . . . . . . . . 2–4
Files Generated for Altera IP Cores . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2–5
Simulating IP Cores . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2–5
Adding IP Cores to IP Catalog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2–6
Upgrading Outdated IP Cores . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2–7
Upgrading IP Cores at the Command Line . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2–8
DSP Builder Design Flow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2–8
Chapter 3. Functional Description
Background . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3–1
Erasures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3–2
Shortened Codewords . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3–2
Variable Encoding and Decoding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3–3
RS Encoder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3–3
RS Decoder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3–4
Error Symbol Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3–5
Bit Error Count . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3–6
Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3–6
Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3–7
Signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3–8
Throughput Calculator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3–10
Appendix A. Using the RS Encoder or Decoder in a CCSDS System
Supplying Test Patterns . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A–1
Additional Information
Revision History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Info–1
How to Contact Altera . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Info–2
Typographic Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Info–2
December 2014 Altera Corporation Reed-Solomon Compiler
User Guide
iv Contents
<edit Document Title variable in cover> <month> <year> Altera Corporation <edit Document Type variable in cover>

1. About This Compiler

This document describes the Altera® Reed-Solomon (RS) Compiler. The Altera RS Compiler comprises a fully parameterizable encoder and decoder for forward error correction applications. RS codes are widely used for error detection and correction in a wide range of DSP applications for storage, retrieval, and transmission of data. The RS Compiler has the following options:
Erasures-supporting option—the RS decoder can correct symbol errors up to the
number of check symbols, if you give the location of the errors to the decoder. Refer to “Erasures” on page 3–2.
Variable encoding or decoding—you can vary the total number of symbols per
codeword and the number of check symbols, in real time, from their minimum allowable values up to their selected values, when you are encoding or decoding.
Error symbol output—the RS decoder finds the error values and location and adds
these values in the Galois field to the input value.
Bit error output—either split count or full count

Features

The Altera Reed-Solomon Compiler supports the following features:
High-performance encoder/decoder for error detection and correction
Fully parameterized RS function, including:
Number of bits per symbol
Number of symbols per codeword
Number of check symbols per codeword
Field polynomial
First root of generator polynomial
Space between roots in generator polynomial
Decoder features:
Variable option
Erasures-supporting option
Encoder features variable architectures
Support for shortened codewords
Conforms to Consultative Committee for Space Data Systems (CCSDS)
Recommendations for Telemetry Channel Coding, May 1999
DSP Builder ready
IP functional simulation models for use in Altera-supported VHDL and Verilog
HDL simulators
December 2014 Altera Corporation Reed-Solomon Compiler
User Guide
1–2 Chapter 1: About This Compiler

Release Information

Support for OpenCore Plus evaluation
Release Information
Tab le 1– 1 provides information about this release of the Reed-Solomon (RS) Compiler.
Table 1–1. RS Compiler Release Information
Item Description
Version 14.1
Release Date December 2014
Ordering Codes
Product IDs
Vendor ID 6AF7
f For more information about this release, refer to the MegaCore IP Library Release Notes.
IP-RSENC (Encoder)
IP-RSDEC (Decoder)
0039 0041 (Encoder)
0080 0041 (Decoder)
Altera verifies that the current version of the Quartus previous version of each MegaCore report any exceptions to this verification. Altera does not verify compilation with MegaCore function versions older than one release.

Device Family Support

Altera offers the following device support levels for Altera IP cores:
Preliminary support—Altera verifies the IP core with preliminary timing models
for this device family. The IP core meets all functional requirements, but might still be undergoing timing analysis for the device family. You can use it in production designs with caution.
Final support—Altera verifies the IP core with final timing models for this device
family. The IP core meets all functional and timing requirements for the device family and can be used in production designs.
Tab le 1– 2 shows the level of support offered by the RS Compiler to each of the Altera
device families.
Table 1–2. Device Family Support (Part 1 of 2)
®
II GX Final
Arria
Arria II GZ Final
Arria V final
®
Cyclone
Stratix
Stratix IV GX/E Final
Stratix V Final
IV GX Final
®
IV GT Final
®
®
function. The MegaCore IP Library Release Notes
II software compiles the
Device Family Support
Reed-Solomon Compiler December 2014 Altera Corporation User Guide
Chapter 1: About This Compiler 1–3

Performance and Resource Utilization

Table 1–2. Device Family Support (Part 2 of 2)
Device Family Support
Stratix GX Final
Other device families No support
Performance and Resource Utilization
Tab le 1– 3 shows the typical performance using the Quartus II software for Stratix IV
(EP4SGX70DF29C2X) devices.
Table 1–3. Performance—Stratix IV Devices
Parameters
Options Keysize
Bits
(1)
Symbols
(2)
Check
(3)
ALUTs
Logic
Registers
Memory
ALUTs M9K
f
MAX
(MHz)
Throughput
(Mbps)
Standard decoder Half 4 15 6 426 382 8 3 413 387
Standard decoder Half 8 204 16 1,220 1,034 64 3 368 2,945
Split bit error decoder Half 8 204 16 1,273 1,092 64 3 340 2,719
Full bit error decoder Half 8 204 16 1,255 1,092 64 3 325 2,603
Standard decoder Half 8 255 32 2,100 1,713 64 3 324 2,038
Variable decoder Half 8 204 16 1,362 1,119 64 3 356 2,850
Erasures decoder Half 8 204 16 2,170 1,596 64 3 314 2,510
Erasures and variable decoder
Half 8 204 16 2,322 1,746 96 3 310 2,480
Standard encoder 8 204 16 204 210 620 4,960
Variable encoder 8 204 16 777 313 387 3,099
Variable encoder 8 204 32 1,651 582 347 2,775
Notes to Table 1–3:
(1) The number of bits per symbol (m). (2) The number of symbols per codeword (N). (3) The number of check symbols per codeword (R).
The throughput in megabits per second (Mbps) is derived from the formulas in
Table 3–9 on page 3–11 and maximum frequency at which the design can operate.
December 2014 Altera Corporation Reed-Solomon Compiler
User Guide
1–4 Chapter 1: About This Compiler
Performance and Resource Utilization
Reed-Solomon Compiler December 2014 Altera Corporation User Guide

Installing and Licensing IP Cores

acds
quartus - Contains the Quartus II software
ip - Contains the Altera IP Library and third-party IP cores
altera - Contains the Altera IP Library source code
<IP core name> - Contains the IP core source files
The Quartus II software includes the Altera IP Library. The library provides many useful IP core functions for production use without additional license. You can fully evaluate any licensed Altera IP core in simulation and in hardware until you are satisfied with its functionality and performance.
Some Altera IP cores, such as MegaCore separate license for production use. After you purchase a license, visit the Self Service
Licensing Center to obtain a license number for any Altera product. For additional
information, refer to Altera Software Installation and Licensing.
Figure 2–1. IP core Installation Path

2. Getting Started

®
functions, require that you purchase a
1 The default installation directory on Windows is <drive>:\altera\<version number>;
on Linux it is <home directory>/altera/<version number>.

OpenCore Plus IP Evaluation

Altera's free OpenCore Plus feature allows you to evaluate licensed MegaCore IP cores in simulation and hardware before purchase. You need only purchase a license for MegaCore IP cores if you decide to take your design to production. OpenCore Plus supports the following evaluations:
Simulate the behavior of a licensed IP core in your system.
Verify the functionality, size, and speed of the IP core quickly and easily.
Generate time-limited device programming files for designs that include IP cores.
Program a device with your IP core and verify your design in hardware.
OpenCore Plus evaluation supports the following two operation modes:
Untethered—run the design containing the licensed IP for a limited time.
Tethered—run the design containing the licensed IP for a longer time or
indefinitely. This requires a connection between your board and the host computer.
All IP cores using OpenCore Plus in a design time out simultaneously when any IP core times out.
December 2014 Altera Corporation Reed-Solomon Compiler
User Guide
2–2 Chapter 2: Getting Started

Specifying IP Core Parameters and Options

OpenCore Plus Time-Out Behavior

OpenCore Plus hardware evaluation supports the following operation modes:
Untethered—the design runs for a limited time.
Tethered—requires a connection between your board and the host computer. If
tethered mode is supported by all megafunctions in a design, the device can operate for a longer time or indefinitely.
All megafunctions in a device time-out simultaneously when the most restrictive evaluation time is reached. If there is more than one megafunction in a design, a specific megafunction’s time-out behavior might be masked by the time-out behavior of the other megafunctions.
The untethered time-out for a RS Compiler MegaCore function is one hour; the tethered time-out value is indefinite.
Your design stops working after the hardware evaluation time expires and the data output
rsout
remains low.
Specifying IP Core Parameters and Options
The parameter editor GUI allows you to quickly configure your custom IP variation. Use the following steps to specify IP core options and parameters in the Quartus II software. Refer to Specifying IP Core Parameters and Options (Legacy Parameter Editors) for configuration of IP cores using the legacy parameter editor.
1. In the IP Catalog (Tools > IP Catalog), locate and double-click the name of the IP core to customize. The parameter editor appears.
2. Specify a top-level name for your custom IP variation. The parameter editor saves the IP variation settings in a file named .<your_ip>qsys. Click OK.
3. Specify the parameters and options for your IP variation in the parameter editor, including one or more of the following. Refer to your IP core user guide for information about specific IP core parameters.
Optionally select preset parameter values if provided for your IP core. Presets
specify initial parameter values for specific applications.
Specify parameters defining the IP core functionality, port configurations, and
device-specific features.
Specify options for processing the IP core files in other EDA tools.
4. Click Generate HDL, the Generation dialog box appears.
5. Specify output file generation options, and then click Generate. The IP variation files generate according to your specifications.
6. To generate a simulation testbench, click Generate > Generate Testbench System.
7. To generate an HDL instantiation template that you can copy and paste into your text editor, click Generate > HDL Example.
8. Click Finish. The parameter editor adds the top-level .qsys file to the current project automatically. If you are prompted to manually add the .qsys file to the project, click Project > Add/Remove Files in Project to add the file.
Reed-Solomon Compiler December 2014 Altera Corporation User Guide
Chapter 2: Getting Started 2–3

Parameterizing the Reed Solomon MegaCore Function

9. After generating and instantiating your IP variation, make appropriate pin assignments to connect ports.
f For information about using a legacy parameter editor, refer to “Specifying IP Core
Parameters and Options (Legacy Parameter Editors)” in the Introduction to Altera IP
Cores.
Parameterizing the Reed Solomon MegaCore Function
To parameterize your MegaCore function, follow these steps:
1. Select Encoder or Decoder.
2. If you select Encoder, you can also turn on the Va r ia b l e option.
For more information about the variable option, refer to “Variable Encoding and
Decoding” on page 3–3.
3. If Decoder is selected, the following controls are available:
a. You can turn on the Erasures-supporting decoder or Va r ia b l e options.
b. You can select Full or Half keysize.
c. You can turn on the Error Symbol or Bit Error outputs. For the bit error output,
you can select Split Count or Full Count.
For more information about these parameters, refer to Table 3–2 on page 3–7.
4. Click Next.
5. Select the parameters that define the specific RS codeword that you wish to implement (Figure 2–5).
1 You can enter the parameters individually, or click DVB Standard to use
digital video broadcast (DVB) standard values, or CCSDS Standard to use the CCSDS standard values.
For more information about these parameters, refer to Table 3–3 on page 3–8.
6. Click Next.
7. For a decoder throughput calculation, enter the frequency in MHz, select the desired units, and click Calculate. Figure 2–6 shows the decoder throughput calculation page.
For more information about the throughput calculator, refer to “Throughput
Calculator” on page 3–10.
8. Click Finish.
For more information about the RS Compiler parameters, refer to “Parameters” on
page 3–7.
December 2014 Altera Corporation Reed-Solomon Compiler
User Guide
2–4 Chapter 2: Getting Started

Generated Files (For Arria V, Cyclone V, MAX 10, and Stratix V Devices)

Generated Files (For Arria V, Cyclone V, MAX 10, and Stratix V Devices)
Tab le 2– 1 describes the generated files and other files that may be in your project
directory. The names and types of files specified in the IP Toolbench report vary based on whether you created your design with VHDL or Verilog HDL.
Table 2–1. Generated Files
(1)
Filename Description
<variation name>.bsf
Quartus II symbol file for the MegaCore function variation. You can use this file in the Quartus II block diagram editor.
<variation name>.vo or .vho VHDL or Verilog HDL IP functional simulation model.
A MegaCore function variation file, which defines a VHDL or Verilog HDL top-level
<variation name>.vhd, or .v
description of the custom MegaCore function. Instantiate the entity defined by this file inside of your design. Include this file when compiling your design in the Quartus II software.
A VHDL component declaration for the custom MegaCore function. Add the
<variation name>.cmp
contents of this file to any VHDL architecture that instantiates the MegaCore function.
<variation name>_nativelink.tcl
<
variation name>_syn.v or .vhd A timing and resource netlist for use in some third-party synthesis tools.
Tcl Script that sets up NativeLink in the Quartus II software to natively simulate the design using selected EDA tools.
The testbench variation file, which defines the top-level testbench that runs the
<variation name>_testbench.vhd
simulation. This file instantiates the function variation file and the testbench from the reed_solomon\lib directory.
<variation name>_vsim_script.tcl Starts the MegaCore function simulation in the ModelSim simulator.
<variation name>_block_period_stim.txt
The testbench stimuli includes information such as number of codewords, number of symbols, and check symbols for each codeword
<variation name>_encoded_data.txt Contains the encoded test data.
<variation name>.html A MegaCore function report file in hypertext markup language format.
A single Quartus II IP file is generated that contains all of the assignments and other
<variation name>.qip
information required to process your MegaCore function variation in the Quartus II compiler. You are prompted to add this file to the current Quartus II project when you exit the parameter editor.
Reed-Solomon Compiler December 2014 Altera Corporation User Guide
Chapter 2: Getting Started 2–5

Files Generated for Altera IP Cores

Files Generated for Altera IP Cores
The Quartus II software version 14.0 Arria 10 Edition and later generates the following output file structure for Altera IP cores:
Figure 2–2. IP Core Generated Files
<Project Directory>
<your_ip>.qsys - System or IP integration file
<your_ip>.sopcinfo - Software tool-chain integration file
<your_ip> - IP core variation files
<your_ip>.cmp - VHDL component declaration file
<your_ip>_bb.v - Verilog HDL black box EDA synthesis file
<your_ip>_inst.v or .vhd - Sample instantiation template
<your_ip>.ppf - XML I/O pin information file
<your_ip>.qip - Lists IP synthesis files
<your_ip>.sip - Lists files for simulation
<your_ip>_generation.rpt - IP generation report
<your_ip>.debuginfo - IP generation report
<your_ip>.html - Contains memory map
<your_ip>.bsf - Block symbol schematic
<your_ip>.spd - Combines individual simulation startup scripts
sim - IP simulation files
<your_ip>.v or .vhd - Top-level simulation file
<EDA_tool_name> - Simulator setup scripts
<simulator_setup_scripts>
synth - IP synthesis files
<your_ip>.v or .vhd - Top-level IP synthesis file
<IP subcore library> - IP subcore files
sim
<HDL files>
<your_testbench>_tb - Simulation testbench files
<your_ip>_tb.qsys - Testbench system file
<your_testbench>_tb
1. If supported and enabled for your IP variation
1
<your_testbench>_tb.csv
<your_testbench>_tb.spd
sim - IP core simulation files
1
1

Simulating IP Cores

The Quartus II software supports RTL- and gate-level design simulation of Altera IP cores in supported EDA simulators. Simulation involves setting up your simulator working environment, compiling simulation model libraries, and running your simulation.
You can use the functional simulation model and the testbench or example design generated with your IP core for simulation. The functional simulation model and testbench files are generated in a project subdirectory. This directory may also include scripts to compile and run the testbench. For a complete list of models or libraries required to simulate your IP core, refer to the scripts generated with the testbench. You can use the Quartus II NativeLink feature to automatically generate simulation files and scripts. NativeLink launches your preferred simulator from within the Quartus II software.
For more information about simulating Altera IP cores, refer to Simulating Altera
Designs in volume 3 of the Quartus II Handbook.
December 2014 Altera Corporation Reed-Solomon Compiler
User Guide
2–6 Chapter 2: Getting Started
Adds new global IP search paths
Changes search path order
Adds new project-specific IP search paths
Lists current project and global search paths

Adding IP Cores to IP Catalog

Adding IP Cores to IP Catalog
The IP Catalog automatically displays Altera IP cores found in the project directory, in the Altera installation directory, and in the defined IP search path. The IP Catalog can include Altera-provided IP components, third-party IP components, custom IP components that you provide, and previously generated Qsys systems.
You can use the IP Search Path option (Tools > Options) to include custom and third- party IP components in the IP Catalog. The IP Catalog displays all IP cores in the IP search path. The Quartus II software searches the directories listed in the IP search path for the following IP core files:
Component Description File (_hw.tcl)—Defines a single IP core.
IP Index File (.ipx)—Each .ipx file indexes a collection of available IP cores, or a
reference to other directories to search. In general, .ipx files facilitate faster searches.
The Quartus II software searches some directories recursively and other directories only to a specific depth. When the search is recursive, the search stops at any directory that contains an _hw.tcl or .ipx file. In the following list of search locations, a recursive descent is annotated by **. A single * signifies any file.
Table 2–2. IP Search Locations
Location Description
PROJECT_DIR/*
PROJECT_DIR/ip/**/*
Finds IP components and index files in the Quartus II project directory.
Finds IP components and index files in any subdirectory of the /ip subdirectory of the Quartus project directory.
Figure 2–3. Specifying IP Search Locations
If the Quartus II software recognizes two IP cores with the same name, the following search path precedence rules determine the resolution of files:
Reed-Solomon Compiler December 2014 Altera Corporation User Guide
Chapter 2: Getting Started 2–7

Upgrading Outdated IP Cores

1. Project directory files.
2. Project database directory files.
3. Project libraries specified in IP Search Locations, or with the assignment in the Quartus II Settings File (.qsf).
4. Global libraries specified in IP Search Locations, or with the assignment in the Quartus II Settings File (.qsf).
5. Quartus II software libraries directory, such as <Quartus II Installation>\libraries.
1 If you add a component to the search path, you must refresh your system by clicking
File > Refresh to update the IP Catalog.
Upgrading Outdated IP Cores
IP cores generated with a previous version of the Quartus II software may require upgrade before use in the current version of the Quartus II software. Click Project > Upgrade IP Components to identify and upgrade outdated IP cores.
The Upgrade IP Components dialog box provides instructions when IP upgrade is required, optional, or unsupported for specific IP cores in your design. Most Altera IP cores support one-click, automatic simultaneous upgrade. You can individually migrate IP cores unsupported by auto-upgrade.
The Upgrade IP Components dialog box also reports legacy Altera IP cores that support compilation-only (without modification), as well as IP cores that do not support migration. Replace unsupported IP cores in your project with an equivalent Altera IP core or design logic.Upgrading IP cores changes your original design files.
SEARCH_PATH
SEARCH_PATH
Before you begin
Migrate your Quartus II project containing outdated IP cores to the latest version
of the Quartus II software. In a previous version of the Quartus II software, click Project > Archive Project to save the project. This archive preserves your original design source and project files after migration. le paths in the archive must be relative to the project directory. File paths in the archive must reference the IP variation .v or .vhd file or .qsys file, not the .qip file.
Restore the project in the latest version of the Quartus II software. Click Project >
Restore Archived Project. Click Ok if prompted to change to a supported device
or overwrite the project database.
To upgrade outdated IP cores, follow these steps:
1. In the latest version of the Quartus II software, open the Quartus II project containing an outdated IP core variation.
1 File paths in a restored project archive must be relative to the project
directory and you must reference the IP variation .v or .vhd file or .qsys file, not the .qip file.
2. Click Project > Upgrade IP Components. The Upgrade IP Components dialog box displays all outdated IP cores in your project, along with basic instructions for upgrading each core.
December 2014 Altera Corporation Reed-Solomon Compiler
User Guide
2–8 Chapter 2: Getting Started
Displays upgrade status for all IP cores in the Project
Upgrades all IP core that support “Auto Upgrade”
Upgrades individual IP cores unsupported by “Auto Upgrade”
Checked IP cores
support “Auto Upgrade”
Successful “Auto Upgrade”
Upgrade unavailable
Double-click to individually migrate

DSP Builder Design Flow

3. To simultaneously upgrade all IP cores that support automatic upgrade, click
Perform Automatic Upgrade. The IP cores upgrade to the latest version. The Status and Ve rs i on columns reflect the update.
Figure 2–4. Upgrading IP Cores

Upgrading IP Cores at the Command Line

Alternatively, you can upgrade IP cores at the command line. To upgrade a single IP core, type the following command:
quartus_sh --ip_upgrade -variation_files <my_ip_path> <project>
To upgrade a list of IP cores, type the following command:
quartus_sh --ip_upgrade -variation_files "<my_ip>.qsys;<my_ip>.<hdl>; <project>"
1 IP cores older than Quartus II software version 12.0 do not support upgrade. Altera
verifies that the current version of the Quartus II software compiles the previous version of each IP core. The MegaCore IP Library Release Notes reports any verification exceptions for MegaCore IP. The Quartus II Software and Device Support Release Notes reports any verification exceptions for other IP cores. Altera does not verify compilation for IP cores older than the previous two releases.
DSP Builder Design Flow
DSP Builder shortens digital signal processing (DSP) design cycles by helping you create the hardware representation of a DSP design in an algorithm-friendly development environment.
Reed-Solomon Compiler December 2014 Altera Corporation User Guide
Chapter 2: Getting Started 2–9
DSP Builder Design Flow
This IP core supports DSP Builder. Use the DSP Builder flow if you want to create a DSP Builder model that includes an IP core variation; use IP Catalog if you want to create an IP core variation that you can instantiate manually in your design.
f For more information about the DSP Builder flow, refer to the Using MegaCore
Functions chapter in the DSP Builder Handbook.
December 2014 Altera Corporation Reed-Solomon Compiler
User Guide
2–10 Chapter 2: Getting Started
DSP Builder Design Flow
Reed-Solomon Compiler December 2014 Altera Corporation User Guide

Background

0010 0110 1010 0011 0111 1011
Information symbols, which contain the original data.
Check symbols, added by the RS encoder before transmission over a communications channel.
Symbol
Codeword
4 to 10 bits per symbol.
R – 1
g(x) = (x –
a.i + i
0
)
i = 0

3. Functional Description

To use Reed-Solomon (RS) codes, a data stream is first broken into a series of codewords. Each codeword consists of several information symbols followed by several check symbols (also known as parity symbols or redundant symbols). Symbols can contain an arbitrary number of bits. In an error correction system, the encoder adds check symbols to the data stream prior to its transmission over a communications channel. When the data is received, the decoder checks for and corrects any errors (Figure 3–1).
Figure 3–1. RS Codeword Example
RS codes are described as (N,K), where N is the total number of symbols per codeword and K is the number of information symbols. R is the number of check symbols (NK). Errors are defined on a symbol basis. Any number of bit errors within a symbol is considered as only one error.
RS codes are based on finite-field (i.e., Galois field) arithmetic. Any arithmetic operation (addition, subtraction, multiplication, and division) on a field element gives a result that is an element of the field. The size of the Galois field is determined by the number of bits per symbol—specifically, the field has 2
m
elements, where m is the
number of bits per symbol. A specific Galois field is defined by a polynomial, which is user-defined for the RS Compiler. IP Toolbench lets you select only valid field polynomials.
The maximum number of symbols in a codeword is limited by the size of the finite field to 2
m
– 1. For example, a code based on 10-bit symbols can have up to 1,023
symbols per codeword. The RS Compiler supports shortened codewords.
The following equation represents the generator polynomial of the code:
where:
i0 is the first root of the generator polynomial a is the rootspace R is the number of check symbols
is a root of the polynomial.
December 2014 Altera Corporation Reed-Solomon Compiler
User Guide
3–2 Chapter 3: Functional Description
3
g(x) = (x –
i + i
0
)
i = 0
Background
For example, for the following information:
8
a is a root of the binary primitive polynomial x
+ x7 + x2 + x + 1
i0 = 120
You can calculate the following parameters:
R – 1 = 3
a = 1 (
is to the power 1 times i)
The field polynomial can be obtained by replacing x with 2, thus:
8
2
+ 27 + 22 +2 + 1 = 391

Erasures

In normal operation, the RS decoder detects and corrects symbol errors.
The number of symbol errors that can be corrected, C, depends on the number of check symbols, R and is given by C
If the location of the symbol errors is marked as an erasure, the RS decoder can correct twice as many errors, so C
R.
1 Erasures are symbol errors with a known location.
External circuitry identifies which symbols have errors and passes this information to the decoder using the
eras_sym
signal. The
the erasures-supporting decoder option is selected).
The RS decoder can work with a mixture of erasures and errors.
A codeword is correctly decoded if (2e + E)
where:
R/2.
eras_sym
R
input indicates an erasure (when
e = errors with unknown locations E = erasures R = number of check symbols.
For example, with ten check symbols the decoder can correct ten erasures, or five symbol errors, or four erasures and three symbol errors.
1 If the number of erasures marked approaches the number of check symbols, the
ability to detect errors without correction (
decfail
asserted) diminishes. Refer to
Table 3–1 on page 3–4.

Shortened Codewords

A shortened codeword contains fewer symbols than the maximum value of N, which
m
is 2
–1. A shortened codeword is mathematically equivalent to a maximum-length
code with the extra data symbols at the start of the codeword set to 0.
For example, (204,188) is a shortened codeword of (255,239). Both of these codewords use the same number of check symbols, 16.
Reed-Solomon Compiler December 2014 Altera Corporation User Guide
Chapter 3: Functional Description 3–3
clk
sink_ena
sink_val
sink_sop
sink_eop
rsin[8:1]
source_ena
source_val
source_sop
source_eop
rsout[8:1]
01 02 03 04 05 06 07 08 09 09 10 11 12 13 14 15 16
01 02 03 04 05 06 07 08 P1 P2 P3 P4 P5 09 10 12 11 12 13 14 15 16 P6 P7 P8 P9

RS Encoder

To use shortened codewords with the Altera RS encoder and decoder, you use IP Toolbench to set the codeword length to the correct value, in the example, 204.

Variable Encoding and Decoding

Under normal circumstances, the encoder and decoder allow variable encoding and decoding—you can change the number of symbols per codeword (N) using
sink_eop
but not the number of check symbols while decoding.
1 However, you cannot change the length of the codeword, if you turn on the erasure-
supporting option.
If you turn on the variable option, you can vary the number of symbols per codeword (using the
numn
signal) and the number of check symbols (using the
numcheck
signal), in real time, from their minimum allowable values up to their selected values, even with the erasures-supporting option turned on. Table 3–7 on page 3–10 shows the variable option signals.
RS Encoder
,
The
sink_val
1 Only assert
By de-asserting symbols after check symbols for the current codeword. Figure 3–2 shows the operation of the RS encoder. The example shows a codeword with eight information symbols and five check symbols.
Figure 3–2. Encoder Timing
sink_sop
signal starts a codeword;
indicates valid data. The
sink_val
one clock cycle after the encoder asserts
sink_ena
sink_eop
sink_eop
sink_sop
signals its termination. An asserted
is only valid when
sink_val
sink_ena
is asserted.
.
, the encoder signals that it cannot sink more incoming
is signalled at the input. During this time it is generating the
The
numcheck
December 2014 Altera Corporation Reed-Solomon Compiler
input is latched inside the encoder when
sink_sop
is asserted.
User Guide
3–4 Chapter 3: Functional Description
clk
sink_ena
sink_val
sink_sop
sink_eop
rsin[8:1]
source_ena
source_val
source_sop
source_eop
rsout[8:1]
numcheck[4:1]
01 02 03 04 05 06 07 08 09 10 11 12
01 02 03 04 05 06 07 08 P1 P2 P3 P4 P5 09 10 11 12
05 05

RS Decoder

You can change the number of symbols in a codeword at run-time without resetting the encoder. You must make the changes between complete codewords; you cannot change
numcheck
during encoding. Figure 3–3 shows variable encoding.
Figure 3–3. Variable Encoding
RS Decoder
The decoder implements an Avalon-ST-based pipelined three-codeword-depth architecture. However, if the parameters are in the continuous range (refer to
Table 3–3 on page 3–8), the decoder shows continuous behavior and can accept a new
symbol every clock cycle.
The decoder is self-flushing—it processes and delivers a codeword without needing a new codeword to be fed in. Therefore, latency between the input and output does not depend on the availability of input data. The throughput latency is approximately three codewords
The reset is active high and can be asserted asynchronously. However, it has to be de­asserted synchronously with
The RS decoder always tries to detect and correct errors in the codeword. However, as the number of errors increases, the decoder gets to a stage where it can no longer correct but only detect errors, at which point the decoder asserts the As the number of errors increases still further, the results become unpredictable.
Tab le 3 –1 shows how the decoder corrects and detects errors depending on R.
Table 3–1. Decoder Detection and Correction
Number of Errors Decoder Behavior
Errors
R/2
R/2 Decoder detects and corrects errors.
errors R Decoder asserts
Errors R Unpredictable results.
Note to Tab le 3– 1:
(1) The decoder may fail to assert
between the number of erasures and R is small (4, 5 or 6).
Reed-Solomon Compiler December 2014 Altera Corporation User Guide
clk
decfail,
.
decfail
decfail
for low values of R (4,5, or 6), or when using erasures and the differences
and can only detect errors.
(1)
signal.
Chapter 3: Functional Description 3–5
clk
sink_ena
sink_val
sink_sop
sink_eop
rsin[8:1]
source_ena
source_val
source_sop
source_eop
rsout[8:1]
numcheck[4:1]
numn[4:1]
01 02 03 04 05 06 07 08
P1 P2P3P4
P5 09 10 11 12 13
01 02 03 04 05 06 07 08P1P2 P3 P4
P5
12
05 05
13 13
RS Decoder
The RS decoder observes Avalon-ST interface standard for input and output data. One clock cycle after the decoder asserts accepts the data at
numcheck
and
rsin
as valid data. The codeword is started with
numn
signals are latched to
sink_ena
sink_sop
, you can assert
.
sink_val
sink_sop
. The decoder
. The
The codeword is finished when one clock cycle onwards the decoder cannot process any more data until asserted again.
At the output the operation is identical. If you assert
source_val
and end of the codeword with
Figure 3–4 shows the operation of the RS decoder.
Figure 3–4. Decoder Timing
sink_eop
and provides valid data on
source_sop
is asserted. If
rsout
if available. Also, it indicates the start
and
source_eop
sink_ena
source_ena
respectively.
is de-asserted, from
, the decoder asserts
sink_ena
is
The decoder has the following optional outputs, which you turn on in IP Toolbench:
Error symbol
Bit error count

Error Symbol Output

The error symbol output, decoder finds the error values and location and adds these values in the Galois field to the input value. Galois field addition and subtraction is the same operation. An operation performs this operation between bits of the two values.
December 2014 Altera Corporation Reed-Solomon Compiler
rserr
is the Galois field error correction value. The RS
XOR
User Guide
3–6 Chapter 3: Functional Description
Memory
& Control
Syndrome
Calculation
rsin rserr
rsout
Solve Key
Equation
Chien Search
& Forney's
Algorithm

Interfaces

Figure 3–5 on page 3–6 shows the error symbol output.
Figure 3–5. Error Symbol Output
rserr
Whenever place. The
is not 0 (while
rsout
is the
rserr XOR
decfail
is 0), an error correction successfully takes
ed with the corresponding
rsin
, where
XOR
is done
for each bit, so you know that the respective symbol has been corrected. The value of
rserr
shows which bits of the symbol have been corrected. For each bit of
is 1, the corresponding bit of
The
rsout
and the corresponding
rsout
rserr
is corrected.
value appear at the output at the same clock
rserr
that
cycle.

Bit Error Count

Interfaces
The decoder can provide the bit error count found in the correction process. The bit error count has the following options:
Full count. The output
Split count. The outputs
num_err_bit
num_err_bit0
is connected, which shows the valid value.
and
num_err_bit1
are connected, which
show the valid values
For information about these outputs, refer to Table 3–8 on page 3–10.
The RS encoder and decoder use the Avalon® Streaming (Avalon-ST) interface for data input and output. The input is an Avalon-ST sink and the output is an Avalon-ST source. The Avalon-ST interface
READY_LATENCY
parameter is set to 1. The Avalon-ST
interfaces allow for flow control.
The Avalon-ST interface is an evolution of the Atlantic
interface. The Avalon-ST interface defines a standard, flexible, and modular protocol for data transfers from a source interface to a sink interface and simplifies the process of controlling the flow of data in a datapath. The Avalon-ST interface signals can describe traditional streaming interfaces supporting a single stream of data without knowledge of channels or packet boundaries. Such interfaces typically contain data, ready, and valid signals.
The Avalon-ST interface can also support more complex protocols for burst and packet transfers with packets interleaved across multiple channels. The Avalon-ST interface inherently synchronizes multi-channel designs, which allows you to achieve efficient, time-multiplexed implementations without having to implement complex control logic.
Reed-Solomon Compiler December 2014 Altera Corporation User Guide
Chapter 3: Functional Description 3–7
Avalon ST Interface
Source
source_val
source_ena
source_eop
decbit
source_sop
User Module
Sink
ena
val
sop
eop
dat
Avalon ST Interface
User Module
Source
ena
val
sop
eop
dat
Sink
RS Encoder or Decoder
sink_val
sink_ena
sink_eop rr/eras_sym
sink_sop

Parameters

The Avalon-ST interface supports backpressure, which is a flow control mechanism, where a sink can signal to a source to stop sending data. The sink typically uses backpressure to stop the flow of data when its FIFO buffers are full or when there is congestion on its output. When designing a datapath, which includes the RS MegaCore function, you may not need backpressure if you know the downstream components can always receive data. You may achieve a higher clock rate by driving the source ready signal signal
sink_ena
.
source_ena
of the RS high, and not connecting the sink ready
f For more information about the Avalon-ST interface, refer to the Avalon Interface
Specifications.
Figure 3–6 shows the RS encoder and decoder Avalon-ST interfaces.
Figure 3–6. Avalon ST Interface
Parameters
Tab le 3 –2 shows the implementation parameters.
Table 3–2. Implementation Parameters
Parameter Value Description
Function
Encoder or Decoder
Variable On or Off
Erasures-supporting decoder
(1)
Error symbol
Bit error
Keysize
Note to Table 3–2:
(1) This parameter applies to the decoder only.
December 2014 Altera Corporation Reed-Solomon Compiler
(1)
(1)
(1)
On or Off
On or Off
On or Off
Half or Full.
Specifies an encoder or a decoder. Refer to “Functional Description” on
page 3–1.
Specifies the variable option. Refer to “Variable Encoding and Decoding” on
page 3–3.
Specifies the erasures-supporting decoder option. This option substantially increases the logic resources used. Refer to “Erasures” on page 3–2.
Specifies the error symbol output. Refer to “RS Decoder” on page 3–4 and
Table 3–8 on page 3–10.
You can set the bit error output to be either Split count or Full count. Refer to
“RS Decoder” on page 3–4 and Table 3–8 on page 3–10.
The keysize parameter allows you to trade off the amount of logic resources against the supported throughput. Full has twice as many Galois field multipliers as half. A full decoder uses more logic and is probably slightly slower in frequency, but supports a higher throughput. If both full and half give you the required throughput for your parameters, always select half.
User Guide
3–8 Chapter 3: Functional Description

Signals

Tab le 3 –3 shows the RS codeword parameters.
Table 3–3. RS Codeword Parameters
Parameter Range
Number of bits per symbol
Number of symbols per codeword
Number of check symbols per codeword
3 to 12 6 to 12 Specifies the number of bits per symbol (m).
m
– 1) 7(R + 1) to 2m – 1
5 to (2
2 to min(128, N – 1) 4 to N/7 – 1
Field polynomial Any valid polynomial
First root of generator polynomial
Root spacing in generator polynomial
Notes to Table 3–3:
(1) IP Toolbench allows you to select only legal values. For m > 8, not all legal values of the field polynomials and rootspace are present in IP
Toolbench. If you cannot find your intended field polynomial or rootspace in the IP Toolbench list, contact Altera MySupport.
Any valid root space
0 to (2
m
Range
(Continuous)
– 2)
Description
Specifies the total number of symbols per codeword (N).
Specifies the number of check symbols per codeword (R)
(1)
Specifies the primitive polynomial defining the Galois field.
Specifies the first root of the generator polynomial
).
(i
0
(1)
Specifies the minimum distance between roots in the generator polynomial (a).
Signals
Tab le 3 –4 shows the global signals.
Table 3–4. Global Signals
Name Description
clk clk
reset
is the main system clock. The whole MegaCore function operates on the rising edge of
Reset. The entire decoder is asynchronously reset when reset is asserted high. The
reset
entire system. The
signal must be de-asserted synchronously with respect to the rising edge of
clk
reset
signal resets the
.
clk
.
Reed-Solomon Compiler December 2014 Altera Corporation User Guide
Chapter 3: Functional Description 3–9
Signals
Tab le 3 –5 shows the Avalon-ST sink (data input) interface.
Table 3–5. Avalon-ST Sink Interface
Name
Avalon-ST
Type
sink_ena ena
sink_val val
sink_sop sop
sink_eop eop
rsin[m:1] data
eras_sym data
Direction Description
Output
Data transfer enable signal.
sink_ena
the flow of data across the interface. to source. When the source observes
clk
drives, on the following
val
asserts
, if data is available. The sink interface captures the data interface signals on the following data, it de-asserts
val
rising edge, the Avalon-ST data interface signals and
clk
rising edge. If the source is unable to provide new
for one or more clock cycles until it is prepared to drive valid
is driven by the sink interface and controls
sink_ena
sink_ena
data interface signals.
Input
Data valid signal.
sink_val
updated on every clock edge where bus hold their current value if asserted, the Avalon-ST data interface signals are valid. When
indicates the validity of the data signals.
sink_ena
sink_ena
is de-asserted. When
asserted, the Avalon-ST data interface signals are invalid and must be disregarded. To determine whether new data has been received, the sink interface qualifies the
Input
Input
Input
Input
sink_val
Start of packet (codeword) signal.
rsin
bus. sink_
End of packet (codeword) signal. sink_
rsin
sink_
Data input for each codeword, symbol by symbol. Valid only when asserted.
When asserted, the symbol in decoder with Erasures-supporting decoder option.
signal with the previous state of the
sop
delineates the codeword boundaries on the
bus. When sink_
sop
is asserted on the first transfer of every codeword.
bus. When sink_
eop
is asserted on the last transfer of every packet.
sop
is high, the start of the packet is present on the
eop
delineates the packet boundaries on the
eop
is high, the end of the packet is present on the
rsin[]
is marked as an erasure. Valid only for the
behaves as a read enable from sink
asserted on the
clk
rising edge it
sink_val
is asserted.
sink_ena
sink_val
sink_val
sink_val
signal.
and the
is
is de-
dat
rsin
dat
bus.
sink_val
is
is
Tab le 3 –6 shows the Avalon-ST source (data output) interface.
Table 3–6. Avalon-ST Source Interface (Part 1 of 2)
Name
source_ena ena
Avalon-ST
Type
Direction Description
Data transfer enable signal.
source_ena
is driven by the sink interface and controls the flow of data across the interface. sink to source. When the source interface observes
clk
Input
rising edge it drives, on the following
interface signals and asserts
source_val
clk
when data from sink interface is
ena
behaves as a read enable from
source_ena
asserted on the
rising edge, the Avalon-ST data
available. The sink interface captures the data interface signals on the following
clk
rising edge. If this source is unable to provide new data, it de-asserts
source_val
for one or more clock cycles until it is prepared to drive valid data
interface signals.
source_val val
source_sop sop
source_eop eop
December 2014 Altera Corporation Reed-Solomon Compiler
Output
Output Start of packet (codeword) signal.
Output End of packet (codeword) signal.
Data valid signal. source_val is asserted high, whenever there is a valid output on
rsout
; it is de-asserted when there is no valid output on
rsout
.
User Guide
3–10 Chapter 3: Functional Description

Throughput Calculator

Table 3–6. Avalon-ST Source Interface (Part 2 of 2)
Name
rsout data
rserr data
Avalon-ST
Type
Direction Description
The
rsout
Output
Output
corrected symbols are in the same order that they were entered.
Error correction value (decoder only, optional). Refer to “Error Symbol Output” on
page 3–5.
signal contains decoded output when source_val is asserted. The
Tab le 3 –7 shows the configuration signals.
Table 3–7. Configuration Signals
Name Description
bypass
numcheck
numn
A one-bit signal that sets if the codewords are bypassed or not (decoder only). The decoder continuously
bypass
samples
Sets the variable number of check symbols up to a maximum value set by the parameter R (variable option only). The decoder samples
Variable value of N. Can be any value from the minimum allowable value of N up to the selected value of N (variable and erasures-supporting option only). The decoder samples asserted.
.
numcheck
only when
Tab le 3 –8 shows the status signals (decoder only).
Table 3–8. Status Signals
sink_sop
is asserted.
numn
only when
sink_sop
is
Name Description
decfail
num_err_sym
num_err_bit
num_err_bit0
num_err_bit1
Indicates non-correctable codeword. Valid when
Number of symbols errors. Valid when
Number of bits errors corrected in the codeword. Valid when
decfail
Decoder” on page 3–4.
Number of bit errors for the corrections from bit 1 to bit 0. The latest is the correct bit. Valid when
sop_source
next option is turned on.
Number of bit errors for the corrections from bit 0 to bit 1. The latest is the correct bit. Valid when
sop_source
next option is turned on.
is asserted. Connected only when the Bit error (Full count) option is turned on. Refer to “RS
is asserted; invalid when
source_sop
source_sop
assertion (at the next codeword). Connected only when the Bit error (Split count)
is asserted; invalid when
assertion (at the next codeword). Connected only when the Bit error (Split count)
decfail
decfail
Throughput Calculator
The IP Toolbench throughput calculator (decoder only) uses the following equation:
Throughput in megasymbols per second = N × frequency (MHz)/N
For Mbps, multiply by m, the number of bits per symbol.
source_sop
source_sop
is asserted. The decoder presents these values at the
is asserted. The decoder presents these values at the
is asserted. Avalon-ST type
is asserted; invalid when
source_sop
is asserted; invalid when
decfail
err
is asserted.
C
.
Reed-Solomon Compiler December 2014 Altera Corporation User Guide
Chapter 3: Functional Description 3–11
Throughput Calculator
Tab le 3 –9 shows the value of NC.
Table 3–9. Calculate N
C
Erasures Keysize N
No Half Max (N, 10 × R + 4)
No Full Max (N, 7 × R + 5)
Yes Half Max (N, 10 × R + 6)
Yes Full Max (N, 8 × R + 4)
C
December 2014 Altera Corporation Reed-Solomon Compiler
User Guide
3–12 Chapter 3: Functional Description
Throughput Calculator
Reed-Solomon Compiler December 2014 Altera Corporation User Guide
The Reed-Solomon (RS) encoder or decoder MegaCore functions work in canonical
RS Encoder
Berlekamp
Transform
(Canonical to Dual)
Pre-transform
(Dual to Canonical)
Post-transform
(Canonical to Dual)
Berlekamp
Transform
(Dual to Canonical)
Channel
RS Decoder
base (otherwise known as conventional base). This base can cause confusion when trying to implement the RS encoder or decoder directly into a dual-base system, for example, when working with the Consultative Committee for Space Data Systems (CCSDS) standard.
To transfer from a canonical-base to a dual-base system, a Berlekamp transform is used, which you need to implement in logic. Figure A–1 shows an example use of the Berlekamp transform.
Figure A–1. Using the Berlekamp Transform
A. Using the RS Encoder or Decoder in a
CCSDS System

Supplying Test Patterns

If you are working with a dual-base system, for example, CCSDS, and wish to supply the RS encoder or decoder with some test patterns from the dual-base system, follow these steps:
1. Apply the Berlekamp transform (dual to canonical) to the test pattern.
2. Apply the test pattern to RS encoder or decoder.
3. Apply the Berlekamp transform (canonical to dual) to the encoder output.
4. Check the test pattern.
f For more information about implementing the transformation function, refer to
Annex B of the standard specification document CCSDS-101.0-B-5 at www.ccsds.org.
December 2014 Altera Corporation Reed-Solomon Compiler
User Guide
A–2 Appendix A: Using the RS Encoder or Decoder in a CCSDS System
Supplying Test Patterns
Reed-Solomon Compiler December 2014 Altera Corporation User Guide
This chapter provides additional information about the document and Altera.

Revision History

The following table shows the revision history for this user guide.
Date Version Changes Made
2014.12.15 14.1 Added obsolescence notice.
June 2014 14.0
November 2013 13.1
November 2012 12.1 Added support for Arria V GZ devices.
May 2011 11.0
December 2010
10.1
July 2010 10.0 Added prelminary support for Stratix V devices
November 2009 9.1
March 2009 9.0 Added Arria II GX device support
November 2008 8.1 No changes
May 2008 8.0 Added device support for Stratix IV devices
October 2007 7.2 No changes
May 2007 7.1 Updated
December 2006 7.0 Added support for Cyclone III devices
December 2006 6.1 Updated format
Removed support for Cyclone III and Stratix III devices
Added instructions for using IP Catalog
Removed support for the following devices:
Arria
Cyclone II
HardCopy II, HardCopy III, and HardCopy IV
Stratix, Stratix II, Stratix GX, and Stratix II GX
Added final support for the following devices:
Arria V
Stratix V
Updated support level to final support for Arria
Cyclone IV GX devices.
Updated support level to HardCopy Compilation for HardCopy III, HardCopy IV E, and
HardCopy IV GX devices.
Added preliminary support for Arria II GZ devices.
Updated support level to final support for Stratix
Maintenance update
Reorganized to clarify two design flows.
Added preliminary support for Cyclone III LS, Cyclone IV, and HardCopy IV GX devices
rserr
signal

Additional Information

®
II GX, Arria II GZ, Cyclone®III LS, and
®
IV GT devices.
December 2014 Altera Corporation Reed-Solomon Compiler
User Guide
Info–2 Additional Information

How to Contact Altera

How to Contact Altera
To locate the most up-to-date information about Altera products, refer to the following table.
Contact
Technical support Website www.altera.com/support
Technical training
Product literature Website www.altera.com/literature
Nontechnical support (general) Email nacomp@altera.com
Note to Table:
(1) You can also contact your local Altera sales office or sales representative.
(1)
(software licensing) Email authorization@altera.com
Contact Method Address
Website www.altera.com/training
Email custrain@altera.com

Typographic Conventions

The following table shows the typographic conventions this document uses.
Visual Cue Meaning
Bold Type with Initial Capital Letters
bold type
Italic Type with Initial Capital Letters Indicate document titles. For example, Stratix IV Design Guidelines.
italic type
Initial Capital Letters
“Subheading Title”
Courier type
r An angled arrow instructs you to press the Enter key.
1., 2., 3., and a., b., c., and so on
Bullets indicate a list of items when the sequence of the items is not important.
1 The hand points to information that requires special attention.
Indicate command names, dialog box titles, dialog box options, and other GUI labels. For example, Save As dialog box. For GUI elements, capitalization matches the GUI.
Indicates directory names, project names, disk drive names, file names, file name extensions, software utility names, and GUI labels. For example, \qdesigns directory, D: drive, and chiptrip.gdf file.
Indicates variables. For example, n + 1.
Variable names are enclosed in angle brackets (< >). For example, <file name> and <project name>.pof file.
Indicate keyboard keys and menu names. For example, the Delete key and the Options menu.
Quotation marks indicate references to sections in a document and titles of Quartus II Help topics. For example, “Typographic Conventions.”
Indicates signal, port, register, bit, block, and primitive names. For example,
tdi
, and
input
. The suffix n denotes an active-low signal. For example,
Indicates command line commands and anything that must be typed exactly as it appears. For example,
Also indicates sections of an actual file, such as a Report File, references to parts of files (for example, the AHDL keyword
TRI
example,
Numbered steps indicate a list of items when the sequence of the items is important, such as the steps listed in a procedure.
).
c:\qdesigns\tutorial\chiptrip.gdf
SUBDESIGN
), and logic function names (for
resetn
.
data1
.
,
Reed-Solomon Compiler December 2014 Altera Corporation User Guide
Additional Information Info–3
Typographic Conventions
Visual Cue Meaning
h The question mark directs you to a software help system with related information. f The feet direct you to another document or website with related information. m The multimedia icon directs you to a related multimedia presentation.
c
w
A caution calls attention to a condition or possible situation that can damage or destroy the product or your work.
A warning calls attention to a condition or possible situation that can cause you injury.
The envelope links to the Email Subscription Management Center page of the Altera website, where you can sign up to receive update notifications for Altera documents.
December 2014 Altera Corporation Reed-Solomon Compiler
User Guide
Info–4 Additional Information
Typographic Conventions
Reed-Solomon Compiler December 2014 Altera Corporation User Guide
Loading...