Modifying ChipScope ILA CDC File

From RCSWiki

Jump to: navigation, search

Contents

About

  • Author: Andy Schmidt
  • Last Modified: 12/26/2008
  • Notes: This tutorial shows how to modify the ChipScope CDC file for easy integration into ChipScope Project. It also covers a simple script to generate the CDC File for you based on your HW Core VHDL file.

CDC Modification Process

  1. Using CoreGen (or if 9.1 or older tools gengui.sh) copy the <ILA>.cdc file to your working directory
  2. Open the <ILA>.cdc file
  3. Open your HW Core.vhd file where the ILA was instantiated
  4. Beginning with TRIG0 perform a find-and-replace all instances of TRIG0 with the signal connected to TRIG0 in your HW Core
  5. If you have any Triggers that are more than just one signal do not overwrite the TRIG name, but instead search for the next instance of the TRIG in the CDC file
    • Replace each of the sub TRIG (TRIG2[0], TRIG2[1]...) with the appropriate bit signal from your HW Core
  6. Repeat the process until all Signals are modified.
  7. Save CDC File

Integration with ChipScope Project

  1. Open ChipScope Analyzer (or an existing project if you already have one created)
  2. Connect to the FPGA
  3. File -> Import -> Browse to CDC File
    • IMPORTANT Make sure you import the new CDC file to the correct ILA instance (if you have more than one)

Generate CDC Script

  • I created a somewhat simple to use Generate CDC Script which works by taking the default CDC, the VHDL and the ILA Instance name from within the VHDL to generate the CDC File
  • The script can be found at /opt/xilinx/rcs_lab_tools/generate_cdc.py
  • Usage: ./generate_cdc.py <ILA>.cdc <HW Core>.vhd <ILA Instance Name>
    • Example: ./generate_cdc.py npi_ila.cdc user_logic.vhd npi_i
  • The output is a new file called <ILA Instance Name>.cdc
  • If you have multiple ILAs as long as you provide the correct CDC file this script should work
  • If you have multiple Instance Names for each ILA as long as you provide the correct Instance Name a different CDC file will be generated as necessary
Personal tools