Circuit and method for realizing system power control based on battery thermal limitation and impedance
By monitoring the voltage, current and impedance of the battery and adjusting the power of the hardware processor, the problem of battery attenuation and shortened life due to Joule heat is solved, and the battery life is extended.
Patent Information
- Application Number
- CN202410225406.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-12-21
- Filing Date
- 2024-02-29
- Publication Date
- 2024-10-01
AI Technical Summary
In the long-term continuous power boost mode, the battery attenuates due to Joule heat, resulting in shortened battery life, and existing technology cannot effectively control battery attenuation and life issues.
Monitor the voltage, current and impedance of the battery through the power management circuit, determine the heat dissipation of the battery, adjust the power without exceeding the heat limit, and control the power of the hardware processor to reduce battery degradation.
It effectively prevents battery life from being shortened in continuous power mode, reduces battery attenuation, and extends battery life.
Smart Images

Figure CN118739459A_ABST
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This patent application claims the benefit of U.S. Provisional Patent Application Serial No. 63 / 493,677, filed on March 31, 2023, which is incorporated herein by reference in its entirety. Technical Field
[0003] The present disclosure relates to the field of batteries, and more particularly to a circuit and method for implementing system power control based on battery thermal limitation and impedance. Background Art
[0004] A processor or a group of processors executes instructions in an instruction set (e.g., an instruction set architecture (ISA)). The instruction set is the programming-related part of a computer architecture and typically includes native data types, instructions, register architecture, addressing modes, memory architecture, interrupt and exception handling, and external input and output (I / O). It should be noted that the term instruction herein may refer to macroinstructions (e.g., instructions provided to a processor for execution), or may refer to microinstructions (e.g., instructions generated by a processor's decoder after decoding macroinstructions). Summary of the invention
[0005] One aspect of the present application provides an apparatus, comprising: a hardware processor, the hardware processor including a continuous power mode; and a power management circuit coupled to a battery, wherein the power management circuit is used to: determine the amount of heat dissipated by the battery over time when the hardware processor is in the continuous power mode; and control the power provided to the hardware processor in the continuous power mode without exceeding a limit on the amount of heat dissipated by the battery over time.
[0006] One aspect of the present application provides a method, comprising: determining, by a power management circuit, the amount of heat dissipated over time by a battery coupled to a hardware processor when the hardware processor is in a continuous power mode; and controlling, by the power management circuit, the power provided to the hardware processor in the continuous power mode without exceeding a limit on the amount of heat dissipated by the battery over time.
[0007] One aspect of the present application provides a system comprising: a battery; a hardware processor, the hardware processor comprising a continuous power mode, the hardware processor being coupled to the battery; and a power management circuit for: determining the amount of heat dissipated by the battery over time when the hardware processor is in the continuous power mode; and controlling the power provided to the hardware processor in the continuous power mode without exceeding a limit on the amount of heat dissipated by the battery over time. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] Various examples according to the present disclosure will be described with reference to the accompanying drawings, in which:
[0009] Figure 1 A system including a system on a chip (SoC) having a hardware processor including a power manager (eg, circuit) according to an example of the present disclosure is shown.
[0010] Figure 2 A block diagram of a hardware processor core with a power management agent (eg, circuit) coupled to a power source (eg, battery) is shown according to examples of the present disclosure.
[0011] Figure 3 Graphs of battery voltage variation over time are shown for open circuit voltage, when powering a processor (e.g., core) in continuous (e.g., boost) (e.g., turbo) mode, and battery thermal limit (e.g., battery thermal limit derived from cooling capability) according to examples of the present disclosure.
[0012] Figure 4 Example operations of a continuous (eg, boost) (eg, turbo) mode controller (eg, circuit) for controlling continuous (eg, boost) (eg, turbo) mode power without exceeding battery thermal limits according to examples of the present disclosure are shown.
[0013] Figure 5 Graphs of battery voltage variation over time are shown for an open circuit voltage, a low impedance battery, and a reference battery according to examples of the present disclosure.
[0014] Figure 6 Example operations of a continuous (e.g., boost) (e.g., turbo) mode controller (e.g., circuit) for controlling continuous (e.g., boost) (e.g., turbo) mode power without exceeding battery thermal limitations according to examples of the present disclosure are shown.
[0015] Figure 7 Example operations of a method for controlling power provided to a hardware processor in a continuous (eg, boost) power mode without exceeding a limit on heat dissipation of a battery over time according to examples of the present disclosure are shown.
[0016] Figure 8 An example computing system is shown.
[0017] Fig. 9 A block diagram of an example processor and / or system on a chip (SoC) that may have one or more cores and an integrated memory controller is shown.
[0018] Fig.10 is a block diagram illustrating a computing system 1000 configured to implement one or more aspects of the examples described herein.
[0019] Fig.11A An example of a parallel processor is shown.
[0020] Fig. 11B An example of a block diagram of a partition unit is shown.
[0021] Fig. 11C An example of a block diagram of a processing cluster within a parallel processing unit is shown.
[0022] Fig.11D An example of a graphics multiprocessor is shown, where the graphics multiprocessor is coupled with a pipeline manager of a processing cluster.
[0023] FIG. 12A to FIG. 12C Additional graphics multiprocessors are shown according to examples.
[0024] Fig.13 A parallel computing system 1300 is shown according to some examples.
[0025] FIG. 14A to FIG. 14B A hybrid logical / physical view of a factorized parallel processor according to examples described herein is shown.
[0026] Fig.15A is a block diagram illustrating both an example in-order pipeline and an example register renaming, out-of-order issue / execution pipeline according to an example.
[0027] Fig. 15B is a block diagram illustrating both an example in-order architecture core and an example register renaming, out-of-order issue / execution architecture core to be included in a processor according to an example.
[0028] Fig.16 An example of an execution unit circuit such as an execution unit circuit is shown.
[0029] Fig.17 is a block diagram of a register architecture according to some examples.
[0030] Fig.18 An example of the instruction format is shown.
[0031] Fig.19 An example of an addressing information field is shown.
[0032] Fig. 20 An example of a first prefix is shown.
[0033] FIG. 21A to FIG. 21D An example of how the R, X, and B fields of the first prefix are used is shown.
[0034] FIG. 22A to FIG. 22B An example of a second prefix is shown.
[0035] Fig.23 An example of a third prefix is shown.
[0036] FIG. 24A to FIG. 24B Thread execution logic including an array of processing elements employed in a graphics processor core is shown according to examples described herein.
[0037] Fig.25 Additional execution units according to examples are shown.
[0038] Fig.26 is a block diagram illustrating a graphics processor instruction format 2600 according to some examples.
[0039] Fig. 27 is a block diagram of another example of a graphics processor.
[0040] Fig.28A is a block diagram illustrating a graphics processor command format according to some examples.
[0041] Fig.28B is a block diagram illustrating a graphics processor command sequence according to an example.
[0042] Fig.29 is a block diagram illustrating converting binary instructions in a source ISA to binary instructions in a target ISA using a software instruction converter according to an example.
[0043] Fig.30 is a block diagram illustrating an IP core development system 3000 that may be used to fabricate an integrated circuit to perform operations according to some examples. DETAILED DESCRIPTION
[0044] The present disclosure relates to methods, apparatus, systems, and non-transitory computer-readable storage media for power control through thermal limitations and / or impedance of a battery. In some examples, a processor (e.g., a central processing unit (CPU)) includes a power manager (e.g., a power management circuit) to allow the processor (e.g., the CPU) to run at its base clock speed when processing a light workload, and then switch (e.g., "boost") to a higher clock speed when processing a heavier workload. In some examples, running at a lower clock rate (e.g., the number of cycles executed by the processor per second) allows the processor to use less power, which can reduce heat and have a positive impact on the battery life of certain electronic devices (e.g., laptops). However, when faster speeds are required, such a power manager (e.g., a power management circuit) may not be able to run at a higher clock speed. Turbo Boost technology) will dynamically increase the clock speed to compensate. This is sometimes called "algorithmic overclocking".
[0045] In some examples, the battery is a rechargeable battery on an electronic device, such as a battery of a smartphone, a battery of a tablet computer, or a battery of a laptop computer. In some examples, the voltage of the (e.g., charged) battery is approximately 11 volts (V) to 15V, such as 11.1V or 14.8V.
[0046] In some examples, there are several power boost (e.g., turbo) modes, such as, but not limited to: power limit 4 (PL4) (e.g., highest power for a short period of time (e.g., multiple milliseconds (ms))); PL2 (e.g., second highest power for a medium period of time (e.g., 10 seconds (s))); and PL1 (e.g., third highest power for a longer (e.g., continuous) period of time (e.g., infinite continuous time)). In some examples, the power setting of the power boost mode (e.g., PL1) should not be higher than the cooling limit of the thermal solution, for example, but the power can be "boosted" to exceed the base power (e.g., thermal design power) of the processor (e.g., CPU). In some examples, PL1 can technically be continuous without exceeding the thermal budget of the processor (e.g., CPU). However, in some examples, when powered by a battery (e.g., completely powered by a battery) (e.g., a direct current (DC) operating mode), during a power boost (e.g., turbo) mode (e.g., PL4 / PL2 / PL1) of a processor (e.g., CPU), the battery temperature increases due to Joule heating caused by battery impedance (e.g., resistance and / or reactance). Due to the nature of chemical decay, high battery temperatures accelerate battery decay. As the battery decays, the temperature rise is higher and the impedance increases. Therefore, there is a problem of battery decay in certain power boost (e.g., PLx) modes, but there is no solution to mitigate battery decay (e.g., increase in battery impedance) while controlling the boost mode (e.g., turbo) power (e.g., continuous boost mode, such as PL1). There is also a problem of shortened battery life with the use of certain high continuous boost modes (e.g., PL1) when powered by a battery (e.g., rather than powered by connecting to alternating current (AC) (e.g., a wall outlet)).
[0047] In some examples, the technical problem is battery degradation due to Joule heating during long continuous boost mode (e.g., PL1) power cycles, and shortened life under high continuous boost mode (e.g., PL1) usage. Examples herein provide technical solutions to these technical problems, for example, preventing shortened battery life when using continuous boost mode (e.g., PL1) for battery power.
[0048] Certain examples herein (e.g., certain examples of power management circuits) monitor at least one of: a change in battery voltage from an open circuit voltage (OCV), a current (e.g., a battery current), and an impedance (e.g., a battery impedance) during a continuous power boost (e.g., turbo) mode.
[0049] Certain examples herein determine the amount of heat dissipated by a battery over time (e.g., current multiplied by energy lost in resistance, (e.g., I*R), e.g., voltage drop) and control continuous boost (e.g., turbo) of power (e.g., PL1) without exceeding a thermal limit over time.
[0050] Certain examples herein utilize a power mode (e.g., PL1) that provides power to a processor (e.g., CPU) based on thermal limits of a battery providing electrical energy, e.g., in addition to providing power based on thermal limits of a processor (e.g., CPU). Certain examples herein adjust (e.g., instantaneously) boost (e.g., turbo) power based on thermal limits and / or impedance of the battery, thereby enabling faster control of battery temperature compared to adjusting boost (e.g., turbo) power based on monitored temperature (e.g., battery temperature), the monitored temperature having a delay relative to power changes, e.g., because the temperature response to increased (e.g., boosted) power has a delay due to low thermal conductivity of battery materials (e.g., lithium cobalt oxide).
[0051] In some examples, the technical problem is battery degradation caused by Joule heating during long continuous power mode (e.g., boost and / or non-boost) power cycles, and shortened battery life under high continuous power mode usage. The examples herein provide technical solutions to these technical problems, for example, preventing battery life from being shortened when using continuous power modes for battery power. There is also the problem of battery degradation in some continuous power (e.g., boost and / or non-boost) modes, but there is no solution to mitigate battery degradation (e.g., battery impedance increase) while controlling continuous mode power.
[0052] Certain examples herein (eg, certain examples of power management circuits) monitor at least one of: a change in battery voltage from an open circuit voltage (OCV), a current (eg, a battery current), and an impedance (eg, a battery impedance) during a continuous power mode.
[0053] Certain examples herein determine the amount of heat dissipated by a battery over time (e.g., current multiplied by energy lost in resistance, (e.g., I*R), e.g., voltage drop) and control continuous power without exceeding a thermal limit over time.
[0054] Certain examples herein utilize a power mode (e.g., PL1) that provides power to a processor (e.g., CPU) based on thermal limits of a battery providing electrical energy, e.g., in addition to providing power based on thermal limits of a processor (e.g., CPU). Certain examples herein adjust continuous power (e.g., instantaneously) based on thermal limits and / or impedance of the battery, thereby enabling faster control of battery temperature compared to adjusting continuous power based on monitored temperature (e.g., battery temperature), where the monitored temperature has a delay relative to power changes, e.g., because the temperature response to increased power has a delay due to low thermal conductivity of battery materials (e.g., lithium cobalt oxide).
[0055] Power management circuits (e.g., controlling power (e.g., power flowing from a battery into a processor) based on thermal limits and / or impedance of a coupled battery as disclosed herein) are not practically implementable in the human brain (or with paper and pencil).
[0056] Figure 1 A system 100 including a system on chip (SoC) 102 having a hardware processor 104 including a power manager (e.g., circuit) 124 according to an example of the present disclosure is shown. The depicted SoC 102 includes a processor 104 coupled to a hardware initialization manager (non-transitory) storage device 106 and a system memory 108 (e.g., dynamic random access memory (DRAM)). In one example, the hardware initialization manager (non-transitory) storage device 106 stores hardware initialization manager firmware (e.g., or software). In one example, the hardware initialization manager (non-transitory) storage device 106 stores basic input / output system (BIOS) firmware. In another example, the hardware initialization manager (non-transitory) storage device 106 stores unified extensible firmware interface (UEFI) firmware. In some examples (e.g., triggered by powering on or restarting the processor), processor 104 executes hardware initialization manager firmware (e.g., or software) stored in hardware initialization manager (non-volatile) storage device 106 to initialize the processor for operation, for example, to begin executing an operating system (OS) and / or initialize (e.g., hardware) components of system 100.
[0057] The processor 104 is described as a multi-core processor, including a core circuit 112 having a plurality of cores 110_0 to 110_N (where N is an arbitrary integer). In another example, the processor includes only a single core. The cores 110_0 to 110_N may be coupled to each other via an interconnect 116 or other electrical coupling means. Each core may include components discussed herein, such as Figure 2As shown. The processor 104 described includes non-core circuits 114 that are independent of the core circuits 112 (e.g., external to the core circuits 112). The non-core circuits 114 may include any combination of the following: a shared cache 118 (e.g., an intermediate and / or last level cache), a memory controller 120 (e.g., for maintaining cache coherence in the cache and / or fetching and retrieving data from the system memory 108 or other memory), and an interface 122 (e.g., for providing coupling with various components that are not part of the processor 104, such as, but not limited to, peripheral devices, mass storage devices, etc.).
[0058] For example, Figure 2 As shown, each core may include its own (e.g., non-shared) cache layer within the core. Each core (e.g., individual components of the core) and / or other components of system 100 can be powered separately, for example, placed in or out of one of multiple power states. In some examples, each power state is a power state based on the Advanced Configuration and Power Interface (ACPI) standard (e.g., Advanced Configuration and Power Interface (ACPI) Specification Version 6.5, August 2022). In some examples, each core has a core state (c-state) and / or each processor has a processor (or package) state (p-state).
[0059] Non-limiting examples of p-states are: a P0 performance state, in which the device or processor uses its maximum performance capabilities and can consume maximum power; a P1 performance state, in which the performance capabilities of the device or processor are limited to below their maximum values (e.g., by lower voltage and / or frequency than P0) and consume less than maximum power; and up to a Pn performance state, in which the performance capabilities of the device or processor are at their lowest level and consume minimal power while remaining active (e.g., where state n is a maximum number and depends on the processor or device). In some examples, processor and device definitions support an arbitrary number of performance states (e.g., no more than 16).
[0060] Non-limiting examples of c-states are: a C0 processor core power state (e.g., a run power state), in which the processor core is in an executing power state; a C1 processor core power state, in which the hardware latency of the processor core is low enough that the operating software does not consider the latency aspects of the state when deciding whether to use the state (e.g., the state has no other software-visible effects other than placing the processor in a non-executing power state); a C2 processor power state, which provides improved power savings compared to the C1 state (e.g., the worst-case hardware latency of the state is provided via ACPI system firmware, and the operating software can use this information to determine when the C1 state should be used instead of the C2 state, and / or the state has no other software-visible effects other than placing the processor core in a non-executing power state); a C3 processor core power state, which provides improved power savings compared to the C1 state and the C2 state (e.g., the worst-case hardware latency of the state is provided via the ACPI system firmware, and the operating software can use this information to determine when the C2 state should be used instead of the C3 state, and / or when in the C3 state, the processor (core)'s cache maintains state but ignores any snooping). For example, the operating software is responsible for ensuring that the cache remains consistent. Manufacturers may define other states for their processors. For example, a C6 processor core power state may be used, in which the power (e.g., voltage) to the core is turned off, for example, entering the C6 state causes the core state (e.g., context information for the core and / or threads running on the core) to be saved (e.g., saved to a dedicated C6 memory segment in system memory (e.g., static random access memory (SRAM)) before the core is turned off (e.g., the core clock is stopped and / or the core voltage is reduced to zero volts). As another example, a C7 processor core power state can be used, which includes a C6 state change, but also includes a last level cache (e.g., shared cache 118) being flushed. In some examples, power manager 124 (e.g., circuitry) controls power levels of components (e.g., cores) of system 100, for example, based on the power state. In one example, an operating system executing on processor 104 requests a power state change implemented by power manager 124.
[0061] In some examples, the system 100 includes a (e.g., DC) power source, such as a battery. In some examples, the battery can be coupled to an external (e.g., AC) power source 132, such as a (e.g., about 110V-about 220V) wall outlet connection.
[0062] In some examples, the power manager 124 (and / or the power management agent 126) implements (e.g., CPU) continuous power modes (e.g., boost and / or non-boost), for example, when powered by a battery (e.g., completely powered by the battery) (e.g., direct current (DC) operating mode). In some examples, the power manager 124 (and / or the power management agent 126) adjusts the power (e.g., frequency, voltage, and / or current) used in the continuous power mode (e.g., boost and / or non-boost mode) based on thermal limitations and / or impedance of the battery, for example, by modifying one or more p-states and / or c-states to remain within an allowed (e.g., allocated) power range.
[0063] In some examples, the power manager 124 (and / or the power management agent 126) implements a (e.g., CPU) power boost (e.g., turbo) mode (e.g., PL4 / PL2 / PL1), such as when powered by a battery (e.g., fully powered by the battery) (e.g., a direct current (DC) operating mode). In some examples, the power manager 124 (and / or the power management agent 126) adjusts the power (e.g., frequency, voltage, and / or current) used in the continuous boost (e.g., turbo) mode (e.g., PL1) based on thermal limitations and / or impedance of the battery, such as by modifying one or more p-states and / or c-states to remain within an allowed (e.g., allocated) power range.
[0064] In some examples, processor 104 (e.g., each core thereof) includes a power management agent (PMA), such as a PMA circuit. For example, core 110-0 includes (e.g., as a component thereof) PMA 126A, core 110-1 includes (e.g., as a component thereof) PMA 126B, core 110-N includes (e.g., as a component thereof) PMA 126C, shared cache 118 includes (e.g., as a component thereof) PMA, memory controller 120 includes (e.g., as a component thereof) PMA, interface 122 includes (e.g., as a component thereof) PMA, or any combination thereof. In some examples, the PMAs control power management operations within their respective components, such that, for example, PMA 126A controls only power management operations of core 110-0, PMA 126B controls only power management operations of core 110-1, and so on. In some examples, the PMA 126 can interface with a processor-wide power manager 124 (e.g., a controller) (e.g., a power control unit (PCU)). In some examples, the PMA autonomously performs certain power management activities for its components (e.g., cores). In some examples, the PMA abstracts component (e.g., core)-specific behaviors and implements a hardware state machine (e.g., a finite state machine (FSM)) for all power management control and / or telemetry.
[0065] In some examples, the system 100 includes a network interface controller 128 for communicating with another system, for example, to enable updated power control code to be sent to the system 100 .
[0066] Figure 2 A block diagram of a hardware processor core 110 having a power management agent (e.g., circuit) 126 coupled to a power source (e.g., battery) 130 is shown according to an example of the present disclosure. In some examples, the power source (e.g., battery) 130 (optionally, as shown in a dashed box) includes a battery temperature sensor 230 (or is located near the power source (e.g., battery) 130) to indicate the temperature of the power source (e.g., battery) 130, for example, the temperature reading is sent to the power manager 124 and / or one or more power management agents 126. In some examples, the hardware processor core 110 (optionally, as shown in a dashed box) includes a core temperature sensor 226 (or is located near the hardware processor core 110) to indicate the temperature of the hardware processor core 110, for example, the temperature reading is sent to the power manager 124 and / or one or more power management agents 126. In some examples, the power source (e.g., frequency, voltage, and / or current) is modified based on one or more values from the battery temperature sensor 230 and / or the core temperature sensor 226. In some examples, the power management agent (eg, circuit) 126 (or Figure 1 The power manager 124 in the example embodiment includes a power mode 214 (e.g., set in the control register 206A), the power mode 214 including a non-boost mode and / or at least one power boost (e.g., turbo) mode (e.g., PL4 / PL2 / PL1), such as a continuous boost (e.g., turbo) mode (e.g., PL1). In some examples, the power management agent (e.g., circuit) 126 includes a continuous (e.g., boost) (e.g., turbo) mode (e.g., PL1) controller 216 (e.g., circuit). In some examples, the continuous (e.g., boost) (e.g., turbo) mode (e.g., PL1) controller 216 (e.g., circuit) operates according to the disclosure herein, such as, for example, Figure 4 and / or Figure 6As shown. In some examples, the continuous (e.g., boost) (e.g., turbo) mode (e.g., PL1) controller 216 (e.g., circuit) (e.g., via a battery power and / or impedance (e.g., resistance) sensor 228) receives as input a value indicating a battery voltage 220V, a value indicating a battery current 220I (e.g., discharge current), and / or a value indicating a battery impedance (e.g., resistance) 220R, for example, when the system 100 (e.g., core 110) is powered by a battery (e.g., fully powered by a battery) (e.g., direct current (DC) operating mode). In some examples, the system 100 (e.g., SoC 102) includes a battery power and / or impedance (e.g., resistance) sensor 228. In some examples, the continuous (e.g., boost) (e.g., turbo) mode (e.g., PL1) controller 216 (e.g., circuit) adjusts power (e.g., frequency, voltage, and / or current) based on a value indicating a battery voltage 220V, a value indicating a battery current 220I (e.g., discharge current), and / or a value indicating a battery impedance (e.g., resistance) 220R, such as when the system 100 (e.g., core 110) is powered by a battery (e.g., fully powered by a battery) (e.g., direct current (DC) operation mode). In some examples, a battery power / impedance sensor 228 is located in a microcontroller in a power source (e.g., battery pack) 130, and a battery temperature sensor 230 is located in the microcontroller, for example.
[0067] In some examples, the power management agent 126 (or power manager 124) includes a value 218 indicating a thermal limit of the battery 130. In some examples, the power management agent 126 (or power manager 124) includes a value 224 indicating an impedance (eg, resistance) of the reference battery 130.
[0068] In some examples, Figure 1 Each core in Figure 2 10. In some examples, PMA circuitry 126 is included within core 110. The depicted hardware processor 110 includes hardware decoder circuitry 202 (e.g., a decode unit) and hardware execution circuitry 204 (e.g., an execution unit). The depicted hardware processor 110 includes (e.g., packed data or vector) registers 206. Registers 206 may include one or more registers for accessing (e.g., loading and / or storing) data, for example, additionally or alternatively, accessing (e.g., loading or storing) another storage device (e.g., Figure 1108). In some examples, the core 110 includes a control register 206A, for example, for controlling the functionality disclosed herein. The hardware processor 110 described includes a cache 208. The cache may include one or more cache banks for accessing (e.g., loading and / or storing) data, for example, additionally or alternatively, accessing (e.g., loading or storing) data in the register 206 or other storage device.
[0069] The execution circuitry 204 is depicted to include scalar circuitry 210 and / or vector / single instruction, multiple data (SIMD) circuitry 212. In some examples, only one or any combination of scalar circuitry 210 and / or vector / single instruction, multiple data (SIMD) circuitry 212 is present (e.g., used). In some examples, scalar circuitry 210 operates on scalar values (e.g., single numbers). In some examples, vector / SIMD circuitry 212 operates on vector or packed data values.
[0070] Please note that the figures herein may not depict all data communication connections. One of ordinary skill in the art will appreciate that this is done so as not to obscure certain details in the figures. Please note that a double-headed arrow in a figure may not require bidirectional communication, for example, it may represent unidirectional communication (e.g., to or from a component or device). In some examples herein, any communication path or all combinations of communication paths may be used.
[0071] In some examples, hardware decoder circuit 202 receives (e.g., a single) instruction (e.g., a macroinstruction) and decodes the instruction, e.g., into microinstructions and / or micro-operations. In some examples, hardware execution circuit 204 executes the decoded instruction (e.g., a macroinstruction) to perform one or more operations. For example, the instruction is decoded by decoder circuit 202 and executed by execution circuit 204.
[0072] Two example implementations are discussed below, for example, each implementation can be performed independently. Certain examples herein are directed to power control that addresses the problem of shorter battery life at continuous (e.g., boosted) (e.g., turbo) power (e.g., PL1) when powered by a battery. Certain examples do not (or do) monitor the battery thermal budget when continuous (e.g., boosted) (e.g., turbo) power (e.g., PL1) is turned on and off, and adjust the continuous (e.g., boosted) (e.g., turbo) power (e.g., PL1), and / or adjust the duration within the power budget, for example, as a solution to discontinuous (e.g., boosted) power (e.g., PL4 and / or PL2), which is often turned on / off and does not cover continuous (e.g., boosted) (e.g., turbo) power (e.g., PL1).
[0073] Implementation 1: Controlling power without exceeding battery thermal limits
[0074] Figure 3 A graph 300 of battery voltage variation over time is shown for open circuit voltage (OCV) 302, when a processor (e.g., core) is powered in continuous (e.g., boost) (e.g., turbo) mode 304, and a battery thermal limit 306 (e.g., a battery thermal limit derived from cooling capability) according to an example of the present disclosure.
[0075] exist Figure 3 In the embodiment, at time t1, the battery OCV 302 is V0, and the voltage 304 in the continuous (e.g., boost) (e.g., turbo) power mode (e.g., PL1) is V1, which is lower than V0 by I1*R (=IR drop), where I1 is the discharge current in the (e.g., boost) (e.g., turbo) mode, and R is the battery impedance (e.g., resistance, in ohms). When the continuous (e.g., boost) (e.g., turbo) power mode continues to time t1', the battery OCV 302 and the voltage 304 in the continuous (e.g., boost) (e.g., turbo) power mode move to V0' and V1', respectively.
[0076] exist Figure 3 In the example, the battery heat (dissipated energy) over time corresponds to the energy in region A (e.g., A is the heat dissipated by the battery), and its value is ∫ t t11′I1 2 R dt, for example, assuming that the battery impedance R is constant.
[0077] Some examples herein adjust the continuous (e.g., boost) (e.g., turbo) power mode current I1 to meet the following requirements:
[0078]
[0079] Wherein, the battery thermal limit (eg, limit 306) is derived from the cooling capability from the battery to the outside of the system (eg, outside the processor). Note that in some examples, the thermal limit is not the processor (eg, CPU) thermal limit, but the battery thermal limit.
[0080] In some examples, V1 is compared to V (eg, by a continuous (eg, boost) (eg, turbo) mode (eg, PL1) controller 216). R (V R is derived from (e.g., empirically determined) battery thermal limits) and the continuous (e.g., boost) (e.g., turbo) power (e.g., current I1) is adjusted (e.g., by a continuous (e.g., boost) (e.g., turbo) mode (e.g., PL1) controller 216) such that V1 does not fall below V over time. R .
[0081] In another example, I1*R and (V R -V0) and adjusts the continuous (e.g., boost) (e.g., turbo) power (e.g., current I1) (e.g., by the continuous (e.g., boost) (e.g., turbo) mode (e.g., PL1) controller 216) so that I1*R does not exceed (V R -V0). In other words, over time, I1≤(V R -V0) / R.
[0082] In some examples, if I1 is adjusted to I2 (i.e., limit), then IR starting from OCV drops to I2R. In this case, the battery heat over time is proportional to Figure 3 The energy of the A+B region corresponds to:
[0083] or
[0084] In some examples, since this is an allowed battery thermal limit (e.g., derived from cooling capabilities from the battery to the outside of the system), the battery temperature does not exceed the limit when the continuous (e.g., boost) (e.g., turbo) power is adjusted by the continuous (e.g., boost) (e.g., turbo) power current I and the following conditions are met:
[0085] or Where I2 is the current limit, R is the battery impedance, V R is the voltage limit, V0 is the OCV, and t is the time.
[0086] In simplified form, the current can be the mean square current, (V R -V0) can be a root mean square voltage.
[0087] Because some examples herein control continuous (e.g., boost) (e.g., turbo) power and / or current within battery thermal limits, which mitigates battery degradation, direct current / voltage monitoring in examples herein controls battery heat faster than temperature monitoring.
[0088] In some examples, the systems herein therefore monitor battery voltage changes or monitor current during continuous (e.g., boost) (e.g., turbo) mode, determine the amount of heat dissipated by the battery over time (e.g., based on the battery voltage and / or current), and control continuous (e.g., boost) (e.g., turbo) mode power without exceeding battery thermal limits.
[0089] Figure 4 This is an operation example of implementation mode 1. Figure 4 An example operation 400 of a continuous (e.g., boost) (e.g., turbo) power mode controller (e.g., circuit) 216 for controlling continuous (e.g., boost) (e.g., turbo) mode power without exceeding battery thermal limits according to an example of the present disclosure is shown. Some or all of the operations 400 (or other processes, or variations, and / or combinations thereof described herein) are performed by hardware or a combination thereof under the control of one or more computer systems configured with executable instructions and are implemented as code (e.g., executable instructions, one or more computer programs, or one or more applications) that is collectively executed on one or more processors. The code is stored on a computer-readable storage medium, for example, in the form of a computer program that includes instructions that can be executed by one or more processors. The computer-readable storage medium is non-transitory. In some examples, one or more (or all) of the operations 400 are performed by a power management agent (or power manager) in other figures.
[0090] Operation 400 includes, at block 402, turning on a continuous (e.g., boost) (e.g., turbo) power mode (e.g., PL1). Operation 400 also includes, at block 404, (optionally, as shown in a dashed box) checking the temperature of one or more major components (e.g., core / CPU) and adjusting the continuous (e.g., boost) (e.g., turbo) power (e.g., current). In some examples, blocks 410 and 412 loop back to block 404. Operation 400 also includes, at block 406, monitoring the battery voltage change relative to the open circuit voltage (OCV) (or monitoring the current) and determining the amount of heat dissipated over time. Operation 400 also includes, at block 408, checking whether the amount of heat dissipated over time is greater than a limit (e.g., a battery thermal limit), if not, proceeding to block 410, and if yes, proceeding to block 412. Operation 400 also includes: at block 410, do nothing (e.g., do not change the continuous (e.g., boost) (e.g., turbo) mode power (e.g., frequency / voltage / current)). Operation 400 also includes: at block 412, reduce the continuous (e.g., boost) (e.g., turbo) mode power (e.g., frequency / voltage / current), for example, based on the amount of heat dissipation.
[0091] Implementation 2: Controlling power without exceeding battery energy dissipation limits
[0092] Figure 5 A graph 500 of battery voltage changes over time for an open circuit voltage (OCV) 502, a low impedance battery 504, and a reference battery 506 according to an example of the present disclosure is shown. In some examples, when the impedance of a reference battery (e.g., a normal impedance battery) in a reference system (or digital twin) is R1, and the impedance of a battery in the system (e.g., a low impedance battery) is R2, the I*R drops of the reference battery and the low impedance battery at a current I1 are I1*R1 and I1*R2, respectively, as shown in FIG. Figure 5 In some examples, a low (e.g., lower) impedance battery is a battery of a first brand (e.g., manufacturer) whose impedance is lower than the impedance of a reference battery of another second brand (e.g., manufacturer). In some examples, a low (e.g., lower) impedance battery is a new battery of a brand (e.g., manufacturer) whose impedance is lower than the impedance of an old reference battery of the same brand (e.g., manufacturer).
[0093] exist Figure 5 In the reference battery, the energy dissipated by impedance is:
[0094]
[0095] In some examples, the energy dissipated by a low impedance cell is:
[0096]
[0097] When R2 < R1, the energy dissipation of the low-impedance battery is smaller than that of the reference battery. This corresponds to Figure 5 the energy dissipation in Region B of
[0098] This means that by utilizing the saved energy dissipation, the current and power of the low-impedance battery can be increased without reducing the battery life of the reference battery. The saved energy dissipation is:
[0099]
[0100] When the saved energy dissipation is fully utilized, the adjusted current I2 meets the following conditions:
[0101]
[0102] For example, where I2 is calculated as:
[0103]
[0104] And the output power P with the adjusted current I2 is expressed as:
[0105]
[0106] As a non-limiting example, when the resistance of the reference battery is 0.15 ohms, the resistance of the battery in the system (e.g., the low-impedance battery) is 0.10 ohms, the OCV is 12V, and the original discharge current is 5A, the output power of the low-impedance battery can be increased by at least 20% while maintaining the battery life of the reference battery.
[0107] In some examples, the system herein thus stores reference battery impedance information (e.g., Figure 2 the value 224 in
[0108] Figure 6 Figure 6 An example operation 600 of a continuous (e.g., boost) (e.g., turbo) power mode controller (e.g., circuit) 216 for controlling continuous (e.g., boost) (e.g., turbo) mode power without exceeding a battery thermal limit according to an example of the present disclosure is shown. Some or all of the operations 600 (or other processes, or variations, and / or combinations thereof described herein) are performed by hardware or a combination thereof under the control of one or more computer systems configured with executable instructions, and are implemented as code (e.g., executable instructions, one or more computer programs, or one or more applications) that is collectively executed on one or more processors. The code is stored on a computer-readable storage medium, for example, in the form of a computer program that includes instructions that can be executed by one or more processors. The computer-readable storage medium is non-transitory. In some examples, one or more (or all) of the operations 600 are performed by a power management agent (or power manager) in other figures.
[0109] Operation 600 includes, at block 602, reading impedance information (eg, Figure 2 Operation 600 also includes, at block 604, reading reference battery impedance information (e.g., Figure 2 Operation 600 also includes, at block 606, adjusting continuous (eg, boost) (eg, turbo) mode power (eg, frequency / voltage / current) based on the impedance information.
[0110] In some examples, the system monitors battery voltage changes or monitors current during a continuous (e.g., boost) (e.g., turbo) power mode, determines the amount of heat dissipated by the battery over time, and controls the continuous (e.g., boost) (e.g., turbo) mode power without exceeding a limit.
[0111] In certain examples, the system stores reference battery impedance information, monitors battery impedance in the system, and adjusts continuous (eg, boost) (eg, turbo) mode current or power based on impedance comparison.
[0112] In some examples, I1 may be a root mean square current.
[0113] In some examples, R2 may increase as the battery degrades. Therefore, some examples herein monitor R2 during operation (eg, continuously) and adjust the continuous (eg, boost) (eg, turbo) mode current.
[0114] To account for other sources of heat from the battery in an enclosed chassis (eg, conduction from a processor (eg, CPU) heat sink, or any other heat source that raises the internal temperature of the chassis), the battery's thermistor temperature reading may also be used.
[0115] Figure 7 An example operation 700 of a method for controlling the power provided to a hardware processor in a continuous (e.g., boost) power mode without exceeding the thermal limitations of a battery over time according to an example of the present disclosure is shown. Some or all of the operations 700 (or other processes, or variations, and / or combinations thereof described herein) are performed by hardware or a combination thereof under the control of one or more computer systems configured with executable instructions, and are implemented as code (e.g., executable instructions, one or more computer programs, or one or more applications) that is collectively executed on one or more processors. The code is stored on a computer-readable storage medium, for example, in the form of a computer program that includes instructions that can be executed by one or more processors. The computer-readable storage medium is non-transient. In some examples, one or more (or all) of the operations 700 are performed by components in other figures (e.g., a hardware initialization manager (e.g., BIOS), PMA circuit 126, and / or power manager 124).
[0116] Operation 700 includes determining, by a power management circuit, heat dissipated over time by a battery coupled to a hardware processor when the hardware processor is in a continuous power mode at block 702. Operation 700 also includes controlling, by the power management circuit, power provided to the hardware processor in the continuous power mode without exceeding a limit on heat dissipated over time by the battery at block 704.
[0117] At least some examples of the disclosed technology may be described according to the following examples:
[0118] In a first set of examples, an apparatus includes: a hardware processor, the hardware processor including a continuous power mode; and a power management circuit, the power management circuit coupled to a battery, wherein the power management circuit is used to: determine the amount of heat dissipated by the battery over time when the hardware processor is in the continuous power mode; and control the power provided to the hardware processor in the continuous power mode without exceeding the limit of the amount of heat dissipated by the battery over time. In some examples, the power management circuit is used to: determine the amount of heat dissipated by the battery over time based on the voltage of the battery. In some examples, the power management circuit is used to: determine the amount of heat dissipated by the battery over time based on the resistance of the battery. In some examples, the power management circuit is used to: determine the amount of heat dissipated by the battery over time based on the resistance of the battery and a reference impedance of the battery. In some examples, the power management circuit is used to: determine the amount of heat dissipated by the battery over time based on the current of the battery. In some examples, the power management circuit is used to: control the power provided to the hardware processor in the continuous power mode by adjusting the continuous mode current. In some examples, the continuous power mode of the hardware processor is a continuous boost power mode.
[0119] In another set of examples, a method includes: determining, by a power management circuit, an amount of heat dissipated over time by a battery coupled to a hardware processor when the hardware processor is in a continuous power mode; and controlling, by the power management circuit, the power provided to the hardware processor in the continuous power mode without exceeding a limit on the amount of heat dissipated by the battery over time. In some examples, the amount of heat dissipated over time by the battery determined by the power management circuit is based on a voltage of the battery. In some examples, the amount of heat dissipated over time by the battery determined by the power management circuit is based on a resistance of the battery. In some examples, the amount of heat dissipated over time by the battery determined by the power management circuit is based on a resistance of the battery and a reference impedance of the battery. In some examples, the amount of heat dissipated over time by the battery determined by the power management circuit is based on a current of the battery. In some examples, controlling, by the power management circuit, the power provided to the hardware processor in the continuous power mode is achieved by adjusting a continuous mode current. In some examples, the continuous power mode of the hardware processor is a continuous boost power mode.
[0120] In yet another set of examples, a system includes a battery; a battery; a hardware processor, the hardware processor including a continuous power mode, the hardware processor coupled to the battery; and a power management circuit for determining the amount of heat dissipated by the battery over time when the hardware processor is in the continuous power mode; and controlling the power provided to the hardware processor in the continuous power mode without exceeding the limit of the amount of heat dissipated by the battery over time. In some examples, the power management circuit is used to: determine the amount of heat dissipated by the battery over time based on the voltage of the battery. In some examples, the power management circuit is used to: determine the amount of heat dissipated by the battery over time based on the resistance of the battery. In some examples, the power management circuit is used to: determine the amount of heat dissipated by the battery over time based on the resistance of the battery and a reference impedance of the battery. In some examples, the power management circuit is used to: determine the amount of heat dissipated by the battery over time based on the current of the battery. In some examples, the power management circuit is used to: control the power provided to the hardware processor in the continuous power mode by adjusting the continuous mode current. In some examples, the continuous power mode of the hardware processor is a continuous boost power mode.
[0121] In another set of examples, an apparatus includes: a hardware processor, the hardware processor including a continuous boost power mode; and a power management circuit, the power management circuit coupled to a battery, wherein the power management circuit is used to: determine the amount of heat dissipated by the battery over time when the hardware processor is in the continuous boost power mode; and control the power provided to the hardware processor in the continuous boost power mode without exceeding the limit of the amount of heat dissipated by the battery over time. In some examples, the power management circuit is used to: determine the amount of heat dissipated by the battery over time based on the voltage of the battery. In some examples, the power management circuit is used to: determine the amount of heat dissipated by the battery over time based on the resistance of the battery. In some examples, the power management circuit is used to: determine the amount of heat dissipated by the battery over time based on the resistance of the battery and a reference impedance of the battery. In some examples, the power management circuit is used to: determine the amount of heat dissipated by the battery over time based on the current of the battery. In some examples, the power management circuit is used to: control the power provided to the hardware processor in the continuous boost power mode by adjusting the boost mode current.
[0122] The following is a detailed description of exemplary architectures, systems, etc. in which the above-mentioned may be used.
[0123] Example Architecture
[0124] The following describes in detail an example computer architecture. Other system designs and configurations known in the art for laptop, desktop and handheld personal computers (PCs), personal digital assistants, engineering workstations, servers, decomposed servers, network devices, network hubs, switches, routers, embedded processors, digital signal processors (DSPs), graphics devices, video game devices, set-top boxes, microcontrollers, cellular phones, portable media players, handheld devices, and various other electronic devices are also suitable. Generally, various systems or electronic devices that can incorporate processors and / or other execution logic disclosed herein are generally suitable.
[0125] Example System
[0126] Figure 8 An example computing system is shown. Multiprocessor system 800 is an interface system and includes multiple processors or cores, including a first processor 870 and a second processor 880 coupled via an interface 850 such as a point-to-point (PP) interconnect, structure and / or bus. In some examples, the first processor 870 and the second processor 880 are isomorphic. In some examples, the first processor 870 and the second processor 880 are heterogeneous. Although example system 800 is shown as having two processors, the system can have three or more processors, or can be a single processor system. In some examples, the computing system is a system on chip (SoC).
[0127] Processors 870 and 880 are shown to include integrated memory controller (IMC) circuits 872 and 882, respectively. Processor 870 also includes interface circuits 876 and 878; similarly, second processor 880 includes interface circuits 886 and 888. Processors 870, 880 may exchange information via interface 850 using interface circuits 878, 888. IMCs 872 and 882 couple processors 870, 880 to respective memories, namely memory 832 and memory 834, which may be portions of main memory locally attached to the respective processors.
[0128] Processors 870, 880 can each exchange information with a network interface (NW I / F) 890 via separate interfaces 852, 854 using interface circuits 876, 894, 886, 898. Network interface 890 (e.g., one or more of an interconnect, bus, and / or fabric, and in some examples a chipset) can optionally exchange information with a coprocessor 838 via interface circuit 892. In some examples, coprocessor 838 is a special-purpose processor, such as, for example, a high-throughput processor, a network or communication processor, a compression engine, a graphics processor, a general-purpose graphics processing unit (GPGPU), a neural network processing unit (NPU), an embedded processor, etc.
[0129] A shared cache (not shown) may be included in either processor 870, 880 or external to both processors but connected to the processors via an interface such as a PP interconnect so that if the processors are placed in a low power mode, local cache information of either or both processors may be stored in the shared cache.
[0130] The network interface 890 may be coupled to the first interface 816 via the interface circuit 896. In some examples, the first interface 816 may be an interface such as a peripheral component interconnect (PCI), a PCI Express interconnect, or another I / O interconnect. In some examples, the first interface 816 is coupled to a power control unit (PCU) 817, which may include circuits, software, and / or firmware that perform power management operations with respect to the processors 870, 880, and / or the coprocessor 838. The PCU 817 provides control information to a voltage regulator (not shown) so that the voltage regulator generates an appropriate regulated voltage. The PCU 817 also provides control information that controls the generated operating voltage. In various examples, the PCU 817 may include various power management logic units (circuits) that perform hardware-based power management. Such power management may be fully processor-controlled (e.g., through various processor hardware, and it may be triggered by workload and / or power, thermal, or other processor constraints) and / or power management may be performed in response to an external source (such as a platform or power management source or system software).
[0131] PCU 817 is shown as existing as logic separate from processor 870 and / or processor 880. In other cases, PCU 817 may execute on a given one or more of the cores (not shown) of processor 870 or 880. In some cases, PCU 817 may be implemented as a microcontroller (dedicated or general purpose) or other control logic that is configured to execute its own dedicated power management code, sometimes referred to as P-code. In other examples, the power management operations to be performed by PCU 817 may be implemented external to the processor, such as by a separate power management integrated circuit (PMIC) or another component external to the processor. In other examples, the power management operations to be performed by PCU 817 may be implemented in BIOS or other system software.
[0132] Various I / O devices 814 may be coupled to the first interface 816 along with a bus bridge 818 coupling the first interface 816 to the second interface 820. In some examples, one or more additional processors 815 such as a coprocessor, a high throughput integrated many core (MIC) processor, a GPGPU, an accelerator (such as a graphics accelerator or a digital signal processing (DSP) unit), a field programmable gate array (FPGA), or any other processor are coupled to the first interface 816. In some examples, the second interface 820 may be a low pin count (LPC) interface. Various devices may be coupled to the second interface 820, including, for example, a keyboard and / or mouse 822, a communication device 827, and a storage circuit 828. The storage circuit 828 may be one or more non-transitory machine-readable storage media as described below, such as a disk drive or other mass storage device, which may include instructions / codes and data 830 and may implement instruction storage in some examples. Further, an audio I / O 824 may be coupled to the second interface 820. It should be noted that other architectures besides the point-to-point architecture described above are also possible. For example, instead of a point-to-point architecture, a system such as multiprocessor system 800 may implement a multi-point interface or other such architecture.
[0133] Example core architectures, processors, and computer architectures.
[0134] Processor cores may be implemented in different ways, for different purposes, and in different processors. For example, implementations of such cores may include: 1) a general-purpose in-order core intended for general-purpose computing; 2) a high-performance general-purpose out-of-order core intended for general-purpose computing; 3) a special-purpose core intended primarily for graphics and / or scientific (throughput) computing. Different processor implementations may include: 1) a CPU including one or more general-purpose in-order cores intended for general-purpose computing and / or one or more general-purpose out-of-order cores intended for general-purpose computing; and 2) a coprocessor including one or more special-purpose cores intended primarily for graphics and / or scientific (throughput) computing. Such different processors lead to different computer system architectures, which may include: 1) a coprocessor on a separate chip from the CPU; 2) a coprocessor on a separate die in the same package as the CPU; 3) a coprocessor on the same die as the CPU (in which case such coprocessors are sometimes referred to as dedicated logic, such as integrated graphics and / or scientific (throughput) logic, or as dedicated cores); and 4) a system on a chip (SoC), which may be included on the same die as the CPU (sometimes referred to as an application core or application processor), the coprocessors described above, and additional functionality. An example core architecture is described next, followed by a description of an example processor and computer architecture.
[0135] Fig. 9A block diagram of an example processor and / or SoC 900 that may have one or more cores and an integrated memory controller is shown. The solid line box shows a processor 900 having a single core 902(A), a system agent unit circuit 910, and a set of one or more interface controller unit circuits 916, while the optional addition of the dashed line box shows an alternative processor 900 having multiple cores 902(A)-(N), a set of one or more integrated memory controller unit circuits 914 and dedicated logic 908 in the system agent unit circuit 910, and a set of one or more interface controller unit circuits 916. It should be noted that the processor 900 may be one of the processors 870 or 880, or Figure 8 coprocessor 838 or 815.
[0136] Thus, different implementations of processor 900 may include: 1) a CPU having: dedicated logic 908, which is integrated graphics and / or scientific (throughput) logic (which may include one or more cores, not shown); and cores 902(A)-(N), which are one or more general purpose cores (e.g., general purpose in-order cores, general purpose out-of-order cores, or a combination of both); 2) a coprocessor having cores 902(A)-(N), which are a large number of dedicated cores primarily intended for graphics and / or scientific (throughput); and 3) a coprocessor having cores 902(A)-(N), which are a large number of general purpose in-order cores. Thus, processor 900 may be a general purpose processor, a coprocessor, or a dedicated processor, such as, for example, a network or communications processor, a compression engine, a graphics processor, a GPGPU (general purpose graphics processing unit), a high throughput many integrated core (MIC) coprocessor (including 30 or more cores), an embedded processor, etc. The processor may be implemented on one or more chips. Processor 900 may be part of and / or implemented on one or more substrates using any of a variety of process technologies, such as, for example, complementary metal oxide semiconductor (CMOS), bipolar CMOS (BiCMOS), P-type metal oxide semiconductor (PMOS), or N-type metal oxide semiconductor (NMOS).
[0137] The memory hierarchy includes one or more levels of cache unit circuits 904(A)-(N) within the cores 902(A)-(N), a set of one or more shared cache unit circuits 906, and external memory (not shown) coupled to the set of integrated memory controller unit circuits 914. The set of one or more shared cache unit circuits 906 may include one or more mid-level caches, such as level 2 (L2), level 3 (L3), level 4 (L4), or other levels of cache (such as a last level cache (LLC)), and / or combinations thereof. While in some examples, an interface network circuit 912 (e.g., a ring interconnect) interfaces with dedicated logic 908 (e.g., integrated graphics logic), the set of shared cache unit circuits 906, and the system agent unit circuit 910, alternative examples use any number of well-known techniques to interface with such units. In some examples, coherency is maintained between the shared cache unit circuits 906 and one or more of the cores 902(A)-(N). In some examples, interface controller unit circuit 916 couples core 902 to one or more other devices 918, such as one or more I / O devices, storage, one or more communication devices (e.g., wireless networking, wired networking, etc.), and the like.
[0138] In some examples, one or more of the cores 902(A)-(N) are capable of multithreading. System agent unit circuitry 910 includes those components that coordinate and operate the cores 902(A)-(N). System agent unit circuitry 910 may include, for example, power control unit (PCU) circuitry and / or display unit circuitry (not shown). The PCU may be or may include logic and components required to regulate the power state of the cores 902(A)-(N) and / or the dedicated logic 908 (e.g., integrated graphics logic). The display unit circuitry is used to drive one or more externally connected displays.
[0139] The cores 902(A)-(N) may be homogeneous in terms of instruction set architecture (ISA). Alternatively, the cores 902(A)-(N) may be heterogeneous in terms of ISA; that is, a subset of the cores 902(A)-(N) may be capable of executing an ISA, while other cores may be capable of executing only a subset of that ISA or another ISA.
[0140] Fig.101 is a block diagram illustrating a computing system 1000 configured to implement one or more aspects of the examples described herein. The computing system 1000 includes a processing subsystem 1001 having one or more processors 1002 and a system memory 1004 communicating via an interconnect path that may include a memory hub 1005. The memory hub 1005 may be a separate component within a chipset component, or may be integrated within the one or more processors 1002. The memory hub 1005 is coupled to an I / O subsystem 1011 via a communication link 1006. The I / O subsystem 1011 includes an I / O hub 1007, which may enable the computing system 1000 to receive input from one or more input devices 1008. In addition, the I / O hub 1007 may enable a display controller that may be included in the one or more processors 1002 to provide output to one or more display devices 1010A. In some examples, the one or more display devices 1010A coupled to the I / O hub 1007 may include local, internal, or embedded display devices.
[0141] The processing subsystem 1001 includes, for example, one or more parallel processors 1012, which are coupled to the memory hub 1005 via a bus or other communication link 1013. The communication link 1013 can be one of any number of standard-based communication link technologies or protocols, such as but not limited to PCI Express, or can be a vendor-specific communication interface or communication structure. The one or more parallel processors 1012 can form a parallel or vector processing system in a computational concentration, which can include a large number of processing cores and / or processing clusters, such as an integrated many-core (MIC) processor. For example, the one or more parallel processors 1012 form a graphics processing subsystem that can output pixels to one of the one or more display devices 1010A coupled via the I / O hub 1007. The one or more parallel processors 1012 can also include a display controller and a display interface (not shown) to enable direct connection to one or more display devices 1010B.
[0142] Within the I / O subsystem 1011, a system storage unit 1014 may be connected to the I / O hub 1007 to provide a storage mechanism for the computing system 1000. An I / O switch 1016 may be used to provide an interface mechanism that enables connection between the I / O hub 1007 and other components, such as a network adapter 1018 and / or a wireless network adapter 1019 that may be integrated into the platform, and various other devices that may be added via one or more additional devices 1020. Additional devices 1020 may also include, for example, one or more external graphics processor devices, graphics cards, and / or computing accelerators. The network adapter 1018 may be an Ethernet adapter or another wired network adapter. The wireless network adapter 1019 may include one or more of Wi-Fi, Bluetooth, near field communication (NFC), or other network devices including one or more wireless radios.
[0143] Computing system 1000 may include other components not explicitly shown, including USB or other port connections, optical storage drives, video capture devices, etc., which may also be connected to I / O hub 1007. Fig.10 The communication paths of the various components in the system may be implemented using any suitable protocol, such as a PCI (Peripheral Component Interconnect) based protocol (e.g., PCI Express) or any other bus or point-to-point communication interface and / or protocol, such as NVLink high-speed interconnect, Compute Express Link™ (CXL TM ) )(e.g., CXL.mem), Infinity Fabric (IF), Ethernet (IEEE 802.3), Remote Direct Memory Access (RDMA), InfiniBand, Internet Wide Area RDMA Protocol (iWARP), Transmission Control Protocol (TCP), User Datagram Protocol (UDP), Quick UDP Internet Connection (QUIC), RDMA over Converged Ethernet (RoCE), Intel Quick Path Interconnect (QPI), Intel Ultra Path Interconnect (UPI), Intel System on Chip Fabric (IOSF), Omnichannel, HyperTransport, Advanced Microcontroller Bus Architecture (AMBA) Interconnect, OpenCAPI, Gen-Z, Cache Coherent Interconnect for Accelerators (CCIX), 3GPP Long Term Evolution (LTE) (4G), 3GPP 5G, and variations thereof, or a wired or wireless interconnect protocol known in the art. In some examples, data may be copied or stored to a virtualized storage node using a protocol such as Non-Volatile Memory Express (NVMe) (NVMe-oF) or NVMe over Fabric.
[0144] One or more parallel processors 1012 may be incorporated with circuits optimized for graphics and video processing, including, for example, video output circuits, and constitute a graphics processing unit (GPU). Alternatively or additionally, one or more parallel processors 1012 may be incorporated with circuits optimized for general processing while retaining the underlying computing architecture, as described in more detail herein. The components of the computing system 1000 may be integrated with one or more other system elements on a single integrated circuit. For example, one or more parallel processors 1012, memory hub 1005, processor 1002, and I / O hub 1007 may be integrated into a system on chip (SoC) integrated circuit. Alternatively, the components of the computing system 1000 may be integrated into a single package to form a system in package (SIP) configuration. In some examples, at least a portion of the components of the computing system 1000 may be integrated into a multi-chip module (MCM), which may be interconnected with other multi-chip modules into a modular computing system.
[0145] It should be understood that the computing system 1000 shown herein is illustrative, and variations and modifications are possible. The connection topology can be modified as desired, including the number and arrangement of bridges, the number of processors 1002, and the number of parallel processors 1012. For example, the system memory 1004 can be directly connected to the processor 1002 instead of through a bridge, and other devices communicate with the system memory 1004 via the memory hub 1005 and the processor 1002. In other alternative topologies, the parallel processors 1012 are connected to the I / O hub 1007 or directly connected to one of the one or more processors 1002, rather than being connected to the memory hub 1005. In other examples, the I / O hub 1007 and the memory hub 1005 can be integrated into a single chip. It is also possible to attach two or more groups of processors 1002 via multiple sockets, which can be coupled to two or more instances of the parallel processor 1012.
[0146] Some of the specific components shown herein are optional and may not be included in all implementations of computing system 1000. For example, any number of add-in cards or peripherals may be supported, or some components may be removed. In addition, some architectures may be specific to the Fig.10 Different terminology is used for similar components shown. For example, in some architectures, memory hub 1005 may be referred to as a north bridge, while I / O hub 1007 may be referred to as a south bridge.
[0147] Fig.11AAn example of a parallel processor 1100 is shown. Parallel processor 1100 may be a GPU, GPGPU, etc., as described herein. Various components of parallel processor 1100 may be implemented using one or more integrated circuit devices, such as a programmable processor, an application specific integrated circuit (ASIC), or a field programmable gate array (FPGA). The parallel processor 1100 shown may be Fig.10 One or more of the parallel processors 1012 are shown.
[0148] The parallel processor 1100 includes a parallel processing unit 1102. The parallel processing unit includes an I / O unit 1104 that enables communication with other devices including other instances of the parallel processing unit 1102. The I / O unit 1104 can be directly connected to other devices. For example, the I / O unit 1104 is connected to other devices by using a hub or switch interface (such as a memory hub 1005). The connection between the memory hub 1005 and the I / O unit 1104 forms a communication link 1013. Within the parallel processing unit 1102, the I / O unit 1104 is connected to a host interface 1106 and a memory cross switch 1116, wherein the host interface 1106 receives commands dedicated to performing processing operations, and the memory cross switch 1116 receives commands dedicated to performing memory operations.
[0149] When the host interface 1106 receives the command buffer via the I / O unit 1104, the host interface 1106 may direct the work operations to execute the commands to the front end 1108. In some examples, the front end 1108 is coupled with a scheduler 1110 that is configured to distribute commands or other work items to the processing cluster array 1112. The scheduler 1110 ensures that the processing cluster array 1112 is properly configured and is in a valid state before tasks are distributed to the processing clusters of the processing cluster array 1112. The scheduler 1110 may be implemented via firmware logic executed on a microcontroller. The microcontroller-implemented scheduler 1110 may be configured to perform complex scheduling and work distribution operations at coarse and fine granularity, thereby achieving fast preemption and context switching of threads executed on the processing cluster array 1112. Preferably, the host software may prove the workload for scheduling on the processing cluster array 1112 via one of a plurality of graphics processing doorbells. In other examples, polling for new workloads or interrupts may be used to identify or indicate the availability of work to be executed. The scheduler 1110 logic within the scheduler microcontroller can then automatically distribute the workload across the array of processing clusters 1112 .
[0150] The processing cluster array 1112 may include up to "N" processing clusters (e.g., cluster 1114A, cluster 1114B to cluster 1114N). Each cluster 1114A-1114N of the processing cluster array 1112 may execute a large number of concurrent threads. The scheduler 1110 may use various scheduling and / or work distribution algorithms to distribute work to the clusters 1114A-1114N of the processing cluster array 1112, and the algorithms may vary depending on the workload generated by various types of programs or calculations. Scheduling may be handled dynamically by the scheduler 1110, or may be partially assisted by compiler logic during the compilation of program logic configured for execution by the processing cluster array 1112. Optionally, different clusters 1114A-1114N of the processing cluster array 1112 may be allocated to process different types of programs or to perform different types of calculations.
[0151] Processing cluster array 1112 may be configured to perform various types of parallel processing operations. For example, processing cluster array 1112 is configured to perform general-purpose parallel computing operations. For example, processing cluster array 1112 may include logic to perform processing tasks including filtering of video and / or audio data, performing modeling operations (including physics operations), and performing data transformations.
[0152] The processing cluster array 1112 is configured to perform parallel graphics processing operations. In such examples where the parallel processor 1100 is configured to perform graphics processing operations, the processing cluster array 1112 may include additional logic to support the execution of such graphics processing operations, including but not limited to texture sampling logic for performing texture operations, and tessellation logic and other vertex processing logic. In addition, the processing cluster array 1112 may be configured to execute graphics processing related shader programs, such as but not limited to vertex shaders, tessellation shaders, geometry shaders, and pixel shaders. The parallel processing unit 1102 may transfer data from the system memory via the I / O unit 1104 for processing. The transferred data may be stored in an on-chip memory (e.g., parallel processor memory 1122) during processing and then written back to the system memory.
[0153] In examples where parallel processing unit 1102 is used to perform graphics processing, scheduler 1110 may be configured to divide the processing workload into tasks of approximately equal size to better achieve the allocation of graphics processing operations to multiple clusters 1114A-1114N of processing cluster array 1112. In some of these examples, portions of processing cluster array 1112 may be configured to perform different types of processing. For example, a first portion may be configured to perform vertex shading and topology generation, a second portion may be configured to perform tessellation and geometry shading, and a third portion may be configured to perform pixel shading or other screen space operations to produce a rendered image for display. Intermediate data generated by one or more clusters 1114A-1114N may be stored in a buffer to allow the intermediate data to be transferred between clusters 1114A-1114N for further processing.
[0154] During operation, the processing cluster array 1112 may receive processing tasks to be performed via the scheduler 1110, which receives commands defining the processing tasks from the front end 1108. For graphics processing operations, the processing tasks may include indices of data to be processed (e.g., surface (tile) data, primitive data, vertex data, and / or pixel data), and state parameters and commands defining how the data is to be processed (e.g., what program to execute). The scheduler 1110 may be configured to obtain an index corresponding to a task, or may receive an index from the front end 1108. The front end 1108 may be configured to ensure that the processing cluster array 1112 is configured to a valid state before initiating a workload specified by an incoming command buffer (e.g., a batch buffer, a push buffer, etc.).
[0155] Each of the one or more instances of the parallel processing unit 1102 may be coupled to a parallel processor memory 1122. The parallel processor memory 1122 may be accessed via a memory crossbar 1116, which may receive memory requests from the processing cluster array 1112 and the I / O unit 1104. The memory crossbar 1116 may access the parallel processor memory 1122 via a memory interface 1118. The memory interface 1118 may include a plurality of partition units (e.g., partition unit 1120A, partition unit 1120B, through partition unit 1120N), which may each be coupled to a portion (e.g., memory cells) of the parallel processor memory 1122. The number of partition units 1120A-1120N may be configured to be equal to the number of memory cells, such that a first partition unit 1120A has a corresponding first memory cell 1124A, a second partition unit 1120B has a corresponding second memory cell 1124B, and an Nth partition unit 1120N has a corresponding Nth memory cell 1124N. In other examples, the number of partition units 1120A-1120N may not be equal to the number of memory devices.
[0156] Memory units 1124A-1124N may include various types of memory devices, including dynamic random access memory (DRAM) or graphics random access memory, such as synchronous graphics random access memory (SGRAM), including graphics double data rate (GDDR) memory. Optionally, memory units 1124A-1124N may also include 3D stacked memory, including but not limited to high bandwidth memory (HBM). Those skilled in the art will appreciate that the specific implementation of memory units 1124A-1124N may vary and may be selected from one of a variety of conventional designs. Rendering targets such as frame buffers or texture maps may be stored across memory units 1124A-1124N, allowing partition units 1120A-1120N to write portions of various rendering targets in parallel to efficiently use the available bandwidth of parallel processor memory 1122. In some examples, local instances of parallel processor memory 1122 may be excluded to support a unified memory design that uses system memory in conjunction with local cache memory.
[0157] Optionally, any of the clusters 1114A-1114N of the processing cluster array 1112 has the ability to process data to be written to any of the memory units 1124A-1124N within the parallel processor memory 1122. The memory crossbar 1116 can be configured to transmit the output of each cluster 1114A-1114N to any partition unit 1120A-1120N or to another cluster 1114A-1114N, which can perform additional processing operations on the output. Each cluster 1114A-1114N can communicate with the memory interface 1118 through the memory crossbar 1116 to read from or write to various external memory devices. In one of the examples having a memory crossbar 1116, the memory crossbar 1116 has connections to a memory interface 1118 in communication with the I / O unit 1104 and to a local instance of a parallel processor memory 1122, thereby enabling processing units within different processing clusters 1114A-1114N to communicate with system memory or other memory that is not local to the parallel processing unit 1102. In general, the memory crossbar 1116 may be able to separate traffic flows between the clusters 1114A-1114N and the partition units 1120A-1120N, for example, using virtual channels.
[0158] Although a single instance of PPU 1102 is shown within PPU 1100, any number of instances of PPU 1102 may be included. For example, multiple instances of PPU 1102 may be provided on a single add-in card, or multiple add-in cards may be interconnected. For example, PPU 1102 may be a processor such as a processor 1100. Fig.10 The additional device 1020 of the additional device 1020 can be a graphics card such as an independent graphics card, which includes one or more GPUs, one or more memory devices, and a device-to-device or network or structure interface. Different instances of the parallel processing unit 1102 can be configured to interoperate, even if different instances have different numbers of processing cores, different amounts of local parallel processor memory and / or other configuration differences. Optionally, some instances of the parallel processing unit 1102 may include a floating point unit with higher precision relative to other instances. Systems incorporating one or more instances of the parallel processing unit 1102 or parallel processor 1100 can be implemented in various configurations and form factors, including but not limited to desktop, laptop or handheld personal computers, servers, workstations, game consoles and / or embedded systems. The coordinator can use one or more of the following to form a composite node for workload execution: decomposed processor resources, cache resources, memory resources, storage resources and networking resources.
[0159] In some examples, the parallel processing unit 1102 may be divided into multiple instances. The multiple instances may be configured to execute workloads associated with different clients in an isolated manner, thereby enabling a predetermined quality of service to be provided to each client. For example, each cluster 1114A-1114N may be divided and isolated from other clusters, thereby allowing the processing cluster array 1112 to be divided into multiple computing partitions or instances. In this configuration, the workloads executed on the isolated partitions are protected from the impact of failures or errors associated with different workloads executed on different partitions. The partition units 1120A-1120N may be configured to implement dedicated and / or isolated paths to memory for the clusters 1114A-1114N associated with the corresponding computing partitions. This data path isolation enables the computing resources within the partition to communicate with one or more allocated memory units 1124A-1124N without interference from the activities of other partitions.
[0160] Fig. 11B is a block diagram of the partition unit 1120. The partition unit 1120 may be Fig.11A1120N. As shown, partition unit 1120 includes L2 cache 1121, frame buffer interface 1125, and ROP 1126 (raster operation unit). L2 cache 1121 is a read / write cache that is configured to perform load and store operations received from memory crossbar switch 1116 and ROP 1126. Read misses and urgent write-back requests are output by L2 cache 1121 to frame buffer interface 1125 for processing. Updates can also be sent to the frame buffer via frame buffer interface 1125 for processing. In some examples, frame buffer interface 1125 is connected to a memory unit (such as ROP 1126) in the parallel processor memory. Fig.11A Partition unit 1120 may additionally or alternatively interface with a memory unit in the parallel processor memory via a memory controller (not shown).
[0161] In graphics applications, ROP 1126 is a processing unit that performs raster operations such as stencils, z-tests, blending, etc. ROP 1126 then outputs processed graphics data stored in graphics memory. In some examples, ROP 1126 includes or is coupled to CODEC 1127, which includes compression logic that compresses depth or color data written to memory or L2 cache 1121 and decompresses depth or color data read from memory or L2 cache 1121. The compression logic can be lossless compression logic that utilizes one or more of a variety of compression algorithms. The type of compression performed by CODEC 1127 may vary based on the statistical characteristics of the data to be compressed. For example, in some examples, incremental color compression is performed on depth and color data on a per-tile basis. In some examples, CODEC 1127 includes compression and decompression logic that can compress and decompress computational data associated with machine learning operations. CODEC 1127 can, for example, compress sparse matrix data for sparse machine learning operations. CODEC 1127 may also compress sparse matrix data encoded in a sparse matrix format (e.g., coordinate list encoding (COO), compressed sparse row (CSR), compressed sparse column (CSC), etc.) to generate compressed and encoded sparse matrix data. The compressed and encoded sparse matrix data may be decompressed and / or decoded before being processed by the processing element, or the processing element may be configured to consume compressed, encoded, or compressed and encoded data for processing.
[0162] ROP 1126 may be included in each processing cluster (e.g., Fig.11AThe processed graphics data may be displayed on a display device (e.g., a display device such as a display unit 1120). Fig.10 1010B), is routed to be further processed by the processor 1002, or is routed to be processed by the processor 1002. Fig.11A The processing is further processed by one of the processing entities within parallel processor 1100.
[0163] Fig. 11C is a block diagram of a processing cluster 1114 within a parallel processing unit. For example, a processing cluster is Fig.11A An instance of one of the processing clusters 1114A-1114N. Processing cluster 1114 can be configured to execute many threads in parallel, wherein the term "thread" refers to an instance of a specific program executed on a specific input data set. Optionally, single instruction multiple data (SIMD) instruction issuance technology can be used to support the parallel execution of a large number of threads without providing multiple independent instruction units. Alternatively, single instruction multiple thread (SIMT) technology can be used to support the parallel execution of a large number of generally synchronized threads, using a common instruction unit configured to issue instructions to a group of processing engines within each processing cluster. Unlike the SIMD execution mode (where all processing engines typically execute the same instructions), SIMT execution allows different threads to more easily follow the divergent execution path through a given thread program. Those skilled in the art will understand that the SIMD processing mode represents a functional subset of the SIMT processing mode.
[0164] The operation of the processing cluster 1114 can be controlled via a pipeline manager 1132 that distributes processing tasks to SIMT parallel processors. The pipeline manager 1132 Fig.11A The scheduler 1110 receives instructions and manages the execution of these instructions via the graphics multiprocessor 1134 and / or the texture unit 1136. The graphics multiprocessor 1134 shown is an exemplary instance of a SIMT parallel processor. However, various types of SIMT parallel processors of different architectures may be included in the processing cluster 1114. One or more instances of the graphics multiprocessor 1134 may be included in the processing cluster 1114. The graphics multiprocessor 1134 may process data, and the data crossbar 1140 may be used to distribute the processed data to one of a plurality of possible destinations, including other shader units. The pipeline manager 1132 may facilitate the distribution of processed data by specifying the destination of the processed data to be distributed via the data crossbar 1140.
[0165] Each graphics multiprocessor 1134 within a processing cluster 1114 may include a set of identical function execution logic (e.g., arithmetic logic units, load-store units, etc.). The function execution logic may be configured in a pipelined manner, where a new instruction may be issued before a previous instruction is completed. The function execution logic supports a variety of operations, including integer and floating point arithmetic, comparison operations, Boolean operations, bit shifts, and calculation of various algebraic functions. The same functional unit hardware may be utilized to perform different operations, and any combination of functional units may be present.
[0166] The instructions transmitted to the processing cluster 1114 constitute threads. A group of threads executed across the group of parallel processing engines is a thread group. The thread group executes the same program on different input data. Individual threads within a thread group can be assigned to different processing engines within the graphics multiprocessor 1134. A thread group may include fewer threads than the number of processing engines within the graphics multiprocessor 1134. When a thread group includes fewer threads than the number of processing engines, one or more of the processing engines may be idle during the cycle of processing the thread group. A thread group may also include more threads than the number of processing engines within the graphics multiprocessor 1134. When a thread group includes more threads than the number of processing engines within the graphics multiprocessor 1134, processing may be performed in consecutive clock cycles. Optionally, multiple thread groups may be executed concurrently on the graphics multiprocessor 1134.
[0167] Graphics multiprocessor 1134 may include internal cache memory to perform load and store operations. Alternatively, graphics multiprocessor 1134 may abandon the internal cache and use cache memory within processing cluster 1114 (e.g., level 1 (L1) cache 1148). Each graphics multiprocessor 1134 also has access to a partition unit (e.g., L1 cache 1148) that is shared among all processing clusters 1114 and can be used to transfer data between threads. Fig.11A 1120A-1120N). Graphics multiprocessor 1134 may also access off-chip global memory, which may include one or more of local PPU memory and / or system memory. Any memory external to PPU 1102 may be used as global memory. An example of processing cluster 1114 including multiple instances of graphics multiprocessor 1134 may share common instructions and data that may be stored in L1 cache 1148.
[0168] Each processing cluster 1114 may include an MMU 1145 (memory management unit) configured to map virtual addresses to physical addresses. In other examples, one or more instances of MMU 1145 may reside in Fig.11A1148. The MMU 1145 includes a set of page table entries (PTEs) for mapping virtual addresses to physical addresses of tiles and optionally cache line indexes. The MMU 1145 may include an address translation lookaside buffer (TLB) or cache that may reside within the graphics multiprocessor 1134 or L1 cache 1148 of the processing cluster 1114. Physical addresses are processed to assign surface data access locality, allowing efficient request interleaving between partition units. The cache line index may be used to determine whether a request for a cache line is a hit or a miss.
[0169] In graphics and compute applications, the processing clusters 1114 may be configured such that each graphics multiprocessor 1134 is coupled to a texture unit 1136 for performing texture mapping operations, such as determining texture sample locations, reading texture data, and filtering texture data. Texture data is read from an internal texture L1 cache (not shown) or in some examples from an L1 cache within the graphics multiprocessor 1134, and retrieved from an L2 cache, local parallel processor memory, or system memory when needed. Each graphics multiprocessor 1134 outputs a processed task to a data crossbar 1140 to provide the processed task to another processing cluster 1114 for further processing, or stores the processed task in an L2 cache, local parallel processor memory, or system memory via a memory crossbar 1116. A preROP 1142 (pre-raster operations unit) is configured to receive data from the graphics multiprocessor 1134, direct the data to a ROP unit, which may communicate with a partition unit (e.g., Fig.11A The preROP 1142 unit may perform color blending optimizations, organize pixel color data, and perform address translation.
[0170] It should be understood that the core architecture described herein is illustrative and that variations and modifications are possible. Any number of processing units may be included within a processing cluster 1114, such as a graphics multiprocessor 1134, a texture unit 1136, a preROP 1142, etc. Further, while only one processing cluster 1114 is shown, a parallel processing unit as described herein may include any number of instances of a processing cluster 1114. Optionally, each processing cluster 1114 may be configured to operate independently of other processing clusters 1114 using separate and distinct processing units, L1 caches, L2 caches, etc.
[0171] Fig.11DAn example of a graphics multiprocessor 1134 is shown, where the graphics multiprocessor 1134 is coupled to a pipeline manager 1132 of a processing cluster 1114. The graphics multiprocessor 1134 has an execution pipeline that includes, but is not limited to, an instruction cache 1152, an instruction unit 1154, an address mapping unit 1156, a register file 1158, one or more general purpose graphics processing unit (GPGPU) cores 1162, and one or more load / store units 1166. The GPGPU cores 1162 and the load / store units 1166 are coupled to a cache memory 1172 and a shared memory 1170 via a memory and cache interconnect 1168. The graphics multiprocessor 1134 may additionally include a tensor and / or ray tracing core 1163 that includes hardware logic to accelerate matrix and / or ray tracing operations.
[0172] The instruction cache 1152 may receive an instruction stream to be executed from the pipeline manager 1132. The instructions are cached in the instruction cache 1152 and dispatched for execution by the instruction unit 1154. The instruction unit 1154 may dispatch the instructions as thread groups (e.g., warps), where the threads of the thread groups are assigned to different execution units within the GPGPU core 1162. The instructions may access any of the local, shared, or global address spaces by specifying an address within the unified address space. The address mapping unit 1156 may be used to translate addresses in the unified address space into different memory addresses accessible by the load / store unit 1166.
[0173] The register file 1158 provides a set of registers for the functional units of the graphics multiprocessor 1134. The register file 1158 provides temporary storage for operands of the data paths connected to the functional units of the graphics multiprocessor 1134 (e.g., GPGPU core 1162, load / store unit 1166). The register file 1158 may be divided between the various functional units so that each functional unit is allocated a dedicated portion of the register file 1158. For example, the register file 1158 may be divided between different warps executed by the graphics multiprocessor 1134.
[0174] The GPGPU cores 1162 may each include a floating point unit (FPU) and / or an integer arithmetic logic unit (ALU) for executing instructions of the graphics multiprocessor 1134. In some implementations, the GPGPU core 1162 may include hardware logic that may otherwise reside within the tensor and / or ray tracing core 1163. The GPGPU cores 1162 may be architecturally similar or architecturally different. For example, in some examples, the first portion of the GPGPU core 1162 includes a single-precision FPU and an integer ALU, while the second portion of the GPGPU core includes a double-precision FPU. Optionally, the FPU may implement the IEEE 754-2008 standard for floating-point operations, or enable variable-precision floating-point operations. The graphics multiprocessor 1134 may additionally include one or more fixed-function or special-function units that perform specific functions such as copying rectangles or pixel blending operations. One or more GPGPU cores may also include fixed or special-function logic.
[0175] GPGPU core 1162 may include SIMD logic capable of executing a single instruction to multiple data sets. Optionally, GPGPU core 1162 may physically execute SIMD4, SIMD8, and SIMD16 instructions, and logically execute SIMD1, SIMD2, and SIMD32 instructions. SIMD instructions for GPGPU cores may be generated by a shader compiler at compile time, or automatically generated when executing a program written and compiled for a single program multiple data (SPMD) or SIMT architecture. Multiple threads of a program configured for a SIMT execution model may be executed via a single SIMD instruction. For example, in some examples, eight SIMT threads performing the same or similar operation may be executed in parallel via a single SIMD8 logic unit.
[0176] The memory and cache interconnect 1168 is an interconnect network that connects the various functional units of the graphics multiprocessor 1134 to the register file 1158 and the shared memory 1170. For example, the memory and cache interconnect 1168 is a crossbar interconnect that allows the load / store unit 1166 to implement load and store operations between the shared memory 1170 and the register file 1158. The register file 1158 can operate at the same frequency as the GPGPU core 1162, so that data transfers between the GPGPU core 1162 and the register file 1158 are very low latency. The shared memory 1170 can be used to implement communication between threads executing on the functional units within the graphics multiprocessor 1134. The cache memory 1172 can be used, for example, as a data cache that caches texture data transferred between the functional units and the texture unit 1136. The shared memory 1170 can also be used as a program management cache. Shared memory 1170 and cache memory 1172 may be coupled to data crossbar switch 1140 to enable communication with other components of the processing cluster. In addition to automatically cached data stored in cache memory 1172, threads executing on GPGPU core 1162 may also programmatically store data in shared memory.
[0177] FIG. 12A to FIG. 12C Additional graphics multiprocessors are shown according to examples. FIG. 12A to FIG. 12B Graphics multiprocessors 1225, 1250 are shown, which are Fig. 11C The graphics multiprocessor 1134 of FIG. 1134 is related to and can be used to replace one of them. Therefore, the disclosure of any feature in this article in combination with the graphics multiprocessor 1134 also discloses the corresponding combination with the graphics multiprocessors 1225 and 1250, but is not limited to this. Fig. 12C A graphics processing unit (GPU) 1280 is shown including dedicated groups of graphics processing resources arranged into multi-core groups 1265A-1265N, corresponding to graphics multiprocessors 1225, 1250. The illustrated graphics multiprocessors 1225, 1250 and multi-core groups 1265A-1265N may be streaming multiprocessors (SMs) capable of executing a large number of execution threads simultaneously.
[0178] Fig. 12A The graphics multiprocessor 1225 includes relative Fig.11DThe graphics multiprocessor 1225 may include multiple additional instances of execution resource units of the graphics multiprocessor 1134. For example, the graphics multiprocessor 1225 may include multiple instances of instruction units 1232A-1232B, register files 1234A-1234B, and texture units 1244A-1244B. The graphics multiprocessor 1225 also includes multiple groups of graphics or compute execution units (e.g., GPGPU cores 1236A-1236B, tensor cores 1237A-1237B, ray tracing cores 1238A-1238B) and multiple groups of load / store units 1240A-1240B. The execution resource units have a common instruction cache 1230, texture and / or data cache memory 1242, and a shared memory 1246.
[0179] The various components may communicate via the interconnect structure 1227. The interconnect structure 1227 may include one or more crossbar switches that enable communication between the various components of the graphics multiprocessor 1225. The interconnect structure 1227 may be a separate high-speed network fabric layer on which the various components of the graphics multiprocessor 1225 are stacked. The components of the graphics multiprocessor 1225 communicate with remote components via the interconnect structure 1227. For example, the cores 1236A-1236B, 1237A-1237B, and 1238A-1238B may each communicate with the shared memory 1246 via the interconnect structure 1227. The interconnect structure 1227 may arbitrate communications within the graphics multiprocessor 1225 to ensure fair bandwidth allocation between components.
[0180] Fig. 12B The graphics multiprocessor 1250 includes multiple groups of execution resources 1256A-1256D, wherein each group of execution resources includes multiple instruction units, register files, GPGPU cores, and load storage units, such as Fig.11D and Fig. 12A Execution resources 1256A-1256D may coordinate with texture units 1260A-1260D to perform texture operations while sharing instruction cache 1254 and shared memory 1253. For example, execution resources 1256A-1256D may share instruction cache 1254 and shared memory 1253, as well as multiple instances of texture and / or data cache memory 1258A-1258B. Various components may be communicated via a communication interface similar to Fig. 12A The interconnect structure 1227 communicates with the interconnect structure 1252.
[0181] Those skilled in the art should understand that Figure 1 , FIG. 11A to FIG. 11D and FIG. 12A to FIG. 12BThe architecture described in is illustrative and not limiting of the scope of the examples. Thus, without departing from the scope of the examples described herein, the techniques described herein may be implemented on any appropriately configured processing unit, including but not limited to one or more mobile application processors, one or more desktop or server central processing units (CPUs) including multi-core CPUs, such as Fig.11A One or more parallel processing units of parallel processing unit 1102, and one or more graphics processors or special processing units.
[0182] A parallel processor or GPGPU as described herein can be communicatively coupled to a host / processor core to accelerate graphics operations, machine learning operations, pattern analysis operations, and various general-purpose GPU (GPGPU) functions. The GPU can be communicatively coupled to the host processor / core via a bus or other interconnect (e.g., a high-speed interconnect such as PCIe, NVLink, or other known protocols, standardized protocols, or proprietary protocols). In other examples, the GPU can be integrated on the same package or chip as the core and communicatively coupled to the core via an internal processor bus / interconnect (i.e., inside the package or chip). Regardless of the manner in which the GPU is connected, the processor core can assign work to the GPU in the form of a sequence of commands / instructions contained in a work descriptor. The GPU then uses dedicated circuits / logic to efficiently process these commands / instructions.
[0183] Fig. 12C A graphics processing unit (GPU) 1280 is shown, which includes dedicated multiple groups of graphics processing resources arranged into multi-core groups 1265A-1265N. Although only details of a single multi-core group 1265A are provided, it should be understood that other multi-core groups 1265B-1265N can be equipped with the same or similar groups of graphics processing resources. The details described about multi-core groups 1265A-1265N can also be applied to any graphics multiprocessor 1134, 1225, 1250 described herein.
[0184] As shown, multi-core group 1265A may include a group of graphics cores 1270, a group of tensor cores 1271, and a group of ray tracing cores 1272. Scheduler / dispatcher 1268 schedules and dispatches graphics threads for execution on the respective cores 1270, 1271, 1272. A group of register files 1269 stores operand values used by cores 1270, 1271, 1272 when executing graphics threads. These register files may include, for example, integer registers for storing integer values, floating point registers for storing floating point values, vector registers for storing packed data elements (integer and / or floating point data elements), and tile registers for storing tensor / matrix values. Tile registers may be implemented as a combination of multiple groups of vector registers.
[0185] One or more combined level 1 (L1) caches and shared memory units 1273 store graphics data locally within each multi-core group 1265A, such as texture data, vertex data, pixel data, light data, bounding box data, etc. One or more texture units 1274 can also be used to perform texture operations, such as texture mapping and sampling. A level 2 (L2) cache 1275 shared by all or a subset of multi-core groups 1265A-1265N stores graphics data and / or instructions for multiple concurrent graphics threads. As shown, the L2 cache 1275 can be shared across multiple multi-core groups 1265A-1265N. One or more memory controllers 1267 couple the GPU 1280 to a memory 1266, which can be system memory (e.g., DRAM) and / or dedicated graphics memory (e.g., GDDR6 memory).
[0186] Input / output (I / O) circuitry 1263 couples GPU 1280 to one or more I / O devices 1262, such as a digital signal processor (DSP), a network controller, or a user input device. On-chip interconnects may be used to couple I / O devices 1262 to GPU 1280 and memory 1266. One or more I / O memory management units (IOMMUs) 1264 of I / O circuitry 1263 couple I / O devices 1262 directly to system memory 1266. Optionally, IOMMU 1264 manages multiple sets of page tables to map virtual addresses to physical addresses in system memory 1266. I / O devices 1262, CPU 1261, and GPU 1280 may then share the same virtual address space.
[0187] In one implementation of the IOMMU 1264, the IOMMU 1264 supports virtualization. In this case, it may manage a first set of page tables to map guest / graphics virtual addresses to guest / graphics physical addresses, and may manage a second set of page tables to map guest / graphics physical addresses to system / host physical addresses (e.g., within system memory 1266). The base address of each of the first set of page tables and the second set of page tables may be stored in a control register and swapped out at context switch (e.g., so that the new context is provided with access to the relevant set of page tables). Although in Fig. 12C Not shown, but each of the cores 1270, 1271, 1272 and / or multi-core groups 1265A-1265N may include a translation lookaside buffer (TLB) to cache guest virtual to guest physical translations, guest physical to host physical translations, and guest virtual to host physical translations.
[0188] The CPU 1261, GPU 1280, and I / O device 1262 may be integrated on a single semiconductor chip and / or chip package. The illustrated memory 1266 may be integrated on the same chip or may be coupled to a memory controller 1267 via an off-chip interface. In one implementation, the memory 1266 includes GDDR6 memory that shares the same virtual address space as other physical system-level memories, but the underlying principles described herein are not limited to this particular implementation.
[0189] Tensor core 1271 may include multiple execution units specifically designed to perform matrix operations, which are basic computational operations used to perform deep learning operations. For example, simultaneous matrix multiplication operations can be used for neural network training and reasoning. Tensor core 1271 can perform matrix processing using a variety of operand precisions, including single-precision floating point (e.g., 32 bits), half-precision floating point (e.g., 16 bits), integer words (16 bits), bytes (8 bits), and half bytes (4 bits). For example, a neural network implementation extracts features of various rendered scenes that potentially combine details from multiple frames to build a high-quality final image.
[0190] In a deep learning implementation, parallel matrix multiplication work can be scheduled for execution on the tensor core 1271. In particular, the training of neural networks requires a large number of matrix dot product operations. To process the inner product formula of N×N×N matrix multiplication, the tensor core 1271 may include at least N dot product processing elements. Before the matrix multiplication begins, a complete matrix is loaded into the tile register, and at least one column of the second matrix is loaded in each cycle of N cycles. In each cycle, N dot products are processed.
[0191] Matrix elements can be stored with different precisions, including 16-bit words, 8-bit bytes (e.g., INT8), and 4-bit nibbles (e.g., INT4), depending on the specific implementation. Different precision modes can be specified for the tensor core 1271 to ensure the most efficient precision for different workloads (e.g., such as inference workloads that can tolerate quantization to bytes and nibbles). Supported formats also include 64-bit floating point (FP64) and non-IEEE floating point formats, such as bfloat16 format (e.g., brain floating point): a 16-bit floating point format with one sign bit, eight exponent bits, and eight valid bits, of which seven valid bits are explicitly stored. An example includes support for reduced precision tensor floating (TF32) mode, which uses the range of FP32 (8 bits) and the precision of FP16 (10 bits) to perform calculations. Reduced precision TF32 operations can be performed on FP32 inputs and produce FP32 outputs with higher performance relative to FP32 and increased precision relative to FP16. In some examples, one or more 8-bit floating point formats (FP8) are supported.
[0192] In some examples, the tensor core 1271 supports a sparse operation mode for matrices in which the vast majority of values are zero. The tensor core 1271 includes support for sparse input matrices encoded in sparse matrix representations (e.g., coordinate list encoding (COO), compressed sparse rows (CSR), compressed sparse columns (CSC), etc.). The tensor core 1271 also includes support for compressed sparse matrix representations in the case where the sparse matrix representation can be further compressed. Compressed, encoded, and / or compressed and encoded matrix data together with associated compression and / or encoding metadata can be read by the tensor core 1271, and non-zero values can be extracted. For example, for a given input matrix A, non-zero values can be loaded from a compressed and / or encoded representation of at least a portion of matrix A. Based on the position of the non-zero value in matrix A (which can be determined from the index or coordinate metadata associated with the non-zero value), the corresponding value in the input matrix B can be loaded. Depending on the operation to be performed (e.g., multiplication), if the corresponding value is a zero value, the loading of the value from the input matrix B can be bypassed. In some examples, the pairing of values for certain operations, such as multiplication operations, can be pre-scanned by the scheduler logic and only operations between non-zero inputs are scheduled. Depending on the dimensions of matrix A and matrix B and the operation to be performed, the output matrix C can be dense or sparse. In the case where the output matrix C is sparse, depending on the configuration of the tensor core 1271, the output matrix C can be output in a compressed format, sparse coding, or compressed sparse coding.
[0193] The ray tracing core 1272 can accelerate ray tracing operations for real-time ray tracing and non-real-time ray tracing implementations. In particular, the ray tracing core 1272 may include a ray traversal / intersection circuit for performing ray traversal using a bounding box hierarchy (BVH) and identifying intersections between rays and primitives enclosed within the BVH box. The ray tracing core 1272 may also include circuits for performing depth testing and culling (e.g., using a Z buffer or similar arrangement). In one implementation, the ray tracing core 1272 performs traversal and intersection operations in coordination with the image denoising techniques described herein, and at least a portion of the traversal and intersection operations may be performed on the tensor core 1271. For example, the tensor core 1271 may implement a deep learning neural network to perform denoising on frames generated by the ray tracing core 1272. However, the CPU 1261, the graphics core 1270, and / or the ray tracing core 1272 may also implement all or part of the denoising and / or deep learning algorithms.
[0194] Additionally, as described above, a distributed denoising approach may be employed, wherein GPU 1280 is in a computing device coupled to other computing devices via a network or high-speed interconnect. In this distributed approach, the interconnected computing devices may share neural network learning / training data to increase the speed at which the entire system learns to perform denoising for different types of image frames and / or different graphics applications.
[0195] The ray tracing core 1272 can handle all BVH traversals and / or ray-primitive intersections, thereby avoiding overloading the graphics core 1270 with thousands of instructions per ray. For example, each ray tracing core 1272 includes a first set of dedicated circuits for performing bounding box tests (e.g., for traversal operations) and / or a second set of dedicated circuits for performing ray-triangle intersection tests (e.g., crossing rays that have been traversed). Thus, for example, the multi-core group 1265A can simply start the ray probe, and the ray tracing core 1272 independently performs ray traversals and intersections and returns hit data (e.g., hits, misses, multiple hits, etc.) to the thread context. While the ray tracing core 1272 performs traversals and intersection operations, the other cores 1270, 1271 are freed up to perform other graphics or computational work.
[0196] Optionally, each ray tracing core 1272 may include a traversal unit that performs BVH test operations and / or a cross unit that performs ray-primitive intersection tests. The cross unit generates a "hit", "miss", or "multiple hits" response, providing the response to the appropriate thread. During traversal and cross operations, execution resources of other cores (e.g., graphics core 1270 and tensor core 1271) are freed to perform other forms of graphics work.
[0197] In some of the examples described below, a hybrid rasterization / ray tracing approach is used in which work is distributed between graphics core 1270 and ray tracing core 1272.
[0198] The ray tracing core 1272 (and / or other cores 1270, 1271) may include hardware support for a ray tracing instruction set such as Microsoft's DirectX Ray Tracing (DXR), which includes the DispatchRays command and ray generation, closest hit, any hit, and miss shaders, which enable unique sets of shaders and textures to be assigned to each object. Another ray tracing platform that can be supported by the ray tracing core 1272, graphics core 1270, and tensor core 1271 is the Vulkan API (e.g., Vulkan version 1.1.85 and later). However, it should be noted that the basic principles described herein are not limited to any particular ray tracing ISA.
[0199] In general, each core 1272, 1271, 1270 may support a ray tracing instruction set that includes instructions / functions for one or more of ray generation, closest hit, any hit, ray-primitive intersection, per-primitive and hierarchy bounding box construction, misses, accesses, and exceptions. More specifically, some examples include ray tracing instructions that perform one or more of the following functions:
[0200] -Ray Generation -Ray generation instructions can be executed for each pixel, sample, or other user-defined work distribution.
[0201] - Closest Hit - A closest hit instruction may be executed to locate the closest intersection of a ray with a primitive within a scene.
[0202] -Any Hit - The Any Hit instruction identifies multiple intersections between rays and primitives within the scene to potentially identify a new closest intersection point.
[0203] -Cross-The -Cross instruction performs a ray-primitive intersection test and outputs the result.
[0204] - Per-primitive bounding box construction - This instruction builds a bounding box around a given primitive or group of primitives (eg, when building a new BVH or other acceleration data structure).
[0205] -Miss - Indicates that the ray missed all geometry within the scene or a specified area of the scene.
[0206] -Visit - Indicates the subbox that the ray will pass through.
[0207] -Exceptions - includes various types of exception handlers (e.g., called for various error conditions).
[0208] In some examples, the ray tracing core 1272 can be adapted to accelerate general computing operations that can be accelerated using computing techniques similar to ray crossing tests. A computing framework can be provided that enables shader programs to be compiled into low-level instructions and / or primitives that perform general computing operations via the ray tracing core. Exemplary computing problems that can benefit from computing operations performed on the ray tracing core 1272 include calculations involving beam, wave, light, or particle propagation in a coordinate space. Interactions associated with the propagation can be calculated relative to a geometry or grid in the coordinate space. For example, calculations associated with the propagation of electromagnetic signals through an environment can be accelerated using instructions or primitives executed via a ray tracing core. The diffraction and reflection of the signal by objects in the environment can be calculated as a direct ray tracing analogy.
[0209] The ray tracing core 1272 can also be used to perform calculations that are not directly similar to ray tracing. For example, the ray tracing core 1272 can be used to accelerate mesh projection, mesh refinement, and volume sampling calculations. General coordinate space calculations, such as nearest neighbor calculations, can also be performed. For example, a set of points near a given point can be found by defining a bounding box in the coordinate space around the point. Then, the BVH and ray detection logic within the ray tracing core 1272 can be used to determine the set of intersections of points within the bounding box. The intersection constitutes the origin and the nearest neighbor of the origin. The calculations performed using the ray tracing core 1272 can be performed in parallel with the calculations performed on the graphics core 1272 and the tensor core 1271. The shader compiler can be configured to compile a compute shader or other general graphics processing program into a low-level primitive that can be parallelized across the graphics core 1270, the tensor core 1271, and the ray tracing core 1272.
[0210] Building larger and larger silicon dies is challenging for a variety of reasons. As silicon dies get larger, manufacturing yields get smaller, and the process technology requirements for different components may be different. On the other hand, in order to have a high-performance system, key components should be interconnected through high-speed, high-bandwidth, low-latency interfaces. These conflicting requirements pose challenges to the development of high-performance chips.
[0211] The examples described herein provide techniques that decompose the architecture of a system-on-chip integrated circuit into multiple different chiplets that can be packaged onto a common chassis. In some examples, a graphics processing unit or a parallel processor consists of different silicon chiplets that are manufactured separately. A chiplet is an integrated circuit that is at least partially packaged and includes different logic units that can be assembled with other chiplets into a larger package. Different groups of chiplets with different IP core logic can be assembled into a single device. In addition, chiplets can be integrated into a base die or base chiplet using active inserter technology. The concepts described herein enable interconnection and communication between different forms of IP within a GPU. Developing IP on different processes can be mixed. This avoids the complexity of converging multiple IPs, especially multiple IPs on a large SoC with several flavors of IP, to the same process.
[0212] Enabling the use of multiple process technologies improves time to market and provides a cost-effective way to create multiple product SKUs. For customers, this means getting products that are more tailored to their needs in a cost-effective and timely manner. In addition, decomposed IP is more easily power-gated independently, and components that are not used on a given workload can be powered off, reducing overall power consumption.
[0213] Fig.13A parallel computing system 1300 according to some examples is shown. In some examples, the parallel computing system 1300 includes a parallel processor 1320, which may be a graphics processor or a computing accelerator as described herein. The parallel processor 1320 includes a global logic unit 1301, an interface 1302, a thread dispatcher 1303, a media unit 1304, a group of computing units 1305A-1305H, and a cache / memory unit 1306. In some examples, the global logic unit 1301 includes global functions for the parallel processor 1320, including device configuration registers, a global scheduler, power management logic, etc. The interface 1302 may include a front-end interface for the parallel processor 1320. The thread dispatcher 1303 may receive a workload from the interface 1302 and dispatch threads for the workload to the computing units 1305A-1305H. If the workload includes any media operations, at least a portion of these operations may be performed by the media unit 1304. The media unit may also offload some operations to the compute units 1305A-1305H. The cache / memory unit 1306 may include cache memory (eg, L3 cache) and local memory (eg, HBM, GDDR) for the parallel processors 1320.
[0214] FIG. 14A to FIG. 14B A hybrid logical / physical view of a factorized parallel processor according to examples described herein is shown. Fig.14A A decomposed parallel computing system 1400 is shown. Fig. 14B A chiplet 1430 of the decomposed parallel computing system 1400 is shown.
[0215] like Fig.14A As shown, the decomposed computing system 1400 may include a parallel processor 1420, wherein the various components of the parallel processor SoC are distributed across multiple chiplets. Each chiplet may be a different IP core that is independently designed and configured to communicate with other chiplets via one or more common interfaces. The chiplets include, but are not limited to, a computing chiplet 1405, a media chiplet 1404, and a memory chiplet 1406. Each chiplet may be manufactured separately using different process technologies. For example, the computing chiplet 1405 may be manufactured using the smallest or most advanced process technology available at the time of manufacturing, while the memory chiplet 1406 or other chiplets (e.g., I / O, networking, etc.) may be manufactured using a larger or less advanced process technology.
[0216] Various chiplets may be bonded to the base die 1410 and configured to communicate with each other and logic within the base die 1410 via an interconnect layer 1412. In some examples, the base die 1410 may include global logic 1401, which may include a scheduler 1411 and power management 1421 logic unit, an interface 1402, a dispatch unit 1403, and an interconnect fabric module 1408 coupled or integrated with one or more L3 cache banks 1409A-1409N. The interconnect fabric 1408 may be an inter-chiplet fabric integrated into the base die 1410. The fabric 1408 may be used by the logic chiplets to relay messages between the various chiplets. Additionally, the L3 cache banks 1409A-1409N in the base die and / or the L3 cache banks within the memory chiplet 1406 may cache data read from and sent to the DRAM chiplets within the memory chiplet 1406 as well as data read from and sent to the system memory of the host.
[0217] In some examples, global logic 1401 is a microcontroller that can execute firmware to perform scheduler 1411 and power management 1421 functions for parallel processor 1420. The microcontroller executing the global logic can be customized for the target use case of parallel processor 1420. Scheduler 1411 can perform global scheduling operations for parallel processor 1420. Power management 1421 functions can be used to enable or disable individual chiplets within a parallel processor when they are not being used.
[0218] The individual chiplets of the parallel processor 1420 may be designed to perform a specific function that would be integrated into a single die in existing designs. A set of compute chiplets 1405 may include a cluster of compute units (e.g., execution units, streaming multiprocessors, etc.) that include programmable logic to execute compute or graphics shader instructions. Media chiplets 1404 may include hardware logic to accelerate media encoding and decoding operations. Memory chiplets 1406 may include volatile memory (e.g., DRAM) and one or more SRAM cache banks (e.g., L3 banks).
[0219] like Fig. 14BAs shown, each chiplet 1430 may include common components and dedicated components. The chiplet logic 1436 within the chiplet 1430 may include specific components of the chiplet, such as an array of streaming multiprocessors, computational units, or execution units described herein. The chiplet logic 1436 may be coupled to an optional cache or shared local memory 1438, or a cache or shared local memory may be included in the chiplet logic 1436. The chiplet 1430 may include a fabric interconnect node 1442 that receives commands via an inter-chiplet fabric. Commands and data received via the fabric interconnect node 1442 may be temporarily stored in an interconnect buffer 1439. Data sent to and received from the fabric interconnect node 1442 may be stored in the interconnect cache 1440. Power control 1432 and clock control 1434 logic may also be included within the chiplet. The power control 1432 and clock control 1434 logic may receive configuration commands via a fabric that may configure dynamic voltage and frequency scaling of the chiplet 1430. In some examples, individual chiplets can have independent clock and power domains and can be clock-gated and power-gated independently of other chiplets.
[0220] At least a portion of the components within the illustrated chiplet 1430 may also be included in an embedded Fig.14A The base die 1410 may be within logic within the base die 1410. For example, logic within the base die that communicates with the fabric may include a version of the fabric interconnect node 1442. Base die logic that may be independently clocked or power gated may include a version of the power control 1432 and / or clock control 1434 logic.
[0221] Thus, while various examples described herein use the term SoC to describe a device or system having a processor and associated circuitry (e.g., input / output (“I / O”) circuitry, power delivery circuitry, memory circuitry, etc.) integrally integrated into a single integrated circuit (“IC”) die or chip, the present disclosure is not limited in this regard. For example, in various examples of the present disclosure, a device or system may have one or more processors (e.g., one or more processor cores) and associated circuitry (e.g., input / output (“I / O”) circuitry, power delivery circuitry, etc.) arranged in a disaggregated collection of discrete dies, tiles, and / or chiplets (e.g., one or more discrete processor core dies arranged adjacent to one or more other dies such as memory dies, I / O dies, etc.). In such disaggregated devices and systems, the various dies, tiles, and / or chiplets may be physically and electrically coupled together by a packaging structure including, for example, various packaging substrates, interposers, active interposers, photonic interposers, interconnect bridges, etc. The disaggregated collection of discrete dies, tiles, and / or chiplets may also be part of a system on a package (“SoP”).
[0222] Example core architectures - in-order and out-of-order core block diagrams.
[0223] Fig.15A is a block diagram illustrating both an example in-order pipeline and an example register renaming, out-of-order issue / execution pipeline according to an example. Fig. 15B is a block diagram illustrating both an example in-order architecture core and an example register renaming, out-of-order issue / execution architecture core to be included in a processor according to an example. FIG. 15A to FIG. 15B The solid line boxes in show the in-order pipeline and in-order core, while the optional addition of dashed line boxes shows the register renaming, out-of-order issue / execution pipeline and core. Considering that the in-order aspect is a subset of the out-of-order aspect, the out-of-order aspect will be described.
[0224] exist Fig.15A , the processor pipeline 1500 includes a fetch stage 1502, an optional length decode stage 1504, a decode stage 1506, an optional allocation (Alloc) stage 1508, an optional rename stage 1510, a scheduling (also called dispatch or issue) stage 1512, an optional register read / memory read stage 1514, an execution stage 1516, a write-back / memory write stage 1518, an optional exception handling stage 1522, and an optional commit stage 1524. One or more operations may be performed in each of these processor pipeline stages. For example, during the fetch stage 1502, one or more instructions are fetched from the instruction memory, and during the decode stage 1506, one or more fetched instructions may be decoded, an address using a forwarded register port (e.g., a load storage unit (LSU) address) may be generated, and branch forwarding (e.g., an immediate value offset or a link register (LR)) may be performed. In some examples, the decode stage 1506 and the register read / memory read stage 1514 may be combined into one pipeline stage. In some examples, during the execute stage 1516, decoded instructions may be executed, LSU address / data pipelining to an advanced microcontroller bus (AMB) interface may be performed, multiplication and addition operations may be performed, arithmetic operations with branch results may be performed, and the like.
[0225] By way of example, Fig. 15BAn example register renaming, out-of-order issue / execution architecture core may implement pipeline 1500 as follows: 1) instruction fetch circuit 1538 performs fetch and length decode stages 1502 and 1504; 2) decode circuit 1540 performs decode stage 1506; 3) rename / allocator unit circuit 1552 performs allocation stage 1508 and rename stage 1510; 4) scheduler circuit 1556 performs schedule stage 1512; 5) physical register file circuit 1558 and memory unit circuit 1570 perform register read / memory read stage 1514; execution cluster 1560 executes stage 1516; 6) memory unit circuit 1570 and physical register file circuit 1558 perform write back / memory write stage 1518; 7) various circuits may be involved in exception handling stage 1522; and 8) retirement unit circuit 1554 and physical register file circuit 1558 perform commit stage 1524.
[0226] Fig. 15B A processor core 1590 is shown, which includes a front end unit circuit 1530 coupled to an execution engine unit circuit 1550, and both are coupled to a memory unit circuit 1570. The core 1590 can be a reduced instruction set architecture computing (RISC) core, a complex instruction set architecture computing (CISC) core, a very long instruction word (VLIW) core, or a hybrid or alternative core type. As a further option, the core 1590 can be a special purpose core, such as, for example, a network or communication core, a compression engine, a coprocessor core, a general purpose computing graphics processing unit (GPGPU) core, a graphics core, etc.
[0227] The front end unit circuit 1530 may include a branch prediction circuit 1532 coupled to an instruction cache circuit 1534, which is coupled to an instruction translation lookaside buffer (TLB) 1536, which is coupled to an instruction fetch circuit 1538, which is coupled to a decoding circuit 1540. In some examples, the instruction cache circuit 1534 is included in the memory unit circuit 1570 instead of the front end circuit 1530. The decoding circuit 1540 (or decoder) can decode the instruction and generate one or more micro-operations, microcode entry points, microinstructions, other instructions or other control signals as output, which are decoded from the original instruction or otherwise reflect the original instruction or are derived from the original instruction. The decoding circuit 1540 may also include an address generation unit (AGU, not shown) circuit. In some examples, the AGU generates an LSU address using a forwarded register port, and may further perform branch forwarding (e.g., immediate value offset branch forwarding, LR register branch forwarding, etc.). The decoding circuit 1540 can be implemented using a variety of different mechanisms. Examples of suitable mechanisms include, but are not limited to, lookup tables, hardware implementations, programmable logic arrays (PLAs), microcode read-only memories (ROMs), etc. In some examples, core 1590 includes a microcode ROM (not shown) or other medium that stores microcode for certain macroinstructions (e.g., in decode circuitry 1540 or otherwise within front-end circuitry 1530). In some examples, decode circuitry 1540 includes a micro-op or operation cache (not shown) to hold / cache decode operations, micro-tags, or micro-ops generated during decode or other stages of processor pipeline 1500. Decode circuitry 1540 may be coupled to rename / allocator unit circuitry 1552 in execution engine circuitry 1550.
[0228] The execution engine circuit 1550 includes a rename / allocator unit circuit 1552 coupled to a retirement unit circuit 1554 and a set of one or more scheduler circuits 1556. The scheduler circuit 1556 represents any number of different schedulers, including reservation stations, central instruction windows, and the like. In some examples, the scheduler circuit 1556 may include an arithmetic logic unit (ALU) scheduler / scheduling circuit, an ALU queue, an address generation unit (AGU) scheduler / scheduling circuit, an AGU queue, and the like. The scheduler circuit 1556 is coupled to a physical register file circuit 1558. Each physical register file circuit 1558 represents one or more physical register files, where different physical register files store one or more different data types, such as scalar integers, scalar floating points, packed integers, packed floating points, vector integers, vector floating points, status (e.g., an instruction pointer that is the address of the next instruction to be executed), and the like. In some examples, the physical register file circuit 1558 includes a vector register unit circuit, a write mask register unit circuit, and a scalar register unit circuit. These register units may provide architectural vector registers, vector mask registers, general purpose registers, etc. Physical register file circuitry 1558 is coupled to retirement unit circuitry 1554 (also referred to as a retirement queue) to illustrate various ways in which register renaming and out-of-order execution may be implemented (e.g., using a reorder buffer (ROB) and a retirement register file; using a future file, a history buffer, and a retirement register file; using a register map and a register pool, etc.). Retirement unit circuitry 1554 and physical register file circuitry 1558 are coupled to execution cluster 1560. Execution cluster 1560 includes a set of one or more execution unit circuitry 1562 and a set of one or more memory access circuitry 1564. Execution unit circuitry 1562 may perform various arithmetic, logical, floating point, or other types of operations (e.g., shifts, additions, subtractions, multiplications) on various types of data (e.g., scalar integer, scalar floating point, packed integer, packed floating point, vector integer, vector floating point). While some examples may include multiple execution units or execution unit circuits dedicated to a particular function or set of functions, other examples may include only one execution unit circuit or multiple execution units / execution unit circuits that all perform all functions. Scheduler circuit 1556, physical register file circuit 1558, and execution cluster 1560 are shown as potentially multiple because some examples create separate pipelines for certain types of data / operations (e.g., a scalar integer pipeline, scalar floating point / packed integer / packed floating point / vector integer / vector floating point pipeline, and / or memory access pipeline, each with its own scheduler circuit, physical register file circuit, and / or execution cluster—and in the case of a separate memory access pipeline, some examples are implemented where only the execution cluster of that pipeline has a memory access unit circuit 1564).It should also be understood that where separate pipelines are used, one or more of these pipelines may be out-of-order issue / execution while the rest are in-order.
[0229] In some examples, execution engine unit circuit 1550 may perform load store unit (LSU) address / data pipelining, as well as address stage and writeback, data stage loads, stores, and branches to an advanced microcontroller bus (AMB) interface (not shown).
[0230] The set of memory access circuits 1564 is coupled to the memory cell circuit 1570, which includes a data TLB circuit 1572 coupled to a data cache circuit 1574, which is coupled to a level 2 (L2) cache circuit 1576. In some examples, the memory access circuit 1564 may include a load unit circuit, a store address unit circuit, and a store data unit circuit, each of which is coupled to the data TLB circuit 1572 in the memory cell circuit 1570. The instruction cache circuit 1534 is also coupled to the level 2 (L2) cache circuit 1576 in the memory cell circuit 1570. In some examples, the instruction cache 1534 and the data cache 1574 are combined into a single instruction and data cache (not shown) in the L2 cache circuit 1576, the level 3 (L3) cache circuit (not shown), and / or the main memory. The L2 cache circuit 1576 is coupled to one or more other levels of cache and ultimately to the main memory.
[0231] Core 1590 may support one or more instruction sets (e.g., x86 instruction set architecture (optionally with some extensions that have been added to newer versions); MIPS instruction set architecture; ARM instruction set architecture (optionally with optional additional extensions such as NEON)), including the instructions described herein. In some examples, core 1590 includes logic to support packed data instruction set architecture extensions (e.g., AVX1, AVX2), allowing operations used by many multimedia applications to be performed using packed data.
[0232] Example execution unit circuit.
[0233] Fig.16 Shows such as Fig. 15BAn example of an execution unit circuit of an execution unit circuit 1562 of an embodiment of the present invention. As shown, the execution unit circuit 1562 may include one or more ALU circuits 1601, optional vector / single instruction multiple data (SIMD) circuits 1603, load / store circuits 1605, branch / jump circuits 1607, and / or floating point unit (FPU) circuits 1609. The ALU circuit 1601 performs integer operations and / or Boolean operations. The vector / SIMD circuit 1603 performs vector / SIMD operations on compressed data (such as SIMD / vector registers). The load / store circuit 1605 executes load and store instructions to load data from a memory into a register or store data from a register to a memory. The load / store circuit 1605 may also generate an address. The branch / jump circuit 1607 causes a branch or jump to a memory address according to the instruction. The FPU circuit 1609 performs floating point operations. The width of the execution unit circuit 1562 varies according to the example and may be in the range of, for example, 16 bits to 1024 bits. In some examples, two or more smaller execution units are logically combined to form a larger execution unit (eg, two 128-bit execution units are logically combined to form a 256-bit execution unit).
[0234] Example register architecture.
[0235] Fig.17 1700 is a block diagram of a register architecture 1700 according to some examples. As shown, the register architecture 1700 includes a vector / SIMD register 1710 that changes from a 128-bit width to a 1024-bit width. In some examples, the vector / SIMD register 1710 is physically 512 bits, and according to the mapping, only some lower bits are used. For example, in some examples, the vector / SIMD register 1710 is a 512-bit ZMM register: the lower 256 bits are used for the YMM register, and the lower 128 bits are used for the XMM register. It can be seen that there is an overlay of registers. In some examples, the vector length field is selected between the maximum length and one or more other shorter lengths, wherein each such shorter length is half of the previous length. Scalar operations are operations performed on the lowest bit data element position in the ZMM / YMM / XMM register; according to the example, the higher bit data element positions are either the same as they were before the instruction, or are reset to zero.
[0236] In some examples, the register architecture 1700 includes a write mask / predicate register 1715. For example, in some examples, there are 8 write mask / predicate registers (sometimes referred to as k0 to k7), each of which is 16 bits, 32 bits, 64 bits, or 128 bits in size. The write mask / predicate register 1715 may allow merging (e.g., allowing any set of elements in the destination to be protected from updates during the execution of any operation) and / or zeroing (e.g., zeroing the vector mask allows any set of elements in the destination to be zeroed during the execution of any operation). In some examples, each data element position in a given write mask / predicate register 1715 corresponds to a data element position in the destination. In other examples, the write mask / predicate register 1715 is scalable and consists of a set number of enable bits for a given vector element (e.g., 8 enable bits per 64-bit vector element).
[0237] The register architecture 1700 includes a plurality of general registers 1725. These registers may be 16-bit, 32-bit, 64-bit, etc., and may be used for scalar operations. In some examples, these registers are referenced by the names RAX, RBX, RCX, RDX, RBP, RSI, RDI, RSP, and R8 to R15.
[0238] In some examples, the register architecture 1700 includes a scalar floating point (FP) register file 1745, which is used to perform scalar floating point operations on 32 / 64 / 80-bit floating point data using the x87 instruction set architecture extension, or used as an MMX register to perform operations on 64-bit packed integer data, and to hold operands for some operations performed between MMX and XMM registers.
[0239] One or more flag registers 1740 (e.g., EFLAGS, RFLAGS, etc.) store status and control information for arithmetic, comparison, and system operations. For example, one or more flag registers 1740 can store condition code information such as carry, parity, auxiliary carry, zero, sign, and overflow. In some examples, one or more flag registers 1740 are referred to as program status and control registers.
[0240] Segment registers 1720 contain segment points for accessing memory. In some examples, these registers are referenced by the names CS, DS, SS, ES, FS, and GS.
[0241] Model-specific registers or machine-specific registers (MSRs) 1735 control and report processor performance. Most MSRs 1735 handle system-related functions and cannot be accessed by applications. For example, MSRs can provide control of one or more of the following: performance monitoring counters, debug extensions, memory type range registers, thermal and power management, instruction-specific support, and / or processor feature / mode support. Machine check registers 1760 include control, status, and error reporting MSRs for detecting and reporting hardware errors. Control registers 1755 (e.g., CR0-CR4) determine the operating mode of the processor (e.g., processors 870, 880, 838, 815, and / or 900) and the characteristics of the currently executing task. In some examples, MSRs 1735 are a subset of control registers 1755.
[0242] One or more instruction pointer registers 1730 store instruction pointer values. Debug registers 1750 control and allow monitoring of debug operations of the processor or core.
[0243] Memory (mem) management registers 1765 specify the location of data structures used in protected mode memory management. These registers may include the global descriptor table register (GDTR), the interrupt descriptor table register (IDTR), the task register, and the local descriptor table register (LDTR).
[0244] Alternative examples may use wider or narrower registers. In addition, alternative examples may use more, fewer, or different register files and registers. Register architecture 1700 may be used, for example, in register file 110 or physical register file circuit 1558.
[0245] Instruction set architecture.
[0246] Instruction set architecture (ISA) can include one or more instruction formats. A given instruction format can define various fields (e.g., the number of bits, the position of bits) to specify the operation to be performed (e.g., opcode) and the operands and / or other data fields (e.g., masks) on which the operation is to be performed. Some instruction formats are further decomposed by the definition of instruction templates (or sub-formats). For example, an instruction template of a given instruction format can be defined as having different subsets of fields of the instruction format (the fields included are usually in the same order, but at least some fields have different bit positions because fewer fields are included) and / or defined as having given fields interpreted differently. Thus, each instruction of the ISA is expressed using a given instruction format (and if defined, in a given one of the instruction templates of the instruction format), and includes fields for specifying operations and operands. For example, an example ADD instruction has a specific opcode and instruction format, which includes an opcode field specifying the opcode and an operand field for selecting operands (source 1 / destination and source 2); and the occurrence of this ADD instruction in an instruction stream will have specific content in the operand field for selecting a specific operand. Additionally, although the following description is made in the context of the x86 ISA, it is within the purview of those skilled in the art to apply the teachings of the present disclosure in another ISA.
[0247] Example instruction format.
[0248] The examples of instructions described herein may be implemented in different formats. In addition, example systems, architectures, and pipelines are described in detail below. The examples of instructions may be executed on such systems, architectures, and pipelines, but are not limited to those described in detail.
[0249] Fig.18 An example of an instruction format is shown. As shown, an instruction may include multiple components, including but not limited to one or more fields for: one or more prefixes 1801, an opcode 1803, addressing information 1805 (e.g., a register identifier, memory addressing information, etc.), a displacement value 1807, and / or an immediate value 1809. It should be noted that some instructions utilize some or all of the fields of the format, while other instructions may only use the opcode 1803 field. In some examples, the order shown is the order in which these fields are to be encoded, however, it should be understood that in other examples, these fields may be encoded in a different order, combined, etc.
[0250] Prefix field 1801 modifies instructions when used. In some examples, one or more prefixes are used to repeat string instructions (e.g., 0xF0, 0xF2, 0xF3, etc.), to provide partial coverage (e.g., 0x2E, 0x36, 0x3E, 0x26, 0x64, 0x65, 0x2E, 0x3E, etc.), perform bus lock operations, and / or change operands (e.g., 0x66) and address sizes (e.g., 0x67). Certain instructions require mandatory prefixes (e.g., 0x66, 0xF2, 0xF3, etc.). Some of these prefixes can be considered "traditional" prefixes. Other prefixes (one or more examples of which are described in detail herein) indicate and / or provide further capabilities, such as specifying specific registers, etc. Other prefixes generally follow the "traditional" prefix.
[0251] The opcode field 1803 is used to at least partially define the operation to be performed when decoding the instruction. In some examples, the length of the primary opcode encoded in the opcode field 1803 is one, two or three bytes. In other examples, the primary opcode can be a different length. Sometimes an additional 3-bit opcode field is encoded in another field.
[0252] The addressing information field 1805 is used to address one or more operands of the instruction, such as a location in memory or one or more registers. Fig.19 An example of an addressing information field 1805 is shown. In this illustration, an optional MOD R / M byte 1902 and an optional scale, index, base (SIB) byte 1904 are shown. The MOD R / M byte 1902 and SIB byte 1904 are used to encode up to two operands of the instruction, each operand being a direct register or an effective memory address. It should be noted that both of these fields are optional, as not all instructions include one or more of these fields. The MOD R / M byte 1902 includes a MOD field 1942, a register (reg) field 1944, and an R / M field 1946.
[0253] The content of MOD field 1942 distinguishes between memory access and non-memory access modes. In some examples, when MOD field 1942 has a binary value of 11 (11b), register direct addressing mode is used, otherwise register indirect addressing mode is used.
[0254] Register field 1944 may encode a destination register operand or a source register operand, or may encode an opcode extension and is not used to encode any instruction operand. The contents of register field 1944 specify the location (in a register or in memory) of the source or destination operand directly or through address generation. In some examples, register field 1944 is supplemented with additional bits from a prefix (e.g., prefix 1801) to allow for greater addressing.
[0255] R / M field 1946 may be used to encode an instruction operand that references a memory address, or may be used to encode a destination register operand or a source register operand. Note that in some examples, R / M field 1946 may be combined with MOD field 1942 to indicate an addressing mode.
[0256] SIB byte 1904 includes a scaling field 1952, an index field 1954, and a base address field 1956 used in the generation of the address. Scaling field 1952 indicates a scaling factor. Index field 1954 specifies the index register to be used. In some examples, index field 1954 is supplemented with additional bits from a prefix (e.g., prefix 1801) to allow for larger addressing. Base address field 1956 specifies the base address register to be used. In some examples, base address field 1956 is supplemented with additional bits from a prefix (e.g., prefix 1801) to allow for larger addressing. In practice, the content of scaling field 1952 allows the content of index field 1954 to be scaled for memory address generation (e.g., for use with 2 缩放 * address generation of index + base address).
[0257] Some addressing forms use displacement values to generate memory addresses. For example, 缩放 The memory address may be generated by using a *index+base+displacement, index*scale+displacement, r / m+displacement, instruction pointer (RIP / EIP)+displacement, register+displacement, etc. The displacement may be a value of 1 byte, 2 bytes, 4 bytes, etc. In some examples, the displacement field 1807 provides the value. Additionally, in some examples, the displacement factor is encoded in the MOD field of the addressing information field 1805, which indicates a compressed displacement scheme for which the displacement value is calculated and stored in the displacement field 1807.
[0258] In some examples, the immediate value field 1809 specifies the immediate value of the instruction. The immediate value may be encoded as a 1-byte value, a 2-byte value, a 4-byte value, etc.
[0259] Fig. 20 An example of a first prefix 1801(A) is shown. In some examples, the first prefix 1801(A) is an example of a REX prefix. Instructions using this prefix can specify general registers, 64-bit packed data registers (e.g., single instruction multiple data (SIMD) registers or vector registers), and / or control and / or status registers and debug registers (e.g., CR8-CR15 and DR8-DR15).
[0260] Instructions using the first prefix 1801(A) can specify up to three registers using 3-bit fields depending on the format: 1) using the register field 1944 and the R / M field 1946 of the MOD R / M byte 1902; 2) using the MODR / M byte 1902 with the SIB byte 1904, including using the register field 1944 as well as the base field 1956 and the index field 1954; or 3) using the register field of the opcode.
[0261] In the first prefix 1801 (A), the bit positions of payload bytes 7:4 are set to 0100. Bit position 3 (W) can be used to determine the operand size, but can determine more than just the operand width. It can be seen that when W=0, the operand size is determined by the code segment descriptor (CS.D), and when W=1, the operand size is 64 bits.
[0262] Note that the addition of another bit allows addressing of 16 (2 4 ) registers, while the MOD R / M register field 1944 and the MOD R / MR / M field 1946 alone can each address only 8 registers.
[0263] In the first prefix 1801(A), bit position 2 (R) may be an extension of the MOD R / M register field 1944 and may be used to modify the MOD R / M register field 1944 when the field encodes a general register, a 64-bit packed data register (e.g., an SSE register), or a control or debug register. When the MOD R / M byte 1902 specifies other registers or defines an extended opcode, R is ignored.
[0264] Bit position 1 (X) may modify the SIB byte index field 1954 .
[0265] Bit position 0 (B) may modify the base address in MOD R / MR / M field 1946 or SIB byte base address field 1956; or it may modify the opcode register field used to access a general register (eg, general register 1725).
[0266] FIG. 21A to FIG. 21D An example of how the R, X, and B fields of the first prefix 1801 (A) are used is shown. Fig.21A The register field 1944 and the R / M field 1946 of the MOD R / M byte 1902 are shown extended using the R and B from the first prefix 1801 (A) when the SIB byte 1904 is not used for memory addressing. Fig.21BThe register field 1944 and the R / M field 1946 of the MOD R / M byte 1902 are shown extended with the R and B from the first prefix 1801 (A) when the SIB byte 1904 is not used (register-register addressing). Fig. 21C The register field 1944 of the MOD R / M byte 1902 as well as the index field 1954 and the base address field 1956 are shown to be extended using the R, X, and B from the first prefix 1801 (A) when the SIB byte 1904 is used for memory addressing. Fig.21D The register field 1944 of the MOD R / M byte 1902 is shown extended using the B from the first prefix 1801 (A) when the register is encoded in the opcode 1803 .
[0267] FIG. 22A to FIG. 22B An example of a second prefix 1801(B) is shown. In some examples, the second prefix 1801(B) is an example of a VEX prefix. The second prefix 1801(B) encoding allows instructions to have more than two operands and allows SIMD vector registers (e.g., vector / SIMD registers 1710) to be longer than 64 bits (e.g., 128 bits and 256 bits). The use of the second prefix 1801(B) provides a three-operand (or more) syntax. For example, the previous two operand instructions performed operations such as A=A+B, which overwrote the source operands. The use of the second prefix 1801(B) enables operands to perform non-destructive operations such as A=B+C.
[0268] In some examples, the second prefix 1801(B) appears in two forms - a two-byte form and a three-byte form. The two-byte second prefix 1801(B) is primarily used for 128-bit, scalar, and some 256-bit instructions; while the three-byte second prefix 1801(B) provides a compact replacement for the first prefix 1801(A) with 3-byte opcode instructions.
[0269] Fig.22AAn example of a two-byte form of a second prefix 1801 (B) is shown. In some examples, the format field 2201 (byte 0 2203) contains a value of C5H. In some examples, byte 1 2205 includes an "R" value in position [7]. This value is the complement of the "R" value of the first prefix 1801 (A). Position [2] is used to indicate the length (L) of the vector (wherein value 0 is a scalar or 128-bit vector and value 1 is a 256-bit vector). Position [1:0] provides an opcode extension equivalent to some traditional prefixes (e.g., 00=no prefix, 01=66H, 10=F3H, and 11=F2H). Bits [6:3], shown as vvvv, can be used to: 1) encode a first source register operand specified in reverse (inverse) form and valid for instructions with 2 or more source operands; 2) encode a destination register operand specified in inverse form for certain vector shifts; or 3) not encode any operand, the field is reserved and should contain some value, such as 1111b.
[0270] Instructions using this prefix may use MOD R / MR / M field 1946 to encode an instruction operand that references a memory address or to encode a destination register operand or a source register operand.
[0271] Instructions using this prefix may use MOD R / M register field 1944 to encode a destination register operand or a source register operand, or may be treated as an opcode extension and not used to encode any instruction operand.
[0272] For instruction syntax supporting four operands, vvvv, MOD R / MR / M field 1946, and MOD R / M register field 1944 encode three of the four operands. Bits [7:4] of immediate value field 1809 are then used to encode the third source register operand.
[0273] Fig. 22B An example of a three-byte form of the second prefix 1801 (B) is shown. In some examples, the format field 2211 (byte 0 2213) contains the value C4H. Byte 1 2215 includes "R", "X" and "B" in position [7:5], which are the complements of the same value of the first prefix 1801 (A). Position [4:0] of byte 1 2215 (shown as mmmm) includes the content of encoding one or more implicit leading opcode bytes as needed. For example, 00001 means 0FH leading opcode, 00010 means 0F38H leading opcode, 00011 means 0F3AH leading opcode, and so on.
[0274] Bit [7] of byte 2 2217 is used similarly to W of the first prefix 1801 (A), including helping determine the size of operands that can be promoted. Bit [2] is used to indicate the length (L) of the vector (where a value of 0 is a scalar or 128-bit vector and a value of 1 is a 256-bit vector). Bits [1:0] provide opcode extensions that are equivalent to some traditional prefixes (e.g., 00=no prefix, 01=66H, 10=F3H, and 11=F2H). Bits [6:3], shown as vvvv, can be used to: 1) encode a first source register operand that is specified in reverse (inverse) form and is valid for instructions with 2 or more source operands; 2) encode a destination register operand that is specified in inverse form for certain vector shifts; or 3) do not encode any operands, this field is reserved and should contain a value, such as 1111b.
[0275] Instructions using this prefix may use MOD R / MR / M field 1946 to encode an instruction operand that references a memory address or to encode a destination register operand or a source register operand.
[0276] Instructions using this prefix may use MOD R / M register field 1944 to encode a destination register operand or a source register operand, or may be treated as an opcode extension and not used to encode any instruction operand.
[0277] For instruction syntax supporting four operands, vvvv, MOD R / MR / M field 1946, and MOD R / M register field 1944 encode three of the four operands. Bits [7:4] of immediate value field 1809 are then used to encode the third source register operand.
[0278] Fig.23 An example of a third prefix 1801(C) is shown. In some examples, the third prefix 1801(C) is an example of an EVEX prefix. The third prefix 1801(C) is a four-byte prefix.
[0279] The third prefix 1801(C) may encode 32 vector registers (e.g., 128-bit, 256-bit, and 512-bit registers) in 64-bit mode. In some examples, write masks / operation masks are used (see, e.g., Fig.17 The prefix is used by instructions that are not intended to be used for conditional processing or selection control (e.g., the discussion of registers in the previous figures of FIG. 1801 ) or predicted by the operator. The operator mask register allows conditional processing or selection control. The second prefix 1801 (B) is used to encode an operator mask instruction whose source / destination operand is an operator mask register and the contents of the operator mask register are treated as a single value.
[0280] The third prefix 1801(C) may encode functionality specific to the instruction class (e.g., a packed instruction with “load+operation” semantics may support an embedded broadcast functionality, a floating-point instruction with rounding semantics may support a static rounding functionality, a floating-point instruction with non-rounding arithmetic semantics may support a “suppress all exceptions” functionality, etc.).
[0281] The first byte of the third prefix 1801 (C) is the format field 2311, which in some examples has a value of 62 H. Subsequent bytes are referred to as payload bytes 2315-2319 and together form a 24-bit value P[23:0], which provides specific capabilities (described in detail herein) in the form of one or more fields.
[0282] In some examples, P[1:0] of payload byte 2319 is the same as the lower two mm bits. In some examples, P[3:2] is reserved. Bit P[4] (R') allows access to the upper 16 vector registers when combined with P[7] and MOD R / M register field 1944. P[6] can also provide access to the upper 16 vector registers when SIB type addressing is not required. P[7:5] includes R, X, and B, which are operand specifier modifier bits for vector registers, general registers, memory addressing, and allow access to the next group of 8 registers outside the lower 8 registers when combined with MOD R / M register field 1944 and MOD R / MR / M field 1946. P[9:8] provides an opcode extension equivalent to some traditional prefixes (e.g., 00=no prefix, 01=66H, 10=F3H, and 11=F2H). In some examples, P
[10] is a fixed value of 1. P[14:11], shown as vvvv, can be used to: 1) encode a first source register operand specified in reverse (inverse) form and valid for instructions with 2 or more source operands; 2) encode a destination register operand specified in inverse form for certain vector shifts; or 3) not encode any operand, the field is reserved and should contain some value, such as 1111b.
[0283] P
[15] is similar to W of the first prefix 1801(A) and the second prefix 1801(B), and can be used as an opcode extension bit or operand size promotion.
[0284] P[18:16] specifies the index of a register in an operation mask (write mask) register (e.g., write mask / predicate register 1715). In some examples, a particular value aaa=000 has special behavior that implies that no operation mask is used for a particular instruction (this can be implemented in various ways, including using an operation mask hardwired to all ones or hardware that bypasses the masking hardware). When merging, the vector mask allows any set of elements in the destination to be protected from being updated during the execution of any operation (specified by the base operation and the augmentation operation); in some other examples, the old values of the respective elements of the destination are retained when the corresponding mask bits have a 0. Conversely, when zeroing the vector mask allows any set of elements in the destination to be zeroed during the execution of any operation (specified by the base operation and the augmentation operation); in some examples, when the corresponding mask bits have a 0 value, the elements of the destination are set to 0. A subset of this functionality is the ability to control the vector length of the operation being performed (i.e., the span from the first to the last element modified); however, the modified elements do not have to be consecutive. Thus, the operation mask field enables partial vector operations, including loads, stores, arithmetic, logical, etc. Although examples are described in which the contents of the operation mask field select one of a plurality of operation mask registers containing an operation mask to be used (and whereby the contents of the operation mask field indirectly identify the masking to be performed), alternative examples instead or additionally allow the contents of the mask write field to directly specify the masking to be performed.
[0285] P
[19] can be combined with P[14:11] to encode a second source vector register in a non-destructive source syntax that can use P
[19] to access the upper 16 vector registers. P
[20] encodes multiple features that are different across different instruction classes and can affect the meaning of the vector length / rounding control specifier field (P[22:21]). P
[23] indicates support for merge write masking (e.g., when set to 0) or support for zeroing and merge write masking (e.g., when set to 1).
[0286] An example of using the third prefix 1801 (C) to encode a register in an instruction is described in detail in the following table.
[0287]
[0288]
[0289] Table 1: 32-register support in 64-bit mode
[0290]
[0291] Table 2: Encoded register specifiers in 32-bit mode
[0292]
[0293] Table 3: Operation Mask Register Specifier Encoding
[0294] Graphics Execution Unit
[0295] FIG. 24A to FIG. 24B Thread execution logic 2400 is shown including an array of processing elements employed in a graphics processor core according to examples described herein. FIG. 24A to FIG. 24B Elements in the drawings having the same reference numbers (or names) as elements of any other figures herein may operate or function in any manner similar to that described elsewhere herein, but are not limited thereto. Fig.24A represents an execution unit within a general-purpose graphics processor, and Fig. 24B Represents an execution unit that can be used within a compute accelerator.
[0296] like Fig.24A As shown, in some examples, the thread execution logic 2400 includes a shader processor 2402, a thread dispatcher 2404, an instruction cache 2406, a scalable execution unit array including a plurality of execution units 2408A-2408N, a sampler 2410, a shared local memory 2411, a data cache 2412, and a data port 2414. In some examples, the scalable execution unit array can be dynamically scaled by enabling or disabling one or more execution units (e.g., any one of execution units 2408A, 2408B, 2408C, 2408D to 2408N-1 and 2408N) based on the computational requirements of the workload. In some examples, the included components are interconnected via an interconnect structure connected to the various components. In some examples, the thread execution logic 2400 includes one or more connections to a memory such as a system memory or a cache memory through one or more of the instruction cache 2406, the data port 2414, the sampler 2410, and the execution units 2408A-2408N. In some examples, each execution unit (e.g., 2408A) is an independent programmable general-purpose computing unit that is capable of executing multiple simultaneous hardware threads while processing multiple data elements in parallel for each thread. In various examples, the array of execution units 2408A-2408N can be scaled to include any number of separate execution units.
[0297] In some examples, execution units 2408A to 2408N are primarily used to execute shader programs. Shader processor 2402 can process various shader programs and dispatch execution threads associated with the shader programs via thread dispatcher 2404. In some examples, the thread dispatcher includes logic that arbitrates thread initiation requests from graphics and media pipelines and instantiates the requested threads on one or more execution units in execution units 2408A-2408N. For example, a geometry pipeline can dispatch vertex, tessellation, or geometry shaders to thread execution logic for processing. In some examples, thread dispatcher 2404 can also process runtime thread derivative requests from executing shader programs.
[0298] In some examples, execution units 2408A-2408N support an instruction set including native support for many standard 3D graphics shader instructions, so that shader programs from graphics libraries (e.g., Direct 3D and OpenGL) are executed with minimal conversion. The execution unit supports vertex and geometry processing (e.g., vertex programs, geometry programs, vertex shaders), pixel processing (e.g., pixel shaders, fragment shaders), and general processing (e.g., compute and media shaders). Each of the execution units 2408A-2408N is capable of multi-issue single instruction multiple data (SIMD) execution, and multi-threaded operations achieve an efficient execution environment in the face of high latency memory access. Each hardware thread within each execution unit has a dedicated high-bandwidth register stack and an associated independent thread state. Execution is multi-issue per clock to a pipeline capable of integer, single-precision and double-precision floating-point operations, SIMD branching capabilities, logical operations, transcendental operations, and other miscellaneous operations. While waiting for data from one of the memory or shared functions, the dependency logic within the execution units 2408A-2408N puts the waiting thread to sleep until the requested data has been returned. While the waiting thread is sleeping, hardware resources can be devoted to processing other threads. For example, during a delay associated with a vertex shader operation, the execution unit can perform operations of a pixel shader, a fragment shader, or another type of shader program (including different vertex shaders). Various examples can be applied to using execution by using single instruction multiple threads (SIMT), as an alternative to using SIMD or in addition to using SIMD. References to SIMD cores or operations can also be applied to SIMT or to a combination of SIMD and SIMT.
[0299] Each execution unit in execution units 2408A-2408N operates on an array of data elements. The number of data elements is the "execution size" or number of lanes of the instruction. An execution lane is an execution logic unit used for data element access, masking, and flow control within an instruction. The number of lanes may be independent of the number of physical arithmetic logic units (ALUs) or floating point units (FPUs) of a particular graphics processor. In some examples, execution units 2408A-2408N support integer and floating point data types.
[0300] The execution unit instruction set includes SIMD instructions. Various data elements can be stored in registers as compact data types, and the execution unit will process various elements based on the data size of the element. For example, when operating a 256-bit wide vector, 256 bits of the vector are stored in registers, and the execution unit operates the vector as four separate 64-bit compact data elements (quadword (QW) size data elements), eight separate 32-bit compact data elements (doubleword (DW) size data elements), sixteen separate 16-bit compact data elements (word (W) size data elements) or thirty-two separate 8-bit data elements (byte (B) size data elements). However, different vector widths and register sizes are possible.
[0301] In some examples, one or more execution units may be combined into fused execution units 2409A-2409N having thread control logic (2407A-2407N) common to the fused EUs. Multiple EUs may be fused into EU groups. Each EU in the fused EU group may be configured to execute a separate SIMD hardware thread. The number of EUs in the fused EU group may vary according to the example. In addition, each EU may execute various SIMD widths, including but not limited to SIMD8, SIMD16, and SIMD32. Each fused graphics execution unit 2409A-2409N includes at least two execution units. For example, the fused execution unit 2409A includes a first EU 2408A, a second EU 2408B, and a thread control logic 2407A common to the first EU 2408A and the second EU 2408B. The thread control logic 2407A controls the threads executed on the fused graphics execution unit 2409A, thereby allowing each EU within the fused execution unit 2409A-2409N to execute using a common instruction pointer register.
[0302] One or more internal instruction caches (e.g., 2406) are included in the thread execution logic 2400 to cache thread instructions for the execution unit. In some examples, one or more data caches (e.g., 2412) are included to cache thread data during thread execution. Threads executing on the execution logic 2400 may also store explicitly managed data in the shared local memory 2411. In some examples, a sampler 2410 is included to provide texture sampling for 3D operations and media sampling for media operations. In some examples, the sampler 2410 includes a dedicated texture or media sampling function to process the texture or media data during the sampling process before providing the sampled data to the execution unit.
[0303] During execution, the graphics and media pipeline sends a thread initiation request to the thread execution logic 2400 via the thread derivation and dispatch logic. Once a set of geometric objects has been processed and rasterized into pixel data, the pixel processor logic (e.g., pixel shader logic, fragment shader logic, etc.) within the shader processor 2402 is called to further calculate output information and cause the results to be written to the output surface (e.g., color buffer, depth buffer, stencil buffer, etc.). In some examples, the pixel shader or fragment shader calculates the values of various vertex attributes that will be interpolated across the rasterized object. In some examples, the pixel processor logic within the shader processor 2402 then executes the pixel or fragment shader program supplied by the application programming interface (API). In order to execute the shader program, the shader processor 2402 dispatches the thread to the execution unit (e.g., 2408A) via the thread dispatcher 2404. In some examples, the shader processor 2402 uses the texture sampling logic in the sampler 2410 to access the texture data in the texture map stored in the memory. Arithmetic operations on texture data and input geometry data compute pixel color data for each geometry fragment, or discard one or more pixels from further processing.
[0304] In some examples, data port 2414 provides a memory access mechanism for thread execution logic 2400 to output processed data to memory for further processing on a graphics processor output pipeline. In some examples, data port 2414 includes or is coupled to one or more cache memories (e.g., data cache 2412) to cache data for memory access via the data port.
[0305] In some examples, execution logic 2400 may also include a ray tracer 2405 that may provide ray tracing acceleration functionality. Ray tracer 2405 may support a ray tracing instruction set that includes instructions / functions for ray generation.
[0306] Fig. 24BExemplary internal details of an execution unit 2408 according to an example are shown. Graphics execution unit 2408 may include an instruction fetch unit 2437, a general register file array (GRF) 2424, an architectural register file array (ARF) 2426, a thread arbiter 2422, an issue unit 2430, a branch unit 2432, a set of SIMD floating point units (FPUs) 2434, and in some examples, a set of dedicated integer SIMD ALUs 2435. GRF 2424 and ARF 2426 include a set of general register files and architectural register files associated with various simultaneous hardware threads that may be active in graphics execution unit 2408. In some examples, a per-thread architectural state is maintained in ARF 2426, while data used during thread execution is stored in GRF 2424. The execution state of each thread, including the instruction pointer of each thread, may be maintained in thread-specific registers in ARF 2426.
[0307] In some examples, graphics execution unit 2408 has an architecture that is a combination of simultaneous multithreading (SMT) and fine-grained interleaved multithreading (IMT). The architecture has a modular configuration that can be fine-tuned at design time based on the target number of simultaneous threads and the number of registers per execution unit, where execution unit resources are divided across logic for executing multiple simultaneous threads. The number of logical threads that graphics execution unit 2408 can execute is not limited to the number of hardware threads, and multiple logical threads can be assigned to individual hardware threads.
[0308] In some examples, the graphics execution unit 2408 may issue multiple instructions together, each of which may be a different instruction. The thread arbiter 2422 of the graphics execution unit thread 2408 may dispatch the instruction to one of the send unit 2430, the branch unit 2432, or the SIMD FPU 2434 for execution. Each execution thread may access 128 general registers within the GRF 2424, wherein each register may store 32 bytes and may be accessed as a SIMD 8 element vector of a 32-bit data element. In some examples, each execution unit thread may access 4K bytes within the GRF 2424, but the example is not limited thereto, and more or less register resources may be provided in other examples. In some examples, the graphics execution unit 2408 is divided into seven hardware threads that may independently perform computing operations, but the number of threads of each execution unit may also vary according to the example. For example, in some examples, up to 16 hardware threads are supported. In an example where seven threads may access 4K bytes, the GRF 2424 may store a total of 28K bytes. With 16 threads able to access 4K bytes, the GRF2424 can store a total of 64K bytes. Flexible addressing modes can allow registers to be addressed together to efficiently build wider registers or rectangular blocks representing strided data structures.
[0309] In some examples, memory operations, sampler operations, and other longer latency system communications are dispatched via "send" instructions executed by the message passing send unit 2430. In some examples, branch instructions are dispatched to a dedicated branch unit 2432 to facilitate SIMD divergence and eventual convergence.
[0310] In some examples, the graphics execution unit 2408 includes one or more SIMD floating point units 2434 that perform floating point operations. In some examples, the FPU 2434 also supports integer calculations. In some examples, the FPU 2434 can SIMD perform up to M 32-bit floating point (or integer) operations, or SIMD perform up to 2M 16-bit integer or 16-bit floating point operations. In some examples, at least one of the FPUs provides extended math capabilities to support high throughput transcendental math functions and double precision 64-bit floating point. In some examples, there is also a set of 8-bit integer SIMD ALUs 2435, and they can be specifically optimized to perform operations associated with machine learning calculations.
[0311] In some examples, an array of multiple instances of graphics execution unit 2408 may be instantiated in graphics sub-core groupings (e.g., sub-slices). For scalability, product designers may choose the exact number of execution units per sub-core grouping. In some examples, execution unit 2408 may execute instructions across multiple execution lanes. In other examples, individual threads executing on graphics execution unit 2408 execute on different lanes.
[0312] Fig.25 An additional execution unit 2500 according to an example is shown. In some examples, the execution unit 2500 includes a thread control unit 2501, a thread state unit 2502, an instruction fetch / prefetch unit 2503, and an instruction decode unit 2504. The execution unit 2500 further includes a register file 2506, which stores registers that can be assigned to hardware threads within the execution unit. The execution unit 2500 further includes a dispatch unit 2507 and a branch unit 2508. In some examples, the dispatch unit 2507 and the branch unit 2508 can be connected to Fig. 24B Send unit 2430 and branch unit 2432 of graphics execution unit 2408 operate similarly.
[0313] The execution unit 2500 also includes a computing unit 2510, which includes a plurality of different types of functional units. In some examples, the computing unit 2510 includes an ALU unit 2511, which includes an array of arithmetic logic units. The ALU unit 2511 may be configured to perform 64-bit, 32-bit, and 16-bit integer and floating-point operations. Integer and floating-point operations may be performed simultaneously. The computing unit 2510 may also include a systolic array 2512 and a mathematical unit 2513. The systolic array 2512 includes a W-wide and D-deep network of a data processing unit, which may be used to perform vector or other data parallel operations in a systolic manner. In some examples, the systolic array 2512 may be configured to perform matrix operations, such as matrix dot product operations. In some examples, the systolic array 2512 supports 16-bit floating-point operations and 8-bit and 4-bit integer operations. In some examples, the systolic array 2512 may be configured to accelerate machine learning operations. In such an example, the systolic array 2512 may be configured to support the bfloat 16-bit floating-point format. In some examples, math unit 2513 may be included to perform a specific subset of math operations in an efficient and low power manner compared to ALU unit 2511. Math unit 2513 may include a variation of math logic that may be found in shared function logic (e.g., math logic of shared function logic) of a graphics processing engine provided by other examples. In some examples, math unit 2513 may be configured to perform 32-bit and 64-bit floating point operations.
[0314] Thread control unit 2501 includes logic to control the execution of threads within execution units. Thread control unit 2501 may include thread arbitration logic that starts, stops, and preempts the execution of threads within execution unit 2500. Thread state unit 2502 may be used to store thread states of threads assigned to execute on execution unit 2500. Storing thread states within execution unit 2500 enables quick preemption of threads when they become blocked or idle. Instruction fetch / prefetch unit 2503 may retrieve instructions from the instruction cache of higher-level execution logic (e.g., Fig.24A The instruction fetch / prefetch unit 2503 may also issue a prefetch request for instructions to be loaded into the instruction cache based on an analysis of the currently executing thread. The instruction decode unit 2504 may be used to decode instructions to be executed by the computing unit. In some examples, the instruction decode unit 2504 may be used as an auxiliary decoder to decode complex instructions into constituent micro-operations.
[0315] Execution unit 2500 additionally includes a register file 2506 that can be used by hardware threads executing on execution unit 2500. Registers in register file 2506 can be divided across logic for executing multiple simultaneous threads within compute unit 2510 of execution unit 2500. The number of logical threads that graphics execution unit 2500 can execute is not limited to the number of hardware threads, and multiple logical threads can be assigned to individual hardware threads. The size of register file 2506 can vary across examples based on the number of hardware threads supported. In some examples, register renaming can be used to dynamically assign registers to hardware threads.
[0316] Fig.26 2600 is a block diagram illustrating a graphics processor instruction format 2600 according to some examples. In one or more examples, a graphics processor execution unit supports an instruction set having instructions in multiple formats. Solid line boxes illustrate components that are typically included in execution unit instructions, while dashed lines include components that are optional or included only in a subset of instructions. In some examples, the instruction format 2600 described and illustrated are macroinstructions in that they are instructions provided to the execution unit, as opposed to micro-operations that are generated by instruction decoding once the instruction is processed.
[0317] In some examples, the graphics processor execution unit natively supports instructions in 128-bit instruction format 2610. Based on the selected instruction, instruction options, and the number of operands, a 64-bit compressed instruction format 2630 can be used for certain instructions. The native 128-bit instruction format 2610 provides access to all instruction options, while some options and operations are restricted in the 64-bit format 2630. The native instructions available in the 64-bit format 2630 vary from example to example. In some examples, instructions are partially compressed using a set of index values in the index field 2613. The execution unit hardware references a set of compression tables based on the index values, and uses the compression table output to reconstruct the native instructions of the 128-bit instruction format 2610. Instructions of other sizes and formats can be used.
[0318] For various formats, the instruction opcode 2612 defines the operation to be performed by the execution unit. The execution unit executes each instruction in parallel across multiple data elements of each operand. For example, in response to an addition instruction, the execution unit performs simultaneous addition operations across each color channel representing a texture element or a picture element. By default, the execution unit executes each instruction across all data channels of the operand. In some examples, the instruction control field 2614 enables control of certain execution options, such as channel selection (e.g., predicate) and data channel order (e.g., swizzle). For instructions in the 128-bit instruction format 2610, the execution size field 2616 limits the number of data channels that will be executed in parallel. In some examples, the execution size field 2616 is not available for the 64-bit compact instruction format 2630.
[0319] Some execution unit instructions have up to three operands, including two source operands src0 2620, src1 2622, and one destination 2618. In some examples, the execution unit supports dual destination instructions, where one of the destinations is implicit. Data manipulation instructions may have a third source operand (e.g., SRC2 2624), where the instruction opcode 2612 determines the number of source operands. The last source operand of an instruction may be an immediate (e.g., hard-coded) value passed with the instruction.
[0320] In some examples, the 128-bit instruction format 2610 includes an access / address mode field 2626 that specifies, for example, whether direct register addressing mode or indirect register addressing mode is used. When direct register addressing mode is used, the register address of one or more operands is provided directly by bits in the instruction.
[0321] In some examples, the 128-bit instruction format 2610 includes an access / address mode field 2626 that specifies an address mode and / or access mode for the instruction. In some examples, the access mode is used to define the data access alignment of the instruction. Some examples support access modes including a 16-byte aligned access mode and a 1-byte aligned access mode, wherein the byte alignment of the access mode determines the access alignment of the instruction operand. For example, when in a first mode, the instruction can use byte-aligned addressing for source operands and destination operands, and when in a second mode, the instruction can use 16-byte aligned addressing for all source operands and destination operands.
[0322] In some examples, the address mode portion of the access / address mode field 2626 determines whether the instruction is to use direct or indirect addressing. When direct register addressing mode is used, the bits in the instruction directly provide the register address of one or more operands. When indirect register addressing mode is used, the register address of one or more operands can be calculated based on the address register value and address immediate value fields in the instruction.
[0323] In some examples, instructions are grouped based on the opcode 2612 bit field to simplify opcode decoding 2640. For 8-bit opcodes, bits 4, 5, and 6 allow the execution unit to determine the type of opcode. The precise opcode grouping shown is only an example. In some examples, the move and logic opcode group 2642 includes data movement and logic instructions (e.g., move (mov), compare (cmp)). In some examples, the move and logic group 2642 shares five most significant bits (MSBs), wherein the move (mov) instruction takes the form of 0000xxxxb, and the logic instruction takes the form of 0001xxxxb. The flow control instruction group 2644 (e.g., call, jump (jmp)) includes instructions in the form of 0010xxxxb (e.g., 0x20). The miscellaneous instruction group 2646 includes a mixture of instructions, including synchronization instructions (e.g., wait, send) in the form of 0011xxxxb (e.g., 0x30). The parallel math instruction group 2648 includes component-wise arithmetic instructions (e.g., addition, multiplication (mul)) of the form 0100xxxxb (e.g., 0x40). The parallel math group 2648 performs arithmetic operations in parallel across data channels. The vector math group 2650 includes arithmetic instructions (e.g., dp4) of the form 0101xxxxb (e.g., 0x50). The vector math group performs operations such as dot product calculations on vector operands. In some examples, the opcode decode 2640 shown can be used to determine which portion of the execution unit will be used to execute the decoded instructions. For example, some instructions may be designated as systolic instructions to be executed by a systolic array. Other instructions such as ray tracing instructions (not shown) can be routed to a ray tracing core or ray tracing logic within a slice or partition of the execution logic.
[0324] Graphics Pipeline
[0325] Fig. 27 is a block diagram of another example of a graphics processor 2700 . Fig. 27 Elements in the drawings having the same reference numbers (or names) as elements of any other figures herein may operate or function in any manner similar to that described elsewhere herein, but are not limited thereto.
[0326] In some examples, graphics processor 2700 includes geometry pipeline 2720, media pipeline 2730, display engine 2740, thread execution logic 2750, and rendering output pipeline 2770. In some examples, graphics processor 2700 is a graphics processor within a multi-core processing system that includes one or more general-purpose processing cores. The graphics processor is controlled by register writes to one or more control registers (not shown) or via commands issued to graphics processor 2700 through ring interconnect 2702. In some examples, ring interconnect 2702 couples graphics processor 2700 to other processing components, such as other graphics processors or general-purpose processors. Commands from ring interconnect 2702 are interpreted by command stream converter 2703, which provides instructions to various components of geometry pipeline 2720 or media pipeline 2730.
[0327] In some examples, command stream converter 2703 directs the operation of vertex fetcher 2705, which reads vertex data from memory and executes vertex processing commands provided by command stream converter 2703. In some examples, vertex fetcher 2705 provides vertex data to vertex shader 2707, which performs coordinate space transformation and lighting operations on individual vertices. In some examples, vertex fetcher 2705 and vertex shader 2707 execute vertex processing instructions by dispatching execution threads to execution units 2752A-2752B via thread dispatcher 2731.
[0328] In some examples, execution units 2752A-2752B are vector processor arrays with instruction sets for performing graphics and media operations. In some examples, execution units 2752A-2752B have an additional L1 cache 2751 that is specific to each array or shared between arrays. The cache can be configured as a data cache, an instruction cache, or a single cache that is partitioned to contain data and instructions in different partitions.
[0329] In some examples, the geometry pipeline 2720 includes a tessellation component that performs hardware accelerated tessellation of 3D objects. In some examples, the programmable shell shader 2711 configures the tessellation operation. The programmable domain shader 2717 provides back-end evaluation of the tessellation output. The tessellation 2713 operates under the direction of the shell shader 2711 and contains dedicated logic that generates a set of detailed geometric objects based on the rough geometric model provided as input to the geometry pipeline 2720. In some examples, if tessellation is not used, the tessellation components (e.g., the shell shader 2711, the tessellation 2713, and the domain shader 2717) can be bypassed.
[0330] In some examples, geometry shader 2719 may process complete geometric objects via one or more threads dispatched to execution units 2752A-2752B, or may proceed directly to clipper 2729. In some examples, the geometry shader operates on entire geometric objects, rather than on vertices or vertex patches as in previous stages of the graphics pipeline. If tessellation is disabled, geometry shader 2719 receives input from vertex shader 2707. In some examples, geometry shader 2719 may be programmed by a geometry shader program to perform geometry tessellation when the tessellation unit is disabled.
[0331] Before rasterization, the clipper 2729 processes the vertex data. The clipper 2729 can be a fixed function clipper or a programmable clipper with clipping and geometry shader functions. In some examples, the rasterizer and depth test component 2773 in the rendering output pipeline 2770 dispatches a pixel shader to convert the geometric object into a per-pixel representation. In some examples, the pixel shader logic is included in the thread execution logic 2750. In some examples, the application can bypass the rasterizer and depth test component 2773 and access the unrasterized vertex data via the outflow unit 2723.
[0332] The graphics processor 2700 has an interconnect bus, interconnect structure, or some other interconnect mechanism that allows data and messages to be passed between the main components of the processor. In some examples, execution units 2752A-2752B and associated logic units (e.g., L1 cache 2751, sampler 2754, texture cache 2758, etc.) are interconnected via data ports 2756 to perform memory accesses and communicate with the rendering output pipeline components of the processor. In some examples, sampler 2754, cache 2751, 2758, and execution units 2752A-2752B each have a separate memory access path. In some examples, texture cache 2758 may also be configured as a sampler cache.
[0333] In some examples, the render output pipeline 2770 includes a rasterizer and depth test component 2773 that converts vertex-based objects into associated pixel-based representations. In some examples, the rasterizer logic includes a windower / masker unit that performs fixed-function triangle and line rasterization. In some examples, an associated render cache 2778 and depth cache 2779 are also available. The pixel operation component 2777 performs pixel-based operations on the data, but in some cases, pixel operations associated with 2D operations (e.g., bit-block image transfers with blending) are performed by the 2D engine 2741, or replaced by the display controller 2743 using an overlay display plane when displaying. In some examples, a shared L3 cache 2775 is available to all graphics components, allowing data to be shared without using main system memory.
[0334] In some examples, the graphics processor media pipeline 2730 includes a media engine 2737 and a video front end 2734. In some examples, the video front end 2734 receives pipeline commands from the command stream converter 2703. In some examples, the media pipeline 2730 includes a separate command stream converter. In some examples, the video front end 2734 processes the media commands before sending them to the media engine 2737. In some examples, the media engine 2737 includes a thread spawning function that spawns threads for dispatching to the thread execution logic 2750 via the thread dispatcher 2731.
[0335] In some examples, the graphics processor 2700 includes a display engine 2740. In some examples, the display engine 2740 is external to the processor 2700 and is coupled to the graphics processor via a ring interconnect 2702 or some other interconnect bus or structure. In some examples, the display engine 2740 includes a 2D engine 2741 and a display controller 2743. In some examples, the display engine 2740 contains dedicated logic that can operate independently of the 3D pipeline. In some examples, the display controller 2743 is coupled to a display device (not shown), which can be a system integrated display device such as in a laptop computer, or an external display device attached via a display device connector.
[0336] In some examples, the geometry pipeline 2720 and the media pipeline 2730 may be configured to perform operations based on multiple graphics and media programming interfaces, and are not specific to any one application programming interface (API). In some examples, the driver software for the graphics processor converts API calls specific to a specific graphics or media library into commands that can be processed by the graphics processor. In some examples, support is provided for the Open Graphics Library (OpenGL), the Open Computing Language (OpenCL) and / or the Vulkan graphics and computing API, all of which are from the Khronos organization. In some examples, support for the Direct3D library from Microsoft Corporation may also be provided. In some examples, a combination of these libraries may be supported. Support for the open source computer vision library (OpenCV) may also be provided. If a mapping from the pipeline of a future API to the pipeline of a graphics processor can be performed, future APIs with compatible 3D pipelines will also be supported.
[0337] Graphics pipeline programming
[0338] Fig.28A is a block diagram illustrating a graphics processor command format 2800 according to some examples. Fig.28B is a block diagram illustrating a graphics processor command sequence 2810 according to an example. Fig.28A The solid-line boxes in show components that are typically included in a graphics command, while the dashed lines include components that are optional or included only in a subset of the graphics commands. Fig.28A The exemplary graphics processor command format 2800 includes a data field identifying the client 2802, a command operation code (opcode) 2804, and command data 2806. Some commands also include a sub-opcode 2805 and a command size 2808.
[0339] In some examples, client 2802 specifies a client unit of a graphics device that processes command data. In some examples, a graphics processor command parser examines the client field of each command to adjust further processing of the command and routes the command data to the appropriate client unit. In some examples, a graphics processor client unit includes a memory interface unit, a rendering unit, a 2D unit, a 3D unit, and a media unit. Each client unit has a corresponding processing pipeline for processing commands. Once a client unit receives a command, the client unit reads an opcode 2804 and, if present, reads a subopcode 2805 to determine the operation to be performed. The client unit executes the command using the information in data field 2806. For some commands, an explicit command size 2808 is expected to specify the size of the command. In some examples, the command parser automatically determines the size of at least some commands based on the command opcode. In some examples, commands are aligned via multiples of double words. Other command formats may be used.
[0340] Fig.28B 28. The flowchart in FIG. 28 shows an exemplary graphics processor command sequence 2810. In some examples, software or firmware of a data processing system featuring an example of a graphics processor uses a version of the command sequence shown to set up, execute, and terminate a set of graphics operations. The example command sequence is shown and described for example purposes only, as the examples are not limited to these particular commands or to the command sequence. Moreover, the commands can be issued as batch commands in a command sequence so that the graphics processor will process the command sequence at least partially concurrently.
[0341] In some examples, the graphics processor command sequence 2810 may begin with a pipeline flush command 2812 to cause any active graphics pipeline to complete the currently pending commands for the pipeline. In some examples, the 3D pipeline 2822 and the media pipeline 2824 do not operate concurrently. The pipeline flush is performed to cause the active graphics pipeline to complete any pending commands. In response to the pipeline flush, the command parser of the graphics processor will suspend command processing until the active drawing engine completes the pending operation and the associated read cache is invalidated. Optionally, any data marked as "dirty" in the rendering cache may be flushed to memory. In some examples, the pipeline flush command 2812 can be used for pipeline synchronization or before placing the graphics processor in a low power state.
[0342] In some examples, pipeline select command 2813 is used when a command sequence requires the graphics processor to explicitly switch between pipelines. In some examples, pipeline select command 2813 is only required once within an execution context before issuing pipeline commands unless the context is to issue commands for both pipelines. In some examples, pipeline flush command 2812 is required immediately before pipelines are switched via pipeline select command 2813.
[0343] In some examples, pipeline control commands 2814 configure the graphics pipeline for operation and are used to program 3D pipeline 2822 and media pipeline 2824. In some examples, pipeline control commands 2814 configure the pipeline state of the active pipeline. In some examples, pipeline control commands 2814 are used for pipeline synchronization and to clear data from one or more cache memories within the active pipeline before processing a batch of commands.
[0344] In some examples, return buffer state command 2816 is used to configure a set of return buffers for a corresponding pipeline to write data. Some pipeline operations require allocating, selecting, or configuring one or more return buffers, and during processing, the operation writes intermediate data to the return buffers. In some examples, the graphics processor also uses one or more return buffers to store output data and perform cross-thread communication. In some examples, return buffer state 2816 includes selecting the size and number of return buffers to use for a set of pipeline operations.
[0345] The remaining commands in the command sequence differ based on the active pipeline for operation.Based on pipeline determination 2820 , the command sequence is tailored to either 3D pipeline 2822 starting with 3D pipeline state 2830 or media pipeline 2824 starting with media pipeline state 2840 .
[0346] The commands for configuring the 3D pipeline state 2830 include 3D state setting commands for vertex buffer state, vertex element state, constant color state, depth buffer state, and other state variables to be configured before processing 3D primitive commands. The values of these commands are determined at least in part based on the specific 3D API used. In some examples, the 3D pipeline state 2830 commands can also selectively disable or bypass certain pipeline elements if these elements are not to be used.
[0347] In some examples, the 3D primitive 2832 command is used to submit the 3D primitive for processing by the 3D pipeline. The command and associated parameters passed to the graphics processor via the 3D primitive 2832 command are forwarded to the vertex acquisition function in the graphics pipeline. The vertex acquisition function uses the 3D primitive 2832 command data to generate a vertex data structure. The vertex data structure is stored in one or more return buffers. In some examples, the 3D primitive 2832 command is used to perform vertex operations on the 3D primitive via a vertex shader. In order to process the vertex shader, the 3D pipeline 2822 dispatches the shader execution thread to the graphics processor execution unit.
[0348] In some examples, the 3D pipeline 2822 is triggered via an execute 2834 command or event. In some examples, a register write triggers command execution. In some examples, execution is triggered via a "go" or "kick" command in a command sequence. In some examples, command execution is triggered using a pipeline synchronization command to flush the command sequence through the graphics pipeline. The 3D pipeline will perform geometry processing of the 3D primitives. Once the operation is completed, the resulting geometric objects are rasterized and the pixel engine colors the resulting pixels. For these operations, additional commands for controlling pixel shading and pixel backend operations may also be included.
[0349] In some examples, when performing media operations, the graphics processor command sequence 2810 follows the media pipeline 2824 path. In general, the specific use and manner of programming for the media pipeline 2824 depends on the media or computing operations to be performed. Specific media decoding operations can be offloaded to the media pipeline during media decoding. In some examples, the media pipeline can also be bypassed, and the media decoding can be performed in whole or in part using resources provided by one or more general-purpose processing cores. In some examples, the media pipeline also includes elements for general-purpose graphics processor unit (GPGPU) operations, wherein the graphics processor is used to perform SIMD vector operations using compute shader programs that are not explicitly related to the rendering of graphics primitives.
[0350] In some examples, media pipeline 2824 is configured in a similar manner to 3D pipeline 2822. A set of commands that configure media pipeline state 2840 are dispatched or placed into a command queue before media object commands 2842. In some examples, commands for media pipeline state 2840 include data that configures media pipeline elements that will be used to process media objects. This includes data that configures video decoding and video encoding logic within the media pipeline, such as encoding or decoding formats. In some examples, commands for media pipeline state 2840 also support the use of one or more pointers to "indirect" state elements that contain a batch of state settings.
[0351] In some examples, media object command 2842 provides a pointer to a media object for processing by the media pipeline. The media object includes a memory buffer containing video data to be processed. In some examples, all media pipeline states must be valid before issuing media object command 2842. Once the pipeline state is configured and media object command 2842 is queued, media pipeline 2824 is triggered via execute command 2844 or an equivalent execution event (e.g., a register write). The output from media pipeline 2824 can then be post-processed by operations provided by 3D pipeline 2822 or media pipeline 2824. In some examples, GPGPU operations are configured and executed in a manner similar to media operations.
[0352] Program code can be applied to input information to perform the functions described herein and generate output information. The output information can be applied to one or more output devices in a known manner. For the purposes of this application, a processing system includes any system with a processor, such as, for example, a digital signal processor (DSP), a microcontroller, an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), a microprocessor, or any combination thereof.
[0353] The program code can be implemented in a high-level program or object-oriented programming language to communicate with the processing system. If desired, the program code can also be implemented in assembly or machine language. In fact, the mechanism described herein is not limited to any specific programming language in scope. In any case, the language can be a compiled or interpreted language.
[0354] Examples of the mechanisms disclosed herein may be implemented in hardware, software, firmware, or a combination of these implementations. Examples may be implemented as a computer program or program code executed on a programmable system, the programmable system comprising at least one processor, a storage system (including volatile and non-volatile memory and / or storage elements), at least one input device, and at least one output device.
[0355] Such machine-readable storage media may include, but are not limited to, a non-transitory tangible arrangement of an article manufactured or formed by a machine or device, including storage media such as a hard disk, any other type of disk, including floppy disks, optical disks, compact disk read-only memory (CD-ROM), compact disk rewritable (CD-RW), and magneto-optical disks; semiconductor devices such as read-only memory (ROM), random access memory (RAM), such as dynamic random access memory (DRAM), static random access memory (SRAM), erasable programmable read-only memory (EPROM), flash memory, electrically erasable programmable read-only memory (EEPROM), phase change memory (PCM), magnetic or optical cards, or any other type of medium suitable for storing electronic instructions.
[0356] Therefore, examples also include non-transitory tangible machine-readable media containing instructions or containing design data, such as hardware description language (HDL), which defines the structures, circuits, devices, processors and / or system features described herein. Such examples may also be referred to as program products.
[0357] Emulation (including binary conversion, code deformation, etc.).
[0358] In some cases, the instruction converter can be used to convert instructions from a source instruction set architecture to a target instruction set architecture. For example, the instruction converter can convert instructions (e.g., using static binary conversion, dynamic binary conversion including dynamic compilation), deform, simulate or otherwise convert instructions to one or more other instructions to be processed by the core. The instruction converter can be implemented in software, hardware, firmware or a combination thereof. The instruction converter can be on the processor, outside the processor, or partly on the processor and partly outside the processor.
[0359] Fig.291 is a block diagram showing the use of a software instruction converter according to an example to convert binary instructions in a source ISA into binary instructions in a target ISA. In the example shown, the instruction converter is a software instruction converter, but alternatively, the instruction converter can be implemented in software, firmware, hardware, or various combinations thereof. Fig.29 It is shown that a program in a high-level language 2902 can be compiled using a first ISA compiler 2904 to generate first ISA binary code 2906 that can be natively executed by a processor having at least one first ISA core 2916. A processor having at least one first ISA core 2916 represents any processor that can execute programs with at least one first ISA core in the following manner: Processor substantially the same functionality: compatibly execute or otherwise process (1) a substantial portion of the first ISA or (2) an object code version of an application or other software targeted to run on an Intel processor having at least one first ISA core so as to achieve substantially the same results as a processor having at least one first ISA core. First ISA compiler 2904 represents a compiler operable to generate first ISA binary code 2906 (e.g., object code) that can be executed on a processor having at least one first ISA core 2916 with or without additional link processing. Similarly, Fig.29 It is shown that a program of a high-level language 2902 can be compiled using an alternative ISA compiler 2908 to generate an alternative ISA binary code 2910 that can be natively executed by a processor without a first ISA core 2914. An instruction converter 2912 is used to convert the first ISA binary code 2906 into a code that can be natively executed by a processor without a first ISA core 2914. The converted code does not have to be the same as the replaced ISA binary code 2910; however, the converted code will complete general operations and consist of instructions from the replacement ISA. Thus, the instruction converter 2912 represents software, firmware, hardware, or a combination thereof that allows a processor or other electronic device without a first ISA processor or core to execute the first ISA binary code 2906 through simulation, emulation, or any other process.
[0360] IP core implementation
[0361] One or more aspects of at least some examples may be implemented by representative code stored on a machine-readable medium that represents and / or defines logic within an integrated circuit such as a processor. For example, a machine-readable medium may include instructions representing various logic within a processor. When read by a machine, the instructions may cause the machine to manufacture logic to perform the techniques described herein. This representation (referred to as an "IP core") is a reusable logic unit for an integrated circuit that may be stored on a tangible machine-readable medium as a hardware model describing the structure of the integrated circuit. The hardware model may be provided to various customers or manufacturing facilities that load the hardware model onto a manufacturing machine that manufactures the integrated circuit. The integrated circuit may be manufactured so that the circuit performs the operations described in association with any of the examples described herein.
[0362] Fig.30 3000 is a block diagram showing an IP core development system 3000 that can be used to manufacture an integrated circuit to perform operations according to some examples. The IP core development system 3000 can be used to generate modular, reusable designs that can be incorporated into a larger design or used to construct an entire integrated circuit (e.g., a SOC integrated circuit). The design facility 3030 can generate a software simulation 3010 of the IP core design in a high-level programming language (e.g., C / C++). The software simulation 3010 can be used to design, test, and verify the behavior of the IP core using a simulation model 3012. The simulation model 3012 may include functional, behavioral, and / or timing simulations. Then, a register transfer level (RTL) design 3015 can be created or synthesized based on the simulation model 3012. The RTL design 3015 is an abstraction of the behavior of an integrated circuit (including associated logic executed using the modeled digital signals) that models the flow of digital signals between hardware registers. In addition to the RTL design 3015, a low-level design at the logic level or transistor level can also be created, designed, or synthesized. Thus, the specific details of the initial design and simulation can vary.
[0363] The RTL design 3015 or equivalent may be further synthesized by the design facility into a hardware model 3020, which may be a hardware description language (HDL) or some other representation of physical design data. The HDL may be further simulated or tested to verify the IP core design. The IP core design may be stored using a non-volatile memory 3040 (e.g., a hard disk, flash memory, or any non-volatile storage medium) for delivery to a third party manufacturing facility 3065. Alternatively, the IP core design may be transmitted (e.g., via the Internet) via a wired connection 3050 or a wireless connection 3060. The manufacturing facility 3065 may then manufacture an integrated circuit based at least in part on the IP core design. The manufactured integrated circuit may be configured to perform operations according to at least some of the examples described herein.
[0364] References to "some examples," "examples," etc. indicate that the examples described may include a particular feature, structure, or characteristic, but every example may not necessarily include the particular feature, structure, or characteristic. Moreover, these phrases do not necessarily refer to the same example. Further, when a particular feature, structure, or characteristic is described in conjunction with an example, it is considered to be within the knowledge of those skilled in the art to implement such feature, structure, or characteristic in conjunction with other examples, whether or not explicitly described.
[0365] Moreover, in the various examples above, unless specifically noted otherwise, disjunctive language such as the phrases "at least one of A, B, or C" or "A, B and / or C" are intended to be understood to mean A, B, or C or any combination thereof (i.e., A and B, A and C, B and C, and A, B, and C).
[0366] Accordingly, the specification and drawings are to be regarded in an illustrative rather than a restrictive sense. It will, however, be evident that various modifications and changes may be made thereto without departing from the broader spirit and scope of the present disclosure as set forth in the claims.
Claims
1. A device comprising: a hardware processor, the hardware processor comprising a continuous power mode; as well as A power management circuit coupled to the battery, wherein the power management circuit is configured to: determining an amount of heat dissipated by the battery over time when the hardware processor is in the continuous power mode; as well as The power provided to the hardware processor in the continuous power mode is controlled so as not to exceed a limit on the amount of heat dissipated by the battery over time.
2. The device according to claim 1, wherein: The power management circuit is used to determine the amount of heat dissipated by the battery over time based on the voltage of the battery.
3. The device according to claim 1, wherein: The power management circuit is used to determine the amount of heat dissipated by the battery over time based on the resistance of the battery.
4. The device according to claim 3, wherein: The power management circuit is used to determine the amount of heat dissipated by the battery over time based on the resistance of the battery and a reference impedance of the battery.
5. The device according to claim 1, wherein: The power management circuit is used to determine the amount of heat dissipated by the battery over time based on the current of the battery.
6. The device according to claim 1, wherein: The power management circuit is used to control the power provided to the hardware processor in the continuous power mode by adjusting the continuous mode current.
7. The device according to any one of claims 1 to 6, wherein: The continuous power mode of the hardware processor is a continuous boost power mode.
8. A method comprising: determining, by a power management circuit, an amount of heat dissipated over time by a battery coupled to the hardware processor when the hardware processor is in a continuous power mode; as well as The power provided to the hardware processor in the continuous power mode is controlled by the power management circuit so as not to exceed a limit on heat dissipation of the battery over time.
9. The method according to claim 8, wherein: The determination by the power management circuit of the amount of heat dissipated by the battery over time is based on the voltage of the battery.
10. The method according to claim 8, wherein: The determination of the amount of heat dissipated by the battery over time by the power management circuit is based on the resistance of the battery.
11. The method according to claim 10, wherein: The determination by the power management circuit of the amount of heat dissipated by the battery over time is based on the resistance of the battery and a reference impedance of the battery.
12. The method according to claim 8, wherein: The determination by the power management circuit of the amount of heat dissipated by the battery over time is based on the current of the battery.
13. The method according to claim 8, wherein: Controlling the power provided to the hardware processor in the continuous power mode by the power management circuit is achieved by adjusting the continuous mode current.
14. The method according to any one of claims 8 to 13, wherein: The continuous power mode of the hardware processor is a continuous boost power mode.
15. A system comprising: Battery; a hardware processor, the hardware processor comprising a continuous power mode, the hardware processor being coupled to the battery; as well as Power management circuits for: determining an amount of heat dissipated by the battery over time when the hardware processor is in the continuous power mode; as well as The power provided to the hardware processor in the continuous power mode is controlled so as not to exceed a limit on the amount of heat dissipated by the battery over time.
16. The system of claim 15, wherein: The power management circuit is used to determine the amount of heat dissipated by the battery over time based on the voltage of the battery.
17. The system of claim 15, wherein: The power management circuit is used to determine the amount of heat dissipated by the battery over time based on the resistance of the battery.
18. The system of claim 17, wherein: The power management circuit is used to determine the amount of heat dissipated by the battery over time based on the resistance of the battery and a reference impedance of the battery.
19. The system of claim 15, wherein: The power management circuit is used to determine the amount of heat dissipated by the battery over time based on the current of the battery.
20. The system of claim 15, wherein: The power management circuit is used to control the power provided to the hardware processor in the continuous power mode by adjusting the continuous mode current.
21. The system according to any one of claims 15 to 20, wherein: The continuous power mode of the hardware processor is a continuous boost power mode.
