Interrupt processing method and interrupt processing device
By using the allocation of public and special registers in the processor and performing context management according to interrupt priorities, the problem of low interrupt processing efficiency is solved and fast response and efficient interrupt processing are achieved.
Patent Information
- Application Number
- CN202410342670.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-05-30
- Filing Date
- 2024-03-25
- Publication Date
- 2024-10-01
AI Technical Summary
When processing interrupt requests, the existing technology requires extra time for context switching, resulting in low efficiency in interrupt processing, especially in high-speed operation modes where it is difficult to respond quickly.
By using the allocation of public registers and special registers, and generating register indexes based on interrupt priority comparison and lookup tables, the interrupt program can be executed without switching contexts and the context switching time can be reduced.
It improves the efficiency of interrupt processing, reduces context switching time, supports the system's high-speed operation mode, and improves the processing capabilities of high-priority and high-frequency interrupts.
Smart Images

Figure CN118733212A_ABST
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims the benefit of priority of Korean Patent Application No. 10-2023-0042073 filed on March 30, 2023, in the Korean Intellectual Property Office, and Korean Patent Application No. 10-2023-0069424 filed on May 30, 2023, in the Korean Intellectual Property Office, the disclosures of which are incorporated herein by reference in their entirety. Technical Field
[0003] The present disclosure generally relates to interrupt processing, and more particularly, to an interrupt processing method and an interrupt processing apparatus capable of processing an interrupt program at high speed according to an interrupt request. Background Art
[0004] Generally speaking, when a processor (e.g., a central processing unit (CPU)) and / or a microprocessor unit (MPU) receives an interrupt request during the execution of a process, the processor and / or MPU may save the context of the process being executed in a memory. For example, the context may include information about registers used to execute the process. In addition, the processor and / or MPU may execute an interrupt service routine (ISR) program corresponding to the received interrupt stored in the memory. When the execution of the ISR ends, the processor and / or MPU may resave (e.g., restore) the context stored in the memory to the register, and the interrupted process may be executed again. That is, the processor and / or MPU may require additional time for a context switching operation, which may consist of the following steps: the context of the interrupted process is saved in a memory, and the context is read again before and after the period of executing the interrupt program for the interrupt process.
[0005] For example, the slave device may be configured to set the operation mode of the slave device by processing a command input from the master device that can be received as an interrupt. In this example, the slave device may need to process the received interrupt in a small amount of time in order to support high-speed operation of the system. Summary of the invention
[0006] Aspects of the present disclosure provide a fast interrupt processing method of a processor and an interrupt processing device therefor.
[0007] Aspects of the present disclosure provide a fast interrupt processing method according to a priority of a received input interrupt and an interrupt processing device therefor.
[0008] Aspects of the present disclosure provide a radio frequency integrated circuit which quickly changes an operation mode of a special function register (SFR) by processing an interrupt received from a host device.
[0009] According to one aspect of the present disclosure, an interrupt processing method is provided. The interrupt processing method includes: executing a first interrupt by using a common register; receiving a second interrupt and a second priority of the second interrupt during the execution of the first interrupt; comparing the first priority of the first interrupt with the second priority of the second interrupt; based on the second priority of the second interrupt being greater than the first priority, generating a first register index corresponding to the second priority of the second interrupt by using a lookup table; and based on the first register index being a dedicated index, maintaining the context of the first interrupt stored in the common register, allocating a dedicated register for the execution of the second interrupt, and executing an interrupt program corresponding to the second interrupt by using the allocated dedicated register. The interrupt program is stored in a memory.
[0010] According to one aspect of the present disclosure, an interrupt processing device is provided. The interrupt processing device includes: an interrupt controller, which is configured to receive an interrupt and output the interrupt to be executed according to the priority, the identifier (ID) of the interrupt to be executed and the priority of the interrupt to be executed; a memory, which stores multiple interrupt programs; and a microprocessor, which is configured to receive the interrupt to be executed, the priority of the interrupt and the ID of the interrupt to be executed from the interrupt controller, and execute the interrupt program corresponding to the interrupt to be executed in the multiple interrupt programs. The microprocessor includes a control device, a lookup table, a common register and a dedicated temporary register. The control device is configured to compare the priority of the interrupt to be executed with the priority of the interrupt being executed. The lookup table is configured to generate a register index corresponding to the priority of the interrupt to be executed based on a comparison result indicating that the priority of the interrupt to be executed is greater than the priority of the interrupt being executed. The microprocessor is also configured to: based on the register index being a common index, save the context of the interrupt being executed that is saved in the common register in the memory, and execute the interrupt program corresponding to the interrupt to be executed by using the common register; and
[0011] Based on the register index being a dedicated index, a context of the interrupt being executed that is saved in a common register is maintained, a dedicated register is allocated for execution of the interrupt to be executed, and an interrupt program corresponding to the interrupt to be executed is executed by using the allocated dedicated register.
[0012] According to one aspect of the present disclosure, a radio frequency integrated circuit is provided. The radio frequency integrated circuit includes: an intellectual property (IP) transceiver unit, which includes a plurality of functional blocks; a latch unit, which includes a special function register storing operation mode setting values of a plurality of functional blocks; and an interrupt processor, which is configured to receive a command from a main device through an inter-chip interface, process an interrupt, and generate an operation mode setting value. The interrupt processor includes an interrupt controller, a microprocessor, and a memory. The interrupt controller is configured to output an interrupt, an ID of the interrupt, and a priority corresponding to a received command. The microprocessor includes a lookup table, a common register, and a special register. The lookup table is configured to assign at least one of a common register and a special register to the processing of a received interrupt according to the priority of the received interrupt. The microprocessor is also configured to: be assigned based on the common register, save the context in the memory, and execute a program corresponding to the received interrupt; and be assigned based on the special register, and execute a program corresponding to the received interrupt without switching the context.
[0013] According to one aspect of the present disclosure, a slave device is provided. The slave device includes: a memory storing instructions; and a processor communicatively coupled to the memory, wherein the processor is configured to execute instructions to: receive an interrupt command from a master device through an inter-chip interface; execute an interrupt based on the priority of the interrupt command; change a setting value of a special function register based on the execution of the interrupt; allocate at least one of a common register and a special register to the interrupt to be executed based on the execution frequency of the interrupt to be executed; execute a program of the interrupt to be executed without executing a context switch related to the interrupt being executed based on the special register being allocated; and execute a context switch related to the interrupt being executed based on the common register being allocated, and execute the program of the interrupt to be executed.
[0014] According to one aspect of the present disclosure, an interrupt processing method to be executed by a processor is provided. The interrupt processing method includes: receiving a second interrupt assigned to a common register during execution of a first interrupt using a common register, the second priority of the second interrupt being higher than the first priority of the first interrupt; saving the context of the first interrupt in a memory; executing a first interrupt program corresponding to the second interrupt using a common register; receiving a fourth interrupt assigned to a special register during execution of a third interrupt using a common register, the fourth priority of the fourth interrupt being higher than the third priority of the third interrupt; and executing a second interrupt program corresponding to the fourth interrupt using a special register while keeping the context of the third interrupt in the common register.
[0015] Additional aspects will be set forth in part in the description which follows and, in part, will be obvious from the description, and / or may be learned by practice of the presented embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The above and other aspects, features and advantages of certain embodiments of the present disclosure will become more apparent from the following description in conjunction with the accompanying drawings, in which:
[0017] Figure 1 is a timing diagram of interrupt processing of a processor according to an embodiment;
[0018] Figure 2 shows the ratio of interrupt execution time and context switching time for each interrupt ID according to an embodiment;
[0019] Figure 3 is a block diagram of an interrupt processing device according to an embodiment;
[0020] Figure 4A It shows that the invention can be applied to Figure 3 An embodiment of a lookup table (LUT);
[0021] Figure 4B is a diagram showing the allocation according to the embodiment Figure 4A A table of registers indexed by registers;
[0022] Figure 5 is an interrupt processing flow chart according to an embodiment;
[0023] Figure 6 is a block diagram of an interrupt processing device according to an embodiment;
[0024] Figure 7 is an interrupt processing flow chart according to an embodiment;
[0025] Figure 8 is a block diagram of a radio communication system to which an interrupt processing method according to an embodiment is applied;
[0026] Fig. 9 is a block diagram of a radio frequency integrated circuit to which the interrupt processing method according to the embodiment is applied;
[0027] Fig.10 According to an embodiment, Fig. 9 A block diagram of a latch unit of a register corresponding to an intellectual property (IP) block of an RFIC; and
[0028] Fig.11 is a timing diagram of an interrupt processing method according to an embodiment. DETAILED DESCRIPTION
[0029] The following description with reference to the accompanying drawings is provided to assist in a comprehensive understanding of the embodiments of the present disclosure as defined by the claims and their equivalents. Various specific details are included to assist in understanding, but these details are considered to be exemplary only. Therefore, it will be appreciated by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. In addition, descriptions of well-known functions and structures are omitted for clarity and brevity.
[0030] Terms such as first, second, etc. can be used to describe various elements, but these elements are not limited by these terms. These terms are only used for the purpose of distinguishing one element from another element. For example, without departing from the scope of the present disclosure, a first element can be referred to as a second element, and similarly, a second element can also be referred to as a first element.
[0031] It will be understood that when an element is referred to as being "connected" or "coupled" to another element, the element may be directly connected or coupled to the other element, or there may be intervening elements. Alternatively, when an element is referred to as being "directly connected" or "directly coupled" to another element, there may be no intervening elements. Other expressions describing the relationship between elements (such as "between" and "directly between" or "adjacent to" and "directly adjacent to") may be interpreted in a similar manner.
[0032] The terms used in the specification are only used to describe specific embodiments and are not intended to limit the present disclosure. Unless the context clearly indicates otherwise, a singular expression may include a plurality of expressions. As used herein, it is understood that terms such as "including" or "having" may be intended to specify that the features, numbers, steps, operations, elements, parts, or combinations thereof described in the present disclosure may exist, but will not exclude the presence or addition of one or more other features, numbers, steps, operations, elements, parts, or combinations thereof.
[0033] Reference throughout this disclosure to "one embodiment," "an embodiment," "an example embodiment," or similar language may indicate that a particular feature, structure, or characteristic described in connection with the indicated embodiment is included in at least one embodiment of the present disclosure. Thus, the phrases "in one embodiment," "in an embodiment," "in an example embodiment," and similar language throughout this disclosure may, but do not necessarily, all refer to the same embodiment.
[0034] It should be understood that the specific order or hierarchy of the blocks in the disclosed process / flowchart is an illustration of an exemplary method. Based on design preferences, it should be understood that the specific order or hierarchy of the blocks in the process / flowchart can be rearranged. In addition, some blocks can be combined or omitted. The attached claims present the elements of the various blocks in a sample order and are not meant to be limited to the specific order or hierarchy presented.
[0035] The embodiments herein may be described and illustrated in terms of blocks, as shown in the accompanying drawings, which perform one or more functions described. These blocks (which may be referred to herein as units or modules, etc., or names such as devices, logic, circuits, counters, comparators, generators, converters, etc.) may be physically implemented by analog and / or digital circuits (including one or more of logic gates, integrated circuits, microprocessors, microcontrollers, memory circuits, passive electronic components, active electronic components, optical components, etc.), and may also be implemented or driven by software and / or firmware (configured to perform the functions or operations described herein).
[0036] Hereinafter, various embodiments of the present disclosure are described with reference to the accompanying drawings.
[0037] Figure 1 is a timing diagram of interrupt processing of a processor according to an embodiment.
[0038] Reference Figure 1 , the interrupt execution time t0 to t3 may include an interrupt waiting time period T il , interrupt service routine running time period T int , and interruption completion period T reti .
[0039] A central processing unit (CPU) and / or a microprocessor (MPU) may receive an interrupt request at time t0.
[0040] Interrupt waiting time period T il The time during which information of a process being executed by a processor, which may include a CPU and / or an MPU, is saved in a memory in response to an interrupt request may be included. The processed information may refer to a context, which may include multiple pieces of information stored in various registers that may be related to the process being executed. For example, the various registers may include, but are not limited to, a specific purpose register (SPR) including a program counter (PC), a process status register (PSR), a general purpose register (GPR), and / or another register that may save (e.g., store) values and / or variables that may be needed for the operation of the process. In an embodiment, the processor and / or MPU may be in the interrupt waiting period T. il During this time, the values of various registers are saved in the stack area of the memory.
[0041] Interrupt service routine running time period T int It may refer to the program execution period corresponding to the received interrupt request. For example, the processor and / or MPU may execute the interrupt service routine in the time period T. int During processing of interrupt requests.
[0042] Interruption completion period T retiIt can refer to the time period T during which the interrupt service routine is running. int After the execution of the interrupt program is completed, the processor and / or MPU reads the context of the interrupted process saved in the memory and saves the context to various registers again.
[0043] like Figure 1 As shown, the processor and / or MPU may consume the duration from t0 to t1 and from t2 to t3 (eg, the interrupt waiting period T il and interruption completion period T reti ) for context switching, and may also consume the duration from t1 to t2 to execute an interrupt program (e.g., an interrupt service routine runs for period T int ) in order to complete the processing of handling the received interrupt.
[0044] Figure 2 The ratio of interrupt execution time and context switch time for each interrupt ID according to an embodiment is shown.
[0045] Reference Figure 2 , the context switching time for each interrupt identifier (ID) can occupy about 12% to about 42% of the interrupt processing period. For example, interrupt ID 25 can occupy about 58% of the interrupt processing period to execute the interrupt program (e.g., execution time), and occupy the remaining 42% of the interrupt processing period to perform context switching (e.g., context switching time). For another example, interrupt ID 0 can occupy about 88% of the interrupt processing period to execute the interrupt program, and occupy about 12% of the interrupt processing period to perform context switching. In other words, the context switching time can occupy a relatively large part of the interrupt processing period. Therefore, in a system that requires high-speed interrupt processing, it may be necessary to minimize and / or reduce the context switching time. Alternatively or additionally, in a preemptive scheduling operation based on the priority of an interrupt, the fast processing of an interrupt with a high priority may be important, and therefore, it may be necessary to minimize the context switching time of the interrupt processing.
[0046] Figure 3 is a block diagram of an interrupt processing apparatus according to an embodiment.
[0047] Reference Figure 3 , the interrupt processing device 300 may include an interrupt controller (IC) 310, a CPU core 320, a memory 330, and a bus 340. In an embodiment, the interrupt processing device 300 may be referred to as a processor and / or a microprocessor.
[0048] The IC 310 may receive an external interrupt request (e.g., a first external interrupt request int_1, a second external interrupt request int_2, ..., a zth external interrupt request int_z, where z is a positive integer greater than or equal to one (1)) from the outside. The IC 310 may compare the external interrupt requests int_1 to int_z according to the determined priorities of the interrupt requests, and output an interrupt request with a relatively high priority to the CPU core 320. For example, the IC 310 may output the interrupt request to the CPU core 320 through the bus 340. The interrupt request output by the IC 310 may include an ID corresponding to the interrupt request and a priority (e.g., a priority level) of the interrupt request.
[0049] The CPU core 320 may include a control unit (CU) 321 , a lookup table (LUT) 322 , a special purpose register (SPR) 324 , a general purpose register (GPR) 325 , and an arithmetic logic unit (ALU) 323 .
[0050] The control unit 321 may compare the priority (e.g., priority level) of the interrupt being executed with the priority of the received interrupt. If the priority of the received interrupt is lower than the priority of the interrupt being executed, the control unit 321 may continue to execute the interrupt being executed. If the priority of the received interrupt is higher than the priority of the interrupt being executed, the control unit 321 may stop (and / or pause) executing the interrupt being executed.
[0051] LUT 322 may be and / or may include a table configured to assign register indices (RI) corresponding to the priority (e.g., priority level) of an interrupt. For example, LUT 322 may receive information indicating that the priority of an interrupt received from control unit 321 is higher than the priority of an interrupt being executed. In this example, LUT 322 may receive the priority of the received interrupt and output the register index assigned to it. In an embodiment, the register index may include a common index (CI) and two or more dedicated indexes (DI). The common index may correspond to at least two priorities. That is, the common index may be assigned to more than one priority. In an embodiment, each of the dedicated indexes may correspond to a priority. That is, the dedicated index may be assigned to a priority. Reference Figure 4A and Figure 4B An example structure of the LUT 322 is described.
[0052] The specific purpose registers 324 may include a program counter (PC) configured to save the memory address of a program to be executed next (e.g., immediately after) the interrupt being executed. Alternatively or additionally, the specific purpose registers 324 may include a status register (SR) configured to save the state of the process being executed. In an embodiment, the specific purpose registers 324 may include a common specific purpose register SPR_C and at least two dedicated specific purpose registers (e.g., a first dedicated specific purpose register (SPR) SPR_1, a second dedicated SPR SPR_2, ..., an nth dedicated SPR SPR_n, where n is a positive integer greater than or equal to two (2)).
[0053] The general purpose registers 325 may include registers configured to hold variables and / or values used by one or more operations performed during the execution of a process and / or interrupt. In an embodiment, the general purpose registers 325 may include a common general purpose register GPR_C and at least two dedicated general purpose registers (e.g., a first dedicated general purpose register (GPR) GPR_1, a second dedicated GPR GPR_2, ..., a gth dedicated GPR GPR_g, where g is a positive integer greater than or equal to two (2)).
[0054] like Figure 3 As shown, the common register 326 may include a common SPR SPR_C and a common GPR GPR_C. The special register 327 may include a plurality of special SPRs (e.g., SPR_1 to SPR_n) and / or a plurality of special GPRs (e.g., GPR_1 to GPR_g). That is, the number of registers in the special register 327 may be greater than the number of registers in the common register 326.
[0055] The memory 330 may include a stack area 331, a trap vector table (TVT) 332, and an interrupt service routine (ISR) program save area 333. The stack area 331 may be and / or may include an area in which the CPU core 320 may save the context of a process that is interrupted during the execution of the process. The stack area 331 may operate in a last-in-first-out (LIFO) manner in which the last saved context may be output first. The TVT 332 may have a starting address of a memory in which an ISR program corresponding to an interrupt ID is saved. For example, the ISR program save area 333 may save a program that may be executed for each interrupt ID (e.g., a first ISR program ISR_0, ..., an mth ISR program ISR_m, where m is a positive integer greater than or equal to one (1)).
[0056] Based on the received interrupt request, when the register index generated in the LUT 322 is the common index CI, the interrupt processing device 300 may save a plurality of pieces of information saved in the common register 326 including the common SPR SPR_C and the common GPR GPR_C being used for the process being executed in the stack area 331 of the memory 330. Then, the interrupt processing device 300 may process the received interrupt.
[0057] Based on the received interrupt request, when the register index generated in the LUT 322 corresponds to at least one of the discrete indexes, the interrupt processing device 300 can use the dedicated SPRs SPR_1 to SPR_n and the dedicated GPRs GPR_1 to GPR_g corresponding to the discrete indexes while maintaining a plurality of pieces of information stored in the common registers 326 (e.g., the common SPR SPR_C and the common GPR GPR_C) being used for the process being executed to perform the operation required for the received interrupt request. That is, when the dedicated SPRs SPR_1 to SPR_n and the dedicated GPRs GPR_1 to GPR_g are allocated to execute the received interrupt, since the contents in the common special purpose register SPR_C and the common general purpose register GPR_C that store the context of the running process are maintained, the interrupt processing device 300 can quickly process the received interrupt without performing an access operation of the stack area 331 of the memory 330 for context switching.
[0058] The ALU 323 may perform arithmetic logic operations required for execution of the ISR programs ISR_0 to ISR_m included in the ISR saving area 333 of the memory 330 under the control of the control unit 321. In an embodiment, the ALU 323 may save an operation value in the general purpose register 325.
[0059] Figure 3 The number and arrangement of components of the interrupt processing device 300 shown in FIG. 3 are provided as examples. Figure 3 There may be more components, fewer components, different components, or differently arranged components than those shown in FIG. Figure 3 Two or more components shown in the figure may be implemented in a single component, or Figure 3 The single component shown in may be implemented as multiple distributed components. Alternatively or additionally, Figure 3 A set (one or more) of components shown in the EMBODIMENTS 2004 may be integrated with each other and / or may be implemented as an integrated circuit, software, and / or a combination of circuit and software.
[0060] Figure 4A Shows the application Figure 3An embodiment of a LUT of a CPU core 320 of an interrupt processing device 300 .
[0061] Reference Figure 4A , LUT 400 may include the above reference Figure 3 The LUT 322 described and / or may be similar in many respects to the above referenced Figure 3 The LUT 322 described above may include additional features not mentioned above.
[0062] like Figure 4A As shown, LUT 400 can receive the priority of the interrupt (e.g., priority level or interrupt level) and output one of the common index CI and the dedicated index DI as the register index RI. For example, in the register index RI, register index "0" can be a common index, and at least two interrupts with different priorities (e.g., interrupt levels "0", "1", "3", and "6") can be assigned to the common index (e.g., register index "0"). For another example, in the register index RI, register indexes "1", "2", and "3" can be dedicated indexes, and an interrupt level corresponding to a priority level (e.g., interrupt level "2", "4", or "5") can be assigned to each of the dedicated indexes DI. Although Figure 4A An example embodiment is shown in which the public index is register index "0" and the dedicated index DI is register index "1", "2", and "3", but the present disclosure is not limited in this regard. That is, without departing from the scope of the present disclosure, another register index may be a public index and / or other register indexes (e.g., more indexes, fewer indexes, different indexes) may be dedicated indexes.
[0063] The priority of an interrupt (e.g., priority level or interrupt level) can be determined by Figure 3 IC 310 settings. In an embodiment, a register index corresponding to a priority level (e.g., a priority level or an interrupt level) of an interrupt in LUT 400 may be allocated based on the execution frequency of the interrupt. For example, IC 310 may monitor the number of times the execution of each interrupt occurs within a determined time period (e.g., the execution frequency). In such an example, when an interrupt has an execution frequency that meets or exceeds (e.g., is greater than or equal to) a threshold, IC 310 may allocate the interrupt to a discrete index. Alternatively or additionally, when an interrupt has an execution frequency that does not meet (e.g., is less than) a threshold, IC 310 may allocate the interrupt to a common index.
[0064] Figure 4B The allocation according to the embodiment is shown Figure 4A The register indexes of the common registers and special registers.
[0065] Reference Figure 4B , the common SPR SPR_C and the common GPR GPR_C of the common register may be assigned a common index (eg, register index RI "0"). Four (4) interrupt priority levels (eg, Figure 4A The common index (e.g., register index RI "0") may be assigned to the common index (e.g., interrupt levels "0", "1", "3", and "6") . That is, when at least one interrupt program corresponding to the common index (e.g., interrupt levels "0", "1", "3", and "6") is executed, the common SPR SPR_C and the common GPR GPR_C may be used.
[0066] like Figure 4B As shown, in the dedicated register 327, the dedicated SPR SPR_1 and the dedicated GPR GPR_1 can be assigned to the dedicated index DI "1". In this way, there is only one priority level (e.g., Figure 4A An interrupt with an interrupt level "2" (e.g., an interrupt with an interrupt level "2") may use a dedicated SPR SPR_1 and a dedicated GPR GPR_1. For another example, in the dedicated register 327, a dedicated SPR SPR_2 and a dedicated GPR GPR_2 may be assigned to a dedicated index DI "2". Thus, an interrupt with only one priority level (e.g., Figure 4A An interrupt with an interrupt level of "4" can use dedicated SPR SPR_2 and dedicated GPR GPR_2. For another example, in dedicated register 327, dedicated SPR SPR_3 and dedicated GPR GPR_3 can be assigned to dedicated index DI "3". Therefore, an interrupt with only one priority level (e.g., Figure 4A Interrupts of interrupt level 5) can use dedicated SPR SPR_3 and dedicated GPR GPR_3.
[0067] When another interrupt corresponding to a common index is received while an interrupt program corresponding to a common index is being executed, it may be necessary to save the context of the common register including information of the interrupt being executed.
[0068] When another interrupt corresponding to the dedicated index DI is received while an interrupt program corresponding to the common index is executed, since a dedicated index DI different from the common register including information of the interrupt being executed is used, the context of the common register can be maintained and there is no need to perform context switching.
[0069] Figure 5 is a flowchart of interrupt processing according to some embodiments of the present disclosure.
[0070] Reference Figure 5, the CPU core 320 may execute an interrupt program corresponding to a previously received interrupt (operation S510). The previously received interrupt may have an interrupt priority level L_0.
[0071] The CPU core 320 may receive a new interrupt having an interrupt priority level L_1 through the IC 310 while executing the interrupt program in operation S510 (operation S512 ).
[0072] The CPU core 320 may compare the interrupt priority level L_1 of the received interrupt with the interrupt priority level L_0 of the currently executed interrupt program (operation S520 ).
[0073] When the interrupt priority L_1 of the received interrupt is lower than (e.g., less than) the interrupt priority L_0 of the currently executing interrupt program (No in operation S520), the CPU core 320 may not output the interrupt priority so as to continue to execute the currently executing interrupt program. When the interrupt priority L_1 of the received interrupt is higher than (e.g., greater than) the interrupt priority L_0 of the currently executing interrupt program (Yes in operation S520), the CPU core 320 may output the interrupt priority L_1 of the received interrupt to the LUT 322. The LUT 322 may output the register index assigned to the interrupt priority L_1 (operation S530).
[0074] In operation S540, the CPU core 320 may determine whether the register index is a common index (e.g., the register index is "0"). For example, when a common index is assigned to a received interrupt (e.g., when a register index assigned to a received interrupt is "0") (Yes in operation S540), the CPU core 320 may save the context of the interrupt program being executed in the memory 330, and may assign the common register 326 to the received interrupt (operation S550). That is, when the common register 326 is assigned to an interrupt received through the LUT 322, the CPU core 320 may perform an operation of saving the context of the interrupt program being executed in the memory 330.
[0075] When a discrete index is assigned to a received interrupt (e.g., a register index assigned to the received interrupt is not "0") (No in operation S540), the CPU core 320 may keep the context of the interrupt program being executed in the common register 326 as is, and may assign the dedicated register 327 corresponding to the assigned DI to the received interrupt (operation S560). That is, when the dedicated register 327 is assigned to an interrupt received through the LUT 322, since the CPU core 320 may keep the context of the interrupt program being executed in the common register 326 as is, a memory access for saving the context may be unnecessary, and therefore, the execution of the received interrupt program may be processed faster.
[0076] After allocating the common register 326 (operation S550) or allocating the dedicated register 327 (operation S560) for the received interrupt, the CPU core 320 may obtain an ISR program start address corresponding to the ID of the received interrupt from the TVT 332 (operation S570). The CPU core 320 may execute the ISR program (e.g., ISR programs ISR_0 to ISR_m) obtained from the memory 330 (operation S510).
[0077] Figure 6 is a block diagram of an interrupt processing apparatus according to an embodiment.
[0078] Reference Figure 6 The interrupt processing device 600 may include the above reference Figure 3 The interrupt handling apparatus 300 described herein and / or may be similar in many respects to the above referenced Figure 3 The interrupt processing device 300 described above may include additional features not mentioned above. In addition, the interrupt processing device 600 may include components, which may include the above reference Figure 3 The corresponding components described and / or may be similar in many respects to those described above. Figure 3 The corresponding components described above, and the interrupt processing device 600 may include additional features not mentioned above. Therefore, for the sake of brevity, the above reference may be omitted. Figure 3 Repeated description of the interrupt processing apparatus 300 or its components described herein.
[0079] like Figure 6 As shown, the interrupt processing device 600 may include an IC 610 , a CPU core 620 , a memory 630 , and a bus 640 .
[0080] The CPU core 620 may include a control unit (CU) 621 , special purpose registers 624 , general purpose registers 625 , and an ALU 623 .
[0081] The control unit 621 may compare the priority of the interrupt being executed with the priority of the interrupt being received. When the priority of the interrupt being received is lower than the priority of the interrupt being executed, the control unit 621 may continue to execute the interrupt being executed. When the priority of the interrupt being received is higher than the priority of the interrupt being executed, the control unit 621 may stop (and / or suspend) executing the interrupt being executed.
[0082] Based on the priority of the interrupt being executed and the register type assigned to it and the priority of the interrupt being received and the register type assigned to it, the control unit 621 can save the context of the interrupt being executed in the memory 630, and can execute the interrupt program corresponding to the received interrupt. Alternatively or additionally, the control unit 621 can keep the context of the interrupt being executed in the register, and can execute the interrupt program corresponding to the received interrupt. In an embodiment, the control unit 621 can continue to execute the program of the interrupt being executed.
[0083] In an embodiment, the control unit 621 may compare the priority of the first interrupt being executed with the priority of the second interrupt received based on the common register 626. When the second interrupt is assigned to the common register 626 and the priority of the second interrupt is higher than the priority of the first interrupt, the control unit 621 may save the context of the first interrupt in the memory 630, and may use the common register 626 to execute the interrupt program corresponding to the second interrupt. That is, during the execution of the first interrupt that may be assigned to the common register 626, the control unit 621 may receive a second interrupt that may also be assigned to the common register 626 and has a higher (e.g., larger) priority than the first interrupt. After the context of the first interrupt is saved in the memory 630, the control unit 621 may use the common register 626 to execute the interrupt program corresponding to the second interrupt.
[0084] In an embodiment, the control unit 621 can compare the priority of the third interrupt being executed with the fourth interrupt received based on the common register 626. When the fourth interrupt is assigned to the special register 627 and the priority of the fourth interrupt is higher than the priority of the third interrupt, the control unit 621 can use the special register 627 to execute the interrupt program corresponding to the fourth interrupt while keeping the context of the third interrupt in the common register 626. That is, while using the common register 626 to execute the third interrupt, the control unit 621 can receive the fourth interrupt that can be assigned to the special register 627 and can have a priority higher than the third interrupt (e.g., large). In this embodiment, the control unit 621 can use the special register 627 to execute the interrupt program corresponding to the fourth interrupt while keeping the context of the third interrupt in the common register 626.
[0085] In an embodiment, the control unit 621 may compare the priorities of the fifth interrupt being executed and the sixth interrupt received based on the common register 626. When the sixth interrupt is assigned to the common register 626 and the priority of the fifth interrupt is higher than the priority of the sixth interrupt, the control unit 621 may continue to execute the interrupt program corresponding to the fifth interrupt in the common register 626. That is, while executing the fifth interrupt based on the common register 626, the control unit 621 may receive the sixth interrupt that may be assigned to the common register 626 and may have a lower priority than the fifth interrupt. In this embodiment, the control unit 621 may continue to execute the interrupt program corresponding to the fifth interrupt using the common register 626.
[0086] In an embodiment, the type of register corresponding to an interrupt may be assigned based on the execution frequency of the interrupt. For example, IC 610 may monitor the number of times the execution of each interrupt occurs within a determined time period (e.g., execution frequency). In this example, when the interrupt has an execution frequency that meets or exceeds (e.g., is greater than or equal to) a threshold, IC 610 may assign the interrupt to a dedicated register 627. Alternatively or additionally, when the interrupt has an execution frequency that does not meet (e.g., is less than) the threshold, IC 610 may assign the interrupt to a common register 626.
[0087] Figure 6 The number and arrangement of components of the interrupt processing device 600 shown in FIG. 6 are provided as examples. Figure 6 There may be more components, fewer components, different components, or differently arranged components than those shown in FIG. Figure 6 Two or more components shown in the figure may be implemented in a single component, or Figure 6 The single component shown in may be implemented as multiple distributed components. Alternatively or additionally, Figure 6 A set (one or more) of components shown in the EMBODIMENTS 2004 may be integrated with each other and / or may be implemented as an integrated circuit, software, and / or a combination of circuit and software.
[0088] Figure 7 is a flowchart of an interrupt processing according to an embodiment.
[0089] Reference Figure 7 , the CPU core 620 may execute an interrupt program corresponding to a previously received interrupt (operation S710). The previously received interrupt may have an interrupt priority level L_0.
[0090] The CPU core 620 may receive a new interrupt having an interrupt priority level L_1 through the IC 610 while executing the interrupt program in operation S710 (operation S712 ).
[0091] The CPU core 620 may compare the interrupt priority level L_1 of the received interrupt with the interrupt priority level L_0 of the currently executed interrupt program (operation S720 ).
[0092] When the interrupt priority level L_1 of the received interrupt is lower than (eg, smaller than) the interrupt priority level L_0 of the currently executing interrupt program (No in operation S720 ), the CPU core 620 may continue to execute the currently executing interrupt program (operation S710 ).
[0093] When the interrupt priority L_1 of the received interrupt is higher than (e.g., greater than) the interrupt priority L_0 of the interrupt program currently being executed (yes in operation S720), the CPU core 620 may compare whether the register corresponding to the received interrupt and the register corresponding to the interrupt of the interrupt program being executed are the same (operation S730).
[0094] When the register corresponding to the received interrupt and the register corresponding to the interrupt of the interrupt program being executed are the same (the same in operation S730), the CPU core 620 can save the context of the interrupt program being executed in the memory 330, and can assign the register corresponding to the interrupt of the interrupt program being executed to the received interrupt (operation S740).
[0095] When the register corresponding to the received interrupt is different from the register corresponding to the interrupt of the interrupt program being executed (different in operation S730), the CPU core 620 can keep the context of the interrupt program being executed as it is, and can allocate the register corresponding to the received interrupt to the received interrupt (operation S750). Therefore, since the CPU core 620 can keep the context of the interrupt program being executed as it is in the register, the memory access for saving the context may be unnecessary, and therefore, the execution of the received interrupt program can be processed faster.
[0096] After allocating registers for the received interrupt (operation S750 and operation S740), the CPU core 620 may obtain an ISR program start address corresponding to the ID of the received interrupt from the TVT 632 (S760). The CPU core 620 may execute an ISR program (eg, ISR programs ISR_0 to ISR_m) obtained from the memory 630 (operation S710).
[0097] Figure 8 is a block diagram of a radio communication system to which the interrupt processing method according to the embodiment is applied. Fig. 9 According to the embodiment Figure 8 Block diagram of an RF integrated circuit. Fig.10 The embodiment includes Fig. 9 An embodiment of a latch unit of a register corresponding to an intellectual property (IP) block of an RFIC.
[0098] Reference Figure 8 , the radio communication system 800 may include a modem 810 operating as a master device and a radio frequency integrated circuit (RFIC) 850 operating as a slave device. The modem 810 may provide a command CMD to the RFIC 850 using an inter-chip interface protocol such as, but not limited to, an inter-integrated circuit (I2C) protocol, a serial peripheral interface (SPI) protocol, etc. The RFIC 850 may receive the command CMD as an interrupt. In an embodiment, the RFIC 850 may read a program corresponding to the interrupt from a memory, which may have been received from an internal CPU core. The RFIC 850 may execute a program corresponding to the received interrupt, and may change and / or set operation mode setting values of various internal functional blocks of the RFIC 850. After the operation mode setting value of the functional block is changed, the modem 810 and the RFIC 850 may send and / or receive baseband digital signals BBs to each other according to the execution of the interrupt. For example, in an embodiment in which the radio communication system 800 is a fifth generation (5G) communication system, since the operation mode setting value of the RFIC 850 in the transmission and / or reception state may need to be changed per symbol unit, it may be necessary to relatively quickly process an interrupt corresponding to a command input to the RFIC 850. In particular, interrupt processing for changing the operation mode setting value of a functional block of the RFIC 850 that performs beamforming in the 5G communication system may need to be processed at a relatively high speed.
[0099] Reference Fig. 9 , the RFIC 850 may include an IP transceiver 910 , a latch unit 930 , and an interrupt processing unit 950 .
[0100] The IP transceiver 910 may include multiple IP functional blocks. The multiple IP functional blocks may include, but are not limited to, a switch (SW), a low noise amplifier / power amplifier (LNA / PA), a mixer, a phase-locked loop (PLL), a low pass filter (LPF), a digital-to-analog converter (DAC), an analog-to-digital converter (ADC), and a digital front end (DFE).
[0101] The latch unit 930 may store operation mode setting values of the respective IP function blocks constituting the IP transceiver 910. The operation mode setting values of the respective IP function blocks stored in the latch unit 930 may be generated by the interrupt processing unit 950. For example, the operation mode setting values may be stored in the latch unit 930 in synchronization with the internal reference clock and provided to the respective IP function blocks of the IP transceiver 910. The latch unit 930 may include the above-mentioned reference clock. Figure 3 The LUT 322 described and / or may be similar in many respects to the above referenced Figure 3 The LUT 322 described above may include additional features not mentioned above.
[0102] The interrupt processing unit 950 may include Figure 3 The interrupt processing device 300 and Figure 6 At least one of the interrupt processing devices 600 and / or may be similar in many respects to Figure 3 The interrupt processing device 300 and Figure 6 at least one of the interrupt handling devices 600 and may include additional features not mentioned above.
[0103] like Fig. 9 As shown, the interrupt processing unit 950 may include a CPU core 951, a memory 952, an IC 953, and a bus 954. The IC 953 may sequentially receive the input of the interrupt in the form of a command CMD through the inter-chip interface between the modem 810 and the RFIC 850. The IC 953 may transmit the input interrupt, its priority, and its ID information to the CPU core 951. When the input interrupt has a higher (e.g., greater) priority than the interrupt being executed, the CPU core 951 may generate a register index corresponding to its priority through a LUT (not shown). When the register index is a public index indicating a public register, the CPU core 951 may transmit the context of the interrupt being executed that is stored in the public register to the memory 952, and store the context in the memory 952. The CPU core 951 may then read the interrupt program corresponding to the interrupt received from the memory 952, and execute the interrupt program by using the public register. When the register index is DI indicating a dedicated register, the CPU core 951 may keep the context of the interrupt being executed in the common register as it is, and read an interrupt program corresponding to the interrupt received from the memory 952. The CPU core 951 may then execute the interrupt program by using the dedicated register.
[0104] The interrupt processing unit 950 may execute an interrupt procedure ISR corresponding to the received interrupt by using a common register or a dedicated register, and may generate a control signal CTRL having an operation mode setting value of each functional block of the IP transceiver 910. The interrupt processing unit 950 may store the control signal CTRL in the latch unit 930 in synchronization with the internal clock CLK.
[0105] Fig. 9 The number and arrangement of components of RFIC 850 shown in FIG. 8 are provided as examples. In practice, there may be more components, fewer components, different components, or differently arranged components than those shown in FIG. 9 . In addition, Fig. 9 Two or more components shown in the figure may be implemented in a single component, or Fig. 9 The single component shown in may be implemented as multiple distributed components. Alternatively or additionally, Fig. 9 A set (one or more) of components shown in the EMBODIMENTS 2004 may be integrated with each other and / or may be implemented as an integrated circuit, software, and / or a combination of circuit and software.
[0106] Reference Fig.10 , the latch unit 1030 may include Fig. 9 The latch unit 930 and / or may be similar in many respects to Fig. 9 The latch unit 930 may include additional features not mentioned above.
[0107] like Fig.10 As shown, the latch unit 1030 may include a plurality of special function registers (SFRs) corresponding to the respective IP function blocks of the IP transceiver 910. For example, the DFE of the IP transceiver 910 may perform data sampling of the operation mode setting value of the DFE register DFE_reg of the latch unit 1030, remove / reduce or compensate for the channel distortion of the sampled signal, filter the noise received from the channel, perform digital beamforming, etc. For another example, the ADC / DAC of the IP transceiver 910 may sample information, reference error, etc. according to the operation mode setting value of the ADC register ADC_reg and / or the DAC register DAC_reg of the latch unit 1030. That is, based on the operation mode setting value, the DAC of the IP transceiver 910 may convert the input baseband digital signal BBs into an intermediate frequency band signal, and / or the ADC of the IP transceiver 910 may convert the intermediate frequency band signal into the baseband digital signal BBs.
[0108] In the LPF of the IP transceiver 910, the frequency band, gain, etc. may be set according to the operation mode setting value of the reception filter register Rx Filter_reg of the latch unit 1030 and / or the transmission filter register Tx Filter_reg of the latch unit 1030. For example, based on the operation mode setting value, the LPF of the IP transceiver 910 may perform a filtering operation on an analog signal. In the mixer and PLL of the IP transceiver 910, the phase information, frequency adjustment information, etc. of the PLL may be set respectively according to the operation mode setting value of the mixer register Mixer_reg of the latch unit 1030 and / or the PLL register PLL_reg of the latch unit 1030. For example, based on the operation mode setting value, the mixer and PLL of the IP transceiver 910 may perform a frequency / phase adjustment operation on an analog signal. The gain information of the LNA / PA of the IP transceiver 910 may be changed according to the operation mode setting value set in the amplifier register LNA / PA_reg of the latch unit 1030. For example, the LNA / PA may perform a power amplification operation according to an operation mode setting value. In the switch of the IP transceiver 910, the antenna switch connection operation may be controlled according to an operation mode setting value of the switch register SW_reg of the latch unit 1030. For example, according to a corresponding connection structure and / or an operation mode setting value, a beamforming operation may be implemented in various ways by the switch of the IP transceiver 910.
[0109] The latch unit 1030 may synchronize the control signal CTRL with the internal clock and save the control signal CTRL in the SFR of each IP function block, and the control signal CTRL may be a processing result of the interrupt received from the interrupt processing unit 950. When the control signal CTRL generated after executing the interrupt program corresponding to the interrupt received from the interrupt processing unit 950 is synchronized and saved in the corresponding SFR, it may be determined that the interrupt processing of the interrupt has ended (e.g., completed).
[0110] The ISR program corresponding to the received interrupt program can be stored in the memory 952 of the interrupt processing unit 950. In an embodiment, the setting value of the SFR of the functional block of the IP transceiver 910 can be changed according to the execution of each ISR program. The memory 952 can be configured as a static random access memory (SRAM), but the present disclosure is not limited thereto. The CPU core 951 of the interrupt processing unit 950 can be a part of at least one processor including a CPU and / or a graphics processing unit (GPU).
[0111] Fig.10The number and arrangement of components of the latch unit 1030 shown in FIG. 10 are provided as examples. In practice, there may be more components, fewer components, different components, or differently arranged components compared to the components shown in FIG. 10 . In addition, Fig.10 Two or more components shown in the figure may be implemented in a single component, or Fig.10 The single component shown in may be implemented as multiple distributed components. Alternatively or additionally, Fig.10 A set (one or more) of components shown in the EMBODIMENTS 2004 may be integrated with each other and / or may be implemented as an integrated circuit, software, and / or a combination of circuit and software.
[0112] Fig.11 is a timing diagram of an interrupt processing method according to an embodiment.
[0113] Fig.11 A timing diagram is shown in which, while the first interrupt Int_0 is executed (ISR_0 1110 is executed) by using a common register, the second interrupt Int_1 (CASE 1) or the third interrupt Int_2 (CASE 2) is input and processed.
[0114] For example, in the first case CASE 1, the priority of the second interrupt Int_1 may be assigned to the common index in the LUT 322. In this example, before executing the second interrupt Int_1 (executing ISR_1 1120A), a context save operation (save context 1115) may be performed, in which the context of the first interrupt Int_0 being executed, which may be saved in the common register 326, may be moved and saved in the memory 330. In addition, before returning to executing the first interrupt Int_0 (executing ISR_0 1130A), a load context operation (load context 1125) may be performed, in which the context of the first interrupt Int_0, which may be saved in the memory 330, is restored in the common register 326.
[0115] For another example, in the second case CASE 2, the priority of the third interrupt Int_2 may be assigned to DI in the LUT 322. In this example, the context of the first interrupt Int_0 being executed, which may be saved in the common register 326, may be maintained as is, and the third interrupt Int_2 may be executed (execution of ISR_1 1120B) by using the dedicated register allocated by DI. Since the context of the first interrupt Int_0 may be maintained as is in the common register 326, the execution of the first interrupt Int_0 may be continued (execution of ISR_0) without the need for a context loading operation.
[0116] That is, since interrupts having a high execution frequency are processed using DI, a faster interrupt processing system can be implemented by removing the process of saving and restoring the context compared to a related interrupt processing system.
[0117] According to aspects of the present disclosure, an interrupt processing device can perform processing of interrupts with high priority and high execution frequency at a relatively high speed, thereby improving high-speed operation performance of a system in which a slave device may require a high-speed operation mode change setting from a master device.
[0118] Although the embodiments of the present disclosure have been described with reference to the accompanying drawings, it will be understood by those skilled in the art that the present disclosure may be implemented in other specific forms without changing the technical spirit or basic features of the present disclosure. Therefore, the embodiments described above should be understood in all aspects to be illustrative rather than restrictive.
Claims
1. An interrupt handling method, include: executing a first interrupt by using a common register; receiving a second interrupt and a second priority level of the second interrupt during execution of the first interrupt; comparing a first priority level of the first interrupt with the second priority level of the second interrupt; Based on the second priority of the second interrupt being greater than the first priority, a first register index corresponding to the second priority of the second interrupt being generated by using a lookup table; and Based on the fact that the first register index is a dedicated index, the context of the first interrupt stored in the common register is maintained, a dedicated register for the execution of the second interrupt is allocated, and an interrupt program corresponding to the second interrupt is executed by using the allocated dedicated register, the interrupt program is stored in memory.
2. The interrupt processing method according to claim 1, further comprising: include: receiving a third interrupt and a third priority level of the third interrupt during execution of the first interrupt; comparing the first priority level of the first interrupt with the third priority level of the third interrupt; Based on the third priority of the third interrupt being greater than the first priority, a second register index corresponding to the third priority of the third interrupt being generated by using the lookup table; and Based on the fact that the second register index is a common index, the context of the first interrupt is stored in the memory, and an interrupt program corresponding to the third interrupt is executed by using the common register.
3. The interrupt processing method according to claim 1, in, The lookup table includes a public index and at least two private indexes, and Wherein, the interrupt processing method further includes: assigning the common index to at least two interrupt priority levels, and Each of the at least two dedicated indexes is assigned to a different interrupt priority level.
4. The interrupt processing method according to claim 3, further comprising: include: determining to assign the first plurality of interrupts to the common index based on a first execution frequency of the first plurality of interrupts corresponding to the at least two interrupt priority levels; as well as Based on a second execution frequency of a second plurality of interrupts corresponding to the different interrupt priority levels, it is determined to assign the second plurality of interrupts to the at least two dedicated indexes.
5. The interrupt processing method according to claim 4, in, The first execution frequency of the first plurality of interrupts is less than the second execution frequency of the second plurality of interrupts.
6. The interrupt processing method according to claim 1, further comprising: include: receiving an identifier of the second interrupt; as well as By using the trap vector table, an address of the memory in which an interrupt program corresponding to the second interrupt is stored by using an identifier of the second interrupt is obtained.
7. The interrupt processing method according to claim 1, in, Each of the common registers and the dedicated registers includes a specific purpose register and a general purpose register, and Wherein, the interrupt processing method further includes: saving a first operation value of execution of the first interrupt in a general purpose register of the common registers; and A second operation value of the execution of the second interrupt is saved in a general purpose register of the special register.
8. The interrupt processing method according to claim 1, further comprising: include: Based on the second priority of the second interrupt being less than the first priority of the first interrupt, execution of the first interrupt is continued.
9. The interrupt processing method according to claim 2, further comprising: include: completing execution of the interruption program of the third interruption by using the special purpose register and the general purpose register of the common register; Restoring the context of the first interrupt stored in the memory to the special purpose registers and general purpose registers of the common registers; as well as Continue the execution of the first interrupt.
10. The interrupt processing method according to claim 7, further comprising: include: completing execution of an interrupt program for the second interrupt by using a special purpose register and a general purpose register of the special register; as well as Execution of the first interrupt is continued using the context saved in the common register.
11. The interrupt processing method according to claim 1, in, Receiving the second interrupt during execution of the first interrupt includes: receiving a command from the outside through an inter-chip interface.
12. An interrupt processing device, include: an interrupt controller configured to receive an interrupt and output the interrupt to be executed according to a priority, an identifier of the interrupt to be executed and a priority of the interrupt to be executed; A memory storing a plurality of interrupt programs; as well as A microprocessor configured to receive from the interrupt controller the interrupt to be executed, the priority of the interrupt, and an identifier of the interrupt to be executed, and to execute an interrupt program corresponding to the interrupt to be executed among the plurality of interrupt programs, Wherein, the microprocessor includes a control device, a lookup table, a common register and a special register, The control device is configured to compare the priority of the interrupt to be executed with the priority of the interrupt being executed, Wherein, the lookup table is configured to generate a register index corresponding to the priority of the interrupt to be executed based on a comparison result indicating that the priority of the interrupt to be executed is greater than the priority of the interrupt being executed, and Wherein, the microprocessor is further configured as: Based on the fact that the register index is a common index, the context of the executing interrupt being stored in the common register is stored in the memory, and an interrupt program corresponding to the interrupt to be executed is executed by using the common register; and Based on the fact that the register index is a dedicated index, the context of the executing interrupt is maintained in the common register, a dedicated register is allocated for the execution of the interrupt to be executed, and an interrupt program corresponding to the interrupt to be executed is executed by using the allocated dedicated register.
13. The interrupt processing device according to claim 12, in, The lookup table includes the public index and at least two private indexes.
14. The interrupt processing device according to claim 13, in, At least two interrupt priority levels are assigned to the common index, and a different interrupt priority level is assigned to each of the at least two private indexes.
15. The interrupt processing device of claim 14, wherein the first execution frequency of the first interrupt assigned to the common index is smaller than the second execution frequency of the second interrupt assigned to the dedicated index among the at least two dedicated indexes.
16. The interrupt processing device according to claim 15, in, Each of the common registers and the special registers includes a specific purpose register and a general purpose register, Wherein, the special purpose registers include a program counter and a status register, and The general purpose register includes a register configured to save an operation value of the execution of the first interrupt or the second interrupt.
17. The interrupt processing device according to claim 16, in, The number of the dedicated registers is greater than the number of the common registers.
18. A radio frequency integrated circuit, include: an intellectual property transceiver unit comprising a plurality of functional blocks; a latch unit including a special function register storing operation mode setting values of the plurality of function blocks; as well as an interrupt processor configured to receive a command from a master device through an inter-chip interface, process an interrupt, and generate the operation mode setting value, The interrupt processor includes an interrupt controller, a microprocessor, and a memory. wherein the interrupt controller is configured to output an interrupt, an identifier of the interrupt, and a priority corresponding to the received command, Wherein, the microprocessor includes a lookup table, a common register and a special register, wherein the lookup table is configured to allocate at least one of the common register and the dedicated register to the process of the received interrupt according to the priority of the received interrupt, and Wherein, the microprocessor is further configured as: Based on the common register being allocated, saving a context in the memory, and executing a program corresponding to the received interrupt; and Based on the dedicated register being allocated, a program corresponding to the received interrupt is executed without switching the context.
19. The radio frequency integrated circuit according to claim 18, in, The microprocessor is further configured to: A control signal is generated after executing the program of the received interrupt, the control signal is synchronized with the internal clock and is stored in the special function register.
20. The radio frequency integrated circuit according to claim 18, in, Each of the common registers and the special registers includes a specific purpose register and a general purpose register, Wherein, the special purpose registers include a program counter and a status register, and The general purpose register includes a register configured to save an operation value of the execution of the first interrupt or the second interrupt.
21. The radio frequency integrated circuit according to claim 19, in, The lookup table is configured to assign an interrupt to a dedicated index based on the interrupt having a number of execution occurrences exceeding a threshold during an operation period of the radio frequency integrated circuit.
22. A slave device, include: a memory storing instructions; as well as a processor communicatively coupled to the memory, wherein the processor is configured to execute the instructions to: receiving an interrupt command from a host device via an inter-chip interface; Executing an interrupt based on the priority of the interrupt command; changing a setting value of a special function register based on execution of the interrupt; allocating at least one of a common register and a dedicated register to an interrupt to be executed based on an execution frequency of the interrupt to be executed; Based on the dedicated register being allocated, executing the program of the interrupt to be executed without performing a context switch associated with the interrupt being executed; and Based on the common register being allocated, context switching related to the interrupt being executed is performed, and the program of the interrupt to be executed is executed.
23. The slave device according to claim 22, in, The slave device is a radio frequency integrated circuit.
24. An interrupt handling method to be executed by a processor, include: During the execution of the first interrupt using the common register, receiving a second interrupt assigned to the common register, the second interrupt having a second priority higher than the first priority of the first interrupt; Saving the context of the first interrupt in a memory; executing a first interrupt program corresponding to the second interrupt using the common register; During the execution of the third interrupt using the common register, receiving a fourth interrupt assigned to the dedicated register, wherein a fourth priority of the fourth interrupt is higher than a third priority of the third interrupt; as well as A second interrupt program corresponding to the fourth interrupt is executed using the dedicated register while the context of the third interrupt is maintained in the common register.
25. The interrupt processing method according to claim 24, further comprising: include: monitoring an execution frequency of each of a plurality of interrupts, the plurality of interrupts comprising the first interrupt, the second interrupt, the third interrupt, and the fourth interrupt; as well as A register to which each of the plurality of interrupts is to be allocated is determined based on the execution frequency.
26. The interrupt processing method according to claim 24, in, Each of the common registers and the dedicated registers includes a specific purpose register and a general purpose register, and Wherein, the interrupt processing method further includes: saving a first operation value of execution of the first interrupt in a general purpose register of the common registers; and A second operation value of the execution of the second interrupt is saved in a general purpose register of the special register.
