Apparatus and method for memory alignment

By translating the logical addresses of byte-based memory elements into physical addresses and performing logical operations in the memory cell array, the problems of low processing performance and high power consumption in the prior art when processing non-byte-based memory elements are solved, Achieving higher processing performance and lower power consumption.

CN116798468BActive Publication Date: 2024-09-10MICRON TECHNOLOGY INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310841707.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2016-11-11
Filing Date
2017-11-02
Publication Date
2024-09-10
Estimated Expiration
2037-11-02

AI Technical Summary

Technical Problem

Existing memory alignment methods suffer from low processing performance and high power consumption when dealing with non-byte-based memory elements, and it is difficult to optimize the compiler and runtime system to generate instructions for logical operations.

Method used

By translating the logical addresses of byte-based memory elements into physical addresses and using sensing circuits to perform logical operations in the memory cell array, non-byte-based alignment of memory allocation is achieved, reducing data movement and power consumption, improving Processing performance.

Benefits of technology

It increases processor parallelism and execution speed, reduces power consumption, and allows logic operations to be performed within memory, optimizing instruction generation for compilers and runtime systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116798468B_ABST
    Figure CN116798468B_ABST
Patent Text Reader

Abstract

The present invention includes apparatus and methods related to memory alignment. An example method includes performing an alignment operation on a byte-based first memory element and a byte-based second memory element so that padding bits of the byte-based first memory element are logically adjacent to padding bits of the byte-based second memory element and data bits of the byte-based first memory element are logically adjacent to data bits of the byte-based second memory element.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Information about divisional applications

[0002] This application is a divisional application of the invention patent application with the application date of November 2, 2017, application number "201780069592.4", and invention name "Device and method for memory alignment". Technical Field

[0003] The present invention relates generally to semiconductor memories and methods, and more particularly to apparatus and methods related to memory alignment. Background Art

[0004] Memory devices are typically provided as internal semiconductor integrated circuits in computers or other electronic systems. There are many different types of memory, including volatile and non-volatile memory. Volatile memory may require power to maintain its data (e.g., host data, error data, etc.) and includes random access memory (RAM), dynamic random access memory (DRAM), static random access memory (SRAM), synchronous dynamic random access memory (SDRAM), and thyristor random access memory (TRAM), etc. Non-volatile memory can provide persistent data by retaining stored data when power is not supplied and can include NAND flash memory, NOR flash memory, and resistance variable memory, such as phase change random access memory (PCRAM), resistive random access memory (RRAM), and magnetoresistive random access memory (MRAM), such as spin torque transfer random access memory (STTRAM), etc.

[0005] Electronic systems typically include a number of processing resources (e.g., one or more processors) that can retrieve and execute instructions and store the results of the executed instructions in appropriate locations. The processor may include a number of functional units, such as arithmetic logic unit (ALU) circuits, floating point unit (FPU) circuits, and combinatorial logic blocks, which can be used to execute instructions by performing logical operations (e.g., AND, OR, NOT, NAND, NOR, and XOR) and invert / inversion logical operations on data (e.g., one or more operands). For example, the functional unit circuits can be used to perform arithmetic operations on operands via a number of logical operations, such as addition, subtraction, multiplication, and division.

[0006] Providing instructions to functional unit circuits for execution may involve several components in an electronic system. The instructions may be executed, for example, by a processing resource, such as a controller and / or a host processor. Data (e.g., operands on which the instructions are to be executed) may be stored in a memory array accessible to the functional unit circuits. The instructions and data may be retrieved from the memory array and sequenced and / or buffered before the functional unit circuits begin executing the instructions on the data. In addition, because different types of operations may be performed by the functional unit circuits in one or more clock cycles, intermediate results of the instructions and data may also be sequenced and / or buffered.

[0007] In many examples, the processing resources (e.g., processors and / or associated functional unit circuits) may be external to the memory array, and data is accessed via a bus between the processing resources and the memory array to execute a set of instructions. Processing performance in a processing-in-memory (PIM) device may be improved, where the processor may be implemented inside and / or near the memory (e.g., directly on the same chip as the memory array), which may reduce processing time and may also save power. The movement of data between and within arrays and / or sub-arrays of various memory devices (e.g., processing-in-memory devices) may affect processing time and / or power consumption. Summary of the invention

[0008] Embodiments of the present application relate to a method for memory alignment. The method includes receiving a logical address of data of a byte-based memory element (130, 132, 134) of a memory allocation (136) including a plurality of byte-based memory elements (130, 132, 134) from a host (210); translating the logical address into a physical address of the data; and performing a logical operation on the data at the physical address via a sensing circuit (270). The method translates the logical address into a physical address of the data based on: the number of data bits (120, 122, 124) of each of the plurality of byte-based memory elements (130, 132, 134); the number of padding bits (121, 123, 125) of each of the plurality of byte-based memory elements (130, 132, 134); and the number of byte-based memory elements (130, 132, 134) from a start point of the memory allocation (136) to the logical address.

[0009] The present invention relates to a device, comprising a memory cell array (271) configured to store a plurality of byte-based memory elements (130, 132, 134) of a memory allocation (136); a controller (240) coupled to the memory cell array (271); and a sensing circuit (270) coupled to the memory cell array (271), wherein the sensing circuit (270) is configured to perform a logic operation on the data at the physical address. The controller (240) is configured to translate a logical address of data of byte-based memory elements (130, 132, 134) of the memory allocation (136) into a physical address of the data based on: a number of data bits (120, 122, 124) of each of the plurality of byte-based memory elements (130, 132, 134); a number of padding bits (121, 123, 125) of each of the plurality of byte-based memory elements (130, 132, 134); and a number of byte-based memory elements (130, 132, 134) from a starting point of the memory allocation (136) to the logical address.

[0010] The present application embodiment relates to a system. The system includes a host (210); and a memory device (278) coupled to the host (210). The memory device (278) is configured to receive a logical address of data of a byte-based memory element (130, 132, 134) of the memory allocation (136) stored on the memory device (278) from the host (210); and determine a physical address of the data. The determination is based on the following: the number of data bits (120, 122, 124) of the byte-based memory element (130, 132, 134); the number of padding bits (121, 123, 125) of the byte-based memory element (130, 132, 134); and the number of byte-based memory elements (130, 132, 134) from the start of the memory allocation (136) to the logical address. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] Figures 1A to 1C is a schematic diagram illustrating a process of realigning a memory allocation having a byte-based alignment to a memory allocation having a non-byte-based alignment according to several embodiments of the present invention.

[0012] Figure 2 is a block diagram of an apparatus in the form of a computing system including a memory device according to several embodiments of the invention.

[0013] Figure 3FIG. 2 is a schematic diagram illustrating a sensing circuit with selectable logic operation selection logic according to several embodiments of the present invention.

[0014] Figure 4 Signaling that may be associated with left shifting of data is shown according to several embodiments of the invention. DETAILED DESCRIPTION

[0015] Several embodiments include a method for aligning byte-based memory elements so that data bits corresponding to data values ​​are logically adjacent prior to performing logical operations on the data values.

[0016] In some methods of aligning memory, the architecture and operating system (OS) can derive byte-based addressing structures in the instruction set architecture (ISA) and the application binary interface (ABI). If a memory element is defined as having a number of data bits corresponding to a data value, where the bit length of the memory element is not equal to an integer number of bytes, then the OS can fill the memory element by adding bits to the memory element so that the bit length is equal to an integer number of bytes. Therefore, a memory request can be performed based on byte-based alignment. However, in expressive memory devices, such as PIM devices, it may be useful to operate data in non-byte-based alignment. This non-byte-based alignment can improve overall processing performance and reduce data movement requirements. In addition, non-byte-based alignment can allow optimization compilers and runtime systems to generate instructions to align the data bits of non-byte-based memory elements for subsequent arithmetic, logical and combinational operations. When the host maintains the byte-based alignment of the memory element, such operations can be performed inside the memory. According to several embodiments of the present invention, programmers can use language extensions that can be understood by C or C++ compatible compilers to construct portable code for heterogeneous architectures.

[0017]

[0013] Embodiments disclosed herein may include methods that may utilize byte-based alignment combined with a series of arithmetic, shift, and / or rotate operations to align byte-based memory elements on their respective bit-addressing boundaries.

[0018] Several embodiments of the present invention may provide improved parallelism, increased speed, and / or reduced power consumption associated with performing data movement operations compared to some previous approaches, such as previous PIM devices and systems with external processors (e.g., processing resources located outside of a memory array, such as on a separate integrated circuit chip). For example, several embodiments may provide for moving data on a shift register while performing computational functions, such as, for example, integer addition, subtraction, multiplication, division, and CAM (content addressable memory) functions without transferring data out of the memory array and sensing circuits via a bus (e.g., a data bus, an address bus, a control bus). Such computational functions may include performing a number of logical operations (e.g., logical functions such as AND, OR, NOT, NOR, NAND, XOR, etc.). However, the embodiments are not limited to these examples. For example, performing a logical operation may include performing a number of non-Boolean logical operations, such as comparison, destruction, etc.

[0019] In the following detailed description of the invention, reference is made to the accompanying drawings which form a part thereof and in which are shown by way of illustration how one or more embodiments of the invention may be practiced. These embodiments are described in sufficient detail to enable one of ordinary skill in the art to practice the embodiments of the invention, and it is understood that other embodiments may be utilized and process, electrical and / or structural changes may be made without departing from the scope of the invention. As used herein, "a number of" particular things may refer to one or more of such things (e.g., a number of memory arrays may refer to one or more memory arrays). "A plurality" is intended to refer to more than one of such things.

[0020] The figures herein follow a numbering convention in which the first digit or the first few digits correspond to the figure number and the remaining digits identify the element or assembly in the diagram. As will be appreciated, the elements shown in the various embodiments herein may be added, exchanged and / or eliminated in order to provide several additional embodiments of the present invention. In addition, as will be appreciated, the proportions and relative dimensions of the elements provided in the figures are intended to illustrate certain embodiments of the present invention and should not be understood in a limiting sense.

[0021] The term "alignment operation" refers to an operation capable of moving a bit within a memory allocation. Examples of alignment operations include shift operations and rotation operations. According to the present invention, a rotation operation can be performed on bits stored in a memory cell array so that the bits remain on chip during the rotation operation.

[0022] The rotation operation of the byte-based memory element can move at least the most significant bit (MSB) or at least the least significant bit (LSB) from one end of the byte-based memory element to the other end, as if the ends of the byte-based memory element were coupled together. The rotation operation can also move other bits of the byte-based memory element away so that at least the MSB or LSB can be moved to the other end. Therefore, the rotation operation includes a shift operation of the "other bits" and includes a copy operation, a shift operation, and a reverse copy operation of at least the MSB or LSB, as described in more detail below. The rotation operation can be described according to the orientation of the rotation operation (e.g., a left rotation operation or a right rotation operation). For example, the left rotation operation can include moving the bit logically positioned at the left end (e.g., the MSB or LSB) of the byte-based memory element to the right end of the byte-based memory element and shifting the remaining bits to the left end. As an example, if a byte-based memory element that is one byte (e.g., eight bits) long is rotated left by two bits, the leftmost two bits of the byte-based memory element become the rightmost two bits of the byte-based memory element. The remaining six bits are left shifted two bits so that the byte-based memory elements occupy the same logical space. In contrast, a right rotate operation may include moving a bit (e.g., MSB or LSB) logically positioned at the right end of the byte-based memory element to the left end of the byte-based memory element and shifting the remaining bits to the right end.

[0023] Performing a shift operation to the left by two bits on a byte-long byte-based memory element can cause the two leftmost bits to be overwritten by the two bits that are logically adjacent to them. The shift operation can also cause the two rightmost bits to remain the same or be overwritten with other data. One benefit of performing a rotation operation can be that information is not lost and is not overwritten as in a shift operation because bits are moved.

[0024] Figures 1A to 1C is a schematic diagram illustrating a process of realigning a memory allocation having a byte-based alignment to a memory allocation having a non-byte-based alignment according to several embodiments of the present invention. Figure 1A Describes memory allocation with byte-based alignment. Figure 1B Describes the intermediate steps in the process of realigning memory allocations. Figure 1C Describes memory allocation with non-byte-based alignment.

[0025] Figure 1AThe invention comprises: a first byte-based memory element 130 including a data portion 120 ("first data portion 120") and a padding portion 121 ("first padding portion 121"); a second byte-based memory element 132 including a data portion 122 ("second data portion 122") and a padding portion 123 ("second padding portion 123"); and a third byte-based memory element 134 including a data portion 124 ("third data portion 124") and a padding portion 125 ("third padding portion 125"). The term "data portion" refers to one or more data bits, which are bits corresponding to a data value. The term "padding portion" refers to one or more padding bits, which are bits inserted into a memory element to supplement the data bits in the memory element so that the total number of bits (data and padding) in the memory element is equal to an integer number of bytes.

[0026] Figure 1A Byte-based memory elements 130, 132, and 134 are shown as being post-filled, such that padding portions 121, 123, and 125 are logically to the right of their respective data portions 120, 122, and 124. Byte-based memory elements 130, 132, and 134 may also be front-filled, as opposed to being post-filled, such that padding portions 121, 123, and 125 are logically to the left of their respective data portions 120, 122, and 124. Byte-based first memory element 130, byte-based second memory element 132, and byte-based third memory element 134 together may comprise memory allocation 136. Byte-based memory elements of a memory allocation, such as byte-based memory elements 130, 132, and 134, may be homogeneous, such that each of the byte-based memory elements includes the same number of data bits and the same number of padding bits. However, byte-based memory elements of different allocations may have different numbers of data bits and / or padding bits.

[0027] Figure 1B An intermediate step in the process of realigning memory allocation 136 is shown. After the left rotation operation is performed on the first padding portion 121 and the first data portion 122, the padding bits of the first padding portion 121 that are logically adjacent to the data bits of the second data portion 122 are now logically adjacent to the padding bits of the second padding portion 123. The second data portion 122 has been left-shifted so that the data bits of the second data portion 122 are now logically adjacent to the data bits of the first data portion 120. The second data portion 122 has been right-shifted by a number of bits equal to the number of bits of the first padding portion 121. As used herein, "logically adjacent" refers to the conceptual position of one bit relative to another bit, such that the two bits are positioned side by side. Physically, the two bits that are logically adjacent are stored in two memory cells that are physically adjacent to each other in the array.

[0028] Figure 1C Memory allocation 136 with non-byte-based alignment is illustrated. After a left rotate operation is performed on the first padding portion 121, the second padding portion 123, and the third data portion 124, the padding bits of the second padding portion 123 that were logically adjacent to the data bits of the third data portion 124 are now logically adjacent to the padding bits of the third padding portion 125. The padding bits of the logically adjacent first padding portion 121 and second padding portion 123 remain logically adjacent. The third data portion 124 has been left shifted by a different number of bits that is equal to the sum of the number of bits of the first padding portion 121 and the number of bits of the second padding portion 123. Therefore, the data bits of the third data portion 124 are now logically adjacent to the data bits of the second data portion 122.

[0029] Despite Figures 1A to 1C , but memory allocation 136 may include any number of byte-based memory elements. For example, the number of byte-based memory elements may be the length of memory allocation 136 defined by the user. In some embodiments, the number of byte-based memory elements in the memory allocation may be defined by the number of data bits that are simultaneously operated in the memory device. For example, if each byte-based memory element includes 30 data bits, and the memory device operates 150 bits at a time, the memory allocation may include five byte-based memory elements. In a memory allocation 136 that includes more than three byte-based memory elements, additional rotation operations may be performed in a series of rotation operations until all data bits of the memory allocation 136 are logically adjacent to each other and all fill bits of the memory allocation 136 are logically adjacent to each other.

[0030] Non-byte-based alignment may be useful on a PIM device because the PIM device may be configured to perform logical operations on an amount of data that is not an integer number of bytes. If the data is stored in physically adjacent memory cells, the PIM device may operate on the data more efficiently (e.g., without having to process padding bits that separate the data bits). Thus, logical operations may be performed only on the data bits of the byte-based memory elements. Thus, according to several embodiments of the present invention, prior to a logical operation, a process may be performed to realign a memory allocation having a byte-based alignment to a memory allocation having a non-byte-based alignment. After a logical operation, a process may be performed to realign a memory allocation having a non-byte-based alignment to a memory allocation having a byte-based alignment (e.g., with respect to Figures 1A to 1C The above process may be reversed). That is, memory allocation may return to byte-based alignment, although the values ​​of the data bits may have changed according to the logical operation.

[0031] In order to minimize the number of rotate operations used to realign a memory allocation (or portion thereof) from a byte-based alignment to a memory allocation (or portion thereof) having a non-byte-based alignment, a series of left rotate operations may be used in response to the memory element being back-filled, or a series of right rotate operations may be used in response to the memory element being front-filled. The correspondence between the direction of the rotate operation and the front or back filling of the memory allocation allows one less rotate operation to be performed (compared to the alternative) because the filled portion of the last memory element is already at the end of the memory allocation. For example, in Figures 1A to 1C , the third fill portion 125 is not operated because the third fill portion 125 is already at the end of the memory allocation 136.

[0032] The method for memory element alignment according to several embodiments of the present invention can be expressed mathematically. For a given memory allocation, each data portion may include the same number of data bits (b), which is not equal to an integer number of bytes. Padding bits may be added to the data bits so that the total number of bits in the byte-based memory element (B) is equal to an integer number of bytes. The total number of bits (B) therefore includes data bits and padding bits. The number of padding bits added to non-byte-based memory elements may be the least desirable, so that B is an integer number of bytes. For example, if b is thirty bits, two padding bits may be added so that B is thirty-two bits. The memory elements subjected to the alignment operation are numbered sequentially, starting from zero, where N represents the number assigned to the memory element.

[0033] Reference Figures 1A to 1C , assuming that data portions 120, 122, and 124 each represent thirty data bits (b=30) and padding portions 121, 123, and 125 each represent two padding bits (B=32). It is also assumed that byte-based memory elements 130, 132, and 134 are numbered sequentially, starting with byte-based memory element 130 (N 130 =0; N 132 =1; N 134 =2). As part of the rotation operation, the number of bits that the data portion of the corresponding memory element (N) should be shifted to achieve non-byte-based alignment can be expressed as Q N ,in:

[0034] Q N =(Bb)×N (1)

[0035] refer to Figure 1A , for the first data portion of the first byte-based memory element 130 For the second data portion of the byte-based second memory element 132 And for the third data portion of the third memory element 134 based on bytes To achieve Figure 1B , the second data portion 122 may be left shifted by two bits as part of a first left rotate operation. Figure 1C , the third data portion 124 may be left shifted four bits as part of the second left rotate operation. Figures 1A to 1C An example including three byte-based memory elements is described, but embodiments are not so limited as expression (1) may be used for any number of byte-based memory elements.

[0036] Methods for memory alignment according to several embodiments of the present invention may include: Figure 2 The host 210 described in the embodiment of the present invention receives a logical address of data of a byte-based memory element of a memory allocation including a plurality of byte-based memory elements; translates the logical address into a physical address; and senses the data via a sensing circuit (which may be similar to Figure 2 270) performs a logical operation on the data at the physical address. As used herein, "logical address" refers to a byte-based address, while "physical address" refers to a bit-based address corresponding to a specific memory cell. The logical address can be translated into a physical address based on the number of data bits for each of a plurality of byte-based memory elements, the number of fill bits for each of the plurality of byte-based memory elements, and the number of byte-based memory elements from the starting point of the memory allocation to the logical address.

[0037] Translating the logical address may include adjusting the logical address by a value equal to the number of padding bits multiplied by the number of byte-based memory elements from the start point of the memory allocation to the logical address. After performing the logical operation, data may be padded with the number of padding bits and the padded data may be sent to a host. A memory allocation may be defined at run time. Defining the memory allocation may include receiving a user-defined number of data bits in each of the byte-based memory elements of the memory allocation. Defining the memory allocation may include receiving a user-defined length of the memory allocation.

[0038] Figure 2 is a block diagram of an apparatus in the form of a computing system 200 including a memory device 278, according to several embodiments of the present invention. As used herein, the memory device 278, the memory array 271, and / or the sensing circuit 270 may also be individually considered to be an "apparatus."

[0039] The computing system 200 includes a host 210 coupled (e.g., connected) to a memory device 278 including a memory array 271. The host 210 may be a host system, such as a personal laptop computer, a desktop computer, a digital camera, a smart phone, or a memory card reader, among various other types of hosts. The host 210 may include a system motherboard and / or a backplane and may include a number of processing resources (e.g., one or more processors, microprocessors, or some other type of control circuit). The system 200 may include separate integrated circuits or both the host 210 and the memory device 278 may be on the same integrated circuit. The system 200 may be, for example, a server system and / or a high performance computing (HPC) system and / or a portion thereof. Although Figure 2 The examples shown in illustrate a system having a Von Neumann architecture, but embodiments of the invention may be implemented in a non-Von Neumann architecture (e.g., a Turing machine), which may not include one or more components typically associated with a Von Neumann architecture (e.g., a CPU, an ALU, etc.).

[0040] For clarity, system 200 has been simplified to focus on features that are particularly relevant to the present invention. Memory array 271 may be a hybrid memory cube (HMC), a computational memory, such as a process-in-memory random access memory (PIMRAM) array, which may include, for example, one or more of a DRAM array, an SRAM array, an STT RAM array, a PCRAM array, a TRAM array, an RRAM array, a NAND flash memory array, and / or a NOR flash memory array. Memory array 271 may include memory cells arranged in rows coupled by access lines, which may be referred to herein as word lines or select lines, and columns coupled by sense lines, which may be referred to herein as data lines or digit lines. Although in Figure 2 A single memory array 271 is shown in FIG. 2 , but the embodiment is not limited thereto. For example, the memory device 278 may include several memory arrays 271 (eg, several banks of DRAM cells, NAND flash memory cells, etc.).

[0041] The memory device 278 may include an address circuit 242 to latch an address signal provided via an I / O bus 275 (e.g., a data bus and / or an address bus) through an input / output "I / O" circuit 244 (e.g., provided to external ALU circuits and DRAM DQs via local I / O lines and global I / O lines). The address signal may be received and decoded by a row decoder 246 and a column decoder 272 to access the memory array 271. Data may be read from the memory array 271 using a sense circuit 270 by sensing voltage and / or current changes on a sense line. The sense circuit 270 may read and latch a page (e.g., a row) of data from the memory array 271. The I / O circuit 244 may be used for bidirectional data communication with the host 210 via the I / O bus 275. The write circuit 248 may be used to write data to the memory device 278. The controller 240 decodes the signal provided by the control bus 274 from the host 210. These signals may include a chip enable signal, a write enable signal, and an address latch signal, which are used to control operations performed on the memory array 271, including data read, data write, and data erase operations. In various embodiments, the controller 240 is responsible for executing instructions from the host 210 and sequencing accesses to the memory array 271. The controller 240 may be a state machine (e.g., hardware and / or firmware in the form of an application specific integrated circuit (ASIC)), a sequencer, or some other type of controller. The controller 240 may control, for example, clock signal generation by controlling the location and / or time of the start clock signal. For example, as described in more detail herein, the controller 240 may communicate with a shift register, which may include a number of sense amplifiers and / or computing components to provide a clock signal to shift data.

[0042] The sensing circuit 270 may be formed with a spacing from the sensing lines of the memory array 271. For example, the memory array cell may have a specific cell size (eg, 4F). 2 or 6F 2 , where "F" is the feature size corresponding to the cell). In several embodiments, the sensing components (e.g., corresponding sense amplifier and computation component pairs) corresponding to the sensing circuit 270 are formed with the same pitch as the sensing lines of the array and can be operated to perform various computational functions. For example, if the sensing line pitch is 3F, the transistors of the sensing components can be mounted within the same 3F pitch. In contrast, devices (e.g., logic gates) associated with the ALU circuits of various PIM systems may not be formed with the spacing from the sensing lines, for example, which can increase chip size and / or memory density compared to several embodiments of the present invention.

[0043] Thus, in several embodiments, circuitry external to the memory array 271 and the sense circuit 270 is not required to perform computational functions because the sense circuit 270 can perform appropriate logic operations to perform such computational functions without the use of external processing resources. In several embodiments, the sense circuit 270 can be operated as several 1-bit processing resources, where the sense components coupled to respective columns of the memory array 271 function as respective 1-bit processing elements. Thus, the sense circuit 270 can be used to complement and / or replace external processing resources, such as ALU circuits of the host 210, at least to some extent.

[0044] Embodiments in accordance with the invention may include performing, via an apparatus including an array of memory cells, a sensing circuit coupled to the array, and a controller, Figures 1A to 1C A process for realigning a memory allocation having a byte-based alignment to a memory allocation having a non-byte-based alignment is described, wherein the memory cell array may be similar to Figure 2 The memory array 271 described in the embodiment of the present invention may be similar to the sensing circuit of Figure 2 The sensing circuit 270 described in Figure 2 . The controller 240 may be coupled to a memory array 271. The controller 240 may be configured to operate the sensing circuit 270 to move the stuffing bits of the byte-based first memory element stored in the array and to move the data bits of the byte-based second memory element stored in the array. Thus, the data bits of the first byte-based memory element and one of the data bits of the byte-based second memory element may be stored in physically adjacent memory cells in the memory array 271. The controller 240 may be further configured to operate the sensing circuit 270 to move the stuffing bits of the byte-based memory element and the stuffing bits of the byte-based second memory element and to move the data bits of the byte-based third memory element. Thus, different data bits of the byte-based second memory element and one of the data bits of the byte-based third memory element may be stored in physically adjacent memory cells in the memory array 271. The controller 240 may be configured to operate the sensing circuit 270 to move the stuffing bits and move the data bits after performing the logic operation so that one of the data bits is aligned with a byte boundary.

[0045] The sensing circuit 270 may include a computing component spaced from a pair of complementary sensing lines of the memory array 271. The controller 240 may be configured to operate the computing component to perform logic operations on data bits stored in physically adjacent memory cells in the memory array 271.

[0046] The controller may cause the process of realigning memory allocation to be performed without any additional action by the host 210. From the perspective of the host 210, the alignment of the byte-based memory elements will not be changed. The controller 240 may cause the alignment operation to be performed without input from the OS and / or without the OS being aware of the alignment operation occurring within the memory. According to the present invention, the controller 240, in response to an instruction to perform a logical operation on data stored in a plurality of byte-based memory elements, may cause an alignment operation to be performed on a plurality of byte-based memory elements in the memory array 271, so that the data bits of the plurality of byte-based memory elements are stored in physically adjacent memory cells. The controller 240 may cause the logical operation to be performed on the data bits stored in the memory array 271 after the alignment operation. The controller 240 may cause the realignment operation to be performed in the memory array 271 to return the data bits to byte-based alignment after the logical operation is performed in the memory array 271.

[0047] The memory device 278 may be a PIM device. The sensing circuit 270 may also include a computing component, which may be similar to the one described below with respect to Figure 3 Described computing components 331. Example sensing circuit 270 is further described below. For example, in several embodiments, sensing circuit 270 may include several sense amplifiers and several computing components, which may function as and may be referred to herein as accumulators, and may be used to perform logic operations (e.g., perform logic operations on data associated with complementary digit lines). In at least one embodiment, the storage locations (e.g., latches) corresponding to the computing components may include at least a portion of a shift register.

[0048] In several embodiments, the sense circuit 270 can be used to perform logic operations using data stored in the memory array 271 as input and store the results of the logic operations back to the memory array 271 without transferring data via sense line address accesses (e.g., without triggering column decode signals). Thus, various computational functions can be performed using and within the sense circuit 270 rather than by (or in association with) processing resources external to the sense circuit (e.g., by a processor associated with the host 210 and / or other processing circuits such as ALU circuits located on the memory device 278 (e.g., on the controller 240 or elsewhere)).

[0049] In various previous approaches, data associated with operands, for example, may be read from memory via a sense circuit and provided to an external ALU circuit via an I / O line (e.g., via a local I / O line and / or a global I / O line). The external ALU circuit may include several registers and may perform a computational function using the operands, and the results may be transferred back to the array via the I / O lines. In contrast, in several embodiments of the present invention, the sense circuit 270 is configured to perform logic operations on data stored in the memory array 271 and store the results back to the memory array 271 without enabling an I / O line (e.g., a local I / O line) coupled to the sense circuit 270. The sense circuit 270 may be formed spaced apart from a pair of complementary sense lines of the memory array 271.

[0050] Thus, in several embodiments, no circuitry external to the memory array 271 and the sensing circuit 270 is required to perform computational functions, because the sensing circuit 270 can perform appropriate logic operations to perform such computational functions without the use of external processing resources. Thus, the sensing circuit 270 can be used to supplement and / or replace such external processing resources (or at least the bandwidth consumption of such external processing resources), at least to some extent.

[0051] However, in several embodiments, the sensing circuit 270 may be used to perform logic operations (e.g., execute instructions) in addition to logic operations performed by external processing resources (e.g., the host 210). For example, the host 210 and / or the sensing circuit 270 may be limited to performing only certain logic operations and / or a certain number of logic operations.

[0052] Enabling an I / O line may include enabling (e.g., turning on) a transistor having a gate coupled to a decode signal (e.g., a column decode signal) and a source / drain coupled to the I / O line. However, embodiments are not limited to not enabling an I / O line. For example, in several embodiments, the sense circuit 270 may be used to perform a logic operation without enabling a column decode line of the array; however, the local I / O line may be enabled in order to transfer the result to an appropriate location rather than back to the memory array 271 (e.g., to an external register).

[0053] Figure 3 FIG. 2 is a schematic diagram illustrating a sensing circuit with selectable logic operation selection logic according to several embodiments of the present invention. Figure 3A number of sense amplifiers 306 coupled to respective complementary sense line pairs 305-1 and 305-2 and a corresponding number of computational components 331 coupled to the sense amplifiers 306 via pass gates 307-1 and 307-2 are shown. The gates of the pass gates 307-1 and 307-2 may be controlled by a logic operation selection logic signal PASS. For example, the output of the logic operation selection logic 313 may be coupled to the gates of the pass gates 307-1 and 307-2. The computational components 331 may be spaced from a pair of complementary sense lines 305-1 and 305-2 of a memory array.

[0054] according to Figure 3 In the embodiment illustrated in , the computing component 331 may include corresponding stages (e.g., shift units) of a loadable shift register configured to left-shift and right-shift data values. According to some embodiments, the computing component 331 may have bidirectional shifting capabilities. According to various embodiments of the invention, the computing component 331 may include a loadable shift register configured to shift in multiple directions (e.g., right and left) (e.g., where each computing component 331 serves as a corresponding shift stage). According to various embodiments of the invention, the computing component 331 may include corresponding stages of a loadable shift register configured to shift in one direction. The loadable shift register may be coupled to complementary sense line pairs 305-1 and 305-2, where a node "ST2" of each stage is coupled to a sense line (e.g., DIGIT(n)) that transfers a true data value and where a node "SF2" of each stage is coupled to a sense line (e.g., DIGIT(n)_) that transfers a complementary (e.g., false) data value.

[0055] According to some embodiments and Figure 3 , each computational component 331 (e.g., stage) of the shift register includes a pair of right shift transistors 381 and 386, a pair of left shift registers 389 and 390, and a pair of inverters 387 and 388. Signals "PHASE 1R", "PHASE 2R", "PHASE 1L", and "PHASE 2L" may be applied to respective control lines 382, ​​383, 391, and 392 to enable / disable feedback on the latches of the corresponding computational components 331 in association with performing logic operations and / or shifting data according to the embodiments described herein. Figure 4 Examples of shifting data (eg, from a particular computing component 331 to an adjacent computing component 331) are further described.

[0056] A memory cell may be coupled to each of the complementary sense line pairs 305-1 and 305-2. The computing component 331 may be configured to Figures 1A to 1C Performing the alignment operation as described above is followed by performing logic operations on the data values ​​stored in the memory cells coupled to the complementary sense line pair 305-1 and 305-2.

[0057] The computation component 331 of the loadable shift register includes: a first right-shift transistor 381 having a gate coupled to a first right-shift signal control line "PHASE 1R" 382; and a second right-shift transistor 386 having a gate coupled to a second right-shift signal control line "PHASE 2R" 383. The node "ST2" of each stage in the loadable shift register is coupled to the input of a first inverter 387. The output of the first inverter 387 at the node "SF1" is coupled to one source / drain of the second right-shift transistor 386, and the other source / drain of the second right-shift transistor 386 is coupled to the input of a second inverter 388 at the node "SF2". The output of the second inverter 388 at the node "ST1" is coupled to one source / drain of the first right-shift transistor 381, and the other source / drain of the first right-shift transistor 381 is coupled to the input of the first inverter at the node "ST2" of the adjacent computation component 331.

[0058] The sense amplifier 306 may be coupled to the respective complementary sense line pairs 305-1 and 305-2, and the corresponding computational component 331 is coupled to the sense amplifier 306 via respective pass gates 307-1 and 307-2. The gates of the pass gates 307-1 and 307-2 may be controlled by respective logic operation selection logic signals "Passd" and "Passdb" that may be output from logic operation selection logic (not shown for clarity).

[0059] The first left shift transistor 389 is coupled between a node “SF2” of a loadable shift register and a node “SF1” of a loadable shift register corresponding to the adjacent computing component 331. The channel of the second left shift transistor 390 is coupled from the node “ST2” to the node “ST1”. The gate of the first left shift transistor 389 is coupled to a first left shift signal control line “PHASE 1L” 391, and the gate of the second left shift transistor 390 is coupled to a second left shift signal control line “PHASE 2L” 392.

[0060] The logic operation selection logic 313 includes a swap gate 342 and logic that controls the pass gates 307-1 and 307-2 and the swap gate 342. The logic operation selection logic 313 includes four logic selection transistors: a logic selection transistor 362 coupled between the gate of the swap transistor 342 and a "TF" signal control line; a logic selection transistor 352 coupled between the gates of the pass gates 307-1 and 307-2 and a "TT" signal control line; a logic selection transistor 354 coupled between the gates of the pass gates 307-1 and 307-2 and a "FT" signal control line; and a logic selection transistor 364 coupled between the gate of the swap transistor 342 and a "FF" signal control line. The gates of the logic selection transistors 362 and 352 are coupled to the true sense line through the isolation transistor 350-1 (having a gate coupled to the "ISO" signal control line). The gates of logic select transistors 364 and 354 are coupled to complementary sense lines through isolation transistor 350-2 (which also has a gate coupled to the "ISO" signal control line). Figure 4 Instructions and Usage Figure 3 FIG. 4 is a timing diagram associated with a sensing circuit performing a shift operation.

[0061] The data values ​​on the respective complementary sense line pairs 305-1 and 305-2 may be loaded into the corresponding computing components 331 (e.g., loadable shift registers) by causing the pass gates 307-1 and 307-2 to conduct (e.g., by causing the "Passd" (not shown) control signal to go high). A gate that is controlled to have continuity (e.g., have electrical continuity through the channel) is conductive and may be referred to herein as OPEN. A gate that is controlled to not have continuity is considered to be non-conductive and may be referred to herein as CLOSED. For example, continuous refers to a low resistance condition in which the gate is conductive. The data values ​​may be loaded into the respective computing components 331 by the sense amplifier 306 to overpower the corresponding computing components 331 (e.g., overwrite the existing data value in the computing components 331) and / or by deactivating the signal control lines "PHASE 1R" 382 and "PHASE 2R" 383. The first latch (eg, a sense amplifier) ​​may be configured to overpower a second latch (eg, a computing component) when a current provided by the first latch and to the second latch is sufficient to flip the second latch.

[0062] The sense amplifier 306 may be configured to overpower the computing component 331 by driving the voltage on the complementary sense line pair 305-1 and 305-2 to a maximum power supply voltage corresponding to the data value (e.g., driving the complementary sense line pair 305-1 and 305-2 to the rail), which may change the data value stored in the computing component 331. According to several embodiments, the computing component 331 may be configured to pass the data value to the complementary sense line pair 305-1 and 305-2 without driving the voltage of the complementary sense line pair 305-1 and 305-2 to the rail. Thus, the computing component 331 may be configured to not overpower the sense amplifier 306. For example, the data value on the complementary sense line pair 305-1 and 305-2 from the computing component 331 will not change the data value stored in the sense amplifier 306 until the sense amplifier is enabled.

[0063] Once the data value is loaded into the computational component 331 of the loadable shift register, the true data value is separated from the complementary data value by the first inverter 387. The data value can be right-shifted (e.g., right-shifted to an adjacent computational component 331) by alternating operations of the first right-shift transistor 381 and the second right-shift transistor 386, which can be achieved when the first right-shift signal control line "PHASE 1R" 382 and the second right-shift signal control line "PHASE 2R" 383 have periodic signals that turn high out of phase with each other (e.g., non-overlapping alternating square waves that are 180 degrees out of phase with each other). The data value can be latched into the corresponding computational component 331 of the loadable shift register while the signal "PHASE 1R" remains low and "PHASE 2R" remains high to maintain the data value latched in the computational component 331.

[0064] Rotation operations may be performed on groups of bits, such as padding bits of a byte-based first memory element and data bits of a byte-based second memory element. The bits of the byte-based first and second memory elements may be stored in memory cells coupled to the same access line (ROW X) of the memory array. For example, each byte-based memory element may be post-filled and include a padding bit and seven data bits. The padding bit may be similar to the first padding portion 121 of the byte-based first memory element 130 illustrated in FIG. 1 . The seven data bits may be similar to the second data portion 122 of the byte-based second memory element 132 illustrated in FIG. 1 .

[0065] The rotation operation may include copying a fill bit from a first memory cell in ROW X to a second memory cell coupled to a different access line (ROW Y) but to the same sense line (in the same column) as the first memory cell. The fill bit may be copied from the first memory cell to the second memory cell as follows. A signal may be applied to the access line corresponding to ROW X to access (e.g., select) the first memory cell. Next, sense amplifier 306 is enabled, which drives complementary sense lines 305-1 and 305-2 to the appropriate rail voltages (e.g., V DD and GND). Then, the fill value is latched in the sense amplifier 306. After the fill bit is latched in the sense amplifier 306, it can be transferred to the second memory cell by enabling the sense amplifier 306 and applying a signal to the access line corresponding to ROWY. As described above, the rotation operation can include a copy operation, a shift operation, and a reverse copy operation of the fill bit. Copying the fill bit from the first memory cell to the second memory cell includes a first copy operation of the rotation operation.

[0066] After the padding bits are copied from the first memory cell to the second memory cell, the padding bits may be right shifted seven times (corresponding to seven data bits) and stored back in ROW Y in a third memory cell coupled to a sense line different from the sense lines coupled to the first and second memory cells. Signaling for performing several right shifts is described below. Also, after the padding bits are copied from the first memory cell to the second memory cell, the seven data bits may be left shifted once (corresponding to one padding bit) within ROW X. Signaling for performing several left shifts is described below. After shifting the seven data bits, the padding bits may be copied from the third memory cell in ROW Y to a fourth memory cell in ROW X coupled to the same sense line (in the same column) as the third memory cell. Copying the padding bits from the third memory cell to the fourth memory cell includes a reverse copy operation of the rotation operation described above.

[0067] Figure 4 1 shows signaling that may be associated with a left shift of bits according to several embodiments of the invention. For example, the signaling may be associated with a first left shift of bits from a computation component 331 to an adjacent computation component 331, such as Figure 3 In the description. Figure 4 Contains corresponding to the Figure 3 2 and 3. The waveforms of the signals corresponding to the signal control lines “PHASE 1R” 382, ​​“PHASE 2R” 383, “PHASE 1L” 391 and “PHASE 2L” 392 are shown in FIG.

[0068] Figure 4The example shown in illustrates two left shifts such that the values ​​(eg, data bits or padding bits) stored in the computational component 331 corresponding to column “n” are left shifted to the computational component 331 corresponding to column “n−1”. At time T0, signal control lines "PHASE 2R" 383 and "PHASE 2L" 392 are enabled. Enabling signal control lines "PHASE 2R" 383 and "PHASE 2L" 392 at time T0 enables feedback on the latch of computing component 331 so that the value in computing component 331 is latched therein. As shown, at time T1, signal control lines "PHASE 2R" 383 and "PHASE 2L" 392 are disabled, which disables feedback on the latch of computing component 331 as described above. Then, at time T2, signal control line "PHASE 1L" 391 is enabled and at time T3, signal control line "PHASE 1L" 391 is disabled. Enabling signal control line "PHASE 1L" 391 causes the first left shift transistor 389 to turn on, which causes the value from node "SF1" to shift to the left at node "SF2". Then, at time T4, signal control line "PHASE 2L" 392 and the signal control line "PHASE2L" 392 is disabled at time T5. Enabling the signal control line "PHASE 2L" 392 causes the second left shift transistor 390 to be turned on, which causes the value at the node "ST2" to move left to the node "ST1", thereby completing the left shift from the computing component 331 corresponding to the column "n" to the computing component 331 corresponding to the column "n-1".

[0069] The above sequence (e.g., enabling / disabling the signal control line "PHASE 1L" 391 and then enabling / disabling the signal control line "PHASE 2L" 392) can be repeated to achieve a desired number of left shifts. For example, in this example, a second left shift is performed by enabling the signal control line "PHASE 1L" 391 at time T6 and disabling the signal control line "PHASE 1L" 391 at time T7. Subsequently, the signal control line "PHASE 2L" 392 is enabled at time T8 to complete the second left shift. After the second left shift, the signal control line "PHASE 2L" 392 remains enabled and the signal control line "PHASE 2R" 383 is enabled at time T9 so that feedback is enabled to latch the value in the computation component 331 latch.

[0070] although Figure 4382 is not shown, but several right shifts may be performed. To perform a first right shift, the signal control line "PHASE 1R" 382 is enabled at time T2 and the signal control line "PHASE 1R" 382 is disabled at time T3. Enabling the signal control line "PHASE 1R" 382 causes the first right shift transistor 381 to turn on, which causes the value at the node "SF1" to move right to the node "ST2" of the right adjacent computing component 331. Then, the signal control line "PHASE 2R" 382 is enabled at time T4 and the signal control line "PHASE 2R" 382 is disabled at time T5. Enabling the signal control line "PHASE 2R" 383 causes the second right shift transistor 386 to turn on, which causes the value from the node "SF1" to move right to the right node "SF2", thereby completing the right shift.

[0071] The above sequence (e.g., enabling / disabling signal control line "PHASE 1R" 382 and then enabling / disabling signal control line "PHASE 2R" 383) may be repeated to achieve a desired number of right shifts. For example, in this example, a second right shift is performed by enabling signal control line "PHASE 1R" 382 at time T6 and disabling signal control line "PHASE 1R" 382 at time T7. Subsequently, signal control line "PHASE 2R" 383 is enabled at time T8 to complete the second right shift. After the second right shift, signal control line "PHASE 1R" 382 remains disabled, signal control line "PHASE 2R" 383 remains enabled, and signal control line "PHASE 2L" 383 (e.g., at time T9) is enabled so that feedback is enabled to latch the value in the computation component 331 latch.

[0072] Although specific embodiments have been illustrated and described herein, it will be appreciated by those skilled in the art that arrangements for achieving the same result calculations may replace the specific embodiments shown. The present invention is intended to cover debugging or changes of one or more embodiments of the present invention. It should be understood that the above description is made in an illustrative and non-restrictive manner. After reviewing the above description, those skilled in the art should understand the combination of the above embodiments and other embodiments not explicitly described herein. The scope of one or more embodiments of the present invention includes other applications in which the above structures and methods are used. Therefore, the scope of one or more embodiments of the present invention should be determined with reference to the attached claims and the full range of equivalents to which such claims are entitled.

[0073] In the foregoing detailed description, some features are grouped together in a single embodiment for the purpose of simplifying the invention. This approach of the invention should not be interpreted as reflecting the intention that the disclosed embodiments of the invention must use more features than those explicitly stated in each claim. Rather, as reflected in the appended claims, the subject matter of the invention lies in less than all the features of the disclosed single embodiment. Therefore, the appended claims are hereby incorporated into the detailed description, with each claim standing on its own as a separate embodiment.

Claims

1. A method for memory alignment, comprising: The logical address of the data is translated into the physical address of the data based on: the number of data bits of each of the plurality of memory elements of the data; a number of padding bits for each of the plurality of memory elements; the number of memory elements for said data; and a value equal to the number of padding bits multiplied by the number of memory elements; the method further comprising: A logical operation is performed on the data at the physical address via a sense circuit.

2. The method according to claim 1, wherein the method further comprises: padding the data with the number of padding bits after performing the logical operation; and The filled data is sent to the host.

3. The method of claim 1 further comprising defining memory allocation at compile time, Wherein defining the memory allocation includes receiving a user-defined number of data bits in each of the memory elements. 4 . The method of claim 3 , wherein defining the memory allocation further comprises receiving a user-defined length of the memory allocation.

5. The method of claim 1 , further comprising storing logically adjacent bits in physically adjacent memory cells of a memory cell array according to a non-byte-based alignment, wherein the non-byte-based alignment comprises: at least one fill bit of a first memory element of the plurality of memory elements is logically adjacent to at least one fill bit of a second memory element of the plurality of memory elements; as well as At least one data bit of the first memory element is logically adjacent to at least one data bit of the second memory element at a location other than a byte boundary.

6. An apparatus for memory alignment, comprising: A controller configured to: The logical address of the memory allocated data is translated into the physical address of the data based on: the number of data bits per memory element in the memory allocation; the number of padding bits for each memory element in the memory allocation; and the number of memory elements from the starting point of the memory allocation to the logical address; and Such that the logical address is adjusted by a value equal to the number of padding bits multiplied by the number of memory elements, the number of memory elements being the number of memory elements from the starting point of the memory allocation to the logical address.

7. The apparatus of claim 6, wherein the controller is further configured to cause a logic operation to be performed on the data at the physical address using a sense circuit.

8. The apparatus of claim 7, wherein the controller is further configured to, after performing the logical operation, cause the number of padding bits to pad the data.

9. The apparatus of claim 6, wherein the controller is further configured to receive a length of the memory allocation at compile time.

10. The apparatus of claim 9, wherein the length of the memory allocation comprises a user-defined number of data bits in each memory element of the memory allocation.

11. The apparatus of claim 6, wherein the controller is further configured to receive a user-defined length of the memory allocation at compile time.

12. A non-volatile machine-readable medium storing instructions executable by a processing resource to: Converting a logical address of data of a first memory element of a memory allocation to a physical address of a memory device on which the data is stored based on: the number of data bits of the first memory element; The number of padding bits of the first memory element; and the number of memory elements from the starting point of the memory allocation to the logical address; and storing a plurality of memory elements of the memory allocation according to a non-byte based alignment, wherein in the non-byte-based alignment, at least one data bit of the first memory element is logically adjacent to at least one data bit of a second memory element of the memory allocation at a location of the memory allocation other than a byte boundary; and Wherein the at least one data bit of the first memory element and the at least one data bit of the second memory element are stored in physically adjacent memory cells of an array.

13. The medium of claim 12 further storing executable instructions to perform a logic operation on the data at the physical address by a sense circuit of the memory device.

14. The medium of claim 13 further storing executable instructions to cause the data to be filled with the number of padding bits after performing the logical operation.

15. The medium of claim 13 further storing executable instructions to, after performing the logic operation, perform a realignment operation to return the first memory element and the second memory element to a byte-based alignment.

16. The medium of claim 12 further storing executable instructions to perform a rotation operation on at least one of the padding bit quantities of the first memory element and the at least one data bit of the second memory element to perform an alignment operation from a byte-based alignment to the non-byte-based alignment on the first memory element and the second memory element.

17. The medium of claim 16 further storing instructions to shift the at least one data bit of the second memory element by a number of bits equal to the number of padding bits of the first memory element to perform the rotate operation.

18. The medium of claim 12, wherein the instructions are executable to store the plurality of memory elements of the memory allocation according to the non-byte-based alignment, comprising instructions executable to: The padding bits of the first memory element are shifted to convert the alignment of the first memory element and the second memory element from the byte-based alignment to the non-byte-based alignment.

19. The medium of claim 12, wherein the instructions executable to store the plurality of memory elements of the memory allocation according to the non-byte-based alignment comprises instructions executable to: The padding bits of the second memory element of the memory allocation are shifted to convert the alignment of the first memory element and the second memory element from the byte-based alignment to the non-byte-based alignment.

20. The medium of claim 19 further storing instructions executable to: operating a sense circuit of the memory device to perform a logic operation on the data at the physical address; and After performing the logic operation, operating the sensing circuit to: moving the padding bits; and The data bits are shifted so that the data bits are aligned with the byte boundary.