Infield testing and commissioning

By designing built-in self-test controllers and programmable registers in automotive SoCs, external debuggers are allowed to access infield test information, which solves the problem of difficulty in obtaining information during infield tests and improves debugging efficiency and cost-effectiveness.

CN118731522APending Publication Date: 2024-10-01INTEL CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311790174.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-03-30
Filing Date
2023-12-25
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Existing automotive SoCs lack the ability of external debuggers to obtain infield test progress and infield test FW execution information during infield testing, resulting in delays in finding problems and solutions, and high debugging complexity, making it difficult to determine hardware defects, increasing return costs.

Method used

A device is designed, including a built-in self-test controller, storage device, infield test debugging and status registers, and programmable infield control debugging registers, allowing external debuggers to access these registers, and realize debugging through TAP network arbitration and mapping. In-depth commissioning and control of infield testing.

Benefits of technology

It improves the observability and debugging efficiency of infield testing, reduces debugging complexity, can determine the cause of problems more quickly, and reduces return costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118731522A_ABST
    Figure CN118731522A_ABST
Patent Text Reader

Abstract

The invention provides infield testing and commissioning. Techniques are described for debugging computational logic (e.g., a portion of a system-on-chip). In some examples, a plurality of infield test debug and status registers are to store information regarding execution aspects of an infield test; and a plurality of infield control debug registers for controlling an infield test, wherein access to the plurality of infield test debug registers and the plurality of infield control debug registers is programmable.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application involves field testing and debugging. Background Art

[0002] ISO 26262 defines infield testing standards for automotive system-on-chip (SoC), in particular, ISO26262 Part 5 requires addressing potential faults by implementing potential fault detection mechanisms. Infield testing allows faults in automated driving systems (ADS) to be detected before they are used and while in the field. For example, an infield test (IFT) every 24 hours should ensure the proper functioning of the SoC. Summary of the invention

[0003] One aspect of the present disclosure provides a device, comprising: at least one built-in self-test controller, for performing tests on the logic of the device; a storage device, for storing test instructions associated with the test; a plurality of infield test debug and status registers, for storing information about the execution of the test instructions; and a plurality of infield control debug registers, for controlling the execution of the test instructions, wherein access to the plurality of infield test debug registers and the plurality of infield control debug registers is programmable.

[0004] One aspect of the present disclosure provides a system, comprising: a device, the device comprising: at least one built-in self-test controller, for performing tests on the logic of the device; a storage device, for storing test instructions associated with the test; a plurality of infield test debug and status registers, for storing information about the execution of the test instructions; and a plurality of infield control debug registers, for controlling the test, wherein access to the plurality of infield test debug registers and the plurality of infield control debug registers is programmable; and a debugger, the debugger being coupled to the device, the debugger being used to read at least one of the plurality of infield test debug and status registers and the plurality of infield control debug registers. BRIEF DESCRIPTION OF THE DRAWINGS

[0005] Various examples according to the present disclosure will be described with reference to the accompanying drawings, in which:

[0006] Figure 1 An example of a prior art data flow for infield testing is shown.

[0007] Figure 2 An example of an architecture that allows an external debugger and infield firmware (IFW) to access a test access port (TAP) network is shown.

[0008] Figure 3 An example of using an architecture that allows both an external debugger and infield firmware to access the TAP network is shown.

[0009] Figure 4 An example of data flow for infield testing is shown when the infield test FW control and debug / status registers are duplicated in both the infield test register (FW memory mapped input / output (MMIO)) space and the TAP accessible register space.

[0010] Figure 5 An example of selective IFT control register and IFT debug register partitioning is shown.

[0011] Figure 6 An example of an arbitration finite state machine (FSM) used by the FW2TAP is shown.

[0012] Figure 7 An example of a method using configurable IFT register allocation is shown.

[0013] Figure 8 An example computing system is shown.

[0014] 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.

[0015] Fig.10 is a block diagram illustrating a computing system configured to implement one or more aspects of the examples described herein.

[0016] Fig.11A An example of a parallel processor is shown.

[0017] Fig. 11B An example of a block diagram of a partition unit is shown.

[0018] Fig. 11C An example of a block diagram of a processing cluster within a parallel processing unit is shown.

[0019] Fig.11D An example of a graphics multiprocessor is shown, where the graphics multiprocessor is coupled with a pipeline manager of a processing cluster.

[0020] FIG. 12A to FIG. 12C Additional graphics multiprocessors are shown according to examples.

[0021] Fig.13 A parallel computing system 1300 is shown according to some examples.

[0022] FIG. 14A to FIG. 14B A hybrid logical / physical view of a factorized parallel processor according to examples described herein is shown.

[0023] 15(A) 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.

[0024] 15(B) 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.

[0025] Fig.16 An example of an execution unit circuit such as an execution unit circuit is shown.

[0026] Fig.17 is a block diagram of a register architecture according to some examples.

[0027] Fig.18 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.

[0028] Fig.19 is a block diagram illustrating an IP core development system that may be used to fabricate an integrated circuit to perform operations according to some examples. DETAILED DESCRIPTION

[0029] The present disclosure relates to a method, apparatus, system, and non-transitory computer-readable storage medium for performing infield testing. Infield testing involves deploying infield test firmware (FW) into a SoC.

[0030] The infield test FW uses the following high-level sequence to perform infield testing:

[0031] a) Put the SoC into test mode,

[0032] b) perform one or more field tests,

[0033] c) observe the pass or fail signature of the test; and

[0034] d) Communicate with the host / user via a dashboard (local or cloud-based).

[0035] When the end user faces some issues, the SoC part is usually returned to the OEM, and if the OEM is unsuccessful in debugging the issue, the part is returned to the SoC manufacturer. The returned part may have a logic defect, a hardware structural defect, or a software / firmware execution defect. At this point, it is best for the OEM or SoC manufacturer to classify whether the problem is related to a hardware defect, a microcontroller holding infield firmware, or an infield firmware execution of the above sequence of steps.

[0036] Current automotive SoCs do not have the ability for an external debugger to obtain the information needed regarding 1) the progress of infield testing and / or 2) the execution of the infield test FW while infield testing is ongoing. This lack of capability delays finding the root cause of problems and their resolution. Additionally, today's SoCs lack debug hooks associated with the infield test FW that are associated with the infield test for observation by an external debugger. Due to the lack of the ability to probe the debug hooks, the OEM is unable to determine the root cause of the problem, so the OEM must obtain support from its SoC vendor and incur expensive infield returns.

[0037] Existing solutions include infield test FW control and execution of infield test access without the required observability to an external debugger. If a hang occurs during infield test execution and if the debugger does not have observability, this adds considerable complexity to the infield test FW, limiting scalable debugging scenarios. There is additional complexity because for every failure, an additional infield test FW patch is required to stop further infield detection execution and help find the root cause of the problem. As automotive SoCs and server SoCs become complex, this will not be feasible because this approach requires considerable effort to patch the FW multiple times in a trial-and-error manner, and it is difficult for OEMs to debug using this approach.

[0038] Figure 1 An example of a prior art data flow for infield testing is shown. In some examples, a content image (e.g., instructions for testing) is stored in flash memory 101. At circle 1, a serial protocol interface (SPI) controller 103 obtains the image from flash memory 101 and transmits it to a security controller (SC) 107 via a security controller (SC) / serial protocol interface (SPI) system bus 105 at circle 2.

[0039] At circle 3, the SC 107 authenticates the image and transmits the image to the LBIST controller 109 and / or MBIST controller 111 at circle 4. In some examples, the SC 107 generates sideband commands to be passed to the FW to Test Access Port (TAP) component 117 via a sideband bus (SC OSSB 115), which converts the sideband commands to TAP commands. The chip level TAP (CLTAP) 119 sends the TAP commands to the LBIST controller 109 and / or MBIST controller 111 to run the test.

[0040] This has several disadvantages. First, when a component is returned due to an infield test failure, as described above, existing debugging methods aim to instrument the FW code through a "trial and error" approach to first reproduce the problem in an isolated environment and then make a repair.

[0041] Secondly, since external parameters are controlled with different guard bands, the inaccuracies of the tool equipment must also be considered, which leads to the accumulation of potential errors. An example of this parameter is the voltage provided according to temperature. In the customer environment, the external parameters will change, and any test must address these changes without having to know what they are. Therefore, the worst case scenario is usually evaluated.

[0042] Third, there are established proactive solutions to enable screening and removal of defective parts to avoid delivery, but when returns from the field occur, successful root cause finding and correction depends on the reproducibility of the failure, which is independent of the environment. While each error report is a unique combination of circumstances, deeper analysis can only be performed when concurrent evidence is available and powerful debugging capabilities can be accessed.

[0043] The examples detailed herein allow simultaneous and / or parallel access to an external debugger (e.g., via an 1149.1 Institute of Electrical and Electronics Engineers (IEEE) Joint Test Action Group (JTAG) interface) while performing infield firmware testing. This allows for greater insight (finer granularity) and / or accelerated testing (whether the problem is related to the infield test FW, the infield microcontroller, or a hardware defect).

[0044] When a part is returned for commissioning due to a field failure, it is important to perform infield tests. When performing these infield tests, especially in a controlled environment, it can be important to observe the progress of the infield tests and understand at which stage of the test problems occur. Existing solutions do not have that capability. The examples in this article allow data to be collected from the field and exposed to experts. This allows the data to be utilized closer to where it is generated.

[0045] Figure 2 An example of an architecture that allows an external debugger and infield firmware to access a TAP network is shown. As shown, there are two register spaces that a debugger 221 can access - a TAP accessible register space 209 and an infield test FW accessible register space 207. In some examples, the infield test FW accessible register space 207 includes an IFT control register and a debug / status register. The IFT control register is used to control debugging, and the IFT debug / status register is used to indicate the progress of the infield test. In some examples, both types of registers can be accessed by the infield test FW 205 alone and / or by the external debugger 221 alone or by both at the same time.

[0046] As shown, the paths to the register space are different. For example, the infield microcontroller 205 (running or including the infield test FW) can access the infield test FW accessible register space 207, but must use the infield firmware to TAP bridge 203 (e.g., FW2TAP 117) to see the TAP accessible register space 209 (if allowed).

[0047] The internal firmware to TAP bridge 203 converts between protocols (eg, from firmware to JTAG) and arbitrates between the internal test FW and the external debug interface. The chip level TAP (CLTAP) 211 controls the TAP network 213 and the scan network 215, and the TAP network 213 has sub-TAP networks.

[0048] Scan network 215 includes a logic built-in self-test (LBIST) controller that can perform scan testing (e.g., using input patterns applied to scan chains) and a memory built-in self-test (MBIST) controller that can perform array testing (e.g., using patterns applied to memories and recorded defects). These controllers are coupled to TAP accessible registers 209.

[0049] Figure 3 An example of using an architecture that allows both an external debugger and in-field firmware to access a TAP network is shown. Figure 2 are the same, and the components have the same functionality.

[0050] The diagram shows that the infield accessible control and debug / status registers 301 are mapped (as shown by path 1) into the infield test FW (memory mapped (MMIO)) register space 207 accessible to the infield microcontroller 205.

[0051] The internal field-accessible control and debug / status registers 301 are also mapped (as shown by path 2 ) into the TAP-accessible register space 209 accessible to the external debugger 221 .

[0052] This arrangement of register locations allows status or debug information to be collected through the external debug interface via TAP 211 when problems arise during debugging, such as signature mismatches, hangs, etc., encountered during infield test execution. This arrangement can also be used to debug the progress of an infield test sequence because an external debugger 221 can access the infield accessible control and debug / status registers 301. Because the infield control registers are exposed, the external debugger 221 can also control when to stop and restart infield testing.

[0053] Figure 4 4 shows an example of data flow for infield testing when the infield test FW control and debug / status registers are duplicated in the infield test register (FW MMIO) space 401 and the TAP accessible register space 403. Note that the duplicate Figure 1 , and the operation is the same as in the figure.

[0054] In some examples, the content image is stored in flash memory 101 . A serial protocol interface (SPI) controller 103 retrieves the image from flash memory 101 and transmits it to SC 107 via SC / SPI system bus 105 .

[0055] In some examples, the SC 107 authenticates the image and transmits the image to the LBIST controller 109 and / or the MBIST controller 111. In some examples, the SC 107 generates a sideband command to be passed to the FW to Test Access Port (TAP) component 117 via a sideband bus (SC OSSB 115), which converts the sideband command to a TAP command. The chip-level TAP 119 sends the TAP command to the LBIST controller 109 and / or the MBIST controller 111 to run the test.

[0056] As shown, the IFT state and control of debug registers are stored in the infield test register (FW MMIO) space 401 and the TAP accessible register space 403. These spaces are independently configurable.

[0057] As shown, path 1 allows an external debugger to access TAP accessible register space 403. Paths 2a and 2b allow an infield test FW to access infield test register (FW MMIO) space 401.

[0058] In some examples, IFT control registers and IFT debug registers are selectively partitioned and mapped between the FW MMIO space and the TAP accessible register space. Figure 5 An example of selective IFT control register and IFT debug register partitioning is shown. Two paths are created in this way so that an external debugger can access the debug / status related infield test registers in the TAP register space 503, and at the same time the infield firmware can access the control and debug / status related registers in the infield test register (FWMMIO) space 501.

[0059] In particular, an external debugger (aka JTAG IO) reaches the TAP accessible register space 503, which holds debug and status related infield test registers, through CLTAP 119, through sub-TAP network 505. The firmware extracts data from flash memory 101 using the SPI controller and then passes it through SC 107, which sends sideband commands to the IFT control registers in 501 through the IOSF sideband bus 115. The commands are converted to TAP commands using FW2TAP 117 to start scan testing and array testing using LBIST controller 109 and / or MBIST controller 111.

[0060] This method provides flexibility to allow an external JTAG debugger to obtain the status of the infield test while the infield test FW controls the IFT control registers. Figure 4 All IFT controls and IFT debug have been mapped into two spaces and in Figure 5 The registers in the IFT register space are mapped differently, but the register selection between the two spaces can be optimized based on the functionality and security level of the IFT control and debug registers. For example, several control registers with OEM security policies can be kept under the TAP register space, and debug registers with other policies (e.g., restricted access to OEM) can be placed under the FW MMIO space. In other words, a mix can also be implemented based on the needs of the OEM / SoC use case.

[0061] In some examples, the infield firmware to TAP bridge 203 (FW2TAP 117) arbitrates between the infield firmware 205 and the debugger 221. This is useful if a hang or signature mismatch is observed during infield test execution, because the external debugger can request ownership of the CLTAP so that control of the TAP network will be taken by the external debug interface. The debugger can then read the debug registers related to the infield test in the TAP accessible register space to measure the progress of the infield test.

[0062] Figure 6 An example of an arbitration finite state machine (FSM) used by FW2TAP is shown. In the figure, "E" represents an external debugger requesting access to the TAP network via CLTAP, and "F" represents an infield test FW requesting access to the TAP network via CLTAP. Due to reset, the FSM enters the "External Debugger Active" state. If E is 1 or both E and F are 0, it remains in this state. When E=0 and F=1, the FSM transitions to the "Firmware Active" state, and if F=1, the FSM will remain in this state.

[0063] Through this arbitration in FW2TAP, infield test FW registers that are only exposed to the OEM (protected by the OEM security policy) can be accessed in parallel, so infield test related hangs can be debugged efficiently and accelerated.

[0064] Figure 7 An example of a method using configurable IFT register allocation is shown. At 701, the accessibility of control and debug / status registers is configured. For example, an external debugger can be used to configure how registers are configured (where registers are stored or copied). In some examples, this is an option to a pre-programmed configuration.

[0065] At 703, a command to perform a test on the logic is received. The command may come from firmware or an external debugger. The command may include instructions for: retrieving a test image, what controls to set in an IFT control register, what results to output (e.g., interrupts), and when to output the results, etc.

[0066] At 705, a test is performed on the logic. The execution uses the built-in test logic to perform the test at 707. For example, one or more of LBIST and MBIST are used. During execution, at 709, one or more of the control and debug / status registers are updated.

[0067] In some examples, at 711, according to the configuration, an external debugger is allowed to access control and / or debug / status registers during testing. For example, a hang has occurred and the test cannot be completed, so the external debugger obtains debug / status register information.

[0068] In some examples, at 713 , depending on the configuration, an external debugger is allowed to access control and / or debug / status registers after testing.

[0069] Some examples are implemented in one or more computer architectures, cores, accelerators, etc., as described in detail below. Some examples are generated or are IP cores.

[0070] Example Architecture

[0071] 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.

[0072] Example System

[0073] 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).

[0074] 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.

[0075] 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.

[0076] 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.

[0077] 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).

[0078] PCU 817 is illustrated 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.

[0079] 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 / code and data 830 and may implement the storage device 703 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.

[0080] Example core architectures, processors, and computer architectures.

[0081] Processor cores can be implemented in different ways, for different purposes, and in different processors. For example, implementations of such cores may include: 1) general-purpose in-order cores intended for general-purpose computing; 2) high-performance general-purpose out-of-order cores intended for general-purpose computing; 3) dedicated cores primarily intended for graphics and / or scientific (throughput) computing. Implementations of different processors may include: 1) a CPU that includes 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 that includes one or more dedicated cores primarily intended for graphics and / or scientific (throughput) computing. Such different processors lead to different computer system architectures, which may include: 1) a coprocessor on a chip separate 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 this case, such a coprocessor is sometimes referred to as dedicated logic, such as integrated graphics and / or scientific (throughput) logic, or referred to as a dedicated core); 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 above-mentioned coprocessor, and additional functions. An example core architecture is described next, followed by a description of example processor and computer architectures.

[0082] 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.

[0083] 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).

[0084] 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.

[0085] 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.

[0086] 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.

[0087] 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.

[0088] 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.

[0089] 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.

[0090] 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.

[0091] 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.

[0092] 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.

[0093] Some of the specific components shown herein are optional and may not be included in all embodiments 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 as illustrated. For example, in some architectures, the memory hub 1005 may be referred to as a Northbridge, while the I / O hub 1007 may be referred to as a Southbridge.

[0094] Fig.11AAn example of a parallel processor 1100 is shown. Parallel processor 1100 may be a GPU, a 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 illustrated parallel processor 1100 may be Fig.10 One or more of the parallel processors 1012 are shown.

[0095] 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 crossbar 1116, wherein the host interface 1106 receives commands dedicated to performing processing operations, and the memory crossbar 1116 receives commands dedicated to performing memory operations.

[0096] 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 .

[0097] 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.

[0098] 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.

[0099] 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 to perform 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. During 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.

[0100] 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.

[0101] 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.).

[0102] 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.

[0103] 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.

[0104] 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.

[0105] Although a single instance of PPU 1102 is illustrated 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. The system 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.

[0106] 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.

[0107] 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 a parallel processor memory) in 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).

[0108] 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.

[0109] 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.

[0110] 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.

[0111] 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 illustrated graphics multiprocessor 1134 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.

[0112] 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.

[0113] 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.

[0114] Graphics multiprocessor 1134 may include an internal cache memory that performs load and store operations. Alternatively, graphics multiprocessor 1134 may abandon the internal cache and use a cache memory (e.g., level 1 (L1) cache 1148) within processing cluster 1114. 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. Embodiments where processing cluster 1114 includes multiple instances of graphics multiprocessor 1134 may share common instructions and data that may be stored in L1 cache 1148.

[0115] 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.

[0116] 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 optimization, organize pixel color data, and perform address translation.

[0117] 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.

[0118] 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.

[0119] 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.

[0120] 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.

[0121] 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 embodiments, 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.

[0122] 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.

[0123] 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 perform 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.

[0124] 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, which includes dedicated groups of graphics processing resources arranged into multi-core groups 1265A-1265N, which correspond 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.

[0125] 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, a texture and / or data cache memory 1242, and a shared memory 1246.

[0126] 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.

[0127] 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 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 caches 1258A-1258B. The various components may be communicated via a communication protocol similar to Fig. 12A The interconnect structure 1227 communicates with the interconnect structure 1252.

[0128] 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.

[0129] 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.

[0130] 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.

[0131] As illustrated, 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.

[0132] 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, ray 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 in the figure, 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 a system memory (e.g., DRAM) and / or a dedicated graphics memory (e.g., GDDR6 memory).

[0133] 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.

[0134] In one embodiment 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 a context switch (e.g., so that the new context is provided with access to the associated set of page tables). Although in Fig. 12C Not illustrated, but each of 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.

[0135] 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 embodiment, the memory 1266 includes GDDR6 memory that shares the same virtual address space with other physical system-level memories, but the basic principles described herein are not limited to this particular embodiment.

[0136] 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 construct a high-quality final image.

[0137] In a deep learning implementation, parallel matrix multiplication work may 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 the 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.

[0138] Matrix elements may 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 particular implementation. Different precision modes may 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 additionally include 64-bit floating point (FP64) and non-IEEE floating point formats, such as the 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 a reduced precision tensor floating (TF32) mode that uses the range of FP32 (8 bits) and the precision of FP16 (10 bits) to perform calculations. Reduced precision TF32 operations may 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.

[0139] 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.

[0140] 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 embodiment, 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.

[0141] 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.

[0142] 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.

[0143] 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.

[0144] 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.

[0145] 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.

[0146] 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:

[0147] -Ray Generation -Ray generation instructions can be executed for each pixel, sample, or other user-defined work distribution.

[0148] - Closest Hit - A closest hit instruction may be executed to locate the closest intersection of a ray with a primitive within a scene.

[0149] -Any Hit - The Any Hit instruction identifies multiple intersections between rays and primitives within the scene to potentially identify a new closest intersection point.

[0150] -Cross-The -Cross instruction performs a ray-primitive intersection test and outputs the result.

[0151] - 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).

[0152] -Miss - Indicates that the ray missed all geometry within the scene or a specified area of ​​the scene.

[0153] -Visit - Indicates the subbox that the ray will pass through.

[0154] -Exceptions - includes various types of exception handlers (e.g., called for various error conditions).

[0155] 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.

[0156] 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.

[0157] 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.

[0158] The embodiments 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.

[0159] 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.

[0160] 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.

[0161] 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.

[0162] 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.

[0163] 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.

[0164] 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.

[0165] 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).

[0166] 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.

[0167] 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.

[0168] 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. A disaggregated collection of discrete dies, tiles, and / or chiplets may also be part of a system on a package ("SoP").

[0169] Example core architectures - in-order and out-of-order core block diagrams.

[0170] FIG. 15(A) is a block diagram showing both an example in-order pipeline and an example register renaming, out-of-order issue / execution pipeline according to an example. FIG. 15(B) is a block diagram showing 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. The solid line boxes in FIG. 15(A) to FIG. 15(B) show the in-order pipeline and the in-order core, while the optional addition of the dashed line boxes shows the register renaming, out-of-order issue / execution pipeline and the core. Considering that the in-order aspect is a subset of the out-of-order aspect, the out-of-order aspect will be described.

[0171] In FIG. 15(A), the processor pipeline 1500 includes an acquisition stage 1502, an optional length decoding stage 1504, a decoding stage 1506, an optional allocation (Alloc) stage 1508, an optional renaming 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 submission stage 1524. One or more operations may be performed in each of these processor pipeline stages. For example, during the acquisition stage 1502, one or more instructions are obtained from the instruction memory, and during the decoding stage 1506, one or more obtained 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 offset or a link register (LR)) may be performed. In some examples, the decoding 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.

[0172] By way of example, the example register renaming, out-of-order issue / execution architecture core of FIG. 15(B) 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.

[0173] 15(B) shows a processor core 1590, 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 another option, the core 1590 can be a dedicated 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.

[0174] 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 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-operation (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.

[0175] 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 clusters 1560. Execution clusters 1560 include a set of one or more execution unit circuits 1562 and a set of one or more memory access circuits 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.

[0176] 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).

[0177] 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.

[0178] 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.

[0179] Example execution unit circuit.

[0180] Fig.16An example of an execution unit circuit such as the execution unit circuit 1562 of FIG. 15(B) is shown. As illustrated, 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 packed 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 addresses. 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 execution unit circuit 1562 varies according to examples and can range from, 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 (e.g., two 128-bit execution units are logically combined to form a 256-bit execution unit).

[0181] Example register architecture.

[0182] Fig.17 1 is a block diagram of a register architecture 1700 according to some examples. As illustrated, the register architecture 1700 includes a vector / SIMD register 1710 that varies 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 of the 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 selects 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.

[0183] 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).

[0184] 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.

[0185] 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.

[0186] 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.

[0187] 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.

[0188] 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.

[0189] 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.

[0190] 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).

[0191] 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 / memory 708 or physical register file circuit 1558.

[0192] Instruction set architecture.

[0193] 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.

[0194] Fig.18 1 is a block diagram showing the use of a software instruction converter to convert binary instructions in a source ISA to binary instructions in a target ISA according to an example. In the illustrated example, 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.18 It is shown that a program in a high-level language 1802 can be compiled using a first ISA compiler 1804 to generate first ISA binary code 1806 that can be natively executed by a processor having at least one first ISA core 1816. The processor having at least one first ISA core 1816 represents any processor that can execute programs with the processor having 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 1804 represents a compiler operable to generate first ISA binary code 1806 (e.g., object code) that can be executed on a processor having at least one first ISA core 1816 with or without additional link processing. Similarly, Fig.18It is shown that a program in a high-level language 1802 can be compiled using an alternative ISA compiler 1808 to generate an alternative ISA binary code 1810 that can be natively executed by a processor that does not have a first ISA core 1814. An instruction converter 1812 is used to convert the first ISA binary code 1806 into code that can be natively executed by a processor that does not have a first ISA core 1814. The converted code does not have to be the same as the replaced ISA binary code 1810; however, the converted code will complete the general operation and consist of instructions from the replacement ISA. Thus, the instruction converter 1812 represents software, firmware, hardware, or a combination thereof that allows a processor or other electronic device that does not have a first ISA processor or core to execute the first ISA binary code 1806 through simulation, emulation, or any other process.

[0195] IP Core Implementation

[0196] One or more aspects of at least some examples may be implemented by representative code stored on a machine-readable medium, which 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, which 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.

[0197] Fig.191 is a block diagram showing an IP core development system 1900 that can be used to manufacture an integrated circuit to perform operations according to some examples. The IP core development system 1900 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 1930 can generate a software simulation 1910 of the IP core design in a high-level programming language (e.g., C / C++). The software simulation 1910 can be used to design, test, and verify the behavior of the IP core using a simulation model 1912. The simulation model 1912 may include functional, behavioral, and / or timing simulations. Then, a register transfer level (RTL) design 1915 can be created or synthesized based on the simulation model 1912. The RTL design 1915 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 1915, 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.

[0198] The RTL design 1915 or equivalent may be further synthesized by the design facility into a hardware model 1920, 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 1940 (e.g., a hard disk, flash memory, or any non-volatile storage medium) for delivery to a third party manufacturing facility 1965. Alternatively, the IP core design may be transmitted (e.g., via the Internet) via a wired connection 1950 or a wireless connection 1960. The manufacturing facility 1965 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.

[0199] 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.

[0200] Examples include, but are not limited to:

[0201] Example 1. A device comprising: at least one built-in self-test controller for performing tests on the logic of the device; a storage device for storing test instructions associated with the test; a plurality of infield test debug and status registers for storing information about the execution of the test instructions; and a plurality of infield control debug registers for controlling the execution of the test instructions, wherein access to the plurality of infield test debug registers and the plurality of infield control debug registers is programmable.

[0202] Example 2. The apparatus of example 1, wherein the built-in self-test controller is a memory built-in self-test controller.

[0203] Example 3. The apparatus of example 1, wherein the built-in self-test controller is a logic built-in self-test controller.

[0204] Example 4. An apparatus according to any one of Examples 1 to 3, wherein access to the multiple infield test debug registers and the multiple infield control debug registers is programmable to map the multiple infield test debug registers and the multiple infield control debug registers to a firmware accessible register space and a test access port (TAP) space.

[0205] Example 5. The apparatus of Example 4, wherein an external debugger can access the firmware-accessible register space and the TAP space.

[0206] Example 6. An apparatus according to any one of Examples 1 to 3, wherein access to the multiple infield test debug registers and the multiple infield control debug registers is programmable to map the multiple infield test debug registers to a test access port (TAP) space and to map the multiple infield control debug registers to a firmware accessible register space.

[0207] Example 7. The apparatus of Example 6, wherein the firmware-accessible register space is accessible to an external debugger.

[0208] Example 8. The apparatus of Example 7, wherein infield firmware can access the firmware-accessible register space while the external debugger can access the TAP space.

[0209] Example 9. The apparatus according to any one of Examples 1 to 8 further includes: a chip-level test access port (TAP), wherein the chip-level TAP is used to arbitrate access to the multiple internal field control debug registers between an external debugger and internal field firmware.

[0210] Example 10. An apparatus according to any one of Examples 1 to 9, wherein an external debugger is capable of controlling the execution of the test.

[0211] Example 11. A system comprising: a device, the device comprising: at least one built-in self-test controller for performing tests on the logic of the device; a storage device for storing test instructions associated with the test; a plurality of infield test debug and status registers for storing information about the execution of the test instructions; and a plurality of infield control debug registers for controlling the test, wherein access to the plurality of infield test debug registers and the plurality of infield control debug registers is programmable; and a debugger, the debugger being coupled to the device, the debugger being used to read at least one of the plurality of infield test debug and status registers and the plurality of infield control debug registers.

[0212] Example 12. The system of Example 11, wherein the built-in self-test controller is a memory built-in self-test controller.

[0213] Example 13. The system of Example 11, wherein the built-in self-test controller is a logic built-in self-test controller.

[0214] Example 14. A system according to any one of Examples 11 to 13, wherein access to the multiple infield test debug registers and the multiple infield control debug registers is programmable to map the multiple infield test debug registers and the multiple infield control debug registers to a firmware accessible register space and a test access port (TAP) space.

[0215] Example 15. The system of Example 14, wherein an external debugger can access the firmware accessible register space and the TAP space.

[0216] Example 16. A system according to any one of Examples 11 to 13, wherein access to the multiple infield test debug registers and the multiple infield control debug registers is programmable to map the multiple infield test debug registers to a test access port (TAP) space and to map the multiple infield control debug registers to a firmware accessible register space.

[0217] Example 17. The system of Example 16, wherein an external debugger can access the firmware accessible register space.

[0218] Example 18. The system of Example 17, wherein infield firmware can access the firmware-accessible register space while the external debugger can access the TAP space.

[0219] Example 19. The system according to any one of Examples 11 to 18 further includes: a chip-level test access port (TAP), wherein the chip-level TAP is used to arbitrate access to the multiple internal field control debug registers between an external debugger and internal field firmware.

[0220] Example 20. The system of any one of Examples 11 to 13, wherein an external debugger is capable of controlling the execution of the test instructions.

[0221] 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).

[0222] 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: at least one built-in self-test controller for performing tests on logic of the device; a storage device for storing test instructions associated with the test; a plurality of infield test debug and status registers for storing information about execution aspects of the test instructions; as well as A plurality of inner field control debug registers are used to control the execution of the test instructions, wherein access to the plurality of inner field test debug registers and the plurality of inner field control debug registers is programmable.

2. The device according to claim 1, wherein: The built-in self-test controller is a memory built-in self-test controller.

3. The device according to claim 1, wherein: The built-in self-test controller is a logic built-in self-test controller.

4. The device according to any one of claims 1 to 3, wherein: Access to the plurality of infield test debug registers and the plurality of infield control debug registers is programmable to map both the plurality of infield test debug registers and the plurality of infield control debug registers to a firmware accessible register space and a test access port (TAP) space.

5. The device according to claim 4, wherein: An external debugger can access both the firmware accessible register space and the TAP space.

6. The device according to any one of claims 1 to 3, wherein: Access to the plurality of infield test debug registers and the plurality of infield control debug registers is programmable to map the plurality of infield test debug registers to a test access port (TAP) space and to map the plurality of infield control debug registers to a firmware accessible register space.

7. The device according to claim 6, wherein: An external debugger can access the firmware accessible register space.

8. The device according to claim 7, wherein: While the external debugger can access the TAP space, the infield firmware can access the firmware accessible register space.

9. The device according to any one of claims 1 to 8, further comprising: A chip-level test access port (TAP) is provided, wherein the chip-level TAP is used to arbitrate access to the plurality of infield control debug registers between an external debugger and infield firmware.

10. The device according to any one of claims 1 to 9, wherein: An external debugger can control the execution of the tests.

11. A system comprising: Device, the device comprising: at least one built-in self-test controller for performing tests on logic of the device; a storage device for storing test instructions associated with the test; a plurality of infield test debug and status registers for storing information about execution aspects of the test instructions; and a plurality of infield control debug registers for controlling the test, wherein access to the plurality of infield test debug registers and the plurality of infield control debug registers is programmable; and A debugger is coupled to the device, the debugger being used to read at least one of the plurality of infield test debug and status registers and the plurality of infield control debug registers.

12. The system according to claim 11, wherein: The built-in self-test controller is a memory built-in self-test controller.

13. The system according to claim 11, wherein: The built-in self-test controller is a logic built-in self-test controller.

14. A system according to any one of claims 11 to 13, wherein: Access to the plurality of infield test debug registers and the plurality of infield control debug registers is programmable to map both the plurality of infield test debug registers and the plurality of infield control debug registers to a firmware accessible register space and a test access port (TAP) space.

15. The system of claim 14, wherein: An external debugger can access both the firmware accessible register space and the TAP space.

16. The system according to any one of claims 11 to 13, wherein: Access to the plurality of infield test debug registers and the plurality of infield control debug registers is programmable to map the plurality of infield test debug registers to a test access port (TAP) space and to map the plurality of infield control debug registers to a firmware accessible register space.

17. The system of claim 16, wherein: An external debugger can access the firmware accessible register space.

18. The system of claim 17, wherein: While the external debugger can access the TAP space, the infield firmware can access the firmware accessible register space.

19. The system according to any one of claims 11 to 18, further comprising: A chip-level test access port (TAP) is provided, wherein the chip-level TAP is used to arbitrate access to the plurality of infield control debug registers between an external debugger and infield firmware.

20. The system according to any one of claims 11 to 19, wherein: An external debugger can control the execution of the test instructions.