Analog-to-digital and digital-to-analog conversion controller based on zynq

By using Zynq processor in analog-to-digital and digital-to-analog conversion controllers to integrate the master control and communication functions into the ARM terminal, the analog-to-digital and digital-to-analog conversion functions are packaged to the FPGA terminal, and data exchange through the AXI high-speed bus, the traditional dual- The high power consumption and layout of chip design improve the transmission rate and stability, saving resources and costs.

CN118938741APending Publication Date: 2024-11-12TIANJIN JINHANG COMP TECH RES INST
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410995751.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

The traditional analog-to-digital and digital-to-analog conversion controller has a complex architecture, and the dual-chip design results in high power consumption, large board layout area and low transmission rate, which is susceptible to interference.

Method used

Using an analog-to-digital and digital-to-analog conversion controller based on Zynq, the system master control and network communication functions are integrated into the ARM terminal with the Zynq-7000 processor, and the analog-to-digital and digital-to-analog conversion functions are packaged to the FPGA terminal, and data is carried out through the AXI high-speed bus. Exchange, replaces traditional SPI communication methods.

Benefits of technology

It achieves higher transmission rate and stability, saves board area and development costs, and meets the needs of complex system-on-chip design.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118938741A_ABST
    Figure CN118938741A_ABST
Patent Text Reader

Abstract

The invention relates to an analog-to-digital and digital-to-analog conversion controller based on zynq, and belongs to the technical field of computer bus communication. The whole controller is composed of two parts, wherein the ARM end is responsible for flow control, data processing, Ethernet communication and the like of the whole system; the FPGA end is responsible for ADC acquisition, DAC output, data format conversion and the like. And data exchange is carried out between the two ends through an AXI high-speed bus. Compared with the prior art, a novel zynq architecture is adopted, functions of a main controller, network communication and the like are integrated to an ARM end, and a traditional single-chip processor is replaced; the functions of analog-to-digital conversion, digital-to-analog conversion and the like are packaged to an FPGA end to replace a traditional data conversion chip; data interaction is carried out between the two ends through the AXI high-speed bus, compared with a traditional external SPI communication mode, the transmission speed is greatly improved, and the transmission stability is also guaranteed. Meanwhile, the design mode of adding the ADC chip and the DAC chip to the single chip can better save the area of a board card and reduce the development cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of computer bus communication, and in particular relates to a Zynq-based analog-to-digital and digital-to-analog conversion controller. Background Art

[0002] Analog-to-digital conversion and digital-to-analog conversion controllers are crucial components in digital circuits. They play a bridging role between digital signal processing and analog signal conversion. In modern electronic products, analog-to-digital converters are usually used to convert analog signals (such as sound, light signals, etc.) into digital form so that digital systems can process and analyze them, such as digital audio processing, data acquisition, etc. The digital-to-analog conversion controller is responsible for converting digital signals into analog signals, and is commonly found in digital audio equipment, communication systems, and other fields.

[0003] The application background of these components stems from the continuous development of digital technology and various application requirements. The stability, accuracy and convenience of digital signals make analog-to-digital conversion and digital-to-analog conversion controllers indispensable components in many fields. Through them, digital systems can interact efficiently with external analog quantities, realize the conversion and transmission between digital and analog signals, and provide strong support for the functions of modern electronic products.

[0004] The complete functions of traditional analog-to-digital and digital-to-analog conversion control systems usually consist of two parts: one is the system main control and Ethernet-related communication functions located on the main controller chip, and the other is the analog-to-digital acquisition and digital-to-analog output functions composed of ADC chips, DAC chips and data conversion modules. The two chips usually use the SPI bus communication method to complete data transmission. This design method requires the use of two chips, which occupies a large resource area and has high power consumption. At the same time, this chip's external communication method usually has a low transmission rate and is susceptible to interference. Summary of the invention

[0005] 1. Technical issues to be resolved

[0006] In order to solve the problems of complex architecture of existing analog-to-digital and digital-to-analog conversion controllers, high power consumption caused by the traditional "dual-chip" design method, and large PCB board layout area, the present invention designs an analog-to-digital and digital-to-analog conversion controller based on Zynq.

[0007] (II) Technical solution

[0008] In order to solve the above technical problems, the present invention provides a Zynq-based analog-to-digital and digital-to-analog conversion controller, wherein the analog-to-digital and digital-to-analog conversion controller uses a Zynq-7000 processor, including an FPGA processor part as an FPGA end and a dual-core ARM cortex-A9 processor part as an ARM end, wherein the ARM end is responsible for the process control, data processing and Ethernet communication of the entire controller; the FPGA end is responsible for ADC acquisition, DAC output and data format conversion; data is exchanged between the two ends through an AXI high-speed bus, and the interface type is an HP interface.

[0009] Preferably, the analog-to-digital and digital-to-analog conversion controller includes a system main control module, an Ethernet communication module, an analog-to-digital conversion module and a digital-to-analog conversion module; the system main control module and the Ethernet communication module are located at the ARM end; the analog-to-digital conversion module and the digital-to-analog conversion module are located at the FPGA end;

[0010] The system main control module is used to control the overall operation process of the controller and some peripheral circuit interface drivers;

[0011] The Ethernet communication module is located at the ARM end of the zynq device, and Ethernet 0 is enabled by configuring and opening the MIO16 to MIO27 interfaces in Block Design; the network protocol stack LWIP is enabled in the BSP to provide a network transmission API interface function that can be called;

[0012] The analog-to-digital conversion module includes two parts, one part is an ADC sampling chip, and the other part is a data processing and conversion module; the ADC sampling chip is used to collect analog data of external input analog signals according to a preset collection method and sampling frequency, and convert the collected data into a digital signal with a bit width; the data processing and conversion module is used to convert the collected digital signal into a bit width and byte order, and encapsulate it into an AXIS bus timing that can be transmitted to the ARM end; the two parts coordinate with each other, the ADC sampling chip is connected to the data processing and conversion module through the accompanying clock and valid data, and the extraction of valid data is completed according to the rising edge of the accompanying clock corresponding to the center of the data;

[0013] The digital-to-analog conversion module includes two parts, one part is a DAC output chip, and the other part is a data processing and analysis module; the DAC output chip is used to convert the digital signal generated internally into an analog signal output according to a set method; the data processing and analysis module is used to parse the data to be output sent by the system main control module on the ARM side from the AXIS timing, and convert it into a data format that can be recognized by the DAC output chip, and at the same time give the DAC output chip a clock so that it can convert the digital signal into the analog signal according to a preset method.

[0014] Preferably, the Ethernet transmission protocol between the Ethernet communication module and the outside is TCP transmission mode, and the transmission rate is 1000M.

[0015] Preferably, the network IP address of the Ethernet communication module is set to 192.168.43.20, the network mask is set to 255.255.255.0, and the external network setting should be in the same network segment as the Ethernet communication module; before receiving and sending data, the Ethernet communication module first creates a new TCP PCB for communication, and then binds the PCB to the local address.

[0016] Preferably, the ADC acquisition chip is implemented using AD9268. During data acquisition, the data processing and conversion module provides a sampling clock to the ADC sampling chip. When the data processing and conversion module controls the ADC sampling chip, the initialization and sampling mode configuration functions of the ADC sampling chip are completed through the SPI bus. The ADC sampling chip acquires analog signals according to the sampling clock provided by the data processing and conversion module, and outputs the sampling clock and sampling data to the data processing and conversion module. The data processing and conversion module extracts the sampling data according to the rising edge of the sampling clock provided by the ADC sampling chip, caches the extracted data in a FIFO, and finally encapsulates the data in the FIFO in AXIS timing and inputs it into the AXIDMA core, and moves the data to the ARM end in a DMA manner.

[0017] Preferably, the DAC output chip adopts AD9708, and outputs a pair of differential current signals. Through the operational amplifier circuit, the differential to single-ended and amplitude adjustment functions are realized, and the final output analog voltage range is -5V to +5V; the ARM end transmits data to the FPGA end through DMA. After the FPGA end obtains valid data from the AXIDMA core, it converts the digital signal into an analog signal through the DAC output chip and outputs it.

[0018] The present invention also provides a method for implementing the acquisition process of analog-to-digital conversion and the sending process of digital-to-analog conversion by using the controller.

[0019] Preferably, the acquisition process of analog-to-digital conversion and the sending process of digital-to-analog conversion are described as follows:

[0020] (1) For the acquisition process of analog-to-digital conversion, the external analog signal is first input into the analog-to-digital conversion module. The ADC sampling chip in the analog-to-digital conversion module analyzes the analog signal to convert it into a digital signal. The obtained digital signal is then subjected to data format conversion and bit width processing to obtain valid data that can be transmitted by the AXIS protocol, which is then transmitted to the system main control module on the ARM side via the AXI bus. The system main control module extracts data from the DDR at the corresponding position, performs data processing and Ethernet packetization on the extracted data, and sends it to the Ethernet communication module and then sends it to the outside via Ethernet;

[0021] (2) For the sending process of digital-to-analog conversion, the host computer of the controller transmits the data to be sent to the Ethernet communication module on the ARM side through Ethernet in a message of a certain format. When the system main control module detects that the Ethernet communication module has received the data, it extracts, verifies and processes the valid data from the buffer. After obtaining the valid data, the system main control module sends the valid data to the digital-to-analog conversion module on the FPGA side according to the AXIS protocol. The digital-to-analog conversion module performs bit width conversion on the valid data and sends the valid data to the DAC output chip in the digital-to-analog conversion module. The DAC output chip converts the digital signal into a corresponding analog signal and finally outputs the analog signal.

[0022] The invention also provides an application of the controller in the technical field of computer bus communication.

[0023] The invention also provides an application of the method in the technical field of computer bus communication.

[0024] (III) Beneficial effects

[0025] The present invention optimizes the traditional analog-to-digital and digital-to-analog conversion controller architecture and provides an analog-to-digital and digital-to-analog conversion controller based on Zynq, including a system main control module, an Ethernet communication module, an analog-to-digital conversion module and a digital-to-analog conversion module. The controller as a whole is composed of two parts. The ARM end is responsible for the process control, data processing and Ethernet communication of the entire system; the FPGA end is responsible for ADC acquisition, DAC output and data format conversion. Data is exchanged between the two ends through the AXI high-speed bus to meet the requirements of ultra-high performance and complex system-on-chip (SoC) design.

[0026] Compared with the prior art, the present invention adopts a new zynq architecture, integrates the main controller and network communication functions into the ARM side, replacing the traditional single-chip processor; encapsulates analog-to-digital and digital-to-analog conversion functions into the FPGA side, replacing the traditional data conversion chip; data is exchanged between the two ends through the AXI high-speed bus, which greatly improves the transmission speed compared to the traditional external SPI communication method, and the transmission stability is also guaranteed. At the same time, this design method of single chip plus ADC and DAC chip can better save board area and reduce development costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 It is a schematic diagram of the main structural modules of the analog-to-digital and digital-to-analog conversion controller based on Zynq of the present invention;

[0028] Figure 2 It is a schematic diagram of the connection relationship of the analog-to-digital and digital-to-analog conversion controller based on Zynq of the present invention. DETAILED DESCRIPTION

[0029] In order to make the purpose, content and advantages of the present invention more clear, the specific implementation methods of the present invention are further described in detail below in conjunction with the drawings and examples.

[0030] To solve the problems in the prior art, the present invention provides a Zynq-based analog-to-digital and digital-to-analog conversion controller, such as Figure 1 As shown, the analog-to-digital and digital-to-analog conversion controller includes a system main control module, an Ethernet communication module, an analog-to-digital conversion module and a digital-to-analog conversion module.

[0031] The analog-to-digital and digital-to-analog conversion controller uses the Zynq-7000 processor, including the FPGA processor part as the FPGA end and the dual-core ARM cortex-A9 processor part as the ARM end. The ARM end is responsible for the process control, data processing and Ethernet communication of the entire controller; the FPGA end is responsible for ADC acquisition, DAC output and data format conversion; data is exchanged between the two ends through the AXI high-speed bus, and the interface type is the HP interface. The connection between each module is as follows Figure 2 The system main control module and Ethernet communication module are located at the ARM end; the analog-to-digital conversion module and digital-to-analog conversion module are located at the FPGA end.

[0032] The system main control module is the control core of the entire controller, which is used to control the overall operation process of the controller and some peripheral circuit interface drivers. The acquisition process of analog-to-digital conversion and the transmission process of digital-to-analog conversion are summarized as follows:

[0033] (1) For the acquisition process of analog-to-digital conversion, the external analog signal is first input into the analog-to-digital conversion module. The ADC sampling chip in the analog-to-digital conversion module analyzes the analog signal to convert it into a digital signal. The obtained digital signal is then converted into a data format and processed in bit width to obtain valid data that can be transmitted by the AXIS protocol. The digital signal is then transmitted to the system main control module on the ARM side via the AXI bus. The system main control module extracts data from the DDR at the corresponding position, performs data processing and Ethernet packetization on the extracted data, and sends it to the Ethernet communication module and then sends it to the outside via Ethernet.

[0034] (2) For the sending process of digital-to-analog conversion, the controller external device or the controller host computer transmits the data to be sent to the Ethernet communication module on the ARM side through Ethernet in a certain format. When the system main control module detects that the Ethernet communication module has received the data, it extracts valid data from the buffer, performs verification and data processing, etc. After obtaining the valid data, the system main control module sends the valid data to the digital-to-analog conversion module on the FPGA side according to the AXIS protocol. The digital-to-analog conversion module performs bit width conversion on the valid data and sends the valid data to the DAC output chip in the digital-to-analog conversion module. The DAC output chip converts the digital signal into a corresponding analog signal and finally outputs the analog signal.

[0035] The Ethernet communication module is located at the ARM end of the zynq device, and Ethernet 0 is enabled by configuring and opening the MIO16 to MIO27 interfaces in Block Design; the network protocol stack LWIP is enabled in the BSP (Board Support Package) to provide a network transmission API interface function that can be called; the Ethernet transmission protocol between the Ethernet communication module and the outside uses TCP transmission mode, and the transmission rate is 1000M.

[0036] Furthermore, the network IP address of the Ethernet communication module is set to 192.168.43.20, the network mask is set to 255.255.255.0, and the external network setting should be in the same network segment as the Ethernet communication module. Before receiving and sending data, the Ethernet communication module first creates a new TCP PCB (Protocol Control Block) for communication, and then binds the PCB to the local address.

[0037] The analog-to-digital conversion module includes two parts, one is the ADC sampling chip, and the other is the data processing and conversion module. The main function of the ADC sampling chip is to collect analog data for the external input analog signal according to the preset collection method and sampling frequency, and convert the collected data into a digital signal with a certain bit width. The main function of the data processing and conversion module is to convert the collected digital signal into bit width and byte order, and encapsulate it into an AXIS bus timing that can be transmitted to the ARM end; the two parts coordinate and cooperate, the ADC sampling chip is connected to the data processing and conversion module through the accompanying clock and valid data, and the extraction of valid data is completed according to the center of the data corresponding to the rising edge of the accompanying clock.

[0038] Furthermore, the ADC acquisition chip is implemented using AD9268. When data is collected, the data processing and conversion module on the FPGA side needs to provide a sampling clock to the ADC sampling chip; when the data processing and conversion module on the FPGA side controls the ADC sampling chip, the SPI bus is used to complete the initialization, sampling mode and other configuration functions of the ADC sampling chip. The ADC sampling chip collects analog signals according to the sampling clock provided by the data processing and conversion module on the FPGA side, and outputs the sampling clock and sampling data to the data processing and conversion module on the FPGA side. The data processing and conversion module on the FPGA side extracts the sampling data according to the rising edge of the sampling clock provided by the ADC sampling chip, caches the extracted data in the FIFO, and finally encapsulates the data in the FIFO in AXIS timing, inputs it into the AXIDMA core, and moves the data to the ARM side in DMA mode.

[0039] The digital-to-analog conversion module includes two parts, one part is a DAC output chip, and the other part is a data processing and analysis module; the main function of the DAC output chip is to convert the digital signal generated internally into an analog signal output according to a set method; the main function of the data processing and analysis module is to parse the output data sent by the system main control module on the ARM side from the AXIS timing, and convert it into a data format that can be recognized by the DAC output chip, and at the same time give the DAC output chip a clock so that it can convert the digital signal to the analog signal according to a preset method.

[0040] Furthermore, the DAC output chip uses AD9708, which outputs a pair of differential current signals. Through high-performance and high-bandwidth operational amplifier circuits, the functions of differential to single-ended and amplitude adjustment are realized, so that the performance of the entire circuit is maximized, and the final output analog voltage range is -5V to +5V. The ARM end transmits data to the FPGA end through DMA. After the FPGA end obtains valid data from the AXIDMA core, it converts the digital signal into an analog signal and outputs it through the DAC output chip.

[0041] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A Zynq-based analog-to-digital and digital-to-analog conversion controller, characterized in that: The analog-to-digital and digital-to-analog conversion controller uses a Zynq-7000 processor, including an FPGA processor part as the FPGA end and a dual-core ARM cortex-A9 processor part as the ARM end, wherein the ARM end is responsible for the process control, data processing and Ethernet communication of the entire controller; the FPGA end is responsible for ADC acquisition, DAC output and data format conversion; Data is exchanged between the two ends via the AXI high-speed bus, and the interface type is HP interface.

2. The controller according to claim 1, characterized in that The analog-to-digital and digital-to-analog conversion controller includes a system main control module, an Ethernet communication module, an analog-to-digital conversion module and a digital-to-analog conversion module; the system main control module and the Ethernet communication module are located at the ARM end; the analog-to-digital conversion module and the digital-to-analog conversion module are located at the FPGA end; The system main control module is used to control the overall operation process of the controller and some peripheral circuit interface drivers; The Ethernet communication module is located at the ARM end of the zynq device, and Ethernet 0 is enabled by configuring and opening the MIO16 to MIO27 interfaces in Block Design; the network protocol stack LWIP is enabled in the BSP to provide a network transmission API interface function that can be called; The analog-to-digital conversion module includes two parts, one part is an ADC sampling chip, and the other part is a data processing and conversion module; the ADC sampling chip is used to collect analog data of external input analog signals according to a preset collection method and sampling frequency, and convert the collected data into a digital signal with a bit width; the data processing and conversion module is used to convert the collected digital signal into a bit width and byte order, and encapsulate it into an AXIS bus timing that can be transmitted to the ARM end; the two parts coordinate with each other, the ADC sampling chip is connected to the data processing and conversion module through the accompanying clock and valid data, and the extraction of valid data is completed according to the rising edge of the accompanying clock corresponding to the center of the data; The digital-to-analog conversion module includes two parts, one part is a DAC output chip, and the other part is a data processing and analysis module; the DAC output chip is used to convert the digital signal generated internally into an analog signal output according to a set method; the data processing and analysis module is used to parse the data to be output sent by the system main control module on the ARM side from the AXIS timing, and convert it into a data format that can be recognized by the DAC output chip, and at the same time give the DAC output chip a clock so that it can convert the digital signal into the analog signal according to a preset method.

3. The controller according to claim 2, characterized in that The Ethernet transmission protocol between the Ethernet communication module and the outside is TCP transmission mode, and the transmission rate is 1000M.

4. The controller according to claim 2, characterized in that The network IP address of the Ethernet communication module is set to 192.168.43.20, the network mask is set to 255.255.255.0, and the external network settings should be in the same network segment as the Ethernet communication module; before receiving and sending data, the Ethernet communication module first creates a new TCP PCB for communication, and then binds the PCB to the local address.

5. The controller according to claim 2, characterized in that The ADC acquisition chip is implemented by AD9268. During data acquisition, the data processing and conversion module provides a sampling clock to the ADC sampling chip. When the data processing and conversion module controls the ADC sampling chip, the initialization and sampling mode configuration functions of the ADC sampling chip are completed through the SPI bus. The ADC sampling chip acquires analog signals according to the sampling clock provided by the data processing and conversion module, and outputs the sampling clock and sampling data to the data processing and conversion module. The data processing and conversion module extracts the sampling data according to the rising edge of the sampling clock provided by the ADC sampling chip, caches the extracted data in a FIFO, and finally encapsulates the data in the FIFO in an AXIS timing sequence and inputs it into an AXIDMA core, and moves the data to an ARM end in a DMA manner.

6. The controller according to claim 2, characterized in that The DAC output chip adopts AD9708, which outputs a pair of differential current signals. Through the operational amplifier circuit, the differential conversion to single-ended and amplitude adjustment functions are realized, and the final output analog voltage range is -5V~+5V; the ARM end transmits data to the FPGA end through DMA. After the FPGA end obtains valid data from the AXIDMA core, it converts the digital signal into an analog signal through the DAC output chip and outputs it.

7. A method for implementing an acquisition process of analog-to-digital conversion and a sending process of digital-to-analog conversion using the controller as claimed in any one of claims 2 to 6.

8. The method according to claim 7, characterized in that The acquisition process of analog-to-digital conversion and the sending process of digital-to-analog conversion are described as follows: (1) For the acquisition process of analog-to-digital conversion, the external analog signal is first input into the analog-to-digital conversion module. The ADC sampling chip in the analog-to-digital conversion module analyzes the analog signal to convert it into a digital signal. The obtained digital signal is then subjected to data format conversion and bit width processing to obtain valid data that can be transmitted by the AXIS protocol, which is then transmitted to the system main control module on the ARM side via the AXI bus. The system main control module extracts data from the DDR at the corresponding position, performs data processing and Ethernet packetization on the extracted data, and sends it to the Ethernet communication module and then sends it to the outside via Ethernet; (2) For the sending process of digital-to-analog conversion, the host computer of the controller transmits the data to be sent to the Ethernet communication module on the ARM side through Ethernet in a message of a certain format. When the system main control module detects that the Ethernet communication module has received the data, it extracts, verifies and processes the valid data from the buffer. After obtaining the valid data, the system main control module sends the valid data to the digital-to-analog conversion module on the FPGA side according to the AXIS protocol. The digital-to-analog conversion module performs bit width conversion on the valid data and sends the valid data to the DAC output chip in the digital-to-analog conversion module. The DAC output chip converts the digital signal into a corresponding analog signal and finally outputs the analog signal.

9. Application of the controller according to any one of claims 1 to 6 in the field of computer bus communication technology.

10. An application of the method according to claim 7 or 8 in the field of computer bus communication technology.

Citation Information

Cited By

  • ZYNQ-based multifunctional analog instrument test acquisition card and data processing method

    CN119988252A