January 2014 Altera CorporationSerialLite II MegaCore Function
User Guide
SerialLite II MegaCore function is a lightweight protocol suitable for packet and
streaming data in chip-to-chip, board-to-board, and backplane applications. The
SerialLite II protocol offers low gate count and minimum data transfer latency. It
provides reliable, high-speed transfers of packets between devices over serial links.
The protocol defines packet encapsulation at the link layer and data encoding at the
physical layer, and integrates transparently with existing networks without software
support.
Release Information
1. About This MegaCore Function
Tab le 1– 1 provides information about this release of the Altera® SerialLite II
MegaCore
Table 1–1. SerialLite II Release Information
Version13.1
Release DateNovember 2013
Ordering CodeIP-SLITE2
Product ID00AD
Vendor ID6AF7
Altera verifies that the current version of the Quartus
previous version of each MegaCore function. The MegaCore IP Library Release Notes
and Errata report any exceptions to this verification. Altera does not verify
compilation with MegaCore function versions older than one release.
®
Device Family Support
MegaCore functions provide the following support for Altera device families:
■ Preliminary support—Altera verifies the IP core with preliminary timing models for
this device family. The core meets all functional requirements, but might still be
undergoing timing analysis for the device family. It can be used in production
designs with caution.
function.
ItemDescription
®
II software compiles the
■ Final support—Altera verifies the IP core with final timing models for this device
family. The core meets all functional and timing requirements for the device family
and can be used in production designs.
January 2014 Altera CorporationSerialLite II MegaCore Function
User Guide
1–2Chapter 1: About This MegaCore Function
Features
Tab le 1– 2 shows the level of support offered by the SerialLite II MegaCore function to
each Altera device family.
Table 1–2. Device Family Support
Device FamilySupport
®
II GXFinal
Arria
Arria VPreliminary
Arria V GZPreliminary
®
Cyclone
Stratix
VPreliminary
®
IVFinal
Stratix VPreliminary
Other device familiesNo support
Features
■ Physical layer features
■622 Mbps to 6.375 Gbps per lane
■Single or multiple lane support (up to 16 lanes)
■8-, 16-, or 32-bit data path per lane
■Symmetric, asymmetric, unidirectional/simplex or broadcast mode
■Optional payload scrambling
■Full-duplex or self-synchronizing link state machine (LSM)
■Channel bonding scalable up to 16 lanes
■Synchronous or asynchronous operation
■ Automatic clock rate compensation for asynchronous use
■ ±100 and ±300 parts per million (ppm)
■ Link layer features
■Atlantic
■Support for two user packet types: data packet and priority packet
■Optional packet integrity protection using cyclic redundancy code (CRC-32 or
™
interface compliant
CRC-16)
■Optional link management packets
■ Retry-on-error for priority packets
■ Individual port (data/priority) flow control
■ Unrestricted data and priority packet size
■ Support for TimeQuest timing analyzer
■ Polarity reversal
■ Lane order reversal
SerialLite II MegaCore FunctionJanuary 2014 Altera Corporation
User Guide
Chapter 1: About This MegaCore Function1–3
One or More
Lanes
Logical
Electrical
Physical Layer
Link Layer
Logical
Electrical
Physical Layer
Link Layer
User
Application
User
Application
General Description
■ IP functional simulation models for use in Altera-supported VHDL and Verilog
HDL simulators
■ Support for OpenCore
®
Plus evaluation
General Description
The SerialLite II MegaCore function is a simple, high-speed, low-latency, and
low-resource point-to-point serial data communication link.
The MegaCore function performs up to the following rates:
■ 3.75 Gbps in Arria II GX devices
■ 5 Gbps in Cyclone V devices
■ 6.375 Gbps in Stratix IV, Arria V, and Stratix V devices
The SerialLite II MegaCore function is highly configurable, and provides a wide range
of functionality suited to moving data in many different environments.
The SerialLite II MegaCore function provides a simple and lightweight way to move
data from one point to another reliably at high speeds. It consists of a serial link of up
to 16 bonded lanes, with logic to provide a number of basic and optional link support
functions. The Atlantic interface is the primary access for delivering and receiving
data.
The SerialLite II protocol specifies a link that is simple to build, uses as little logic as
possible, and requires little work for a logic designer to implement. The SerialLite II
MegaCore function uses all of the features available in the SerialLite II protocol. You
can parameterize the MegaCore function using the SerialLite II parameter editor.
A link built using the SerialLite II MegaCore function operates at 622 Mbps to 6.375
Gbps per lane. Link reliability is enhanced by the 8B10B encoding scheme and
optional CRC capabilities. You can achieve further reductions in the bit-error rate by
using the optional retry-on-error feature. Data rate and consumption mismatches can
be accommodated using the optional flow-control feature to ensure that no data is
lost.
Figure 1–1 shows that the SerialLite II MegaCore function is divided into two main
blocks: a protocol processing portion (data link layer) and a high-speed front end
(physical layer).
Figure 1–1. SerialLite II MegaCore Function High-Level Block Diagram
You can use the SerialLite II MegaCore function in the following applications:
■ Chip-to-chip connectivity
January 2014 Altera CorporationSerialLite II MegaCore Function
User Guide
1–4Chapter 1: About This MegaCore Function
Memory
ASSP
Network
Processor
Stratix IV GX
FPGA
Stratix IV
FPGA
SPI-4.2
Interface
SPI-4.2
Interface
SerialLite II
Interface
Optical/
Electrical
Converter
Line Card
Stratix IV GX
FPGA
SerialLite II
Interface
Control Card
Sensor
Sensor
Sensor
Sensor
Sensor
Sensor
Sensor
Sensor
Sensor
Sensor
Sensor
General Description
■ Board-to-board connectivity
■ Shelf-to-shelf connectivity
■ Backplane communication
■ Bridging applications
■ Streaming video applications
■ Imaging applications
Figure 1–2 and Figure 1–3 show two examples of bridging applications.
SerialLite II MegaCore FunctionJanuary 2014 Altera Corporation
User Guide
Chapter 1: About This MegaCore Function1–5
Performance and Resource Utilization
Performance and Resource Utilization
Tab le 1– 3 lists the resources and internal core speeds for a selection of variations using
a 1,024-byte first-in first-out (FIFO) buffer. These results were obtained using the
Quartus II software version 10.1 for the following device: Stratix II GX
(EP2GX90FF1508C3).
Table 1–3. Performance for Stratix II GX (Part 1 of 2)
Data
Flow
Full-
Duplex
Full-
Duplex
Full-
Duplex
Full-
Duplex
Full-
Duplex
Full-
Duplex
Full-
Duplex
Full-
Duplex
Full-
Duplex
Full-
Duplex
Full-
Duplex
Full-
Duplex
Full-
Duplex
Full-
Duplex
Full-
Duplex
Full-
Duplex
Full-
Duplex
Memory
Blocks
M512
M4
Throughp
f
MAX
(MHz)
Mbps
K
Numbe
r of
Lanes
Data/
Type
Parameters
Packet
Type
Tra nsf
er Size
(1)
CR
C
Flow
Contr
ol
Retry-
on-
Error
Combi
n-
ational
ALUTs
Logic
Reg.
1PacketData1NoNoNo7567419102671250
1PacketData2NoNoNo7687540112853125
1PacketData4NoNoNo86381811112736375
4PacketData1NoNoNo1215103115112391250
4PacketData2NoNoNo1507111315222493125
4PacketData4NoNoNo208915542482476375
16PacketData2NoNoNo4101280917871993125
16PacketData4NoNoNo6347449311801856375
1PacketData132YesNo107710289122761250
1PacketData232YesNo118110191122393125
1PacketData432YesNo1381107512122156375
4PacketData132YesNo1787130616122151250
4PacketData232YesNo2387144616231923125
4PacketData432YesNo338419073491776375
1Packet Priority216YesYes144812361222283125
1Packet Priority416YesYes1675128412222256375
4Packet Priority216YesYes2573165917412123125
ut
(2)
January 2014 Altera CorporationSerialLite II MegaCore Function
User Guide
1–6Chapter 1: About This MegaCore Function
Performance and Resource Utilization
Table 1–3. Performance for Stratix II GX (Part 2 of 2)
Parameters
Data
Flow
Full-
Duplex
Notes to Table 1–3:
(1) A transfer size of 1 is used for 1,250 Mbps, 2 is used for 3,125 Mbps, and 4 is used for 6,375 Mbps.
(2) Total throughput equals the value in the Throughput column multiplied by the value in the Number of Lanes column.
Numbe
r of
Lanes
Data/
Type
Packet
Type
4Packet Priority416YesYes3528211017411606375
Tra nsf
er Size
(1)
CR
C
Flow
Contr
ol
Retry-
Error
on-
Combi
n-
ational
ALUTs
Logic
Reg.
Memory
Blocks
M512
Tab le 1– 4 lists the resources and internal core speeds for a selection of variations using
1,024-byte FIFO buffers. These results were obtained using the Quartus II software
version 10.1 for the following device: Stratix GX (EP1SGX40GF1020C5).
Table 1–4. Performance for Stratix GX (Part 1 of 3)
Memory
Blocks
M51
2
M4K
Data
Flow
Full-
Duplex
Full-
Duplex
Full-
Duplex
Full-
Duplex
Full-
Duplex
Full-
Duplex
Full-
Duplex
Full-
Duplex
Full-
Duplex
Full-
Duplex
Full-
Duplex
Parameters
Number
of
Lanes
Data Type
Packet
Type
Transfer
(1)
Size
CRC
Flow
Contro
l
Retry
- onError
LEs
1PacketData1NoNoNo10659101781250
1PacketData2NoNoNo10980111823125
4PacketData1NoNoNo171115111861250
4PacketData2NoNoNo270623221803125
16PacketData2NoNoNo832850871583125
1PacketData132YesNo168710101721250
1PacketData232YesNo17282111633125
4PacketData132YesNo249617111511250
4PacketData232YesNo384825221273125
Data
1Packet
and
2NoBothNo21692191813125
Priority
Data
1Packet
and
232BothNo25382191653125
Priority
M4
Throughp
f
MAX
(MHz)
ut
Mbps
(2)
K
Throughp
f
MAX
(MHz)
ut
Mbps
(2)
SerialLite II MegaCore FunctionJanuary 2014 Altera Corporation
User Guide
Chapter 1: About This MegaCore Function1–7
Performance and Resource Utilization
Table 1–4. Performance for Stratix GX (Part 2 of 3)
Data
Flow
Full-
Duplex
Full-
Duplex
Full-
Duplex
Full-
Duplex
Full-
Duplex
Full-
Duplex
Full-
Duplex
Full-
Duplex
Full-
Duplex
Full-
Duplex
Full-
Duplex
Simplex
Tx
Simplex
Tx
Simplex
Rx
Simplex
Rx
Asymm
Tx
Asymm
Tx
Asymm
Tx
Memory
Blocks
M51
2
M4K
f
MAX
(MHz)
Number
of
Lanes
Data Type
Parameters
Packet
Type
Transfer
(1)
Size
CRC
Flow
Contro
l
Retry
- onError
LEs
Data
4Packet
and
2NoBothNo391133381813125
Priority
Data
4Packet
and
232BothNo479733381253125
Priority
1PacketPriority2NoYesNo13502111883125
4PacketPriority2NoYesNo299324221733125
8PacketPriority2NoYesNo478728441673125
1PacketPriority216YesYes22412211633125
4PacketPriority216YesYes437326401443125
1StreamingData1NoNoNo198002531250
1StreamingData2NoNoNo243002463125
4StreamingData1NoNoNo763401831250
4StreamingData2NoNoNo16811201943125
1StreamingData1NoNoNo27004221250
1StreamingData2NoNoNo35004223125
1StreamingData1NoNoNo98002821250
1StreamingData2NoNoNo128002403125
4PacketData1NoNoNo13928111771250
4PacketData2NoNoNo190817171683125
8PacketData2NoNoNo229213291693125
Throughp
ut
(2)
Mbps
January 2014 Altera CorporationSerialLite II MegaCore Function
User Guide
1–8Chapter 1: About This MegaCore Function
Installation and Licensing
Table 1–4. Performance for Stratix GX (Part 3 of 3)
Parameters
Data
Flow
Asymm
Rx
Asymm
Rx
Broad-
cast Rx
Broad-
cast Rx
Broad-
cast Rx
Notes to Table 1–4:
(1) A transfer size of 1 is used for 1,250 Mbps and 2 is used for 3,125 Mbps.
(2) Total throughput equals the value in the Throughput column multiplied by the value in the Number of Lanes column.
Number
of
Lanes
Data Type
Packet
Type
Transfer
(1)
Size
CRC
4PacketData1NoNoNo16049111951250
4PacketData2NoNoNo255923161773125
4StreamingData1NoNoNo561001871250
4StreamingData2NoNoNo729002003125
8StreamingData2NoNoNo1359001813125
Flow
Contro
Retry
- on-
l
Error
LEs
Memory
Blocks
M51
2
M4K
Installation and Licensing
The SerialLite II MegaCore function is part of the MegaCore IP Library, which is
distributed with the Quartus II software and downloadable from the Altera
www.altera.com.
f
MAX
(MHz)
Throughp
ut
Mbps
website,
(2)
You can use Altera's free OpenCore Plus evaluation feature to evaluate the MegaCore
function in simulation and in hardware before you purchase a license. You need to
purchase a license for the MegaCore function only when you are satisfied with its
functionality and performance, and you want to take your design to production.
After you purchase a license for the SerialLite II MegaCore function, you can request a
license file from the Altera website at www.altera.com/licensing and install it on your
computer. When you request a license file, Altera emails you a license.dat file. If you
do not have internet access, contact your local Altera representative.
SerialLite II MegaCore FunctionJanuary 2014 Altera Corporation
User Guide
Chapter 1: About This MegaCore Function1–9
lib
Contains encrypted lower-level design files.
ip
Contains the Altera MegaCore IP Library and third-party IP cores.
<path>
Installation directory.
altera
Contains the Altera MegaCore IP Library.
common
Contains shared components.
seriallite_ii
Contains the SerialLite II MegaCore function files.
Installation and Licensing
Figure 1–4 shows the directory structure after you install the SerialLite II MegaCore
function, where
<
path> is the installation directory. The default installation directory
on Windows is c:\altera\<version>; on Linux, it is /opt/altera<version>.
Figure 1–4. SerialLite II MegaCore Function Directory Structure
f For details on installation and licensing, refer toAltera Software Installation & Licensing.
OpenCore Plus Evaluation
With Altera's free OpenCore Plus evaluation feature, you can perform the following
actions:
■ Simulate the behavior of a megafunction (Altera MegaCore function or AMPP
megafunction) within your system
■ Verify the functionality of your design, as well as evaluate its size and speed
quickly and easily
■ Generate time-limited device programming files for designs that include
megafunctions
■ Program a device and verify your design in hardware
OpenCore Plus Time-Out Behavior
OpenCore Plus hardware evaluation supports the following two operation modes:
■ Untethered—the design runs for a limited time.
■ Tethered—requires a connection between your board and the host computer. If
tethered mode is supported by all megafunctions in a design, the device can
operate for a longer time or indefinitely.
All megafunctions in a device time out simultaneously when the most restrictive
evaluation time is reached. If there is more than one megafunction in a design, a
specific megafunction's time-out behavior may be masked by the time-out behavior of
January 2014 Altera CorporationSerialLite II MegaCore Function
1For MegaCore functions, the untethered time-out is 1 hour; the tethered time-out
the other megafunctions.
value is indefinite.
SM
User Guide
1–10Chapter 1: About This MegaCore Function
Installation and Licensing
Your design stops working after the hardware evaluation time; the SerialLite II
MegaCore function is forced into reset.
f For more information on OpenCore Plus hardware evaluation, refer to AN 320:
OpenCore Plus Evaluation of Megafunctions.
SerialLite II MegaCore FunctionJanuary 2014 Altera Corporation
User Guide
Design Flow
2. Getting Started
Figure 2–1 outlines the high-level steps required to create a design that includes the
SerialLite II MegaCore function. Each step is explained in detail in the walkthrough
below.
Figure 2–1. SerialLite II MegaCore Design Flow
Specify Parameters
Simulate with Testbench
Instantiate in a Design
Specify Constraints
Compile
Design
Program
Device
This chapter explains how to create a SerialLite II MegaCore function using the
SerialLite II parameter editor in the MegaWizard Plug-In Manager and the Quartus II
software. When you finish generating a custom variation of the SerialLite II MegaCore
function, you can incorporate it into your overall project.
This walkthrough requires the following steps:
1. Create a New Quartus II Project
2. Launch the MegaWizard Plug-In Manager
3. Parameterize
4. Set Up Simulation
5. Generate Files
January 2014 Altera CorporationSerialLite II MegaCore Function
User Guide
2–2Chapter 2: Getting Started
Design Flow
Create a New Quartus II Project
You can create a new Quartus II project with the New Project Wizard, which specifies
the working directory for the project, assigns the project name, and designates the
name of the top-level design entity.
To create a new project follow these steps:
1. Choose Programs >Altera > Quartus II <version> (Windows Start menu) to run
the Quartus II software. Alternatively, you can use the Quartus II Web Edition
software.
2. On the File menu, click New Project Wizard.
3. Click Next in the New Project Wizard: Introduction page (the introduction does
not display if you turned it off previously).
4. In the New Project Wizard: Directory, Name, Top-Level Entity page, enter the
following information:
a. Specify the working directory for your project. For example, this walkthrough
uses the c:\altera\projects\slite2_project directory.
b. Specify the name of the project. This walkthrough uses example for the project
name.
1The Quartus II software automatically specifies a top-level design entity
that has the same name as the project. This walkthrough assumes that the
names are the same.
5. Click Next to display the New Project Wizard: Add Files page.
1When you specify a directory that does not already exist, a message
prompts you to create a specified directory. Click Yes to create the directory.
6. Click Next to close this page and display the New Project Wizard: Family and Device Settings page.
7. On the New Project Wizard: Family and Device Settings page, choose the target
device family in the Family list.
8. The remaining pages in the New Project Wizard are optional. Click Finish to
complete the Quartus II project.
Launch the MegaWizard Plug-In Manager
To launch the MegaWizard Plug-In Manager in the Quartus II software, follow these
steps:
1. On the Tools menu, click MegaWizard Plug-In Manager.
1Refer to Quartus II Help for more information on how to use the
MegaWizard Plug-In Manager.
2. Specify that you want to create a new custom megafunction variation and click
Next.
SerialLite II MegaCore FunctionJanuary 2014 Altera Corporation
User Guide
Chapter 2: Getting Started2–3
Parameterize
3. Under Installed Plug-Ins, expand Interfaces folder and then, click
SerialLite II<version>.
4. Select the output file type for your design; the MegaWizard Plug-In Manager
supports VHDL and Verilog HDL. For this example, select Verilog HDL.
5. The MegaWizard Plug-In Manager shows the project path that you specified in the
New Project Wizard. Append a variation name for the MegaCore function output
files <project path>\<variation name>. For this example, type
example
as the
variation name.
6. Click Next to display the Parameter Settings page for the SerialLite II MegaCore
function.
Parameterize
This section shows how to parameterize the example SerialLite II MegaCore function
and describes the results of various options. A comprehensive description of all
parameters is contained in Chapter 3, Parameter Settings.
1The following parameters are ordered as they appear in the SerialLite II parameter
editor. Not all parameters are supported by, or are relevant for, every MegaCore
function variation.
To parameterize your MegaCore function, follow these steps:
1. Click Parameter Settings in the SerialLite II parameter editor. The Physical Layer
page appears.
2. Enter a data rate in megabits per second (Mbps). The SerialLite II MegaCore
function supports data rates of 622 to 6,375 Mbps per lane.
The data rate must be an acceptable range for the Transfer size. SerialLite II
returns a warning or an error message if you specify a data rate that is not within
the range for the specified Transfer size.
3. Choose a Transfer size. The Transfer size determines the number of contiguous
data columns. The Transfer size also determines the serialization/deserialization
(SERDES) factor and internal data path width:
■A Transfer size of 1 equates to an internal data path of 8 bits (Recommended
for less than 2.5 gigabits per second (Gbps))
■A Transfer size of 2 equates to an internal data path of 16 bits (Recommended
for less than or equal to 3.125 Gbps)
■A Transfer size of 4 equates to an internal data path of 32 bits (Typically for
greater than 3.125 Gbps, and only available for Stratix IV devices)
4. Specify the Reference Clock Frequency. This option defines the frequency of the
reference clock for the Arria II GX or Stratix IV internal transceiver. You can select
any frequency supported by the transceiver. This option is not available in Arria V,
Cyclone V, and Stratix V configurations.
5. Select a Port Type. You have three choices: Bidirectional, Tr an sm it te r o nl y, and Receiver only.
January 2014 Altera CorporationSerialLite II MegaCore Function
User Guide
2–4Chapter 2: Getting Started
Parameterize
1If you choose Tr a ns m i t te r o n ly or Receiver only, the self-synchronized
link-up parameter (LSM) is enabled by default.
6. Turn on or off the Self-Synchronized Link-Up option. This parameter allows the
receiver on the far end of the link to synchronize itself to incoming data streams,
rather than on an exchange of status information with the transmitter. Note that
the Self-Synchronized Link-Up feature is only for single lane applications.
7. Under Transmitter Settings, select the number of lanes for the transmitter.
8. Turn on or off the Scramble and Broadcast mode options.
9. Under Receiver Settings, select the number of lanes for the receiver.
Tab le 2– 1 shows the allowable number of lanes depending on the chosen
parameters.
Table 2–1. Number of Transmit Lanes
Self-Synchronized Link-UpBroadcastNumber of Lanes
vv2 – 16
v—1
—v2 – 16
——1 – 16
10. Turn on or off the De-scramble option.
11. Turn on or off the Enable frequency offset tolerance option. If you turn on this
option, select an offset tolerance of ±100 or ±300 parts per million (ppm).
12. Click Configure Transceiver to display the Configure Transceiver page. Select the
following parameters on the Configure Transceiver page to configure the ALTGX
megafunction.
Refer to “Transceiver Configuration” on page 3–23 for a more detailed description
of the transceiver parameters.
SerialLite II MegaCore FunctionJanuary 2014 Altera Corporation
User Guide
Chapter 2: Getting Started2–5
Parameterize
1The Configure Transceiver page is disabled when you select Arria V or
Stratix V as the target device family. To add a transceiver, you are required
to instantiate the Custom PHY IP core.
a. For the transmitter, select the Voltage Output Differential (V
) control
OD
setting value.
b. Under Pre-emphasis, select a value for Specify pre-emphasis control setting.
c. In the Bandwidth mode list, select high or low for the Tx PLL bandwidth.
d. Select a value for the Transmitter Buffer Power (V
CCH
).
e. Under Receiver Functionality, select a value for Specify equalizer control
setting.
f. In the Bandwidth mode list, select high, medium or low for the Rx PLL
bandwidth.
g. To reconfigure functionality settings, specify a Starting channel number.
h. Click Finish.
13. Click Next to open the Link Layer page.
14. Under Data Type, select Packets or Streaming.
15. If you select Packets, select a packet type: Priority packets and data packets, Priority packets, or Data packets.
16. If you select a packet type that includes priority packets, follow these substeps;
otherwise, skip to Step 17.
a. Turn on or off the Retry-on-error option.
b. If you turned on Retry-on-error, specify a value for Timeout and Segment
size.
c. Under Buffer Size, specify a value for Transmitter and Receiver.
d. Turn on or off the Enable flow control option.
e. If you turned on Enable flow control, specify the values for the following
settings:
■Pause quantum time
■Threshold
■Refresh period
1If you selected Priority packets only, skip to Step 18.
17. If you selected a packet type that includes data packets, follow these substeps:
a. Turn on or off the Enable flow control option.
b. If you turned on flow control, specify the values for the following settings:
■Pause quantum time
■Threshold
■Refresh period
January 2014 Altera CorporationSerialLite II MegaCore Function
User Guide
2–6Chapter 2: Getting Started
1For information on setting these parameters, refer to “Flow Control” on
page 3–15.
c. Select the transmitter and receiver buffer sizes (bytes).
18. If your transmitter or receiver requires cyclic redundancy code (CRC) checking,
turn on the Enable CRC option for your chosen packet type and specify a value
for CRC Type.
19. Click Next.
Parameterize
Set Up Simulation
An IP functional simulation model is a cycle-accurate VHDL or Verilog HDL model
produced by the Quartus II software. The model allows for fast functional simulation
of IP using industry-standard VHDL and Verilog HDL simulators.
c You may use these models only for simulation and not for synthesis or any other
purposes. Using these models for synthesis creates a nonfunctional design.
To generate an IP functional simulation model for your MegaCore function, follow
these steps:
1. On the EDA page, under Simulation Libraries, turn on Generate Simulation Model.
2. Some third-party synthesis tools can use a netlist that contains only the structure
of the MegaCore function, but not detailed logic, to optimize performance of the
design that contains the MegaCore function. If your synthesis tool supports this
feature, turn on Generate netlist.
3. Click Next to display the Summary page.
Generate Files
You can use the check boxes on the Summary page to enable or disable the generation
of specified files. A gray checkmark indicates a file that is automatically generated;
other checkmarks indicate optional files.
To generate your parameterized MegaCore function, follow these steps:
1. Turn on the files you want to generate.
2. To generate the specified files and close the SerialLite II parameter editor, click
Finish. The generation phase can take several minutes to complete.
3. If you generate the MegaCore function instance in a Quartus II project, you are
prompted to add the Quartus II IP File (.qip) to the current Quartus II project.
1The .qip file is generated by the SerialLite II parameter editor and contains
information about a generated IP core. In most cases, the .qip file contains
all of the necessary assignments and information required to process the
MegaCore or system in the Quartus II compiler. The SerialLite II parameter
editor generates a single .qip file for each MegaCore function.
SerialLite II MegaCore FunctionJanuary 2014 Altera Corporation
User Guide
Chapter 2: Getting Started2–7
Simulate the Design
4. After your review the generation report, <variation name>.html, in your project
directory, click Exit to close the SerialLite II parameter editor.
Simulate the Design
You can simulate your design using the MegaWizard-generated VHDL and
Verilog HDL IP functional simulation models.
f For more information on IP functional simulation models, refer to theSimulating
Altera IP in Third-Party Simulation Toolschapter in volume 3 of the Quartus II Handbook.
Altera also provides a Verilog HDL demonstration testbench that shows you how to
instantiate a model in a design for all configurations. Altera also provides a VHDL
demonstration testbench for a restricted number of configurations. The testbench
stimulates the inputs and checks the outputs of the interfaces of the SerialLite II
MegaCore function, allowing you to evaluate the MegaCore function’s basic
functionality. The testbench is described in detail in Chapter 5, Testbench.
Instantiate the MegaCore
You can now integrate your custom MegaCore function variation into your design
and simulate your complete design using your own custom testbench.
Specify Constraints
This example design applies constraints to create virtual pins and set up timing
analysis.
Assign Virtual Pins
If you are compiling the SerialLite II MegaCore function variation as a standalone
component, you must specify virtual pin assignments. The SerialLite II parameter
editor generates a tool command language (Tcl) script that automates this task. Follow
these steps to run the script:
1. On the Tools menu, click Tcl Scripts to open the Tcl Scripts dialog box.
2. In the project directory, select <variation_name>_constraints.
3. Click Run.
1The script assumes the default names for the virtual pins. If you have connected the
pins to names other than the default names, you must edit this script and change the
virtual pin names when the core is still compiled in stand-alone mode.
January 2014 Altera CorporationSerialLite II MegaCore Function
User Guide
2–8Chapter 2: Getting Started
Compile and Program
Fitter Constraints
The Tcl script also optimizes fitter settings to produce the best performance (f
Use this script as a guide to set constraints for the SerialLite II MegaCore function
variation in your design. The timing constraints are currently set for the SerialLite II
MegaCore function variation as a standalone component, thus you must update the
script with hierarchy information for your own design. The Tcl script also points to
the generated Synopsys Design Constraints (SDC) timing constraint script if the
TimeQuest timing analyzer is enabled. The Fitter optimizes your design based on the
requirements in the .sdc files in your project.
The script uses the
1This fitter setting may conflict with your Quartus II software settings.
You can now integrate your MegaCore function variation into your design and
simulate and compile.
Timing Constraints
The SerialLite II MegaCore generates an ASCII file (with the .sdc extension) that
contains design constraints and timing assignments in the industry-standard SDC
format. The constraints in the .sdc file are described using the Tcl tool command
language and follow Tcl syntax rules.
To specify the TimeQuest timing analyzer as the default timing analyzer, on the
Assignments menu, click Timing Analysis Settings. In the Timing Analysis Settings
page, turn on Use TimeQuest Timing Analyzer during compilation.
FITTER_EFFORT "STANDARD FIT"
Fitter setting.
MAX
).
The TimeQuest timing constraints are currently set for the SerialLite II MegaCore
function variation as a standalone component. You must update the script with
hierarchy information if your own design is not a standalone component.
f Refer to the Quartus II TimeQuest Timing Analyzer chapter in volume 3 of the Quartus II
Handbook for more information on how to use the TimeQuest Timing Analyzer.
Compile and Program
Click Start Compilation on the Processing menu in the Quartus II software to compile
your design. After successfully compiling your design, program the targeted Altera
device with the Programmer (Tools menu) and verify the design in hardware.
SerialLite II MegaCore FunctionJanuary 2014 Altera Corporation
User Guide
3. Parameter Settings
Tab le 3– 1 shows the function parameters, which can be set only in the SerialLite II
parameter editor (refer to “Parameterize” on page 2–3). The following sections
describe these parameters.
Table 3–1. Default SerialLite II Variation
ParameterDefault Configuration
Physical Layer
Device family
Data rate3,125 megabits per second (Mbps)
Transfer size2 Columns
Reference Clock Frequency156.25 MHz
Port TypeBidirectional
Self-Synchronized Link-UpDisabled
Number of lanes (Transmitter and Receiver Settings) 1
Scramble/De-ScrambleDisabled
Broadcast modeDisabled
Enable frequency offset toleranceDisabled
Depends on the family specified in the
SerialLite II parameter editor
Link Layer
Data TypePackets
Packet typeData packets
Enable flow controlDisabled
Buffer Size (Transmitter and Receiver)1,024 bytes
CRC Generation (Transmitter and Receiver)Disabled
Configure Transceiver
Specify Voltage Output Differential (V
setting
) control
OD
0
Specify pre-emphasis control setting0
Bandwidth mode (Transmitter and Receiver)Low
Transmitter Buffer Power (V
)1.5
CCH
Specify equalizer control setting0
Starting channel number0
To configure your own variation of the SerialLite II MegaCore function, you must
decide the following issues:
■ High-level link configuration
■ Bandwidth required
■ Whether to use CRC checking
January 2014 Altera CorporationSerialLite II MegaCore Function
User Guide
3–2Chapter 3: Parameter Settings
FPGA 2
SerialLite II
System
FPGA 1
SerialLite II
MegaCore
System
LogicLogic
One or
more lanes
Tx
Rx
Rx
Tx
Atlantic InterfaceAtlantic Interface
High-Speed
Transceivers
High-Speed
Transceivers
Function
Variation
MegaCore
Function
Variation
■ Whether to implement flow control
■ How to size the FIFO buffers
Link Consistency
Link Consistency
A SerialLite II link consists of two instantiations of logic implementing the
SerialLite II protocol. Each end of the link has a transmitter and a receiver, as shown in
Figure 3–1.
Figure 3–1. Complete SerialLite II Link
Physical Layer Configuration
This section describes the options available to parameterize the physical layer of your
SerialLite II MegaCore function variation.
Data Rate
The SerialLite II MegaCore function supports a data rate range of 622 to 6,375 Mbps
per lane. In Arria II GX devices, the data rate must be less than 3,750 Mbps, and in
Stratix IV devices, less than 6,375 Mbps. The data rate range varies based on the
device and the transfer size (TSIZE) as Table 3–2 on page 3–2 illustrates.
Table 3–2. Data Rate Dependencies on Transfer Size (Part 1 of 2)
Devices
2.5 Gbps3.125 Gbps3.75 Gbps5 Gbps6.375 Gbps
Arria II GXTSIZE= 1, 2TSIZE= 2TSIZE= 2Not SupportedNot Supported
(1)
Arria VTSIZE= 1, 2TSIZE= 2
Arria V GZTSIZE= 1, 2TSIZE= 2
, 4TSIZE= 2
(1)
, 4TSIZE= 2
Cyclone VTSIZE= 2TSIZE= 2TSIZE= 2TSIZE= 4 Not Supported
Stratix IVTSIZE= 1, 2TSIZE= 2TSIZE= 2TSIZE= 2
Data Rate
(1)
(1)
, 4TSIZE= 4 TSIZE= 4
, 4TSIZE= 4 TSIZE= 4
(1)
, 4TSIZE= 4
SerialLite II MegaCore FunctionJanuary 2014 Altera Corporation
User Guide
Chapter 3: Parameter Settings3–3
Physical Layer Configuration
Table 3–2. Data Rate Dependencies on Transfer Size (Part 2 of 2)
The data rates for an individual Arria II GX device are limited to the respective speed
grades, refer to Tabl e 3– 3.
Table 3–3. Arria II GX Speed Grade-Data Rate Limits
Device Speed GradeMinimum Data Rate (Mbps)Maximum Data Rate (Mbps)
C4600 3,750
C5600 3,125
C6600 3,125
Transfer si ze
The Transfer size parameter defines many important characteristics of the MegaCore
function variation. Transfer size determines the number of contiguous data columns
and the internal data path width per lane, where:
■ A transfer size of 1 equates to an internal data path of 8 bits (Recommended for
less than 2.5 Gbps)
Data Rate
(1)
, 4TSIZE= 2
(1)
, 4TSIZE= 4
■ A transfer size of 2 equates to an internal data path of 16 bits (Recommended for
less than or equal to 3.125 Gbps)
■ A transfer size of 4 equates to an internal data path of 32 bits (only available for
Stratix IV FPGA with transfer size greater than 3.125 Gbps, and must be used
when the data rate exceeds 5 Gbps)
A transfer size determines the width of the SERDES block, where:
■ A transfer size of 1 equates to a 10 bit-wide SERDES block
■ A transfer size of 2 equates to a 20 bit-wide SERDES block
■ A transfer size of 4 equates to a 40-bit wide SERDES block
Reference Clock Frequency
The Reference Clock Frequency parameter defines the frequency of the reference
clock for the Arria II GX or Stratix IV internal transceiver. Valid values change with
the data rate but the reference input clock frequency must be within 50 MHz and 622
MHz.
■ The general formula to determine frequency:
Frequency = p×Data Rate/(2×m), where p = 1 or 2, and m = 4, 5, 8, 10, 16, 20, or 25
Condition for frequency to be valid: (50×p) < Frequency < 622
■ This parameter is only applicable if you chose Arria II GX or Stratix IV devices.
January 2014 Altera CorporationSerialLite II MegaCore Function
User Guide
3–4Chapter 3: Parameter Settings
One or more lanes
(up to N)
FPGA 1
Light-weight
Linklayer
PHY
Layer
FPGA 2
Light-weight
Linklayer
PHY
Layer
Atlantic
Interface
CDR
SERDES
CDR
SERDES
One or more lanes
(up to N)
Atlantic
Interface
■ If you select a reference clock frequency that is not equal to the
Physical Layer Configuration
data rate/(transfer size) * 10, the Clock Compensation option is disabled if the
Receiver only port type option is turned on.
Port Type
The Port Type parameter offers three options: Bidirectional, Transmitter only, and
Receiver only. If you turn on the Bidirectional option, you must specify values for
Transmitter Settings and Receiver Settings. Under Transmitter Settings, you need to
specify the Number of lanes, and select whether or not to enable the Scramble and
Broadcast mode. Under Receiver Settings, you must specify the settings for the
Number of lanes, and select whether or not to enable the De-Scramble option. If you
turn on Transmitter only option, you must specify values for Transmitter Settings
only, and if you turn on Receiver only option, you must specify values for Receiver
Settings only.
The Number of lanes parameter dictates the number of serial links, essentially the
number of external inputs and outputs (I/Os) for the MegaCore function.
If you set the Number of lanes for the transmitter and receiver settings to the same
value, you configure the MegaCore function to operate in symmetric, bidirectional
mode. Refer to Figure 3–2 and Figure 3–3 on page 3–5.
If you set the Port Type to Receiver only or Transmitter only, you configure the
MegaCore function to operate in unidirectional mode, transmitter, or receiver only.
Refer to Figure 3–4 and Figure 3–5 on page 3–6.
If you set the Port Type to Bidirectional, but have the number of lanes set to a value
other than zero, but not equal to the other function’s value, you configure the
MegaCore function to operate in asymmetric mode. Refer to Figure 3–6 and
Figure 3–7 on page 3–7.
Figure 3–2. Symmetric Mode Block Diagram
Notes to Figure 3–2:
(1) A full line indicates a mandatory lane.
(2) A dashed line indicates an optional lane.
SerialLite II MegaCore FunctionJanuary 2014 Altera Corporation
User Guide
(1) A full line indicates a mandatory lane.
(2) A dashed line indicates an optional lane.
Self Synchronized Link Up
The receiver on the far end must synchronize itself to incoming data streams. To do so,
it uses the self-synchronizing LSM, a light-weight implementation that is especially
useful when data is streaming. As there is no handshaking or exchange of status
information between the receiver and transmitter, this parameter uses considerably
fewer logic elements than the full-duplex LSM. The self-synchronizing LSM can be
used in all modes, except asymmetric mode, but this mode can only support one lane.
This parameter is enabled by default when the MegaCore function operates in
unidirectional mode because the duplex LSM cannot be used when there is no return
path.
The
ctrl_tc_force_train
Negate the signal once the adjacent receiver has locked, if this status information can
be made available, or after a user-defined period of time when the link status of the
adjacent receiver is not known or cannot be known. The LSM links up after receiving
64 consecutive valid, error-free characters. The link goes down after receiving four
consecutive errors; at this time, the
until the receiver relocks.
The required hold time for the
the ALTGX megafunction completes the power-on reset cycle. Therefore, the selfsynchronizing link-up state machine does not look at the incoming stream until the
transceiver reset is complete.
signal must be asserted for the training patterns to be sent.
ctrl_tc_force_train
ctrl_tc_force_train
signal should be reasserted
signal largely depends on when
For example, the following procedure shows the transceiver reset sequence in an
Arria or Stratix transceiver device:
1. Wait for the
pll_locked
signal (
stat_tc_pll_locked
) to be asserted, which
happens when the PLL in the ALTGX megafunction locks to the reference clock
(
trefclk
January 2014 Altera CorporationSerialLite II MegaCore Function
). The reference clock must be characterized; 10 ms or less is normal.
User Guide
Loading...
+ 80 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.