A cache method and system for SOC and SOC

By adding a first buffer and a second buffer to the SOC, pre-caching and directly executing instructions after the jump solves the problem of long waiting time caused by clearing and re-reading jump instructions in the existing technology, and improves the system efficiency.

CN114138335BActive Publication Date: 2024-10-29HUNAN ADVANCECHIP ELECTRONICS TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111297128.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-03
Publication Date
2024-10-29
Estimated Expiration
2041-11-03

AI Technical Summary

Technical Problem

The existing technology requires clearing the cache and re-reading when executing a jump instruction, which results in a long waiting time and reduces the overall efficiency of the system.

Method used

Add a first buffer and a second buffer between the main memory and the decoding unit, use the second buffer to pre-cache the instructions to be executed after the jump, and directly execute the instructions in the buffer after the jump instruction is finally determined to be executed. instructions to avoid flushing and rereading.

Benefits of technology

It greatly reduces the waiting time when executing jump instructions and improves the overall efficiency of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114138335B_ABST
    Figure CN114138335B_ABST
Patent Text Reader

Abstract

A cache method, system and SOC for SOC, the cache method for SOC comprising the following steps: reading multiple instructions to be executed from the main memory and caching them in a first buffer; reading the instructions to be executed from the first buffer one by one to a decoding unit; if the instructions to be executed are confirmed to be in a pre-execution state, stopping reading the instructions to be executed from the main memory to the first buffer, and reading multiple instructions to be executed from the main memory and caching them to a second buffer; if the instructions to be executed are confirmed to be in a final execution state, stopping reading the instructions to be executed from the first buffer to the decoding unit, and starting to read the instructions to be executed from the second buffer to the decoding unit. The embodiment of the present invention adds a first buffer and a second buffer between the main memory and the decoding unit, so that the second buffer can be used to pre-cache the instructions to be executed after the jump, without waiting for the instructions to be written into the buffer, and effectively improving the overall efficiency of the system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of electronic information technology, and in particular relates to a cache method and system for SOC and SOC. Background Art

[0002] With the development of integrated circuits and industrial intelligence, the design scale of embedded SOC is getting larger and larger, and the performance requirements are getting higher and higher. Therefore, higher requirements are put forward for the comprehensive performance of instruction processing and the efficiency of instruction execution. As a representative of digital signal processing, DSP must have the ability of efficient instruction execution and instruction prefetching. The main memory of DSP (usually Flash) has the advantage of non-volatility of data storage, but it also has the disadvantage of low access speed, which causes the access speed of Flash to be seriously lower than the main frequency of the system, resulting in a serious reduction in the comprehensive performance of CPU instruction processing. To solve this problem, the existing technology is to add a level of cache after Flash to make up for the speed difference between the high-speed CPU and the low-speed Flash, which improves the comprehensive efficiency of system instruction execution to a certain extent. However, when executing a jump instruction, the technology takes the measure of clearing the cache and re-obtaining the instruction from the Flash address after the jump. This process has a long waiting time, which seriously reduces the overall efficiency of the system. The jump behavior of the instruction occupies a large proportion in the program, making the severity of this problem more prominent. Summary of the invention

[0003] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention proposes a cache method for SOC, which solves the problem that the cache needs to be cleared and re-read when executing a jump instruction, thereby resulting in low overall system efficiency. The present invention also proposes a cache system for SOC and a SOC.

[0004] A caching method for a SOC according to an embodiment of a first aspect of the present invention comprises the following steps:

[0005] Reading a plurality of instructions to be executed from the main memory and caching them in a first buffer;

[0006] Reading the to-be-executed instructions one by one from the first buffer to a decoding unit, and confirming the pre-jump state of the to-be-executed instructions through the decoding unit, wherein the pre-jump state includes a pre-execution state and a non-pre-execution state;

[0007] If the to-be-executed instruction is confirmed to be in the pre-execution state, stop reading the to-be-executed instruction from the main memory to the first buffer, and read a plurality of the to-be-executed instructions from the main memory and cache them to the second buffer;

[0008] Confirming, by the decoding unit, a final jump state of the instruction to be executed that is confirmed as the pre-execution state, wherein the final jump state includes a final execution state and a non-final execution state;

[0009] If the to-be-executed instruction is confirmed to be in the final execution state, the reading of the to-be-executed instruction from the first buffer to the decoding unit is stopped, and the reading of the to-be-executed instruction from the second buffer to the decoding unit is started.

[0010] The caching method for SOC according to the embodiment of the present invention has at least the following technical effects: the embodiment of the present invention adds a first buffer and a second buffer between the main memory and the decoding unit, so that when a jump instruction needs to be executed in the first buffer, the second buffer can be used to pre-cache the instructions to be executed after the jump, and after finally determining that the jump instruction needs to be executed, the instructions to be executed after the jump pre-cached in the second buffer can be directly executed. During the entire jump instruction execution process, there is no need to clear the instructions to be executed that have been cached in the buffer, and there is no need for the CPU to wait for the main memory to re-write the instructions to be executed after the jump into the buffer. Therefore, compared with the traditional caching method, the caching method for SOC according to the embodiment of the present invention greatly reduces the waiting time when executing jump instructions, and effectively improves the overall efficiency of the system.

[0011] According to some embodiments of the present invention, the decoding unit includes a pre-decoder, a first-stage decoder, and a second-stage decoder connected in sequence;

[0012] The step of reading the instructions to be executed one by one from the first buffer to a decoding unit, and confirming the pre-jump status of the instructions to be executed by the decoding unit, comprises the following steps:

[0013] Reading the to-be-executed instructions one by one from the first buffer to the pre-decoder, and confirming the instruction type of the read to-be-executed instructions through the pre-decoder, wherein the instruction type includes jump instructions and non-jump instructions;

[0014] If the instruction to be executed is confirmed to be a jump instruction, generating a first jump operation signal;

[0015] Reading the instructions to be executed one by one from the pre-decoder to the first-level decoder, and confirming the first jump requirement state of the instructions to be executed through the first-level decoder, wherein the first jump requirement state includes a first jump state and a first non-jump state;

[0016] If the first jump requirement state is confirmed to be the first jump state, generating a second jump operation signal;

[0017] If the instruction to be executed generates the first jump operation signal and the second jump operation signal accordingly, it is confirmed that the pre-jump state of the instruction to be executed is the pre-execution state, and a jump address is obtained from the instruction to be executed.

[0018] According to some embodiments of the present invention, stopping reading the to-be-executed instruction from the main memory to the first buffer, and reading a plurality of the to-be-executed instructions from the main memory and caching them in the second buffer, comprises the following steps:

[0019] Stop reading the to-be-executed instructions from the main memory and caching them in the first buffer;

[0020] A plurality of the to-be-executed instructions are read from the main memory according to the jump address and cached in the second buffer.

[0021] According to some embodiments of the present invention, the step of confirming, by the decoding unit, the final jump state of the to-be-executed instruction confirmed as the pre-execution state comprises the following steps:

[0022] Reading the instructions to be executed one by one from the first-level decoder to the second-level decoder, and confirming the second jump requirement state of the instructions to be executed, wherein the second jump requirement state includes a second jump state and a second non-jump state;

[0023] If the second jump requirement state is confirmed to be the second jump state, generating a third jump operation signal;

[0024] If the to-be-executed instruction generates the first jump operation signal, the second jump operation signal, and the third jump operation signal correspondingly, it is confirmed that the final jump state of the to-be-executed instruction is the final execution state.

[0025] According to some embodiments of the present invention, stopping reading the to-be-executed instruction from the first buffer to the decoding unit comprises the following steps:

[0026] Stop reading the to-be-executed instructions from the first buffer to the decoding unit, and record, in a first tag corresponding to the first buffer, a first remaining number of unexecuted instructions among the plurality of to-be-executed instructions cached in the first buffer.

[0027] According to some embodiments of the present invention, after starting to read the to-be-executed instruction from the second buffer to the decoding unit, the method further includes the following steps:

[0028] Confirming the pre-jump state of the instruction to be executed by a decoding unit;

[0029] If the instruction to be executed is confirmed to be in the pre-execution state, stop reading the instruction to be executed from the main memory and cache it in the second buffer, and obtain a jump return address from the instruction to be executed;

[0030] Confirming, by the decoding unit, the final jump state of the to-be-executed instruction confirmed as the pre-execution state;

[0031] If the to-be-executed instruction is confirmed as the final execution state, stop reading the to-be-executed instruction from the second buffer to the decoding unit, start reading the to-be-executed instruction from the position corresponding to the first remaining number of instructions among the multiple to-be-executed instructions cached in the first buffer to the decoding unit, and record the second remaining number of instructions that have not been executed among the multiple to-be-executed instructions cached in the second buffer in a second tag corresponding to the second buffer.

[0032] According to some embodiments of the present invention, the first execution reads a plurality of to-be-executed instructions from the main memory and caches them in a first buffer, comprising the following steps:

[0033] Initialize SOC and obtain the initial read address;

[0034] A plurality of to-be-executed instructions are read from the main memory according to the initial read address and cached in the first buffer.

[0035] A cache system for a SOC according to an embodiment of a second aspect of the present invention includes:

[0036] A main memory having an address input terminal and a data output terminal, and used for storing a plurality of instructions to be executed;

[0037] A first buffer having a first buffer input terminal and a first buffer output terminal, wherein the first buffer input terminal is connected to the data output terminal, and the first buffer is used to cache a plurality of the instructions to be executed;

[0038] A second buffer having a second buffer input terminal and a second buffer output terminal, wherein the second buffer input terminal is connected to a data output terminal of the main memory, and the second buffer is used to cache a plurality of the instructions to be executed;

[0039] a decoding unit having an instruction input terminal and an operation signal output terminal, wherein the instruction input terminal is connected to the first buffer output terminal and the second buffer output terminal respectively, and the decoding unit is used to receive the to-be-executed instruction transmitted by the first buffer or the second buffer, and confirm the pre-jump state of the to-be-executed instruction, and confirm the final jump state of the to-be-executed instruction, wherein the pre-jump state includes a pre-execution state and a non-pre-execution state, and the final jump state includes a final execution state and a non-final execution state;

[0040] A control component is connected to the address input terminal and the operation signal output terminal respectively, and is used to control the first buffer or the second buffer to read the to-be-executed instruction from the main memory after confirming the pre-jump state and / or the final jump state, and control the decoding unit to read the to-be-executed instruction from the first buffer or the second buffer.

[0041] The cache system for SOC according to the embodiment of the present invention has at least the following technical effects: the embodiment of the present invention adds a first buffer and a second buffer between the main memory and the decoding unit, so that when a jump instruction needs to be executed in the first buffer, the second buffer can be used to pre-cache the instructions to be executed after the jump, and after finally determining that the jump instruction needs to be executed, the instructions to be executed after the jump pre-cached in the second buffer can be directly executed. During the entire jump instruction execution process, there is no need to clear the instructions to be executed that have been cached in the buffer, and there is no need for the CPU to wait for the main memory to re-write the instructions to be executed after the jump into the buffer. Therefore, compared with the traditional caching method, the cache system for SOC according to the embodiment of the present invention greatly reduces the waiting time when executing jump instructions, and effectively improves the overall efficiency of the system.

[0042] According to some embodiments of the present invention, the decoding unit includes:

[0043] A predecoder, configured to read the instructions to be executed one by one from the first buffer or the second buffer, and confirm the instruction type of the read instructions to be executed, wherein the instruction type includes jump instructions and non-jump instructions;

[0044] A first-level decoder, configured to read the instructions to be executed one by one from the pre-decoder, and confirm a first jump requirement state of the instructions to be executed, wherein the first jump requirement state includes a first jump state and a first non-jump state;

[0045] The second-level decoder is used to read the instructions to be executed one by one from the first-level decoder, and confirm the second jump requirement state of the instructions to be executed, wherein the second jump requirement state includes a second jump state and a second non-jump state; the pre-decoder, the first-level decoder, and the second-level decoder are used together to adjust the working state of the control component.

[0046] According to some embodiments of the present invention, the control component comprises:

[0047] An address selection unit, used for determining an address for reading the instruction to be executed from the main memory;

[0048] A first tri-state gate, arranged between the data output terminal and the first buffer input terminal;

[0049] A second tri-state gate, arranged between the data output terminal and the second buffer input terminal;

[0050] A third three-state gate, arranged between the first buffer output terminal and the pre-decoder, for switching an on-off state under the control of the second-stage decoder;

[0051] a fourth three-state gate, arranged between the second buffer output terminal and the pre-decoder, and used for switching an on-off state under the control of the second-stage decoder;

[0052] An instruction branch prediction module is respectively connected to the pre-decoder, the first-level decoder, the second-level decoder, the first tri-state gate, the second tri-state gate and the address selection unit, and is used to determine the on and off of the first tri-state gate and the second tri-state gate according to the instruction type and the first jump requirement state, and to adjust the address of the instruction to be executed read from the main memory through the address selection unit.

[0053] The SOC according to the embodiment of the third aspect of the present invention includes: the cache system for SOC as described above.

[0054] The SOC according to the embodiment of the present invention has at least the following technical effects: by adopting the above-mentioned cache system for SOC, there is no need to clear the pending instructions cached in the buffer, nor is there any need for the CPU to wait for the main memory to rewrite the pending instructions after the jump into the buffer. Compared with the traditional caching method, the waiting time for executing the jump instruction is greatly reduced, and the overall efficiency of the system is effectively improved.

[0055] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] The above or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:

[0057] Figure 1 is a simplified flow chart of a caching method for SOC according to an embodiment of the present invention;

[0058] Figure 2 It is a system connection diagram of a cache system for SOC according to an embodiment of the present invention.

[0059] Reference numerals:

[0060] Main memory 101, first buffer 102, second buffer 103, pre-decoder 104, first level decoder 105, second level decoder 106, instruction branch prediction module 107, program counter 108, adder 109, first multiplexer 110, second multiplexer 111, first tri-state gate 112, second tri-state gate 113, third tri-state gate 114, fourth tri-state gate 115. DETAILED DESCRIPTION

[0061] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.

[0062] In the description of the present invention, it should be understood that descriptions involving orientations, such as up, down, front, back, left, right, etc., are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.

[0063] In the description of the present invention, "several" means one or more, "more" means more than two, "greater than", "less than", "exceed" etc. are understood as not including the number itself, and "above", "below", "within" etc. are understood as including the number itself. If there is a description of "first" or "second", it is only used for the purpose of distinguishing the technical features, and cannot be understood as indicating or implying the relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.

[0064] In the description of the present invention, unless otherwise clearly defined, terms such as setting, installing, connecting, etc. should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above terms in the present invention based on the specific content of the technical solution.

[0065] In order to better describe the cache method, system and SOC for SOC of the embodiment of the present invention, an embodiment of the present application provides an architecture platform for executing the cache method of SOC. Figure 2 As shown, the architecture platform includes a main memory 101, a first buffer 102, a second buffer 103, a pre-decoder 104, a first-level decoder 105, a second-level decoder 106, an instruction branch prediction module 107, a program counter 108, an adder 109, a first multiplexer 110, a second multiplexer 111, a first three-state gate 112, a second three-state gate 113, a third three-state gate 114, and a fourth three-state gate 115.

[0066] refer to Figure 2, the first buffer 102 and the second buffer 103 are connected in parallel between the main memory 101 and the pre-decoder 104, and are used to cache the instructions to be executed read from the main memory 101. The pre-decoder 104, the first-level decoder 105, and the second-level decoder 106 are connected in sequence; the pre-decoder 104 can be used to determine the instruction type, and the instruction type mainly includes memory access, arithmetic logic operation, jump, I / O access, floating point operation, and system control; the first-level decoder 105 is used for the first-level decoding of the instruction, and the second-level decoder 106 is used for the second-level decoding of the instruction. Here, the decoding work of the instruction to be executed is completed by hierarchical decoding. The first-level decoder 105 and the second-level decoder 106 are used to determine in sequence whether the instruction to be executed meets the jump condition.

[0067] The instruction branch prediction module 107, the program counter 108, the adder 109, the first multiplexer 110, the second multiplexer 111, the first three-state gate 112, the second three-state gate 113, the third three-state gate 114 and the fourth three-state gate 115 constitute the control component of the embodiment of the present invention. The program counter 108, the adder 109, the first multiplexer 110 and the second multiplexer 111 constitute the address selection unit of the embodiment of the present invention; the PC value in the program counter 108 is loaded into the program bus as the program address, so that the instruction to be executed can be read from the corresponding address in the main memory 101; the adder 109 can use the address to be adjusted output by the instruction branch prediction module 107 and the address in the address program counter 108 to obtain the address of the instruction to be executed read from the main memory 101 after the jump. The instruction branch prediction module 107 can receive micro-operation control signals (e.g., first jump operation signal, second jump operation signal, third jump operation signal) fed back by the pre-decoder 104, the first level decoder 105, and the second level decoder 106, so as to adjust the address of the next instruction to be executed read from the main memory 101 according to the instruction to be executed. The first tri-state gate 112, the second tri-state gate 113, the third tri-state gate 114, and the fourth tri-state gate 115 are used as on-off control elements to control the data transmission link of the main memory 101, the first buffer 102, the second buffer 103, and the pre-decoder 104.

[0068] The architecture platform described in the embodiment of the present application is intended to more clearly illustrate the technical solution of the embodiment of the present application, and does not constitute a limitation on the technical solution provided in the embodiment of the present application. Those skilled in the art will appreciate that with the evolution of SOC technology and the emergence of new application scenarios, the technical solution provided in the embodiment of the present application is also applicable to similar technical problems.

[0069] Reference below Figure 1 to Figure 2 A cache method for a SOC according to an embodiment of a first aspect of the present invention is described.

[0070] A caching method for a SOC according to an embodiment of the present invention comprises the following steps:

[0071] Read a plurality of instructions to be executed from the main memory 101 and cache them in the first buffer 102;

[0072] Read the to-be-executed instructions one by one from the first buffer 102 to the decoding unit, and confirm the pre-jump state of the to-be-executed instructions through the decoding unit, where the pre-jump state includes a pre-execution state and a non-pre-execution state;

[0073] If the to-be-executed instruction is confirmed to be in the pre-execution state, stop reading the to-be-executed instruction from the main memory 101 to the first buffer 102, and read a plurality of to-be-executed instructions from the main memory 101 and cache them to the second buffer 103;

[0074] Confirming, by a decoding unit, a final jump state of the instruction to be executed that is confirmed to be in a pre-execution state, wherein the final jump state includes a final execution state and a non-final execution state;

[0075] If the pending instruction is confirmed to be in the final execution state, the reading of the pending instruction from the first buffer 102 to the decoding unit is stopped, and the reading of the pending instruction from the second buffer 103 to the decoding unit is started.

[0076] refer to Figure 1 , Figure 2 After the system is initialized, the first buffer 102 reads multiple instructions to be executed from the main memory 101 for caching, and the specific number of caches is set according to the design requirements. The instructions to be executed read from the first buffer 102 will be input into the decoding unit one by one, and the decoding unit will determine whether the instructions to be executed need to jump. In order to ensure that the delay of the jump is small, after determining that the pre-jump state of the instructions to be executed is the pre-execution state, the transmission of the instructions to be executed to the first buffer 102 will be stopped first, and the jump address after the jump will be determined according to the instructions to be executed, and then the jump address will be used to start the main memory 101 to transmit the instructions to be executed after the jump to the second buffer 103. In this process, the decoding unit will continue to perform the second-level decoding on the instructions to be executed that are confirmed to be in the pre-jump state. If the instructions to be executed are confirmed to be in the final execution state, the first buffer 102 will stop transmitting the instructions to be executed to the decoding unit, and the second buffer 103 will transmit the cached instructions to be executed after the jump to the decoding unit. Therefore, in the process of executing a jump instruction, it is not necessary to clear the buffer first and then re-read the instructions to be executed after the jump as if there is only one buffer, thereby greatly reducing the waiting time in this process.

[0077] In addition, it should be noted that the first buffer 102 and the second buffer 103 are not primary or secondary. After switching to the second buffer 103 to deliver the instruction to be executed, if a jump instruction or a jump return instruction is encountered during the execution process, it can also be switched to the first buffer 102 to continue execution. In this way, switching back and forth between the first buffer 102 and the second buffer 103 is achieved without spending waiting time.

[0078] According to the caching method for SOC in the embodiment of the present invention, the embodiment of the present invention adds a first buffer 102 and a second buffer 103 between the main memory 101 and the decoding unit, so that when a jump instruction needs to be executed in the first buffer 102, the second buffer 103 can be used to pre-cache the instructions to be executed after the jump, and after finally determining that the jump instruction needs to be executed, the instructions to be executed after the jump pre-cached in the second buffer 103 can be directly executed. During the entire jump instruction execution process, there is no need to clear the instructions to be executed that have been cached in the buffer, and there is no need for the CPU to wait for the main memory 101 to re-write the instructions to be executed after the jump into the buffer. Therefore, compared with the traditional caching method, the caching method for SOC in the embodiment of the present invention greatly reduces the waiting time when executing the jump instruction, and effectively improves the overall efficiency of the system.

[0079] In some embodiments of the present invention, the decoding unit includes a pre-decoder 104, a first-stage decoder 105, and a second-stage decoder 106 connected in sequence;

[0080] Reading the to-be-executed instructions one by one from the first buffer 102 to the decoding unit, and confirming the pre-jump status of the to-be-executed instructions by the decoding unit, includes the following steps:

[0081] Read the to-be-executed instructions one by one from the first buffer 102 to the pre-decoder 104, and confirm the instruction type of the read to-be-executed instructions through the pre-decoder 104, the instruction type including jump instructions and non-jump instructions;

[0082] If the instruction to be executed is confirmed to be a jump instruction, a first jump operation signal is generated;

[0083] Read the instructions to be executed one by one from the pre-decoder 104 to the first-level decoder 105, and confirm the first jump requirement state of the instructions to be executed through the first-level decoder 105, where the first jump requirement state includes a first jump state and a first non-jump state;

[0084] If the first jump requirement state is confirmed to be the first jump state, a second jump operation signal is generated;

[0085] If the instruction to be executed generates the first jump operation signal and the second jump operation signal correspondingly, it is confirmed that the pre-jump state of the instruction to be executed is the pre-execution state, and the jump address is obtained from the instruction to be executed.

[0086] The embodiment of the present invention adopts the idea of ​​instruction classification processing, instruction pre-decoding and hierarchical decoding. When the instruction to be executed is input from the first buffer 102 or the second buffer 103 to the pre-decoder 104, the pre-decoder 104 will determine the instruction type of the instruction to be executed. If it is a jump instruction, it will output a first jump operation signal to the instruction branch prediction module 107. At the same time, the instruction to be executed will be sequentially input to the first-level decoder 105. The first-level decoder 105 will perform the first-level decoding on the instruction to be executed and once again determine whether a jump is required (i.e., the determination of the first jump state). If a jump is required, The second jump operation signal will be output to the instruction branch prediction module 107. After receiving the first jump operation signal and the second jump operation signal, the instruction branch prediction module 107 will preliminarily determine that a jump is required (i.e., the pre-jump state is determined to be the pre-execution state). At this time, the corresponding jump address will be directly obtained according to the decoding of the instruction to be executed, and the caching of the instructions to be executed from the main memory 101 to the first buffer 102 will be stopped, and the instructions to be executed will be cached from the main memory 101 to the second buffer 103 using the jump address, until the second-level decoder 106 finally confirms whether a jump is finally required.

[0087] In some embodiments of the present invention, stopping reading the to-be-executed instructions from the main memory 101 to the first buffer 102 and reading a plurality of to-be-executed instructions from the main memory 101 to cache in the second buffer 103 includes the following steps:

[0088] Stop reading the to-be-executed instructions from the main memory 101 and caching them in the first buffer 102;

[0089] A plurality of instructions to be executed are read from the main memory 101 and cached into the second buffer 103 according to the jump address.

[0090] When the reading of the to-be-executed instructions from the main memory 101 to the first buffer 102 is stopped, the jump address will be obtained. At this time, the jump address can be used to read multiple to-be-executed instructions from the main memory 101 to the second buffer 103, thereby ensuring the accuracy of the reading.

[0091] In some embodiments of the present invention, confirming the final jump state of the to-be-executed instruction confirmed as being in the pre-execution state by a decoding unit includes the following steps:

[0092] Read the instructions to be executed one by one from the first-level decoder 105 to the second-level decoder 106, and confirm the second jump requirement state of the instructions to be executed, where the second jump requirement state includes a second jump state and a second non-jump state;

[0093] If the second jump requirement state is confirmed to be the second jump state, a third jump operation signal is generated;

[0094] If the instruction to be executed generates a first jump operation signal, a second jump operation signal and a third jump operation signal correspondingly, it is confirmed that the final jump state of the instruction to be executed is the final execution state.

[0095] After the first-level decoder 105 completes decoding, it will be input to the second-level decoder 106. The second-level decoder 106 will make a final judgment on the instruction to be executed to determine whether to jump. If a jump is required (that is, the second jump requirement state is confirmed to be the second jump state), the second-level decoder 106 will output a third jump operation signal to directly control the third three-state gate 114 to close and the fourth three-state gate 115 to open, so that the pre-decoder 104 reads the instruction to be executed after the jump from the second buffer 103.

[0096] In some embodiments of the present invention, stopping reading the to-be-executed instructions from the first buffer 102 to the decoding unit includes the following steps:

[0097] Stop reading the to-be-executed instructions from the first buffer 102 to the decoding unit, and record the number of unexecuted first remaining instructions among the plurality of to-be-executed instructions cached in the first buffer 102 in a first tag corresponding to the first buffer 102 .

[0098] When the reading of the to-be-executed instructions from the first buffer 102 to the decoding unit is stopped, the to-be-executed instructions cached in the first buffer 102 are not cleared. At this time, the number of instructions that have not been executed in the first buffer 102, that is, the first remaining instruction number, will be recorded through the first tag Tag1 of the first buffer 102. In order to illustrate the significance of recording the first remaining instruction number, an example of executing an interrupt jump in the main program is used here. When executing the interrupt jump, the interrupt program after the jump will be switched from the first buffer 102 to the second buffer 103. However, when the interrupt program is executed, it is necessary to return to the main program. At this time, if the first remaining instruction number is not recorded, the to-be-executed instructions need to be retransmitted to the first buffer 102. If the first remaining instruction number is recorded, the main program can be directly continued from the position corresponding to the first remaining instruction number.

[0099] In some embodiments of the present invention, after starting to read the to-be-executed instructions from the second buffer 103 to the decoding unit, the following steps are also included:

[0100] Confirming the pre-jump status of the instruction to be executed through the decoding unit;

[0101] If the instruction to be executed is confirmed to be in the pre-execution state, stop reading the instruction to be executed from the main memory 101 and cache it in the second buffer 103, and obtain the jump return address from the instruction to be executed;

[0102] Confirming, by a decoding unit, a final jump state of the to-be-executed instruction confirmed as being in a pre-execution state;

[0103] If the pending instruction is confirmed to be in the final execution state, stop reading the pending instruction from the second buffer 103 to the decoding unit, start reading the pending instruction from the position corresponding to the first remaining instruction number in the multiple pending instructions cached in the first buffer 102 to the decoding unit, and record the second remaining instruction number that has not been executed in the multiple pending instructions cached in the second buffer 103 in the second tag corresponding to the second buffer 103.

[0104] Taking the main program execution interrupt as an example, after switching from the first buffer 102 to the second buffer 103, the decoding unit will still decode and execute normally after receiving the pending instruction transmitted by the second buffer 103, until the jump return instruction corresponding to the jump instruction is encountered again, and the pre-jump state determination operation and the final jump state determination operation are also performed on the jump return instruction. Once it is determined that it is necessary to return to the first buffer 102 to continue executing the main program, there is no need to re-pre-cache the pending instruction corresponding to the jump return address in the first buffer 102, and the first remaining instruction number can be directly used to determine the last execution position, and then continue to execute. In this process, the number of unexecuted instructions among the multiple pending instructions cached in the second buffer 103 will also be recorded in the second tag Tag2 corresponding to the second buffer 103, that is, the second remaining instruction number.

[0105] In some embodiments of the present invention, the first execution reads a plurality of to-be-executed instructions from the main memory 101 and caches them in the first buffer 102, comprising the following steps:

[0106] Initialize SOC and obtain the initial read address;

[0107] A plurality of instructions to be executed are read from the main memory 101 according to the initial read address and cached in the first buffer 102 .

[0108] Before the instruction to be executed is first read from the main memory 101 , the SOC will be initialized. During this process, the program counter 108 will be loaded with the initial value of the PC value, so that the first read from the main memory 101 can be completed using the initial value loaded by the program counter 108 .

[0109] In some embodiments of the present invention, in order to better illustrate the cache method for SOC in the embodiments of the present invention, specific address parameters are used as examples for illustration.

[0110] When the program is executed to address 4000h, instruction 1, instruction 2, instruction 3, and instruction 4 (taking 4 instructions as an example, not only 4 instructions can be read) are taken out to the first buffer 102, and the first buffer 102 will input the instructions into the pre-decoder 104, the first-level decoder 105, and the second-level decoder 106 in sequence; assuming that instruction 2 is a jump instruction, and if the jump address it carries is the previous jump 1000h, it is determined that the address of the instruction after the jump is read from the main memory 101 is determined to be 5000h =4000h+1000h; then, according to the instruction classification processing method, it belongs to the jump type instruction. After the pre-decoder 104 logic judgment, the instruction may generate a jump, so the first jump operation signal is output to the instruction branch prediction module 107. At the same time, the instruction decoding has passed through the pipeline to the first-level decoder 105 decoding stage. After the decoding of the first-level decoder 105, it is determined whether a jump is required. If the jump condition is met, the second jump operation signal is output to the instruction branch prediction module 107. With the output of the first jump operation signal and the second jump operation signal, the second three-state gate 113 will be opened, and the first three-state gate 112 will be closed. Therefore, the instruction to be executed at the address 5000h is read out and cached in the second buffer 103. At this time, the instruction decoding has passed through the pipeline to the decoding stage of the second-level decoder 106. When the second-level decoder 106 determines that the instruction meets the jump condition, it will output the third jump operation signal. The third jump operation signal can directly control the opening of the fourth three-state gate 115 and the closing of the third three-state gate 114. In this process, the first tag Tag1 in the first buffer 102 will record that the cached instructions have been executed to instruction 2 (i.e., the first remaining instruction number), and the remaining instructions have not been executed. The instructions cached in C2 starting at address 5000h will flow into the pre-decoder 104, the first-level decoder 105 and the second-level decoder 106 in sequence for continued execution. If a jump return instruction is encountered during the execution of the instruction after address 5000h, similar to the above working principle, it returns to instruction 3 in the first buffer 102 to continue execution. During the entire jump process, the program flows out from the first buffer 102 or the second buffer 103 uninterruptedly, and the CPU and the decoder do not need to be in a waiting state, thereby greatly improving the efficiency of the CPU in executing instructions.

[0111] In addition, it should be noted that the conditional jump instruction includes unconditional jump, single conditional jump and dual conditional jump instructions. If instruction 2 is a dual conditional jump instruction, the predecoder 104 and the first level decoder 105 complete the judgment of the first jump condition, and the second level decoder 106 completes the judgment of the second jump condition. If the first jump condition is judged to be a jump, the second three-state gate 113 will be opened and the first three-state gate 112 will be closed; if the second jump condition is judged to be no jump, the third three-state gate 114 and the fourth three-state gate 115 will not change, and the instruction branch prediction module 107 will also re-close the second three-state gate 113 and open the first three-state gate 112, so that the instructions in the main memory 101 continue to be cached in the first buffer 102; if the second jump condition is judged to be a jump, the third three-state gate 114 will be closed and the fourth three-state gate 115 will be opened. If instruction 2 is an unconditional jump instruction, the pre-decoder 104 recognizes that the instruction is an unconditional jump instruction in the jump instruction type, and the pre-decoder 104 directly determines that it is confirmed that a jump is required, so the second three-state gate 113 is opened and the first three-state gate 112 is closed; the first-level decoder 105 also recognizes that the instruction is an unconditional jump instruction, and the third three-state gate 114 is closed and the fourth three-state gate 115 is opened. At this time, the second-level decoder 106 does not need to make a judgment. If instruction 2 is a single-conditional jump instruction, the pre-decoder 104 and the first-level decoder 105 complete the judgment of the first jump condition, and the second-level decoder 106 does not need to make a judgment again.

[0112] According to the second aspect of the present invention, a cache system for SOC includes: a main memory 101, a first buffer 102, a second buffer 103, a decoding unit, and a control component.

[0113] The main memory 101 has an address input terminal and a data output terminal and is used to store a plurality of instructions to be executed;

[0114] A first buffer 102, which has a first buffer input terminal and a first buffer output terminal, the first buffer input terminal is connected to the data output terminal, and the first buffer 102 is used to cache a plurality of instructions to be executed;

[0115] A second buffer 103, which has a second buffer input terminal and a second buffer output terminal, the second buffer input terminal is connected to the data output terminal of the main memory 101, and the second buffer 103 is used to cache a plurality of instructions to be executed;

[0116] A decoding unit, which has an instruction input terminal and an operation signal output terminal, wherein the instruction input terminal is connected to the first buffer output terminal and the second buffer output terminal respectively, and the decoding unit is used to receive the to-be-executed instruction transmitted by the first buffer 102 or the second buffer 103, and confirm the pre-jump state of the to-be-executed instruction, and confirm the final jump state of the to-be-executed instruction, wherein the pre-jump state includes a pre-execution state and a non-pre-execution state, and the final jump state includes a final execution state and a non-final execution state;

[0117] The control component is connected to the address input terminal and the operation signal output terminal respectively, and is used to control the first buffer 102 or the second buffer 103 to read the to-be-executed instructions from the main memory 101 after confirming the pre-jump state and / or the final jump state, and control the decoding unit to read the to-be-executed instructions from the first buffer 102 or the second buffer 103.

[0118] refer to Figure 1 , Figure 2 After the control component is initialized, the control component controls the first buffer 102 to read multiple instructions to be executed from the main memory 101 for caching. The specific number of caches is set according to the design requirements. The instructions to be executed read from the first buffer 102 will be input into the decoding unit one by one, and the decoding unit will determine whether the instructions to be executed need to jump. In order to ensure that the delay of the jump is small, after determining that the pre-jump state of the instruction to be executed is the pre-execution state, the transmission of the instructions to be executed to the first buffer 102 will be stopped first, and the jump address after the jump will be determined according to the instruction to be executed, and then the jump address will be used to start the main memory 101 to transmit the instructions to be executed after the jump to the second buffer 103. In this process, the decoding unit will continue to perform the second-level decoding on the instructions to be executed that are confirmed to be in the pre-jump state. If the instructions to be executed are confirmed to be in the final execution state, the first buffer 102 will stop transmitting the instructions to be executed to the decoding unit, and the second buffer 103 will transmit the cached instructions to be executed after the jump to the decoding unit. Therefore, in the process of executing a jump instruction, it is not necessary to clear the buffer first and then re-read the instructions to be executed after the jump as if there is only one buffer, thereby greatly reducing the waiting time in this process.

[0119] In addition, it should be noted that the first buffer 102 and the second buffer 103 are not primary or secondary. After switching to the second buffer 103 to deliver the instruction to be executed, if a jump instruction or a jump return instruction is encountered during the execution process, it can also be switched to the first buffer 102 to continue execution. In this way, switching back and forth between the first buffer 102 and the second buffer 103 is achieved without spending waiting time.

[0120] According to the cache system for SOC of the embodiment of the present invention, the embodiment of the present invention adds a first buffer 102 and a second buffer 103 between the main memory 101 and the decoding unit, so that when a jump instruction needs to be executed in the first buffer 102, the second buffer 103 can be used to pre-cache the instructions to be executed after the jump, and after finally determining that the jump instruction needs to be executed, the instructions to be executed after the jump pre-cached in the second buffer 103 can be directly executed. During the entire jump instruction execution process, there is no need to clear the instructions to be executed that have been cached in the buffer, and there is no need for the CPU to wait for the main memory 101 to re-write the instructions to be executed after the jump into the buffer. Therefore, compared with the traditional cache method, the cache system for SOC of the embodiment of the present invention greatly reduces the waiting time when executing the jump instruction, and effectively improves the overall efficiency of the system.

[0121] In some embodiments of the present invention, the decoding unit includes: a pre-decoder 104, a first-stage decoder 105, and a second-stage decoder 106, all of which are connected to the control component.

[0122] The pre-decoder 104 is used to read the instructions to be executed one by one from the first buffer 102 or the second buffer 103, and confirm the instruction type of the read instructions to be executed, the instruction type including jump instructions and non-jump instructions;

[0123] The first-level decoder 105 is used to read the instructions to be executed one by one from the pre-decoder 104, and confirm the first jump requirement state of the instructions to be executed, where the first jump requirement state includes a first jump state and a first non-jump state;

[0124] The second-level decoder 106 is used to read the instructions to be executed one by one from the first-level decoder 105, and confirm the second jump requirement state of the instructions to be executed, and the second jump requirement state includes a second jump state and a second non-jump state; the pre-decoder 104, the first-level decoder 105, and the second-level decoder 106 are used together to adjust the working state of the control component.

[0125] The predecoder 104 can complete the instruction type confirmation of the instruction to be executed. When it is confirmed that a jump type instruction appears, a first jump operation signal will be sent to the instruction branch prediction module 107, and then the first level decoder 105 will perform the first level decoding. If it is still confirmed that a jump is required during this process, a second jump operation signal will be sent to the instruction branch prediction module 107. The second level decoder 106 will then perform the second level decoding on the instruction to be executed. If it is still determined that a jump is required, a third jump operation signal will be sent, and the third three-state gate 114 and the fourth three-state gate 115 can be directly controlled to open and close by the third jump operation signal.

[0126] In some embodiments of the present invention, the control component includes: an address selection unit, a first tri-state gate 112 , a second tri-state gate 113 , a fourth tri-state gate 115 , and an instruction branch prediction module 107 .

[0127] An address selection unit, used to determine the address of the instruction to be executed read from the main memory 101;

[0128] A first tri-state gate 112, arranged between the data output terminal and the first buffer input terminal;

[0129] A second tri-state gate 113, arranged between the data output terminal and the second buffer input terminal;

[0130] A third three-state gate 114 is provided between the first buffer output terminal and the pre-decoder 104 and is used for switching the on and off states under the control of the second stage decoder 106;

[0131] A fourth three-state gate 115 is provided between the second buffer output terminal and the pre-decoder 104 and is used for switching the on and off states under the control of the second stage decoder 106;

[0132] The instruction branch prediction module 107 is respectively connected to the pre-decoder 104, the first-level decoder 105, the second-level decoder 106, the first tri-state gate 112, the second tri-state gate 113 and the address selection unit, and is used to determine the on and off of the first tri-state gate 112 and the second tri-state gate 113 according to the instruction type and the first jump requirement state, and adjust the address of the instruction to be executed read from the main memory 101 through the address selection unit.

[0133] The address selection unit includes a program counter 108, an adder 109, a first multiplexer 110, and a second multiplexer 111, so that the initial value loaded by the program counter 108 can be used to obtain the initial read address, and the jump address obtained by the instruction branch prediction unit can be used to determine the specific location of the instruction to be executed that needs to be read from the main memory 101. Under the control of the instruction branch prediction module 107, the first three-state gate 112 and the second three-state gate 113 can realize the selection of the main memory 101 sending data to the first buffer 102 or the second buffer 103. Under the control of the second-level decoder 106, the third three-state gate 114 and the fourth three-state gate 115 can realize the selection of the first buffer 102 or the second buffer 103 sending data to the pre-decoder 104.

[0134] The SOC according to the embodiment of the third aspect of the present invention includes: the cache system for SOC as described above.

[0135] According to the SOC of the embodiment of the present invention, by adopting the above-mentioned cache system for SOC, there is no need to clear the pending instructions cached in the buffer, nor is there any need for the CPU to wait for the main memory 101 to rewrite the pending instructions after the jump into the buffer. Compared with the traditional caching method, the waiting time when executing the jump instruction is greatly reduced, and the overall efficiency of the system is effectively improved.

[0136] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0137] Although the embodiments of the present invention are described in detail above in conjunction with the accompanying drawings, the present invention is not limited to the above embodiments. Those skilled in the art will understand that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and purpose of the present invention. The scope of the present invention is defined by the claims and their equivalents.

Claims

1. A caching method for SOC, characterized in that: The following steps are involved: Reading a plurality of instructions to be executed from the main memory and caching them in a first buffer; Reading the to-be-executed instructions one by one from the first buffer to a decoding unit, and confirming the pre-jump state of the to-be-executed instructions through the decoding unit, wherein the pre-jump state includes a pre-execution state and a non-pre-execution state; If the to-be-executed instruction is confirmed to be in the pre-execution state, stop reading the to-be-executed instruction from the main memory to the first buffer, and read a plurality of the to-be-executed instructions from the main memory and cache them to the second buffer; Confirming, by the decoding unit, a final jump state of the instruction to be executed that is confirmed to be in the pre-execution state, wherein the final jump state includes a final execution state and a non-final execution state; If the to-be-executed instruction is confirmed to be in the final execution state, the reading of the to-be-executed instruction from the first buffer to the decoding unit is stopped, and the reading of the to-be-executed instruction from the second buffer to the decoding unit is started.

2. The caching method for SOC according to claim 1, characterized in that: The decoding unit comprises a pre-decoder, a first-stage decoder and a second-stage decoder connected in sequence; The step of reading the instructions to be executed one by one from the first buffer to a decoding unit, and confirming the pre-jump status of the instructions to be executed by the decoding unit, comprises the following steps: Reading the to-be-executed instructions one by one from the first buffer to the pre-decoder, and confirming the instruction type of the read to-be-executed instructions through the pre-decoder, wherein the instruction type includes jump instructions and non-jump instructions; If the instruction to be executed is confirmed to be a jump instruction, generating a first jump operation signal; Reading the instructions to be executed one by one from the pre-decoder to the first-level decoder, and confirming the first jump requirement state of the instructions to be executed through the first-level decoder, wherein the first jump requirement state includes a first jump state and a first non-jump state; If the first jump requirement state is confirmed to be the first jump state, generating a second jump operation signal; If the instruction to be executed generates the first jump operation signal and the second jump operation signal accordingly, it is confirmed that the pre-jump state of the instruction to be executed is the pre-execution state, and a jump address is obtained from the instruction to be executed.

3. The caching method for SOC according to claim 2, characterized in that: The step of stopping reading the to-be-executed instructions from the main memory to the first buffer and reading a plurality of the to-be-executed instructions from the main memory and caching them in the second buffer comprises the following steps: Stop reading the to-be-executed instructions from the main memory and caching them in the first buffer; A plurality of the to-be-executed instructions are read from the main memory according to the jump address and cached in the second buffer.

4. The caching method for SOC according to claim 2 or 3, characterized in that: The step of confirming, by the decoding unit, the final jump state of the instruction to be executed that is confirmed as the pre-execution state comprises the following steps: Reading the instructions to be executed one by one from the first-level decoder to the second-level decoder, and confirming the second jump requirement state of the instructions to be executed, wherein the second jump requirement state includes a second jump state and a second non-jump state; If the second jump requirement state is confirmed to be the second jump state, generating a third jump operation signal; If the to-be-executed instruction generates the first jump operation signal, the second jump operation signal, and the third jump operation signal correspondingly, it is confirmed that the final jump state of the to-be-executed instruction is the final execution state.

5. The caching method for SOC according to claim 1 or 2, characterized in that: The step of stopping reading the to-be-executed instruction from the first buffer to the decoding unit comprises the following steps: Stop reading the to-be-executed instructions from the first buffer to the decoding unit, and record, in a first tag corresponding to the first buffer, a first remaining number of unexecuted instructions among the plurality of to-be-executed instructions cached in the first buffer.

6. The cache method for SOC according to claim 5, characterized in that: After the step of starting to read the to-be-executed instruction from the second buffer to the decoding unit, the step further includes: Confirming the pre-jump state of the instruction to be executed by a decoding unit; If the instruction to be executed is confirmed to be in the pre-execution state, stop reading the instruction to be executed from the main memory and cache it in the second buffer, and obtain a jump return address from the instruction to be executed; Confirming, by the decoding unit, the final jump state of the to-be-executed instruction confirmed as the pre-execution state; If the to-be-executed instruction is confirmed as the final execution state, stop reading the to-be-executed instruction from the second buffer to the decoding unit, start reading the to-be-executed instruction from the position corresponding to the first remaining number of instructions among the multiple to-be-executed instructions cached in the first buffer to the decoding unit, and record the second remaining number of instructions that have not been executed among the multiple to-be-executed instructions cached in the second buffer in a second tag corresponding to the second buffer.

7. A cache system for a SOC, characterized in that: Used to implement the cache method for SOC according to any one of claims 1 to 6, the cache system for SOC comprises: A main memory having an address input terminal and a data output terminal, and used for storing a plurality of instructions to be executed; A first buffer having a first buffer input terminal and a first buffer output terminal, wherein the first buffer input terminal is connected to the data output terminal, and the first buffer is used to cache a plurality of the instructions to be executed; A second buffer having a second buffer input terminal and a second buffer output terminal, wherein the second buffer input terminal is connected to a data output terminal of the main memory, and the second buffer is used to cache a plurality of the instructions to be executed; a decoding unit having an instruction input terminal and an operation signal output terminal, wherein the instruction input terminal is connected to the first buffer output terminal and the second buffer output terminal respectively, and the decoding unit is used to receive the to-be-executed instruction transmitted by the first buffer or the second buffer, and confirm the pre-jump state of the to-be-executed instruction, and confirm the final jump state of the to-be-executed instruction, wherein the pre-jump state includes a pre-execution state and a non-pre-execution state, and the final jump state includes a final execution state and a non-final execution state; A control component is connected to the address input terminal and the operation signal output terminal respectively, and is used to control the first buffer or the second buffer to read the to-be-executed instruction from the main memory after confirming the pre-jump state and / or the final jump state, and control the decoding unit to read the to-be-executed instruction from the first buffer or the second buffer.

8. The cache system for SOC according to claim 7, characterized in that: The decoding unit includes: A predecoder, configured to read the instructions to be executed one by one from the first buffer or the second buffer, and confirm the instruction type of the read instructions to be executed, wherein the instruction type includes jump instructions and non-jump instructions; A first-level decoder, configured to read the instructions to be executed one by one from the pre-decoder, and confirm a first jump requirement state of the instructions to be executed, wherein the first jump requirement state includes a first jump state and a first non-jump state; The second-level decoder is used to read the instructions to be executed one by one from the first-level decoder, and confirm the second jump requirement state of the instructions to be executed, wherein the second jump requirement state includes a second jump state and a second non-jump state; the pre-decoder, the first-level decoder, and the second-level decoder are used together to adjust the working state of the control component.

9. The cache system for SOC according to claim 8, characterized in that: The control component comprises: An address selection unit, used for determining an address for reading the instruction to be executed from the main memory; A first tri-state gate, arranged between the data output terminal and the first buffer input terminal; A second tri-state gate, arranged between the data output terminal and the second buffer input terminal; A third three-state gate, arranged between the first buffer output terminal and the pre-decoder, for switching an on-off state under the control of the second-stage decoder; a fourth three-state gate, arranged between the second buffer output terminal and the pre-decoder, and used for switching an on-off state under the control of the second-stage decoder; An instruction branch prediction module is respectively connected to the pre-decoder, the first-level decoder, the second-level decoder, the first tri-state gate, the second tri-state gate and the address selection unit, and is used to determine the on and off of the first tri-state gate and the second tri-state gate according to the instruction type and the first jump requirement state, and to adjust the address of the instruction to be executed read from the main memory through the address selection unit.

10. A SOC, characterized in that: Comprising a cache system for a SOC as described in any one of claims 7 to 9.

Citation Information

Patent Citations

  • System and method for processing jump instruction of microprocessor in branch prediction way

    CN101770358A

  • Branch jump instruction prefetching method, device and equipment

    CN110083389A