System and method for near-memory computing with uncacheable memory units
The system addresses NMC inefficiencies by using a memory management unit to manage cacheable and uncacheable memory units and dynamically adjust memory sizes, enabling efficient PIM processing and resource utilization, thus improving data movement and energy efficiency in NMC architectures.
Patent Information
- Application Number
- PCT/US2023/016479
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-28
- Publication Date
- 2024-10-03
AI Technical Summary
Current near-memory computing (NMC) architectures face challenges such as data movement inefficiencies and resource wastage due to the lack of a unified standard for instructions, leading to difficulties in processing applications within memory and managing memory resources effectively.
The system employs a memory management unit to differentiate between cacheable and uncacheable memory units using a most-significant bit indicator for cache operations and dynamically adjusts the size of uncacheable memory units based on memory utilization, enabling efficient processing-in-memory (PIM) and maximizing resource utilization by separating CPU and NMC kernel operations.
This approach reduces data movement and energy consumption, enhances bandwidth utilization, and ensures maximum resource utilization by allowing NMC to handle different application types efficiently, overcoming previous limitations in NMC architectures.
Smart Images

Figure US2023016479_03102024_PF_FP_ABST
Abstract
Description
SYSTEM AND METHOD FOR NEAR-MEMORY COMPUTING WITH UNCACHEABLE MEMORY UNITS BACKGROUND
[0001] Embodiments of the present disclosure relate to a system and method of data processing.
[0002] Smart phones, wearable devices, and smart surveillance are hotspots in today’s market. Due to the rapid increase in the amount of data generated by terminal devices, and in order to achieve rapid response and parallel big data processing in the cloud, manufacturers are turning their attention to near-memory computing (NMC). To this end, terminal devices may be embedded with NMC units, which process data from a memory system without bus interconnect transactions. SUMMARY
[0003] According to one aspect of the present disclosure, a system-on-chip (SoC) is provided. The SoC may include a first NMC core with a first NMC cache. The SoC may include a memory system comprising a first set of cacheable memory units and a second set of uncacheable memory units. In some embodiments, a first uncacheable memory unit of the second set of uncacheable memory units may be coupled to the first NMC cache of the first NMC core.
[0004] According to a further aspect of the present disclosure, another SoC is provided. The SoC may include an NMC core. The SoC may include a memory management unit configured to maintain memory information associated with the memory unit of the NMC core. The SoC may include a memory monitoring unit configured to obtain the memory information associated with the memory unit NMC core from the memory management unit. The SoC may include a memory allocation unit configured to identify a target memory size of the NMC core based on the memory information. The SoC may include a memory hot-plug unit configured to dynamically adjust an initial size of the memory unit of the NMC core to the target memory size.
[0005] According to yet another aspect of the present disclosure, an apparatus for NMC is provided. The apparatus may include an SoC. The SoC may include a first NMC core with a first NMC cache. The SoC may include a memory system comprising a first set of cacheable memory units and a second set of uncacheable memory units. In some embodiments, a first uncacheable memory unit of the second set of uncacheable memory units may be coupled to the first NMC cache of the first NMC core. Atty. Dkt. No. 10073-01-0086-PCT
[0006] These illustrative embodiments are mentioned not to limit or define the present disclosure, but to provide examples to aid understanding thereof. Additional embodiments are discussed in the Detailed Description, and further description is provided there. BRIEF DESCRIPTION OF THE DRAWINGS
[0007] The accompanying drawings, which are incorporated herein and form a part of the specification, illustrate embodiments of the present disclosure and, together with the description, further serve to explain the principles of the present disclosure and to enable a person skilled in the pertinent art to make and use the present disclosure.
[0008] FIG. 1 illustrates a block diagram of a first exemplary system-on-chip (SoC), according to certain embodiments of the present disclosure.
[0009] FIG. 2 illustrates an exemplary mapping of memory addresses for cacheable and uncacheable memory units by a memory management unit (MMU), according to certain embodiments of the present disclosure.
[0010] FIG. 3 illustrates a block diagram of a second exemplary SoC, according to certain embodiments of the present disclosure.
[0011] FIG. 4 illustrates a flowchart of a first exemplary method for NMC, according to certain embodiments of the present disclosure.
[0012] FIG.5 illustrates a flowchart of a second exemplary method for NMC, according to certain embodiments of the present disclosure.
[0013] FIG. 6 illustrates a wireless network, according to certain embodiments of the present disclosure.
[0014] FIG. 7 illustrates a block diagram of a node, according to certain embodiments of the present disclosure. DETAILED DESCRIPTION
[0015] Although specific configurations and arrangements are discussed, it should be understood that this is done for illustrative purposes only. A person skilled in the pertinent art will recognize that other configurations and arrangements can be used without departing from the spirit and scope of the present disclosure. It will be apparent to a person skilled in the pertinent art that the present disclosure can also be employed in a variety of other applications. Atty. Dkt. No. 10073-01-0086-PCT
[0016] It is noted that references in the specification to “one embodiment,” “an embodiment,” “an example embodiment,” “some embodiments,” “certain embodiments,” etc., indicate that one or more embodiments described may include a particular feature, structure, or characteristic, but every embodiment may not necessarily include the particular feature, structure, or characteristic. Moreover, such phrases do not necessarily refer to the same embodiment. Further, when a particular feature, structure, or characteristic is described in connection with an embodiment, it would be within the knowledge of a person skilled in the pertinent art to effect such feature, structure, or characteristic in connection with other embodiments whether or not explicitly described.
[0017] In general, terminology may be understood at least in part from usage in context. For example, the term “one or more” as used herein, depending at least in part upon context, may be used to describe any feature, structure, or characteristic in a singular sense or may be used to describe combinations of features, structures or characteristics in a plural sense. Similarly, terms, such as “a,” “an,” or “the,” again, may be understood to convey a singular usage or to convey a plural usage, depending at least in part upon context. In addition, the terms “based on,” “based upon,” and terms with similar meaning may be understood as not necessarily intended to convey an exclusive set of factors and may, instead, allow for existence of additional factors not necessarily expressly described, again, depending at least in part on context.
[0018] Various aspects of the present disclosure will now be described with reference to various apparatus and methods. These apparatus and methods will be described in the following detailed description and illustrated in the accompanying drawings by various blocks, modules, units, components, circuits, steps, operations, processes, algorithms, etc. (collectively referred to as “elements”). These elements may be implemented using electronic hardware, firmware, computer software, or any combination thereof. Whether such elements are implemented as hardware, firmware, or software depends upon the particular application and design constraints imposed on the overall system.
[0019] In addition, various aspects of the exemplary power management technique(s) of the present disclosure may be described in connection with an SoC, one or more subsystems of the SoC, one or more pipelines of the subsystem, or a set of functional blocks associated with the pipeline. It is understood that the exemplary power management technique described below may be applied at the functional block level, pipeline level, or subsystem level to other types of circuits, computing devices and / or electronic devices, other than an SoC, without departing from the scope Atty. Dkt. No. 10073-01-0086-PCTof the present disclosure.
[0020] A SoC is an integrated circuit that integrates subsystems, each having a different function, in a computing system or other electronic device. The subsystems integrated by an SoC may include, without limitation, one or more of the following: central processing units (CPUs), graphical processing units (GPUs), microcontrollers, microprocessors, multiprocessors, digital signal processor (DSP) cores, other types of cores, a memory unit, read-only memory (ROM), random-access memory (RAM), clock signal generators, input / output (I / O) interfaces, analog interfaces, voltage regulators and power management circuits, an advanced peripheral unit(s), wireless communication unit(s) (e.g., Wi-Fi module, cellular module, 5G new radio (NR) module, Bluetooth® module, etc.), or coprocessors, just to name a few.
[0021] The SoC of a mobile device may include a memory system made up of dynamic random access memory (DRAM) units, the data of which is moved to the CPU for processing. Increasingly, DRAM is becoming a system bottleneck in terms of performance and energy consumption. This is because the transfer of data from the DRAM to the CPU is costly due to the latency and power consumption needed to transfer data through pin-limited memory channels. In addition, the data moved to the CPU is usually not reused, so it cannot benefit from the in-CPU cache, which makes it difficult to share the overhead of data movement.
[0022] On the other hand, NMC or in-memory computing architectures may reduce unnecessary data movement between memory and CPU. The NMC architecture can integrate computing logic adjacent to the DRAM units of the memory system. Consequently, the NMC architecture can effectively release valuable bandwidth on bandwidth-constrained memory channels while reducing system energy consumption. However, when calculation logic is added to a DRAM unit, various problems arise. For instance, the NMC / memory layer ecosystem is not sound, and some instructions may not have a unified standard. Thus, it may be difficult for the upper-level compiler to compile the application into an instruction stream that can be executed using processing-in-memory (PIM). If most applications cannot be processed in memory, PIM computing and internal storage resources may be wasted.
[0023] Thus, there exists an NMC architecture that provides a unified standard for instructions such that NMC may be achieved for different application types.
[0024] To overcome these and other challenges, the present disclosure enables the memory system to support the PIM kernel for NMC and the CPU at the same time. When advanced programs do not support NMC, the data stored in cacheable memory units may be processed by Atty. Dkt. No. 10073-01-0086-PCTthe CPU. When the advanced program supports NMC, the data stored in uncacheable memory units may be used by the NMC kernel to achieve maximum utilization of resources.
[0025] To that end, a memory address that is not used in the physical address may be used to mask a cache operation. Here, the most-significant bit (MSB) of the address may be used as an uncacheable indicator that indicates whether to perform the cache operation or not. For example, if the MSB bit is 1, although cache miss cycle, cache does not operate the miss cycle. On the other hand, if the MSB bit is 0, the cache performs the normal operation including the cache miss cycle. The present disclosure also provides a mechanism to adjust the size of an uncacheable memory unit in the memory system by inputting memory information, e.g., such as memory utilization, into a memory allocation model. Based on an output of the memory allocation model, the size of an uncacheable memory unit may be increased or decreased, accordingly. Additional details of the exemplary SoC and its NMC procedures are provided below in connection with FIGs. 1-7.
[0026] FIG. 1 illustrates a block diagram of a system 100 having a first exemplary SoC 102, according to some embodiments of the present disclosure. FIG. 2 illustrates an exemplary mapping 200 of memory addresses for cacheable and uncacheable memory units by an MMU of the exemplary SoC 102 of FIG. 1, according to certain embodiments of the present disclosure. FIGs. 1 and 2 will be described together.
[0027] Referring to FIG. 1, system 100 may be applied or integrated into various systems and apparatuses capable of high-speed data processing, such as computers and wireless communication devices. For example, system 100 may be part of a mobile phone, a desktop computer, a laptop computer, a tablet, a vehicle computer, a gaming console, a printer, a positioning device, a wearable electronic device, a smart sensor, a virtual reality (VR) device, an augmented reality (AR) device, or any other suitable electronic devices having high-speed data processing capability. Using a wireless communication device as an example, SoC 102 may serve as an application processor (AP) and / or a baseband processor (BP) that imports data and instructions from an external or local random access memory (RAM), executing instructions to perform various mathematical and logical calculations on the data, and exporting the calculation results for further processing and transmission over cellular networks.
[0028] Still referring to FIG.1, SoC 102 may include a plurality of functional units. These functional units may include one or more of, e.g., a CPU 104, an MMU 106, an interconnect 108, a first NMC core 110a, a second NMC core 110b, a memory system 112 that includes a first cached memory unit 114a, a second cached memory unit 114b, a first uncached memory unit 116a, and a Atty. Dkt. No. 10073-01-0086-PCTsecond uncached memory unit 116b. Each of the functional units of SoC 102 may be coupled by an interconnect 108.
[0029] DRAM chips may be used to implement first cached memory unit 114a and second cached memory unit 114b. On the other hand, dual-port static random access memory (SRAM) chips may be used to implement first uncached memory unit 116a and second uncached memory unit 116b. The DRAM chips and SRAM chips may be managed by the MMU in most cases. As shown in FIG. 1, the dual-port SRAM chip of first uncached memory unit 116a and the dual-port SRAM chip of second uncached memory unit 116b connected to first NMC core 110a and second NMC core 110b, respectively. As shown in FIG. 2, each of the NMC cores has an NMC cache memory unit directly coupled to its corresponding uncached memory. Data may be read from the SRAM chips through direct cache mapping via first NMC cache memory 204a and / or second NMC cache memory 204b. Once data is read from an SRAM chip, MMU 106 may remove the associated memory segment using page migration to migrate any used pages from the SRAM chip.
[0030] Still to FIGs. 1 and 2, MMU 106 may maintain a virtual memory map 202 that indicates the start page for each of the memory units, as well as cacheable and uncacheable indicators. In some embodiments, MMU 106 may indicate an uncacheable memory unit by writing to register starting points and end points associated with those units. In some other embodiments, an uncacheable memory unit may be indicated in the uncacheable pointer registers and compare these with the addresses from CPU 104 using a comparator. Here, MMU 106 may save part of the physical address in the register. This embodiment, as compared to the one specifying a start point and an end point to designate uncacheable units, may reduce the number of registers, but the resolution of the size of non-cacheable area is limited. This may be because the number of uncacheable designations depends on the number of registers, as in the embodiment specifying a start point and an end point.
[0031] FIG. 3 illustrates a block diagram of a system 300 having a second exemplary SoC 302, according to some embodiments of the present disclosure. Referring to FIG.3, SoC 302 may include a plurality of functional units. These functional units may include one or more of, e.g., a CPU 304, an MMU 306, an interconnect 308, a first NMC core 310a, a second NMC core 310b, a memory system 312 that includes a first cached memory unit 314a, a second cached memory unit 314b, a first uncached memory unit 316a, a second uncached memory unit 316b, memory monitoring unit 318, memory allocation unit 320, memory hot-plug unit 322, and user-interface unit 324. Each of the functional units of SoC 302 may be coupled by an interconnect 308. Atty. Dkt. No. 10073-01-0086-PCT
[0032] Referring to FIG. 3, memory monitoring unit 318 may monitor the memory information, e.g., such as memory utilization, swap-partition utilization, etc., associated with first NMC core 310a and second NMC core 310b. To that end, memory monitoring unit 318 may run a process in domain O (e.g., the domain in which MMU 306 is located) to obtain the memory information of domain U (e.g., the domain in which first NMC core 310a and / or second NMC core 310b are located). The memory of an NMC core includes used memory and free memory. Memory utilization is the ratio of used memory to NMC memory.
[0033] Still referring to FIG. 3, memory allocation unit 320 may determine a target size of an NMC core based on the memory information. For example, the memory utilization of an NMC core may be input into an allocation model (e.g., algorithm, program, machine-learning (ML) model, artificial intelligence (AI) model, etc.), and the output of that model may include a target size for an NMC. The memory allocation for an NMC core may increase or decrease, depending on the memory utilization. For instance, when the memory utilization is high, the target size may indicate an increase in memory size; on the other hand, when the memory utilization is low, the target size may indicate a decrease in memory size.
[0034] Memory hot-plug unit 322 may adjust the memory size for an NMC based on the target memory size identified by memory allocation unit 320. For instance, memory hot-plug unit 322 may include a driver that adjusts the NMC memory size to the target value indicated by memory allocation unit 320.
[0035] Additionally and / or alternatively, a user may input a desired target size for one or more NMCs by interacting with a user-interface unit 324. When user-interface unit 324 receives a user input related to an NMC memory target size, the memory hot-swappable driver of memory hot-plug unit 322 may be called to adjust the memory size of the NMC.
[0036] FIG. 4 illustrates a flowchart of a first method 400 of implementing an NMC technique, according to embodiments of the disclosure. Method 400 may be performed by an apparatus, e.g., system 100, 300, SoC 102, 302, MMU 106, 306 first NMC core 110a, 310a, first cached memory unit 114a, 314a, second cached memory unit 114b, 314b, memory system 112, 312, first NMC cache memory 204a, second NMC cache memory 204b, virtual memory map 202, etc. Method 400 may include operations 402-422 as described below. It is to be appreciated that some of the steps may be optional, and some of the steps may be performed simultaneously, or in a different order than shown in FIG. 4.
[0037] Referring to FIG. 4, at 402, the apparatus may perform SoC initialization. For Atty. Dkt. No. 10073-01-0086-PCTexample, referring to FIG.1, system 100 may initialize SoC 102 for NMC and CPU data processing of one or more applications. At 404, the apparatus may initialize the MMU and memory system. For example, referring to FIG.1, system 100 and / or SoC 102 may initialize MMU 106 and memory system 112. At 406, the apparatus may perform MMU and / or memory system operations. For example, referring to FIG. 1, MMU 106 may identify the memory section and / or start page for an instruction set associated with an application. The memory section and / or start page may be associated with one or more of the cached memory units and / or the uncached memory units. At 408, the apparatus may determine whether there are any NMC tasks (e.g., NMC instruction processing) to perform. For example, referring to FIG. 1, MMU 106 may determine whether an instruction set is located in first uncached memory unit 116a and / or second uncached memory unit 116b. When there is an instruction set located in one of the uncached memory units, MMU 106 may determine there is at least one NMC job to perform, and the operations may move to 412; otherwise, when there are no NMC jobs to perform, the operations may end at 410.
[0038] Still referring to FIG.4, at 412, the apparatus may perform NMC initialization. For example, referring to FIG. 1, system 100, SoC 102, and / or MMU 106 may initialize one or more of first NMC core 110a or second NMC core 110b. At 414, the apparatus may perform NMC memory initialization. For example, referring to FIG.2, first NMC cache memory 204a or second NMC cache memory 204b. At 416, the apparatus may perform memory system partitioning. For example, referring to FIGs. 1 and 2, MMU 106 may partition memory system into cached and uncached memory units using an identifier in the virtual memory map 202, and / or allocate memory resources to first NMC cache memory 204a and / or second NMC cache memory 204b. At 418, the apparatus may determine whether the NMC job is complete. When the NMC job is complete, the operation may return to 408; otherwise, the operations may move to 420, where the NMC memory is released. For example, referring to FIGs.1 and 2, MMU 106 may release the memory resources allocated to first NMC cache memory 204a and / or second NMC cache memory 204b. At 422, the apparatus may merge the memory resources back to memory system 112.
[0039] FIG.5 illustrates a flowchart of a second method 500 of implementing an exemplary NMC technique, according to embodiments of the disclosure. Method 400 may be performed by an apparatus, e.g., system 100, 300, SoC 102, 302, MMU 106, 306 first NMC core 110a, 310a, first cached memory unit 114a, 314a, second cached memory unit 114b, 314b, memory system 112, 312, first NMC cache memory 204a, second NMC cache memory 204b, virtual memory map 202, memory monitoring unit 318, memory allocation unit 320, memory hot-plug unit 322, user- Atty. Dkt. No. 10073-01-0086-PCTinterface unit 324, etc. Method 500 may include operations 502-512 as described below. It is to be appreciated that some of the steps may be optional, and some of the steps may be performed simultaneously, or in a different order than shown in FIG. 5.
[0040] Referring to FIG. 5, at 502, the apparatus may determine whether the available physical memory space is less than the NMC memory address space. For example, referring to FIGs.2 and 3, memory monitoring unit 318 may determine whether the available physical memory space of first NMC cache memory 204a is less than the NMC memory address space indicated in the virtual memory map 202 of MMU 306. When the available memory space is less than the NMC address space, the operations may move to 504; otherwise, the operations may move to 506.
[0041] At 504, the apparatus may extend physical memory address space and set up a memory block flag to track boot memory at runtime. The apparatus may also mark all boot memory ranges with the flag while processing fast data transfer and update free empty page table entry (PTE) table while validating PTE level clears. The apparatus may further check for non- clear entries and update memory map.
[0042] At 506, the apparatus may perform NMC memory initialization. For example, referring to FIGs. 2 and 3, MMU 306 may initialize first NMC cache memory 204a and / or second NMC cache memory 204b.
[0043] At 508, the apparatus may perform a memory operation 508. For example, referring to FIG. 3, first NMC core 310a may perform direct cache mapping of data from first uncacheable memory unit 316a into first NMC cache memory 204a. First NMC core 310a may perform NMC of the data obtained via direct cache mapping.
[0044] At 510, the apparatus may determine whether the NMC job is completed. If ‘yes’, the apparatus may merge the memory resources, at 512. For example, referring to FIG. 3, the memory resource allocated to first NMC cache memory 204a for the NMC job may be reallocated back to memory system 312.
[0045] Otherwise, if ‘no’ at 510, the operations may move to 514. At 514, the apparatus may set up the page tables for the MMU using a standalone board support package (BSP). DDR may be set for inner (L1) and outer (L2) cacheable and shared. The shared bit (together with the SMP bit in the auxiliary control register) may cause hardware coherency to be on, which causes the L1 caches of both CPUs and the L2 cache to be coherent. The apparatus may further update in the source file translation table.
[0046] The hardware and software data processing technology disclosed herein, such as Atty. Dkt. No. 10073-01-0086-PCTsystem 100, 300 in FIGs. 1 and 3 and methods 400, 500 in FIGs. 4 and 5, may be implemented by any suitable computing device such as, e.g., a personal computer (PC), a laptop computer, a digital signal processor, a tablet device, a digital camera, a merchant terminal, a vehicle, or any suitable nodes in a wireless network, just to name a few. For example, FIG.6 illustrates a wireless network 600, in which certain aspects of the present disclosure may be implemented, according to some embodiments of the present disclosure.
[0047] As shown in FIG.6, wireless network 600 may include a network of nodes, such as a user equipment (UE) 602, an access node 604, and a core network element 606. User equipment 602 may be any terminal device, such as a mobile phone, a desktop computer, a laptop computer, a tablet, a vehicle computer, a gaming console, a printer, a positioning device, a wearable electronic device, a smart sensor, or any other device capable of receiving, processing, and transmitting information, such as any member of a vehicle to everything (V2X) network, a cluster network, a smart grid node, or an Internet-of-Things (IoT) node. It is understood that user equipment 602 is illustrated as a mobile phone simply by way of illustration and not by way of limitation.
[0048] Access node 604 may be a device that communicates with user equipment 602, such as a wireless access point, a base station (BS), a Node B, an enhanced Node B (eNodeB or eNB), a next-generation NodeB (gNodeB or gNB), a cluster master node, or the like. Access node 604 may have a wired connection to user equipment 602, a wireless connection to user equipment 602, or any combination thereof. Access node 604 may be connected to user equipment 602 by multiple connections, and user equipment 602 may be connected to other access nodes in addition to access node 604. Access node 604 may also be connected to other UEs. It is understood that access node 604 is illustrated by a radio tower by way of illustration and not by way of limitation.
[0049] Core network element 606 may serve access node 604 and user equipment 602 to provide core network services. Examples of core network element 606 may include a home subscriber server (HSS), a mobility management entity (MME), a serving gateway (SGW), or a packet data network gateway (PGW). These are examples of core network elements of an evolved packet core (EPC) system, which is a core network for the Long-Term Evolution (LTE) system. Other core network elements may be used in LTE and in other communication systems. In some embodiments, core network element 606 includes an access and mobility management function (AMF) device, a session management function (SMF) device, or a user plane function (UPF) device, of a core network for the new radio (NR) system. It is understood that core network element 606 is shown as a set of rack-mounted servers by way of illustration and not by way of limitation. Atty. Dkt. No. 10073-01-0086-PCT
[0050] Core network element 606 may connect with a large network, such as the Internet 608, or another internet protocol (IP) network, to communicate packet data over any distance. In this way, data from user equipment 602 may be communicated to other UEs connected to other access points, including, for example, a computer 610 connected to Internet 608, for example, using a wired connection or a wireless connection, or to a tablet 612 wirelessly connected to Internet 608 via a router 614. Thus, computer 610 and tablet 612 provide additional examples of possible UEs, and router 614 provides an example of another possible access node.
[0051] A generic example of a rack-mounted server is provided as an illustration of core network element 606. However, there may be multiple elements in the core network including database servers, such as a database 616, and security and authentication servers, such as an authentication server 618. Database 616 may, for example, manage data related to user subscription to network services. A home location register (HLR) is an example of a standardized database of subscriber information for a cellular network. Likewise, authentication server 618 may handle authentication of users, sessions, and so on. In the NR system, an authentication server function (AUSF) device may be the specific entity to perform user equipment authentication. In some embodiments, a single server rack may handle multiple such functions, such that the connections between core network element 606, authentication server 618, and database 616, may be local connections within a single rack.
[0052] Each element in FIG. 6 may be considered a node of wireless network 600. More detail regarding the possible implementation of a node is provided by way of example in the description of a node 700 in FIG. 7. Node 700 may be configured as user equipment 602, access node 604, or core network element 606 in FIG. 1. Similarly, node 700 may also be configured as computer 610, router 614, tablet 612, database 616, or authentication server 618 in FIG. 6. As shown in FIG. 7, node 700 may include a processor 702, a memory 704, and a transceiver 706. These components are shown as connected to one another by a bus, but other connection types are also permitted. When node 700 is user equipment 602, additional components may also be included, such as a user interface (UI), sensors, and the like. Similarly, node 700 may be implemented as a blade in a server system when node 700 is configured as core network element 606. Other implementations are also possible.
[0053] Transceiver 706 may include any suitable device for sending and / or receiving data. Node 700 may include one or more transceivers, although only one transceiver 706 is shown for simplicity of illustration. An antenna 708 is shown as a possible communication mechanism for Atty. Dkt. No. 10073-01-0086-PCTnode 700. Multiple antennas and / or arrays of antennas may be utilized for receiving multiple spatially multiplex data streams. Additionally, examples of node 700 may communicate using wired techniques rather than (or in addition to) wireless techniques. For example, access node 604 may communicate wirelessly to user equipment 602 and may communicate by a wired connection (for example, by optical or coaxial cable) to core network element 606. Other communication hardware, such as a network interface card (NIC), may be included as well.
[0054] As shown in FIG. 7, node 700 may include processor 702. Although only one processor is shown, it is understood that multiple processors can be included. Processor 702 may include microprocessors, microcontroller units (MCUs), digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), programmable logic devices (PLDs), state machines, gated logic, discrete hardware circuits, and other suitable hardware configured to perform the various functions described throughout the present disclosure. Processor 702 may be a hardware device having one or more processing cores. Processor 702 may execute software. Software shall be construed broadly to mean instructions, instruction sets, code, code segments, program code, programs, subprograms, software modules, applications, software applications, software packages, routines, subroutines, objects, executables, threads of execution, procedures, functions, etc., whether referred to as software, firmware, middleware, microcode, hardware description language, or otherwise. Software can include computer instructions written in an interpreted language, a compiled language, or machine code. Other techniques for instructing hardware are also permitted under the broad category of software.
[0055] As shown in FIG. 7, node 700 may also include memory 704. Although only one memory is shown, it is understood that multiple memories can be included. Memory 704 can broadly include both memory and storage. For example, memory 704 may include random-access memory (RAM), read-only memory (ROM), static RAM (SRAM), dynamic RAM (DRAM), ferro- electric RAM (FRAM), electrically erasable programmable ROM (EEPROM), compact disc read- only memory (CD-ROM) or other optical disk storage, hard disk drive (HDD), such as magnetic disk storage or other magnetic storage devices, Flash drive, solid-state drive (SSD), or any other medium that can be used to carry or store desired program code in the form of instructions that can be accessed and executed by processor 702. Broadly, memory 704 may be embodied by any computer-readable medium, such as a non-transitory computer-readable medium.
[0056] Processor 702, memory 704, and transceiver 706 may be implemented in various forms in node 700 for performing wireless communication functions. In some embodiments, Atty. Dkt. No. 10073-01-0086-PCTprocessor 702, memory 704, and transceiver 706 of node 700 are implemented (e.g., integrated) on one or more system-on-chips (SoCs). In one example, processor 702 and memory 704 may be integrated on an application processor (AP) SoC (sometimes known as a “host,” referred to herein as a “host chip”) that handles application processing in an operating system (OS) environment, including generating raw data to be transmitted. In another example, processor 702 and memory 704 may be integrated on a baseband processor (BP) SoC (sometimes known as a “modem,” referred to herein as a “baseband chip”) that converts the raw data, e.g., from the host chip, to signals that can be used to modulate the carrier frequency for transmission, and vice versa, which can run a real-time operating system (RTOS). In still another example, processor 702 and transceiver 706 (and memory 704 in some cases) may be integrated on a radio frequency (RF) SoC (sometimes known as a “transceiver,” referred to herein as an “RF chip”) that transmits and receives RF signals with antenna 708. It is understood that in some examples, some or all of the host chip, baseband chip, and RF chip may be integrated as a single SoC. In particular, processor 702 may be implemented as system 100 as described above to provide low latency, high precision stack overflow prevention.
[0057] In various aspects of the present disclosure, the functions described herein may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or encoded as instructions or code on a non-transitory computer-readable medium. Computer-readable media includes computer storage media. Storage media may be any available media that can be accessed by a computing device, such as node 700 in FIG. 7. By way of example, and not limitation, such computer-readable media can include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, HDD, such as magnetic disk storage or other magnetic storage devices, Flash drive, SSD, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a processing system, such as a mobile device or a computer. Disk and disc, as used herein, includes CD, laser disc, optical disc, digital video disc (DVD), and floppy disk where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
[0058] According to one aspect of the present disclosure, a SoC is provided. The SoC may include a first NMC core with a first NMC cache. The SoC may include a memory system comprising a first set of cacheable memory units and a second set of uncacheable memory units. In some embodiments, a first uncacheable memory unit of the second set of uncacheable memory Atty. Dkt. No. 10073-01-0086-PCTunits may be coupled to the first NMC cache of the first NMC core.
[0059] In some embodiments, the SoC may further include a second NMC core with a second NMC cache. In some embodiments, a second uncacheable memory unit of the second set of uncacheable memory units may be coupled to the second NMC cache of the second NMC core.
[0060] In some embodiments, the first uncacheable memory unit and the second uncacheable memory unit may be dual-port SRAM chips.
[0061] In some embodiments, the first NMC core may be configured to read first data from the first uncacheable memory unit via first direct cache mapping. In some embodiments, the second NMC core may be configured to read second data from the second uncacheable memory unit via second direct cache mapping.
[0062] In some embodiments, the SoC may further include an MMU configured to perform first page migration to remove the first data from the first uncacheable memory unit after the first NMC core reads the first data from the first uncacheable memory unit via the first direct cache mapping. In some embodiments, the MMU may be configured to perform second page migration to remove the second data from the second uncacheable memory unit after the second NMC core reads the second data from the second uncacheable memory unit via the second direct cache mapping.
[0063] In some embodiments, the MMU may be configured to assign an uncacheable identifier for the first uncacheable memory unit and the second uncacheable memory unit in a page table of a memory map zone.
[0064] In some embodiments, the SoC may further include a CPU configured to process data in the first set of cacheable memory units.
[0065] According to a further aspect of the present disclosure, another SoC is provided. The SoC may include an NMC core. The SoC may include a memory management unit configured to maintain memory information associated with the memory unit of the NMC core. The SoC may include a memory monitoring unit configured to obtain the memory information associated with the memory unit NMC core from the memory management unit. The SoC may include a memory allocation unit configured to identify a target memory size of the NMC core based on the memory information. The SoC may include a memory hot-plug unit configured to dynamically adjust an initial size of the memory unit of the NMC core to the target memory size. In some embodiments, to obtain the memory information associated with the memory unit NMC core from the memory management unit, the memory monitoring unit may be configured to run a process in a first domain Atty. Dkt. No. 10073-01-0086-PCTto read the memory information of a second domain from the memory management unit. In some embodiments, the memory management unit may be located in the first domain and the NMC is located in the second domain. In some embodiments, the memory information may indicate a memory utilization. In some embodiments, to identify the target memory size of the NMC core based on the memory information, the memory allocation unit may be configured to input the memory utilization into a memory allocation model. In some embodiments, to identify the target memory size of the NMC core based on the memory information, the memory allocation unit may be configured to receive the target memory size of the NMC core as an output of the memory allocation model. In some embodiments, the SoC may include a user interface configured to receive a request to adjust the target memory size of the memory unit of the NMC core to an adjusted memory size based on an interaction with the user interface. In some embodiments, the memory hot-plug unit may be configured to dynamically adjust the target memory size of the memory unit of the NMC core to the adjusted memory size.
[0066] According to yet another aspect of the present disclosure, an apparatus for NMC is provided. The apparatus may include a SoC. The SoC may include a first NMC core with a first NMC cache. The SoC may include a memory system comprising a first set of cacheable memory units and a second set of uncacheable memory units. In some embodiments, a first uncacheable memory unit of the second set of uncacheable memory units may be coupled to the first NMC cache of the first NMC core.
[0067] In some embodiments, the SoC may further include a second NMC core with a second NMC cache. In some embodiments, a second uncacheable memory unit of the second set of uncacheable memory units may be coupled to the second NMC cache of the second NMC core. In some embodiments, the first uncacheable memory unit and the second uncacheable memory unit may be dual-port SRAM chips. In some embodiments, the first NMC core may be configured to read first data from the first uncacheable memory unit via first direct cache mapping. In some embodiments, the second NMC core may be configured to read second data from the second uncacheable memory unit via second direct cache mapping. In some embodiments, the SoC may further include an MMU configured to perform first page migration to remove the first data from the first uncacheable memory unit after the first NMC core reads the first data from the first uncacheable memory unit via the first direct cache mapping. In some embodiments, the MMU may be configured to perform second page migration to remove the second data from the second uncacheable memory unit after the second NMC core reads the second data from the second Atty. Dkt. No. 10073-01-0086-PCTuncacheable memory unit via the second direct cache mapping. In some embodiments, the MMU may be configured to assign an uncacheable identifier for the first uncacheable memory unit and the second uncacheable memory unit in a page table of a memory map zone. In some embodiments, the SoC may further include a CPU configured to process data in the first set of cacheable memory units.
[0068] The foregoing description of the specific embodiments will so reveal the general nature of the present disclosure that others can, by applying knowledge within the skill of the art, readily modify and / or adapt for various applications such specific embodiments, without undue experimentation, without departing from the general concept of the present disclosure. Therefore, such adaptations and modifications are intended to be within the meaning and range of equivalents of the disclosed embodiments, based on the teaching and guidance presented herein. It is to be understood that the phraseology or terminology herein is for the purpose of description and not of limitation, such that the terminology or phraseology of the present specification is to be interpreted by the skilled artisan in light of the teachings and guidance.
[0069] Embodiments of the present disclosure have been described above with the aid of functional building blocks illustrating the implementation of specified functions and relationships thereof. The boundaries of these functional building blocks have been arbitrarily defined herein for the convenience of the description. Alternate boundaries can be defined so long as the specified functions and relationships thereof are appropriately performed.
[0070] The Summary and Abstract sections may set forth one or more but not all embodiments of the present disclosure as contemplated by the inventor(s), and thus, are not intended to limit the present disclosure and the appended claims in any way.
[0071] Various functional blocks, modules, and steps are disclosed above. The particular arrangements provided are illustrative and without limitation. Accordingly, the functional blocks, modules, and steps may be re-ordered or combined in different ways than in the examples provided above. Likewise, certain embodiments include only a subset of the functional blocks, modules, and steps, and any such subset is permitted.
[0072] The breadth and scope of the present disclosure should not be limited by any of the above-described embodiments, but should be defined only in accordance with the following claims and their equivalents. Atty. Dkt. No. 10073-01-0086-PCT
Claims
WHAT IS CLAIMED IS:
1. A system-on-chip (SoC), comprising: a first near-memory computing (NMC) core with a first NMC cache; and a memory system comprising a first set of cacheable memory units and a second set of uncacheable memory units, wherein a first uncacheable memory unit of the second set of uncacheable memory units is coupled to the first NMC cache of the first NMC core.
2. The SoC of claim 1, further comprising: a second NMC core with a second NMC cache, wherein a second uncacheable memory unit of the second set of uncacheable memory units is coupled to the second NMC cache of the second NMC core.
3. The SoC of claim 2, wherein the first uncacheable memory unit and the second uncacheable memory unit are dual-port static random access memory (SRAM) chips.
4. The SoC of claim 3, wherein: the first NMC core is configured to read first data from the first uncacheable memory unit via first direct cache mapping, and the second NMC core is configured to read second data from the second uncacheable memory unit via second direct cache mapping.
5. The SoC of claim 4, further comprising: a memory management unit (MMU) configured to: perform first page migration to remove the first data from the first uncacheable memory unit after the first NMC core reads the first data from the first uncacheable memory unit via the first direct cache mapping; and perform second page migration to remove the second data from the second uncacheable memory unit after the second NMC core reads the second data from the second uncacheable memory unit via the second direct cache mapping.
6. The SoC of claim 5, wherein the MMU is further configured to: assign an uncacheable identifier for the first uncacheable memory unit and the second Atty. Dkt. No. 10073-01-0086-PCTuncacheable memory unit in a page table of a memory map zone.
7. The SoC of claim 1, further comprising: a central processing unit (CPU) configured to process data in the first set of cacheable memory units.
8. A system-on-chip (SoC), comprising: a memory unit of a near-memory computing (NMC) core; a memory management unit configured to: maintain memory information associated with the memory unit of the NMC core; a memory monitoring unit configured to: obtain the memory information associated with the memory unit NMC core from the memory management unit; a memory allocation unit configured to: identify a target memory size of the NMC core based on the memory information; and a memory hot-plug unit configured to: dynamically adjust an initial size of the memory unit of the NMC core to the target memory size.
9. The SoC of claim 8, wherein, to obtain the memory information associated with the memory unit NMC core from the memory management unit, the memory monitoring unit is configured to: run a process in a first domain to read the memory information of a second domain from the memory management unit.
10. The SoC of claim 9, wherein the memory management unit is located in the first domain and the NMC is located in the second domain.
11. The SoC of claim 8, wherein the memory information indicates a memory utilization.
12. The SoC of claim 11, wherein, to identify the target memory size of the NMC core based Atty. Dkt. No. 10073-01-0086-PCTon the memory information, the memory allocation unit is configured to: input the memory utilization into a memory allocation model; and receive the target memory size of the NMC core as an output of the memory allocation model.
13. The SoC of claim 8, further comprising: a user interface configured to: receive a request to adjust the target memory size of the memory unit of the NMC core to an adjusted memory size based on an interaction with the user interface.
14. The SoC of claim 13, wherein the memory hot-plug unit is configured to: dynamically adjust the target memory size of the memory unit of the NMC core to the adjusted memory size.
15. An apparatus for near-memory computing (NMC), comprising: a system-on-chip (SoC), comprising: a first NMC core with a first NMC cache; and a memory system comprising a first set of cacheable memory units and a second set of uncacheable memory units, wherein a first uncacheable memory unit of the second set of uncacheable memory units is coupled to the first NMC cache of the first NMC core.
16. The apparatus of claim 15, wherein the SoC further comprises: a second NMC core with a second NMC cache, wherein a second uncacheable memory unit of the second set of uncacheable memory units is coupled to the second NMC cache of the second NMC core.
17. The apparatus of claim 16, wherein the first uncacheable memory unit and the second uncacheable memory unit are dual-port static random access memory (SRAM) chips.
18. The apparatus of claim 17, wherein: the first NMC core is configured to read first data from the first uncacheable memory unit via first direct cache mapping, and Atty. Dkt. No. 10073-01-0086-PCTthe second NMC core is configured to read second data from the second uncacheable memory unit via second direct cache mapping.
19. The apparatus of claim 18, wherein the SoC further comprises: a memory management unit (MMU) configured to: perform first page migration to remove the first data from the first uncacheable memory unit after the first NMC core reads the first data from the first uncacheable memory unit via the first direct cache mapping; perform second page migration to remove the second data from the second uncacheable memory unit after the second NMC core reads the second data from the second uncacheable memory unit via the second direct cache mapping; and assign an uncacheable identifier for the first uncacheable memory unit and the second uncacheable memory unit in a page table of a memory map zone.
20. The apparatus of claim 15, wherein the SoC further comprises: a central processing unit (CPU) configured to process data in the first set of cacheable memory units. Atty. Dkt. No. 10073-01-0086-PCT
Citation Information
Patent Citations
Application-transparent near-memory processing architecture with memory channel network
US20210209047A1
MEMORY TIERING USING PCIe CONNECTED FAR MEMORY
US20220283949A1
