A low-speed CPU inter-core even-numbered last bit level compensation system and compensation method
By designing the last even number judger and the even number decomposition module between CPU cores, it judges and decomposes the last even number data into the sum of odd numbers, solves the problem of level drift of the last even number bit in transmission between CPU cores, and improves the transmission end bit The accuracy of judgment and the controllability of timing waves.
Patent Information
- Application Number
- CN202311567450.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-22
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2043-11-22
AI Technical Summary
In the design of large-scale integrated circuits, the transmission timing circuit between CPU cores is prone to even-numbered last bit level drift problems, resulting in the inability to determine the end of transmission bit, increasing the error of the CPU's internal timing components and the difficulty of timing wave control.
A low-speed inter-core even number last bit level compensation system is designed, including the last bit even number judger, the last bit flag register, the cache module and the even number decomposition module. It determines whether the last bit binary number is an even number and disassembles it. It is the sum of odd prime numbers and is stored in the last bit flag register to determine the end of transmission bit.
It effectively solves the problem of level drift of even-numbered last bits in transmission between CPU cores. By judging the end-of-transmission bits in the form of odd numbers, it reduces the error of the internal timing components of the CPU and improves the controllability of the timing wave.
Smart Images

Figure CN117743242B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of computer technology, and in particular to a system and method for compensating even-numbered last bit level between low-speed CPU cores. Background Art
[0002] In the field of computing science, due to possible defects in the core operator, scheduler, operating system, core algorithm or chip design, when designing large-scale integrated circuits, large-scale numerical control logic gate circuits, and low-speed dedicated embedded processors, the final timing of transmission between CPU cores may experience level drift due to the even-numbered last bit.
[0003] One way to deal with the "last bit level drift" problem is to extend the timing wave widely, and ensure the occurrence of the timing wave when the serial data is no longer transmitted. However, the above approach will greatly increase the errors of statistical components that rely on timing inside the CPU, such as the overhead and error of the PMU (Performance Monitoring Unit) performance recording component, and it will also become difficult to control the timing wave during the extension time. Summary of the invention
[0004] In order to solve the problem of final bit level drift when the final timing of CPU core-to-core transmission encounters an even number in the prior art, the present invention provides a low-speed CPU core-to-core even-number final bit level compensation system and compensation method.
[0005] In a first aspect, an embodiment of the present invention provides a low-speed CPU inter-core even last bit level compensation system, the system comprising: a last bit even number determiner, a last bit flag register, a cache module and an even number decomposition module;
[0006] The last bit even number judgement device includes a last bit judgement device and an even number judgement device; the last bit judgement device is used to judge whether the serial data line data acquired when the timing circuit is suspended is the last bit; the even number judgement device is used to judge whether the decimal number corresponding to the last bit predetermined number of binary numbers is an even number;
[0007] The even number decomposition module is used for, when determining that the decimal number is an even number, decomposing the even number into the sum of a predetermined number of odd and prime numbers according to an even number decomposition table; and converting the predetermined number of odd and prime numbers into a corresponding predetermined number of binary numbers;
[0008] The cache module is used to cache the binary number and the original binary number output by the even number decomposition module;
[0009] The last bit flag register is used to store the last bit judgment result output by the last bit judgement device, the even number judgment result output by the even number judgement device, and the number of decomposition bits of the even number decomposed by the even number decomposition module.
[0010] Optionally, the low-speed CPU inter-core even-numbered last bit level compensation system provided by the present invention further includes:
[0011] The CPU core serial bus hub is used to connect the last bit even number judgement device, the last bit flag register, the cache module, the even number decomposition module and the CPU core.
[0012] In a second aspect, an embodiment of the present invention provides a low-speed CPU inter-core even-numbered last-bit level compensation method for a low-speed CPU inter-core even-numbered last-bit level compensation system, comprising:
[0013] Obtain the last bit of the binary number transmitted by the CPU through the serial port when the timing circuit is suspended, and determine the last bit of the binary number through an even number determiner;
[0014] When it is determined that the binary number is the last digit, the even number determiner determines whether the decimal number corresponding to the binary number of a predetermined length before the last digit is an even number;
[0015] When it is determined that the decimal number is an even number, the even number is decomposed into a sum of a predetermined number of odd numbers by an even number decomposition module; and the predetermined number of odd prime numbers is converted into corresponding binary numbers of a predetermined length;
[0016] The original binary number and the converted binary number are stored in a cache module;
[0017] The last bit determination result output by the even number determiner, the even number determination result and the number of bits of the even number decomposed by the even number decomposition module are stored in the last bit flag register.
[0018] Optionally, according to the low-speed CPU inter-core even last bit level compensation method provided by the present invention, the last bit judgment result is represented by 0, 1, where 0 represents that the judged serial data is not a transmission end bit, and 1 represents that the judged serial data is a transmission end bit.
[0019] Optionally, according to the low-speed CPU inter-core even last digit level compensation method provided by the present invention, the even number judgment result is represented by 0, 1, where 0 represents that the judged decimal number is not an even number, and 1 represents that the judged decimal number is an even number.
[0020] Optionally, according to the low-speed CPU inter-core even last digit level compensation method provided by the present invention, the disassembled bit number is represented by 0, 1, wherein 01 represents the addition of two prime numbers, 10 represents the sum of a prime number and two products, 11 represents the addition of two non-prime odd numbers, and 00 represents that the last digit is 0.
[0021] In a third aspect, an embodiment of the present invention provides an electronic device, which includes a memory and a processor, wherein the processor and the memory communicate with each other through a bus; the memory stores program instructions that can be executed by the processor, and the processor calls the program instructions to execute the following method: obtain the last binary number transmitted by the CPU through the serial port when the timing circuit is terminated, and judge the last digit of the binary number through an even number judge; when judging that the binary number is the last digit, the even number judge judges whether the decimal number corresponding to the binary number of a predetermined length before the last digit is an even number; when judging that the decimal number is an even number, the even number decomposition module decomposes the even number into the sum of a predetermined number of odd numbers; and converts the predetermined number of odd prime numbers into the corresponding predetermined length binary number; the original binary number and the converted binary number are stored in the cache module; the last digit judgment result output by the even number judge, the even number judgment result and the number of decomposed digits of the even number decomposition module are stored in the last digit flag register.
[0022] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the following method when executed by a processor: obtaining the last binary number transmitted by the CPU through the serial port when the timing circuit is terminated, and judging the last digit of the binary number by an even number judgement device; when judging that the binary number is the last digit, the even number judgement device judges whether the decimal number corresponding to the binary number of a predetermined length before the last digit is an even number; when judging that the decimal number is an even number, the even number decomposition module decomposes the even number into the sum of a predetermined number of odd numbers; and converts the predetermined number of odd prime numbers into the corresponding binary numbers of a predetermined length; storing the original binary number and the converted binary number in a cache module; and storing the last digit judgment result output by the even number judgement device, the even number judgment result, and the number of decomposed digits of the even number decomposed by the even number decomposition module in the last digit flag register.
[0023] In a fifth aspect, an embodiment of the present invention provides a computer program product, comprising a computer program, which implements the following method when executed by a processor: obtaining the last binary number transmitted by the CPU through the serial port when the timing circuit is terminated, and judging the last digit of the binary number by an even number judgement device; when judging that the binary number is the last digit, the even number judgement device judges whether the decimal number corresponding to the binary number of a predetermined length before the last digit is an even number; when judging that the decimal number is an even number, the even number decomposition module is used to decompose the even number into the sum of a predetermined number of odd numbers; and the predetermined number of odd prime numbers are converted into corresponding binary numbers of a predetermined length; the original binary number and the converted binary number are stored in a cache module; the last digit judgment result output by the even number judgement device, the even number judgment result and the number of decomposed digits of the even number decomposed by the even number decomposition module are stored in the last digit flag register.
[0024] The embodiment of the present invention provides a low-speed CPU inter-core even-numbered last bit level compensation system and compensation method. By adding a last bit flag register in the CPU, when determining that the transmission end bit is an even number, the flag bit of the last bit flag register is used to expand the even number to the sum of a predetermined number of odd prime numbers. The decomposed transmission end bit exists in the form of an odd number, and it can be determined whether to end the transmission, thereby effectively solving the problem of even-numbered last bit level drift in transmission between CPU cores. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0026] Figure 1 A schematic diagram of the structure of a low-speed CPU inter-core even-numbered last bit level compensation system provided by an embodiment of the present invention;
[0027] Figure 2 A schematic diagram of the logical relationship between a CPU data line and a timing circuit provided by an embodiment of the present invention;
[0028] Figure 3 A schematic diagram of a CPU serial bus design method provided by an embodiment of the present invention;
[0029] Figure 4 A schematic diagram of the final level drift principle provided by an embodiment of the present invention;
[0030] Figure 5 A waveform diagram of a timing wave when the last digit is 190 provided in an embodiment of the present invention;
[0031] Figure 6 A waveform diagram of decomposing 190 into 179 and 11 timing waves provided by an embodiment of the present invention;
[0032] Figure 7 A schematic flow chart of a method for compensating even-numbered last bit level between low-speed CPU cores provided by an embodiment of the present invention;
[0033] Figure 8 This is a structural block diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0034] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are 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 creative work are within the scope of protection of the present invention.
[0035] The so-called last bit level drift refers to the situation that when the timing circuit enters the suspended state or the CPU core is switched, the last bit of the timing is mainly blocked by power failure or power switch disconnection. In general, the shutdown time of the timing circuit will be later than the last bit of data transmission of the CPU, but due to the defects of nanotechnology and high-speed circuit board brush quality process, some dedicated embedded processors often have the last bit of timing wave ahead of the serial port data line. When the last bit of the serial port data is an odd number, that is, the last bit ends with a high level, the serial port data can be inferred from the collected data bits, but when the last bit of the serial port data is an even number, that is, the last bit ends with a low level, it is impossible to determine whether the last even number is sent normally. This is the so-called "last bit level drift" problem in the field of large-scale integrated circuit design.
[0036] To solve the problem of terminal drift, if the method of widely extending the timing wave is adopted, the error of statistical components inside the CPU that rely on timing will be greatly increased, and it will also become difficult to control the timing wave during the extension time.
[0037] The invention provides a low-speed CPU inter-core even-numbered last bit level compensation system and compensation method.
[0038] Combine the following Figures 1 to 5 The present invention describes a low-speed CPU inter-core even-numbered last bit level compensation system and compensation method provided by an embodiment of the present invention.
[0039] Figure 1 A schematic diagram of the structure of a low-speed CPU inter-core even-numbered last bit level compensation system provided by an embodiment of the present invention. Figure 1 As shown, the system includes: a last bit even number determiner 11, a last bit flag register 12, a cache module 13 and an even number decomposition module 14.
[0040] The last digit even number judge 11 comprises a last digit judge 111 and an even number judge 112; the last digit judge 111 is used to judge whether the serial data line data obtained when the timing circuit is terminated is the last digit; the even number judge 112 is used to judge whether the decimal number corresponding to the 8 binary digits before the last digit is an even number; the even number decomposition module 14 is used to decompose the even number into the sum of a predetermined number of odd and prime numbers according to the even number decomposition table when judging that the decimal number is an even number; and convert the predetermined number of odd and prime numbers into the corresponding 8-bit binary number; the cache module 13 is used to cache the 8-bit binary number output by the even number decomposition module 14 and the original 8-bit binary number; the last digit flag register 12 is used to store the last digit judgment result output by the last digit judge 111, the even number judgment result output by the even number judge 112 and the number of decomposition bits of the even number decomposed by the even number decomposition module 14.
[0041] It can be understood that from the perspective of number theory, the even number at the end can be expressed as the sum of a prime number and the product of no more than two prime numbers through the Goldbach-Chen theorem. Since the decomposed end digit exists in the form of an odd number (prime number), and an odd number is terminated with a high level in binary, it can be determined whether the end digit has ended transmission by detecting whether the terminated level is a high level.
[0042] Specifically, Figure 2 Schematic diagram of the logical relationship between the CPU data line and the timing circuit provided by the embodiment of the present invention, such as Figure 2 As shown, when the last bit timing wave is ahead of the serial port data line, when the last bit of data is an even number, if the timing circuit ends early and a "last bit level drift" occurs, it is impossible to know whether there are more even numbers after the even bit, or 0 level; but if the even number is converted into a prime number and the sum of the product of no more than two prime numbers, the last bit will end with an odd number, so the end flag bit can be inferred.
[0043] Based on the above analysis, in the proposed low-speed CPU inter-core even last bit level compensation system, an even number decomposition module 14 is set. For example, taking the last bit as 8 as a binary number, when the last 8 bits are even, the last 8 bits are expressed as a sum of a prime number and a product of no more than two prime numbers according to Chen's theorem. The 8 bits are expanded to 24 bits, and a large even number is expressed by 2-3 odd numbers, which is used to solve the problem that the CPU serial port data cannot determine whether the last bit data ends due to "last bit level drift".
[0044] There are two common serial bus designs in multi-core CPUs. Figure 3 A schematic diagram of a CPU serial bus design method provided by an embodiment of the present invention, such as Figure 3As shown, commonly used serial bus design methods in multi-core CPUs include ordinary serial communication buses and serial-parallel interactive data buses.
[0045] Due to the defects in the quality process of high-speed circuit board brushes and the production quality defects of nano-scale switch gate circuits, Figure 3 Both types of serial data lines will occasionally have the problem of "last bit level drift".
[0046] Specifically, Figure 4 A schematic diagram of the last bit level shift principle provided by an embodiment of the present invention, such as Figure 3 As shown in the figure, when the last 8 bits of the serial port data are odd, the last bit ends with a high level, and the serial port data can be deduced from the collected data bits. For example, if the last 16 bits are collected in binary as: 1001 1101 and 00001111, converted to decimal, they are 157 and 15. By querying the even number decomposition table and the last bit flag register, it can be deduced that it is transformed from the even number 172.
[0047] However, when the last 8 bits of data in the serial port are an even number, that is, the last bit ends with a low level, it is impossible to determine whether the obtained last bit is the real transmission end bit, and it is impossible to determine whether the last even bit is sent normally. This will cause the problem of last bit level drift in large-scale integrated circuit design.
[0048] Specifically, in the low-speed CPU inter-core even last digit level compensation system proposed in the embodiment of the present invention, the last digit judger 111 is set to judge whether the acquired binary number is the last digit. The specific judgment process can be:
[0049] Determine whether the last flag bit in the last flag register is 1;
[0050] If the flag is 1, it means that the 8 bits of data transmitted subsequently are the last 8 bits.
[0051] That is to say, when the serial port transmits the last 8 bits of data, the last bit determiner 111 needs to be set to 1. If the serial port does not transmit the last 8 bits of data, the last bit determiner 111 does not take a value.
[0052] Furthermore, after determining that the serial port has transmitted the last 8 bits of data, the compensation system determines whether the decimal number corresponding to the predetermined number of consecutive binary numbers before the last bit is an even number through the even number determiner 112 provided.
[0053] For example, a binary number whose last digit is 8 bits is selected for analysis.
[0054] Specifically, since the last digit is 8 bits, its range is 0-255: the set of prime numbers is {2 3 5 7 11 1317 19 23 29 31 37 41 43 47 53 59 61 67 71 73 79 83 89 97 101 103 107 109 113 127 131 137 139 149 151 157 163 167 173 179 181 191 193 197 199 211 223 227 229 233 239 241 251}.
[0055] The set of even numbers is {2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 3840 4244 46 48 50 52 54 56 58 60 62 64 66 68 70 72 74 76 78 80 82 84 86 88 90 92 9496 98 100 102 104 106 108 110 112 114 116 118 120 122 124 126 128 130 132 134 136 138 140 142 144 146 148 210 214 216 218 220 222 224 226 228 230 232 234 236 238 240 242 244 246 248 250 252 254}.
[0056] When it is determined that the last digit is an even number, the even number is decomposed by an even number decomposition module to obtain the sum of a predetermined number of odd prime numbers. The even number decomposition module includes an even number decomposition table, as shown in Table 1. Table 1 is an even number decomposition table with a value range of 2 to 255 provided in an embodiment of the present invention.
[0057] Table 1
[0058] Decimal Decomposition results Decimal Decomposition results Decimal Decomposition results 2 1+1 18 13+5 182 163+19 4 1+3 20 17+3 180 173+7 6 3+3 22 11+11 178 173+5 8 5+3 … … 176 173+3 10 7+3 190 179+11 174 163+11 12 7+5 188 181+7 172 157+15 14 11+3 186 179+7 … … 16 13+3 184 179+5 254 251+3
[0059] Optionally, the even number judgment result is represented by 0, 1, wherein 0 represents that the judged decimal number is not an even number, and 1 represents that the judged decimal number is an even number.
[0060] Optionally, the decomposed digit number is represented by 0, 1, wherein 01 represents the addition of two prime numbers, 10 represents the sum of a prime number and two products, 11 represents the addition of two non-prime odd numbers, and 00 represents that the last digit is 0.
[0061] In an embodiment of the present invention, a last bit flag register 12 is set in the CPU, and a 4-bit flag is set in the last bit flag register, wherein the first bit indicates whether it is a transmission end bit, the second bit indicates whether it is an even number flag, and the extended bit number flag indicates how many prime numbers the even number is represented as according to Chen's theorem. For example, as shown in Table 2, Table 2 shows the case where the last bit is an even number and is decomposed into the addition of two non-prime odd numbers, wherein 01 represents the addition of two prime numbers, and 10 represents the sum of a prime number and two products. To solve the cases of even numbers 4 and 2, 11 is identified as the addition of two non-prime odd numbers, and 00 indicates that the last bit is 0.
[0062] Table 2
[0063] Is it the last position Is it an even number? Extension Bits 1 1 11
[0064] For example, taking the last 8 bits of a binary number as an example, when the last 8 bits are an even number, the even number can be represented by 2 odd numbers or odd prime numbers. When the last bit of the serial port is an even number, it can be represented as a combination of two odd numbers.
[0065] For example, as shown in Table 3, Table 3 shows the flag of the last digit flag register when the value is 190. When the last digit is 190, 190 can be expressed as: 179+11, and the original number 190 is expressed as 179 and 11, and at the same time, the last digit flag of the "last digit register" is marked as "1", whether it is an even number is marked as "1", and the number of extended bits is marked as "10".
[0066] Table 3
[0067] Is it the last position Is it an even number? Extension Bits 1 1 10
[0068] Figure 5 A waveform diagram of a timing wave when the last digit is 190 provided in an embodiment of the present invention; Figure 6 The waveform diagram of decomposing 190 into 179 and 11 timing waves provided by the embodiment of the present invention; Figure 5 , 6 As shown, when the last digit is an even number, the last digit level will drift. Since the even number is expressed as the sum of two odd numbers (prime numbers), and since the last binary digit of the odd number is represented by a high level, it can be marked as ended by a high level.
[0069] Optionally, the low-speed CPU core inter-core even last bit level compensation system provided in an embodiment of the present invention may also include an inter-CPU core serial bus hub for connecting the last bit even number determiner, the last bit flag register, the cache module, the even number decomposition module and the CPU core.
[0070] The embodiment of the present invention also provides a low-speed CPU inter-core even-numbered last-bit level compensation method for a low-speed CPU inter-core even-numbered last-bit level compensation system, such as Figure 7 As shown, Figure 7 A schematic flow chart of a method for compensating even-numbered last bit level between low-speed CPU cores provided by an embodiment of the present invention, the method comprising:
[0071] S710, obtaining the last bit of the binary number transmitted by the CPU through the serial port when the timing circuit is suspended, and determining the last bit of the binary number through an even number determiner;
[0072] S720, when it is determined that the binary number is the last digit, the even number determiner determines whether the decimal number corresponding to the binary number of a predetermined length before the last digit is an even number;
[0073] S730, when it is determined that the decimal number is an even number, decomposing the even number into a sum of a predetermined number of odd numbers through an even number decomposition module; and converting the predetermined number of odd prime numbers into corresponding binary numbers of a predetermined length;
[0074] S740, storing the original binary number and the converted binary number in a cache module;
[0075] S750, storing the last bit judgment result output by the even number judgement device, the even number judgment result and the number of bits of the even number decomposed by the even number decomposition module in the last bit flag register.
[0076] The low-speed CPU core-to-core even-number last-digit level compensation system and compensation method provided by the embodiment of the present invention solve the problem of "last-digit level drift" caused by the premature termination of the timing wave in the CPU core-to-core serial communication, which makes it impossible to determine whether the last-digit even-number has ended. Since the even number ends with a low level, it is difficult to determine the last digit. The embodiment of the present invention identifies the last-digit even number as the case where a predetermined number of odd prime numbers are added. According to the Goldbach-Chen theorem, the case where the even number is decomposed into the addition of two prime numbers has a strong correlation. The prime number cannot be decomposed into other prime numbers in the logic gate circuit, so its correlation can be determined. The correlation of the prime number determines the uniqueness and determinability of its data transmission when the "level drift" problem occurs.
[0077] Figure 8 This is a structural block diagram of an electronic device provided by an embodiment of the present invention. Figure 8As shown, the electronic device includes: a memory 802 and a processor 801, wherein the processor 801 and the memory 802 communicate with each other through a bus 803; the memory 802 stores program instructions that can be executed by the processor, and the processor 801 calls the program instructions to execute the following method, for example, including: obtaining the last binary number transmitted by the CPU through the serial port when the timing circuit is suspended, and judging the last digit of the binary number by an even number judgement device; when judging that the binary number is the last digit, the even number judgement device judges whether the decimal number corresponding to the binary number of a predetermined length before the last digit is an even number; when judging that the decimal number is an even number, the even number decomposition module decomposes the even number into the sum of a predetermined number of odd numbers; and converts the predetermined number of odd prime numbers into the corresponding predetermined length binary number; the original binary number and the converted binary number are stored in the cache module; the last digit judgment result output by the even number judgement device, the even number judgment result and the number of decomposed digits of the even number decomposed by the even number decomposition module are stored in the last digit flag register.
[0078] An embodiment of the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the methods provided by the above-mentioned method embodiments, for example, including: obtaining the last binary number transmitted by the CPU through the serial port when the timing circuit is suspended, and judging the last digit of the binary number by an even number judgement device; when judging that the binary number is the last digit, the even number judgement device judges whether the decimal number corresponding to the binary number of a predetermined length before the last digit is an even number; when judging that the decimal number is an even number, the even number decomposition module is used to decompose the even number into the sum of a predetermined number of odd numbers; and the predetermined number of odd prime numbers are converted into corresponding predetermined length binary numbers; the original binary number and the converted binary number are stored in a cache module; the last digit judgment result output by the even number judgement device, the even number judgment result and the number of decomposed digits of the even number decomposed by the even number decomposition module are stored in the last digit flag register.
[0079] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, wherein the computer instructions enable the computer to execute the methods provided by the above-mentioned method embodiments, for example, including: obtaining the last binary number transmitted by the CPU through the serial port when the timing circuit is suspended, and judging the last digit of the binary number by an even number judgement device; when judging that the binary number is the last digit, the even number judgement device judges whether the decimal number corresponding to the binary number of a predetermined length before the last digit is an even number; when judging that the decimal number is an even number, the even number decomposition module decomposes the even number into the sum of a predetermined number of odd numbers; and converts the predetermined number of odd prime numbers into the corresponding predetermined length binary numbers; the original binary number and the converted binary number are stored in the cache module; the last digit judgment result output by the even number judgement device, the even number judgment result and the number of decomposed digits of the even number decomposed by the even number decomposition module are stored in the last digit flag register.
[0080] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A low-speed CPU inter-core even-numbered last bit level compensation system, characterized in that: include: Last bit even number judgement device, last bit flag register, cache module and even number decomposition module; The last bit even number judgement device includes a last bit judgement device and an even number judgement device; the last bit judgement device is used to judge whether the serial data line data acquired when the timing circuit is suspended is the last bit; the even number judgement device is used to judge whether the decimal number corresponding to the last bit predetermined number of binary numbers is an even number; The even number decomposition module is used for, when determining that the decimal number is an even number, decomposing the even number into the sum of a predetermined number of odd and prime numbers according to an even number decomposition table; and converting the predetermined number of odd and prime numbers into a corresponding predetermined number of binary numbers; The cache module is used to cache the binary number and the original binary number output by the even number decomposition module; The last digit flag register is used to store the last digit judgment result output by the last digit judger, the even number judgment result output by the even number judger, and the number of decomposition bits of the even number decomposition module; 4 flag bits are set in the last digit flag register, wherein the first bit represents the last digit judgment result, the second bit represents the even number judgment result, and the extended number of bits flag represents how many prime numbers the even number is represented as.
2. The low-speed CPU inter-core even-numbered last bit level compensation system according to claim 1, characterized in that: Also includes: The CPU core serial bus hub is used to connect the last bit even number judgement device, the last bit flag register, the cache module, the even number decomposition module and the CPU core.
3. A method for compensating even-numbered last bit level between low-speed CPU cores using the even-numbered last bit level compensation system between low-speed CPU cores as claimed in any one of claims 1 to 2, characterized in that: include: Obtain the last bit of the binary number transmitted by the CPU through the serial port when the timing circuit is suspended, and determine the last bit of the binary number through an even number determiner; When it is determined that the binary number is the last digit, the even number determiner determines whether the decimal number corresponding to the binary number of a predetermined length before the last digit is an even number; When it is determined that the decimal number is an even number, the even number is decomposed into a sum of a predetermined number of odd numbers by an even number decomposition module; and the predetermined number of odd prime numbers is converted into corresponding binary numbers of a predetermined length; The original binary number and the converted binary number are stored in a cache module; The last bit determination result output by the even number determiner, the even number determination result and the number of bits of the even number decomposed by the even number decomposition module are stored in the last bit flag register.
4. The method for compensating even-numbered last bit level between low-speed CPU cores according to claim 3, characterized in that: The end bit judgment result is represented by 0, 1, wherein 0 represents that the judged serial data is not a transmission end bit, and 1 represents that the judged serial data is a transmission end bit.
5. The method for compensating even-numbered last bit level between low-speed CPU cores according to claim 3, characterized in that: The even number judgment result is represented by 0, 1, wherein 0 represents that the judged decimal number is not an even number, and 1 represents that the judged decimal number is an even number.
6. The method for compensating even-numbered last bit level between low-speed CPU cores according to claim 3, characterized in that: The decomposed digits are represented by 0 and 1, where 01 represents the addition of two prime numbers, 10 represents the sum of a prime number and two products, 11 represents the addition of two non-prime odd numbers, and 00 represents that the last digit is 0.
7. An electronic device, characterized in that: include: A memory and a processor, wherein the processor and the memory communicate with each other via a bus; The memory stores program instructions executable by the processor, and the processor calls the program instructions to execute the steps of the low-speed CPU inter-core even-numbered last bit level compensation method as described in any one of claims 3 to 6.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the low-speed CPU inter-core even-numbered last bit level compensation method as described in any one of claims 3 to 6 are implemented.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method for compensating the even last bit level between low-speed CPU cores as claimed in any one of claims 3 to 6 are implemented.
