About the Viterbi IP Core...................................................................................1-1
Viterbi IP Core Getting Started..........................................................................2-1
Altera DSP IP Core Features...................................................................................................................... 1-1
Viterbi II IP Core Features......................................................................................................................... 1-1
DSP IP Core Device Family Support.........................................................................................................1-2
DSP IP Core Verification............................................................................................................................1-2
Viterbi IP Core Release Information.........................................................................................................1-2
Viterbi IP Core Performance and Resource Utilization.........................................................................1-3
Installing and Licensing IP Cores..............................................................................................................2-1
OpenCore Plus IP Evaluation........................................................................................................ 2-1
Viterbi IP Core OpenCore Plus Timeout Behavior.................................................................... 2-2
IP Catalog and Parameter Editor...............................................................................................................2-2
Specifying IP Core Parameters and Options............................................................................................2-3
Files Generated for Altera IP Cores...............................................................................................2-4
Simulating Altera IP Cores in other EDA Tools..................................................................................... 2-7
Test Data......................................................................................................................................... 3-12
Viterbi IP Core Interfaces and Signals....................................................................................................3-14
Avalon-ST Interfaces in DSP IP Cores....................................................................................... 3-14
Global Signals.................................................................................................................................3-14
2015 Altera Corporation. All rights reserved. ALTERA, ARRIA, CYCLONE, ENPIRION, 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
1-2
DSP IP Core Device Family Support
DSP IP Core 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. You can use it in production
designs.
Table 1-1: DSP IP Core Device Family Support
Device FamilySupport
Arria® II GXFinal
Arria II GZFinal
Arria VFinal
Arria 10Final
UG-VITERBI
2014.12.15
Cyclone® IVFinal
Cyclone VFinal
MAX® 10 FPGAFinal
Stratix® IV GTFinal
Stratix IV GX/EFinal
Stratix VFinal
Other device familiesNo support
DSP IP Core Verification
Before releasing a version of an IP core, Altera runs comprehensive regression tests to verify its quality
and correctness. Altera 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.
Viterbi IP Core Release Information
Use the release information when licensing the IP core.
Table 1-2: Release Information
Version14.1
Altera Corporation
ItemDescription
About the Viterbi IP Core
Send Feedback
UG-VITERBI
2014.12.15
ItemDescription
Viterbi IP Core Performance and Resource Utilization
Altera verifies that the current version of the Quartus II software compiles the previous version of each IP
core. Altera does not verify that the Quartus II software compiles IP core versions older than the previous
version. The Altera IP Release Notes lists any exceptions.
Related Information
• Altera IP Release Notes
• Errata for Viterbi IP core in the Knowledge Base
Viterbi IP Core Performance and Resource Utilization
This typical expected performance uses different architectures and constraint length, L, combinations,
and ACS units, A, and the Quartus II software. Performance largely depends on constraint length, L.
1-3
architecture)
Hybrid Architecture
The typical expected performance for a hybrid Viterbi IP core uses the Quartus II software with the Arria
V (5AGXFB3H4F40C4), Cyclone V (5CGXFC7D6F31C6), and Stratix V (5SGSMD4H2F35C2) devices
and the following parameters:
Viterbi IP Core Performance and Resource Utilization
UG-VITERBI
2014.12.15
Parameters
LAM10KM20KPrimarySecondary
DeviceALMf
MAX
(MHz)
MemoryRegisters
71Arria V4272076--50758
71Cyclone V 4271856--50774
71Stratix V417438--650651
72Arria 10622363--467051
72Arria V5292156--62571
72Cyclone V 5321806--62574
72Stratix V502408--662556
74Arria 10835366--4885101
74Arria V7442046--85699
74Cyclone V 7461736--856100
74Stratix V652382--685682
91Arria 10932343--997088
1Arria V79219011--92790
91Cyclone V 79417611--92696
91Stratix V777393--1192494
916Arria V2,11818817--2,743309
916Cyclone V 2,11916317--2,744275
916Stratix V1,887348--172,738198
92Arria 101,029363--91,09174
92Arria V88920511--1,05398
92Cyclone V 88918011--1,05396
92Stratix V883377--111,053115
94Arria 101,240298--91,32187
94Arria V1,09720111--1,302137
94Cyclone V 1,09615911--1,302126
94Stratix V1,021390--111,302119
98Arria V1,46519713--1,788193
98Cyclone V 1,46516313--1,789191
98Stratix V1,398351--131,790154
Altera Corporation
About the Viterbi IP Core
Send Feedback
UG-VITERBI
2014.12.15
Parallel Architecture
The typical expected performance for a parallel Viterbi IP core uses the Quartus II software with the Arria
V (5AGXFB3H4F40C4), Cyclone V (5CGXFC7D6F31C6), and Stratix V (5SGSMD4H2F35C2) devices.
The following parameters apply:
• v = 6 ×L
• N = 2
where:
• v is the traceback length
• L is the constraint length
• N is the number of coded bits
Table 1-4: Typical Performance
Viterbi IP Core Performance and Resource Utilization
53—OffStratix V 396406--548292
33—OnArria V3782375--45667
33—OnCycloneV3782005--45684
33—OnStratix V 378405--545545
53—OnArria V3972105--48368
About the Viterbi IP Core
Send Feedback
Altera Corporation
1-6
Viterbi IP Core Performance and Resource Utilization
UG-VITERBI
2014.12.15
Parameters
softbitsLOptimiz
ation
Best
State
Finder
DeviceALMs
fMAX
(MHz)
MemoryRegisters
M10KM20KPrimarySeconda
53—OnCycloneV3971885--48481
53—OnStratix V 396406--548292
73—OnArria V4242195--51882
73—OnCycloneV4241855--51976
73—OnStratix V 424408--551769
73—OffArria V4242195--51882
73—OffCycloneV4241855--51976
73—OffStratix V 424408--551769
74—OffArria V4242195--51882
74—OffCycloneV4241855--51976
ry
74—OffStratix V 424408--551769
37Continu
OffArria 10 1,180365--5829178
ous
37Continu
OffArria V1,2221879--1,137250
ous
37Continu
OffCycloneV1,2231579--1,137187
ous
37Continu
OffStratix V 1,220325--51,137168
ous
Altera Corporation
About the Viterbi IP Core
Send Feedback
2014.12.15
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
www.altera.com
101 Innovation Drive, San Jose, CA 95134
Viterbi IP Core Getting Started
2
UG-VITERBI
Subscribe
Send Feedback
1.
Installing and Licensing IP Cores
The Altera IP Library provides many useful IP core functions for your production use without purchasing
an additional license. Some Altera MegaCore® IP functions require that you purchase a separate license
for production use. However, the OpenCore® feature allows evaluation of any Altera IP core in simulation
and compilation in the Quartus® II software. After you are satisfied with functionality and perfformance,
visit the Self Service Licensing Center to obtain a license number for any Altera product.
Figure 2-1: IP Core Installation Path
Note:
The default IP installation directory on Windows is <drive>:\altera\<version number>; on Linux it is
<home directory>/altera/ <version number>.
Related Information
• Altera Licensing Site
• Altera Software Installation and Licensing Manual
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:
2015 Altera Corporation. All rights reserved. ALTERA, ARRIA, CYCLONE, ENPIRION, 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
2-2
Viterbi IP Core OpenCore Plus Timeout Behavior
• 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.
Note: All IP cores that use OpenCore Plus time out simultaneously when any IP core in the design times
out.
Viterbi IP Core OpenCore Plus Timeout Behavior
All IP cores in a device time out simultaneously when the most restrictive evaluation time is reached. If
there is more than one IP core in a design, the time-out behavior of the other IP cores may mask the timeout 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 II software uses OpenCore Plus
Files (.ocp) in your project directory to identify your use of the OpenCore Plus evaluation program. After
you activate the feature, do not delete these files..
UG-VITERBI
2014.12.15
When the evaluation time expires the decbit signal goes low .
Related Information
• AN 320: OpenCore Plus Evaluation of Megafunctions
IP Catalog and Parameter Editor
The Quartus II IP Catalog (Tools > IP Catalog) and parameter editor help you easily customize and
integrate IP cores into your project. You can use the IP Catalog and parameter editor to select, customize,
and generate files representing your custom IP variation.
Note:
The IP Catalog (Tools > IP Catalog) and parameter editor replace the MegaWizard™ Plug-In
Manager for IP selection and parameterization, beginning in Quartus II software version 14.0. Use
the IP Catalog and parameter editor to locate and paramaterize Altera IP cores.
The IP Catalog lists installed IP cores available for your design. Double-click any IP core to launch the
parameter editor and generate files representing your IP variation. 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 Qsys system file (.qsys) or Quartus II IP file (.qip) representing the IP core in your
project. You can also parameterize an IP variation without an open project.
Use the following features to help you quickly locate and select 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, open the IP core's
installation folder, and view links to documentation.
• Click Search for Partner IP, to access partner IP information on the Altera website.
Altera Corporation
Viterbi IP Core Getting Started
Send Feedback
Search for installed IP cores
Double-click to customize, right-click for
detailed information
Show IP only for target device
UG-VITERBI
2014.12.15
Figure 2-2: Quartus II IP Catalog
Specifying IP Core Parameters and Options
2-3
Note: The IP Catalog is also available in Qsys (View > IP Catalog). The Qsys IP Catalog includes
exclusive system interconnect, video and image processing, and other system-level IP that are not
available in the Quartus II IP Catalog. For more information about using the Qsys IP Catalog, refer
to Creating a System with Qsys in the Quartus II Handbook.
Specifying IP Core Parameters and Options
You can quickly configure a custom IP variation in the parameter editor. Use the following steps to
specify IP core options and parameters in the parameter editor. Refer to Specifying IP Core Parametersand 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.
Viterbi IP Core Getting Started
Send Feedback
Altera Corporation
View IP port
and parameter
details
Apply preset parameters for
specific applications
Specify your IP variation name
and target device
2-4
Files Generated for Altera IP Cores
• 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. Ifyou are prompted to manually add the .qsys file to the project, click Project > Add/Remove Files in
Project to add the file.
9. After generating and instantiating your IP variation, make appropriate pin assignments to connect
ports.
Figure 2-3: IP Parameter Editor
UG-VITERBI
2014.12.15
Files Generated for Altera IP Cores
The Quartus II software generates the following IP core output file structure:
Altera Corporation
Viterbi IP Core Getting Started
Send Feedback
<your_testbench>_tb.csv
<your_testbench>_tb.spd
<your_ip>.cmp - VHDL component declaration file
<your_ip>.ppf - XML I/O pin information file
<your_ip>.qip - Lists IP synthesis files
<your_ip>.sip - Contains assingments for IP simulation files
<your_ip>.v or .vhd
Top-level IP synthesis file
<your_ip>.v or .vhd
Top-level simulation file
<simulator_setup_scripts>
<your_ip>.qsys - System or IP integration file
<your_ip>_bb.v - Verilog HDL black box EDA synthesis file
<your_ip>_inst.v or .vhd - Sample instantiation template
<your_ip>_generation.rpt - IP generation report
<your_ip>.debuginfo - Contains post-generation information
<your_ip>.html - Connection and memory map data
<your_ip>.bsf - Block symbol schematic
<your_ip>.spd - Combines simulation scripts for multiple cores
<system>.sopcinfoDescribes the connections and IP component parameterizations in
Viterbi IP Core Getting Started
Send Feedback
File NameDescription
The Qsys system or top-level IP variation file. <my_ip> is the name
that you give your IP variation.
your Qsys system. You can parse its contents to get requirements
when you develop software drivers for IP components.
Downstream tools such as the Nios II tool chain use this file.
The .sopcinfo file and the system.h file generated for the Nios II tool
chain include address map information for each slave relative to each
master that accesses the slave. Different masters may have a different
address map to access a particular slave component.
Altera Corporation
2-6
Files Generated for Altera IP Cores
File NameDescription
<my_ip>.cmpThe VHDL Component Declaration (.cmp) file is a text file that
contains local generic and port definitions that you can use in VHDL
design files.
UG-VITERBI
2014.12.15
<my_ip>.html
A report that contains connection information, a memory map
showing the address of each slave with respect to each master to
which it is connected, and parameter assignments.
<my_ip>_generation.rptIP or Qsys generation log file. A summary of the messages during IP
generation.
<my_ip>.debuginfoContains post-generation information. Used to pass System Console
and Bus Analyzer Toolkit information about the Qsys interconnect.
The Bus Analysis Toolkit uses this file to identify debug components
in the Qsys interconnect.
<my_ip>.qip
Contains all the required information about the IP component to
integrate and compile the IP component in the Quartus II software.
<my_ip>.csvContains information about the upgrade status of the IP component.
<my_ip>.bsfA Block Symbol File (.bsf) representation of the IP variation for use
in Quartus II Block Diagram Files (.bdf).
<my_ip>.spd
Required input file for ip-make-simscript to generate simulation
scripts for supported simulators. The .spd file contains a list of files
generated for simulation, along with information about memories
that you can initialize.
<my_ip>.ppfThe Pin Planner File (.ppf) stores the port and node assignments for
IP components created for use with the Pin Planner.
<my_ip>_bb.vYou can use the Verilog black-box (_bb.v) file as an empty module
declaration for use as a black box.
<my_ip>.sipContains information required for NativeLink simulation of IP
components. You must add the .sip file to your Quartus project.
<my_ip>_inst.v or _inst.vhdHDL example instantiation template. You can copy and paste the
contents of this file into your HDL file to instantiate the IP variation.
<my_ip>.regmapIf the IP contains register information, the .regmap file generates.
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
enables register display views and user customizable statistics in
System Console.
Altera Corporation
Viterbi IP Core Getting Started
Send Feedback
UG-VITERBI
2014.12.15
Simulating Altera IP Cores in other EDA Tools
File NameDescription
2-7
<my_ip>.svd
<my_ip>.v
or
<my_ip>.vhd
mentor/
aldec/
/synopsys/vcs
/synopsys/vcsmx
Allows HPS System Debug tools to view the register maps of
peripherals connected to HPS within a Qsys system.
During synthesis, the .svd files for slave interfaces visible to System
Console masters are stored in the .sof file in the debug section.
System Console reads this section, which Qsys can query for register
map information. For system slaves, Qsys can access the registers by
name.
HDL files that instantiate each submodule or child IP core for
synthesis or simulation.
Contains a ModelSim® script msim_setup.tcl to set up and run a
simulation.
Contains a Riviera-PRO script rivierapro_setup.tcl to setup and run a
simulation.
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.
/cadence
Contains 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.
<child IP cores>/For each generated child IP core directory, Qsys generates /synth and /
sim sub-directories.
Simulating Altera IP Cores in other EDA Tools
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.
Viterbi IP Core Getting Started
Send Feedback
Altera Corporation
Post-fit timing
simulation netlist
Post-fit timing simulation (3)
Post-fit functional
simulation netlist
Post-fit functional
simulation
Analysis & Synthesis
Fitter
(place-and-route)
TimeQuest Timing Analyzer
Device Programmer
Quartus II
Design Flow
Gate-Level Simulation
Post-synthesis
functional
simulation
Post-synthesis functional
simulation netlist
(Optional) Post-fit
timing simulation
RTL Simulation
Design Entry
(HDL, Qsys, DSP Builder)
Altera Simulation
Models
EDA
Netlist
Writer
2-8
DSP Builder Design Flow
Figure 2-5: Simulation in Quartus II Design Flow
UG-VITERBI
2014.12.15
Note: Post-fit timing simulation is supported only for Stratix IV and Cyclone IV devices in the current
version of the Quartus II software. Altera IP supports a variety of simulation models, including
simulation-specific IP functional simulation models and encrypted RTL models, and plain text
RTL models. These are all cycle-accurate models. The models support fast functional simulation of
your IP core instance using industry-standard VHDL or Verilog HDL simulators. For some cores,
only the plain text RTL model is generated, and you can simulate that model. Use the simulation
models only for simulation and not for synthesis or any other purposes. Using these models for
synthesis creates a nonfunctional design.
Related Information
Simulating Altera Designs
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.
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. For more information about the DSP Builder flow, refer to the
Altera Corporation
Viterbi IP Core Getting Started
Send Feedback
UG-VITERBI
2014.12.15
Related Information
Using MegaCore Functions chapter in the DSP Builder Handbook.
DSP Builder Design Flow
2-9
Viterbi IP Core Getting Started
Send Feedback
Altera Corporation
2014.12.15
RR
Port
MSB
LSB
ga_xor
gb_xor
www.altera.com
101 Innovation Drive, San Jose, CA 95134
Viterbi IP Core Functional Description
3
UG-VITERBI
Subscribe
Decoder
The Viterbi decoder can be a continuous or block decoder.
The continuous decoder processes a number of symbols greater than the traceback length. When the
decoder traces back the number of bits (traceback length), it delivers output bits. This behavior changes
when you assert the end of packet (EOP) signal. The decoder then switches to block decoding, starting
traceback from the last symbol or state. The tr_init_state signal indicates the end state that starts the
traceback operation. For block decoding Altera recommends you indicate the end state of the tail bits
(usually zero) and set the tb_type signal to 1.
Convolutional Encoder
The viterbi IP core convolutional encoder.
Figure 3-1: Convolutional Encoder
L = 5, N = 2 and polynomials GA = 19 and GB = 29. GA in decimal is 19, which is equal to 10011 in
binary. The most significant bit of the binary representation is the connection at the input data bit; the
least significant bit (LSB) represents the connection at the end of the shift register chain. The XOR
function implements the modulo-2 adding operation
2015 Altera Corporation. All rights reserved. ALTERA, ARRIA, CYCLONE, ENPIRION, 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
Uncoded Bit
Input
c
2
c
0
GB
GA
c
1
3-2
Trellis Coded Modulation
Trellis Coded Modulation
Trellis coded modulation (TCM) combines modulation and encoding processes to achieve better
efficiency without increasing the bandwidth.
Bandwidth-constrained channels operate in the region R/W > 1, where R = data rate and W = bandwidth
available. For such channels, digital communication systems use bandwidth efficient multilevel phase
modulation. For example, phase shift keying (PSK), phase amplitude modulation (PAM), or quadrature
amplitude modulation (QAM).
When you apply TCM to a bandwidth-constrained channel, you see a performance gain without
expanding the signal bandwidth. An increase in the number of signal phases from four to eight requires
approximately 4dB in additional signal power to maintain the same error rate. Hence, if TCM is to
provide a benefit, the performance gain of the rate 2/3 code must overcome this 4dB penalty. If the
modulation is an integral part of the encoding process and is designed in conjunction with the code to
increase the minimum Euclidian distance between the pairs of coded signals, the loss from the expansion
of the signal set is easily overcome and significant coding gain is achieved with relatively simple codes.
Any bandwidth-constrained system benefits from this technique, for example, satellite modem systems.
The TCM Viterbi decoder only supports N = 2 (only mother code rates of 1/2).
UG-VITERBI
2014.12.15
Half-Rate Convolutional Codes
A 1/2 rate convolutional code encodes one information bit and leaves the second information bit
uncoded.
Figure 3-2: Half-Rate Convolutional Code
With an eight-point signal constellation (e.g. eight-PSK), the two bits select one of the four subsets in the
signal constellation. The remaining information bit selects one of the two points within each subset.
Altera Corporation
Viterbi IP Core Functional Description
Send Feedback
011
001
000
110
111
101
100
010
0
1
2
3
4
5
6
7
UG-VITERBI
2014.12.15
Half-Rate Convolutional Codes
Figure 3-3: Mapping of Coded Bits and Sector Numbers
The specific mapping is not important. You can derive other mappings by permutating subsets in a way
that preserves the main property of increased minimum distance among the subsets. However, you can
create any other mapping, including symbol mappings for 8-PSK, 16-PSK and others.
If you create another mapping, you must correctly connect the branch metrics created outside the IP core
to the input ports and correctly configure the polynomials GA and GB for the trellis generation.
3-3
Viterbi IP Core Functional Description
Send Feedback
Altera Corporation
00
01
10
11
101
001
110
010
000 = (c2 c1 c0)
011
111
111
011
100
000
100
001
101
010
110
3-4
Trellis Decoder
Figure 3-4: Four-State Trellis
The four-state trellis is the trellis for the 1/2 rate convolution encoder with the addition of parallel paths in
each transition to accommodate the uncoded bit c2. The decoder uses the coded bits (c1, c0) to select one
of the four subsets that contain two signal points each It uses the uncoded bit to select one of the two
signal points within each subset.
UG-VITERBI
2014.12.15
Altera Corporation
Trellis Decoder
The decoder processes an arriving symbol to obtain four branch metric values and a sector number. The
branch metrics enter the Viterbi decoder in trellis mode and it obtains the encoded bit.
The encoder re-encodes this bit stream and the decoder uses the output of this encoder with the sector
number information to retrieve the uncoded bit. The testbench implements all the logic. The wizard
generates the branch metric values and sector number values, so you need no logic to create these values.
The testbench reads the sector number when it needs it. It has no delay functionality nor rotation. The
wizard-created data introduces has no phase error so the phase is aligned. In a real system, you must
calculate the phase. For a TCM code the BER block does not produce a meaningful output (numerr),
because the BER block does not compute errors at the input for TCM codes.
Viterbi IP Core Functional Description
Send Feedback
decdat0
Viterbi
Decoder
Trellis Mode
Rate 1/2
Convolutional
Encoder
Trellis
Output
Demapper
decdat1
Branch
Metric
Rotate
Delay
Sector
Number
ROM
(I, Q)
to
Branch
Metric
and
Sector
Number
Rotate
Sector
Number
I
Q
UG-VITERBI
2014.12.15
Figure 3-5: Implementation of the Viterbi Decoder as a Trellis Decoder
About Converting Received Signals
The Viterbi decoder calculates the distances to the nearest four symbol points as an unsigned number in
the range 0...00 to 1...11 (number of softbits).
About Converting Received Signals
3-5
Where the range is equal to the radius of the symbol map. The decoder works with accumulative metrics
(not Euclidean metrics), so the decoder inverts these distances (000 becomes 111; 001 becomes110).
Viterbi IP Core Functional Description
Send Feedback
Altera Corporation
Branch Metric 1
Branch Metric 3
Branch Metric 2
Branch Metric 0
Received Symbol
011
001
000
110
111
101
100
010
2
3-6
About Converting Received Signals
Figure 3-6: Conversion of Received Symbol into Four Branch Metrics and a Sector Number
UG-VITERBI
2014.12.15
For example, consider a received symbol that lands in sector number 2 with the following distances to the
four nearest symbol map points:
• 1111
• 1101
• 1011
• 0001
Where the distance of the radius for 4 softbits is 1111. The distances are inverted to obtain the following
branch metrics:
• Branch metric 0 = 0000
• Branch metric 1 = 0010
• Branch metric 2 = 0100
• Branch metric 3 = 1110
The decoder uses the coded bits (c1, c0) to select the branch metric number, which it uses to decide where
to connect the branch metrics to the rr input of the Viterbi decoder. Branch metric 3 goes to the most
significant bits (MSB) of rr; branch metric 0 goes to the least significant bits (LSB) of rr.
Altera Corporation
Viterbi IP Core Functional Description
Send Feedback
UG-VITERBI
2014.12.15
Trellis Termination
Block decoders must properly decode the last bits of the block and adapt to the convolutional encoder.
Tail-biting feeds the convolutional encoder with a block and terminates it with (L – 1) unknown bits
taken from the end of the block. Tail-biting sets the initial state of the convolutional encoder with the last
(L – 1) information bits. Tail-biting is decoded by replicating the block at the decoder or double feeding
the block into the decoder. By decoding in the middle point, the trellis is forced into the state that is both
the initial state and the end state. From the first decoding block, you can take the last half of the block;
from the second decoded block (or second pass through the decoder), you can obtain the first half of the
bits of the block.
Note: In tail-biting, the block size must be large enough to train the decoder, otherwise you may see BER
Alternatively, if you initialize the convolutional encoder to zero, the initial state of the trellis is zero. The
decoder knows the last (L – 1) bits to the convolutional encoder. They bring the convolutional encoder to
a known end state. The decoder then uses this information to set the end state of the trellis with
tr_init_state, which is derived from the last (L – 1) bits of the block in reverse order. For example, for a
block that ends in: ...000101 If L = 5 and the decoder knows the last (L – 1) = 4 bits, it sets tr_init_state
as 0101, which reversed and in binary is 1010, or 10 in decimal. The wizard generates tr_init_state as if
it knows the last (L – 1) bits of each block.
loss.
Trellis Termination
3-7
Trellis Initialization
The parallel decoder always starts its trellis from state zero for a new block.
However, the hybrid decoder allows you to set the initial state (usually zero) with bm_init_state. This
signal ranges from 0 to 2 (L – 1) – 1, which are the trellis states. The bm_init_value signal initializes the
state metric of the state indicated by bm_init_state. The decoder initializes all other states with zero. The
appropriate value for this port is approximately 2
1)
. Continuous decoders never reset the state metrics, which creates a possible difference if the same block
of data is sent several times. Initially, the decoder sets the state metrics so that the state metric for state 0 is
0, and all others infinity. For any subsequent blocks, the state metrics contain whatever they have when
the previous block ends.
Viterbi IP Core Parameters
Architecture
Table 3-1: Architecture Parameters
ParameterValueDescription
(bmgwide – 2)
or any value between 2
(N + softbits)
to 2
(bmgwide –
Viterbi architecureHybrid or ParallelSelects the hybrid or parallel
Viterbi IP Core Functional Description
Send Feedback
architecture.
Altera Corporation
Viterbi
Decoder
Input Symbols
Delay
Compare
and Count
BER Output
(numerr)
Convolutional
Encoder
3-8
BER Estimator
ParameterValueDescription
BEROn or OffSpecifies the BER estimator
option, refer to “BER Estimator”
on page 3–7.
Node SyncOn or OffSpecifies the node synchroniza‐
tion option (only available when
BER option is on).
OptimizationsNone, Continuous, or BlockSpecifies the optimization for the
parallel decoder. if you select
None you can turn on Best State
Finder. However, to use lesslogic, turn off Best State Finder.
BER Estimator
The BER estimator option uses a re-encode and compare approach for estimating the number of errors in
the input data.
Figure 3-7: BER Block Diagram
UG-VITERBI
2014.12.15
In cases where the signal-to-noise ratio is sufficiently high to allow the decoder to decode an error-free
output, the BER estimation is very close to the actual channel BER. When the decoder is not decoding an
error-free output, the estimated BER is higher and more random than the actual channel BER, which
introduces a degree of uncertainty directly proportional to the output errors.
Note:
For a TCM code, the BER block does not produce a meaningful output (numerr) because the BER
block does not compute errors at the input for TCM codes.
Altera Corporation
Viterbi IP Core Functional Description
Send Feedback
3.003.504.004.505.00
5.506.00
Signal-to-Noise Ratio
BER
Actual BER
Estimated BER
1.00e-03
1.00e-02
1.00e-01
state_node_sync
Barrel
Rotator
rr(1)
rr(2)
...
RR(1)
RR(2)
...
rr(N)RR(N)
UG-VITERBI
2014.12.15
Figure 3-8: Graph Comparing Actual BER with Estimated BER
Node Synchronization
3-9
Node Synchronization
If you are not using external synchronization, you may not know the order of your N bits. The node
synchronization option allows you to rotate the rr inputs until the decoder is in synchronization. To use
node synchronization, you observe the BER and keep changing state_node_sync to rotate the rr inputs
until you get the correct value for the BER.
Figure 3-9: Node Synchronization Block Diagram
The following equation represents node synchronization:
RR[i] = rr[((state_node_sync + i – 1) mod N) + 1]
where i is 1 to N.
Viterbi IP Core Functional Description
RR and rr are treated as an array of width N of busses softbits wide. The range of valid values for
state_node_sync is 0 to (N – 1).
Code Sets
Send Feedback
Altera Corporation
3-10
Viterbi Parameters
Table 3-2: Code Sets Parameters
ParameterValueDescription
UG-VITERBI
2014.12.15
Number of
Code Sets
1 to 8The Viterbi IP core supports multiple code definitions. The multiple
code set option allows up to eight code sets, where a code set comprises
a code rate and associated generating polynomials.
Number of
coded bits.
(N)
2 to 7 (hybrid)
2 to 4 (parallel)
For every bit to be encoded, N bits are output. With the multiple code
set option there are up to 5 different N parameters, which can be in any
order. Valid only for Viterbi mode. For TCM mode only N = 2 is
supported
Constraint
length (L)
3 to 9The constraint length. Defines the number of states in the convolu‐
tional encoder, where number of states = 2(L – 1). You can choose
different values of L for each code set.
Decimal or
Octal
–Decimal or octal base representation for the generator polynomials.
The design file representation is decimal, but you have the option of
entering in either decimal or octal base.
ModeV or TViterbi (V) or TCM mode (T).
GA, GB, GC,
GD, GE, GF,
GG
–The generator polynomials. If you use the multiple code set option, the
wizard enters a different set of polynomials in the respective gi group.
The wizard provides default values that you can overwritte by any valid
polynomial. (The wizard does not check whether the entered values are
valid.) The parallel architecture uses only GA, GB, GC, and GD.
For multiple code sets, the first code definition corresponds to the first line and is selected with sel_code
input = 0; the second line is selected with sel_code = 1; the third with sel_code = 2 and so on. For each
code definition you can select N, the polynomials, the constraint length L, and the mode (Viterbi or
TCM). You can mix different constraint lengths with different TCM and Viterbi modes. The test data,
which the wizardr creates, tests each of the code definitions. You can see these tests in the simulation with
the testbench or if you look at the block_period_stim.txt file.
In hybrid mode, for constraint lengths of 3 and 4, the bitwidth of tr_init_state is 4, but the MegaCore
function ignores the redundant higher bits.
For multiple constraint lengths, some of the last decoded bits may be incorrect, becauset of the Viterbi
algorithm. To avoid this effect, give a lower BER, and reduce the probability of being on the wrong trellis
path, set Optimization to None and turn on Best State Finder.
Viterbi Parameters
Maximum constraint length
(L
)
MAX
Altera Corporation
ParameterValueDescription
5 to 9 (hybrid)
The maximum constraint length
L
. .
MAX
3 to 9 (parallel)
Viterbi IP Core Functional Description
Send Feedback
UG-VITERBI
2014.12.15
Soft Symbol Input
ParameterValueDescription
3-11
ACS Units (A)1, 2, 4, 8, or 16The number of ACS units, which
adds a degree of parallelism
(hybrid architecture only). The
range of values available depends
upon the value of maximum
constraint length L
MAX
.
Traceback (v)8 (minimum)The traceback length, which is
the number of stages in the trellis
that are traced back to obtain a
decoded bit. It is typically set to 6
× L for unpunctured codes, and
up to 15 × L for highly
punctured codes.
Softbits (softbits)1 to 16The number of soft decision bits
per symbol. When softbits is set
to 1 bit, the decoder acts as a
hard decision decoder, and still
allows for erased symbols to be
entered using the eras_sym
input.
Bmgwide–The precision of the state metric
accumulation. The parameter
editor selects and displays the
optimum value, which depends
on N
MAX
, L
MAX
and, softbits.
Soft Symbol Input
The number of soft decision bits per symbol, softbits, represent 2
input values represent received signal amplitudes. If the input is in log-likelihood format, a transforma‐
tion is required and you must use extra softbits to retain signal integrity. The decoder marks depunctured
values separately. The decoder allows a hard-decision input when softbits = 1.
The Viterbi decoder state metrics are accumulative not Euclidean and are based on maximum metrics
rather than minimum metrics.
UG-VITERBI
2014.12.15
As the metrics grow, normalize them to avoid overflow. When a normalization occurs the decoder
subtracts 2
(bmgwide – 1)
value for the best path = (number of normalizations) × (2
the best path, the number of symbols processed, and the number of errors in the BER block indicate the
quality of the channel and whether you have a suitable value for softbits. The output bestadd indicates the
state that has the best metric.
Throughput Calculator
The throughput calculator uses the following equation:
Hybrid throughput = f
where:
• • Z = 10, if log2C = 3
• Z= 2log2C, if log2C > 3
• log2C = L
• L
MAX
MAX
is the maximum constraint length
• A is ACS units
• Parallel throughput = f
Latency Calculator
The latency calculator gives you an approximate indication of the latency of your Viterbi decoder.
from all metrics and increases the normalization register by +1. The total metric
MAX
(bmgwide – 1)
/Z
) + bestmet. The total metric value for
– 2 – log2A
MAX
Latency is the number of clock cycles it takes the decoder to process r the data and output it. Latency is
from the first symbol to enter the IP core (sink_sop) up to the first symbol to leave (source_sop). The
latency depends on the parameters. For the precise latency, perform simulation. The latency calculator
uses the following formula for the hybrid architecture:
Number of clock cycles = Z × V
where:
• • V is the traceback length value that is in the input tb_length
For the parallel architecture the number of clock cycles is approximately 4V.
Test Data
Altera Corporation
• Z = 10, if log2C = 3
• Z = 2log2C, if log2C > 3
• log2C = L
– 2 – log2A, where A is ACS units
MAX
Viterbi IP Core Functional Description
Send Feedback
UG-VITERBI
2014.12.15
ParameterDescription
External Puncturing
3-13
Number of bits per block
The number of bits per block.
The number of bits per block × the number of blocks must be less than
50,000,000.
Signal to noise ratio (dB)The signal to noise ratio, which must be between 1 and 100.
Number of blocks
The number of blocks.
The number of bits per block × the number of blocks must be less than
50,000,000.
Pattern AEnter the puncturing pattern A.
Pattern BEnter the puncturing pattern B.
External Puncturing
Both parallel and hybrid architectures support external puncturing.
All punctured codes are based on a mother code of rate 1/2. For external depuncturing you must
depuncture the received data stream external to the decoder and input the data into the decoder n
symbols at a time.
Table 3-4: Puncturing Schemes
You can define these schemes and their rate. CA refers to the most significant (first transmitted bit, first received
symbol); CB refers to the least significant (last transmitted bit, last received symbol)
The Viterbi Avalon-ST interface supports backpressure, which is a flow control mechanism, where a sink
can indicate to a source to stop sending data.
The ready latency on the Avalon-ST input interface is 1.
You may achieve a higher clock rate by driving the source ready signal source_rdy of the Viterbi high,
and not connecting the sink ready signal sink_rdy.
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 synchro‐
nizes multichannel designs, which allows you to achieve efficient, time-multiplexed implementations
without having to implement complex control logic.
UG-VITERBI
2014.12.15
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
Global Signals
Signal NameDescription
clkThe main system clock. The whole MegaCore
function operates on the rising edge of clk.
resetReset. The entire decoder is asynchronously reset
when reset is asserted high. The reset signal resets
the entire system. You must deassert the reset signal
synchronously with respect to the rising edge of
clk.
Avalon-ST Sink Signals
Altera Corporation
Viterbi IP Core Functional Description
Send Feedback
UG-VITERBI
2014.12.15
Avalon-ST Sink Signals
3-15
Signal Name
eras_
sym[Nmax
Avalon-ST
Name
datInputWhen asserted, eras_sym Indicates an erased symbol. Both
DirectionDescription
rr and eras_sym are Avalon-ST dat inputs
:1]
rrdatInputData input, which takes in n symbols, each softbits wide per
clock. In TCM mode the rr width is (2N × softbits:1); in
Viterbi mode the rr width is (nmax × softbits:1).Both rr
and eras_sym are Avalon-ST dat inputs
sink_eopeopInputEnd of packet (block) signal. sink_eop delineates the packet
boundaries on the rr bus. When sink_eop is high, the end
of the packet is present on the dat bus. sink_eop is asserted
on the last transfer of every packet. This signal applies to
block decoding only.
sink_rdyreadyOutputData transfer enable signal.The interface sink drives sink_
rdy and controls the flow of data across the interface. sink_
rdy behaves as a read enable from sink to source. When the
source observes sink_rdy asserted on the clk rising edge, it
can drive the Avalon-ST data interface signals and assert
sink_val as early as the next clock cycle, if data is available.
In the hybrid architecture, sink_rdy is asserted for one
clock cycle at a time. If data is not available at the time, you
have to wait for the next sink_rdy pulse.
sink_sopsopInputStart of packet (block) signal. sop delineates the packet
boundaries on the rr bus. When sink_sop is high, the start
of the packet is present on the rr bus. sink_sop is asserted
on the first transfer of every packet This signal applies to
block decoding only.
sink_valvalInputData valid signal. sink_val indicates the validity of the data
signals. sink_val is updated on every clock edge where
sink_rdy is sampled asserted, and holds its current value
along with the dat bus where sink_rdy is sampled
deasserted. When sink_val is asserted, the Avalon-ST data
interface signals are valid. When sink_val is deasserted, the
Avalon-ST data interface signals are invalid and you must
disregard them. To determine whether new data has been
received, the sink qualifies the sink_val signal with the
previous state of the sink_rdy signal.
Viterbi IP Core Functional Description
Send Feedback
Altera Corporation
3-16
Avalon Source-ST Signals
UG-VITERBI
2014.12.15
Signal Name
Avalon-ST
Name
sink_datadataInput
Avalon Source-ST Signals
DirectionDescription
In Qsys systems, this Avalon-ST-compliant data bus
includes all the Avalon-ST input data and configuration
signals. The signals are in the following order from MSB to
LSB:
• In
• State_node_sync
• Ber_clear
• Sel_code
• Tb_type
• Tb_length
• Tr_init_state
• Bm_init_state
• Bm_init_value
• Eras_symRr
Signal
Avalon-ST
Name
DirectionDescription
decbitdatOutputThe decbit signal contains output bits when source_val is
asserted.
source_eop eopOutputEnd of packet (block) signal. if you select continuous
optimization, this signal is left open and you must remove it
from the testbench.
source_rdy readyInputData transfer enable signal. The sink interface drives
source_rdy and uses it to control the flow of data across the
interface. ena behaves as a read enable from sink to source.
When the source observes source_rdy asserted on the clk
rising edge it drives, on the following clk rising edge, the
Avalon-ST data interface signals and asserts source_val.
The sink captures the data interface signals on the following
clk rising edge. If the source is unable to provide new data,
it deasserts source_val for one or more clock cycles until it
is prepared to drive valid data interface signals.
source_sop sopOutputStart of packet (block) signal. if you select continuous
optimization, this signal is left open and you must remove it
from the testbench.
source_val valOutputData valid signal. The IP core assers source_val high for
one clock cycle, whenever there is a valid output on the
decbit signal.
Altera Corporation
Viterbi IP Core Functional Description
Send Feedback
UG-VITERBI
2014.12.15
Configuration Signals
3-17
Signal
Avalon-ST
Name
out_datadataOutput
DirectionDescription
In Qsys systems, this Avalon-ST-compliant data bus
includes all the Avalon-ST output data and configuration
signals. The signals are in the following order from MSB to
LSB:
• Numerr
• BestAdd
• BestMet
• Normalizations
• Decbit
Configuration Signals
Signal NameDescription
ber_clearReset for the BER counter. Only for the BER block option.
bm_init_state[(L-1):1]Specifies the state in which to initialize with the value from the bm_
init_value[] bus. All other state metrics are set to zero. the IP core
latches bm_init_state when sink_sop is asserted. Hybrid architec‐
ture only
bm_init_value[(L-1):1]
Specifies the value of the metric that initializes the start state. All other
metrics are set to 0. bm_init_value must be larger than (L × 2
1)
). the IP core latches bm_init_value when sink_sop is asserted.
(softbits –
Hybrid architecture only
sel_code[log2(Ncodes):1]Selects the codeword. ’0’ selects the first codeword, ‘1’ selects the
second, and so on. The bus size increases according to the number of
codes specified. The IP core latches sel_code when sink_sop is
asserted.
state_node_sync[log2(Nmax):1]
Specifies the node synchronization rotation to rr.
The IP core latches state_node_sync signal when sink_sop is
asserted. Available only when you turn on Node Sync.
tb_length[]Traceback length. The maximum width of tb_length is equal to the
maximum value of parameter v. The IP core latches tb_length input
when sink_sop is asserted. This IP core disables this signal if you select
the continuous optimization: you must then remove it from the
testbench.
Viterbi IP Core Functional Description
Send Feedback
Altera Corporation
3-18
Status Signals
Signal NameDescription
tb_typeAltera recommends that you set tb_type high always for future
compatibility. In block decoding when tb_type is low, the decoder
starts from state 0; when tb_type is high, the decoder uses the state
specified in tr_init_state[(L-1):1]. For block decoding set tb_
type high. The IP core latches tb_type when sink_eop is asserted. If
you select None or Continuous optimization, the IP core connects this
input to zero.
tr_init_state[(L-1):1]Specifies the state to start the traceback from, when tb_type is asserted
high. The IP core latches tr_init_state when sink_eop is asserted. If
you select continuous optimization, this input is removed from the top
level design and connected to zero in the inner core.
Status Signals
SignalDescription
bestadd[(L-1):1]The best address state. The address corresponding to the best metric as
it is being found by the best state finder. The metric of this state if
shown in bestmet. If you select Continuous or None optimization and
turn off best state finder, the IP core leaves this signal open. For parallel
decoders, the IP core removes this signal.
UG-VITERBI
2014.12.15
bestmet[bmgwide:1]The best metric. The bestmet signal shows the best state metric for
every trellis step as the best state finder finds it. The state that contains
this best metric is shown in bestadd. If you select Continuous or
None for optimization and turn off best state finder, the IP core leave
this signal open, For parallel decoders, the IP core removes this signal.
normalizations[8:1]The normalizations bus indicates in real time the number of normali‐
zations that occur since you activated sink_sop.
numerr[]The numerr bus contains the number of errors detected during a block.
The iP core updates it each time it detects an error, so you can see the
location of individual errors. It is reset when source_sop asserted; it is
valid two-clock cycles after source_sop. The wizard automatically sets
the width of this bus. If you do not select a BER block, the IP cores
leaves this signal open. Only available when you select the BERestimator option
Viterbi IP Core Timing Diagrams
Altera Corporation
Viterbi IP Core Functional Description
Send Feedback
clk
sink_rdy
sink_val
sink_sop
sink_eop
rr[8:1]
77
88
88
clk
sink_rdy
sink_val
sink_sop
sink_eop
rr[8:1]
valid datavalid data
clk
source_sop
source_eop
source_rdy
source_val
decbit
UG-VITERBI
2014.12.15
Viterbi IP Core Timing Diagrams
Figure 3-10: Hybrid Decoder Input Timing Diagram
The sink_rdy signal is asserted for one clock cycle in every Z clock cycles. If the decoder becomes full
because data is not being collected on the source side, it may deassert sink_rdy until it can accept new
data. The decoder only accepts data, if sink_rdy is asserted.
The source_val signal is asserted initially for 8 or 16 clock cycles. It is then asserted for the number of
clock cycles corresponding to the amount of remaining data, if source_rdy remains asserted. The typical
ending of a block or packet in the Avalon-ST interface is on the source (Viterbi) to the sink (user) side
connection.
Viterbi IP Core Functional Description
Send Feedback
Altera Corporation
clk
source_sop
source_eop
source_rdy
source_val
decbit
clk
ena
val
sop
rr[8:5]
rr[4:1]
eras_sym[2]
eras_sym[1]
BX7AX7
87XD9X
3-20
Viterbi IP Core Timing Diagrams
Figure 3-13: Output Timing - Example 2
With a different ending.
Figure 3-14: Depuncturing Timing Diagram
This depuncturing timing diagram shows eras_sym for the pattern 110110 (puncturing rate 3/4). By
changing the eras_sym pattern you can implement virtually any depuncturing pattern you require.
UG-VITERBI
2014.12.15
Altera Corporation
Viterbi IP Core Functional Description
Send Feedback
2014.12.15
www.altera.com
101 Innovation Drive, San Jose, CA 95134
Document Revision History
4
UG-VITERBI
Subscribe
Send Feedback
Viterbi IP Core User Guide revision history.
DateVersionChanges Made
2014.12.1514.1
August 201414.0 Arria 10 Edition
June 201414.0
November 201313.1
• Removed Arria 10 specific wizard comments
• Added final support for Arria 10 and MAX 10
devices
• Added support for Arria 10 devices.
• Added new sink_data and out_data bus
description.
• Added Arria 10 generated files description.
• Removed table with generated file descriptions
.
• Removed support for Cyclone III and Stratix III
devices.
2015 Altera Corporation. All rights reserved. ALTERA, ARRIA, CYCLONE, ENPIRION, 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.
12.1Added support for Arria V GZ devices.
ISO
9001:2008
Registered
4-2
Document Revision History
DateVersionChanges Made
UG-VITERBI
2014.12.15
May 201111.0
• Updated support level to final support for Arria
II GX, Arria II GZ, Cyclone III LS, and Cyclone
IV GX devices.
• Updated support level to HardCopy Compila‐
tion for HardCopy III, HardCopy IV E, and
HardCopy IV GX devices
.
December 201010.1
• Added preliminary support for Arria II GZ
devices.
• Updated support level to final support for Stratix
IV GT devices.
July 201010.0Added preliminary support for Stratix V devices.
Altera Corporation
Document Revision History
Send Feedback
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.