Debugging method, device, electronic device and storage medium based on emulation device

By obtaining the output signal of the imitation device, determining its type and configuring the corresponding information, the problem that existing imitation devices cannot adapt to various types of ADCs is solved, and the flexibility and reusability of imitation devices are achieved.

CN118395930BActive Publication Date: 2025-03-11北京中科昊芯科技有限公司
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410542588.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-30
Publication Date
2025-03-11
Estimated Expiration
2044-04-30

AI Technical Summary

Technical Problem

Existing imitation devices are unable to adapt to various types of ADCs, resulting in the inability to effectively replace ADCs during system integration or testing.

Method used

Debugging is performed by obtaining the output signal of the imitation device to be debugged, determining its type, and determining the corresponding configuration information based on the type, including clock configuration, template configuration, cache configuration and output configuration.

Benefits of technology

The imitation device can adapt to different types of ADCs, improve the flexibility and reusability of imitation devices, and simplify the ADC configuration process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118395930B_ABST
    Figure CN118395930B_ABST
Patent Text Reader

Abstract

The embodiments of the present application provide a debugging method, apparatus, electronic device and storage medium based on an emulation device, the method comprising: obtaining an output signal of the emulation device to be debugged; determining the type of emulation device corresponding to the output signal according to the output signal; determining configuration information corresponding to the type of emulation device according to the type of emulation device, wherein the configuration information at least includes clock configuration information, template configuration information, cache configuration information and output configuration information; the emulation device to be debugged is debugged according to the configuration information. In the embodiments of the present application, the output signal of the emulation device to be debugged is obtained, and the type of emulation device corresponding to the output signal is determined, and then the corresponding configuration information is determined according to the type of emulation device, and the emulation device to be debugged is debugged according to the configuration information, thereby adapting to different types of emulation devices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a debugging method, apparatus, electronic device and storage medium based on emulation equipment. Background Art

[0002] ADC is the abbreviation of analog-to-digital converter, which is a circuit that converts analog signals into equivalent digital signals. ADC is used for acquisition and signal processing and is widely used in communication, automatic control, machine vision and other fields. Its important role is to convert analog signals into digital signals, process and transmit digital signals, so as to achieve accurate processing and transmission of the acquired signals. In the actual application process, if ADC is temporarily unavailable during system integration or testing, emulation equipment can be used to replace ADC. However, most emulation equipment can only be used for a certain type of ADC and cannot adapt to various types of ADC. How to make emulation equipment adapt to various types of ADC is an urgent problem to be solved. Summary of the invention

[0003] Some embodiments of the present application aim to provide a debugging method, apparatus, electronic device and storage medium based on an emulation device. Through the technical solutions of the embodiments of the present application, the output signal of the emulation device to be debugged is obtained; according to the output signal, the type of emulation device corresponding to the output signal is determined; according to the type of the emulation device, configuration information corresponding to the type of emulation device is determined, wherein the configuration information at least includes clock configuration information, template configuration information, cache configuration information and output configuration information; the emulation device to be debugged is debugged according to the configuration information. In the embodiments of the present application, the output signal of the emulation device to be debugged is obtained, and the type of emulation device corresponding to the output signal is determined, and then according to the type of the emulation device, the corresponding configuration information is determined, and the emulation device to be debugged is debugged according to the configuration information, so as to adapt to different types of emulation devices.

[0004] In a first aspect, some embodiments of the present application provide a debugging method based on emulation device, comprising:

[0005] Obtain the output signal of the emulation device to be debugged;

[0006] Determining, based on the output signal, the type of emulation device corresponding to the output signal;

[0007] According to the type of the emulated device, determine configuration information corresponding to the type of the emulated device, wherein the configuration information at least includes clock configuration information, template configuration information, cache configuration information and output configuration information;

[0008] The emulation device to be debugged is debugged according to the configuration information.

[0009] Some embodiments of the present application obtain the output signal of the emulation device to be debugged, determine the emulation device type corresponding to the output signal, and then determine the corresponding configuration information according to the emulation device type, and debug the emulation device to be debugged according to the configuration information, thereby adapting to different types of emulation devices.

[0010] Optionally, the debugging of the emulation device to be debugged according to the configuration information includes:

[0011] The clock configuration information is configured through an on-chip bus, wherein the clock configuration information at least includes a clock frequency division coefficient and a clock phase adjustment parameter;

[0012] Configuring the template configuration information, wherein the template configuration information at least includes a template output format and a number of template output channels;

[0013] According to the output frequency of the emulation device to be debugged, determining a buffer level corresponding to the output frequency, wherein the buffer level meets the requirement of crossing clock domains;

[0014] The output configuration information is configured, wherein the output configuration information at least includes the number of channels and output format of the output data.

[0015] In order to emulate different types of ADCs, some embodiments of the present application can change the effective configuration of the emulation data, and configure the emulation device to be debugged by combining the board-level configuration signal of the circuit board with the configuration information of the test terminal, which can increase the reusability of the ADC configuration.

[0016] Optionally, the method further comprises:

[0017] receiving a phase adjustment instruction;

[0018] According to the phase adjustment instruction, the emulation device to be debugged is controlled to perform phase adjustment, so that the emulation device to be debugged performs delay control on output data through a serial-to-parallel converter and performs phase adjustment on output clock data through a mode clock manager.

[0019] Some embodiments of the present application implement phase adjustment of output clock data by emulating the device's own serial-to-parallel converter, output delay control function, and dynamic phase adjustment function of its own mode clock manager.

[0020] Optionally, the method further comprises:

[0021] When the emulation device to be debugged is in the debugging mode, the validity of the emulation device to be debugged is functionally verified through a preset script.

[0022] In some embodiments of the present application, the emulation device to be debugged is provided with a debugging interface, which can directly allow the test terminal to initiate a bus transaction to the emulation device to be debugged through a TCL script when the emulation device to be debugged is in debugging mode, so as to verify the validity of the system function of the emulation device to be debugged, which can greatly improve the research and development progress and facilitate system iteration.

[0023] In a second aspect, some embodiments of the present application provide a debugging apparatus based on emulation equipment, including:

[0024] An acquisition module, used for acquiring an output signal of an emulation device to be debugged;

[0025] A first determining module, configured to determine, based on the output signal, a type of emulation device corresponding to the output signal;

[0026] A second determination module, configured to determine configuration information corresponding to the type of the emulation device according to the type of the emulation device, wherein the configuration information at least includes clock configuration information, template configuration information, cache configuration information and output configuration information;

[0027] The debugging module is used to debug the emulation device to be debugged according to the configuration information.

[0028] Some embodiments of the present application obtain the output signal of the emulation device to be debugged, determine the emulation device type corresponding to the output signal, and then determine the corresponding configuration information according to the emulation device type, and debug the emulation device to be debugged according to the configuration information, thereby adapting to different types of emulation devices.

[0029] Optionally, the debugging module is used to:

[0030] The clock configuration information is configured through an on-chip bus, wherein the clock configuration information at least includes a clock frequency division coefficient and a clock phase adjustment parameter;

[0031] Configuring the template configuration information, wherein the template configuration information at least includes a template output format and a number of template output channels;

[0032] According to the output frequency of the emulation device to be debugged, determining a buffer level corresponding to the output frequency, wherein the buffer level meets the requirement of crossing clock domains;

[0033] The output configuration information is configured, wherein the output configuration information at least includes the number of channels and output format of the output data.

[0034] In order to emulate different types of ADCs, some embodiments of the present application can change the effective configuration of the emulation data, and configure the emulation device to be debugged by combining the board-level configuration signal of the circuit board with the configuration information of the test terminal, which can increase the reusability of the ADC configuration.

[0035] Optionally, the debugging module is further used for:

[0036] receiving a phase adjustment instruction;

[0037] According to the phase adjustment instruction, the emulation device to be debugged is controlled to perform phase adjustment, so that the emulation device to be debugged performs delay control on output data through a serial-to-parallel converter and performs phase adjustment on output clock data through a mode clock manager.

[0038] Some embodiments of the present application implement phase adjustment of output clock data by emulating the device's own serial-to-parallel converter, output delay control function, and dynamic phase adjustment function of its own mode clock manager.

[0039] Optionally, the debugging module is further used for:

[0040] When the emulation device to be debugged is in the debugging mode, the validity of the emulation device to be debugged is functionally verified through a preset script.

[0041] In some embodiments of the present application, the emulation device to be debugged is provided with a debugging interface, which can directly allow the test terminal to initiate a bus transaction to the emulation device to be debugged through a TCL script when the emulation device to be debugged is in debugging mode, so as to verify the validity of the system function of the emulation device to be debugged, which can greatly improve the research and development progress and facilitate system iteration.

[0042] In a third aspect, some embodiments of the present application provide an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the debugging method based on the emulation device as described in any embodiment of the first aspect can be implemented.

[0043] In a fourth aspect, some embodiments of the present application provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, can implement the debugging method based on the emulation device as described in any embodiment of the first aspect.

[0044] In a fifth aspect, some embodiments of the present application provide a computer program product, comprising a computer program, wherein the computer program, when executed by a processor, can implement the debugging method based on the emulation device as described in any embodiment of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the technical solutions of some embodiments of the present application, the drawings required for use in some embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0046] Figure 1 A flowchart of a debugging method based on emulation equipment provided in an embodiment of the present application;

[0047] Figure 2 A schematic diagram of the structure of a debugging system based on emulation equipment provided in an embodiment of the present application;

[0048] Figure 3 A schematic diagram of the structure of another debugging system based on emulation equipment provided in an embodiment of the present application;

[0049] Figure 4 A schematic diagram of the structure of a debugging device based on emulation equipment provided in an embodiment of the present application;

[0050] Figure 5 A schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0051] The technical solutions in some embodiments of the present application will be described below in conjunction with the drawings in some embodiments of the present application.

[0052] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0053] ADC is the abbreviation of analog to digital converter, which is a circuit that converts analog signals into equivalent digital signals. ADC is used for acquisition and signal processing and is widely used in communication, automatic control, machine vision and other fields. Its important role is to convert analog signals into digital signals, and process and transmit digital signals, so as to achieve accurate processing and transmission of the acquired signals. In actual application, if the ADC is temporarily unavailable during system integration or testing, an emulation device may be used to replace the ADC. However, most emulation devices can only be used for a certain type of ADC and cannot adapt to various types of ADCs. In view of this, some embodiments of the present application provide a debugging method based on an emulation device, the method comprising obtaining an output signal of the emulation device to be debugged; determining the type of the emulation device corresponding to the output signal according to the output signal; determining configuration information corresponding to the type of the emulation device according to the type of the emulation device, wherein the configuration information at least includes clock configuration information, template configuration information, cache configuration information and output configuration information; the emulation device to be debugged is debugged according to the configuration information. In the embodiments of the present application, the output signal of the emulation device to be debugged is obtained, and the type of the emulation device corresponding to the output signal is determined, and then the corresponding configuration information is determined according to the type of the emulation device, and the emulation device to be debugged is debugged according to the configuration information, so as to adapt to different types of emulation devices.

[0054] like Figure 1 As shown, an embodiment of the present application provides a debugging method based on emulation device, the method comprising:

[0055] S101, obtaining an output signal of an emulation device to be debugged;

[0056] Specifically, the embodiment of the present application is applied to a debugging system based on an emulation device, which includes a test terminal and an emulation device to be debugged, wherein the test terminal and the emulation device to be debugged are connected via an Ethernet port or an optical fiber port.

[0057] In actual operation, the test terminal obtains the output signal of the emulation device to be debugged.

[0058] S102, determining the type of emulation device corresponding to the output signal according to the output signal;

[0059] Specifically, the test terminal searches for the type of the emulation device corresponding to the output signal of the device to be emulated in pre-stored configuration information according to the output signal of the device to be emulated.

[0060] S103, according to the type of the emulated device, determining configuration information corresponding to the type of the emulated device, wherein the configuration information at least includes clock configuration information, template configuration information, cache configuration information and output configuration information;

[0061] Specifically, the test terminal pre-stores configuration information, wherein the configuration information at least includes the output signal of the device to be emulated, the emulation device type corresponding to the output signal, and configuration information corresponding to the emulation device, and the configuration information at least includes clock configuration information, template configuration information, cache configuration information and output configuration information.

[0062] The test terminal searches for configuration information corresponding to the emulation device type according to the acquired emulation device type and pre-stored configuration information, for example, configuring the clock, configuring the output template, configuring the buffer information and the output information.

[0063] S104. The emulation device to be debugged is debugged according to the configuration information.

[0064] Specifically, the test terminal sends the configuration information to the device to be emulated through the Ethernet port or the optical fiber network port, and debugs the emulated device to be debugged, so that different types of emulated devices that meet the requirements can be obtained.

[0065] Some embodiments of the present application obtain the output signal of the emulation device to be debugged, determine the emulation device type corresponding to the output signal, and then determine the corresponding configuration information according to the emulation device type, and debug the emulation device to be debugged according to the configuration information, thereby adapting to different types of emulation devices.

[0066] Another embodiment of the present application further supplements the debugging method based on emulation device provided in the above embodiment.

[0067] Figure 2 A schematic diagram of the structure of the debugging system based on the emulation device provided in the embodiment of the present application, such as Figure 2 As shown, emulating ADC or emulating equipment is a method for simulating ADC acquisition. It can be implemented by digital / analog signal processors or digital circuits such as FPGA. It tests the processing or control system by simulating the actual working conditions of the ADC, thereby improving the performance and reliability of the system. The emulating ADC technology based on FPGA can realize the emulation of ADC by realizing the modular design of the signal and timing of the digital output end of the ADC, thereby providing an early, offline simulation environment for digital processing or control systems, facilitating the development and testing of projects, and effectively reducing project development time.

[0068] The ADC emulation device acts as an ADC analog-to-digital converter and provides the test system with target ADC data and related control signals. Its interface with the test system consists of four parts: Ethernet port, debug interface, ADC emulation data signal, and ADC configuration signal:

[0069] The output signal to be tested is the emulation data of the emulation device (ie, the emulation data of the ADC) and the emulation status signal (eg, 0 indicates successful emulation, and 1 indicates failed emulation).

[0070] The configuration signal is the configuration interface information encapsulated by the ADC itself. In order to emulate different types of ADCs, the effective configuration of the emulation data can be changed by combining the board-level configuration signal of the circuit board with the relevant software configuration written by Ethernet, which can increase the reusability of the system.

[0071] Debug interface: Through the chip development tool, read / write the real-time configuration status of each module in the emulation device to confirm the consistency of the configuration information and the emulation output. Because the emulation device is a hardware device based on FPGA, it has fewer debugging methods and poor debugging system visibility. Adding this debug interface can significantly improve the development progress of the emulation device.

[0072] Ethernet port: It is the communication interface between the test system host computer and the emulation device, used to configure and read back the key information of the system.

[0073] Figure 3 A schematic diagram of the structure of another debugging system based on emulation equipment provided in the embodiment of the present application is as follows: Figure 3 As shown, the emulation device includes an ARM hard core, a clock module, a debugging module, a system bus, a data buffer module, a template generation module, a configuration module and a data output module, wherein:

[0074] 1) The ARM hard core communicates with the test system through a custom Ethernet protocol frame, and in the emulation system, the Ethernet frame is parsed and information is exchanged with other modules in the emulation system through bus operations. The interactive information includes the configuration and readback of the current Pattern template format of the emulation system, the configuration and readback of the current clock rate and status of the emulation system, and the modification and readback of the current configuration status of the configuration module.

[0075] 2) The clock module provides clock excitation for each part of the entire emulation device through the onboard crystal oscillator passing through the MMCM. The clock module has a bus configuration interface and can perform frequency configuration and phase adjustment through DRP. This module allows the debugging module to operate it.

[0076] 3) Debug module: Through the development environment of the FPGA chip in the computer test system, the emulation system bus transaction operation is initiated in the form of Tcl script. This module can directly operate each module in the emulation system and verify the correctness of the emulation system function.

[0077] 4) Pattern template generation module: receives the configuration of the configuration module and generates a pattern data format corresponding to the configuration.

[0078] 5) Data buffer module: generates corresponding data stream according to the pattern format and synchronizes the data to the data output module clock domain. This module allows the debugging module to operate on it.

[0079] 6) Data output module: The function of the data output module is to output data and related status and control signals in the same specification as the emulation ADC converter format according to the data stream provided by the buffer module and the configuration of the current emulation device. This module allows the debugging module to operate it.

[0080] 7) Configuration module: Receives configuration commands and readback requests from the ARM hard core through the bus, and allows the debug module to operate on it. The configuration operations are as follows:

[0081] Configuration emulation system's clock generation module: configuration is performed through the on-chip bus, and the configuration items are the clock division factor and the clock phase adjustment parameters.

[0082] Configure the pattern generation module in the emulation system: the configuration information is the format of the pattern output data and the number of channels for the output data.

[0083] Configure the emulation system data buffer module: According to the different output frequencies of the emulation device, the data buffer level can be adjusted to meet the requirements of data crossing clock domains.

[0084] Configure the emulation system data output module: The configuration information is the number of channels for output data, and whether the output data format is single-ended data output or differential data output.

[0085] Optionally, the emulation device to be debugged is debugged according to the configuration information, including:

[0086] Configuring clock configuration information through an on-chip bus, wherein the clock configuration information at least includes a clock frequency division coefficient and a clock phase adjustment parameter;

[0087] Configure the template configuration information, wherein the template configuration information at least includes the template output format and the number of template output channels;

[0088] According to the output frequency of the emulation device to be debugged, determine the buffer level corresponding to the output frequency, and the buffer level meets the requirements of crossing clock domains;

[0089] The output configuration information is configured, wherein the output configuration information at least includes the number of channels and output format of the output data.

[0090] The emulation device in the embodiment of the present application realizes the function of configuring the emulation device through the host computer in the test system based on the heterogeneous characteristics of its own Zynq type FPGA, through the ARM built-in Ethernet controller and customized Ethernet frame, so that the emulation device can be reused for a variety of different types of ADC converters.

[0091] In order to emulate different types of ADCs, some embodiments of the present application can change the effective configuration of the emulation data, and configure the emulation device to be debugged by combining the board-level configuration signal of the circuit board with the configuration information of the test terminal, which can increase the reusability of the ADC configuration.

[0092] Optionally, the method further comprises:

[0093] receiving a phase adjustment instruction;

[0094] According to the phase adjustment instruction, the emulation device to be debugged is controlled to perform phase adjustment, so that the emulation device to be debugged performs delay control on output data through the serial-to-parallel converter and performs phase adjustment on output clock data through the mode clock manager.

[0095] The emulation device in the embodiment of the present application uses differential output, and realizes phase adjustment of the output clock data through the output delay control function of the FPGA's own Serdes (serial-to-parallel converter) and the dynamic phase adjustment function of its own MMCM (mode clock manager), and can dynamically configure and adjust the clock phase.

[0096] Some embodiments of the present application implement phase adjustment of output clock data by emulating the device's own serial-to-parallel converter, output delay control function, and dynamic phase adjustment function of its own mode clock manager.

[0097] Optionally, the method further comprises:

[0098] When the emulation device to be debugged is in the debugging mode, the validity of the emulation device to be debugged is functionally verified through a preset script.

[0099] The emulation device in the embodiment of the present application reserves a debugging interface, which can directly allow the test system to initiate bus transactions to the emulation device through Tcl scripts to verify the effectiveness of the emulation device system functions when the emulation device is in debugging mode, which can greatly improve the R&D progress and facilitate system iteration.

[0100] In some embodiments of the present application, the emulation device to be debugged is provided with a debugging interface, which can directly allow the test terminal to initiate a bus transaction to the emulation device to be debugged through a TCL script when the emulation device to be debugged is in debugging mode, so as to verify the validity of the system function of the emulation device to be debugged, which can greatly improve the research and development progress and facilitate system iteration.

[0101] It should be noted that each implementable method in this embodiment may be implemented separately, or may be implemented in combination in any manner without conflict, and this application is not limited thereto.

[0102] Another embodiment of the present application provides a debugging apparatus based on an emulation device, which is used to execute the debugging method based on an emulation device provided in the above embodiment.

[0103] like Figure 4 , which is a schematic diagram of the structure of a debugging device based on emulation equipment provided in an embodiment of the present application. The debugging device based on emulation equipment includes an acquisition module 401, a first determination module 402, a second determination module 403 and a debugging module 404, wherein:

[0104] The acquisition module 401 is used to acquire the output signal of the emulation device to be debugged;

[0105] The first determination module 402 is used to determine the type of emulation device corresponding to the output signal according to the output signal;

[0106] The second determination module 403 is used to determine the configuration information corresponding to the type of the emulation device according to the type of the emulation device, wherein the configuration information at least includes clock configuration information, template configuration information, cache configuration information and output configuration information;

[0107] The debugging module 404 is used to debug the emulation device to be debugged according to the configuration information.

[0108] Regarding the device in this embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0109] Some embodiments of the present application obtain the output signal of the emulation device to be debugged, determine the emulation device type corresponding to the output signal, and then determine the corresponding configuration information according to the emulation device type, and debug the emulation device to be debugged according to the configuration information, thereby adapting to different types of emulation devices.

[0110] Another embodiment of the present application further supplements the debugging device based on emulation equipment provided in the above embodiment.

[0111] Optionally, the debug module is used to:

[0112] Configuring clock configuration information through an on-chip bus, wherein the clock configuration information at least includes a clock frequency division coefficient and a clock phase adjustment parameter;

[0113] Configure the template configuration information, wherein the template configuration information at least includes the template output format and the number of template output channels;

[0114] According to the output frequency of the emulation device to be debugged, determine the buffer level corresponding to the output frequency, and the buffer level meets the requirements of crossing clock domains;

[0115] The output configuration information is configured, wherein the output configuration information at least includes the number of channels and output format of the output data.

[0116] In order to emulate different types of ADCs, some embodiments of the present application can change the effective configuration of the emulation data, and configure the emulation device to be debugged by combining the board-level configuration signal of the circuit board with the configuration information of the test terminal, which can increase the reusability of the ADC configuration.

[0117] Optionally, the debug module is also used to:

[0118] receiving a phase adjustment instruction;

[0119] According to the phase adjustment instruction, the emulation device to be debugged is controlled to perform phase adjustment, so that the emulation device to be debugged performs delay control on output data through the serial-to-parallel converter and performs phase adjustment on output clock data through the mode clock manager.

[0120] Some embodiments of the present application implement phase adjustment of output clock data by emulating the device's own serial-to-parallel converter, output delay control function, and dynamic phase adjustment function of its own mode clock manager.

[0121] Optionally, the debug module is also used to:

[0122] When the emulation device to be debugged is in the debugging mode, the validity of the emulation device to be debugged is functionally verified through a preset script.

[0123] In some embodiments of the present application, the emulation device to be debugged is provided with a debugging interface, which can directly allow the test terminal to initiate a bus transaction to the emulation device to be debugged through a TCL script when the emulation device to be debugged is in debugging mode, so as to verify the validity of the system function of the emulation device to be debugged, which can greatly improve the research and development progress and facilitate system iteration.

[0124] Regarding the device in this embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0125] It should be noted that each implementable method in this embodiment may be implemented separately, or may be implemented in combination in any combination without conflict, and this application is not limited thereto.

[0126] The embodiment of the present application further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the operation of the method corresponding to any embodiment of the debugging method based on emulation device provided in the above embodiment can be implemented.

[0127] An embodiment of the present application further provides a computer program product, wherein the computer program product includes a computer program, wherein when the computer program is executed by a processor, the operation of the method corresponding to any embodiment of the debugging method based on the emulation device provided in the above embodiment can be implemented.

[0128] like Figure 5 As shown, some embodiments of the present application provide an electronic device 500, which includes: a memory 510, a processor 520, and a computer program stored in the memory 510 and executable on the processor 520, wherein the processor 520 can implement a method of any embodiment of the debugging method based on emulation device as described above when reading the program from the memory 510 through a bus 530 and executing the program.

[0129] Processor 520 can process digital signals and can include various computing structures, such as complex instruction set computer structure, reduced instruction set computer structure, or a structure that implements a combination of multiple instruction sets. In some examples, processor 520 can be a microprocessor.

[0130] The memory 510 may be used to store instructions executed by the processor 520 or data related to the execution of instructions. These instructions and / or data may include codes for implementing some or all functions of one or more modules described in the embodiments of the present application. The processor 520 of the disclosed embodiment may be used to execute instructions in the memory 510 to implement the method shown above. The memory 510 includes a dynamic random access memory, a static random access memory, a flash memory, an optical memory, or other memory known to those skilled in the art.

[0131] The above are only embodiments of the present application and are not intended to limit the scope of protection of the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application. It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.

[0132] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0133] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

Claims

1. A debugging method based on emulation equipment, characterized in that: The method comprises: Obtain the output signal of the ADC emulation device to be debugged; Determining, according to the output signal, the type of the ADC emulation device corresponding to the output signal; According to the type of the ADC emulation device, determine configuration information corresponding to the type of the ADC emulation device, wherein the configuration information at least includes clock configuration information, template configuration information, cache configuration information and output configuration information; Debugging the ADC emulation device to be debugged according to the configuration information; The debugging of the ADC emulation device to be debugged according to the configuration information includes: The clock configuration information is configured through an on-chip bus, wherein the clock configuration information at least includes a clock frequency division coefficient and a clock phase adjustment parameter; Configuring the template configuration information, wherein the template configuration information at least includes a template output format and a number of template output channels; According to the output frequency of the ADC emulation device to be debugged, determining a cache level corresponding to the output frequency, wherein the cache level meets the requirement of crossing clock domains; The output configuration information is configured, wherein the output configuration information at least includes the number of channels and output format of the output data.

2. The debugging method based on emulation device according to claim 1, characterized in that: The method further comprises: receiving a phase adjustment instruction; According to the phase adjustment instruction, the ADC emulation device to be debugged is controlled to perform phase adjustment, so that the ADC emulation device to be debugged performs delay control on output data through a serial-to-parallel converter and performs phase adjustment on output clock data through a mode clock manager.

3. The debugging method based on emulation device according to claim 1, characterized in that: The method comprises: When the ADC emulation device to be debugged is in the debugging mode, the validity of the ADC emulation device to be debugged is functionally verified through a preset script.

4. A debugging device based on emulation equipment, characterized in that: The device comprises: An acquisition module, used for acquiring an output signal of an ADC emulation device to be debugged; A first determination module, configured to determine, according to the output signal, a type of an ADC emulation device corresponding to the output signal; A second determination module, configured to determine configuration information corresponding to the type of the ADC emulation device according to the type of the ADC emulation device, wherein the configuration information at least includes clock configuration information, template configuration information, cache configuration information and output configuration information; A debugging module, used for debugging the ADC emulation device to be debugged according to the configuration information; the debugging module is used for: The clock configuration information is configured through an on-chip bus, wherein the clock configuration information at least includes a clock frequency division coefficient and a clock phase adjustment parameter; Configuring the template configuration information, wherein the template configuration information at least includes a template output format and a number of template output channels; According to the output frequency of the ADC emulation device to be debugged, determining a cache level corresponding to the output frequency, wherein the cache level meets the requirement of crossing clock domains; The output configuration information is configured, wherein the output configuration information at least includes the number of channels and output format of the output data.

5. The debugging device based on emulation device according to claim 4, characterized in that: The debugging module is also used to: receiving a phase adjustment instruction; According to the phase adjustment instruction, the ADC emulation device to be debugged is controlled to perform phase adjustment, so that the ADC emulation device to be debugged performs delay control on output data through a serial-to-parallel converter and performs phase adjustment on output clock data through a mode clock manager.

6. The debugging device based on emulation device according to claim 4, characterized in that: The debugging module is also used to: When the ADC emulation device to be debugged is in the debugging mode, the validity of the ADC emulation device to be debugged is functionally verified through a preset script.

7. An electronic device, characterized in that: The invention comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor can implement the debugging method based on emulation device as claimed in any one of claims 1 to 3 when executing the program.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the program, when executed by a processor, can implement the debugging method based on emulation device as described in any one of claims 1 to 3.

Citation Information

Patent Citations

  • Sensor simulation method and device

    CN102004813A