Intel Bch Ip Core User Guide

Intel Bch Ip Core User Guide

intel-BCH-IP-Core-LOGO

intel BCH IP Core

intel-BCH-IP-Core-fig-product

About the BCH IP Core

Related Information

  • BCH IP Core Document Archive on page 24
    • Provides a list of user guides for previous versions of the BCH IP Core.
  • Introduction to Intel FPGA IP Cores
    • Provides general information about all Intel FPGA IP cores, including parameterizing, generating, upgrading, and simulating IP cores.
  • Creating Version-Independent IP and Qsys Simulation Scripts
    • Create simulation scripts that do not require manual updates for software or IP version upgrades.
  • Project Management Best Practices
    • Guidelines for efficient management and portability of your project and IP files.

 Intel® DSP IP Core Features

  • Avalon® Streaming (Avalon-ST) interfaces
  • DSP Builder for Intel® FPGAs ready
  • Testbenches to verify the IP core
  • IP functional simulation models for use in Intel-supported VHDL and Verilog HDL simulators

BCH IP Core Features

  • High-performance fully parameterizable encoder or decoder for error detection and correction:
  • Number of symbols per codeword
  • Number of check symbols per codeword
  • Number of parallel input bits

Intel Corporation. All rights reserved. Intel, the Intel logo, and other Intel marks are trademarks of Intel Corporation or its subsidiaries. Intel warrants the performance of its FPGA and semiconductor products to current specifications in accordance with Intel’s standard warranty but reserves the right to make changes to any products and services at any time without notice. Intel 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 Intel. Intel 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.

  • Other names and brands may be claimed as the property of others.
DSP IP Core Device Family Support

Intel offers the following device support levels for Intel FPGA IP cores:

  • Advance support—the IP core is available for simulation and compilation for this device family. FPGA programming file (.pof) support is not available for Quartus Prime Pro Stratix 10 Edition Beta software and as such IP timing closure cannot be guaranteed. Timing models include initial engineering estimates of delays based on early post-layout information. The timing models are subject to change as silicon testing improves the correlation between the actual silicon and the timing models. You can use this IP core for system architecture and resource utilization studies, simulation, pinout, system latency assessments, basic timing assessments (pipeline budgeting), and I/O transfer strategy (data-path width, burst depth, I/O standards tradeoffs).
  • Preliminary support—Intel 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—Intel 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. You can use it in production designs.

Table 1. DSP IP Core Device Family Support

Device FamilySupport
Arria® II GXFinal
Arria II GZFinal
Arria VFinal
Intel Arria 10Final
Cyclone® IVFinal
Cyclone VFinal
Intel Cyclone 10Final
Intel MAX® 10 FPGAFinal
Stratix® IV GTFinal
Stratix IV GX/EFinal
Stratix VFinal
Intel Stratix 10Advance
Other device familiesNo support

 BCH IP Core Release Information

Use the release information when licensing the IP core.

Table 2.Release Information

ItemDescription
Version17.1
Release DateNovermber 2017
Ordering CodeIP-BCH (IPR-BCH)

Intel verifies that the current version of the Quartus Prime software compiles the previous version of each IP core. Intel does not verify that the Quartus Prime software compiles IP core versions older than the previous version. The Intel FPGA IP Release Notes lists any exceptions.
Related Information

  • Intel FPGA IP Release Notes
  • Errata for BCH IP core in the Knowledge Base

DSP IP Core Verification

  • Before releasing a version of an IP core, Intel runs comprehensive regression tests to verify its quality and correctness. Intel generates custom variations of the IP core to exercise the various parameter options and thoroughly simulates the resulting simulation models with the results verified against master simulation models.

BCH IP Core Performance and Resource Utilization

  • Typically expected performance for a BCH IP Core using the Quartus Prime software with the Arria V (5AGXFB3H4F35C5), Cyclone V (5CGXFC7C7F23C8), and Stratix V (5SGXEA7H3F35C3) devices. Where m is the number of bits per symbol; n is the codeword length; d is the parallel data input width; t is the error correction capability.

Table 3. Decoder Performance and Resource Utilization

DeviceParametersMemoryALMRegistersmax (MHz)
mndtM10KM20KPrimarySecondary y
Arria V82551042718,37640,5573,441196
Cyclone V82551042718,26440,7093,266150
Stratix V82551042719,02744,1344,315308
Arria V82551242922,29349,6024,053186
Cyclone V82551242922,24349,2434,511149
Stratix V82551242823,18753,8005,207310
Arria V825524245,53913,238788207
Cyclone V825524245,52713,174857174
Stratix V825524246,08814,399850369
Arria V8255542510,23123,3211,554206
Cyclone V8255542510,23423,3911,551164
continued…
DeviceParametersMemoryALMRegistersmax (MHz)
mndtM10KM20KPrimarySecondary y
Stratix V8255542510,82024,8682,612335
Stratix V1487841020187,35815,082761346
Stratix V14878410401814,33128,7431,630316
Stratix V14878410801828,38356,2923,165281
Stratix V14878420201810,10319,833933323
Stratix V14878420401820,01237,4131,747304
Stratix V14878420801839,22572,1513,673282
Stratix V14878430201711,78423,924844329
Stratix V14878430401923,06144,3131,836289
Stratix V14878430801943,94985,4763,398263
Stratix V14878440201913,80128,032743307
Stratix V14878440401926,10751,6801,472291
Stratix V14878440802150,30398,5453,351248
Stratix V14878450202016,40733,020967307
Stratix V14878450402031,09560,5031,991288
Stratix V14878450802258,690116,2323,222249
Stratix V14878460202018,29037,106914297
Stratix V14878460402035,04167,1832,324292
Stratix V14878460803780,961160,4587,358233
Stratix V14878470202020,49441,471545286
Stratix V14878470402038,29474,7271,778280
Stratix V14878470803888,040173,3117,769232
Stratix V14878480202222,43745,334691276
Stratix V14878480402242,25682,1731,363285
Stratix V14878480804095,913186,8697,317229

Table 4. Encoder Performance and Resource Utilization

DeviceParametersMemoryALMRegistersmax (MHz)
mndtM10KM20KPrimarySecondary y
Arria V8255104223375920243
Cyclone V8255104223395920166
Stratix V8255104213536013400
Arria V8255124223866020257
Cyclone V8255124223956020174
continued…
DeviceParametersMemoryALMRegistersmax (MHz)
mndtM10KM20KPrimarySecondary y
Stratix V8255124213916140400
Arria V8255242221954712275
Cyclone V825524222195563197
Stratix V8255242222054217464
Arria V825554222375633276
Cyclone V825554222375651193
Stratix V825554212605730400
Stratix V148784102034007854387
Stratix V148784104036131,3481380
Stratix V148784108031,0092,4514309
Stratix V148784202037758491373
Stratix V148784204031,3401,4100312
Stratix V148784208032,2222,5151242
Stratix V148784302031,1619191324.
Stratix V148784304032,0741,4800253
Stratix V148784308033,5832,5802224
Stratix V148784402031,5229774307
Stratix V148784404032,7891,5410249
Stratix V148784408034,9092,6470191
Stratix V148784502041,9261,0429295
Stratix V148784504043,4671,6101234
Stratix V148784508046,2972,7143182
Stratix V148784602042,3561,1210266
Stratix V148784604043,8241,6801229
Stratix V148784608047,5482,7830167
Stratix V148784702042,5951,1842273
Stratix V148784704044,3721,7460221
Stratix V148784708048,3212,8502169
Stratix V148784802052,8851,2511293
Stratix V148784804055,1631,8120220
Stratix V148784808058,8672,9180169

BCH IP Core Getting Started

Installing and Licensing Intel FPGA IP Cores

The Intel Quartus® Prime software installation includes the Intel FPGA IP library. This library provides many useful IP cores for your production use without the need for an additional license. Some Intel FPGA IP cores require the purchase of a separate license for production use. The Intel FPGA IP Evaluation Mode allows you to evaluate these licensed Intel FPGA IP cores in simulation and hardware, before deciding to purchase a full production IP core license. You only need to purchase a full production license for licensed Intel IP cores after you complete hardware testing and are ready to use the IP in production. The Intel Quartus Prime software installs IP cores in the following locations by default:
Figure 1. IP Core Installation Pathintel-BCH-IP-Core-fig-1

Table 5. IP Core Installation Locations

LocationSoftwarePlatform
<drive>:\intelFPGA_pro\quartus\ip\alteraIntel Quartus Prime Pro EditionWindows*
<drive>:\intelFPGA\quartus\ip\alteraIntel Quartus Prime Standard EditionWindows
<home directory>:/intelFPGA_pro/Quartus/IP/AlteraIntel Quartus Prime Pro EditionLinux*
<home directory>:/inter FPGA/Quartus/IP/AlteraIntel Quartus Prime Standard EditionLinux

Intel FPGA IP Evaluation Mode

The free Intel FPGA IP Evaluation Mode allows you to evaluate licensed Intel FPGA IP cores in simulation and hardware before purchase. Intel FPGA IP Evaluation Mode supports the following evaluations without an additional license:

  • Simulate the behavior of a licensed Intel FPGA 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.

Intel Corporation. All rights reserved. Intel, the Intel logo, and other Intel marks are trademarks of Intel Corporation or its subsidiaries. Intel warrants performance of its FPGA and semiconductor products to current specifications in accordance with Intel’s standard warranty, but reserves the right to make changes to any products and services at any time without notice. Intel 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 Intel. Intel 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.

  • Other names and brands may be claimed as the property of others.

Intel FPGA IP Evaluation Mode supports the following operation modes:

  • Tethered—Allows running the design containing the licensed Intel FPGA IP indefinitely with a connection between your board and the host computer. Tethered mode requires a serial joint test action group (JTAG) cable connected between the JTAG port on your board and the host computer, which is running the Intel Quartus Prime Programmer for the duration of the hardware evaluation period. The Programmer only requires a minimum installation of the Intel Quartus Prime software, and requires no Intel Quartus Prime license. The host computer controls the evaluation time by sending a periodic signal to the device via the JTAG port. If all licensed IP cores in the design support tethered mode, the evaluation time runs until any IP core evaluation expires. If all of the IP cores support unlimited evaluation time, the device does not time-out.
  • Untethered—Allows running the design containing the licensed IP for a limited time. The IP core reverts to untethered mode if the device disconnects from the host computer running the Intel Quartus Prime software. The IP core also reverts to untethered mode if any other licensed IP core in the design does not support tethered mode.

When the evaluation time expires for any licensed Intel FPGA IP in the design, the design stops functioning. All IP cores that use the Intel FPGA IP Evaluation Mode time out simultaneously when any IP core in the design times out. When the evaluation time expires, you must reprogram the FPGA device before continuing hardware verification. To extend use of the IP core for production, purchase a full production license for the IP core.
You must purchase the license and generate a full production license key before you can generate an unrestricted device programming file. During Intel FPGA IP Evaluation Mode, the Compiler only generates a time-limited device programming file (<project name>_time_limited.sof) that expires at the time limit.

Figure 2. Intel FPGA IP Evaluation Mode Flowintel-BCH-IP-Core-fig-2

Note:

Refer to each IP core’s user guide for parameterization steps and implementation details.
Intel licenses IP cores on a per-seat, perpetual basis. The license fee includes first-year maintenance and support. You must renew the maintenance contract to receive updates, bug fixes, and technical support beyond the first year. You must purchase a full production license for Intel FPGA IP cores that require a production license, before generating programming files that you may use for an unlimited time. During Intel FPGA IP Evaluation Mode, the Compiler only generates a time-limited device programming file (<project name>_time_limited.sof) that expires at the time limit. To obtain your production license keys, visit the Self-Service Licensing Center or contact your local Intel FPGA representative.
The Intel FPGA Software License Agreements govern the installation and use of licensed IP cores, the Intel Quartus Prime design software, and all unlicensed IP cores.

Related Information
  • Intel Quartus Prime Licensing Site
  • Intel FPGA Software Installation and Licensing

BCH IP Core Intel FPGA IP Evaluation Mode Timeout Behavior

All IP cores in a device time out simultaneously when the most restrictive evaluation time is reached. If a design has more than one IP core, the time-out behavior of the other IP cores may mask the time-out behavior of a specific IP core. For IP cores, the untethered time-out is 1 hour; the tethered time-out value is indefinite. Your design stops working after the hardware evaluation time expires. The Quartus Prime software uses Intel FPGA IP Evaluation Mode Files (.ocp) in your project directory to identify your use of the Intel FPGA IP Evaluation Mode evaluation program. After you activate the feature, do not delete these files.When the evaluation time expires, the data output port data_out goes low
Related Information
AN 320: OpenCore Plus Evaluation of Megafunctions

Catalog and Parameter Editor

The IP Catalog displays the IP cores available for your project. Use the following features of the IP Catalog to locate and customize an IP core:

  • Filter IP Catalog to Show IP for active device family or Show IP for all device families. If you have no project open, select the Device Family in IP Catalog.
  • Type in the Search field to locate any full or partial IP core name in IP Catalog.
  • Right-click an IP core name in IP Catalog to display details about supported devices, to open the IP core’s installation folder, and for links to IP documentation.
  • Click Search for Partner IP to access partner IP information on the web.
  • The parameter editor prompts you to specify an IP variation name, optional ports, and output file generation options. The parameter editor generates a top-level Intel Quartus Prime IP file (.ip) for an IP variation in Intel Quartus Prime Pro Edition projects.
  • The parameter editor generates a top-level Quartus IP file (.qip) for an IP variation in Intel Quartus Prime Standard Edition projects. These files represent the IP variation in the project and store parameterization information.

Figure 3. IP Parameter Editor (Intel Quartus Prime Pro Edition)intel-BCH-IP-Core-fig-3

Figure 4. IP Parameter Editor (Intel Quartus Prime Standard Edition)intel-BCH-IP-Core-fig-4

Generating IP Cores (Intel Quartus Prime Pro Edition)

Quickly configure Intel FPGA IP cores in the Intel Quartus Prime parameter editor. Double-click any component in the IP Catalog to launch the parameter editor. The parameter editor allows you to define a custom variation of the IP core. The parameter editor generates the IP variation synthesis and optional simulation files and

adds
the .ip file representing the variation to your project automatically.
Figure 5. IP Parameter Editor (Intel Quartus Prime Pro Edition)intel-BCH-IP-Core-fig-5

Follow these steps to locate, instantiate, and customize an IP core in the parameter editor:

  1. Create or open an Intel Quartus Prime project (.qpf) to contain the instantiated IP variation.
  2. In the IP Catalog (Tools ➤ IP Catalog), locate and double-click the name of the IP core to customize. To locate a specific component, type some or all of the component’s name in the IP Catalog search box. The New IP Variation window appears.
  3. Specify a top-level name for your custom IP variation. Do not include spaces in IP variation names or paths. The parameter editor saves the IP variation settings in a file named <your_ip>.ip. Click OK. The parameter editor appears.
  4. Set the parameter values in the parameter editor and view the block diagram for the component. The Parameterization Messages tab at the bottom displays any errors in IP 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.
  • Note: Refer to your IP core user guide for information about specific IP core parameters.
  1. Click Generate HDL. The Generation dialog box appears.
  2. Specify output file generation options, and then click Generate. The synthesis and simulation files generate according to your specifications.
  3. To generate a simulation testbench, click Generate ➤ Generate Testbench System. Specify testbench generation options, and then click Generate.
  4. To generate an HDL instantiation template that you can copy and paste into your text editor, click Generate ➤ Show Instantiation Template.
  5. Click Finish. Click Yes if prompted to add files representing the IP variation to your project.
  6. After generating and instantiating your IP variation, make appropriate pin assignments to connect ports.

Note: Some IP cores generate different HDL implementations according to the IP core parameters. The underlying RTL of these IP cores contains a unique hash code that prevents module name collisions between different variations of the IP core. This unique code remains consistent, given the same IP settings and software version during IP generation. This unique code can change if you edit the IP core’s parameters or upgrade the IP core version. To avoid dependency on these unique codes in your simulation environment, refer to Generating a Combined Simulator Setup Script.

IP Core Generation Output (Intel Quartus Prime Pro Edition)

The Intel Quartus Prime software generates the following output file structure for individual IP cores that are not part of a Platform Designer system.

Figure 6. Individual IP Core Generation Output (Intel Quartus Prime Pro Edition)intel-BCH-IP-Core-fig-6

  • If supported and enabled for your IP core variation.

Table 6. Output Files of Intel FPGA IP Generation

File NameDescription
<your_ip>.ipTop-level IP variation file that contains the parameterization of an IP core in your project. If the IP variation is part of a Platform Designer system, the parameter editor also generates a .qsys file.
<your_ip>.cmpThe VHDL Component Declaration (.cmp) file is a text file that contains local generic and port definitions that you use in VHDL design files.
<your_ip>_generation.rptIP or Platform Designer generation log file. Displays a summary of the messages during IP generation.
continued…
File NameDescription
<your_ip>.qgsimc (Platform Designer systems only)Simulation caching file that compares the .qsys and .ip files with the current parameterization of the Platform Designer system and IP core. This comparison determines if Platform Designer can skip the regeneration of the HDL.
<your_ip>.qgsynth (Platform Designer systems only)Synthesis caching file that compares the .qsys and .ip files with the current parameterization of the Platform Designer system and IP core. This comparison determines if Platform Designer can skip the regeneration of the HDL.
<your_ip>.qipContains all information to integrate and compile the IP component.
<your_ip>.csvContains information about the upgrade status of the IP component.
<your_ip>.bsfA symbolic representation of the IP variation for use in Block Diagram Files (.bdf).
<your_ip>.spdInput file that ip-make-simscript requires to generate simulation scripts. The .spd file contains a list of files you generate for simulation, along with information about memories that you initialize.
<your_ip>.ppfThe Pin Planner File (.ppf) stores the port and node assignments for IP components you create for use with the Pin Planner.
<your_ip>_bb.vUse the Verilog BlackBox (_bb. v) file as an empty module declaration for use as a black box.
<your_ip>_inst.v or _inst.vhdHDL example instantiation template. Copy and paste the contents of this file into your HDL file to instantiate the IP variation.
<your_ip>.regmapIf the IP contains register information, the Intel Quartus Prime software generates the .regmap file. The .regmap file describes the register map information of master and slave interfaces. This file complements

the .sopcinfo file by providing more detailed register information about the system. This file enables register display views and user-customizable statistics in System Console.

<your_ip>.svdAllows HPS System Debug tools to view the register maps of peripherals that connect to HPS within a Platform Designer system.

During synthesis, the Intel Quartus Prime software stores the .svd files for the slave interface visible to the System Console masters in the .sof file in the debug session. The system Console reads this section, which Platform Designer queries for register map information. For system slaves, the Platform Designer accesses the registers by name.

<your_ip>.v <your_ip>.vhdHDL files that instantiate each submodule or child IP core for synthesis or simulation.
mentor/Contains a msim_setup.TCL script to set up and run a ModelSim simulation.
aldec/Contains a Riviera*-PRO script rivierapro_setup. TCL to setup and run a simulation.
/synopsys/vcs

/synopsys/vcsmx

Contains a shell script vcs_setup.sh to set up and run a VCS* simulation.

Contains a shell script vcsmx_setup.sh and synopsys_sim.setup file to set up and run a VCS MX* simulation.

/cadenceContains a shell script ncsim_setup.sh and other setup files to set up and run an NCSIM simulation.
/submodulesContains HDL files for the IP core submodule.
<IP submodule>/Platform Designer generates /synth and /sim sub-directories for each IP submodule directory that Platform Designer generates.

Simulating Intel FPGA IP Cores

The Intel Quartus Prime software supports IP core RTL simulation in specific EDA simulators. IP generation creates simulation files, including the functional simulation model, any testbench (or example design), and vendor-specific simulator setup scripts for each IP core. Use the functional simulation model and any testbench or example design for simulation. IP generation output may also include scripts to compile and run any testbench. The scripts list all models or libraries you require to simulate your IP core.
The Intel Quartus Prime software provides integration with many simulators and supports multiple simulation flows, including your own scripted and custom simulation flows. Whichever flow you choose, IP core simulation involves the following steps:

  1. Generate simulation model, testbench (or example design), and simulator setup script files.
  2. Set up your simulator environment and any simulation scripts.
  3. Compile simulation model libraries.
  4. Run your simulator.

DSP Builder for Intel FPGAs Design Flow

DSP Builder for Intel FPGAs shortens digital signal processing (DSP) design cycles by helping you create the hardware representation of a DSP design in an algorithm-friendly development environment.
This IP core supports DSP Builder for Intel FPGAs. Use the DSP Builder for Intel FPGAs flow if you want to create a DSP Builder for Intel FPGAs 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.
Related Information
Using MegaCore Functions chapter in the DSP Builder for Intel FPGAs Handbook.

BCH IP Core Functional Description

This topic describes the IP core’s architecture, interfaces, and signals.
You can parameterize the BCH IP core as an encoder or a decoder. The encoder receives data packets and generates the check symbols; the decoder detects and corrects errors.

BCH IP Core Encoder

The BCH encoder has a parallel architecture with input and output of d data bits. When the encoder receives data symbols, it generates check symbols for a given codeword and sends the input codeword with the check symbols to the output interface. The encoder uses backpressure on the upstream component when it generates the check symbols.
Figure 7. Encoder Timing

intel-BCH-IP-Core-fig-7

The ready signal indicates that the encoder can accept incoming stream. On the clk rising edge, if the encoder ready signal is high, send input data stream via data_in port and assert load high to indicate valid input data. Assume the full message word needs X clock signals. When this input process reaches X-1 clock cycles, the encoder ready signal goes low. At the next clk rising edge, the encoder accepts the input from data_in port, and the encoder receives the full message word. Before the ready signal returns to high again, the encoder does not accept new input data. When valid_outt signal is asserted high, output encoded codeword is valid at the data_out port. At the first clock cycle where the output data is valid, sop_out is asserted high for only one cycle, indicating the start of packet. The IP core has forward and back pressure, which you can control with the ready and sink_ready signal. Assert the sop_in and eop_in signals correctly at the clock cycle, i.e. the first and last clock cycle of the input codeword.

Shortened Codewords
The BCH IP core supports shortened codewords. A shortened codeword contains fewer symbols than the maximum value of N, which is 2M –1, where N is the total number of symbols per codeword and M is the number of bits per symbol. 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, (220,136) is a shortened codeword of (255,171). Both of these codewords use the same number of check symbols, 11. To use shortened codewords with the decoder, use the parameter editor to set the codeword length to the correct value.

BCH IP Core Decoder

When the decoder receives the encoded codeword, it uses the check symbols to detect errors and correct them. The received encoded codeword may differ from the original codeword because of noise in the channel. The decoder detects errors using several polynomials to locate the error location and the error value. When the decoder obtains the error location and value, the decoder corrects the errors in a codeword and sends the codeword to the output. If e<=t, the IP core can correct errors; if e > t, you see unpredictable results.
Figure 8. Decoder Timingintel-BCH-IP-Core-fig-8

The codeword starts when you assert the load signal and the sop_in signal.The decoder accepts the data at data_in as valid data. The codeword ends when you assert the eop_in signal. For a 1-channel codeword, assert the sop_in and eop_in signals for one clock cycle. When the decoder deasserts the ready signal, the decoder cannot process any more data until it asserts the ready signal again. At the output, the operation is identical. When the decoder asserts the valid_out signal and the sop_out signal, the decoder provides valid data on data_out. The decoder asserts the sop_out signal and the eop_out signal to indicate the start and end of a codeword. The decoder automatically detects and corrects errors in a codeword and asserts the number_of_errors signal when it encounters a non-correctable codeword. The decoder outputs the full codeword including the check symbols, which you should remove. The ready signal indicates that the decoder can accept an incoming stream. On clk rising edge, if the encoder ready signal is high, send input data stream via data_in and assert load high to indicate valid input data. When valid_out is asserted high, the output decoded word is valid at the data_out port. The number_of_errors shows the number of errors the IP core detects. At the first clock cycle where the output data is valid, sop_out is asserted high for only one cycle, indicating the start of output packet. The IP core has forward and back pressure, which you controll with the ready signal and sink_ready signal. Assert the sop_in and eop_in signals correctly at the clock cycle, i.e. the first and last clock cycle of the input codeword.

CH IP Core Parameters

Table 7. Parameters

ParameterLegal ValuesDefault ValueDescription
BCH moduleEncoder or DecoderEncoderSpecify an encoder or a decoder.
Number of bits per symbol (m)3 to 14 (encoder or 6 to 14 (decoder)14Specify the number of bits per symbol.
Codeword length (n)parity_bits+1 : 2m-18,784Specify the codeword length. The decoder accepts a new symbol every clock cycle if 6.5R < N. If N>=6.5R

+1, the decoder shows continuous behavior.

Error correction capacity (t)Range derived from m. For the decoder, the wizard caps the range between 8 and 127.40Specify the number of bits to be corrected.
Parity bits560Shows the number of parity bits in the codeword. The wizard derives this parameter from t.
Message length (k)8,224Shows the number of message bits in the codeword. The wizard derives this parameter from t and n.
Primitive polynomial17,475Shows the primitive polynomial. derived from the choice of m.
Parallel input data widthEncoder: 1 to min(parity_bits, k-1). Decoder:

•    d < floor(n*3/14)

•    d < floor(n/ floor[2*log2(2*t)])

20The number of bits to input every clock cycle.

BCH IP Core Interfaces and Signals

Table 8. Clock and Reset Signals

NameAvalon-ST TypeDirectionDescription
CLKCLKInputThe main system clock. The whole IP core operates on the rising edge of CLK.
resetreset_nInputAn active low signal that resets the entire system when asserted. You can assert this signal asynchronously.

However, you must deassert it synchronously to the clk_clk signal. When the IP core recovers from reset, ensure that the data it receives is a complete packet.

Table 9. Avalon-ST Input and Output Interface Signals

NameAvalon-ST TypeDirectionDescription
readyreadyOutputData transfer ready signal to indicate that the sink is ready to accept data. The sink interface drives the ready signal to control the flow of data across the interface. The sink interface captures the data interface signals on the current clk rising edge.
data_in[]dataInputData input for each codeword, symbol by symbol. Valid only when you assert the in_valid signal.
data_outdataOutputContains decoded output when the IP core asserts the out_valid signal. The corrected symbols are in the same order that they are entered.
eop_ineopInputEnd of packet (codeword) signal.
eop_outeopOutputEnd of packet (codeword) signal. This signal indicates the packet boundaries on the data_in[] bus. When the IP core drives this signal high, it indicates that the end of packet is present on the data_in[] bus. The IP core asserts this signal on the last transfer of every packet.
in_errorerrorInputError signal. Specifies if the input data symbol is an error and whether the decoder can consider it as an erasure. Erasures-supporting decoders only.
loadvalidInputData valid signal to indicate the validity of the data signals. When you assert the in_valid signal, the Avalon-ST data interface signals are valid. When you deassert the in_valid signal, the Avalon-ST data interface signals are invalid and must be disregarded. You can assert the in_valid signal whenever data is available. However, the sink only captures the data from the source when the IP core asserts the in_ready signal.
number_of_err orserrorOutputIndicates the number of errors (decoder only). Valid when the IP core asserts eop_out .
sop_insopInputStart of packet (codeword) signal.
sop_outsopOutputStart of packet (codeword) signal. This signal indicates the codeword boundaries on the data_in[] bus. When the IP core drives this signal high, it indicates that the start of packet is present on the data_in[] bus. The IP core asserts this signal on the first transfer of every codeword.
sink_readyreadyInputData transfer ready signal to indicate that the downstream module is ready to accept data. The source provides new data (if available) when you assert the sink_ready signal and stops providing new data when you deassert the sink_ready signal. If the source is unable to provide new data, it deasserts valid_out for one or more clock cycles until it is prepared to drive valid data interface signals.
valid_outvalidOutputData valid signal. The IP core asserts the valid_out signal high, whenever a valid output is on data_out ; the IP core deasserts the signal when there is no valid output on data_out .

For IP cores generated within Qsys, all signals are in an Avalon-ST interface. For encoders:

  • Input: in[0 to data width of data_in]
  • Output: out[0 to data width of data_out].

For decoders:

  • Input: in[0 to data width of data_in]
  • Output: out [0 to data width+number_errors | data_out]

Avalon-ST Interfaces in DSP IP Cores

Avalon-ST interfaces define a standard, flexible, and modular protocol for data transfers from a source interface to a sink interface.
The input interface is an Avalon-ST sink and the output interface is an Avalon-ST source. The Avalon-ST interface supports packet transfers with packets interleaved across multiple channels.
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. Avalon-ST interfaces can also support more complex protocols for burst and packet transfers with packets interleaved across multiple channels. The Avalon-ST interface inherently synchronizes multichannel designs, which allows you to achieve efficient, time-multiplexed implementations without having to implement complex control logic.
Avalon-ST interfaces support 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 it has congestion on its output.
Related Information
Avalon Interface Specifications

Document Revision History

BCH IP Core User Guide revision history.

DateVersionChanges
2017.11.0617.1•    Added support for Intel Cyclone 10 devices

•    Corrected signal names in encoder and decoder descriptions.

2017.02.1416.1•    Removed product ID and vendor ID.

•    Corrected Error correction capability (t) max value to 127

2015.10.0115.1Added product ID and ordering code.
2015.05.0115.0Initial release

Intel Corporation. All rights reserved. Intel, the Intel logo, and other Intel marks are trademarks of Intel Corporation or its subsidiaries. Intel warrants performance of its FPGA and semiconductor products to current specifications in accordance with Intel’s standard warranty, but reserves the right to make changes to any products and services at any time without notice. Intel 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 Intel. Intel 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.

  • Other names and brands may be claimed as the property of others.
A. BCH IP Core Document Archive

If the table does not list an IP core version, the user guide for the previous IP core version applies.

IP Core VersionUser Guide
16.1BCH IP Core User Guide
15.1BCH IP Core User Guide

References

Documents / Resouces

Download manual
Here you can download full pdf version of manual, it may contain additional safety instructions, warranty information, FCC rules, etc.


Related Manuals