Backward-compatible heterogeneous multi-core processor
Patent Information
- Application Number
- PCT/US2024/025745
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2024-04-23
- Publication Date
- 2024-10-17
AI Technical Summary
Designing processors that can efficiently operate with multiple versions of instruction sets while maintaining backward compatibility is challenging, especially in heterogeneous multi-core processors where cores have different resource requirements and capabilities.
A processor architecture that includes backward-compatible processor cores for older instructions and non-backward-compatible cores for newer instructions, with control circuits managing threads to interrupt and reroute instructions from non-compatible cores to compatible cores, ensuring seamless execution across different instruction sets.
This approach allows for efficient operation with both old and new instructions, reducing size, power consumption, and improving performance by dynamically managing thread execution between cores, maintaining backward compatibility without significant penalties in terms of size, speed, or power.
Smart Images

Figure US2024025745_17102024_PF_FP_ABST
Abstract
Description
BACKWARD-COMPATIBLE HETEROGENEOUS MULTI-CORE PROCESSORFIELD
[0001] The following is related generally to the field of microprocessors (processors) and, more specifically, to multi-core processors having two or more dissimilar cores (heterogeneous processors).BACKGROUND
[0002] Microprocessors (or “processors”) are used in a wide range of electronic devices including consumer devices such as cellular phones, tablets and laptops as well as in cars, servers, telecommunication equipment and other assemblies. For example, a processor may form a Central Processing Unit (CPU) (central processor or main processor) of a computer system. Circuits of a processor may execute instructions in the form of executable code of a computer program.
[0003] Some processors include two or more cores, each of which executes instructions. Cores may have dedicated resources (e.g., one or more cache memories) and / or shared resources (e.g., shared cache(s)). Homogeneous multi-core processors include only identical cores while heterogeneous multi-core processors have nonidentical cores (e.g., at least two different types of cores).
[0004] In some cases, processors (including multi-core processors) may be capable of operating with different versions of an instruction set. For example, a processor may be capable of operating with a newer instruction set to provide enhanced capability while also being capable of operating with an older version of the instruction set to allow backward compatibility. Designing processors that are capableof operating with multiple versions of instructions sets in an efficient manner may be challenging.SUMMARY
[0005] According to one aspect of the present disclosure, there is provided a processor that includes one or more first processor cores, each first processor core is compatible with a first plurality of instructions; one or more second processor cores, each second processor core is compatible with a second plurality of instructions that is different to the first plurality of instructions; and control circuits configured to manage threads of instructions for the first and second processor cores such that when an instruction of the first plurality of instructions that is not an instruction of the second plurality of instructions is detected in a thread assigned to the one or more second processor cores, the thread is interrupted, assigned to a first processor core and executed by the first processor core.
[0006] Implementations may include the foregoing processor, wherein the first and second pluralities of instructions are different versions of instructions of an Instruction Set Architecture (ISA).
[0007] Implementations may include any of the foregoing processors, wherein the second plurality of instructions includes new instructions that are not in the first plurality of instructions.
[0008] Implementations may include any of the foregoing processors, wherein the first and second pluralities of instructions are Intel x86 instruction or reduced instruction sets.
[0009] Implementations may include any of the foregoing processors, wherein the first processor cores are backward-compatible processor cores, the first plurality of instructions includes old instructions, the second processor cores are not backwardcompatible processor cores and the second plurality of instructions does not include the old instructions.
[0010] Implementations may include any of the foregoing processors, wherein each first processor core is at least one of: larger than an individual second processor core,slower than an individual second processor core and / or more power-consuming than an individual second processor core. For example, the first processor core may be configured to process more instructions (e.g., both old and new) than the second processor core (which may process only new instructions), which may require more transistors, resulting in larger, more power consuming and / or slower circuitry.
[0011] Implementations may include any of the foregoing processors, wherein the processor includes more second processor cores than first processor cores. For example, where old instructions are expected to be fewer than new instructions, the number of first processor cores (compatible with old instructions) may be fewer than second processor cores.
[0012] Implementations may include any of the foregoing processors, wherein the control circuits are configured to cause the thread to be executed by the first and second processor cores in a privileged mode that takes priority over execution of another thread in a non-privileged mode.
[0013] Another general aspect includes a method that includes detecting an instruction of a first plurality of instructions that is not an instruction of a second plurality of instructions in a thread assigned to a second processor core that is configured for the second plurality of instructions; in response to detecting the instruction, interrupting execution of the thread by the second processor core; assigning the thread to a first processor core that is configured for the first plurality of instructions; and causing execution of the thread by the first processor core.
[0014] Implementations may include the foregoing method, wherein the first and second pluralities of instructions are different versions of pluralities of instructions of an Instruction Set Architecture (ISA).
[0015] Implementations may include any of the foregoing methods, wherein the second plurality of instructions is a later version and the first plurality of instructions includes instructions of an earlier version.
[0016] Implementations may include any of the foregoing methods, wherein the first and second pluralities of instructions are Intel x86 instructions or the first and second pluralities of instruction sets are reduced instruction sets.
[0017] Implementations may include any of the foregoing methods, wherein the first processor cores are backward-compatible processor cores, the first plurality of instructions includes old instructions, the second processor cores are not backwardcompatible processor cores and the second plurality of instructions does not include the old instructions.
[0018] Implementations may include any of the foregoing methods, wherein each first processor core is at least one of: larger than an individual second processor core, slower than an individual second processor core and / or more power-consuming than an individual second processor core.
[0019] Implementations may include any of the foregoing methods, further comprising assigning the thread to the first processor core in a privileged mode.
[0020] Another general aspect includes a processing system that includes a plurality of first processor cores, each first processor core is a backward-compatible processor core that is compatible with a broad instruction set; a plurality of second processor cores, each second processor core is compatible with a narrow instruction set that is narrower than the broad instruction set such that the broad instruction set includes a plurality of incompatible instructions that are not included in the narrow instruction set and are not compatible with the second processor cores; and control circuits configured to manage threads of instructions for processing system such that when an incompatible instruction is detected in a thread assigned to a second processor core, the thread is interrupted, assigned to a first processor core and at least the incompatible instruction is executed by the first processor core.
[0021] Implementations may include the foregoing processing system, wherein the broad instruction set and the narrow instruction set are versions of instruction sets of an Instruction Set Architecture (ISA).
[0022] Implementations may include any of the foregoing processing systems, wherein the narrow instruction set is a later version and the broad instruction set includes instructions of an earlier version.
[0023] Implementations may include any of the foregoing processing systems, wherein each first processor core is at least one of: larger than an individual second processor core, slower than an individual second processor core and / or more powerconsuming than an individual second processor core.
[0024] Implementations may include any of the foregoing processing systems, wherein each first processor core and each second processor core has a respective cache and the pluralities of first and second processor cores share a main memory.
[0025] Another general aspect includes a system that includes a mass data storage device; a network interface; and a processor, the processor including, a plurality of backward-compatible processor cores that are compatible with an instruction set which includes old instructions and new instructions; a plurality of non-backward- compatible processor cores that are compatible with a subset of the instruction set which includes the new instructions and does not include the old instructions; and control circuits configured to manage threads of instructions for the processor such that when an old instruction is detected in a thread assigned to a non-backward- compatible processor core, the thread is interrupted, assigned to a backwardcompatible processor core and at least the old instruction is executed by the backwardcompatible processor core.
[0026] Implementations may include the foregoing system, wherein each backward-compatible processor core is larger than an individual non-backward- compatible processor core.
[0027] Implementations may include any of the foregoing systems, wherein each backward-compatible processor core is slower than an individual non-backward- compatible processor core.
[0028] Implementations may include any of the foregoing systems, wherein each backward-compatible processor core is more power-consuming than an individual non-backward-compatible processor core.
[0029] Implementations may include any of the foregoing systems, wherein the instruction set and the subset are different versions of instructions of an Instruction Set Architecture (ISA).
[0030] Implementations may include any of the foregoing systems, wherein the ISA is one of: Intel x86, ARM or RISC-V.
[0031] This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used as an aid in determining the scope of the claimed subject matter. The claimed subject matter is not limited to implementations that solve any or all disadvantages noted in the Background.BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Aspects of the present disclosure are illustrated by way of example and are not limited by the accompanying Figures (FIGs) for which like references indicate the same or similar elements.
[0033] FIGs 1 A and 1 B are respectively block diagrams of a computer system and a microprocessor that can be incorporated into such a computer system.
[0034] FIGs 2A-B illustrate examples of multi-core processors.
[0035] FIGs 3A-C illustrate examples of processor cores configured for different instruction sets.
[0036] FIGs 4A-B illustrate examples of backward-compatible and non-backward- compatible multi-core processors respectively.
[0037] FIG. 5 illustrates an example of a heterogeneous multi-core processor that includes backward-compatible and non-backward-compatible cores.
[0038] FIG. 6 illustrates an example of operation of a heterogeneous multi-core processor.
[0039] FIG. 7 is an example of a method of operating a heterogeneous multi-core processor.
[0040] FIG. 8 is a block diagram of a network device that includes a heterogeneous multi-core processor.DETAILED DESCRIPTION
[0041] The following is related generally to the field of microprocessors (processors) and, more specifically, to heterogeneous multi-core processors.
[0042] It is understood that the present embodiments of the disclosure may be implemented in many different forms and that claims’ scopes should not be construed as being limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete and will fully convey the inventive embodiment concepts to those skilled in the art. Indeed, the disclosure is intended to cover alternatives, modifications, and equivalents of these embodiments, which are included within the scope and spirit of the disclosure as defined by the appended claims. Furthermore, in the following detailed description of the present embodiments of the disclosure, numerous specific details are set forth in order to provide a thorough understanding. However, it will be clear to those of ordinary skill in the art that the present embodiments of the disclosure may be practiced without such specific details.
[0043] Figures 1A and 1 B are respectively block diagrams of a computer system and a microprocessor such as can be incorporated into such a computer system. In the simplified representation of Figure 1A, the computer system 100 includes a computer 105, one or more input devices 101 and one or more output devices 103. Common examples of input devices 101 include a keyboard or mouse. Common examples of output devices 103 include monitors or printers. The computer 105 includes memory 107 and microprocessor 120, where in this simplified representation the memory 107 is represented as a single block. The memory 107 can include ROMmemory, RAM memory and non-volatile memory and, depending on the embodiment, include separate memory for data and instructions.
[0044] FIG. 1 B illustrates one embodiment for the microprocessor 120 of Figure 1A and also includes memory 107. Microprocessor 120 may be created and evaluated for use in computer system 100 using a simulator, which may comprise any number of Electronic Design Automation (EDA) tools, custom simulators, or Hardware Description Languages (HDLs).
[0045] In the representation of Figure 1 B, the microprocessor 120 includes control logic 125, a processing block 140, an input interface 121 , and an output interface 123. The dashed lines represent control signals exchanged between the control logic 125 and the other elements of the microprocessor 120 and the memory 107. The solid lines represent the flow of data and instructions within the microprocessor 120 and between the microprocessor 120 and memory 107.
[0046] The processing block 140 may include combinatorial logic 143 that is configured to execute instructions and registers 141 in which the combinatorial logic stores instructions and data while executing these instructions. In the simplified representation of Figure 1 B, specific elements or units, such as an arithmetic and logic unit (ALU), floating point unit, and other specific elements commonly used in executing instructions are not explicitly shown in the combinatorial logic 143 block. The combinatorial logic 143 is connected to the memory 107 to receive and execute instruction and supply back the results. The combinatorial logic 143 is also connected to the input interface 121 to receive input from input devices 101 or other sources and to the output interface 123 to provide output to output devices 103 or other destinations. The processing block 140, including combinatorial logic 143 and registers 141 , may be considered the core of microprocessor 120.
[0047] Figure 2A schematically illustrates an embodiment of a multi-core processor 220. In contrast to the single-core example of Figure 1 B, multi-core processor 220 includes n cores (Core 1 , Core 2 ... Core n) each of which may be similar to processing block 140 (e.g., each core may include registers, combinatorial logic and / or components such as an arithmetic and logic unit (ALU), floating point unit, etc.). Each core has one or more levels of cache, which is / are dedicated to the respective coreand also has access to main memory 107, which is shared by all cores. Multi-core processor 220 also includes control circuits 222, which are configured to control cores 1 -n. For example, control circuits 222 may include a scheduler that schedules execution of instructions by cores 1 - n. In an example, machine code to be executed by processor 220 is made up of threads, with each thread including multiple instructions. Control circuits 222 may assign threads to cores 1 - n in any suitable manner (e.g., maintaining one or more queues and monitoring ready / busy status of cores 1 - n).
[0048] Figure 2B shows an example of a heterogeneous multi-core processor 230. In contrast to multi-core processor 220 in which cores 1 - n are identical, the cores of heterogeneous multi-core processor 230 are not identical. In this example, there are m cores of a first (Corel ) type (Core1_1 to Core1_m) and n cores of a second (Core2) type (Core2_1 to Core2_n). Each core has a respective cache (one or more levels of cache), which is / are dedicated to the respective core and also has access to main memory 107. Control circuits 232 may assign threads for execution by all cores (Corel and Core2 cores). In an example of a heterogeneous multi-core processor, a first type core (Corel ) may be compatible with a first Instruction Set Architecture (ISA) and a second type core (Core2) may be compatible with a second ISA so that the combination provides a processor that is compatible with two ISAs.
[0049] A core may be compatible with a finite set of instructions that may be defined by an ISA. Examples of ISAs include the Intel x86 ISA, ARM ISA and RISC-V (Reduced Instruction Set Computing - V) ISA. Instructions that are not in the finite set of instructions for a core may be incompatible with the core and may not be executable by the core (e.g., may cause a failure). A core that is compatible with only a small number of instructions (narrow instruction set) may have some advantages over a core that is compatible with a large number of instructions (broad instruction set). For example, a core that is compatible with a smaller number of instructions may be smaller, faster and / or consume less power than a similar core that is compatible with a larger number of instructions. In an example, different instruction sets may correspond to different versions of an ISA (e.g., an earlier version and a later version).
[0050] Figures 3A-B illustrate examples of cores that are compatible with broad and narrow instruction sets respectively.
[0051] Figure 3A shows an example of a first core, Corel , which is compatible with a broad instruction set 340 (first instruction set) that includes first instructions 342 and second instructions 344. For example, first instructions 342 may include old instructions (an old instruction set) and second instructions 344 may include new instructions (a new instruction set), with both old and new instructions being from the the same ISA such as X86. For example, first instructions 342 and second instructions 344 may correspond to different versions of a common ISA such as an older version with older 32-bit instructions and a newer version with newer 64-bit instructions. The 32-bit and 64-bit formats may share commonalities. For example, first instructions 342 may be based on ARM 32-bit ISA while second instructions 344 may be based on ARM 64-bit ISA. In another example, first instructions 342 and second instructions 344 correspond to different ISAs, for example, first instructions 342 may be X86 instructions and second instructions 344 may be ARM instructions.
[0052] Figure 3B shows an example of a second core, Core2, which is compatible with a narrow instruction set 346 (second instruction set) that includes second instructions 344 and does not include first instructions 342. Core2 may be smaller, faster and / or more power efficient than Corel .
[0053] Figure 3C shows an example implementation of a core 350 (e.g., Corel or Core2) including an interface 351 , which enables communication with external components (e.g., control circuits, main memory and one or more levels of cache) and a pre-decode circuit 352, which is configured to receive instructions (e.g. in a thread assigned by control circuits) and place them in an instruction cache 354. Instructions are transferred from instruction cache 354, via instruction buffer 356, to decode circuit 358, which may decode instructions, rename instructions as appropriate and dispatch instructions to appropriate functional units. Decode circuit 358 may identify floating point instructions and dispatch them to floating point instruction buffers 360 for execution by functional units 364 in conjunction with floating point register file 366. Functional units 364 (also referred to as execute units) may include multiple functional units each of which includes circuits configured to perform instructions (e.g., operations and calculations) forwarded from instruction buffer 360. Each functional unit may have its own internal control sequencer, one or more internal registers, and other internal circuits such as an arithmetic logic circuit, address generationcircuit, floating-point circuit, load-store circuit, branch execution circuit and / or other components. Decode circuit 358 may identify integer / address instructions and dispatch them to integer / address instruction buffers 362 for execution by functional units 368 in conjunction with integer register file 370. Results of operations performed by functional units 364, 368 may be output via interface 351 . Other instructions may be identified and dispatched as appropriate and the present technology is not limited to any particular types of instructions. Reorder and commit circuit 372 may allow reordering of instructions and between instruction buffers 360, 362, functional units 364, 368 and associated register files 366, 370.
[0054] While the components of different cores (e.g., Corel and Core2) may be similar, in some cases, one or more components may be different in size and / or power consumption and / or performance between different cores depending on how they are configured. For example, where Corel is compatible with a larger instruction set, this may cause one or more of the components (e.g., one or more of interface 351 , predecode circuit 352, instruction cache 354, instruction buffer 356, decode circuit 358, instruction buffers 360 and 362, functional units 364 and 368, register files 366 and 370, and / or reorder and commit circuit 372) to be larger.
[0055] In an example, broad instruction set 340 and narrow instruction set 346 are instruction sets corresponding to a common ISA. For example, in some cases, certain older instructions may be included in an instruction set for backward compatibility. In an example, first instructions 342 may be old instructions so that Corel may be considered a backward-compatible processor core because it is compatible with first (old) instructions 342 in addition to second instructions 344 (which may include new instructions). In contrast, Core2 may be considered a non-backward-compatible processor core because it is only compatible with second instructions 344 and not first instructions 342. For example, first instructions 342 may be 32 bit instructions and second instructions 344 may be 64 bit instructions so that Corel is backward compatible with 32 bit instructions (in addition to 64 bit instructions) while Core2 is not backward compatible (limited to 64 bit). Pre-decode circuit 352 and / or decode circuit 358 in a backward-compatible processor core (Corel ) may be configured to parse an instruction to determine if it is a 32 bit or 64 bit instruction and to dispatch instructions accordingly (e.g., one or more fields in an instruction may be read to determine thetype of instruction). Functional units 364, 368 may be configured for 32 and 64 bit operations. In contrast, such a determination may not be made in a non-backward- compatible processor core (Core2) because all instructions may be assumed to be 64 bit instructions. If a 32 bit instruction is received by a non-backward-compatible processor core it may result in a failure which may be communicated to the control circuits. While the example of 32 and 64 bit instructions are provided as an example, first and second instructions may correspond to any n bit instructions and m bit instructions of an ISA where m is greater than n (e.g. 8 and 16, 16 and 32 or 64 and 128) and / or may correspond to instructions that are different in other ways.
[0056] Figures 4A-B show examples of multi-core processors that use different cores (e.g., Corel and Core2 of Figures 3A-B respectively). Figure 4A shows backward-compatible processor 450 which includes a plurality of cores of a first type (Corel ). For example, Corel cores may be compatible with a broad instruction set (e.g., broad instruction set 340) that includes some old instructions (e.g., first instructions 342).
[0057] Figure 4B shows non-backward-compatible processor 452 which includes a plurality of cores of a second type (Core2). For example, Core2 cores may be compatible with a narrow instruction set (e.g., narrow instruction set 346) that does not include old instructions (e.g., does not include first instructions 342).
[0058] It may be desirable to obtain some of the advantages provided by non- backward-compatible processor cores such as Core2 (e.g., reduced area and / or power and / or increased performance) while maintaining backward-compatibility. Aspects of the present technology are directed to technical solutions to problems associated with maintaining backward-compatibility in an efficient manner (e.g., without paying an unnecessarily large penalty in terms of size, speed and / or power).
[0059] Figure 5 shows an example of a backward-compatible multi-core processor 560 that combines different cores including two backward-compatible processor cores (Corel ) and multiple (more than four) non-backward-compatible processor cores (Core2). In the example shown, the number of non-backward-compatible processor cores (more than 4) exceeds the number of backward-compatible processor cores (2) so that circuit area (and / or power) may be significantly reduced compared with theexample of Figure 4A and performance may be improved. Unlike the example of Figure 4B, backward-compatibility is provided by the backward-compatible processor cores (Corel ). For example, where the total number of cores is 10 in the examples of Figure 4A(10 backward-compatible cores) and Figure 5 (2 backward-compatible cores and 8 non-backward-compatible cores) and non-backward-compatible processor cores (Core2) are 10% smaller than backward-compatible processor cores, 8 of 10 cores are reduced by 10% for a total size reduction of 8% (which may be accompanied by a reduction in power consumption and / or an increase in speed). While not as great a reduction as provided by having all non-backward-compatible processor cores (e.g., non-backward-compatible processor 452 of Figure 4B may be 10% smaller than backward-compatible processor 450), a reduction of 8% with backward-compatibility may be preferable to a 10% reduction at the cost of backward-compatibility. The number of backward-compatible cores may be selected according to the number of threads that are expected to include incompatible or old instructions, which may be relatively small (e.g., a relatively small number of bigger backward compatible cores as in FIG. 5 may be well adapted to new programs to be compiled to the new instructions such as 64-bit instructions, with program execution predominantly comprising execution of new instructions and with execution of old instructions being relatively rare).
[0060] Figure 6 illustrates an example of operation of backward-compatible multicore processor when an old instruction (e.g., instruction from first instructions 342) is received by a core that is not backward-compatible (e.g., Core2). A thread 670 includes both one or more incompatible instructions 670b (e.g., instructions from first instructions 342) and compatible instructions 670a, 670c, 670d (e.g., instructions from second instructions 344). Thread 670 is initially assigned to Core2 (e.g., by a scheduler or other component of control circuits 232) according to a scheduling algorithm (e.g., based on availability of different cores). Compatible instructions 670a of thread 670 are executed by Core2 in a user mode. Subsequently one or more incompatible instruction 670b (shaded) is detected and an interrupt is triggered 672 (e.g., Core2 may receive incompatible instruction(s) 670b and indicate a failure). In response to the interrupt, the Operating System (OS) marks thread 670 (e.g., marks as including one or more incompatible instructions which require a compatible core) and migratesthread 670 to a backward-compatible processor core (Corel ) 674, which continues execution of thread 670 including incompatible instruction(s) 670b. The OS operates in a privileged mode (kernel mode) to perform migration while execution is performed in user mode by Corel and Core2. For example, privileged mode may be an operational state with higher priority than other operational states and may allow interruption of execution of another thread with lower priority (e.g., in a non-privileged mode). Privileged mode may be the highest priority operational state (e.g., unrestricted privileges) and may enable the OS to access all hardware resources including all cores.
[0061] Corel may monitor instructions of thread 670 and may indicate if / when a compatible instruction is received. For example, Figure 6 shows detection of a compatible instruction 678 when Corel receives and executes compatible instruction(s) 670c. In response, the OS (in kernel mode) unmarks thread 670 and can migrate thread 670 back to Core2 680. Figure 6 shows subsequent compatible instructions 670d executed by Core2 (which may be the same core as before or another non-backward-compatible processor core). Alternatively, execution of thread 670 may continue on Corel as shown by block 682. Migration back to a non-backward- compatible processor core is not required and, if performed, may be done at any convenient time (e.g., at switching time). In some examples, a thread may remain marked after execution so that if the same thread is subsequently executed it may be scheduled for execution by a backward-compatible core. In some cases, a scheduler may obtain information on which threads do / do not include incompatible instructions and may schedule different cores accordingly.
[0062] Figure 7 illustrates an example of a method that includes detecting an instruction of a first plurality of instructions that is not an instruction of a second plurality of instructions in a thread assigned to a second processor core that is configured for the second plurality of instructions 790 (e.g., detecting incompatible instruction 670b in thread 670, which is assigned to Core2). The method further includes, in response to detecting the instruction, interrupting execution of the thread by the second processor core 792 (e.g., trigger interrupt 672), assigning the thread to a first processor core that is configured for the first plurality of instructions 794 (e.g., OS migrates threadto backward-compatible processor core (Corel ) 674) and causing execution of the thread by the first processor core (e.g., Core 1 executes at least instruction(s) 670b of thread 670).
[0063] A backward-compatible heterogeneous multi-core processor such as processor 560 may be used in any suitable system or device (including as microprocessor 120 in computer 105 of Figure 1A). Figure 8 is a block diagram of a network processing device that can be used to implement various embodiments. Specific network devices may utilize all of the components shown, or only a subset of the components, and levels of integration may vary from device to device. Furthermore, network device 800 may contain multiple instances of a component, such as multiple processing units, processors, memories, transmitters, receivers, etc.
[0064] The network device 800 (processing device or processing system) may be equipped with one or more input / output devices, such as network interfaces, storage interfaces, and the like. The processing device may include a central processing unit (CPU) 810, a memory 820, a mass data storage device 830, and an I / O interface 860 connected to a bus 870. The bus 870 may be one or more of any type of several bus architectures including a memory bus or memory controller, a peripheral bus, or the like. A network interface 850 enables the network processing device to communicate over a network 880 with other processing devices such as those described herein. The I / O interface may be connected to a display device , mouse, keyboard and / or an image capture device (as known in the art).
[0065] The CPU 810 may comprise any type of electronic data processor (e.g., a heterogeneous multi-core processor such as backward-compatible processor 560). Memory 820 may comprise any type of system memory such as static random-access memory (SRAM), dynamic random-access memory (DRAM), synchronous DRAM (SDRAM), read-only memory (ROM), a combination thereof, or the like. In an embodiment, memory 820 may include ROM for use at boot-up, and DRAM for program and data storage for use while executing programs. In embodiments, the memory 820 is transitory. In one embodiment, the memory 820 includes computer readable instructions that are executed by the CPU 810 to implement embodiments of the disclosed technology.
[0066] The mass data storage device 830 may comprise any type of storage device configured to store data, programs, and other information and to make the data, programs, and other information accessible via the bus 870. The mass data storage device 830 may comprise, for example, one or more of a solid-state drive, hard disk drive, a magnetic disk drive, an optical disk drive, or the like. The mass data storage device 830 may also include code comprising instructions for the CPU (e.g., machine language instructions of first instructions 342 and second instructions 344).
[0067] For purposes of this document, reference in the specification to “an embodiment,” “one embodiment,” “some embodiments,” or “another embodiment” may be used to describe different embodiments or the same embodiment.
[0068] For the purposes of this document, a connection may be a direct connection or an indirect connection (e.g., via one or more other parts). In some cases, when an element is referred to as being connected or coupled to another element, the element may be directly connected to the other element or indirectly connected to the other element via intervening elements. When an element is referred to as being directly connected to another element, then there are no intervening elements between the element and the other element. Two devices are “in communication” if they are directly or indirectly connected so that they can communicate electronic signals between them.
[0069] Although the present disclosure has been described with reference to specific features and embodiments thereof, it is evident that various modifications and combinations can be made thereto without departing from the scope of the disclosure. The specification and drawings are, accordingly, to be regarded simply as an illustration of the disclosure as defined by the appended claims, and are contemplated to cover any and all modifications, variations, combinations, or equivalents that fall within the scope of the present disclosure.
[0070] The technology described herein can be implemented using hardware, software, or a combination of both hardware and software. The software used is stored on one or more of the processor readable storage devices described above to program one or more of the processors to perform the functions described herein. The processor readable storage devices can include computer readable media such asvolatile and non-volatile media, removable and non-removable media. By way of example, and not limitation, computer readable media may comprise computer readable storage media and communication media. Computer readable storage media may be implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Examples of computer readable storage media include RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information, and which can be accessed by a computer. A computer readable medium or media does (do) not include propagated, modulated, or transitory signals.
[0071] Communication media typically embodies computer readable instructions, data structures, program modules or other data in a propagated, modulated, or transitory data signal such as a carrier wave or other transport mechanism and includes any information delivery media. The term “modulated data signal” means a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal. By way of example, and not limitation, communication media includes wired media such as a wired network or direct-wired connection, and wireless media such as RF and other wireless media. Combinations of any of the above are also included within the scope of computer readable media.
[0072] In alternative embodiments, some or all of the software can be replaced by dedicated hardware logic components. For example, and without limitation, illustrative types of hardware logic components that can be used include Field-programmable Gate Arrays (FPGAs), Application-specific Integrated Circuits (ASICs), Applicationspecific Standard Products (ASSPs), System-on-a-chip systems (SOCs), Complex Programmable Logic Devices (CPLDs), special purpose computers, etc. In one embodiment, software (stored on a storage device) implementing one or more embodiments is used to program one or more processors. The one or more processors can be in communication with one or more computer readable media / storage devices, peripherals and / or communication interfaces.
[0073] It is understood that the present subject matter may be embodied in many different forms and should not be construed as being limited to the embodiments set forth herein. Rather, these embodiments are provided so that this subject matter will be thorough and complete and will fully convey the disclosure to those skilled in the art. Indeed, the subject matter is intended to cover alternatives, modifications, and equivalents of these embodiments, which are included within the scope and spirit of the subject matter as defined by the appended claims. Furthermore, in the following detailed description of the present subject matter, numerous specific details are set forth in order to provide a thorough understanding of the present subject matter. However, it will be clear to those of ordinary skill in the art that the present subject matter may be practiced without such specific details.
[0074] Aspects of the present disclosure are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatuses (systems) and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general-purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable instruction execution apparatus, create a mechanism for implementing the functions / acts specified in the flowchart and / or block diagram block or blocks.
[0075] The description of the present disclosure has been presented for purposes of illustration and description but is not intended to be exhaustive or limited to the disclosure in the form disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the disclosure. The aspects of the disclosure herein were chosen and described in order to best explain the principles of the disclosure and the practical application, and to enable others of ordinary skill in the art to understand the disclosure with various modifications as are suited to the particular use contemplated.
[0076] For purposes of this document, each process associated with the disclosed technology may be performed continuously and by one or more computing devices. Each step in a process may be performed by the same or different computing devices as those used in other steps, and each step need not necessarily be performed by a single computing device.
[0077] Although the subject matter has been described in language specific to structural features and / or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.
Claims
CLAIMSWhat is claimed is:1 . A processor, comprising one or more first processor cores, each first processor core is compatible with a first plurality of instructions; one or more second processor cores, each second processor core is compatible with a second plurality of instructions that is different to the first plurality of instructions; and control circuits configured to manage threads of instructions for the first and second processor cores such that when an instruction of the first plurality of instructions that is not an instruction of the second plurality of instructions is detected in a thread assigned to the one or more second processor cores, the thread is interrupted, assigned to a first processor core and executed by the first processor core.
2. The processor of claim 1 , wherein the first and second pluralities of instructions are different versions of instructions of an Instruction Set Architecture (ISA).
3. The processor of claim 2, wherein the second plurality of instructions includes new instructions that are not in the first plurality of instructions.
4. The processor of claim 3, wherein the first and second pluralities of instructions are Intel x86 instruction or the first and second pluralities of instructions are reduced instruction sets.
5. The processor of any of claim 1 through 4, wherein the first processor cores are backward-compatible processor cores, the first plurality of instructions includes old instructions, the second processor cores are not backward-compatible processor cores and the second plurality of instructions does not include the old instructions.
6. The processor of claim 5, wherein each first processor core is at least one of: larger than an individual second processor core, slower than an individual secondprocessor core and / or more power-consuming than an individual second processor core.
7. The processor of any of claim 1 through 6, wherein the processor includes more second processor cores than first processor cores.
8. The processor of any of claim 1 through 6, wherein the control circuits are configured to cause the thread to be executed by the first processor and the second processor core in a privileged mode that takes priority over execution of another thread in a non-privileged mode.
9. A method of operating a multi-core processor comprising: detecting an instruction of a first plurality of instructions that is not an instruction of a second plurality of instructions in a thread assigned to a second processor core that is configured for the second plurality of instructions; in response to detecting the instruction, interrupting execution of the thread by the second processor core; assigning the thread to a first processor core that is configured for the first plurality of instructions; and causing execution of the thread by the first processor core.
10. The method of claim 9, wherein the first and second pluralities of instructions are different versions of pluralities of instructions of an Instruction Set Architecture (ISA).11 . The method of claim 10, wherein the second plurality of instructions is a later version and the first plurality of instructions includes instructions of an earlier version.
12. The method of any of claim 9 through 11 , wherein the first and second pluralities of instructions are Intel x86 instructions or the first and second pluralities of instruction sets are reduced instruction sets.
13. The method of claim 9, wherein the first processor cores are backwardcompatible processor cores, the first plurality of instructions includes old instructions, the second processor cores are not backward-compatible processor cores and the second plurality of instructions does not include the old instructions.
14. The method of claim 13, wherein each first processor core is at least one of: larger than an individual second processor core, slower than an individual second processor core and / or more power-consuming than an individual second processor core.
15. The method of any of claim 9 through 14, further comprising assigning the thread to the first processor core in a privileged mode.
16. A processing system, comprising: a plurality of first processor cores, each first processor core is a backwardcompatible processor core that is compatible with a broad instruction set; a plurality of second processor cores, each second processor core is compatible with a narrow instruction set that is narrower than the broad instruction set such that the broad instruction set includes a plurality of incompatible instructions that are not included in the narrow instruction set and are not compatible with the second processor cores; and control circuits configured to manage threads of instructions for processing system such that when an incompatible instruction is detected in a thread assigned to a second processor core, the thread is interrupted, assigned to a first processor core and at least the incompatible instruction is executed by the first processor core.
17. The processing system of claim 16, wherein the broad instruction set and the narrow instruction set are versions of instruction sets of an Instruction Set Architecture (ISA).
18. The processing system of claim 17, wherein the narrow instruction set is a later version and the broad instruction set includes instructions of an earlier version.
19. The processing system of any of claim 16 through 18, wherein each first processor core is at least one of: larger than an individual second processor core, slower than an individual second processor core and / or more power-consuming than an individual second processor core.
20. The processing system of any of claim 16 through 19, wherein each first processor core and each second processor core has a respective cache and the pluralities of first and second processor cores share a main memory.
21. A system, comprising: a mass data storage device; a network interface; and a processor, the processor including, a plurality of backward-compatible processor cores that are compatible with an instruction set which includes old instructions and new instructions; a plurality of non-backward-compatible processor cores that are compatible with a subset of the instruction set which includes the new instructions and does not include the old instructions; and control circuits configured to manage threads of instructions for the processor such that when an old instruction is detected in a thread assigned to a non-backward-compatible processor core, the thread is interrupted, assigned to a backward-compatible processor core and at least the old instruction is executed by the backward-compatible processor core.
22. The system of claim 21 , wherein each backward-compatible processor core is larger than an individual non-backward-compatible processor core.
23. The system of claim 21 , wherein each backward-compatible processor core is slower than an individual non-backward-compatible processor core.
24. The system of claim 21 , wherein each backward-compatible processor core is more power-consuming than an individual non-backward-compatible processor core.
25. The system of any of claim 21 through 24, wherein the instruction set and the subset are different versions of instructions of an Instruction Set Architecture (ISA).
26. The system of claim 25, wherein the ISA is one of: Intel x86, ARM or RISC-V.
Citation Information
Patent Citations
Thread migration support for architectually different cores
US20140181830A1
Processor core supporting a heterogeneous system instruction set architecture
US20190042258A1
