Multipath memory with static or dynamic mapping into coherent or MMIO space
The processor system allows dynamic memory assignment between cache coherent and I/O domains, improving flexibility and performance by using a switch to route data based on user-defined allocations.
Patent Information
- Application Number
- JP2024519626
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2021-09-30
- Filing Date
- 2022-06-03
- Publication Date
- 2024-10-23
- Estimated Expiration
- 2042-06-03
AI Technical Summary
Existing processor systems statically allocate memory to either a cache coherent domain or an I/O domain, limiting flexibility and preventing user or customer reassignment, which restricts optimal memory utilization based on changing needs.
Implementing a processor system with allocatable memory that can be dynamically assigned to either a cache coherent domain or an I/O domain, using a switch to route data based on these assignments, and notifying the operating system of these changes.
Enables flexible memory allocation, allowing users to optimize memory utilization based on current needs, enhancing system performance and efficiency by supporting both cache coherent and I/O operations.
Smart Images

Figure 2024538624000001_ABST
Abstract
Description
[Technical field]
[0001] Examples of this disclosure generally relate to memory within a processor system that can be allocated to either the coherent domain or the input / output (I / O) domain. [Background technology]
[0002] A processor system connected to a main memory (or normal memory) path typically offers the advantage of having hardware cache coherency that maintains a correct updated copy of memory or a coherent shared copy of memory across multiple processors and caches. A memory in a processor system connected to a device memory or memory-mapped I / O (MMIO) path offers the advantage of having the hardware interconnect maintain the strict read and write ordering expected for transactions from a source processor to a destination memory, where the transactions are generated by device drivers running on the processors that interact with the processor system. On the other hand, normal or main memory typically uses a locking mechanism or a cache-coherent synchronization barrier mechanism that allows operations to be unordered up until the synchronization barrier.
[0003] The designer of the processor system makes the decision at implementation time to statically attach memory to either the main memory path portion of the cache coherent domain or the MMIO path portion of the I / O domain. The operating system (OS) utilizes or creates page table attributes for the memory statically as part of the I / O domain or the cache coherent domain (also called the main memory domain). The decision to choose one path or the other may also be a limitation of the multiprocessor interconnect, which requires pre-allocation for memory in the processor system at implementation time. Thus, once allocated by the designer, memory in the processor system cannot be re-allocated to a different domain. As a result, the user or customer of the processor system cannot change the initial allocation made by the designer. Summary of the Invention
[0004] Techniques are described for supporting allocatable and non-allocatable memory in a processing system. One example is a processor system in an integrated circuit (IC) that includes an interconnect with cache coherent paths and input / output (I / O) paths, a processor core connected to the interconnect, a switch connected to the cache coherent paths and the I / O paths, and an allocatable memory configured to be assigned to one of a cache coherent domain shared with the processor core or an I / O domain that is non-cache coherent with the processor core. Further, the switch routes data between the allocatable memory and the cache coherent and I / O paths depending on the assignment to the cache coherent and I / O domains.
[0005] One example described herein is an IC including a processor system, a network on chip (NoC) coupled to the processor system, and an array of data processing engines coupled to the NoC. The processor system further includes an interconnect comprising a cache coherent path and an input / output (I / O) path, a processor core coupled to the interconnect, a switch coupled to the cache coherent path and the I / O path, and an allocatable memory configured to be assigned to one of the cache coherent domains or the I / O domains.
[0006] One example described herein is a method that includes allocating memory in a processor system to one of a cache coherent domain or an I / O domain, configuring a switch based on the allocation if the switch is communicatively coupled between the memory and the interconnect, configuring the interconnect based on the allocation if the interconnect is communicatively coupled between the switch and a processor core that is in the cache coherent domain, and notifying an operating system in the processor core of the allocation. [Brief description of the drawings]
[0007] So that the above features briefly summarized may be understood in detail, a more particular description can be made by reference to exemplary implementations, some of which are illustrated in the accompanying drawings. It should be noted, however, that the accompanying drawings illustrate only typical example implementations and therefore should not be considered as limiting the scope thereof. [Figure 1] 1 is a block diagram of an integrated circuit including memory within a processor system that can be allocated to different domains, according to an example. [Diagram 2] 1 is a block diagram of a processor system having memory that can be allocated to different domains, according to an example. [Diagram 3]1 is a block diagram of a processor system having memory that can be allocated to different domains, according to an example. [Figure 4] 1 is a flowchart for allocating memory to either the I / O domain or the cache coherent domain, according to an example. [Diagram 5] 1 illustrates a circuit for connecting both allocatable and non-allocatable memory to a cache coherent path, according to one example. [Figure 6] 1 illustrates a circuit for connecting both allocatable and non-allocatable memory to an I / O path, according to one example.
[0008] For ease of understanding, wherever possible, identical reference numbers have been used to indicate identical elements common to the figures. It is contemplated that elements of one example may be beneficially incorporated in other examples. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] Various features are described below with reference to the drawings. It should be noted that the drawings may or may not be drawn to scale, and elements of similar structure or function are represented by similar reference numerals throughout the drawings. It should be noted that the drawings are intended only to facilitate the description of features. They are not intended as an exhaustive description of features or as limitations on the scope of the claims. In addition, the illustrated examples do not necessarily have all aspects or advantages shown. An aspect or advantage described in connection with a particular embodiment is not necessarily limited to that embodiment and can be implemented in any other embodiment, even if not so illustrated or explicitly described.
[0010] Embodiments herein describe memory in an integrated circuit (IC) processor system that can be assigned to either a cache coherent domain or an I / O domain, rather than being statically assigned by the IC designer. That is, a user or customer can assign memory to the domain that best suits their needs. Furthermore, memory can be reassigned to a different domain if the user later changes their mind. Thus, embodiments herein provide greater flexibility to processor systems than previous processor systems in which assignments were fixed (e.g., burned into silicon) and could not be changed.
[0011] In addition to having allocatable memory (e.g., memory that can be allocated to any domain), a processor system can include non-allocatable memory that is set to a particular domain and is not user-allocatable, i.e., a processor system can support both allocatable and non-allocatable memory.
[0012] 1 is a block diagram of an IC 100 that includes a data processing engine (DPE) array 150, according to one example. DPE array 150 includes multiple DPEs that may be arranged in a grid, cluster, or checkerboard pattern within IC 100. For example, the DPEs may form a 2D array having rows and columns. Furthermore, array 150 may be of any size and may have any number of rows and columns formed by the DPEs.
[0013] In one embodiment, the DPEs in array 150 are identical; that is, each of the DPEs (also called tiles or blocks) may have the same hardware components or circuitry. Furthermore, the embodiments herein are not limited to DPEs. IC 100 may include an array of any type of processing elements, for example, a DPE may be a digital signal processing engine, a cryptographic engine, a forward error correction (FEC) engine, or other dedicated hardware for performing one or more dedicated tasks.
[0014] In one embodiment, array 150 includes DPEs that are all of the same type (e.g., a homogenous array). However, in another embodiment, array 150 may include engines of different types. For example, array 150 may include digital signal processing engines, cryptographic engines, graphics processing engines, etc. Whether array 150 is homogenous or heterogeneous, the DPEs may include direct connections between the DPEs that allow the DPEs to transfer data directly, as described in more detail below. Additionally, although IC 100 includes DPE array 150, IC 100 may have other arrays, and the processing elements within the arrays may be different.
[0015] In one embodiment, the DPE is formed from non-programmable logic, i.e., hardened. One advantage of doing so is that the DPE may take up less space in the IC 100 compared to using programmable logic to form the hardware elements in the array 150. That is, by using hardened or non-programmable logic circuits to form the hardware elements in the DPE, such as the program memory, instruction fetch / decode unit, fixed point vector unit, floating point vector unit, arithmetic logic unit (ALU), multiplier accumulator (MAC), etc., the footprint of the array 150 in the IC 100 may be significantly reduced. Although the DPE may be hardened, this does not mean that the DPE is not programmable. That is, the DPE may be configured when the IC 100 is powered up or rebooted to perform different functions or tasks.
[0016] In this example, IC 100 includes a network-on-chip (NoC) 130 communicatively coupled to array 150. Although not shown, NoC 130 may extend throughout IC 100 to allow various components in IC 100 to communicate with one another. For example, in one physical implementation, DPE array 150 may be located in the lower right portion of IC 100. However, using NoC 130, array 150 may nevertheless communicate with, for example, programmable logic (PL) 140, processor system (PS) 105, or input / output (I / O) circuitry that may be located in different locations throughout IC 100.
[0017] 1 shows one block of PL 140, IC 100 may include multiple blocks of PL 140 (also referred to as configuration logic blocks (CLBs)) that may be located in different locations within IC 100. For example, IC 100 may include hardware elements forming an FPGA. However, in other embodiments, IC 100 may not include PL 140, for example, IC 100 is an application specific integrated circuit (ASIC). Furthermore, IC 100 may also be referred to as a system on a chip (SoC) because it has a heterogeneous processing environment that includes PL 140, DPE array 150, and processor system 105.
[0018] Processor system 105 (which may also be a processor subsystem) includes cache coherent domain 110 and I / O domain 115, which may be associated with one or more processing cores (not shown) in processor system 105. In one embodiment, cache coherent domain 110 uses a hardware cache coherent shared memory multiprocessor (or multicore) paradigm with a common instruction set architecture (ISA) independent model of interfacing in executing tasks or functions on multiple processor CPUs or cores in processor system 105. In contrast, I / O domain 115 relies on MMIO to transfer data between cores (e.g., CPUs) in processor system 105 and memory assigned to the domain.
[0019] In this embodiment, both cache coherent domain 110 and I / O domain 115 include allocatable memory 120 and non-allocatable memory 125. Allocatable memory 120 is memory that can be allocated (and re-allocated) to either cache coherent domain 110 or I / O domain 115. For example, a user or customer may have pre-selected that a first portion of allocatable memory 120A is in cache coherent domain 110 (and thus cache coherent with the processor cores in processor system 105), while a second portion of allocatable memory 120B is in I / O domain 115 (and thus not cache coherent with the cores in processor system 105). As described below, a user may change this allocation such that one of allocatable memories 120A in cache coherent domain 110 can be re-allocated to I / O domain 115, and vice versa.
[0020] Non-allocatable memory 125, in contrast, is not user-allocatable. In one embodiment, these memories 125 are assigned to one of the domains by a designer, and this assignment cannot be changed by a user. Although FIG. 1 shows processor system 105 including both types of memory, in one embodiment, processor system 105 may include only allocatable memory 120 that can be dynamically assigned to different domains.
[0021] Furthermore, flexible resources such as programmable logic memory, which can provide flexible programming models and sizes as part of either the cache coherent domain 110 or the I / O domain 115, no longer need to be fixed / declared as one type of resource in the device tree.
[0022] As described in more detail below, allocatable memory 120 in components in the processor system, such as PL memory, on-chip memory, or accelerators, can be partially or completely mapped to either the cache coherent domain 110 or the I / O domain 115. Thus, the same hardware implementation can allow flexible range selection for those components, and all that needs to be changed is the device tree software binary that advertises the preferred mapping of allocatable memory 120. Depending on the application space that the implementation targets, the device tree can advertise components or a subset of components mapped to the cache coherent domain 110 that benefit from following a multiprocessor cache coherent memory paradigm, and the components' allocatable memory 120 or data structures can be easily shared, cached, or migrated across multiple processor cores in the processor system 105. At the same time, a subset of components mapped to I / O domain 115 can follow the I / O device driver memory paradigm, and the components' allocatable memory 120 or data structures can leverage existing or simpler I / O device driver semantics where sharing of the components' resources between processor cores is handled by the device driver.
[0023] By having allocatable memory 120, a decision as to whether a new component in the processor system 105 is represented in the device tree as accessible along the main memory path (e.g., part of the cache coherent domain 110) or the MMIO path (e.g., part of the I / O domain 115) does not have to be made up front for implementation. Instead, embodiments herein allow the decision of the deployment model of the allocatable memory 120 in the component to be made later. By allowing the hardware to select both paths, performance data can be evaluated or use case analysis can be performed so that the best path is later selected and advertised to the OS via the appropriate device tree software binary for that deployment model.
[0024] Additionally, flexible components such as PL memory can be assigned to either the cache coherent domain 110 or the I / O domain 115, resulting in more efficient use of PL resources. Also, the same hardware implementation can support different use cases by modifying the device tree and its companion bitstream as needed.
[0025] Figure 2 is a block diagram of a processor system 105A having memory that can be allocated to different domains, according to an example. Figure 2 illustrates one implementation of the processor system 105 of Figure 1, which can include allocatable and non-allocable memory. As shown, the processor system 105A includes one or more processor cores 205 (e.g., central processing units (CPUs)). Although not shown, each processor core 205 can include an embedded OS (e.g., software) that performs tasks for different hardware components within the IC.
[0026] To perform these tasks, processor core 205 is connected to interconnect 210 (e.g., a coherent mesh network (CMN)), which is coupled to switch 225 (e.g., a switching circuit). Interconnect 210 includes cache coherent paths 215 (e.g., normal or main memory paths) and I / O paths 220 (e.g., MMIO paths). When sending data to a component that shares the same cache coherent domain as processor core 205, the data is sent along cache coherent paths 215. However, when communicating with a component that is not part of the cache coherent domain as processor core 205 (i.e., part of I / O domain 115 of FIG. 1), the data uses I / O paths 220.
[0027] Both cache coherent path 215 and I / O path 220 are coupled to switch 225, which is coupled to various components, namely, on-chip memory 230 and accelerator 235. These components are either memories themselves (as in the case of on-chip memory 230) or include tightly coupled memories (as in the case of accelerator memory 240 in accelerator 235). Thus, embodiments herein may be applied to any component in processor system 105 that includes memory communicatively coupled to processor core 205.
[0028] 2 assumes that the on-chip memory 230 and the accelerator memory 240 are allocatable memories. Thus, the memories 230, 240 may both be allocated to the same domain (e.g., both allocated to the cache coherent domain), or one may be allocated to the cache coherent domain and the other to the I / O domain. Furthermore, these allocations may be changed later as needed.
[0029] Depending on which domain the memories 230, 240 are assigned to determines which path in the interconnect 210 they will use when sharing data with the processor core 205. If both memories 230, 240 are assigned to the I / O domain, the processor core 205 and memories 230, 240 will use the I / O path 220 to send data over the interconnect 210. If the on-chip memory 230 is assigned to the cache coherent domain, but the accelerator 235 and its memory 240 are assigned to the I / O domain, the on-chip memory 230 will use the cache coherent path 215 and the accelerator memory 240 will use the I / O path 220. If these assignments change, the interconnect 210 can be reconfigured to ensure that data is routed on the appropriate path.
[0030] Switch 225 is coupled to both cache coherent path 215 and I / O path 220. Although this is shown as a direct connection, there may be intermediate circuitry (e.g., the circuitry described in FIG. 5) between interconnect 210 and switch 225. Switch 225 may receive data from components and determine which path should receive the data. For example, if on-chip memory 230 is assigned to the cache coherent domain, switch 225 routes any data received from this memory 230 to cache coherent path 215. If accelerator 235 is assigned to the I / O domain, switch 225 routes any data received from accelerator memory 240 to I / O path 220. If one of these assignments changes, switch 225 is reconfigured so that data received from the corresponding memory is routed on the other path in interconnect 210. In this way, switch 225 provides a flexible hardware routing circuit that can reassign components to different domains and switch to use different paths in interconnect 210.
[0031] Although not shown here, switch 225 may also be connected to components within processor system 105A that have non-allocatable memory. In this case, switch 225 cannot be updated to route data received from these memories to different paths. That is, switch 225 always routes data received from a non-allocatable memory to the same path within interconnect 210. Connecting switch 225 to non-allocatable memory is described in more detail in FIG. 6 below.
[0032] The processor core 205 may use the offload accelerator circuitry 245 in the accelerator 235 to perform specialized tasks such as data compression / decompression or data encryption / decryption. For example, the IC that includes the processor system 105A may be an accelerator (such as a machine learning accelerator, a data compression accelerator, a graphics processing accelerator, a data encryption accelerator, etc.). These accelerator tasks may be primarily performed by the DPE array 150 or the PL 140 of FIG. 1. However, the processor system 105 has its own accelerator 235, which may be considered an accelerator in an accelerator (e.g., IC 100).
[0033] In one embodiment, the processor system 105 does not include an accelerator 235, but may include multiple on-chip memories 230 or other types of components with memory that may be independently allocated to cache coherent domains or I / O domains.
[0034] Further, while the entire memory 230, 240 may be assigned to one domain, in other embodiments, the physical memory 230, 240 may be logically divided into separate memories that may be independently assigned to either the cache coherent domain or the I / O domain. For example, a first half of the memory addresses in the on-chip memory 230 may be assigned to the cache coherent domain (and use the cache coherent path 215 to communicate with the processor core 205), and a second half of the memory addresses in the memory 230 may be assigned to the I / O domain and use the I / O path 220 to communicate with the processor core 205. Thus, the assignment of memory to domains may be performed at a physical level, where the entire physical memory is assigned to one domain or the other, or at a logical level, where portions of the physical memory may be logically divided and assigned to different domains.
[0035] 3 is a block diagram of a processor system 105B having memory that can be allocated to different domains, according to one example. Processor system 105B is the same as processor system 105A of FIG. 2, except that system 105B includes a PL core 305 and a PL memory 310. For example, processor system 105B may be implemented in an IC that includes a PL, while processor system 105A of FIG. 2 may be implemented in an IC that does not have a PL.
[0036] PL core 305 (also called a programmable core) can be reconfigured to run different user applications or functions, while processor core 205 runs fixed functions. Furthermore, PL core 305 and processor core 205 may be part of the same cache coherent domain.
[0037] PL memory 310 may be memory within a PL logic block within processor system 105. PL memory 310 may be separate from PL 140 shown in Figure 1, which is external to processor system 105B. That is, an IC may include a PL (e.g., PL core 305 and PL memory 310) within processor system 105, as well as PL 140 elsewhere within the IC.
[0038] 3 assumes that PL memory 310 can be independently assigned to either the cache coherent domain (shared with cores 205, 305) or the I / O domain. Depending on that assignment, switch 225 routes data received from PL memory 310 to either the cache coherent path 215 or the I / O path 220 in interconnect 210. Furthermore, this assignment can be changed later if desired by a user, in which case switch 225 and interconnect 210 are reconfigured to switch PL memory 310 to use the other path to communicate with cores 205, 305.
[0039] Additionally, embodiments herein are not limited to the specific components (e.g., on-chip memory 230, accelerator 235, and PL memory 310) shown in Figures 2 and 3. In general, embodiments herein can support allocatable memory regardless of the particular type of component within the processor system that contains the memory.
[0040] 4 is a flow chart of a method 400 for allocating memory to either an I / O domain or a cache coherent domain, according to one example. At block 405, a user selects memory within the processor system to be allocated to the I / O domain and the cache coherent domain. In one embodiment, firmware within the processor system receives the user selection using an application programming interface (API) or other type of user accessible menu (e.g., a graphical user interface (GUI)) that allows the user to provide (or update) a corresponding allocation of allocatable memory within the IC.
[0041] At block 410, firmware in the processor system updates registers corresponding to the memory. In one embodiment, each allocatable memory (which may be a physical memory or a logical partition of that memory) is assigned its own register so that the memory can be independently assigned to a cache coherent domain or an I / O domain.
[0042] Using the components of FIG. 3 as an example, the value of the register of on-chip memory 230 may use one value (e.g., 0) to indicate a non-cache coherent mode in which distribution of address traffic to memory 230 is disabled (i.e., memory 230 is assigned to the I / O domain), and a second value (e.g., 1) to indicate a cache coherent model in which distribution of address traffic to memory 230 is enabled (i.e., memory 230 is assigned to the cache coherent domain).
[0043] The values in the PL memory 310 registers may use one value (e.g., 0) to indicate a non-cache coherent mode in which distribution of address traffic to memory 310 is disabled (i.e., memory 310 is assigned to the I / O domain), and a second value (e.g., 1) to indicate a cache coherent model in which distribution of address traffic to memory 310 is enabled (i.e., memory 310 is assigned to the cache coherent domain).
[0044] For accelerator 235, the register value may use one value (e.g., 0) to indicate a non-cache coherent mode in which distribution of address traffic to accelerator memory 240 is disabled (i.e., accelerator memory 240 is assigned to the I / O domain), and a second value (e.g., 1) to indicate a cache coherent model in which distribution of address traffic to accelerator memory 240 is enabled (i.e., accelerator memory 240 is assigned to the cache coherent domain).
[0045] In block 415, the firmware configures the switch using the values in the registers set in block 410. For example, if the registers for on-chip memory 230 in FIG. 2 indicate that it is in a cache coherent domain / mode, the firmware configures switch 225 to forward data received from memory 230 to cache coherent paths 215 in the interconnect when responding to a read request. Conversely, if the registers for on-chip memory 230 indicate that it is in an I / O domain / mode, the firmware configures switch 225 to forward data received from memory 230 to I / O paths 220 in the interconnect when responding to a read request. This process is reversed for write requests where data flows from the processor core to the memory.
[0046] In block 420, the firmware configures the interconnects such that data received from the processor or PL core is routed on the correct path. For example, if the allocatable memory is in a cache coherent domain, the firmware configures the interconnects such that data received from a core having a memory address corresponding to the allocatable memory is routed using a cache coherent path. By configuring the switches and interconnects, the firmware ensures that data received from the cores and the allocatable memory is routed on the corresponding paths, thereby following the appropriate protocols associated with those paths, such as strict read and write ordering in the case of a cache coherent domain, or the use of device drivers in the case of the I / O domain.
[0047] At block 425, the firmware notifies an OS in a processor core in the processor system of the allocation. If the processor system has multiple cores with multiple embedded OSs, the firmware can notify each OS. In one embodiment, an IC containing a processor system can be connected to a host computing system using, for example, a PCIe connection, which can have its own processor and OS. The host computing system does not need to be informed of the allocation made to the memory in the processor system. In other words, the method 400 can be completely transparent to any computing system that is external to the IC but communicates with the IC.
[0048] Method 400 can be repeated whenever the user changes the selection regarding allocatable memory. For example, the user may determine that memory originally allocated to the I / O domain may perform better if allocated to a cache coherent domain, which provides a more suitable environment for parallel processing. Conversely, memory originally allocated to a cache coherent domain may have a simpler software interface if allocated to an I / O domain, which has stronger ordering requirements. However, changing the allocation of allocatable memory may require the IC to be rebooted before it takes effect.
[0049] FIG. 5 illustrates a circuit for connecting both allocatable and non-allocable memory to a cache coherent path, according to one example. FIG. 5 illustrates receiving data from cache coherent path 215 in interconnect 210. This data may include addresses of memory allocated to a cache coherent domain. Address mask circuit 505 and demux selection circuit 510 perform a demux selection function to steer memory accesses to the appropriate memory. That is, demux selection circuit 510 outputs a selection signal to demultiplexer (DEMUX) 515, which routes the data to the appropriate memory.
[0050] In this example, the first output of DEMUX 515 is connected to the input of switch 225, and the remaining outputs are connected to non-allocatable memory in the cache coherent domain. As already shown in Figures 2 and 3, allocatable memory (e.g., on-chip memory 230, PL memory 310, and accelerator memory 240) is connected to switch 225. Thus, when transferring data designated for allocatable memory, DEMUX 515 first routes the data to switch 225. Thus, allocatable memory is part of one common logical destination that routes through switch 225. In contrast, non-allocatable memory does not need to be connected to switch 225 because it is permanently assigned to the cache coherent domain, and therefore always uses the cache coherent path in the interconnect to communicate with the processor or PL core. Unlike allocatable memory, non-allocatable memory is assigned to individual destinations in the cache coherent path.
[0051] Thus, Figure 5 illustrates circuitry that may be placed between the cache coherent paths in the interconnect and a switch that may be used to support non-allocatable memory in the cache coherent domain. If the processor system does not have non-allocatable memory in this domain, the circuitry of Figure 5 may be omitted and the output of the cache coherent paths may be connected directly to switch 225.
[0052] FIG. 6 illustrates a circuit for connecting both allocatable and non-allocatable memory to an I / O path, according to one example.
[0053] As shown, switch 225 includes a first input used to receive data from I / O paths 220 in interconnect 210 of Figures 2 and 3, and a second input used to receive cache coherent data from DEMUX 515 of Figure 5. That is, the two inputs of switch 225 merge data transmitted on the I / O paths and cache coherent paths for allocatable memory, regardless of which particular domain it is currently assigned to.
[0054] In addition, switch 225 also supports routing of data to non-allocatable memory in the I / O domain. That is, switch 225 can receive data from the I / O paths that are destined for both allocatable and non-allocatable memory assigned to the I / O domain. Thus, data received from the I / O paths can be destined for either allocatable or non-allocatable memory. However, data received from DEMUX 515 in FIG. 5 is destined for only allocatable memory because DEMUX 515 routes data destined for non-allocatable memory in the cache coherent domain to a separate output. Thus, in this embodiment, cache coherent data destined for non-allocatable memory does not reach switch 225. However, in an alternative embodiment, the configurations shown in FIGS. 5 and 6 can be reversed, with DEMUX 515 forwarding data for allocatable memory in the I / O domain to switch 225 while routing data destined for non-allocatable memory in the I / O domain to a separate output. In that case, while cache coherent data for both allocatable and non-allocatable memory is routed through switch 225 , I / O data destined for non-allocatable memory does not reach switch 225 .
[0055] Regardless of whether the data is cache coherent or MMIO, switch 225 can evaluate the address data and determine its destination, i.e., route cache coherent data to one of the allocatable memories, route MMIO data to one of the allocatable memories, or route MMIO data to one of the non-allocatable memories.
[0056] For simplicity, FIG. 6 shows data flowing from the cores to the allocatable and non-allocatable memories. However, the process described above can be reversed when data flows from the allocatable and non-allocatable memories through the interconnect to the cores. For example, when an allocatable memory sends data to switch 225, switch 225 determines whether the allocatable memory is part of a cache coherent or I / O domain. If it is a cache coherent domain, switch 225 can use a first output to route the data to a cache coherent path of the interconnect. If it is an I / O domain, switch 225 can use a second output to route the data to an I / O path of the interconnect. In contrast, in this example, switch 225 is only coupled to non-allocatable memories in the I / O domain, so switch 225 knows that any data received from the non-allocatable memories should be output to an I / O path. Non-allocatable memories assigned to a cache coherent domain can have a direct connection to a cache coherent path of the interconnect and can therefore bypass switch 225 entirely.
[0057] In the foregoing, reference is made to the embodiments presented in this disclosure. However, the scope of the disclosure is not limited to the specific described embodiments. Instead, any combination of the described features and elements, whether related to different embodiments or not, is contemplated for implementing and practicing the contemplated embodiments. Furthermore, the embodiments disclosed herein may achieve other possible solutions or advantages over the prior art, but whether or not a particular advantage is achieved by a given embodiment does not limit the scope of the disclosure. Thus, the above-mentioned aspects, features, embodiments, and advantages are merely exemplary and are not considered elements or limitations of the appended claims unless expressly recited in the claims.
[0058] As will be appreciated by one of ordinary skill in the art, the embodiments disclosed herein may be embodied as a system, method, or computer program product. Accordingly, aspects may take the form of an entirely hardware embodiment, an entirely software embodiment (including firmware, resident software, microcode, etc.), or an embodiment combining software and hardware aspects, all of which may be referred to generally herein as a "circuit," "module," or "system." Furthermore, aspects may take the form of a computer program product embodied in one or more computer-readable medium(s) having computer-readable program code embodied therein.
[0059] Any combination of one or more computer readable media may be utilized. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples (non-exhaustive list) of computer readable storage media include an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this specification, a computer readable storage medium is any tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device.
[0060] A computer-readable signal medium may include a propagated data signal in which computer-readable program code is embodied, for example, in baseband or as part of a carrier wave. Such a propagated signal may take any of a variety of forms, including, but not limited to, electromagnetic, optical, or any suitable combination thereof. A computer-readable signal medium is not a computer-readable storage medium, but may be any computer-readable medium that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
[0061] The program code embodied on the computer readable medium may be transmitted using any suitable medium, including but not limited to wireless, wireline, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
[0062] Computer program code for carrying out operations of aspects of the present disclosure may be written in any combination of one or more programming languages, including, for example, object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as the "C" programming language or similar programming languages. The program code may execute completely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer, partially on a remote computer, or completely on a remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet Service Provider).
[0063] Aspects of the present disclosure are described below with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments presented in the present disclosure. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general purpose computer, a special purpose computer, or other programmable data processing apparatus such that the instructions, executed via a processor of the computer or other programmable data processing apparatus, cause a machine to create means for implementing the functions / acts specified in the blocks of the flowchart and / or block diagrams.
[0064] These computer program instructions may also be stored on a computer-readable storage medium, where the instructions stored on the computer-readable storage medium can direct a computer, programmable data processing apparatus, and / or other device to function in a particular manner to produce an article of manufacture including instructions that implement aspects of the functions / acts specified in the flowchart and / or block diagram blocks.
[0065] Computer program instructions may also be loaded into a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be executed on the computer, other programmable apparatus, or other device to generate a computer-implemented process, such that the instructions executing on the computer or other programmable apparatus provide a process for implementing the functions / acts specified in the flowchart and / or block diagram blocks.
[0066] The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowcharts or block diagrams may represent a module, segment, or portion of instructions, including one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions described in the blocks may occur out of the order described in the figures. For example, two blocks shown in succession may in fact be executed substantially simultaneously, or the blocks may be executed in the reverse order, depending on the functionality involved. It should also be noted that each block of the block diagrams and / or flowchart illustrations, as well as combinations of blocks in the block diagrams and / or flowchart illustrations, may be implemented by a dedicated hardware-based system that performs the specified functions or acts, or executes a combination of dedicated hardware and computer instructions.
[0067] Some examples of the disclosed technology can be characterized in the following non-limiting examples.
[0068] Example 1. A processor system in an integrated circuit (IC), comprising: an interconnect having a cache coherent path and an input / output (I / O) path; a processor core connected to an interconnect; a switch connected to the cache coherent path and the I / O path; and an allocatable memory configured to be assigned to one of a cache coherent domain shared with the processor cores or an I / O domain that is non-cache coherent with the processor cores, wherein a switch routes data between the allocatable memory and the cache coherent paths and the I / O paths in accordance with the assignment to the cache coherent domain and the I / O domain.
[0069] Example 2. The processor system of example 1, wherein the allocatable memory is configurable to be switched between being allocated to a cache coherent domain and being allocated to an I / O domain.
[0070] Example 3. 2. The processor system of claim 1, further comprising a non-allocatable memory that is statically allocated to one of a cache coherent domain or an I / O domain.
[0071] Example 4. a first number of non-allocatable memories are allocated to a cache coherent domain and bypass the switch when communicating with the interconnect and the processor cores, and a second number of non-allocatable memories are allocated to an I / O domain and use the switch to communicate with the interconnect and the processor cores; or A processor system as described in Example 3, wherein a first number of non-allocatable memories are assigned to an I / O domain and bypass the switch when communicating with the interconnect and the processor cores, and a second number of non-allocatable memories are assigned to a cache coherent domain and use the switch to communicate with the interconnect and the processor cores.
[0072] Example 5. 2. The processor system of claim 1, further comprising an accelerator having (i) an offload accelerator circuit configured to execute tasks assigned by the processor core, and (ii) one of the allocatable memories.
[0073] Example 6. The processor system of embodiment 1 further comprises a programmable logic (PL) core allocated to the cache coherent domain along with the processor core, and one of the allocatable memories is the PL memory.
[0074] Example 7. The processor system of example 1, wherein the switch is configured to forward data received from a first allocatable memory among the allocatable memories assigned to the cache coherent domain to the cache coherent path and forward data received from a second allocatable memory among the allocatable memories assigned to the I / O domain to the I / O path.
[0075] Example 8. An integrated circuit (IC), comprising: 1. A processor system comprising: an interconnect having a cache coherent path and an input / output (I / O) path; a processor core connected to an interconnect; a switch connected to the cache coherent path and the I / O path; an allocatable memory configured to be assigned to one of a cache coherent domain or an I / O domain; a network-on-chip (NoC) coupled to the processor system; An integrated circuit (IC) comprising a processor system having a data processing engine array coupled to the NoC.
[0076] Example 9. The IC of example 8, wherein the allocatable memory is configurable to be switched between being assigned to the cache coherent domain and being assigned to the I / O domain, and the processor cores are statically assigned to the cache coherent domain.
[0077] Example 10. A processor system comprising: 9. The IC of embodiment 8, further comprising a non-allocatable memory that is statically allocated to one of the cache coherent domain or the I / O domain.
[0078] Example 11. a first number of non-allocatable memories are allocated to a cache coherent domain and bypass the switch when communicating with the interconnect and the processor cores, and a second number of non-allocatable memories are allocated to an I / O domain and use the switch to communicate with the interconnect and the processor cores; or An IC as described in Example 10, wherein a first number of non-allocatable memories are assigned to an I / O domain and bypass the switch when communicating with the interconnect and processor cores, and a second number of non-allocatable memories are assigned to a cache coherent domain and use the switch to communicate with the interconnect and processor cores.
[0079] Example 12. A processor system comprising: The IC of Example 8 further comprising an accelerator having (i) an offload accelerator circuit configured to execute tasks assigned by the processor core, and (ii) one of the allocatable memories.
[0080] Example 13. A processor system comprising: An IC as described in Example 8, further comprising a programmable logic (PL) core assigned to a cache coherent domain along with the processor core, wherein one of the allocatable memories is a PL memory.
[0081] Example 14. The IC of example 8, wherein the switch is configured to forward data received from a first allocatable memory of the allocatable memories assigned to the cache coherent domain to the cache coherent path and forward data received from a second allocatable memory of the allocatable memories assigned to the I / O domain to the I / O path.
[0082] Example 15. A method comprising: allocating memory within the processor system to one of a cache coherent domain or an I / O domain; configuring a switch based on the assignment, the switch being communicatively coupled between the memory and the interconnect; configuring an interconnect based on the allocation, the interconnect being communicatively coupled between the switch and the processor cores within the cache coherent domain; notifying an operating system in the processor core of the allocation.
[0083] While the above is directed to particular examples, other and further examples may be devised without departing from the basic scope thereof, which is determined by the following claims.
Claims
1. 1. A processor system in an integrated circuit (IC), comprising: an interconnect having a cache coherent path and an input / output (I / O) path; a processor core connected to the interconnect; a switch connected to the cache coherent path and the I / O path; and an allocatable memory configured to be assigned to one of a cache coherent domain shared with the processor cores or an I / O domain that is non-cache coherent with the processor cores, wherein the switch routes data between the allocatable memory and the cache coherent paths and the I / O paths in accordance with the assignment to the cache coherent domain and the I / O domain.
2. 2. The processor system of claim 1, wherein the allocatable memory is configurable to be switched between being assigned to the cache coherent domain and being assigned to the I / O domain.
3. 2. The processor system of claim 1, further comprising: non-allocable memory that is statically allocated to one of the cache coherent domain or the I / O domain.
4. a first number of the non-allocatable memories are assigned to the cache coherent domain and bypass the switch when communicating with the interconnect and the processor cores, and a second number of the non-allocatable memories are assigned to the I / O domain and use the switch to communicate with the interconnect and the processor cores; or 4. The processor system of claim 3, wherein the first number of the non-allocatable memories are assigned to the I / O domain and bypass the switch when communicating with the interconnect and the processor cores, and the second number of the non-allocatable memories are assigned to the cache coherent domain and use the switch to communicate with the interconnect and the processor cores.
5. 2. The processor system of claim 1, further comprising an accelerator having: (i) an offload accelerator circuit configured to execute tasks assigned by the processor core; and (ii) one of the allocatable memories.
6. 2. The processor system of claim 1, further comprising a programmable logic (PL) core allocated to the cache coherent domain along with the processor core, wherein one of the allocatable memories is a PL memory.
7. 2. The processor system of claim 1, wherein the switch is configured to forward data received from a first allocatable memory of the allocatable memories assigned to the cache coherent domain to the cache coherent path and forward data received from a second allocatable memory of the allocatable memories assigned to the I / O domain to the I / O path.
8. 1. An integrated circuit (IC), comprising:
1. A processor system comprising: an interconnect having a cache coherent path and an input / output (I / O) path; a processor core connected to the interconnect; a switch connected to the cache coherent path and the I / O path; an allocatable memory configured to be assigned to one of a cache coherent domain or an I / O domain; a network-on-chip (NoC) coupled to the processor system; and an array of data processing engines coupled to the NoC.
9. 9. The IC of claim 8, wherein the allocatable memory is configurable to be switched between being assigned to the cache coherent domain and being assigned to the I / O domain, and the processor cores are statically assigned to the cache coherent domain.
10. The processor system includes: The IC of claim 8 , further comprising: non-allocable memory that is statically allocated to one of the cache coherent domain or the I / O domain.
11. a first number of the non-allocatable memories are assigned to the cache coherent domain and bypass the switch when communicating with the interconnect and the processor cores, and a second number of the non-allocatable memories are assigned to the I / O domain and use the switch to communicate with the interconnect and the processor cores; or 11. The IC of claim 10, wherein the first number of the non-allocatable memories are assigned to the I / O domain and bypass the switch when communicating with the interconnect and the processor cores, and the second number of the non-allocatable memories are assigned to the cache coherent domain and use the switch to communicate with the interconnect and the processor cores.
12. The processor system includes:
10. The IC of claim 8, further comprising: an accelerator having: (i) an offload accelerator circuit configured to execute tasks assigned by the processor core; and (ii) one of the allocatable memories.
13. The processor system includes:
9. The IC of claim 8, further comprising a programmable logic (PL) core allocated to the cache coherent domain along with the processor core, one of the allocatable memories being a PL memory.
14. 9. The IC of claim 8, wherein the switch is configured to forward data received from a first allocatable memory of the allocatable memories assigned to the cache coherent domain to the cache coherent path and forward data received from a second allocatable memory of the allocatable memories assigned to the I / O domain to the I / O path.
15. 1. A method comprising: allocating memory within the processor system to one of a cache coherent domain or an I / O domain; configuring a switch based on the assignment, the switch being communicatively coupled between the memory and an interconnect; configuring the interconnect based on the allocation, the interconnect being communicatively coupled between the switch and processor cores within the cache coherent domain; and notifying an operating system in the processor core of the allocation.
Citation Information
Patent Citations
Information processing device and information processing program
JP5531476B2
Domain assist processor-peer for coherent acceleration
US10698842B1
Machine learning model updates to ML accelerators
US20200341941A1
Data locality enhancement for graphics processing units
US20210149680A1
Shared buffered memory routing
US20210240623A1
