All-digital virtual simulation verification system for embedded equipment

By building a fully digital virtual simulation and verification system for embedded devices, the problems of low simulation accuracy, poor scalability and weak interactivity are solved, high-precision simulation, scalability and strong interactivity are achieved, and verification of different types of embedded devices is supported.

CN120687313APending Publication Date: 2025-09-23CHENGDU FEIHANG ZHIYUN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510810367.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-17
Publication Date
2025-09-23

AI Technical Summary

Technical Problem

The existing all-digital virtual simulation verification system has problems such as low simulation accuracy, poor scalability and weak interactivity when it comes to embedded devices.

Method used

A fully digital virtual simulation and verification system for embedded devices is provided, which includes a system component library, an autonomous configuration module, a debugging and virtual verification platform management module, a virtual verification platform core module, a result analysis module, and a virtual processor module. By setting an instruction set unit, a register unit, a memory management unit, a virtual peripheral module, a virtual memory module, and a simulation control module, high-precision simulation, scalability, and strong interactivity are achieved.

Benefits of technology

It improves simulation accuracy, enhances system scalability, and strengthens interactivity with embedded devices, supports verification requirements of different types of embedded devices, and provides detailed test reports and optimization suggestions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120687313A_ABST
    Figure CN120687313A_ABST
Patent Text Reader

Abstract

The invention provides an embedded device-oriented all-digital virtual simulation verification system, which belongs to the technical field of digital data processing and comprises a virtual processor, a peripheral, a memory, an input / output module, a simulation control module and a result analysis module. Modules such as a virtual processor can be customized according to different embedded device characteristics so as to support various devices. The virtual processor module comprises a unit simulation processor such as an instruction set; the virtual peripheral module is provided with a timer and other unit simulation peripherals; the virtual memory module is provided with RAM and ROM unit simulation memories; the virtual input and output module comprises unit analog interfaces such as keys; the simulation control module realizes system control and equipment interaction; the result analysis module analyzes the result and generates a report. According to the method, the problems of low simulation precision, poor expandability and low interactivity in the prior art are solved, the simulation precision is improved, the expandability and the interactivity are enhanced, and the method is of great significance to development and verification of embedded equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of digital data processing, and in particular relates to a full-digital virtual simulation verification system for embedded devices. Background Art

[0002] The widespread adoption of embedded systems has placed higher demands on the development and verification of embedded devices. Traditional embedded device verification methods typically rely on hardware-in-the-loop testing or actual hardware testing, which are subject to high costs, long development cycles, and poor repeatability. However, fully digital virtual simulation technology can perform comprehensive functional verification and performance testing of embedded devices without relying on actual hardware, offering advantages such as low cost, short development cycles, and excellent repeatability.

[0003] However, existing all-digital virtual simulation verification systems have the following problems when targeting embedded devices:

[0004] The simulation accuracy is not high, and it is difficult to accurately simulate the actual operating environment and behavior of embedded devices;

[0005] Poor scalability makes it difficult to meet the verification requirements of different types of embedded devices;

[0006] The interactivity is not strong, and it is difficult to achieve real-time interaction and debugging with embedded devices. Summary of the Invention

[0007] The purpose of the present invention is to provide a fully digital virtual simulation verification system for embedded devices, aiming to solve the problems of low simulation accuracy, poor scalability and weak interactivity in the prior art.

[0008] To achieve the above object, the present invention provides the following technical solutions:

[0009] A fully digital virtual simulation verification system for embedded devices, including a system component library, an autonomous configuration module, a debugging and virtual verification platform management module, a virtual verification platform core module, a result analysis module, and a virtual processor module;

[0010] The system component library includes a processor virtual component library and a device virtual component library;

[0011] The autonomous configuration module is used to call the components in the system component library and perform parameter configuration to form a virtual verification platform instance;

[0012] The debugging and virtual verification platform management module is connected to the autonomous configuration module and the virtual verification platform core module, and is used to debug and collaboratively manage the established virtual verification platform instance;

[0013] The virtual verification platform core module includes a soft bus structure and a logical communication unit. The soft bus structure allocates address space for components in the system component library, connects the unified simulation core interface, each processor virtual component, the device virtual component and the logical communication channel server. The logical communication unit includes a logical communication channel, a logical communication channel server and a logical communication channel client. The logical communication channel is used for communication between the logical communication channel server and the logical communication channel client.

[0014] The result analysis module is used to analyze the results of virtual simulation verification and generate a test report to provide a reference for the development and optimization of embedded devices. The result analysis module can perform in-depth analysis of the virtual simulation verification results based on deep learning algorithms, explore potential performance bottlenecks and optimization directions, and generate a customized test report containing detailed optimization suggestions;

[0015] The virtual processor module is provided with an instruction set unit, a register unit and a memory management unit. The instruction set unit is used to simulate the processor instruction set in the embedded device, accurately parse and execute various instructions, the register unit simulates the state of various registers of the embedded device, and realizes the read and write operations of the registers. The memory management unit is used to simulate the allocation, read and write operations of the memory to simulate the memory management function of the embedded device. The virtual processor module is also provided with an intelligent prefetch unit. The intelligent prefetch unit prefetches the instructions and data that may be needed in advance based on the analysis of the historical data of the embedded device operation and the dynamic prediction algorithm, thereby improving the operation efficiency of the virtual processor; the I2C unit in the virtual processor module simulates data transmission and interaction according to the I2C communication protocol, and the SPI unit realizes data transmission and interaction simulation according to the SPI communication protocol.

[0016] As a preferred solution of the present invention, the system also includes a serial port speed optimization module, which automatically optimizes the serial port's transceiver speed based on the real-time traffic and bit error rate of the serial port data transmission through an adaptive cache mechanism and a dynamic baud rate adjustment algorithm. The calculation formula is:

[0017]

[0018] Where B represents the optimized baud rate, S is the number of bits transmitted, t is the transmission time, and k is the optimization coefficient that is dynamically adjusted based on real-time traffic and bit error rate.

[0019] As a preferred solution of the present invention, the virtual memory module adopts a hierarchical cache management mechanism, combined with the memory access characteristics of embedded devices, divides memory data into hot data, cold data and intermediate data, and stores them in caches of different levels respectively. It also improves memory access speed and overall system performance through an intelligent cache replacement algorithm. The random access memory RAM unit set in the virtual memory module is used to simulate the RAM of the embedded device, and a read-only memory ROM unit is also provided to simulate the ROM of the embedded device and provide a read-only storage function.

[0020] As a preferred solution of the present invention, an intelligent interaction simulation unit is provided in the virtual input and output module. The unit simulates a more realistic interaction process between a user and an embedded device based on artificial intelligence image recognition and voice recognition technology, and includes a key unit, a display unit and a sensor unit. The key unit is used to simulate key input and generate a corresponding input signal according to the triggering method. The display unit is used to simulate the display effect of the display screen. The sensor unit is used to generate simulated sensor data according to the working principle of the sensor.

[0021] As a preferred solution of the present invention, an intelligent debugging auxiliary unit is provided in the simulation control module, which performs real-time analysis of data in the debugging process through machine learning algorithms and provides intelligent debugging suggestions to testers. The unit includes a start unit, a stop unit, a pause unit and a single-step execution unit. The start unit is used to start the virtual simulation verification system, the stop unit is used to control the stop of the virtual simulation verification system, the pause unit is used to pause the operation of the virtual simulation verification system, and the single-step execution unit is used to implement the single-step execution function of the virtual simulation verification system.

[0022] As a preferred solution of the present invention, a functional correctness analysis unit and a performance index analysis unit are set in the result analysis module. The functional correctness analysis unit judges whether the function of the embedded device is correct by comparing the output of the virtual simulation verification system with the expected result and combining the fuzzy logic algorithm. The performance index analysis unit is used to measure performance indicators such as execution time and memory usage during the virtual simulation verification process and generate a corresponding analysis report. The performance index analysis unit can perform comprehensive analysis on multiple groups of simulation data based on big data analysis technology to provide more accurate performance evaluation.

[0023] As a preferred solution of the present invention, the execution time calculation formula in the performance indicator analysis unit is:

[0024]

[0025] Where T represents the execution time, N is the number of instructions executed, f is the clock frequency of the virtual processor, and α is a correction coefficient that is dynamically adjusted based on the processor load and instruction complexity.

[0026] As a preferred solution of the present invention, the memory usage calculation formula in the performance indicator analysis unit is:

[0027]

[0028] Where M represents the memory usage, S used is the memory space used, S total is the total memory space, and β is the optimization factor that is dynamically adjusted according to the memory fragmentation rate and memory access pattern.

[0029] Compared with the prior art, the present invention has the following beneficial effects:

[0030] 1. In the present invention, a virtual processor module is used to simulate the processor in the embedded device, and an instruction set unit, a register unit and a memory management unit are set to accurately parse and execute various instructions, simulate the register status and memory management functions, and thus more accurately simulate the processor behavior; the virtual peripheral module sets a variety of units to simulate different peripherals, such as timers, serial ports, I2C and SPI units, simulates data transmission and interaction according to corresponding protocols, and improves the accuracy of peripheral simulation; the virtual memory module sets RAM and ROM units to simulate memory, allocates space and implements read and write operations, which conforms to actual memory characteristics; the virtual input and output module sets buttons, display screens and sensor units to simulate the actual operation of input and output interfaces, and improves the overall simulation accuracy.

[0031] 2. In the present invention, the virtual processor module can be customized according to different embedded processor architectures, the virtual peripheral module can be customized according to different embedded peripheral types, the virtual memory module can be customized according to different embedded memory types and capacities, and the virtual input and output module can be customized according to different embedded input and output device types, thereby meeting the verification requirements of various embedded devices and enhancing scalability.

[0032] 3. In the present invention, the start, stop, pause and single-step execution units are set through the simulation control module to interact with the embedded device to achieve real-time debugging and testing. The result analysis module analyzes the simulation results and generates a test report to provide a reference for the development and optimization of the embedded device, further strengthening the interaction with the embedded device development process and enhancing interactivity. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:

[0034] Figure 1 This is a system architecture block diagram of the virtual simulation verification system in the present invention;

[0035] Figure 2 This is a system architecture block diagram of the module in the present invention. DETAILED DESCRIPTION

[0036] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.

[0037] Example 1

[0038] See also Figure 1-Figure 2 , the present invention provides the following technical solutions:

[0039] A fully digital virtual simulation verification system for embedded devices, including a system component library, an autonomous configuration module, a debugging and virtual verification platform management module, a virtual verification platform core module, a result analysis module, and a virtual processor module;

[0040] The system component library includes a processor virtual component library and a device virtual component library;

[0041] The autonomous configuration module is used to call the components in the system component library and perform parameter configuration to form a virtual verification platform instance;

[0042] The debugging and virtual verification platform management module is connected to the autonomous configuration module and the virtual verification platform core module, and is used to debug and collaboratively manage the established virtual verification platform instance;

[0043] The virtual verification platform core module includes a soft bus structure and a logical communication unit. The soft bus structure allocates address space for components in the system component library, connects the unified simulation core interface, each processor virtual component, the device virtual component and the logical communication channel server. The logical communication unit includes a logical communication channel, a logical communication channel server and a logical communication channel client. The logical communication channel is used for communication between the logical communication channel server and the logical communication channel client.

[0044] The result analysis module is used to analyze the results of virtual simulation verification and generate a test report to provide a reference for the development and optimization of embedded devices. The result analysis module can perform in-depth analysis of the virtual simulation verification results based on deep learning algorithms, explore potential performance bottlenecks and optimization directions, and generate a customized test report containing detailed optimization suggestions;

[0045] The virtual processor module is provided with an instruction set unit, a register unit and a memory management unit. The instruction set unit is used to simulate the processor instruction set in the embedded device, accurately parse and execute various instructions, the register unit simulates the state of various registers of the embedded device, and realizes the read and write operations of the registers. The memory management unit is used to simulate the allocation, read and write operations of the memory to simulate the memory management function of the embedded device. The virtual processor module is also provided with an intelligent prefetch unit. The intelligent prefetch unit prefetches the instructions and data that may be needed in advance based on the analysis of the historical data of the embedded device operation and the dynamic prediction algorithm, thereby improving the operation efficiency of the virtual processor; the I2C unit in the virtual processor module simulates data transmission and interaction according to the I2C communication protocol, and the SPI unit realizes data transmission and interaction simulation according to the SPI communication protocol.

[0046] In a specific embodiment of the present invention, the virtual processor module simulates the processor in the embedded device, provides core computing and control functions for virtual simulation, and supports different embedded processor architectures. The virtual peripheral module simulates the peripherals in the embedded device to meet the verification requirements of different embedded peripheral types. The virtual memory module simulates the memory in the embedded device to support different embedded memory types and capacities. The virtual input and output module simulates the input and output interface of the embedded device to meet the verification requirements of different embedded input and output device types. The simulation control module controls the operation of the virtual simulation verification system to realize interaction with the embedded device, facilitating real-time debugging and testing. The result analysis module analyzes the results of the virtual simulation verification to provide a reference for the development and optimization of embedded devices.

[0047] For details, please refer to Figure 2 The virtual processor module is equipped with an instruction set unit, a register unit and a memory management unit. The instruction set unit is used to simulate the processor instruction set in the embedded device, accurately parse and execute various instructions, the register unit simulates the state of various registers of the embedded device, and realizes the read and write operations of the registers. The memory management unit is used to simulate the allocation, read and write operations of the memory to simulate the memory management function of the embedded device.

[0048] In this embodiment, the instruction set unit can accurately parse and execute various instructions, simulating the instruction execution process of the embedded device processor. It identifies and decomposes the input instructions according to the instruction set specification of the embedded processor, and performs corresponding operations according to established rules to ensure that the program in the virtual environment can run correctly, providing instruction-level basic support for the operation of the entire virtual system. The register unit simulates the state of various registers of the embedded device, realizes register read and write operations, and simulates the storage function of the actual register by allocating corresponding memory space to each register. During the instruction execution process, according to the requirements of the instruction, the register value is read from the corresponding memory area (read operation) or data is written to the corresponding memory area (write operation) to support the normal operation of the processor. The memory management unit is used to simulate memory allocation, read and write operations to simulate the memory management function of the embedded device. It determines the memory allocation method according to the memory architecture of the embedded device, such as simulating the segment division and allocation in segmented memory management. During the program execution process, it is responsible for managing the virtual memory space and correctly performing memory read and write operations according to the memory access requirements of the instruction. At the same time, it considers factors such as memory access rights and cache mechanisms to ensure the correct storage and reading of data.

[0049] For details, please refer to Figure 2 The virtual peripheral module is equipped with a timer unit, a serial port unit, an I2C unit and an SPI unit. The timer unit is used to simulate the timer function in the embedded device, the serial port unit is used to simulate the data transmission and reception process of the serial port, the I2C unit simulates data transmission and interaction according to the I2C communication protocol, and the SPI unit realizes data transmission and interaction simulation according to the SPI communication protocol.

[0050] In this embodiment, the timer unit simulates the timer functions in the embedded device, including counting and timer interrupts. It simulates the timer timing process in a virtual environment according to the working principle of the timer. When the set time value is reached, the timer interrupt is triggered, providing an accurate time reference and timer trigger event simulation for embedded applications that require timed operations. The serial port unit simulates the data transmission and reception process of the serial port, including baud rate setting and data format. According to the serial port communication protocol, the data transmission and reception operation simulation is implemented in the virtual environment. By setting the baud rate and data format, the correct serial communication simulation between the virtual serial port and external devices or other virtual modules is ensured. The I2C unit simulates data transmission and interaction according to the I2C communication protocol. In the virtual environment, the master-slave device communication process on the I2C bus is simulated, including start signal, stop signal, address transmission, data transmission, etc., providing a virtual communication environment for embedded devices with I2C interfaces and verifying their I2C functions. The SPI unit simulates data transmission and interaction according to the SPI communication protocol. In the virtual environment, the master-slave device communication of the SPI interface is simulated, including clock signal and data input and output operations, providing accurate virtual communication conditions for embedded devices involving SPI communication to facilitate functional verification.

[0051] Specifically, the system also includes a serial port speed optimization module, which automatically optimizes the serial port's transceiver speed based on the real-time traffic and bit error rate of serial port data transmission through an adaptive cache mechanism and a dynamic baud rate adjustment algorithm. The calculation formula is:

[0052]

[0053] Where B represents the optimized baud rate, S is the number of bits transmitted, t is the transmission time, and k is the optimization coefficient that is dynamically adjusted based on real-time traffic and bit error rate.

[0054] For details, please refer to Figure 2 The virtual memory module adopts a hierarchical cache management mechanism, combined with the memory access characteristics of embedded devices, to divide memory data into hot data, cold data and intermediate data, and store them in caches of different levels respectively. It also improves memory access speed and overall system performance through an intelligent cache replacement algorithm. The random access memory RAM unit set in the virtual memory module is used to simulate the RAM of the embedded device, and a read-only memory ROM unit is also provided to simulate the ROM of the embedded device and provide a read-only storage function.

[0055] In this embodiment: the random access memory (RAM) unit simulates the RAM of the embedded device, allocates corresponding memory space and implements read and write operations, provides temporary storage for programs and data in the virtual system, supports data storage and fast access when the program is running, and its read and write operations conform to the random access characteristics of RAM; the read-only memory (ROM) unit simulates the ROM of the embedded device, provides a read-only storage function, and is used to store fixed program code or data. It simulates the characteristics of the actual ROM in the virtual environment to ensure the read-only nature and stability of the data.

[0056] For details, please refer to Figure 2 The virtual input and output module is equipped with an intelligent interaction simulation unit. This unit simulates a more realistic interaction process between users and embedded devices based on artificial intelligence image recognition and voice recognition technology. It includes a key unit, a display unit and a sensor unit. The key unit is used to simulate key input and generate corresponding input signals according to the triggering method. The display unit is used to simulate the display effect of the display screen. The sensor unit is used to generate simulated sensor data according to the working principle of the sensor.

[0057] In this embodiment: the key unit simulates key input, generates corresponding input signals according to the triggering method, simulates the pressing and releasing of actual keys in a virtual environment, and provides simulated key input for the embedded device, which is used to test the embedded device's response to key input; the display screen unit simulates the display effect of the display screen, including image display, text output, etc., and simulates the display function of the actual display screen in a virtual environment. According to the output data of the embedded device, corresponding image and text display effects are generated to verify the output display function of the embedded device; the sensor unit generates simulated sensor data according to the working principle of the sensor. In the virtual environment, it simulates the working process of different types of sensors, such as temperature sensors, light sensors, etc., generates corresponding simulated data, and provides simulated sensor input for the embedded device, which is used to test the embedded device's ability to process sensor data.

[0058] For details, please refer to Figure 2 The simulation control module is equipped with an intelligent debugging auxiliary unit, which uses a machine learning algorithm to perform real-time analysis on the data during the debugging process and provide intelligent debugging suggestions for the tester. The unit includes a start unit, a stop unit, a pause unit and a single-step execution unit. The start unit is used to start the virtual simulation verification system, the stop unit is used to control the stop of the virtual simulation verification system, the pause unit is used to pause the operation of the virtual simulation verification system, and the single-step execution unit is used to implement the single-step execution function of the virtual simulation verification system.

[0059] In this embodiment: the start unit is used to start the virtual simulation verification system and initialize the entire simulation environment. When the user starts the simulation, the unit is responsible for starting each sub-module such as the virtual processor module, virtual peripheral module, virtual memory module and virtual input and output module, so that the entire virtual system enters the running state; the stop unit controls the stop of the virtual simulation verification system and ends the simulation operation. When the user needs to stop the simulation, the unit will safely terminate the operation of each sub-module, release related resources, and ensure the stable exit of the system; the pause unit pauses the operation of the virtual simulation verification system so that the user can analyze and debug. During the simulation process, the user can use this unit to pause the system operation and view the current system status, such as the register values ​​and memory data of each module, so as to discover and solve problems; the single-step execution unit realizes the single-step execution function of the virtual simulation verification system. During the debugging process, the user can use this unit to make the system execute one instruction or one operation step at a time, which is convenient for the user to observe the operation process of the system step by step, understand the execution results of each step, and help discover and solve problems.

[0060] For details, please refer to Figure 2 The result analysis module is provided with a functional correctness analysis unit and a performance index analysis unit. The functional correctness analysis unit judges whether the function of the embedded device is correct by comparing the output of the virtual simulation verification system with the expected result and combining the fuzzy logic algorithm. The performance index analysis unit is used to measure the performance indicators such as execution time and memory usage in the virtual simulation verification process and generate a corresponding analysis report. The performance index analysis unit can perform a comprehensive analysis on multiple sets of simulation data based on big data analysis technology to provide a more accurate performance evaluation.

[0061] In this embodiment: the functional correctness analysis unit determines whether the function of the embedded device is correct by comparing the output of the virtual simulation verification system with the expected result. It analyzes the output data of the virtual system and compares it with the pre-set expected result. If the two are consistent, it means that the function of the embedded device meets the requirements; if they are inconsistent, it indicates that there may be a problem and further investigation is required; the performance indicator analysis unit measures the execution time, memory usage and other performance indicators during the virtual simulation verification process, and generates a corresponding analysis report, where the execution time and memory usage are calculated by formulas. Based on these performance indicators, a detailed analysis report is generated to provide data support for the performance optimization of the embedded device.

[0062] For details, please refer to Figure 1 , the execution time calculation formula in the performance indicator analysis unit is:

[0063]

[0064] Where T represents the execution time, N is the number of instructions executed, f is the clock frequency of the virtual processor, and α is a correction coefficient that is dynamically adjusted based on the processor load and instruction complexity.

[0065] The memory usage calculation formula in the performance indicator analysis unit is:

[0066]

[0067] Where M represents the memory usage, S used is the memory space used, S total is the total memory space, and β is the optimization factor that is dynamically adjusted according to the memory fragmentation rate and memory access pattern.

[0068] In this embodiment, a detailed analysis report is generated based on the measured performance indicators. This report provides important data support for performance optimization of embedded devices, helping developers understand the performance of the device in a virtual environment so that targeted optimizations can be made, such as optimizing algorithms and adjusting memory allocation.

[0069] Specifically, in the present invention, at the beginning of virtual simulation, the virtual processor module is customized according to the simulated embedded processor architecture; during operation, it receives and processes instructions in the virtual system, and realizes the simulation of the embedded device processor behavior through the collaborative work of the instruction set unit, register unit and memory management unit, and is customized according to the type of embedded device peripherals to be simulated; during the virtual simulation process, each unit in the virtual peripheral module simulates the working process of the peripheral according to the corresponding protocol, provides a virtual peripheral environment for the embedded device, and the virtual memory module is customized according to the memory type and capacity of the embedded device; when the virtual system is running, it provides temporary storage (RAM unit) and read-only storage (ROM unit) for programs and data, simulating the actual working conditions of the memory; the virtual input and output module is customized according to the input and output device type of the embedded device ; In virtual simulation, a simulated input and output interface environment is provided for the embedded device to receive or output corresponding data; during the virtual simulation process, the user uses the start, stop, pause and single-step execution functions of the simulation control module as needed to control the virtual simulation verification system, interact with the embedded device, and perform real-time debugging and testing; after the virtual simulation is completed, the result analysis module analyzes the simulation results; the functional correctness analysis unit first determines whether the function is correct, and the performance index analysis unit measures the relevant performance indicators and generates an analysis report to provide a reference for the development and optimization of the embedded device; the all-digital virtual simulation verification system for embedded devices provided by the present invention solves the problems existing in the existing technology, has the beneficial effects of improving simulation accuracy, enhancing scalability and strengthening interactivity, and is of great significance to the development and verification of embedded devices.

[0070] Finally, it should be noted that the above descriptions are merely preferred embodiments of the present invention and are not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art will be able to modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein. Any modifications, replacements, and improvements made within the spirit and principles of the present invention shall be included within the scope of protection of the present invention.

Claims

1. A fully digital virtual simulation verification system for embedded devices, characterized in that: It includes system component library, autonomous configuration module, debugging and virtual verification platform management module, virtual verification platform core module, result analysis module and virtual processor module; The system component library includes a processor virtual component library and a device virtual component library; The autonomous configuration module is used to call the components in the system component library and perform parameter configuration to form a virtual verification platform instance; The debugging and virtual verification platform management module is connected to the autonomous configuration module and the virtual verification platform core module, and is used to debug and collaboratively manage the established virtual verification platform instance; The virtual verification platform core module includes a soft bus structure and a logical communication unit. The soft bus structure allocates address space for components in the system component library, connects the unified simulation core interface, each processor virtual component, the device virtual component and the logical communication channel server. The logical communication unit includes a logical communication channel, a logical communication channel server and a logical communication channel client. The logical communication channel is used for communication between the logical communication channel server and the logical communication channel client. The result analysis module is used to analyze the results of virtual simulation verification and generate a test report to provide a reference for the development and optimization of embedded devices. The result analysis module can perform in-depth analysis of the virtual simulation verification results based on deep learning algorithms, explore potential performance bottlenecks and optimization directions, and generate a customized test report containing detailed optimization suggestions; The virtual processor module is provided with an instruction set unit, a register unit and a memory management unit. The instruction set unit is used to simulate the processor instruction set in the embedded device, accurately parse and execute various instructions, the register unit simulates the state of various registers of the embedded device, and realizes the read and write operations of the registers. The memory management unit is used to simulate the allocation, read and write operations of the memory to simulate the memory management function of the embedded device. The virtual processor module is also provided with an intelligent prefetch unit. The intelligent prefetch unit prefetches the instructions and data that may be needed in advance based on the analysis of the historical data of the embedded device operation and the dynamic prediction algorithm, thereby improving the operation efficiency of the virtual processor; the I2C unit in the virtual processor module simulates data transmission and interaction according to the I2C communication protocol, and the SPI unit realizes data transmission and interaction simulation according to the SPI communication protocol.

2. A fully digital virtual simulation verification system for embedded devices according to claim 1, characterized in that: The system also includes a serial port speed optimization module, which automatically optimizes the serial port's transceiver speed based on the real-time traffic and bit error rate of serial port data transmission through an adaptive cache mechanism and a dynamic baud rate adjustment algorithm. The calculation formula is: Where B represents the optimized baud rate, S is the number of bits transmitted, t is the transmission time, and k is the optimization coefficient that is dynamically adjusted based on real-time traffic and bit error rate.

3. The all-digital virtual simulation verification system for embedded devices according to claim 1, characterized in that: The virtual memory module adopts a hierarchical cache management mechanism, combined with the memory access characteristics of embedded devices, to divide memory data into hot data, cold data and intermediate data, and stores them in caches of different levels respectively. It also improves memory access speed and overall system performance through an intelligent cache replacement algorithm. The random access memory RAM unit set in the virtual memory module is used to simulate the RAM of the embedded device, and a read-only memory ROM unit is also provided to simulate the ROM of the embedded device and provide a read-only storage function.

4. The all-digital virtual simulation verification system for embedded devices according to claim 1, characterized in that: The virtual input and output module is equipped with an intelligent interaction simulation unit. This unit simulates a more realistic interaction process between users and embedded devices based on artificial intelligence image recognition and voice recognition technology. The unit includes a key unit, a display unit, and a sensor unit. The key unit is used to simulate key input and generate corresponding input signals according to the triggering method. The display unit is used to simulate the display effect of the display screen. The sensor unit is used to generate simulated sensor data according to the working principle of the sensor.

5. The all-digital virtual simulation verification system for embedded devices according to claim 1, characterized in that: The simulation control module is provided with an intelligent debugging auxiliary unit, which uses a machine learning algorithm to perform real-time analysis on the data during the debugging process and provide intelligent debugging suggestions to the tester. The unit includes a start unit, a stop unit, a pause unit and a single-step execution unit. The start unit is used to start the virtual simulation verification system, the stop unit is used to control the stop of the virtual simulation verification system, the pause unit is used to pause the operation of the virtual simulation verification system, and the single-step execution unit is used to implement the single-step execution function of the virtual simulation verification system.

6. The all-digital virtual simulation verification system for embedded devices according to claim 1, characterized in that: The result analysis module is provided with a functional correctness analysis unit and a performance index analysis unit. The functional correctness analysis unit determines whether the function of the embedded device is correct by comparing the output of the virtual simulation verification system with the expected result and combining the fuzzy logic algorithm. The performance index analysis unit is used to measure the performance indicators such as execution time and memory usage during the virtual simulation verification process and generate a corresponding analysis report. The performance index analysis unit can perform a comprehensive analysis of multiple sets of simulation data based on big data analysis technology to provide a more accurate performance evaluation.

7. A fully digital virtual simulation verification system for embedded devices according to claim 6, characterized in that: The execution time calculation formula in the performance indicator analysis unit is: Where T represents the execution time, N is the number of instructions executed, f is the clock frequency of the virtual processor, and α is a correction coefficient that is dynamically adjusted based on the processor load and instruction complexity.

8. The all-digital virtual simulation verification system for embedded devices according to claim 6, characterized in that: The memory usage calculation formula in the performance indicator analysis unit is: Where M represents the memory usage, S used is the memory space used, S total is the total memory space, and β is the optimization factor that is dynamically adjusted according to the memory fragmentation rate and memory access pattern.