This website uses cookies. By using this site, you consent to the use of cookies. For more information, please take a look at our Privacy Policy.
Home > FPGA Technology > Peripherals / Peripheral Circuits > Talk about xilinx FPGA configuration circuit - FPGA Technology

Talk about xilinx FPGA configuration circuit

Date: Jul 07, 2020

Click Count: 1933

Digital phosphor oscilloscope (DPO) is an oscilloscope platform launched by Tektronix. It has various traditional advantages of digital storage oscilloscopes, such as data storage and advanced triggering functions.

Talk about xilinx FPGA configuration circuit

1.1 Project background

Oscilloscope is an electronic measuring instrument capable of displaying dynamic waveforms of voltage signals. It can convert the time-varying voltage signal into a curve in the time domain, and the original invisible electrical signal can be converted into a visually visible light signal on a two-dimensional plane, which can analyze the time domain nature of the electrical signal.

At present, the world's major oscilloscope manufacturers are concentrated in the United States, while high-end oscilloscopes are monopolized by Tektronix, Agilent and LeCory. For example, Agilent's high-performance 90000 series Infiniium oscilloscope achieves 40-GSPS sampling rate on 4 channels, and provides ultra-low noise 13 GHz full real-time oscilloscope bandwidth, and the storage depth has reached 1Gpts.

On the domestic side, due to the gap between high-speed analog-to-digital converters and application-specific integrated circuits and developed countries, the main indicators such as the highest sampling rate, analog bandwidth, and storage depth of similar oscilloscopes on the market are still far behind. This subject is to develop an acquisition and storage system for digital phosphor oscilloscopes with independent intellectual property rights. Accumulate development experience for high-performance acquisition and storage technology. At the same time, it fills the gap of my country's digital fluorescent oscilloscope and narrows the gap with the development level of similar foreign oscilloscopes.

1.2 Digital phosphor oscilloscope

Digital phosphor oscilloscope (DPO) is an oscilloscope platform launched by Tektronix. It has various traditional advantages of digital storage oscilloscopes, such as data storage and advanced triggering functions. At the same time, it also has the bright and dark display and real-time characteristics of the analog real-time oscilloscope, which can produce a digital effect that is better than the gradual change of the brightness of the analog oscilloscope. Its structure is shown in Figure 1.

Digital storage oscilloscopes require micro-processing to display data, resulting in a certain millisecond stagnation time between displaying two waveforms; analog oscilloscopes cannot capture waveform information during the retrace time. The DPO's data acquisition and display modules run in parallel, allowing the DPO to continue to collect signal data while processing the display data. At the same time, unlike DSO, DPO is to display again after continuous acquisition and processing. Since DPO generally uses a dedicated hardware circuit for digital fluorescence processing of the collected waveform, it is no longer limited to the low-speed processing of data by the microprocessor, which makes the update rate of the waveform qualitatively improved. Therefore, DPO can continuously capture most of the details of the waveform, which can completely reflect the waveform information, and also provide complete data for subsequent analysis and processing. as shown in picture 2.

The application of digital fluorescent display technology enables DPO to display the frequency of the signal at a specific position with different brightness or color. The higher the frequency, the higher the brightness. The digital fluorescent processor is generally composed of a dedicated hardware circuit (high-speed FPGA or ASIC). Like the DSO, the input signal is first amplified and A/D converted to obtain the sampled value of the signal. The sampled value is processed by the digital fluorescence processing unit to form a complete waveform diagram containing the three-dimensional information of the waveform without interrupting the acquisition process. Next, the digital fluorescence processing unit transmits about 30 complete waveform images with fluorescent display effect to the waveform display memory every second, and under the control of the microprocessor, displays the waveform images on the fluorescent screen of the oscilloscope to achieve the fluorescent display of the analog oscilloscope effect. At the same time, the microprocessor can perform various functions such as automatic measurement and calculation in parallel.

The number of waveforms captured by DPO per second can be as high as hundreds of thousands of frames, which is several thousand times or even tens of thousands higher than the average DSO. This fast waveform capture rate combined with superb display capabilities enables DPO to analyze any details of the signal. At the same time, because of the use of digital processing, it also has the advantages of digital storage oscilloscope.

1.3 Project Features

The digital phosphor oscilloscope (DPO, Digital Phosphor Oscilloscope) of this project is the latest generation of oscilloscope, which integrates the advantages of digital storage oscilloscope and analog oscilloscope. It has the waveform storage of digital storage oscilloscope, transient capture, negative delay trigger and advanced Functions such as triggering, real-time capture of analog oscilloscope, high waveform update rate and display effect of gradual change of brightness and other characteristics.

Using FPGA's rich logic resources and powerful data processing capabilities, the main DPX module, namely the digital fluorescence processing module, is implemented in the FPGA module, and at the same time, the processed data is transmitted to the PC for processing by using the USB interface, and the PC is used for further Analysis processing and display. Due to the FPGA design, the complexity of the system is greatly reduced, and it is also convenient to upgrade and update. At the same time, the FPGA module can be powered through the USB port, which greatly facilitates the debugging of engineers and makes the DPO very portable.

Overall scheme design and demonstration

The virtual digital fluorescent oscilloscope can be simply described as a system: the user sets the acquisition trigger parameters through the PC menu, the oscilloscope collects data according to the user's settings, and performs digital fluorescence processing on the collected data to generate a waveform image after DPX processing It is transmitted to the PC via USB and finally displayed on the LCD screen. At the same time, the collected data can be further analyzed and processed. Therefore, the oscilloscope can be divided into two parts, one part is responsible for monitoring commands and the display of waveforms and menus; the other part is responsible for high-speed data acquisition and digital fluorescence imaging.

2.1 Overall block diagram

Based on the above analysis, the following design plan is formulated: The oscilloscope adopts the FPGA architecture, and the FPGA as the system control core is responsible for monitoring the key commands sent from the PC and sending the corresponding acquisition control commands to the acquisition module according to the current working state, while also controlling the digital The waveform images and control menus generated by the fluorescence processing module, on the other hand, are used to implement high-speed data acquisition systems and digital fluorescence processors due to their high-speed characteristics. The overall implementation block diagram is shown in Figure 3. Among them, the analog-to-digital converter, clock circuit and FPGA constitute the acquisition system of the oscilloscope. The DPX module is implemented inside the FPGA and finally uploaded to the PC for processing and display via USB.

2.2 Signal conditioning circuit

The signal conditioning circuit is mainly composed of an attenuation amplifier circuit, a coupling control circuit, and a DC bias circuit, which is controlled by the FPGA.

The attenuation amplifier circuit adjusts the amplitude range of the input waveform, and attenuates or amplifies signals of different amplitudes to fit the display range of the screen, which is convenient for observation and measurement.

The coupling control circuit controls the coupling mode of the input signal, which are AC coupling and DC coupling. In the DC coupling mode, all components of the signal (AC and DC) are collected and displayed, while in the AC coupling mode, the DC component of the signal It is blocked and only the AC component is collected and displayed.

The DC bias circuit adds a DC component to the signal, which can control the signal to move up and down in the screen. In addition, the input impedance and analog bandwidth of the oscilloscope are also determined by the signal conditioning circuit. In this project, the input impedance of the signal conditioning circuit is 50 ohm and 1M ohm. The analog bandwidth is 500MHz.

2.3 Data acquisition system

The data acquisition system consists of an analog-to-digital converter (Analog Digital Convertor, ADC), a clock chip, and related acquisition and control modules in the FPGA.

2.3.1 Analog-to-digital conversion

This design uses the AT84AD001B analog-to-digital converter of e2v. The interface is shown in Figure 4. The ADC is a parallel comparison structure, which is fast but consumes a lot of power. It integrates two ADCs in one chip, each ADC has a maximum sampling rate of 1GHz and a quantization accuracy of eight bits. In addition, the chip also supports the function of interleaved sampling, that is, two ADCs in the same chip collect the same analog signal at the same time. And the sampling clock phase is opposite, and the sampling data of these two ADCs can be stitched together to obtain the highest sampling rate of 2GSPS. The main features of AT84AD001B are as follows:

Dual ADC, 1GSPS per channel sampling rate, up to 2GSPS in interleaved sampling mode;

The output code is optional for Gray code and binary code, and supports 1:1 and 1:2 multiplex output;

Support analog input switching selection, sampling clock selection;

Support gain control and zero level adjustment;

When the sampling rate is 1GSPS, the bit error rate does not exceed

Serial configuration working mode, source synchronous clock data output;

2.3.2 Clock circuit

In this project, the high-precision clock management chip LMK03033C of NaTIonal Semiconductor is used. The rms value of its clock jitter is 500 femtoseconds. The chip has a built-in low-noise phase-locked loop and supports 8-channel clock synchronous output and serial configuration. Each output clock has a programmable frequency division ratio, delay adjustment and output selection module. The maximum output clock frequency is 1GHz, and the output delay can be adjusted in the range of 0 to 2.25ns in steps of 150ps. The chip provides an accurate sampling clock for high-speed ADC data collection. The interface is shown in Figure 5.

2.3.3 Acquisition control and data buffering

The high-speed digital signal output from the analog-to-digital converter is written into the data buffer under the control of the acquisition control module, and then subjected to digital fluorescence processing. As shown in Figure 6. For the control and buffering of high-speed digital signals, high-speed digital circuits are generally used. One solution is to use an application specific integrated circuit (ASIC) to achieve high-speed control and data buffering. However, ASICs are extremely expensive and cannot be modified, and are generally used in well-proven, mature digital circuit designs. Another solution is to use a high-speed FPGA.

Field Programmable Gate Array (Field Programmable Gate Array, FPGA) is a device containing programmable elements. Its speed is generally slower than that of an application specific integrated circuit, but it is still faster than that of a general-purpose microprocessor. It is suitable for high-speed data controllers. And the programmable features and low price of FPGA are suitable for prototype verification in the initial development stage of the project.

The acquisition control and data buffer module of the oscilloscope is completed in the FPGA. This module intercepts the part of interest from the infinitely long waveform signal to display according to the trigger conditions set by the user. The access control module of the data storage system is also implemented in FPGA.

2.4 Digital fluorescence processing module

The main work of the digital fluorescent processing unit has the following aspects:

(1) Fluorescent display of waveform to achieve the fluorescent display effect of analog oscilloscope

The digital fluorescent oscilloscope displays the collected waveforms in a fluorescent display, and displays the frequency of the signal for a long time through the waveform brightness, completely retaining the brightness level information of the waveform display of multiple channels to achieve the fluorescent display effect of the analog oscilloscope. The greater the frequency of occurrence at a certain point, the greater the brightness of that point displayed on the fluorescent screen; the smaller the frequency of occurrence at a certain point, the lower the brightness of the point displayed on the fluorescent screen.

(2) Grid adjustment control

When using a digital fluorescent oscilloscope to observe the signal, in order to observe accurately, the fluorescent screen needs to display the grid while displaying the waveform signal.

(3) Adjustment control of the brightness of the waveform fluorescent display

When using a digital fluorescent oscilloscope to observe the signal, the brightness of the displayed waveform will directly affect the observation effect. Too bright or too dark waveforms will make the details of the waveforms unclear, which is not conducive to user observation. Therefore, it is necessary to add the adjustment function of the brightness of the waveform fluorescent display, so that the user can adjust the brightness of the waveform displayed on the fluorescent screen, which is beneficial to the waveform observation.

(4) Adjustment control of waveform blanking percentage

When observing a signal with a digital fluorescent oscilloscope, sometimes it is necessary to make the waveform stay on the screen for a certain period of time before disappearing, or sometimes it is necessary to display the displayed waveform forever on the fluorescent screen, such as occasional signals such as glitches. Therefore, the adjustment function of the blanking percentage of the waveform needs to be added so that the user can adjust the duration of the waveform displayed on the fluorescent screen.

(5) Multi-channel waveform fluorescent display and channel priority control

When the oscilloscope observes multiple channels at the same time, different channels should be displayed in different colors to show the distinction. At the same time, when multiple channels are displayed at the same time, there should be a priority distinction, that is, which channel should be displayed at the top. The user should be able to display the channel waveforms of most concern on the uppermost layer of all waveforms through adjustment control, which is convenient for waveform observation.

(6) Meet the real-time display requirements of digital fluorescent oscilloscope

An oscilloscope is a real-time measurement instrument that needs to meet the requirements for real-time display of waveforms. Therefore, when performing the fluorescent display of the waveform, the processing speed should be increased as much as possible to improve the real-time performance.

This chapter will first introduce the design idea of the digital fluorescent processing unit in detail, and on this basis, specifically introduce the design and implementation of the digital fluorescent processing unit.

It can be seen from the demand analysis that in order to realize the fluorescent display of the waveform, it is necessary to time a period of time first, superimpose several waveforms collected during this period of time, and record the frequency of appearance of all waveform points. Therefore, it is necessary to design a memory inside the digital fluorescence processing unit to record the frequency of appearance of all waveform points in a period of time, which is called analog fluorescent screen memory. At the same time, a waveform superposition processing module is needed to complete the function of storing the frequency of superimposition of several waveforms to the analog screen memory.

Then, when the timing time is up, read out all the unit information superimposed and stored in the analog fluorescent screen memory, and form a frame of waveform image through color conversion to send to the display for display; at the same time, read out all the unit information in the analog fluorescent screen memory Carry out blanking processing, and then write back to the analog screen memory.

A waveform image sent to the display for display is a pixel image with the same size and resolution as the waveform display area of the display screen. Its original information is stored in the simulated fluorescent screen memory. The simulated fluorescent screen memory is actually a two-dimensional dynamic database. The address units of the database correspond to the pixels in the waveform display area. Therefore, the size of the database is determined by the total pixels of the waveform display area of the phosphor screen of the digital phosphor oscilloscope. The horizontal axis corresponds to the time axis, and the vertical axis corresponds to the amplitude axis. The lower left corner of the specified display area corresponds to the starting unit of the database, and the subsequent data units are arranged in the order of the corresponding screen from left to right and from bottom to top.

It can be seen from the above that the entire digital fluorescent processing unit should include five subunits working together: waveform data buffer memory, analog fluorescent screen memory, waveform activation processing module, waveform blanking processing module and color conversion processing module, etc., which together complete the multi-channel waveform Digital fluorescence processing, and form a frame of waveform image output to the display at a certain time, and perform a blanking process at the same time. The connection between each subunit is shown in Figure 8.

2.5 PC part

The PC and FPGA carry out data interaction (DPX data and control information) via USB. The PC supplies power to the FPGA via USB. The DPX data is transmitted to the PC via USB and processed and displayed by LABwindows.


<< Previous: Independent key detection for FPGA learning

<< Next: Design of BPSK signal carrier frequency estimation unit based on FPGA

Relateds

Need Help?

Support

If you have any questions about the product and related issues, Please contact us.