Xilinx Programmable Logic Device Design and Development (Basic) Serial 28: Spartan

Chapter 9 ChipScope Pro Debugging Design

In traditional FPGA design, oscilloscopes and logic analyzers are mostly used for debugging. FPGA and PCB designers reserve a certain number of FPGA pins as test pins. When the FPGA designer writes the FPGA code, the FPGA internal signals that need to be observed are defined as the output of the module, and these signals are locked to the reserved state during the integrated implementation. On the test pins, the probes of the oscilloscope or logic analyzer are connected to these test pins for observation. This test method has many limitations, high cost, poor flexibility, and troublesome operation.

high cost. The cost of an oscilloscope and logic analyzer is high.

Poor flexibility. To test the internal nodes of the FPGA, you need to modify the design and bring the signal to be tested to the FPGA pin for testing. After the PCB design is completed, the number and number of these pins used as test pins are fixed and cannot be changed flexibly. If the test pin is not enough, it will affect the test. If there are too many test pins, it will affect the PCB layout and wiring. And in some extreme designs, the I/O pins of the FPGA may have been used up, and no extra pins are used to test pins.

The operation is troublesome. The oscilloscope and logic analyzer must be connected to the test pins through the probe, which can easily cause a short circuit and damage the device.

As the scale of FPGAs continues to increase, the design of FPGAs becomes more and more complex, and the package form is mostly shifted to a spherical mode. The traditional way of using probes to monitor signals becomes more and more difficult. Xilinx's integrated logic analysis tool, ChipScope Pro, completely solves these problems.

ChipScope Pro has the features of a traditional logic analyzer, is inexpensive, and does not require a large number of probes, which is highly practical. It is an on-chip logic analysis tool designed for the Xilinx Virtex series and Spartan series devices. It uses the JTAG port to read out the internal signals of the FPGA and send them to the computer for analysis. The basic method is to use the BRAM in the FPGA to store the signal waveform data, then transfer the data to the computer through the JTAG interface and display the waveform on the computer. Figure 9-1 shows the connection structure of the ChipScope test system.

The use of this technique to observe the test method of the internal signal of the FPGA has the following advantages.

The cost is lower. Only ChipScope Pro design software and a download cable are required, which greatly simplifies PCB design costs.

Higher flexibility. It is not necessary to output the signal to be observed to the FPGA through an extra pin. The number of signals and the depth of storage are determined by the device BRAM. The more BRAM in the device, the greater the number of observable signals and the depth of storage.

Easy to use. ChipScope Pro is called as an IP module in the ISE tool, which allows you to easily select the signal to be tested or set up complex trigger conditions.

ChipScope test system connection structure diagram

Figure 9-1 ChipScope test system connection structure

ChipScope Pro consists of a series of related IP cores and their software tools, including Core Generator, Core Inserter, ChipScope Analyzer and TCL Script Control Interface.

(1) Nuclear generator

Xilinx Core Generator Tool: It can generate netlists for Integrated Controller Core (ICON), Integrated Logic Analysis Core (ILA), Virtual I/O Core (VIO), and Agilent Tracking Core (ATC2). Instantiate the required template files.

IBERT Core Generator: Generates the netlists for the Virtex-4 and Virtex-5 series of bit error rate test cores (IBERT) and the template files needed for instantiation.

(2) Nuclear inserter

Core Inserter: Automatically inserts the CON, ILA, and ATC2 cores into a design that has been integrated.

PlanAhead Design Analysis Tool: Automatically inserts ICON and ILA cores into the design netlist. Please refer to the PlanAhead chapter.

(3) ChipScope Analyzer (ChipScope Analysis Software): It can configure the FPGA, set the trigger condition, and set the trace display mode of ILA, IBA/OPB, IBA/PLB, VIO and IBERT.

(4) ChipScope Engine Tcl (CSE/Tcl) ScripTIng Interface: The communication interaction with the chip is completed through the TCL scripting language and the JTAG chain. In the design, there are two operational procedures for using ChipScope Pro, as shown in Figure 9-2.

ChipScope operation flow chart

Figure 9-2 ChipScope operation flow chart

Process 1: Through the ChipScope Pro kernel generator, various debugging functions such as ICON, ILA, and IBA are generated, and the generated instantiation code is inserted into the HDL source program, and then the design including the ChipScope Pro core is integrated. Download to the device and analyze with the ChipScope Analyzer.

Process 2: Use ChipScope Pro's kernel inserter to insert the required kernel directly into the already completed design netlist (NGC or EDIF), then route the new netlist file and download it to the device, using ChipScope. Analyzer for analysis.

Next, we will introduce ChipScope's IP core and its application in detail, focusing on the following.

ChipScope Pro core generator and the properties of each core.

ChipScope kernel inserter.

ChipScope Pro Analyzer nuclear analyzer.

Modify the ChipScope core signal connection in the FPGA Editor.

Ezzy Mini 2 In 1

EZZY Mini 2 in 1. As a China Factory Based leading supplier of EZZY Mini 2 in 1 in this market, we can help build and customize your brand, or you can wholesale from us all series (different styles) of our Disposable Vape device producing different puffs per bar like 300 puffs, 400 puffs, 500 puffs, 800 puffs, 1000 puffs, 1200puffs, 1500 puffs or even 1800puffs 2000 puffs, 2400puffs, 3000puffs and more.
We`ve provided OEM/ODM service for thousands of our clients, you could be one of them as a white label client too. Today, please feel free to ask us to design and manufacture for you. What`s more, we offer not only quality variable styles of disposable vapes but also competitive prices by wholesale, you`re buying from factory direct, which allows you to enjoy both fast shipping and warranty guarantee. Besides OEM service, some of the most popular brands of disposable vape pod devices are largely in stock in our China factory or CA. So just don`t hesitate to contact us to check whether your required brands of products are in stock, and what flavor options available. Please remember 5-Stars customer service is our growth engine in the vape industry in the long-term. So feel free to start cooperating with us.

Light Electronic Cigarette,Mini Disposable E-Cigarette,Customizable Logo E-Cigarette,Oval E-Cigarette

Shenzhen Ousida Technology Co., Ltd , https://www.osdvape.com