AN 696: Using the JESD204B MegaCore Function in Arria V Devices

Similar documents
Altera JESD204B IP Core and ADI AD9250 Hardware Checkout Report

Altera JESD204B IP Core and ADI AD6676 Hardware Checkout Report

JESD204B IP Hardware Checkout Report with AD9250. Revision 0.5

Altera JESD204B IP Core and ADI AD9144 Hardware Checkout Report

AN 823: Intel FPGA JESD204B IP Core and ADI AD9625 Hardware Checkout Report for Intel Stratix 10 Devices

Implementing Audio IP in SDI II on Arria V Development Board

Altera JESD204B IP Core and TI DAC37J84 Hardware Checkout Report

AN 848: Implementing Intel Cyclone 10 GX Triple-Rate SDI II with Nextera FMC Daughter Card Reference Design

Serial Digital Interface Reference Design for Stratix IV Devices

JESD204B IP Core User Guide

Serial Digital Interface II Reference Design for Stratix V Devices

Intel FPGA SDI II IP Core User Guide

SDI II MegaCore Function User Guide

SDI Audio IP Cores User Guide

Technical Article MS-2714

White Paper Lower Costs in Broadcasting Applications With Integration Using FPGAs

SignalTap Analysis in the Quartus II Software Version 2.0

SignalTap Plus System Analyzer

The ASI demonstration uses the Altera ASI MegaCore function and the Cyclone video demonstration board.

SDI Audio IP Cores User Guide

DG0755 Demo Guide PolarFire FPGA JESD204B Standalone Interface

Serial Digital Interface Demonstration for Stratix II GX Devices

SDI II IP Core User Guide

2. Logic Elements and Logic Array Blocks in the Cyclone III Device Family

Intel Arria 10 SDI II IP Core Design Example User Guide

Video and Image Processing Suite

SPI Serial Communication and Nokia 5110 LCD Screen

Video and Image Processing Suite User Guide

Laboratory Exercise 4

11. JTAG Boundary-Scan Testing in Stratix V Devices

12. IEEE (JTAG) Boundary-Scan Testing for the Cyclone III Device Family

LMH0340/LMH0341 SerDes EVK User Guide

SERDES Eye/Backplane Demo for the LatticeECP3 Serial Protocol Board User s Guide

AN 776: Intel Arria 10 UHD Video Reference Design

Partial Reconfiguration IP Core User Guide

8. Stratix GX Built-In Self Test (BIST)

SDI MegaCore Function User Guide

Arria-V FPGA interface to DAC/ADC Demo

CHAPTER 3 EXPERIMENTAL SETUP

Upgrading a FIR Compiler v3.1.x Design to v3.2.x

SERDES Eye/Backplane Demo for the LatticeECP3 Versa Evaluation Board User s Guide

9. Synopsys PrimeTime Support

Bitec. HSMC DVI 1080P Colour-Space Conversion Reference Design. DSP Solutions for Industry & Research. Version 0.1

Debugging IDT S-RIO Gen2 Switches Using RapidFET JTAG

Digital Front End (DFE) Training. DFE Overview

C65SPACE-HSSL Gbps multi-rate, multi-lane, SerDes macro IP. Description. Features

Xilinx Answer Eye Qualification

Using SignalTap II in the Quartus II Software

Laboratory 4. Figure 1: Serdes Transceiver

Application Note PG001: Using 36-Channel Logic Analyzer and 36-Channel Digital Pattern Generator for testing a 32-Bit ALU

Entry Level Tool II. Reference Manual. System Level Solutions, Inc. (USA) Murphy Avenue San Martin, CA (408) Version : 1.0.

SDI Development Kit using National Semiconductor s LMH0340 serializer and LMH0341 deserializer

1 Terasic Inc. D8M-GPIO User Manual

GALILEO Timing Receiver

Altera's 28-nm FPGAs Optimized for Broadcast Video Applications

White Paper Versatile Digital QAM Modulator

SV1C Personalized SerDes Tester. Data Sheet

Optical Link Evaluation Board for the CSC Muon Trigger at CMS

Partial Reconfiguration IP Core

SV1C Personalized SerDes Tester

SMPTE 292M EG-1 Color Bar Generation, RP 198 Pathological Generation, Grey Pattern Generation IP Core - AN4088

AN4178 Application note

STA2051E VESPUCCI 32-BIT SINGLE CHIP BASEBAND CONTROLLER FOR GPS AND TELEMATIC APPLICATIONS 1 FEATURES. Figure 1. Packages

GM69010H DisplayPort, HDMI, and component input receiver Features Applications

Solutions for a Real Time World. Unigen Corp. Wireless Module Products. PAN Radio Modules Demonstration & Evaluation Kit UGWxxxxxxxxx (Part Number)

OpenXLR8: How to Load Custom FPGA Blocks

Design and Implementation of Nios II-based LCD Touch Panel Application System

DMC550 Technical Reference

3GSDI to HDMI 1.3 Converter

Configuring FLASHlogic Devices

GIGA nm Single Port Embeddable Gigabit Ethernet Transceiver. IP embeddability and system development. Main features. Operating conditions

SMPTE 259M EG-1 Color Bar Generation, RP 178 Pathological Generation, Grey Pattern Generation IP Core AN4087

ivw-ud322 / ivw-ud322f

Model 5240 Digital to Analog Key Converter Data Pack

Lattice Embedded Vision Development Kit User Guide

SingMai Electronics SM06. Advanced Composite Video Interface: DVI/HD-SDI to acvi converter module. User Manual. Revision th December 2016

SMPTE-259M/DVB-ASI Scrambler/Controller

SingMai Electronics SM06. Advanced Composite Video Interface: HD-SDI to acvi converter module. User Manual. Revision 0.

Comparing JTAG, SPI, and I2C

RF4432 wireless transceiver module

Installation Guide AT-HDR-EX-70-2PS

Memec Spartan-II LC User s Guide

Synchronizing Multiple ADC08xxxx Giga-Sample ADCs

FPGA Development for Radar, Radio-Astronomy and Communications

MC-ACT-DVBMOD April 23, Digital Video Broadcast Modulator Datasheet v1.2. Product Summary

Bitec. HSMC Quad Video Mosaic Reference Design. DSP Solutions for Industry & Research. Version 0.1

Sub-LVDS-to-Parallel Sensor Bridge

HOLITA HDLC Core: Datasheet

Enable input provides synchronized operation with other components

EEM Digital Systems II

CMS Conference Report

Commsonic. Satellite FEC Decoder CMS0077. Contact information

NanoCom ADS-B. Datasheet An ADS-B receiver for space applications

LAX_x Logic Analyzer

Using the KC705 Kintex-7 evaluation kit

Digital Blocks Semiconductor IP

SignalTap: An In-System Logic Analyzer

Interfacing the TLC5510 Analog-to-Digital Converter to the

CobraNet Bundle Assignment Procedure Using CobraNet Discovery

Teletext Inserter Firmware. User s Manual. Contents

Transcription:

AN 696: Using the JESD204B MegaCore Function in Arria V Devices Subscribe The JESD204B standard provides a serial data link interface between converters and FPGAs. The JESD204B MegaCore function intellectual property (IP) for Altera FPGAs allows you to transmit and receive data on the FPGA fabric interface by utilizing the Avalon-Streaming (Avalon-ST) source and sink interfaces, with unidirectional flow of data. The JESD204B MegaCore function has been hardware-tested with a number of selected JESD204B-compliant ADC (analog-to-digital converter) device. This reference design highlights the performance and interoperability of the JESD204B MegaCore function. The design uses an Arria V GT FPGA Development Kit as well as the Analog Devices Inc. (ADI) AD9250 converter daughter card (evaluation module) connected to the development board. Related Information JESD204B MegaCore Function User Guide Altera JESD204B IP Core and ADI AD9250 Hardware Checkout Report Arria V GT FPGA Development Kit User Guide Arria V GT FPGA Development Board Reference Manual ADI AD9250 Datasheet JESD204B MegaCore Function Reference Design The reference design contains a pregenerated JESD204B design example and peripherals like the SYSREF generator. Intel Corporation. All rights reserved. Intel, the Intel logo, Altera, Arria, Cyclone, Enpirion, MAX, Nios, Quartus and Stratix words and logos are trademarks of Intel Corporation or its subsidiaries in the U.S. and/or other countries. Intel warrants performance of its FPGA and semiconductor products to current specifications in accordance with Intel's standard warranty, but reserves the right to make changes to any products and services at any time without notice. Intel assumes no responsibility or liability arising out of the application or use of any information, product, or service described herein except as expressly agreed to in writing by Intel. Intel customers are advised to obtain the latest version of device specifications before relying on any published information and before placing orders for products or services. *Other names and brands may be claimed as the property of others. ISO 9001:2008 Registered www.altera.com 101 Innovation Drive, San Jose, CA 95134

2 JESD204B MegaCore Function Reference Design Figure 1: System Diagram The system-level diagram shows how the different modules connect in this reference design. In this setup where LMF = 222, the data rate of the both transceiver lanes is 4.915 Gbps. The AD9517 clock generator provides 122.88 MHz clock to the FPGA and 245.76 MHz sampling clock to both AD9250 devices. The transceiver CDR PLL input reference clock (pll_ref_clk) uses the FPGA clock to generate the frame clock and link clock. Oscillator 100 MHz LED x8 mgmt_clk jesd204b_ed_top.v Arria V FPGA #2 ISSP Qsys System JTAG to Avalon Master Bridge Avalon-MM Slave Translator global_reset rx_seriallpbken Avalon-MM Interface Signals jesd204b_ed.v (Example Design) JESD204B IP (Duplex) L = 2, M = 2, F = 2 sclk, ss_n[0], miso, mosi device_clk (122.88 MHz) link_clk (122.88 MHz) SYSREF sysref_out Generator rx_dev_sync_n rx_serial_data[0] (4.915 Gbps) rx_serial_data[1] (4.915 Gbps) FMC 4-Wire AD9250-FMC-250EBZ CPLD 3- or 4-Wire SPI AD9517 Clock Generator Single-Ended to Differential Distribution L0 L1 3-Wire SPI ADC#2 clk (245.76 MHz) sysref sync_n SPI Slave AD9250 ADC#1 CLK and SYNC SPI Slave AD9250 ADC#2 CLK and SYNC ADC ADC ADC ADC The reference design consists of the following modules: JESD204B MegaCore function design example Duplex JESD204B MegaCore function TX & RX transport layer core PLL transceiver reconfiguration controller transceiver reset controllers control unit SPI master SYSREF generator In-System Sources and Probes (ISSP) Qsys System The design example also contains a parallel pseudorandom-binary-sequence (PRBS) data generator and checker. The data generator generates a PRBS9 data pattern and the data checker verifies the PRBS9 data received. The checker flags an error when it finds a mismatch of data sample. You can monitor the data checker's error flag using the status LED on the development board or the Signal Tap II Logic Analyzer tool. The reference design implements the JESD204B MegaCore function with the following parameter configuration.

JESD204B MegaCore Function Reference Design 3 Table 1: JESD204B MegaCore Function Parameter Settings Parameter Value Description Subclass 1 Subclass mode L 2 Number of lanes per converter device M 2 Number of converters per device F 2 Number of octets per frame S 1 Number of transmitted samples per converter per frame N 14 Number of conversion bits per converter N' 16 Number of transmitted bits per sample (JESD204 word size, which is in nibble group) K 32 Number of frames per multiframe CS 0 Number of control bits per conversion sample CF 0 Number of control words per frame clock period per link HD 0 High Density user data format SCR On Enable scramble FRAMECLK_DIV 1 The divider ratio of the frame_clk You need to configure both the AD9517 clock generator and AD9250 ADC module for normal operation. Between the FPGA and CPLD (on the AD9250 module), a 4-wire SPI configures the clock generator and ADC. The CPLD, which acts as an SPI slave, uses the first 8-bits of the 32-bits SPI transaction as the preselection bits to configure the clock generator, converter 1 (ADC #1), or converter 2 (ADC #2). The remaining 24-bits follow the SPI interface timing requirements as listed in the AD9517 and AD9250 datasheet. Table 2: AD9517 clock generator and AD9250 ADC Configuration Module Description Preselection Byte AD9250 ADC #1 0x80 AD9250 ADC #2 0x81 AD9517 Clock generator 0x84 The FPGA, which acts as an SPI master, writes the SPI instruction and register data following the sequence and content in ROM-1 port of the memory initialization file (MIF). Figure 2 shows a timing diagram for the correlation between the bit settings in MIF and the write instruction.

4 SYSREF Generator Figure 2: Write Instruction to AD9517/AD9250 Registers Timing Diagram N_CS SCLK SDIO P7 P6 P5 P4 P3 P2 P1 P0 R/W W1 W0 A12 A11 A10 A9 A8 A7 A6 A5 A4 A3 A2 A1 A0 D7 D6 D5 D4 D3 D2 D1 D0 8- Bit Pre-Selection 16-Bit Instruction 8-Bit Register Data Binary 10000001 0000000001101110 10000001 Hexadecimal 0x81 0x6E 0x81 Description Preselection Byte for ADC#2 204B Parameters SCR/L Register Address Bit[7]: Scambling Enabled Bit[0]: 1 = 2 Lanes Related Information JESD204B MegaCore Function User Guide More information on specific modules of the IP core as well as the steps to generate the JESD204B IP core and its design example. SYSREF Generator The SYSREF generator uses the link clock as a reference clock and generates SYSREF pulses with periodic gaps for the JESD204B MegaCore function and the ADC module. The generator generates the pulses with a frequency of (4 link clock) / (F K). In-System Sources and Probes (ISSP) The ISSP is instantiated to control the global reset and to enable serial loopback. Table 3: ISSP Control Ports in the Reference Design Bit ISSP Description [0] global_reset Global reset. Assert high to reset and low to release the reset. [1] rx_seriallpbken Enables the serial loopback of the transceiver channel. Assert high to enable or low to disable the serial loopback feature. Qsys System The reference design uses a simple Qsys system that consists of two components: the JTAG to Avalon Master Bridge and the Avalon-Memory Mapped (Avalon-MM) Slave Translator.

File Directory and Content 5 Follow the steps below to examine the Qsys system: 1. Launch the Quartus II software. 2. On the File menu, click Open. 3. Browse and select the jesd204b_avmm_interface.qsys file located in the project directory. 4. Click Open. The Qsys system consists of the following components: JTAG to Avalon Master Bridge acts as the Avalon-MM master in the reference design, This component is the main communication channel between the System Console tool and the Avalon-MM slave translator in the design. The System Console tool accesses the RX registers of the JESD204B MegaCore function. Avalon-MM Slave Translator exports all required Avalon signals to the top-level design. With the Avalon signals exported, the Qsys system can interface with any Avalon-compliant component that resides outside of the Qsys component library. Figure 3: Component Map of the Qsys System For this reference design, the JESD204B MegaCore function is an Avalon-compliant component. Therefore, the Avalon-MM Slave Translator component must connect to the JTAG to Avalon Master Bridge component. Table 4: Memory Map of the Qsys System Memory map of the Qsys system for the Avalon-MM Slave Translator in this reference design. Name Component Name Base Address Description merlin_slave_translator_0 Avalon-MM Slave Translator 0x000 Exports Avalon-MM signals to interface with the JESD204B MegaCore function. File Directory and Content The reference design comes with a ZIP file that includes a Quartus II Archive File (.qar) that contains the project's design files, source files, and ancillary files, as well as system libraries. Once you restore the

6 Reference Design Initialization Sequence archive file using the Quartus II software, a destination folder is created to store all the reference design files. Table 5: Reference Design Files This list contains only certain folders and contents in the project directory which you may need to edit. altera_jesd204 Folder Name Content JESD204B MegaCore function configured in duplex mode. control unit MIF file for AD9250 Control unit ROM:1-Port single-port ROM issp jesd204b_avmm_interface Signal source and probe module. Qsys Avalon-MM component for interfacing between the JESD204B MegaCore function and System Console. output_ files Quartus II-generated SRAM Object File (.sof) Quartus II software compilation report files pattern spi transport_layer xcvr_reset_control_module PRBS data generator and checker module. SPI master module. Transport layer assembler (TX) and deassembler (RX) module. Transceiver reset controller module. Related Information Internal Memory (RAM and ROM) User Guide Reference Design Initialization Sequence The following list describes the initialization sequence of the reference design: 1. Read the MIF content from the FPGA ROM. 2. Configure AD9517 clock generator. 3. Configure ADC #2. 4. Deassert the Avalon-MM reset after the transceiver is out of reset. 5. Deassert the link and frame reset. 6. Link layer state machine goes through code group synchronization (CGS), initial lane synchronization (ILAS), and user data phase. 7. Upon successfully entering the user data phase, the PRBS checker is enabled.

Hardware and Software Requirements 7 Hardware and Software Requirements The reference design requires the following hardware and software tools: Arria V GT FPGA Development Kit with 19 V power adaptor ADI AD9250 Rapid Development Board (AD-FMCJESDADC1-EBZ) Mini-USB cable Quartus II software Related Information AD-FMCJESDADC1-EBZ Rapid Development Board Hardware Setup You need to set up the development board before running the reference design. Figure 4: Hardware Setup The AD9250 module derives power from the FMC connector on the development board. The AD9250 module supplies the device clock to FPGA 2. For subclass 1 mode, the FPGA generates SYSREF for the JESD204B MegaCore function as well as the AD9250 module. FPGA 1 FPGA 2 Status LED Transceiver Lanes Device Clock SYSREF rx_dev_sync_n SPI Power Arria V GT FPGA Development Board ADI AD9250 Module To set up the board connections, perform the following steps: 1. Install the ADI AD9250 daughter card module to the FMC port (J9) on the development board as shown in Figure 4. 2. Connect the mini-usb cable to the mini USB connector (J7) on development board. 3. Connect the power adapter shipped with the development board to the power supply jack (J6). 4. Turn on the power. You are now ready to download the.sof file and program the FPGA device on the development board.

8 FPGA Pin Assignments FPGA Pin Assignments The table below lists the top level signals with its corresponding FPGA pin assignments on the Arria V GT FPGA Development Kit. Table 6: FPGA 2 Pin Assignments Top Level Signal Name FPGA 2 Pin Number I/O Standard Direction device_clk AB9 1.5-V PCML Input device_clk_n AB8 1.5-V PCML Input clkintopb_p0 C34 LVDS Input clkintopb_p0_n D34 LVDS Input rx_dev_sync_n AD25 2.5-V Output sysref_out AC24 2.5-V Output mosi AD24 2.5-V Output sclk AH27 2.5-V Output ss_n[0] AG27 2.5-V Output rx_serial_data[0] U1 1.5-V PCML Input rx_serial_data_n[0] U2 1.5-V PCML Input rx_serial_data[1] R1 1.5-V PCML Input rx_serial_data_n[1] R2 1.5-V PCML Input Status LED The table below lists the status LEDs on the Arria V GT FPGA Development Kit and its function. Note: If you utilize the Signal Tap II Logic Analyzer tool to pole the status of these signals, use the rxframe_clk signal as the sampling clock. Table 7: Status LEDs LED Board Reference Signal Name Description D26 data_error [1:0] Single AND-ed error status signal for the PRBS checkers from both lane 0 & lane 1. The LED illuminates to indicate a data error. D27 jesd204_tx_int Link layer TX interrupt signal. Applicable only when internal serial loopback is enabled. The LED illuminates to indicate a TX interrupt. D28 jesd204_rx_int Link layer RX interrupt signal. The LED illuminates to indicate a RX interrupt.

Using the Reference Design 9 LED Board Reference Signal Name Description D29 rx_dev_sync_n SYNC~ signal to the transmitter. The LED illuminates to indicate that the transmitter has received K28.5 characters. D30 dev_lane_aligned RX path lane alignment status signal for the device. The LED illuminates to indicate that lane alignment is achieved. D31 avs_rst_n Link layer CSR Avalon-MM reset signal. The LED illuminates to indicate that the Avalon-MM interface is out of reset. D32 link_rst_n Link layer reset signal. The LED illuminates to indicate that the link layer is out of reset. D33 frame_rst_n Transport layer reset signal. The LED illuminates to indicate that the transport layer is out of reset. Using the Reference Design This section describes a high-level flow of how to use the reference design files in the Quartus II software. 1. Extract the reference design's archive file from avgt_jesd204b_ad9250_ed.zip. 2. Launch the Quartus II software. 3. On the File menu, click Open. 4. Navigate to your project directory and select the avgt_jesd204b_ad9250_ed_<quartus II version>.qar file. Click Open. 5. In the Restore Archived Project window, set the archive file name and destination folder. Click OK. 6. To download the.sof file and program the FPGA device on the development board, perform the following steps: a. On the Tools menu, click Programmer. b. Click Add File. c. Navigate to <project directory>\<output_files>\jesd204b_ed_golden.sof and click Open. d. Click Start to download the file into the FPGA device on the development board. 7. Use the System Console tool to reset the system and trigger an initialization for the JESD204B MegaCore function link. Optionally, if you want to edit the JESD204B MegaCore function parameters and recompile the reference design, refer to the section on Editing and Recompiling the Reference Design. Related Information Using the System Console Tools to Execute Commands on page 9 Using the System Console Tool to Execute Commands With the Avalon to JTAG Master Bridge, the System Console tool can access the RX registers of the JESD204B MegaCore function. The System Console tool issues commands to reset and initiate the JESD204B MegaCore function link in the reference design.

10 Using the System Console Tool to Execute Commands This design example uses a Tcl script called main.tcl that consists of several different procedures with different functionality. Note: Program the Arria V GT device with the.sof file generated in the previous section before launching the System Console. Having both the programmer and System Console open simultaneously can cause programming errors. To launch the System Console, perform the following steps: 1. Launch the Quartus II software. 2. On the Tools menu, select System Console and click System Console. 3. Ensure that the present working directory contains main.tcl The following table lists the procedures in main.tcl. You can type in a procedure name and its value to execute the commands. Table 8: Description of Procedures in main.tcl Command Name read_rxstatus3 read_rxstatus4 read_rxstatus5 read_rxstatus7 read_ilas_octet0 read_ilas_octet1 read_ilas_octet2 read_ilas_octet3 read_rx_err0 read_rx_err1 reset sloopback 1 sloopback 0 Description Read JESD204 RX status 3 register (read back data in hexadecimal value). This signal is asserted to indicate: RX CDR PLL is locked to the RX data. RX CDR transits from LTR to LTD mode for each lane. Read JESD204 RX status 4 register (read back data in hexadecimal value). This signal is asserted to indicate the current state of RX DLL code group synchronization state machine for each lane. Read JESD204 RX status 5 register (read back data in hexadecimal value). This signal is asserted to indicate the current state of RX DLL frame synchronization state machine for each lane. Read JESD204 RX status 7 register (read back data in hexadecimal value). This signal is asserted to indicate the status of RX DLL user data phase for each lane. Read ILAS octet 0 register (read back data in hexadecimal value). This signal links the control configuration fields in octets for configuration checking. Read ILAS octet 1 register (read back data in hexadecimal value). This signal links the control configuration fields in octets for configuration checking. Read ILAS octet 2 register (read back data in hexadecimal value). This signal links the control configuration fields in octets for configuration checking. Read ILAS octet 3 register (read back data in hexadecimal value). This signal links the control configuration fields in octets for configuration checking. Read JESD204 RX error status 0 register (read back data in hexadecimal value). This signal indicates the error status in the MegaCore's RX path. Read JESD204 RX error status 1 register (read back data in hexadecimal value). This signal indicates the error status in the MegaCore's RX path. Global reset. Enable serial loopback. Disable serial loopback.

Using the System Console Tool to Execute Commands 11 The following example shows the execution of the above commands in the Tcl Console. source main.tcl sloopback 0 >> Disable serial loopback reset >> Reset the whole reference design system after disabling serial loopback >> Reset Done! read_rxstatus3 >> Performing a read on rxstatus3 register... >> The rxstatus3 is 0x00000003 read_rxstatus4 >> Performing a read on rxstatus4 register... >> The rxstatus4 is 0x0000000a read_rxstatus5 >> Performing a read on rxstatus5 register... >> The rxstatus5 is 0x0000000a read_rxstatus7 >> Performing a read on rxstatus7 register... >> The rxstatus7 is 0x00030003 read_ilas_octet0 >> Performing a read on ilas_octet0 register... >> The ilas_octet0 is 0x810000b9 read_ilas_octet1 >> Performing a read on ilas_octet1 register... >> The ilas_octet1 is 0x0d011f01 read_ilas_octet2 >> Performing a read on ilas_octet2 register... >> The ilas_octet2 is 0x0000202f read_ilas_octet3 >> Performing a read on ilas_octet3 register... >> The ilas_octet3 is 0x0000fa00 read_rx_err0 >> Performing a read on rx_err0 register... >> The rx_err0 is 0x00000000 read_rx_err1 >> Performing a read on rx_err1 register... >> The rx_err1 is 0x00000000 These commands allow the System Console to communicate directly with the JESD204B MegaCore function via the Avalon to JTAG Bridge Master.

12 JESD204B MegaCore Function Link initialization Sequences Related Information Analyzing and Debugging Designs with the System Console JESD204B MegaCore Function Link initialization Sequences Upon device power up, assert reset using Tcl command in the System Console tool to trigger an initialization for the JESD204B MegaCore function link in the reference design. The following list describes the link initialization sequence. Table 9: Link initialization Sequences and Observation Sequence Description Activity Observation 1 The input of the link layer or the output of the PCS (jesd204_rx_ pcs_data[63:0]) receives 0xBC or K28.5 (/K/) characters. 2 When 0x1C or K28.0 (/ R/) character is received, the ILAS phase is detected. 3 User data phase enters after four multiframes of ILAS. 4 All lanes are aligned, indicated by the assertion of the dev_ lane_aligned signal. Check both the lane1_cs_ state and lane0_cs_state register identifiers by executing read_ rxstatus4 command in the System Console tool to read the JESD204 RX status register. Check both the lane1_cs_ state and lane0_cs_state register identifiers by executing read_ rxstatus5 command in the System Console tool to read the JESD204 RX status register. Check both the lane1_dll_ user_data_phase and lane0_ dll_user_data_phase register identifiers by executing read_ rxstatus7 command in the System Console tool to read the JESD204 RX status register. The link layer begins transmitting data to the transport layer. 0x02 is asserted at both lane1_cs_ state[3:2] for lane 1 and lane0_cs_ state[1:0] for lane 0, which indicates that code group synchronization (CGS) phase is detected. The receiver deasserts the synchronization request signal upon receiving four consecutive K28.5 characters. Then, the rx_dev_sync_n signal will be deasserted. 0x02 is asserted at both lane1_cs_ state[3:2] for lane 1 and lane0_cs_ state[1:0] for lane 0. The ILAS consists of four multiframes. The 1 st, 3 rd, and 4 th multiframes begin with / R/ character and end with 0x7C or K28.3 (/A/) character. On the 2 nd multiframe, the ADC transmits the JESD204B link configuration information to the receiver. The 2 nd multiframe begins with /R/ character, followed by 0x9C or K28.4 (/Q/) character and ends with /A/ character. Both lane1_dll_user_data_phase1 of lane 1 & lane0_dll_user_data_ phase0 of lane 0 are asserted. In this phase, the ADC transmits PRBS data to the FPGA. LED D29 illuminates to indicate that lane alignment is achieved.

Editing and Recompiling the Reference Design 13 Sequence Description Activity Observation 5 Link initialization successful. Monitor the data integrity through the PRBS checker. The PRBS checker receives data from the transport layer and checks the received data against the internally generated PRBS polynomial data. The polynomial length and feedback tap position must be the same for both the ADC PRBS generator and the FPGA PRBS checker. The AD9250 module is set to output PRBS-9 data, with feedback tap of 5. LED D33 is off to indicate no data error. LED D31 and D32 are off to indicate that no interrupt signal is asserted because there is no error condition or a synchronization request. Editing and Recompiling the Reference Design This section describes some editable parameters when interoperating with the AD9250 module. When you make modification to the JESD204B MegaCore function in the Quartus II software, you must make corresponding changes to the AD9250 configuration file. The example below demonstrates the following parameter modification: Subclass 1 to 0 K from 32 to 16 Disable the scrambler To edit the JESD204B MegaCore function parameters and recompile the reference design, perform the following steps: 1. On the Tools menu, click MegaWizard Plug-In Manager. 2. Select Edit an existing custom megafunction variation, then click Next. 3. Select the existing megafunction variation file (.v/.vhd/.vhdl) for the altera_jesd204 component, then click Next 4. Edit the MegaCore parameters, then click Finish to close the parameter editor and generate the MegaCore. 5. Open the jesd204b_ed_top.v file and change the localparam K value from 32 to 16. 6. Use the text editor to change the following bit settings in the AD9250 module configuration file located in the /control_unit/ad9250_222.mif directory: At content line 22, change register 0x6E bit[7] from 1 to 0 to disable scrambling: 10000001000000000110111000000001; At content line 23, change register 0x70 bit[4] from 1 to 0 to set K = 16 (0x0F + 1): 10000001000000000111000000001111; At content line 25, change register 0x73 bit[5] from 1 to 0 for subclass 0: 10000001000000000111001100001111;

14 Document Revision History At content line 26, change register 0x3A bit [2:0] from 111 to 000 to turn off SYSREF detection: 10000001000000000011101000000000; 7. Optionally, if you want to rename the MIF, change the pointer to the MIF located in control_unit/ control_unit.v. rom_1port #(.INIT_FILE ("./control_unit/<renamed MIF file>.mif"), ) u_rom0 (.clock (clk),.clken (rom_clken),.address (rom_addr_ptr),.q (rom0_data_out) ); 8. On the Processing menu, click Start Compilation. Document Revision History Table 10: Document Revision History Date Version Changes May 2015 Revised the name of ADI AD9250 evaluation module (EVM) to ADI AD9250 Rapid Development Board. December 2013 2013.12.02 Initial release.