Time Synchronization Method and System for Multicore System
First Claim
1. A time synchronization method for a multi-core system, comprising the following steps of:
- A, establishing at least one clock synchronization domain, and respectively allocating each core of the multi-core system to each clock synchronization domain;
B, selecting a core with a lowest load in each clock synchronization domain as a master clock synchronization device in the clock synchronization domain, and other cores as slave clock synchronization devices in the clock synchronization domain;
selecting the clock synchronization domain having the master clock synchronization device with a lowest load among various master clock synchronization devices as a master clock synchronization domain, while other clock synchronization domains as slave clock synchronization domains;
C, the master clock synchronization domain sending a synchronization deviation detection message to each slave clock synchronization domain, and calculating a time deviation value between each slave clock synchronization domain and the master clock synchronization domain;
D, when the time deviation value is greater than a permitted deviation value, the master clock synchronization domain calculating a time adjustment quantity of each slave clock synchronization domain and releasing the time adjustment value to each slave clock synchronization domain, and each slave clock synchronization domain making adjustment based on the time adjustment quantity thereof, thereby completing clock synchronization.
1 Assignment
0 Petitions
Accused Products
Abstract
A time synchronization method and system for a multi-core system are provided. The time synchronization method comprises: establishing at least one clock synchronization domain, and respectively allocating each core to each clock synchronization domain; selecting a core with a lowest load in each clock synchronization domain as a master clock synchronization source in the clock synchronization domain, and selecting the clock synchronization domain having the master clock synchronization source with a lowest load as a master clock synchronization domain, while other clock synchronization domains as slave clock synchronization domains; the master clock synchronization domain sending a synchronization deviation detection message to each slave clock synchronization domain, and calculating a time deviation value; when the time deviation value is greater than a permitted deviation value, the master clock synchronization domain calculating a time adjustment quantity and releasing to each slave clock synchronization domain, making adjustment based on its time adjustment quantity.
34 Citations
16 Claims
-
1. A time synchronization method for a multi-core system, comprising the following steps of:
-
A, establishing at least one clock synchronization domain, and respectively allocating each core of the multi-core system to each clock synchronization domain; B, selecting a core with a lowest load in each clock synchronization domain as a master clock synchronization device in the clock synchronization domain, and other cores as slave clock synchronization devices in the clock synchronization domain;
selecting the clock synchronization domain having the master clock synchronization device with a lowest load among various master clock synchronization devices as a master clock synchronization domain, while other clock synchronization domains as slave clock synchronization domains;C, the master clock synchronization domain sending a synchronization deviation detection message to each slave clock synchronization domain, and calculating a time deviation value between each slave clock synchronization domain and the master clock synchronization domain; D, when the time deviation value is greater than a permitted deviation value, the master clock synchronization domain calculating a time adjustment quantity of each slave clock synchronization domain and releasing the time adjustment value to each slave clock synchronization domain, and each slave clock synchronization domain making adjustment based on the time adjustment quantity thereof, thereby completing clock synchronization. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 11, 12, 13, 14, 15, 16)
-
-
9. A time synchronization system for a multi-core system, comprising at least one clock synchronization domain, wherein the time synchronization system is configured as follows:
-
each core in the multi-core system being allocated respectively to each clock synchronization domain, a core with a lowest load in each clock synchronization domain being selected as a master clock synchronization device in the clock synchronization domain, and other cores being selected as slave clock synchronization devices in the clock synchronization domain;
the clock synchronization domain having the master clock synchronization device with a lowest load among various master clock synchronization devices being selected as a master clock synchronization domain, while other clock synchronization domains being selected as slave clock synchronization domains;the master clock synchronization domain sending a synchronization deviation detection message to each slave clock synchronization domain, and calculating a time deviation value between each slave clock synchronization domain and the master clock synchronization domain, and when the time deviation value is greater than a permitted deviation value, the master clock synchronization domain calculating a time adjustment quantity of each slave clock synchronization domain and releasing the time adjustment value to each slave clock synchronization domain. - View Dependent Claims (10)
-
Specification