Clock synchronization method and device of virtual machine, storage medium and electronic device
By configuring clock alignment duration in heterogeneous chips to synchronize the clock cycles of heterogeneous virtual machines, the problem of inconsistent virtual machine clock references is solved, deterministic timing synchronization and communication timing consistency are achieved, ensuring synchronization between virtual machines and real hardware, and improving the communication and simulation efficiency of the system.
Patent Information
- Application Number
- CN202512049233.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-31
- Publication Date
- 2026-01-30
- Estimated Expiration
- 2045-12-31
AI Technical Summary
In digital twin applications of automotive electronics and industrial control, inconsistent virtual machine clock references of heterogeneous system chips lead to timing logic misalignments, resulting in communication anomalies and the inability of the simulation environment to reproduce the deterministic timing of the real hardware.
By determining the clock cycle difference between the virtual machines to be communicated in the heterogeneous chip, the non-fixed instruction cycle clock source of the first virtual machine is obtained, the clock alignment duration is configured, and the first and second virtual machines are synchronized using the clock alignment duration. This includes intercepting clock setting requests and driving a physical high-precision timer to trigger an interrupt after the actual expiration time to ensure clock synchronization.
It achieves deterministic timing synchronization under a heterogeneous virtualization architecture, ensuring that the communication timing between the virtual MCU and the virtual SOC is consistent with the real hardware, avoiding timing errors introduced by the simulator, preventing interrupt storms and communication timeouts, and improving the system's communication efficiency and simulation efficiency.