UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 35206

MIG Virtex-6 DDR2/DDR3 - Usage of Debug Port

Description

The MIG Virtex-6 DDR2/DDR3 design includes an option to generate the core with a debug port. Enabling the debug port provides the ability to view the behavior during hardware operation of common debug signals through Chipscope. To enable the debug port, turn the Debug Signals for Memory Controller option to ON. This option is available on the FPGA Options screen of the MIG tool. Once the design is generated with this option enabled, generate a bitstream with the provided Example Design using the "ise_flow.bat" script file located in the output 'example_design/par' directory. Running the Example Design with the debug port is the first step in any hardware debug. This is a known working design which can be configured to test for many different signal integrity issues.

This Answer Record provides useful information on using the debug port to correct specific types of problems such as calibration failures and bit errors.

NOTE: This Answer Record is part of the Xilinx MIG Solution Center (Xilinx Answer 34243). The Xilinx MIG Solution Center is available to address all questions related to MIG. Whether you are starting a new design with MIG or troubleshooting a problem, use the MIG Solution Center to guide you to the right information.

Solution

Steps:
  1. Once the design is implemented and a bitstream is available, open the ChipScope analyzer and configure the device.
  2. Open the provided ChipScope project; example_design\par\example_top.cdc.
  3. The Example Design with the Debug Port is now running in your system and your can trigger off of different signals to view the behavior and test for different problems.
Common Debug Port Usages:
  • Disable the Phase Detector
  • View the results of write and read timing calibration
  • Dynamically change write and read-timing related to IODELAY tap values
Signals/Parameters of Interest:

For a complete list of Debug Port signals, please see the DDR2/DDR3 SDRAM Memory Interface Solution > Debugging Virtex-6 DDR2/DDR3 SDRAM Designs > Hardware Debug > Phy Layer Debug Signals within UG406.

The Debug Port is enabled through the top-level RTL parameter DEBUG_PORT. Setting this to "ON" enables the port in the RTL. Additionally, CORE Generator command lines are required in the "ise_flow.bat" script file to generate the necessary cores to run in the ChipScope analyzer.

Using the Debug Port to Debug Write Leveling:

Using the Debug Port to Debug Read Leveling Stage 1 (includes steps on calculating data valid window):

Using the Debug Port to Debug Read Leveling Stage 2:

Using the Debug Port to Isolate a Write versus Read Problem:

Linked Answer Records

Associated Answer Records

AR# 35206
Date Created 05/17/2010
Last Updated 12/15/2012
Status Active
Type General Article
Devices
  • Virtex-6 CXT
  • Virtex-6 HXT
  • Virtex-6 LX
  • More
  • Virtex-6 LXT
  • Virtex-6 SXT
  • Less
IP
  • MIG