Multi-format data source based on FPGA simulation

By designing multi-format data sources based on FPGA simulation in FPGA development, and using components such as trigger modules to generate hardware-side data sources, the problem of low verification and debugging efficiency in traditional development is solved, independent verification and multi-format support are achieved, and shortened development cycle.

CN118586336APending Publication Date: 2024-09-03成都市运泰利自动化设备有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410743761.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-11
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

The traditional FPGA development method lacks hardware conditions in the verification and debugging stages, resulting in low development efficiency and high error impact, making it impossible to independently verify the code framework.

Method used

A multi-format data source based on FPGA simulation is designed, including trigger module, trigger parameter setting module, logic inverter module, ATG logic control module, global clock and reset module, AXI Traffic Generator module and ZYNQ processor, for Generate hardware-side or MCU-side data sources, support multiple bus and interface types, realize triggering and stopping of data source signals, and meet FPGA debugging and verification needs.

Benefits of technology

It realizes the verification of design timing without the participation of other personnel, shortens the project development cycle, improves development efficiency, and supports multiple data bus types and interfaces, covering a variety of development scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118586336A
    Figure CN118586336A
Patent Text Reader

Abstract

The invention aims to provide the multi-format data source based on FPGA simulation, which can generate a hardware end or MCU end data source, so that the verification design time sequence is independently executed, and the development cycle of a project is shortened. The system comprises a trigger module, a trigger parameter setting module, a logic inverter module, an ATG logic control module, a global clock and reset module, an AXI Traflic Generator module, a signal time sequence capture module and a ZYNQ processor. The trigger module is used for controlling the start and stop of the AXI Traflic Generator module; the trigger parameter setting module is used for setting data source generation time; the logic inverter module is used for negating reset signals of the modules; the ATG logic control module generates a start-stop instruction according to the instruction of the trigger parameter setting module and sends the start-stop instruction to the AXI Traflic Generator module, and the AXI Traflic Generator module is used for configuring and generating a data source; the signal time sequence grabbing module is used for carrying out signal grabbing and time sequence analysis; and the ZYNQ processor is used for providing working constant and reset signals for the FPGA end to be debugged. The method is applied to the technical field of data source simulation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention is applied to the technical field of data source simulation, and particularly relates to a multi-format data source based on FPGA simulation. Background Art

[0002] When developing large-scale projects, the traditional FPGA development method requires high code architecture design capabilities and complex logic connections between module interfaces. At the same time, verification and debugging are required after development is completed, but usually there are no hardware conditions or the MCU program is not ready during verification and debugging. Therefore, there are situations in the development process where verification is not possible, resulting in the inability to verify and debug the code framework. It takes a long time to complete the development of other links, which seriously reduces the development efficiency. At the same time, errors in other links may also affect the results of the current code framework.

[0003] If a data source that can generate hardware or MCU data for timing verification can be provided, developers can verify the design timing without relying on other people, thus shortening the project development cycle. Summary of the invention

[0004] The technical problem to be solved by the present invention is to overcome the shortcomings of the prior art and provide a multi-format data source based on FPGA simulation that can generate a hardware-side or MCU-side data source, thereby achieving verification of the design timing without relying on other personnel and shortening the project development cycle.

[0005] The technical solution adopted by the present invention is: the present invention includes a trigger module, a trigger parameter setting module, a logic inverter module, an ATG logic control module, a global clock and reset module, an AXI Traffic Generator module, a signal timing capture module and a ZYNQ processor; the trigger module is used to control the start and stop of the AXI Traffic Generator module; the trigger parameter setting module is used to set the data source generation time; the logic inverter module is used to invert the reset signal of each module; the ATG logic control module generates a start and stop instruction to the AXI Traffic Generator module according to the instruction of the trigger parameter setting module, and the AXI Traffic Generator module is used for data source configuration and generation; the signal timing capture module is used to perform signal capture and timing analysis; the ZYNQ processor is used to provide a working start and reset signal to the FPGA end to be debugged.

[0006] It can be seen from the above scheme that the present invention cooperates with the trigger module, the trigger parameter setting module, the logic inverter and the ATG logic control module to realize the setting of the start and stop of the data source signal trigger, thereby driving the AXI Traffic Generator module to generate the data source, and supporting a variety of bus and interface types to meet the needs of FPGA debugging and verification of data sources in various formats, thereby achieving the need for other personnel to perform verification design timing and shortening the project development cycle.

[0007] A preferred solution is that the AXI Traffic Generator module includes a custom data output mode and an advanced data output mode, the custom data output mode includes AXI4 protocol communication output, AXI4-Stream protocol communication output and AXI4-Lite protocol communication output, and the advanced data output mode includes video data output, PCle data output, Ethernet data output, USB data output and pure data output.

[0008] A preferred solution is that the custom data output mode includes the following parameters: mode setting, AXI channel setting, burst transfer number setting, CH-1 base address setting, high address setting, maximum command repetition number, maximum operating clock, address COE file reading and data COE file reading.

[0009] A preferred solution is that the amount of data transmitted when transmitting the COE file is one quarter of the value set for the number of burst transmissions.

[0010] A preferred solution is that in the custom data output mode, the address COE file reads the value ffffffff to terminate the burst transmission.

[0011] A preferred solution is that the advanced data output mode includes the following parameter settings: address width, AXI main width, AXI base address, AXI high address, burst length and channel selection. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 is a system block diagram of the present invention; Figure 2 It is a data transmission timing diagram of the present invention in AXI4-Lite mode; Figure 3 It is a data transmission timing diagram of the present invention when generating a video data source; Figure 4 It is a data transmission timing diagram when the present invention generates an Ethernet data source. DETAILED DESCRIPTION

[0013] like Figure 1 As shown, in this embodiment, the present invention includes a trigger module 1, a trigger parameter setting module 2, a logic inverter module 3, an ATG logic control module 4, a global clock and reset module 5, an AXI Traffic Generator module 6, a signal timing capture module 7 and a ZYNQ processor 8. The present invention is based on the Xilinx ZYNQ7 series FPGA platform to provide an IP for simulating and generating data sources in various formats. The user configures the working mode of the IP by configuring the UI interface to generate data streams in formats such as Video, PCie, Ethernet, USB, and Data. The bus for transmitting data can select AXI4, AXI-Stream or AXI4-Lite for data transmission, and the bus type for transmitting data can be freely configured and selected by the user. It covers a variety of commonly used data bus types and can be called by developers in multiple scenarios. In addition, it saves time in project verification and debugging. In the absence of hardware conditions or the MCU program is temporarily not ready, the logic end developer can also call the IP to simulate and generate the data source of the hardware end or the MCU end for timing verification. The logic developer can verify the design timing by himself without relying on other personnel, shortening the project development cycle.

[0014] In this embodiment, the trigger module 1 is used to control the start and stop of the AXI Traffic Generator module 6. After the FPGA program is downloaded to the board, it will automatically start running. The trigger module 1 is responsible for providing the user with the ability to control the start and stop of the module.

[0015] The trigger parameter setting module 2 is used to set the data source generation time. When the trigger module 1 is set to start generating the data source, the AXI Traffic Generator module 6 will automatically start generating the data stream according to the mode preset by the user. When the data generation time reaches the value set by the trigger parameter setting module 2, the AXI Traffic Generator module 6 will automatically stop generating the data stream.

[0016] The logic inverter module 3 performs operations such as AND, OR, NOT, and inversion of multi-bit data or single-bit data. In the present invention, since the reset signals between modules are inconsistent, the logic inverter module 3 is inverted to ensure that each module in the system can be correctly reset.

[0017] The ATG logic control module 4 generates a start instruction and a stop instruction to the AXI Traffic Generator module 6 according to the instruction of the trigger parameter setting module 2 .

[0018] The AXI Traffic Generator module 6 is used for data source configuration of bus type and data type and data generation. To control the start and stop of data generation by the AXI Traffic Generator module, only a single clock cycle high level pulse is sent to the core_ext_start and core_ext_stop pins reserved by the module to realize the control of IP.

[0019] After setting the signal to be debugged, the signal timing capture module is used to perform signal capture and timing analysis.

[0020] The ZYNQ processor 8 is used to provide working start and reset signals to the FPGA end to be debugged. Many FPGA ends of the 7 series do not have independent clock sources and can only be provided through the PS end or an external crystal oscillator.

[0021] The AXI Traffic Generator module 6 includes a custom data output mode and an advanced data output mode. The custom data output mode includes AXI4 protocol communication output, AXI4-Stream protocol communication output and AXI4-Lite protocol communication output. The advanced data output mode includes video data output, PCle data output, Ethernet data output, USB data output and pure data output.

[0022] The custom data output mode includes the following parameters: mode setting, AXI channel setting, burst transmission number setting, CH-1 basic address setting, high address setting, maximum command repetition number, maximum operating clock, address COE file reading and data COE file reading. When transmitting a COE file, the amount of data transmitted is one-fourth of the value set for the burst transmission number. In the custom data output mode, the burst transmission is terminated when the address COE file reads the value ffffffff.

[0023] like Figure 2 As shown, when the data transmission timing of AXI4-Lite is used in the custom data output mode, the AXITraffic Generator module 6 is configured, wherein the value of the configuration burst transmission number is set to 16, and the AXI4-Lite protocol initiates sixteen burst transmissions according to the address. When the COE file is transmitted, four burst transmissions are initiated according to the address in the COE file, and the data burst is stopped immediately after the four burst transmissions are completed and the address parameter ffffffff for stopping the burst is read.

[0024] The advanced data output mode includes the following parameter settings: address width, AXI master width, AXI base address, AXI high address, burst length and channel selection.

[0025] When the advanced data output mode generates the transmission timing of the video data, set the address and data width, video resolution, video frame rate and video format. For example, the address and data width are both 32 bits, the video resolution is 1920*480, the video frame rate is 60 frames, and the video format is RGB. The transmission timing of the video data source is as follows Figure 3 As shown, data transmission uses AXI4-Stream bus transmission, and the burst length is 64.

[0026] When the advanced data output mode generates the transmission timing of Ethernet data, set the burst length and mode. When the burst length is set to 64 and the Ethernet mode is Gigabit Ethernet, the transmission timing of the Ethernet data source is as follows Figure 4 As shown in the figure, data transmission uses AXI4-Stream bus transmission, and the burst length is 128.

[0027] The present invention has good compatibility and wide coverage. The user interface logic is simple. When calling the IP to use in the project, the user only needs to send an enable signal to the IP to start and stop working. The complex control logic is packaged inside the IP, and the user does not need to pay special attention. When using it, the user only needs to configure some simple parameters to start using it. It supports a wide variety of buses and interfaces, and the supported bus types include AXI4, AXI-Stream, and AXI4-Lite, covering most of the development scenarios based on the ZYNQ platform. The supported communication interface types are also rich, and users can choose the interface type they want to use through parameter configuration.

[0028] Although the embodiments of the present invention are described with practical solutions, they do not constitute limitations on the meaning of the present invention. For those skilled in the art, it is obvious to modify the implementation scheme and combine it with other solutions based on this description.

Claims

1. A multi-format data source based on FPGA simulation, characterized in that: It comprises a trigger module (1), a trigger parameter setting module (2), a logic inverter module (3), an ATG logic control module (4), a global clock and reset module (5), an AXITraffic Generator module (6), a signal timing capture module (7) and a ZYNQ processor (8); the trigger module (1) is used to control the start and stop of the AXI Traffic Generator module (6); the trigger parameter setting module (2) is used to set the data source generation time; the logic inverter module (3) is used to invert the reset signal of each module; the ATG logic control module (4) generates a start and stop instruction to the AXI Traffic Generator module (6) according to the instruction of the trigger parameter setting module (2); the AXI Traffic Generator module (6) is used for data source configuration and generation; the signal timing capture module is used to perform signal capture and timing analysis; the ZYNQ processor (8) is used to provide a working start and reset signal to the FPGA end to be debugged.

2. The multi-format data source based on FPGA simulation according to claim 1, characterized in that: The AXITraffic Generator module (6) includes a custom data output mode and an advanced data output mode, wherein the custom data output mode includes AXI4 protocol communication output, AXI4-Stream protocol communication output and AXI4-Lite protocol communication output, and the advanced data output mode includes video data output, PCle data output, Ethernet data output, USB data output and pure data output.

3. The multi-format data source based on FPGA simulation according to claim 2, characterized in that: The custom data output mode includes the following parameters: mode setting, AXI channel setting, burst transfer number setting, CH-1 base address setting, high address setting, maximum command repetition number, maximum operating clock, address COE file reading and data COE file reading.

4. The multi-format data source based on FPGA simulation according to claim 3, characterized in that: When transmitting a COE file, the amount of data transmitted is one quarter of the value set for the number of burst transmissions.

5. The multi-format data source based on FPGA simulation according to claim 3, characterized in that: In the custom data output mode, the address COE file reads the value ffffffff to terminate the burst transmission.

6. The multi-format data source based on FPGA simulation according to claim 2, characterized in that: The advanced data output mode includes the following parameter settings: address width, AXI master width, AXI base address, AXI high address, burst length and channel selection.