The present disclosure relates generally to semiconductor memory apparatuses and methods, and more particularly, to apparatuses and methods related to performing comparison operations in a memory.
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 can 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), among others. Non-volatile memory can provide persistent data by retaining stored data when not powered 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 (STT RAM), among others.
Electronic systems often include a number of processing resources (e.g., one or more processors), which may retrieve and execute instructions and store the results of the executed instructions to a suitable location. A processor can comprise a number of functional units (e.g., herein referred to as functional unit circuitry (FUC)) such as arithmetic logic unit (ALU) circuitry, floating point unit (FPU) circuitry, and/or a combinatorial logic block, for example, which can execute instructions to perform logical operations such as AND, OR, NOT, NAND, NOR, and XOR logical operations on data (e.g., one or more operands).
A number of components in an electronic system may be involved in providing instructions to the functional unit circuitry for execution. The instructions may be generated, for instance, by a processing resource such as a controller and/or host processor. Data (e.g., the operands on which the instructions will be executed to perform the logical operations) may be stored in a memory array that is accessible by the FUC. The instructions and/or data may be retrieved from the memory array and sequenced and/or buffered before the FUC begins to execute instructions on the data. Furthermore, as different types of operations may be executed in one or multiple clock cycles through the FUC, intermediate results of the operations and/or data may also be sequenced and/or buffered.
In many instances, the processing resources (e.g., processor and/or associated FUC) may be external to the memory array, and data can be accessed (e.g., via a bus between the processing resources and the memory array to execute instructions). Data can be moved from the memory array to registers external to the memory array via a bus.
The present disclosure includes apparatuses and methods related to comparison operations for memory. An example of logical values storable in a bit-vector (e.g., in a memory array) comprises a first address space comprising memory cells coupled to a sense line and to a first number of select lines. The memory cells of the first address space can store a first value. A second address space comprises memory cells coupled to the sense line and to a second number of select lines. The memory cells of the second address space can store a second value. The results of the comparison operation are stored in a third address space comprising memory cells coupled to the sense line and to a third number of select lines. The memory cells of the third address space can store a logical representation of the result of the comparison operation.
As used herein, the first value and the second value are numerical values that are compared against each other. That is, the first value can be compared to the second value and/or the second value can be compared to the first value. A comparison operation can determine whether the first value is greater than the second value, whether the second value is greater than the first value, and/or whether the first value is equal to the second value.
A number of embodiments of the present disclosure can provide a reduction of the number of computations and a time involved in performing a number of comparison operations (e.g., comparison functions) over previous approaches. The computations and the time can be reduced because the number of comparison operations can be performed in parallel (e.g., simultaneously). Performing the number of comparison operations in parallel can reduce the computations involved in performing the number of comparison operations. Performing a number of comparison operations in parallel can also reduce power consumption in performing a number of computations. For instance, a number of embodiments can provide for performing a comparison operation using data (e.g., a first value and a second value) stored logically (e.g., in binary form in a number of memory cells in a memory array). The embodiment can perform a comparison operation without transferring data out of the memory array and/or sensing circuitry via a bus (e.g., data bus, address bus, control bus, etc.). A comparison operation can involve performing a number of logical operations (e.g., AND, OR, XOR, etc.). However, embodiments are not limited to these examples.
In previous approaches, data (e.g., a first value and a second value) may be transferred from the array and sensing circuitry to a number of registers via a bus comprising input/output (I/O) lines. The number of registers can be used by a processing resource such as a processor, microprocessor, and/or compute engine, which may comprise ALU circuitry and/or other functional unit circuitry configured to perform the appropriate logical operations. However, only a single comparison function can be performed by the ALU circuitry. Transferring data to/from memory from/to registers via a bus can involve significant power consumption and time requirements. Even if the processing resource is located on a same chip as the memory array, significant power can be consumed in moving data out of the array to the compute circuitry, which can involve performing a sense line address access (e.g., firing of a column decode signal) in order to transfer data from sense lines onto I/O lines, moving the data to the array periphery, and providing the data to a register in association with a comparison function, for instance.
In the following detailed description of the present disclosure, reference is made to the accompanying drawings that form a part hereof, and in which is shown by way of illustration how one or more embodiments of the disclosure may be practiced. These embodiments are described in sufficient detail to enable those of ordinary skill in the art to practice the embodiments of this disclosure, and it is to be understood that other embodiments may be utilized and that process, electrical, and/or structural changes may be made without departing from the scope of the present disclosure. As used herein, the designators “N,” “M,” “F,” “R,” and “P” particularly with respect to reference numerals in the drawings, indicates that a number of the particular feature so designated can be included. As used herein, “a number of” a particular thing can refer to one or more of such things (e.g., a number of memory arrays can refer to one or more memory arrays).
The figures herein follow a numbering convention in which the first digit or digits correspond to the drawing figure number and the remaining digits identify an element or component in the drawing. Similar elements or components between different figures may be identified by the use of similar digits. For example, 204 may reference element “04” in
System 100 includes a host 110 coupled to memory device 160, which includes a memory array 130. Host 110 can be a host system such as a personal laptop computer, a desktop computer, a digital camera, a mobile telephone, or a memory card reader, among various other types of hosts. Host 110 can include a system motherboard and/or backplane and can include a number of processing resources (e.g., one or more processors, microprocessors, or some other type of controlling circuitry). The system 100 can include separate integrated circuits or both the host 110 and the memory device 160 can be on the same integrated circuit. The system 100 can be, for instance, a server system and/or a high performance computing (HPC) system and/or a portion thereof. Although the example shown in
For clarity, the system 100 has been simplified to focus on features with particular relevance to the present disclosure. The memory array 130 can be a DRAM array, SRAM array, STT RAM array, PCRAM array, TRAM array, RRAM array, NAND flash array, and/or NOR flash array, for instance. The array 130 can comprise memory cells arranged in rows coupled by select lines (which may be referred to herein as word lines or access lines) and columns coupled by sense lines (which may be referred to herein as digit lines or data lines). Although a single array 130 is shown in
The memory device 160 includes address circuitry 142 to latch address signals provided over an I/O bus 156 (e.g., a data bus) through I/O circuitry 144. Address signals are received and decoded by a row decoder 146 and a column decoder 152 to access the memory array 130. In a number of examples, address signals can be decoded by more or fewer row decoders. For example, memory device can include three row decoders. As used herein, a row decoder may be referred to as a select decoder. Data can be read from memory array 130 by sensing voltage and/or current changes on the sense lines using sensing circuitry 150. The sensing circuitry 150 can read and latch a page (e.g., row) of data from the memory array 130. The I/O circuitry 144 can be used for bi-directional data communication with host 110 over the I/O bus 156. The write circuitry 148 is used to write data to the memory array 130.
In a number of examples, the term decoding can include a pre-decoding, final-decoding, and/or any other type of decoding that is carried out in row decoder 146 and/or column decoder 152. In a number of examples, the term pre-decoding includes circuitry implementing pre-decoding process such that addresses are not discretely addressed. The term pre-decoding and decoding can be used herein to differentiate between the terms discretely addressable lines, and/or individually addressable lines.
In a number of examples, a number of select lines and/or sense lines in memory array 130 can be individually addressed and/or decoded independently from the other select lines and/or sense lines of memory array 130. As used herein, a discrete address can be an address that does not require decoding in order to activate a particular select line. For example, address circuitry 142 can receive an address associated with a number of select lines that can be activated without decoding an address associated with the number of select lines. In a number of examples, individually addressed rows and/or discretely addresses rows can be referred to as fully decoded rows. The memory cells associated with memory array 130 can comprise memory cells otherwise used in DRAM arrays, SRAM arrays, STT RAM arrays, PCRAM arrays, TRAM arrays, RRAM arrays, NAND flash arrays, and/or NOR flash arrays, among other memory configurations, for instance.
Control circuitry 140 decodes signals provided by control bus 154 from the host 110. These signals can include chip enable signals, write enable signals, and address latch signals that are used to control operations performed on the memory array 130, including data read, data write, and data erase operations. In various embodiments, the control circuitry 140 is responsible for executing instructions from the host 110. The control circuitry 140 can be a state machine, a sequencer, or some other type of controller.
An example of the sensing circuitry 150 is described further below in association with
In various previous approaches, data associated with a comparison operation, for instance, would be read from memory via sensing circuitry and provided to an external ALU. The external ALU circuitry would perform the comparison functions using the operands and the result could be transferred back to the array via the local I/O lines. In contrast, in a number of embodiments of the present disclosure, sensing circuitry (e.g., 150) is configured to perform a comparison operation on data stored in memory cells in memory array 130 and store the result back to the array 130 without enabling a local I/O line coupled to the sensing circuitry.
As such, in a number of embodiments, registers and/or an ALU external to array 130 and sensing circuitry 150 may not be needed to perform the comparison function as the sensing circuitry 150 can perform the appropriate computations involved in performing the comparison function using the address space of memory array 130. Additionally, the comparison function can be performed without the use of an external processing resource.
In a number of embodiments, the memory cells 270 are destructive read memory cells (e.g., reading the data stored in the cell destroys the data such that the data originally stored in the cell is refreshed after being read). The memory cells 270 are arranged in rows coupled by select lines 204-0 (Row0), 204-1 (Row 1), 204-2 (Row2), . . . , 204-N-1 (RowN-1), 204-N (RowN) (e.g., referred to collectively as select lines 204) and columns coupled by sense lines (e.g., digit lines) 205-0 (D) and 205-1 (D_) (e.g., referred to collectively as sense lines 205). In a number of embodiments, the array 230 can include address spaces that are coupled to separate circuitry.
In this example, each column of cells is associated with a pair of complementary sense lines 205-0 (D) and 205-1 (D_). The structure illustrated in
In a number of examples, memory cells 270 that are coupled to sense line 205-0 can store bits. The bits can represent a logical representation of a value and/or a number of values (e.g., first value, second value, a temporary value, and/or result value). For example, a first value can be represented by a three bit-vector that can be stored in memory cell 270-0, memory cell 270-1, and memory cell 270-2 along sense line 205-0. In a number of examples, a bit-vector can be represented by more or fewer bits than those discussed in
Each bit-vector logical representation of a value can be indexed. For example, a bit stored in memory cell 270-0 can be associated with a first index, a bit stored in memory cell 270-1 can be associated with a second index, and a bit stored in memory cell 270-2 can be associated with a third index. As an example, the third index can indicate a most significant bit (MSB) of a stored bit-vector and the first index can indicate a least significant bit (LSB) of the stored bit-vector. In a number of examples, a comparison operation can be performed by comparing the bits that represent a logical representation of the first value to the bits that represent a logical representation of the second value. The comparison operation can be performed by first comparing a most significant bit from the logical representation of the first value to a most significant bit from the logical representation of the second value. The comparison operation can continue by comparing a next most significant bit from the logical representation of the first value to a next most significant bit from the logical representation of the second value. A next most significant bit can represent a bit that is associated with an index that is decremented every time an iteration of the comparison operation is performed.
The indexing used in association with
A number of values can be stored in each of the sense lines of memory array 230. For example, memory cells 270-0, 270-1, 270-2 can store a number of bits that represent a first value, memory cells 270-3, 270-4, 270-5 can store a number of bits that represent a second value, memory cell 270-6 can store a number of bits that represent a first temporary value, memory cell 270-7 can store a number of bits that represent a second temporary value, and memory cells 270-8, 270-9 can store a number of bits that represent a result of the comparison operation while memory cell 270-4 to memory cell 270-9 are not illustrated in
In a number of examples, the memory cells coupled to a select line 204-0 and to a number of sense lines (e.g., sense line 205-0 and sense line 205-1) can be activated in parallel. Furthermore, memory cell 270-0, memory cell 270-1, memory cell 270-2, memory cell 270-3 can also be activated in parallel by activating select line 204-0, select line 204-1, select line 204-2, and select line 204-3 in parallel. In a number of examples, independently addressed select lines 204 and/or sense lines 205 can be activated in parallel to activate a number of memory cells in parallel.
The sensing circuitry 250 comprises a sense amplifier 206 and a compute component 231. The sensing circuitry 250 can be sensing circuitry 150 shown in
In a number of embodiments, a compute component 231 can comprise a number of transistors formed on pitch with the transistors of the sense amplifier 206 and/or the memory cells 270 of the array (e.g., 230), which may conform to a particular feature size (e.g., 4F2, 6F2, etc.). As used herein, on pitch is used to describe circuitry that is coupled to a same sense line along a same column. As described further below, the compute component 231 can, in conjunction with the sense amplifier 206, operate to perform a comparison operation using data from the memory cells 270 in the array 230 as input and store the result back to the memory cells 270 in the array 230 without transferring the data via a sense line address access (e.g., without firing a column decode signal such that data is transferred to circuitry external from the array and sensing circuitry via local I/O lines). As such, a number of embodiments of the present disclosure can enable performing a comparison operation and computations associated therewith using less power than various previous approaches. Additionally, since a number of embodiments eliminate the need to transfer data across local I/O lines in order to perform compute functions, a number of embodiments can enable an increased parallel processing capability using compute components 231 and the memory cells 270 as compared to previous approaches.
In the example illustrated in
The transistors 207-1 and 207-2 can be referred to as pass transistors, which can be enabled via respective signals 211-1 (Passd) and 211-2 (Passdb) in order to pass the voltages or currents on the respective sense lines D and D_ to the inputs of the cross coupled latch comprising transistors 208-1, 208-2, 209-1, and 209-2 (e.g., the input of the secondary latch). In this example, the second source/drain region of transistor 207-1 is coupled to a first source/drain region of transistors 208-1 and 209-1 as well as to the gates of transistors 208-2 and 209-2. Similarly, the second source/drain region of transistor 207-2 is coupled to a first source/drain region of transistors 208-2 and 209-2 as well as to the gates of transistors 208-1 and 209-1.
A second source/drain region of transistor 208-1 and 208-2 is commonly coupled to a negative control signal 212-1 (Accumb). A second source/drain region of transistors 209-1 and 209-2 is commonly coupled to a positive control signal 212-2 (Accum). The Accum signal 212-2 can be a supply voltage (e.g., Vcc) and the Accumb signal can be a reference voltage (e.g., ground). Enabling signals 212-1 and 212-2 activate the cross coupled latch comprising transistors 208-1, 208-2, 209-1, and 209-2 corresponding to the secondary latch. The activated cross coupled latch operates to amplify a differential voltage between common node 217-1 and common node 217-2 such that node 217-1 is driven to one of the Accum signal voltage and the Accumb signal voltage (e.g., to one of Vcc and ground), and node 217-2 is driven to the other of the Accum signal voltage and the Accumb signal voltage. As described further below, the signals 212-1 and 212-2 are labeled “Accum” and “Accumb” because the secondary latch can serve as an accumulator while being used to perform a logical operation (e.g., a comparison operation). In a number of embodiments, an accumulator comprises the cross coupled transistors 208-1, 208-2, 209-1, and 209-2 forming the secondary latch as well as the pass transistors 207-1 and 207-2. As described further herein, in a number of embodiments, a compute component comprising an accumulator coupled to a sense amplifier can be configured to perform a logical operation that comprises performing an accumulate operation on a data value represented by a signal (e.g., voltage or current) on at least one of a pair of complementary sense lines.
The compute component 231 also includes inverting transistors 214-1 and 214-2 having a first source/drain region coupled to the respective digit lines D and D_. A second source/drain region of the transistors 214-1 and 214-2 is coupled to a first source/drain region of transistors 216-1 and 216-2, respectively. The gates of transistors 214-1 and 214-2 are coupled to a signal 213 (InvD). The gate of transistor 216-1 is coupled to the common node 217-1 to which the gate of transistor 208-2, the gate of transistor 209-2, and the first source/drain regions of transistors 208-1 and 209-1 are also coupled. In a complementary fashion, the gate of transistor 216-2 is coupled to the common node 217-2 to which the gate of transistor 208-1, the gate of transistor 209-1, and the first source/drain regions of transistor 208-2 and 209-2 are also coupled. As such, enabling signal InvD serves to invert the data value stored in the secondary latch and drives the inverted value onto sense lines 205-0 and 205-1.
In
As an example, the compute component 231 can use a first value and a second value stored in a first portion and a second portion of a number of memory cells 270 that are coupled to sense line 205-0. The first portion can include a first number of memory cells, (e.g., memory cells 270-0, 270-1, 270-2) in a first address space. The second portion can include a second number of memory cells (e.g., memory cells 270-3, 270-4, 270-5) in a second address space. A result of the comparison operation can be stored in a third portion of memory cells 270 (e.g., memory cells 270-8, 270-9) in a third address space.
Performing a comparison operation can include clearing the first portion of the memory cells 270 before a logical representation of the first value is stored in the first portion of the memory cells 270. Performing a comparison operation can also include clearing the second portion of the memory cells 270 before a logical representation of the second value is stored in the second portion of the memory cells 270. Performing a comparison operation can also include clearing the third portion of the memory cells 270 before the result of the comparison operation are stored in the third portion of the memory cells 270. Performing a comparison operation can further include clearing any other portions of the memory cells 270 before intermediary values (e.g., temporary values) used in performing the comparison operation are stored in the other portion of the memory cells 270. Clearing a portion of memory cells 270 comprises storing a number of pre-defined bits in the selected portions of memory cells 270. The pre-defined bits can include zero data values (e.g., 0 bits), one data values (e.g., 1 bits) and/or any combination of zero, one, and/or other data values.
A comparison operation can include determining whether the first value is greater than the second value. In a number of examples, determining whether the first value is greater than the second value only identifies whether the first value is greater, but does not identify whether the second value is greater than the first value and/or if the first value is equal to the second value. For example, if the first value is not greater than the second value, then the second value can be greater than the first value or the first value can be equal to the second value.
Accordingly, a comparison operation can also include determining whether the second value is greater than the first value. In a number of examples, however, determining whether the second value is greater than the first value only identifies whether the second value is greater, but does not identify whether the first value is greater than the second value and/or if the second value is equal to the first value.
Hence, a comparison operation can also include determining whether the first value and the second value are equal. In a number of examples, determining whether the first value is equal to the second value only identifies whether the first value and the second value are equal, but does not identify whether the first value is greater than the second value or if the second value is greater than the first value.
As such, the comparison operations, described above, can be divided into iterations of computations. As used herein, computations can describe computation operations involved in performing the comparison operation. For example, a disjunction (e.g., OR) operation can be a computation and/or an addition operation can be a computation, among other computations. An iteration of the comparison can be associated with an index. As such, each time an index is incremented or decremented a new iteration of the comparison operation can be initiated.
In a binary example, it can be determined whether the first value is equal to the second value by determining whether bits that are stored in the first portion of memory cells are equal to bits that are stored in the second portion of memory cells. The corresponding bits from the first portion of memory cells can be compared to the corresponding bits from the second portion of memory cells. If a bit from the logical representation of the first value is equal to a corresponding bit from the logical representation of the second value, and if all previous bits from the logical representation of the first value are equal to all corresponding bits from the logical representation of the second value, then a number of bits can be stored in a third portion of memory cells 270 (e.g., third address space) that indicates that the first value is equal to the second value.
The comparison operation can include determining whether more significant bits from the number of bit-pairs that are stored in the first portion of memory cells 270 and the second portion of memory cells 270 are different before determining whether less significant bits from the number of bit-pairs that are stored in the first portion of memory cells 270 and the second portion of memory cells 270 are different. For example, in a three bit value, the comparison operation can include determining whether a bit stored in memory cell 270-2 from a number of bits that are a logical representation of the first value is different than a bit stored in memory cell 270-5 from a number of bits that are a logical representation of the second value before determining whether a bit stored in memory cell 270-0 from the number of bits that are a logical representation of the first value is different than a bit stored in memory cell 270-3 from the number of bits that are a logical representation of the second value. In the above example, the bit stored in memory cell 270-2 can be more significant than a bit stored in memory cell 270-0 and a bit stored in memory 270-5 can be more significant than a bit stored in memory cell 270-3.
Determining whether bits are different can include, determining whether the bit from the logical representation of the first value is greater than the corresponding bit from the logical representation of the second value if the bit from the logical representation of the first value is not equal to the corresponding bit from the logical representation of the second value. If the bit from the logical representation of the first value is greater than the corresponding bit from the logical representation of the second value, then a number of bits can be stored in a third portion of the number of memory cells (e.g., a third address space) that indicates that the first value is greater than the second value. If the corresponding bit from the logical representation of the second value is greater than the bit from the logical representation of the first value, then a number of bits can be stored in a number of memory cells in the third address space that indicates that the second value is greater than the first value.
Embodiments of the present disclosure are not limited to the particular sensing circuitry configuration illustrated in
Example pseudocode providing a summary for performing comparison operations in a memory is given as follows:
In a number of embodiments, a comparison operation can be performed using a clear operation, a write operation, a read operation, a wired OR operation, an addition operation, a subtraction operation, and/or an invert operation, among other operations that can be used to perform the comparison operation. The above operations can be performed using Boolean operations and non-Boolean operations. In a number of embodiments, Boolean and non-Boolean operations can be performed using logical operations (e.g., NAND, AND, NOR, XOR, OR, etc.). For example, performing a comparison operation can include performing an addition operation, a subtraction operation, an XOR operation, an OR operation, an AND operation, and/or a NOT operation, among other operations that can be used to perform the comparison operation. Performing an addition operation can include performing an OR operation, a NAND operation, and/or a AND operation, among other operations that can be used to perform an addition operation. A subtraction operation can include performing a NAND operation, an OR operation, an AND operation, and/or an XOR operation, among other operation that can be used to perform the subtraction operation. An example of performing NAND, AND, NOR, XOR and OR logical operations in conjunction with the compute component 231 is given in
A comparison operation can include creating a tmp value and a tmpset value (e.g., “tmp=getTemp(0)” and “tmpset=getTmp(1)”). The tmp value and the tmpset value can be values that are used as temporary storage.
The tmpset value represents whether it has been determined that the first value is not equal to the second value. That is, the tmpset value represents whether a difference between the first value and the second value has been identified.
The tmp value represents whether the next most significant bit from the first value is not equal to the corresponding next most significant bit from the second value.
A bit that is a logical representation of the tmp value can be set to one (e.g., “1”) if there is a difference between any of the associated bits that represent the first value and the second value or can be set to zero (e.g., “0”) if a difference between the associated bits that represent the first value and the second value has not been identified, if there is not a difference between the associated bits that represent the first value and the second value, and/or if a difference between the associated bits does not contribute to the comparison operation. The tmpset value can be set to one (e.g., “1”) if there is a difference between the first value and the second value or a zero (e.g., “0”) if a difference between the first value and the second value has not been identified.
In a number of examples, the tmp value and/or the tmpset value can be stored as a single bit in a single memory cell or the tmp value and/or the tmpset value can be stored using a number of bits in a number of memory cells. In a number of examples, the tmp value and the tmpset value can be represented as a single value and/or as distinct values. As used in the example shown in
A comparison operation can include clearing (e.g., ClearOpenRow) a compute component 231 and/or an accumulator that is in the compute component 231 that is coupled to the memory array 230. A comparison operation can also include clearing a number of memory cells before a value is stored in the memory cells. The cleared compute component 231 can be used to clear the memory cells. As used herein, clearing a memory cell can include storing a predefined bit in a memory cell. For example, the comparison operation can include clearing the tmpset value and/or a result value, among other values that can be cleared. A value can be cleared, for example, by storing a zero (e.g., “0”) bit in the memory cells that store a logical representation of the value.
As used herein, the result value is also referred to as a destination value. A first value can also be referred to as a srcA value as referred to in the above pseudocode. Moreover, a second value can be referred to as a srcB value as referred to in the above pseudocode. The first value and the second value can be represented using a number of bits (e.g., 1, 2, 4, 8, 16, 32, or 64 bits, among other number of bits). For example, each of the first value and the second value can be logically represented by three bits that can be stored in three memory cells.
A comparison operation can perform a number of calls for each bit index that is stored in a number of memory cells 270 by using a FOR loop. As used herein, the number of calls that are performed for each bit index that is stored in the number of memory cells 270 are references to each iteration of the comparison operation. For example, a number of calls can be implemented three times in three iterations where a bit-vector that is a logical representation of the first value includes three bits. A FOR loop (e.g., for (i=nbits−1; i>=0; i—)) can comprise setting an index to a most significant index (e.g., i=nbits−1). For example, if the first value and the second value are each represented using a respective three bit-vector, then an index can be set to two (e.g., i=3−1). The index can be decremented by one (e.g., i—) each time the number of calls are implemented. That is, the index can be decremented by one each time an iteration of the FOR loop is completed. The comparison operation can conclude when the index is less than zero (e.g., i<0). That is, the comparison operation can continue while the index is greater than or equal to zero (e.g., i>=0).
Performing a comparison operation can include comparing associated bits from the first value and the second value to determine whether the first value is greater than the second value, whether the second value is greater than the first value, and/or whether the first value is equal to the second value. For example, a first value can be equal to a second value if bit values that are stored in the first portion of the number of memory cells are equal to bit values that are stored in the second portions in the number of memory cells. That is, the corresponding bits from the first portion of the number of memory cells can be compared to corresponding bits from the second portion of the number of memory cells. For example, a “1” bit can be treated as larger than a “0” bit. A “0” bit can be treated as equal to a “0” bit.
Corresponding bits from the first value and the second value can include bits that are associated with a same index. For example, bits with a higher index can be compared before bits with a lower index are compared. That is, it can be determined whether bits with a first index from the first value and the second value are equal before determining whether bits with a second index are equal. In a number of examples the first index can be more significant index than a second index.
A number of calls that are performed for each bit index can include reading a first value from the memory array. Reading a value from memory can include latching each of the bits stored in a number of memory cells 270 that comprise a logical representation of the value into the sense amplifier 206. The bits that are stored in a number of memory cells 270 can be latched in order from most significant to least significant. In a number of examples, a next most significant bit can be a bit that has not been compared and/or latched for a next iteration from a number of iterations that are associated with the comparison operation. For example, during a first iteration of the comparison operation a read operation (e.g., ReadRow(srcA+i)) can latch a bit with a third index from a bit-vector that is stored in a number of memory cells that store a logical representation of the first value. During a second iteration of the comparison operation a read operation (e.g., “ReadRow(scrA+i)) call can latch a bit with a second index. During a third iteration of the compare operation a read operation (e.g., ReadRow(scrA+i)) can latch a bit with a first index.
A number of calls that are performed for each bit index associated with the first value and the second value can include performing an XOR operation (e.g., XorRow(srcB+i)) using, as input, a next most significant bit from the first value and a next most significant bit from the second value. The above XOR operation (e.g., XorRow(srcB+i)) can be used to compare the first value against the second value to determine if the first value is equal to the second value. For example, during a first iteration of a comparison operation, a next most significant bit with a third index from the number of memory cells that store the first value can be compared against a next most significant bit with a third index from the number of memory cells that store the second value to determine wither the third indexed bits are equal to each other.
The number of calls that are performed for each bit index can include performing an XOR operation (e.g., XorRow(tmpset)) using the results of the previous XOR operation (e.g., XorRow(srcB+i)) and the corresponding tmpset value as input to determine whether a solution to the comparison operation has already been identified. A solution to the comparison operation can be identified when the comparison operation identifies the first value as being greater than the second value, the second value as being greater than the first value, or the first value being equal to the second value.
A number of calls that are performed for each bit index can include performing a write operation (e.g., WriteRow(tmp)) to store the results of the previous XOR operation (e.g., XorRow(tmpset)) in a memory cell 270 that stores a logical representation of a tmp value. The write operation (e.g., WriteRow(tmp)) can store a one (e.g., “1”) in an associated memory cell if the next most significant bit from the first value is not equal to the next most significant bit from the second value.
A number of calls that are performed for each bit index can include performing an OR operation (e.g., OrRow(tmpset)) using the tmp value and the tmpset value as input. The number of calls can also include a write operation (e.g., WriteRow(tmpset)) to store the results of the OR operation (e.g., OrRow(tmpset)) to the memory cell 270 that stores a logical representation of the tmpset value. The previous OR operation (e.g., OrRow(tmpset)) and the write operation (e.g., WriteRow(tmpset)) can update the tmpset value to identify whether a solution to the comparison operation will be identified in a current iteration of the comparison operation.
A number of calls that are performed for each bit index can include a read operation (e.g., ReadRow(srcA+i)) to latch a value stored in the memory cell that is associated with the next most significant bit of the first value. The number of calls can also include an AND operation (e.g., AndRow(tmp)) using the next most significant bit from the first value and the tmp value as input to determine whether the first value is greater than the second value. The number of calls that are performed for each bit index can also include an OR operation (e.g., OrRow(dest)) using, as input, the results of the previous AND operation (e.g., AndRow(tmp)) and a bit stored in a memory cell that is associated with the first value and stores a result value. The result of the previous OR operation (e.g., OrRow(dest)) can be stored (e.g., WriteRow (dest)) in the memory cell that stores a result value and that is associated with the first value.
A number of calls that are performed for each bit index can also include a read operation (e.g., ReadRow(srcB+i)) to latch a value stored in the memory cell that is associated with the next most significant bit of the second value. The number of calls that are performed for each bit index can also include an AND operation (e.g., AndRow(tmp)) using, as input, the next most significant bit from the second value and the tmp value to determine whether the second value is greater than the first value. The number of calls that are performed for each bit index can also include an OR operation (e.g., OrRow(dest+1)) using, as input, the result of the previous AND operation (e.g., AndRow(tmp)) and a bit stored in a memory cell that is associated with the second value and that stores a result value. The result of the previous OR operation (e.g., OrRow(dest+1)) can be stored (e.g., WriteRow(dest+1)) in the memory cell that is associated with the second value and that stores a result value.
A number of calls that are performed for each bit index can include a break operation (e.g., break) to exit the FOR loop. The break operation can exit the FOR loop based on the result of a WIRED OR operation (e.g., !ACC_contains_any_zeroes( )) to conclude the compare operation. As used herein, a NOT operation is represented by the “!” symbol in the pseudocode above. As used herein a WIRED OR operation can include determining whether a number of compare operations for a number of first values and a number of second values has concluded. A WIRED OR operation is further described in
In the example illustrated in
At time t1, the equilibration signal 226 is deactivated, and then a selected row is activated (e.g., the row corresponding to a memory cell whose data value is to be sensed and used as a first input). Signal 204-0 represents the voltage signal applied to the selected row (e.g., row 204-0). When row signal 204-0 reaches the threshold voltage (Vt) of the access transistor (e.g., 202) corresponding to the selected cell, the access transistor turns on and couples the sense line D to the selected memory cell (e.g., to the capacitor 203 if the cell is a 1T1C DRAM cell), which creates a differential voltage signal between the sense lines D and D_ (e.g., as indicated by signals 205-0 and 205-1, respectively) between times t2 and t3. The voltage of the selected cell is represented by signal 203. Due to conservation of energy, creating the differential signal between D and D_ (e.g., by coupling the cell to sense line D) may not significantly consume energy, since the energy associated with activating/deactivating the row signal 204 can be amortized over the plurality of memory cells coupled to the row.
At time t3, the sense amplifier (e.g., 206) activates (e.g., a positive control signal 290 (e.g., corresponding to ACT 590 shown in
At time t4, the pass transistors 207-1 and 207-2 are enabled (e.g., via respective Passd and Passdb control signals applied to control lines 211-1 and 211-2, respectively) as shown in
At time t6, the pass transistors 207-1 and 207-2 are disabled (e.g., turned off); however, since the accumulator control signals 212-1 and 212-2 remain activated, an accumulated result is stored (e.g., latched) in the secondary latch (e.g., accumulator). At time t7, the row signal 204-0 is deactivated, and the array sense amps are disabled at time t8 (e.g., sense amplifier control signals 228 and 290 are deactivated).
At time t9, the sense lines D and D_ are equilibrated (e.g., equilibration signal 226 is activated), as illustrated by sense line voltage signals 205-0 and 205-1 moving from their respective rail values to the equilibration voltage 225 (VDD/2). The equilibration consumes little energy due to the law of conservation of energy. Equilibration can involve shorting the complementary sense lines D and D_ together at an equilibration voltage, which is VDD/2, in this example. Equilibration can occur, for instance, prior to a memory cell sensing operation.
As shown in timing diagrams 285-2 and 285-3, at time t1, equilibration is disabled (e.g., the equilibration signal 226 is deactivated), and then a selected row is activated (e.g., the row corresponding to a memory cell whose data value is to be sensed and used as an input such as a second input, third input, etc.). Signal 204-1 represents the voltage signal applied to the selected row (e.g., row 204-1). When row signal 204-1 reaches the threshold voltage (Vt) of the access transistor (e.g., 202) corresponding to the selected cell, the access transistor turns on and couples the sense line D to the selected memory cell (e.g., to the capacitor 203 if the cell is a 1T1C DRAM cell), which creates a differential voltage signal between the sense lines D and D_ (e.g., as indicated by signals 205-0 and 205-1, respectively) between times t2 and t3. The voltage of the selected cell is represented by signal 203. Due to conservation of energy, creating the differential signal between D and D_ (e.g., by coupling the cell to sense line D) may not consume energy, since the energy associated with activating/deactivating the row signal 204 can be amortized over the plurality of memory cells coupled to the row.
At time t3, the sense amplifier (e.g., 206) activates (e.g., the positive control signal 290 goes high, and the negative control signal 228 goes low), which amplifies the differential signal between D and D_, resulting in a voltage (e.g., VDD) corresponding to a logic 1 or a voltage (e.g., ground) corresponding to a logic 0 being on sense line D (and the other voltage being on complementary sense line D_), such that the sensed data value is stored in the primary latch of sense amplifier 206. The primary energy consumption in this operation occurs in charging the sense line D (205-0) from the equilibration voltage VDD/2 to the rail voltage VDD.
As shown in timing diagrams 285-2 and 285-3, at time t4 (e.g., after the selected cell is sensed), only one of control signals 211-1 (Passd) and 211-2 (Passdb) is activated (e.g., only one of pass transistors 207-1 and 207-2 in
Since the accumulator was previously enabled, activating only Passd (e.g., 211-1 in
Similarly, in an example OR/NOR operation (e.g., timing diagram 285-3 in
At the conclusion of an intermediate operation phase such as that shown in
A NAND operation can be implemented, for example, by storing the result of the R−1 iterations for an AND operation in the sense amplifier, then inverting the sense amplifier before conducting the last operation phase to store the result (described below). A NOR operation can be implemented, for example, by storing the result of the R−1 iterations for an OR operation in the sense amplifier, then inverting the sense amplifier before conducting the last operation phase to store the result (described below).
The last operation phases of
As shown in timing diagrams 285-4 and 285-5, at time t1, equilibration is disabled (e.g., the equilibration signal 226 is deactivated) such that sense lines D and D_ are floating. At time t2, either the InvD signal 213 or the Passd and Passdb signals 211 are activated, depending on which logical operation is being performed. In this example, the InvD signal 213 is activated for a NAND or NOR operation (see
Activating the InvD signal 213 at time t2 (e.g., in association with a NAND or NOR operation) enables transistors 214-1/214-2 in
For a NOR operation, if any of the memory cells sensed in the prior operation phases (e.g., the initial operation phase and one or more intermediate operation phases) stored a logic 1 (e.g., if any of the R-inputs of the NOR operation were a logic 1), then the sense line D_ will carry a voltage corresponding to logic 1 (e.g., VDD) and sense line D will carry a voltage corresponding to logic 0 (e.g., ground). For this NOR example, if all of the memory cells sensed in the prior operation phases stored a logic 0 (e.g., all of the R-inputs of the NOR operation were logic 0), then the sense line D_ will carry a voltage corresponding to logic 0 and sense line D will carry a voltage corresponding to logic 1. At time t3, the primary latch of sense amplifier 206 is then activated and the sense line D now contains the NORed result of the respective input data values as determined from the memory cells sensed during the prior operation phases. As such, sense line D will be at ground if any of the input data values are a logic 1 and sense line D will be at VDD if all of the input data values are a logic 0.
Referring to
For an OR operation, if any of the memory cells sensed in the prior operation phases (e.g., the first operation phase of
The result of the R-input AND, OR, NAND, and NOR operations can then be stored back to a memory cell of array 230. In the examples shown in
Timing diagrams 285-4 and 285-5 illustrate, at time t3, the positive control signal 290 and the negative control signal 228 being deactivated (e.g., signal 231 goes high and signal 228 goes low) to activate the sense amplifier 206. At time t4 the respective signal (e.g., 213 or 211) that was activated at time t2 is deactivated. Embodiments are not limited to this example. For instance, in a number of embodiments, the sense amplifier 206 may be activated subsequent to time t4 (e.g., after signal 213 or signals 211 are deactivated).
As shown in
In a number of embodiments, sensing circuitry such as that described in
Also, one of ordinary skill in the art will appreciate that the ability to perform R-input logical operations (e.g., NAND, AND, NOR, OR, etc.) can enable performance of more complex computing functions such as addition, subtraction, multiplication, and division among other primary math functions and/or pattern compare functions. For example, a series of NAND operations can be combined to perform a full adder function. As an example, if a full adder requires 12 NAND gates to add two data values along with a carry in and carry out, a total of 384 NAND operations (12×32) could be performed to add two 32 bit numbers. Embodiments of the present disclosure can also be used to perform logical operations that may be non-Boolean (e.g., copy, compare, etc.).
Additionally, in a number of embodiments, the inputs to a logical operation performed may not be data values stored in the memory array 130 to which the sensing circuitry (e.g., 150 in
Embodiments of the present disclosure are not limited to the particular sensing circuitry configuration illustrated in
The example logic operation phases described in association with
The array in
In operation, sense amps (e.g., 206-1 to 206-P) can sense a data value (e.g., a logic “1” or “0”) stored in a memory cell (e.g., 270-0 to 270-F) by amplifying a differential signal (e.g., voltage or current) on the complementary sense lines (e.g., 205-0 to 205-M) responsive to activation of a select line (e.g., word line 204). As an example, the sense amps 206-1 to 206-P can drive one of the sense lines (e.g., D from
However, in various instances, it can be useful to selectively activate more than one of the column decode lines (e.g., 264-1 to 264-R). For example, selectively activating a number of column decode lines can be done in association with performing a WIRED OR operation in accordance with a number of embodiments described herein. For instance, in a number of embodiments of the present disclosure, the data path portion shown in
In an example operation, control circuitry (e.g., 140 in
In a number of embodiments, the control circuitry (e.g., 140 in
Activation of column decode line CD-1 turns on transistors 218-1 and 218-2, which provides voltages corresponding to the data stored in sense amplifier 206-1 to IO lines 266-1 and 266-2. As such, the precharge voltage of IO line 266-1 can change based on the particular data value stored in sense amplifier 206-1 (which represents the data stored in a particular memory cell such as cell 270-0). For example, if the sense amplifier 206-1 senses a logic 0 (e.g., a ground voltage) stored in cell 270-0, then the precharge voltage (e.g., Vcc) on the IO line 266-1 will be pulled down (e.g., lowered) when CD-1 is activated, and the change in the precharge voltage can be detected by the SSA 268. As such, the detected change in the precharge voltage indicates that the sensed memory cell (e.g., 270-0) stores a data value (e.g., 0) different from the data value (e.g., 1) corresponding to the precharge voltage. Similarly, if the sense amplifier 206-1 senses a logic 1 (e.g., Vcc) stored in cell 270-0, then the precharge voltage (e.g., Vcc) on the IO line 266-1 will not be pulled down when CD-1 is activated, and no change in the precharge voltage will be detected by the SSA 268. As such, no detected change in the precharge voltage indicates that the sensed memory cell (e.g., 270-0) stores the same data value (e.g., 1) as the data value (e.g., 1) corresponding to the precharge voltage.
The above described ability of the SSA 268 to determine whether the precharge voltage changes can be used to perform WIRED OR operations to determine whether a particular compare value matches data stored in a memory array, for instance. As an example, if an operation is to determine whether a number of cells coupled to a particular row line stores a particular compare value (e.g., “0”), the particular row line can be activated along with the sense lines corresponding the number of memory cells. If any of the cells store a logical “0”, then the precharge voltage of the IO line (e.g., local IO line) will be changed (e.g., pulled down). The result of the operation can be reported, for instance, to the requesting control circuitry (e.g., on-die controller, host, etc.). The result of the operation can be reported into the memory array for further calculations. The determined result may be used as part of continued execution of a particular compare operation or other logical operation. For instance, execution may include not only determining if any of the memory cells of the row store a data value (e.g., 0), but which cell(s) store the data value. As such, subsets of the column decode lines may be selectively activated to compare the data values stored by their corresponding cells to the compare value, which can be used in association with a comparison operation, for instance.
The compare values used in association with WIRED OR operations can be requested by control circuitry (e.g., coupled to the sense circuitry 150 in
Memory array 330 also includes select lines 304-0, 304-1, 304-2, 304-3, 304-4, 304-5, 304-6, 304-7, 304-8, 304-9 (e.g., referred to generally as select lines 304). In
In a number of examples, a destination value can consist of the first bit and the second bit that are a logical representation of the result of the comparison operation. For example, if a first value is greater than a second value, then the first bit of the destination value can be set to one (e.g., “1”) and the second bit of the destination value can be set to zero (e.g., “0”). If a second value is greater than the first value, then the first bit of the destination value can be set to zero (e.g., “0”) and the second bit of the destination value can be set to one (e.g., “1”). If the first value is equal to the second value then the first bit and the second bit of the destination value can be set to zero (e.g., “0”). However, the examples given of a destination value are exemplary. Other logical representations of the results of a comparison operation can be used in conjunction with the examples given herein.
The first values 320-0, 320-1, 320-2, 320-3, 320-4, (e.g., referred to generally as first values 320), the second values 322-0, 322-1, 322-2, 322-3, 322-4 (e.g., referred to generally as second values 322) can be stored as part of bit-vectors in the memory cells that are coupled to the select lines 304 and the sense lines 305. Tmp values and tmpset values as described above in connection with
The memory cells that store second value 322-0 are initialized to store bit-vector [100]. The stored second value 322-0 is equal to a decimal value of four. The memory cells that store second value 322-1 are initialized to store bit-vector [001]. The second value 322-1 is equal to one. The memory cells that store second value 322-2 are initialized to store bit-vector [010]. The second value 322-2 is equal to a decimal value of two. The memory cells that store second value 322-3 are initialized to store bit-vector [110]. The second value 322-3 is equal to a decimal value of five. The memory cells that store second value 322-4 are initialized to store bit-vector [001]. The second value 322-4 is equal to a decimal value of one.
The first step in the first iteration can be performed to determine whether the most significant bits from the first values 320 (e.g., srcA values) and the second values 322 (e.g., srcB values) are different. The most significant bits from the first values 320 and the second values 322 can be different if they are not equal to each other.
In a number of examples, the first set of the first iteration can include performing a “ReadRow(srcA+i)” call, a “XorRow(srcB+i)” call, a “XorRow(tmpset)” call, and/or a “WriteRow(tmp)” call as discussed above. In a three (e.g., 3) bit example, during a fist iteration an “i” index is set to two (e.g., 2) signifying that a next most significant bit associated with the first values 320 and the second values 322 has an index of two (e.g., 2).
The first step of the first iteration of the comparison operation can include, for example, reading (e.g., ReadRow(srcA+i) a bit (e.g., “0” bit) from a first value 320-0 that is stored in a memory cell coupled to sense line 305-0 and select line 304-2 and performing a first XOR operation (e.g., XorRow(srcB+i)) using as input the read “0” bit and a next most significant bit (e.g., “1” bit) from a second value 322-0 stored in a memory cell that is coupled to sense line 305-0 and select line 304-5. The result (e.g., “1”) of the first XOR operation (e.g., XorRow(srcB+i)) and the “0” bit (e.g., tmpset value) stored in a memory cell coupled to sense line 305-0 and select line 304-7 can be used as input to a second XOR operation (e.g., XorRow(tmpset)). The results of the second XOR operation can be stored (e.g., WriteRow(tmp)) in a memory cell coupled to sense line 305-0 and select line 304-6 (e.g., a memory cell associated with the tmp value).
The first step of the first iteration can also be performed for each of the comparison operations associated with sense lines 305-1, 305-2, 305-3, 305-4. That is, the “ReadRow(srcA+i)” call, the “XorRow(srcB+i)” call, the “XorRow(tmpset)” call, and the “WriteRow(tmp)” call can be performed simultaneously for each of the comparison operations associated with the sense lines 305-1, 305-2, 305-3, 305-4.
In a number of examples, the second step in the first iteration can include performing an “OrRow(tmpset)” call and a “WriteRow(tmpset)” call. The second step of the first iteration of the comparison operation can include, for example, performing a first OR operation (e.g., OrRow(tmpset)) using the result (e.g., “0”) of the second XOR operation (e.g., XorRow(tmpset)) and a “0” bit stored in a memory cell coupled to sense line 305-0 and select line 304-7. The second step of the first iteration of the comparison operation can also include performing a write operation (e.g., WriteRow(tmpset)) to store the results of the first OR operation (e.g. OrRow(tmpset)) in the memory cell coupled to sense line 305-0 and select line 304-7. The second step in the first iteration can also be performed simultaneously for each of the other comparison operations associated with the sense lines 305-1, 305-2, 305-3, 305-4.
In a number of examples, the third step in the first iteration can include performing a “ReadRow(srcA+i)” call, a “AndRow(tmp)” call, a “OrRow(dest)” call, and a “WriteRow(dest)”. The read operation (e.g., ReadRow(srcA+i)) can read a most significant bit (e.g., “0”), from a first value 320-0, that is stored in a memory cell that is coupled to sense line 305-0 and select line 304-2. A first AND operation (e.g., AndRow(tmp)) can use, as input, the read bit (e.g., “0”) and a bit stored in the memory cell coupled to sense line 305-0 and select line 304-6. The result (e.g., 0) of the first AND operation and a bit (e.g., 0) stored in a memory cell coupled to the sense line 305-0 and select line 304-8 can be used as input to a second OR operation (e.g., OrRow(dest)). The result (e.g., 0) of the second OR operation can be stored (e.g., WriteRow(dest)) in a memory cell coupled to sense line 305-0 and select line 304-8. The third step in the first iteration can also be performed simultaneously for each of the other comparison operations associated with the sense lines 305-1, 305-2, 305-3, 305-4.
In a number of examples, the fourth step in the first iteration can include performing a “ReadRow(srcB+i)” call, a “AndRow(tmp)” call, a “OrRow(dest+1)” call, and a “WriteRow(dest+1)”. The read operation (e.g., ReadRow(srcB+i)) can, for example, read a most significant bit (e.g., “1”), from a second value 322-0, that is stored in a memory cell that is coupled to sense line 305-0 and select line 304-5. A second AND operation (e.g., AndRow(tmp)) can use as input the read (e.g., ReadRow(srcB+i) bit (e.g., “1”) and a bit (e.g., “1”) stored in the memory cell coupled to sense line 305-0 and select line 304-6. The result (e.g., “1”) of the second AND operation and a bit (e.g., 0) stored in a memory cell coupled to the sense line 305-0 and select line 304-9 can be used as input to a third OR operation (e.g., OrRow(dest+1)). The result (e.g., 1) of the third OR operation can be stored (e.g., WriteRow(dest+1)) in a memory cell coupled to sense line 305-0 and select line 304-9. The fourth step in the first iteration can also be performed for each of the other comparison operations associated with the sense lines 305-1, 305-2, 305-3, 305-4.
In a number of examples, the first step of the second iteration can include performing a “ReadRow(srcA+i)” call, a “XorRow(srcB+i)” call, a “XorRow(tmpset)” call, and a “WriteRow(tmp)” call. During the second iteration an “i” index is set to one (e.g., 1) signifying that a next most significant bit associated with the first values 320 and the second values 322 has an index of one (e.g., 1).
The first step of the second iteration of the comparison operation can, for example, include reading (e.g., ReadRow(srcA+i) a bit (e.g., “1” bit) from a first value 320-4 stored in a memory cell coupled to sense line 305-4 and select line 304-1 and performing a first XOR operation (e.g., XorRow(srcB+i)) using, as input, the read bit (e.g., “1” bit) and a next most significant bit (e.g., “0” bit) from a second value 322-4 stored in a memory cell that is coupled to sense line 305-4 and select line 304-4. The result (e.g., “1”) of the first XOR operation (e.g., XorRow(srcB+i)) and “0” bit (e.g., tmpset value) stored in a memory cell coupled to sense line 305-4 and select line 304-7 can be used as input to a second XOR operation (e.g., XorRow(tmpset)). The results (e.g., 1) of the second XOR operation can be stored (e.g., WriteRow(tmp)) in a memory cell coupled to sense line 305-4 and select line 304-6 (e.g., a memory cell associated with the tmp value).
The first step of the second iteration of the comparison operation can also, for example, include reading (e.g., ReadRow(srcA+i) a bit (e.g., “1” bit) from a first value 320-2 stored in a memory cell coupled to sense line 305-2 and select line 304-1 and performing a first XOR operation (e.g., XorRow(srcB+i)) using as input the read “1” bit and a next most significant bit (e.g., “1” bit) from a second value 322-2 stored in a memory cell that is coupled to sense line 305-2 and select line 304-4. The result (e.g., “0”) of the first XOR operation (e.g., XorRow(srcB+i)) and “0” bit (e.g., tmpset value) stored in a memory cell coupled to sense line 305-2 and select line 304-7 can be used as input to a second XOR operation (e.g., XorRow(tmpset)). The results (e.g., 0) of the second XOR operation can be stored (e.g., WriteRow(tmp)) in a memory cell coupled to sense line 305-2 and select line 304-6 (e.g., a memory cell associated with the tmp value).
The first step of the second iteration can also be performed for each of the comparison operations associated with sense lines 305-0, 305-1, 305-3. That is, the “ReadRow(srcA+i)” call, the “XorRow(srcB+i)” call, the “XorRow(tmpset)” call, and the “WriteRow(tmp)” call can be performed simultaneously for each of the comparison operations associated with the sense lines 305-0, 305-1, 305-3. For example, performing the first step in the second iteration can result in storing a “1” bit in a memory cell coupled to sense line 305-3 and select line 304-6.
In a number of examples, the second step in the second iteration can include performing an “OrRow(tmpset)” call and a “WriteRow(tmpset)” call. The second step of the second iteration of the comparison operation can include, for example, performing a first OR operation (e.g., OrRow(tmpset)) using the result (e.g., “1”) of the second XOR operation (e.g., XorRow(tmpset)) and a “0” bit stored in a memory cell coupled to sense line 305-4 and select line 304-7. The second step of the second iteration of the comparison operation can also include performing a write operation (e.g., WriteRow(tmpset)) to store the results (e.g., “1”) of the first OR operation (e.g., OrRow(tmpset)) in the memory cell coupled to sense line 305-4 and select line 304-7.
In a number of examples, the second step in the second iteration can also include performing an “OrRow(tmpset)” call and a “WriteRow(tmpset)” call for the comparison operation associated with the sense line 305-2. For example, the second step of the second iteration of the comparison operation can include performing a first OR operation (e.g., OrRow(tmpset)) using the result (e.g., “0”) of the second XOR operation (e.g., XorRow(tmpset)) and a “0” bit stored in a memory cell coupled to sense line 305-2 and select line 304-7. The second step of the second iteration of the comparison operation can also include performing a write operation (e.g., WriteRow(tmpset)) to store the results (e.g., “0”) of the first OR operation (e.g., OrRow(tmpset)) in the memory cell coupled to sense line 305-2 and select line 304-7.
The second step in the second iteration can also be performed simultaneously for each of the other comparison operations associated with the sense lines 305-0, 305-1, 305-3. For example, performing the second step in the second iteration can result in storing a “1” in the memory cell coupled to sense line 305-3 and select line 304-7.
In a number of examples, the third step in the second iteration can include performing a “ReadRow(srcA+i)” call, a “AndRow(tmp)” call, a “OrRow(dest)” call, and a “WriteRow(dest)”. The read operation (e.g., ReadRow(srcA+i)) can read a next most significant bit (e.g., “1”), from a first value 320-4, that is stored in a memory cell that is coupled to sense line 305-4 and select line 304-1. A first AND operation (e.g., AndRow(tmp)) can use as input the read bit (e.g., “1”) and a bit (e.g., “1”) stored in the memory cell coupled to sense line 305-4 and select line 304-6. The result (e.g., “1”) of the first AND operation and a bit (e.g., “0”) stored in a memory cell coupled to the sense line 305-4 and select line 304-8 can be used as input to a second OR operation (e.g., OrRow(dest)). The result (e.g., “1”) of the second OR operation can be stored (e.g., WriteRow(dest)) in a memory cell coupled to sense line 305-4 and select line 304-8.
The third step in the second iteration can also include, for example, performing the read operation (e.g., ReadRow(srcA+i)) to read a next most significant bit (e.g., “1”), from a first value 320-2, that is stored in a memory cell that is coupled to sense line 305-2 and select line 304-1. A first AND operation (e.g., AndRow(tmp)) can use as input the read bit (e.g., “1”) and a bit (e.g., “0”) stored in the memory cell coupled to sense line 305-2 and select line 304-6. The result (e.g., “0”) of the first AND operation and a bit (e.g., “0”) stored in a memory cell coupled to the sense line 305-2 and select line 304-8 can be used as input to a second OR operation (e.g., OrRow(dest)). The result (e.g., “0”) of the second OR operation can be stored (e.g., WriteRow(dest)) in a memory cell coupled to sense line 305-2 and select line 304-8. The third step in the second iteration can also be performed simultaneously for each of the other comparison operations associated with the sense lines 305-0, 305-1, 305-3.
In a number of examples, the fourth step in the second iteration can include performing a “ReadRow(srcB+i)” call, an “AndRow(tmp)” call, a “OrRow(dest+1)” call, and a “WriteRow(dest+1)”. The read operation (e.g., ReadRow(srcB+i)) can read a next most significant bit (e.g., “0”), from a second value 322-4, that is stored in a memory cell that is coupled to sense line 305-4 and select line 304-4. A second AND operation (e.g., AndRow(tmp)) can use as input the read bit (e.g., “0”) and a bit (e.g., “1”) stored in the memory cell coupled to sense line 305-4 and select line 304-6. The result (e.g., “0”) of the second AND operation and a bit (e.g., “0”) stored in a memory cell coupled to the sense line 305-4 and select line 304-9 can be used as input to a third OR operation (e.g., OrRow(dest+1)). The result (e.g., 0) of the third OR operation can be stored (e.g., WriteRow(dest+1)) in a memory cell coupled to sense line 305-4 and select line 304-9.
In a number of examples, the fourth step in the second iteration can also, for example, perform a read operation (e.g., ReadRow(srcB+i)) to read a next most significant bit (e.g., “1”), from a second value 322-2, that is stored in a memory cell that is coupled to sense line 305-2 and select line 304-4. A second AND operation (e.g., AndRow(tmp)) can use as input the read bit (e.g., “1”) and a bit (e.g., “0”) stored in the memory cell coupled to sense line 305-2 and select line 304-6. The result (e.g., “0”) of the second AND operation and a bit (e.g., “0”) stored in a memory cell coupled to the sense line 305-0 and select line 304-9 can be used as input to a third OR operation (e.g., OrRow(dest+1)). The result (e.g., 0) of the third OR operation can be stored (e.g., WriteRow(dest+1)) in a memory cell coupled to sense line 305-2 and select line 304-9.
The fourth step in the second iteration can also be performed for each of the other comparison operations associated with the sense lines 305-0, 305-1, 305-3. For example, performing the fourth step in the second iteration can result in storing a “1” in the memory cell coupled to sense line 305-3 and select line 304-9.
In a number of examples, the first step of the third iteration can include performing a “ReadRow(srcA+i)” call, a “XorRow(srcB+i)” call, a “XorRow(tmpset)” call, and a “WriteRow(tmp)” call. During the third iteration an “i” index is set to zero (e.g., “0”) signifying that a next most significant bit associated with the first values 320 and the second values 322 has an index of zero (e.g., “0”).
The first step of the third iteration of the comparison operation can, for example, include reading (e.g., ReadRow(srcA+i) a bit (e.g., “0” bit) from a first value 320-1 stored in a memory cell coupled to sense line 305-1 and select line 304-0 and performing a first XOR operation (e.g., XorRow(srcB+i)) using as input the read “0” bit and a next most significant bit (e.g., “1” bit) from a second value 322-1 stored in a memory cell that is coupled to sense line 305-1 and select line 304-0. The result (e.g., “1”) of the first XOR operation (e.g., XorRow(srcB+i)) and “0” bit (e.g., tmpset value) stored in a memory cell coupled to sense line 305-1 and select line 304-7 can be used as input to a second XOR operation (e.g., XorRow(tmpset)). The results (e.g., “1”) of the second XOR operation can be stored (e.g., WriteRow(tmp)) in a memory cell coupled to sense line 305-1 and select line 304-6 (e.g., a memory cell associated with the tmp value).
The first step of the third iteration can also be performed for each of the comparison operations associated with sense lines 305-0, 305-2, 305-3, 305-4. That is, the “ReadRow(srcA+i)” call, the “XorRow(srcB+i)” call, the “XorRow(tmpset)” call, and the “WriteRow(tmp)” call can be performed simultaneously for each of the comparison operations associated with the sense lines 305-0, 305-2, 305-3, 305-4.
In a number of examples, the second step in the third iteration can include performing an “OrRow(tmpset)” call and a “WriteRow(tmpset)” call. The second step of the third iteration of the comparison operation can include, for example, performing a first OR operation (e.g., OrRow(tmpset)) using the result (e.g., “1”) of the second XOR operation (e.g., XorRow(tmpset)) and a “1” bit stored in a memory cell coupled to sense line 305-1 and select line 304-7. The second step of the third iteration of the comparison operation can also include performing a write operation (e.g., WriteRow(tmpset)) to store the results (e.g., “1”) of the first OR operation (e.g., OrRow(tmpset)) in the memory cell coupled to sense line 305-1 and select line 304-7. The second step in the third iteration can also be performed simultaneously for each of the other comparison operations associated with the sense lines 305-0, 305-2, 305-3, 305-4.
In a number of examples, the third step in the third iteration can include performing a “ReadRow(srcA+i)” call, a “AndRow(tmp)” call, a “OrRow(dest)” call, and a “WriteRow(dest)”. The read operation (e.g., ReadRow(srcA+i)) can read a next most significant bit (e.g., “0”), from a first value 320-1, that is stored in a memory cell that is coupled to sense line 305-1 and select line 304-0. A first AND operation (e.g., AndRow(tmp)) can use as input the read bit (e.g., “0”) and a bit (e.g., “1”) stored in the memory cell coupled to sense line 305-1 and select line 304-6. The result (e.g., “0”) of the first AND operation and a bit (e.g., “0”) stored in a memory cell coupled to the sense line 305-1 and select line 304-8 can be used as input to a second OR operation (e.g., OrRow(dest)). The result (e.g., “0”) of the second OR operation can be stored (e.g., WriteRow(dest)) in a memory cell coupled to sense line 305-1 and select line 304-8. The third step in the third iteration can also be performed simultaneously for each of the other comparison operations associated with the sense lines 305-0, 3305-2, 305-3, 305-4.
In a number of examples, the fourth step in the third iteration can include performing a “ReadRow(srcB+i)” call, an “AndRow(tmp)” call, a “OrRow(dest+1)” call, and a “WriteRow(dest+1)”. The read operation (e.g., ReadRow(srcB+i)) can read a next most significant bit (e.g., “1”), from a second value 322-1, that is stored in a memory cell that is coupled to sense line 305-1 and select line 304-3. A second AND operation (e.g., AndRow(tmp)) can use as input the read bit (e.g., “1”) and a bit (e.g., “1”) stored in the memory cell coupled to sense line 305-1 and select line 304-6. The result (e.g., “1”) of the second AND operation and a bit (e.g., “0”) stored in a memory cell coupled to the sense line 305-1 and select line 304-9 can be used as input to a third OR operation (e.g., OrRow(dest+1)). The result (e.g., “1”) of the third OR operation can be stored (e.g., WriteRow(dest+1)) in a memory cell coupled to sense line 305-1 and select line 304-9. The fourth step in the third iteration can also be performed for each of the other comparison operations associated with the sense lines 305-0, 305-2, 305-3, 305-4.
In a number of examples, after each of the fourth steps in each of the iterations, it can be determined whether the comparison operation has concluded regardless of the current iteration. For example, if after a first iteration all of the comparison operations have determined that all of the first values 320 are either greater or less than the second values 322, then the comparison operations can conclude. Determining whether all of the comparison operations have determined that the first values 320 are greater than the second values 322 and/or whether the second values 322 are greater than the first values 320 can be performed using a WIRED OR operation described above. The comparison operation can conclude by breaking out of a FOR loop associated with the number of iterations of the comparison operations.
Embodiments however, are not limited to the order of the sequence of steps shown in this example. For example, a second step in a first iteration can be performed after a fourth step in the first iteration.
Memory cells can be coupled to different data lines and/or word lines. For example, a first source/drain region of a transistor 402-1 can be coupled to data line 405-1 (D), a second source/drain region of transistor 402-1 can be coupled to capacitor 403-1, and a gate of a transistor 402-1 can be coupled to word line 404-X. A first source/drain region of a transistor 402-2 can be coupled to data line 405-2 (D_), a second source/drain region of transistor 402-2 can be coupled to capacitor 403-2, and a gate of a transistor 402-2 can be coupled to word line 404-Y. The cell plate, as shown in
The memory array 430 is coupled to sensing circuitry 450 in accordance with a number of embodiments of the present disclosure. In this example, the sensing circuitry 450 comprises a sense amplifier 406 and a compute component 431 corresponding to respective columns of memory cells (e.g., coupled to respective pairs of complementary data lines). The sense amplifier 406 can comprise a cross coupled latch, which can be referred to herein as a primary latch. The sense amplifier 406 can be configured, for example, as described with respect to
In the example illustrated in
In this example, data line D 405-1 can be coupled to a first source/drain region of transistors 416-1 and 439-1, as well as to a first source/drain region of load/pass transistor 418-1. Data line D_ 405-2 can be coupled to a first source/drain region of transistors 416-2 and 439-2, as well as to a first source/drain region of load/pass transistor 418-2.
The gates of load/pass transistor 418-1 and 418-2 can be commonly coupled to a LOAD control signal, or respectively coupled to a PASSD/PASSDB control signal, as discussed further below. A second source/drain region of load/pass transistor 418-1 can be directly coupled to the gates of transistors 416-1 and 439-2. A second source/drain region of load/pass transistor 418-2 can be directly coupled to the gates of transistors 416-2 and 439-1.
A second source/drain region of transistor 416-1 can be directly coupled to a first source/drain region of pull-down transistor 414-1. A second source/drain region of transistor 439-1 can be directly coupled to a first source/drain region of pull-down transistor 407-1. A second source/drain region of transistor 416-2 can be directly coupled to a first source/drain region of pull-down transistor 414-2. A second source/drain region of transistor 439-2 can be directly coupled to a first source/drain region of pull-down transistor 407-2. A second source/drain region of each of pull-down transistors 407-1, 407-2, 414-1, and 414-2 can be commonly coupled together to a reference voltage 491 (e.g., ground (GND)). A gate of pull-down transistor 407-1 can be coupled to an AND control signal line, a gate of pull-down transistor 414-1 can be coupled to an ANDinv control signal line 413-1, a gate of pull-down transistor 414-2 can be coupled to an ORinv control signal line 413-2, and a gate of pull-down transistor 407-2 can be coupled to an OR control signal line.
The gate of transistor 439-1 can be referred to as node S1, and the gate of transistor 439-2 can be referred to as node S2. The circuit shown in
The configuration of compute component 431 shown in
Inverting transistors can pull-down a respective data line in performing certain logical operations. For example, transistor 416-1 (having a gate coupled to S2 of the dynamic latch) in series with transistor 414-1 (having a gate coupled to an ANDinv control signal line 413-1) can be operated to pull-down data line 405-1 (D), and transistor 416-2 (having a gate coupled to S1 of the dynamic latch) in series with transistor 414-2 (having a gate coupled to an ANDinv control signal line 413-2) can be operated to pull-down data line 405-2 (D_).
The latch 482 can be controllably enabled by coupling to an active negative control signal line 412-1 (ACCUMB) and an active positive control signal line 412-2 (ACCUM) rather than be configured to be continuously enabled by coupling to ground and VDD. In various embodiments, load/pass transistors 408-1 and 408-2 can each having a gate coupled to one of a LOAD control signal or a PASSD/PASSDB control signal.
According to some embodiments, the gates of load/pass transistors 418-1 and 418-2 can be commonly coupled to a LOAD control signal. In the configuration where the gates of load/pass transistors 418-1 and 418-2 are commonly coupled to the LOAD control signal, load/pass transistors 418-1 and 418-2 can be load transistors. Activating the LOAD control signal causes the load transistors to conduct, and thereby load complementary data onto nodes S1 and S2. The LOAD control signal can be elevated to a voltage greater than VDD to pass a full VDD level to S1/S2. However, the LOAD control signal need not be elevated to a voltage greater than VDD is optional, and functionality of the circuit shown in
According to some embodiments, the gate of load/pass transistor 418-1 can be coupled to a PASSD control signal, and the gate of load/pass transistor 418-2 can be coupled to a PASSDb control signal. In the configuration where the gates of load/pass transistors 418-1 and 418-2 are respectively coupled to one of the PASSD and PASSDb control signals, load/pass transistors 418-1 and 418-2 can be pass transistors. Pass transistors can be operated differently (e.g., at different times and/or under different voltage/current conditions) than load transistors. As such, the configuration of pass transistors can be different than the configuration of load transistors.
Load transistors are constructed to handle loading associated with coupling data lines to the local dynamic nodes S1 and S2, for example. Pass transistors are constructed to handle heavier loading associated with coupling data lines to an adjacent accumulator (e.g., through the shift circuitry 423, as shown in
In a number of embodiments, the compute component 431, including the latch 482, can comprise a number of transistors formed on pitch with the transistors of the corresponding memory cells of an array (e.g., array 430 shown in
The voltages or currents on the respective data lines D and D_ can be provided to the respective latch inputs 484-1 and 484-2 of the cross coupled latch 482 (e.g., the input of the secondary latch). In this example, the latch input 484-1 is coupled to a first source/drain region of transistors 408-1 and 409-1 as well as to the gates of transistors 408-2 and 409-2. Similarly, the latch input 484-2 can be coupled to a first source/drain region of transistors 408-2 and 409-2 as well as to the gates of transistors 408-1 and 409-1.
In this example, a second source/drain region of transistor 409-1 and 409-2 is commonly coupled to a negative control signal line 412-1 (e.g., ground (GND) or ACCUMB control signal similar to control signal RnIF shown in
The enabled cross coupled latch 482 operates to amplify a differential voltage between latch input 484-1 (e.g., first common node) and latch input 484-2 (e.g., second common node) such that latch input 484-1 is driven to either the activated positive control signal voltage (e.g., VDD) or the activated negative control signal voltage (e.g., ground), and latch input 484-2 is driven to the other of the activated positive control signal voltage (e.g., VDD) or the activated negative control signal voltage (e.g., ground).
In a number of embodiments, a sense amplifier (e.g., 506) can comprise a number of transistors formed on pitch with the transistors of the corresponding compute component 531 and/or the memory cells of an array (e.g., array 430 shown in
The voltages or currents on the respective data lines D and D_ can be provided to the respective latch inputs 533-1 and 533-2 of the cross coupled latch 515 (e.g., the input of the secondary latch). In this example, the latch input 533-1 is coupled to a first source/drain region of transistors 527-1 and 529-1 as well as to the gates of transistors 527-2 and 529-2. Similarly, the latch input 533-2 can be coupled to a first source/drain region of transistors 527-2 and 529-2 as well as to the gates of transistors 527-1 and 529-1. The compute component 533 (e.g., accumulator) can be coupled to latch inputs 533-1 and 533-2 of the cross coupled latch 515 as shown; however, embodiments are not limited to the example shown in
In this example, a second source/drain region of transistor 527-1 and 527-2 is commonly coupled to an active negative control signal 528 (RnIF). A second source/drain region of transistors 529-1 and 529-2 is commonly coupled to an active positive control signal 590 (ACT). The ACT signal 590 can be a supply voltage (e.g., VDD) and the RnIF signal can be a reference voltage (e.g., ground). Activating signals 528 and 590 enables the cross coupled latch 515.
The enabled cross coupled latch 515 operates to amplify a differential voltage between latch input 533-1 (e.g., first common node) and latch input 533-2 (e.g., second common node) such that latch input 533-1 is driven to one of the ACT signal voltage and the RnIF signal voltage (e.g., to one of VDD and ground), and latch input 533-2 is driven to the other of the ACT signal voltage and the RnIF signal voltage.
The sense amplifier 506 can also include circuitry configured to equilibrate the data lines D and D_ (e.g., in association with preparing the sense amplifier for a sensing operation). In this example, the equilibration circuitry comprises a transistor 588 having a first source/drain region coupled to a first source/drain region of transistor 586-1 and data line D 505-1. A second source/drain region of transistor 588 can be coupled to a first source/drain region of transistor 586-2 and data line D_ 505-2. A gate of transistor 588 can be coupled to gates of transistors 586-1 and 586-2.
The second source drain regions of transistors 586-1 and 586-2 are coupled to an equilibration voltage 538 (e.g., VDD/2), which can be equal to VDD/2, where VDD is a supply voltage associated with the array. The gates of transistors 588, 586-1, and 586-2 can be coupled to control signal 586 (EQ). As such, activating EQ enables the transistors 588, 586-1, and 586-2, which effectively shorts data line D to data line D_ such that the data lines D and D_ are equilibrated to equilibration voltage VDD/2. According to various embodiments of the present disclosure, a number of logical operations can be performed using the sense amplifier, and storing the result in the compute component (e.g., accumulator).
As shown in
In the example illustrated in
Although the shift circuitry 423 shown in
Embodiments of the present disclosure are not limited to the configuration of shift circuitry 423 shown in
Although not shown in
The sensing circuitry 450 can be operated in several modes to perform logical operations, including a first mode in which a result of the logical operation is initially stored in the sense amplifier 406, and a second mode in which a result of the logical operation is initially stored in the compute component 431. Operation of the sensing circuitry 450 in the first mode is described below with respect to
As described further below, the sense amplifier 406 can, in conjunction with the compute component 431, be operated to perform various logical operations using data from an array as input. In a number of embodiments, the result of a logical operation can be stored back to the array without transferring the data via a data line address access (e.g., without firing a column decode signal such that data is transferred to circuitry external from the array and sensing circuitry via local I/O lines). As such, a number of embodiments of the present disclosure can enable performing logical operations and compute functions associated therewith using less power than various previous approaches. Additionally, since a number of embodiments eliminate the need to transfer data across I/O lines in order to perform compute functions (e.g., between memory and discrete processor), a number of embodiments can enable an increased parallel processing capability as compared to previous approaches.
The functionality of the sensing circuitry 450 of
Initially storing the result of a particular operation in the sense amplifier 406 (e.g., without having to perform an additional operation to move the result from the compute component 431 (e.g., accumulator) to the sense amplifier 406) is advantageous because, for instance, the result can be written to a row (of the array of memory cells) or back into the accumulator without performing a precharge cycle (e.g., on the complementary data lines 405-1 (D) and/or 405-2 (D_)).
An example of pseudo code associated with loading (e.g., copying) a first data value stored in a cell coupled to row 404-X into the accumulator can be summarized as follows:
In the pseudo code above, “Deactivate EQ” indicates that an equilibration signal (EQ signal shown in
After Row X is activated (e.g., selected), in the pseudo code above, “Fire Sense Amps” indicates that the sense amplifier 406 is enabled to set the primary latch and subsequently disabled. For example, as shown at t3 in
The four sets of possible sense amplifier and accumulator signals illustrated in
After firing the sense amps, in the pseudo code above, “Activate LOAD” indicates that the LOAD control signal goes high as shown at t4 in
After setting the secondary latch from the data values stored in the sense amplifier (and present on the data lines 405-1 (D) and 405-2 (D_), in the pseudo code above, “Close LOAD” indicates that the LOAD control signal goes back low as shown at t5 in
After storing the data value on the secondary latch, the selected row (e.g., ROW X) is deactivated as indicated by “Close Row X” and indicated at t6 in
A subsequent operation phase associated with performing the AND or the OR operation on the first data value (now stored in the sense amplifier 406 and the secondary latch of the compute component 431) and the second data value (stored in a memory cell 402-1 coupled to Row Y 404-Y) includes performing particular steps which depend on the whether an AND or an OR is to be performed. Examples of pseudo code associated with “ANDing” and “ORing” the data value residing in the accumulator (e.g., the first data value stored in the memory cell 402-2 coupled to Row X 404-X) and the second data value (e.g., the data value stored in the memory cell 402-1 coupled to Row Y 404-Y) are summarized below. Example pseudo code associated with “ANDing” the data values can include:
The result of the logic operation, in the next operation, will be placed on the sense amp, which will overwrite any row that is Activate.
Even when Row Y is closed, the sense amplifier still contains the Row Y data value.
This results in the sense amplifier being written to the value of the function (e.g., Row X AND Row Y)
If the accumulator contains a “0” (i.e., a voltage corresponding to a “0” on node S2 and a voltage corresponding to a “1” on node S1), the sense amplifier data is written to a “0”
If the accumulator contains a “1” (i.e., a voltage corresponding to a “1” on node S2 and a voltage corresponding to a “0” on node S1), the sense amplifier data remains unchanged (Row Y data)
This operation leaves the data in the accumulator unchanged.
In the pseudo code above, “Deactivate EQ” indicates that an equilibration signal corresponding to the sense amplifier 406 is disabled (e.g., such that the complementary data lines 405-1 (D) and 405-2 (D_) are no longer shorted to VDD/2), which is illustrated in
After Row Y is activated, in the pseudo code above, “Fire Sense Amps” indicates that the sense activated 406 is enabled to amplify the differential signal between 405-1 (D) and 405-2 (D_), resulting in a voltage (e.g., VDD) corresponding to a logic 1 or a voltage (e.g., GND) corresponding to a logic 0 being on data line 405-1 (D) (and the voltage corresponding to the other logic state being on complementary data line 405-2 (D_)). As shown at t10 in
After the second data value sensed from the memory cell 402-1 coupled to Row Y is stored in the primary latch of sense amplifier 406, in the pseudo code above, “Close Row Y” indicates that the selected row (e.g., ROW Y) can be deactivated if it is not desired to store the result of the AND logical operation back in the memory cell corresponding to Row Y. However,
With the first data value (e.g., Row X) stored in the dynamic latch of the accumulator 431 and the second data value (e.g., Row Y) stored in the sense amplifier 406, if the dynamic latch of the compute component 431 contains a “0” (i.e., a voltage corresponding to a “0” on node S2 and a voltage corresponding to a “1” on node S1), the sense amplifier data is written to a “0” (regardless of the data value previously stored in the sense amplifier) since the voltage corresponding to a “1” on node S1 causes transistor 409-1 to conduct thereby coupling the sense amplifier 406 to ground through transistor 409-1, pass transistor 407-1 and data line 405-1 (D). When either data value of an AND operation is “0,” the result is a “0.” Here, when the second data value (in the dynamic latch) is a “0,” the result of the AND operation is a “0” regardless of the state of the first data value, and so the configuration of the sensing circuitry causes the “0” result to be written and initially stored in the sense amplifier 406. This operation leaves the data value in the accumulator unchanged (e.g., from Row X).
If the secondary latch of the accumulator contains a “1” (e.g., from Row X), then the result of the AND operation depends on the data value stored in the sense amplifier 406 (e.g., from Row Y). The result of the AND operation should be a “1” if the data value stored in the sense amplifier 406 (e.g., from Row Y) is also a “1,” but the result of the AND operation should be a “0” if the data value stored in the sense amplifier 406 (e.g., from Row Y) is also a “0.” The sensing circuitry 450 is configured such that if the dynamic latch of the accumulator contains a “1” (i.e., a voltage corresponding to a “1” on node S2 and a voltage corresponding to a “0” on node S1), transistor 409-1 does not conduct, the sense amplifier is not coupled to ground (as described above), and the data value previously stored in the sense amplifier 406 remains unchanged (e.g., Row Y data value so the AND operation result is a “1” if the Row Y data value is a “1” and the AND operation result is a “0” if the Row Y data value is a “0”). This operation leaves the data value in the accumulator unchanged (e.g., from Row X).
After the result of the AND operation is initially stored in the sense amplifier 406, “Close AND” in the pseudo code above indicates that the AND control signal goes low as shown at t12 in
Although the timing diagrams illustrated in
A subsequent operation phase can alternately be associated with performing the OR operation on the first data value (now stored in the sense amplifier 406 and the secondary latch of the compute component 431) and the second data value (stored in a memory cell 402-1 coupled to Row Y 404-Y). The operations to load the Row X data into the sense amplifier and accumulator that were previously described with respect to times t1-t7 shown in
When Row Y is closed, the sense amplifier still contains the Row Y data value.
This results in the sense amplifier being written to the value of the function (e.g., Row X OR Row Y), which may overwrite the data value from Row Y previously stored in the sense amplifier as follows:
If the accumulator contains a “0” (i.e., a voltage corresponding to a “0” on node S2 and a voltage corresponding to a “1” on node S1), the sense amplifier data remains unchanged (Row Y data)
If the accumulator contains a “1” (i.e., a voltage corresponding to a “1” on node S2 and a voltage corresponding to a “0” on node S1), the sense amplifier data is written to a “1”
This operation leaves the data in the accumulator unchanged.
The “Deactivate EQ” (shown at t8 in
With the first data value (e.g., Row X) stored in the secondary latch of the compute component 431 and the second data value (e.g., Row Y) stored in the sense amplifier 406, if the dynamic latch of the accumulator contains a “0” (i.e., a voltage corresponding to a “0” on node S2 and a voltage corresponding to a “1” on node S1), then the result of the OR operation depends on the data value stored in the sense amplifier 406 (e.g., from Row Y). The result of the OR operation should be a “1” if the data value stored in the sense amplifier 406 (e.g., from Row Y) is a “1,” but the result of the OR operation should be a “0” if the data value stored in the sense amplifier 406 (e.g., from Row Y) is also a “0.” The sensing circuitry 450 is configured such that if the dynamic latch of the accumulator contains a “0,” with the voltage corresponding to a “0” on node S2, transistor 409-2 is off and does not conduct (and pass transistor 407-1 is also off since the AND control signal is not asserted) so the sense amplifier 406 is not coupled to ground (either side), and the data value previously stored in the sense amplifier 406 remains unchanged (e.g., Row Y data value such that the OR operation result is a “1” if the Row Y data value is a “1” and the OR operation result is a “0” if the Row Y data value is a “0”).
If the dynamic latch of the accumulator contains a “1” (i.e., a voltage corresponding to a “1” on node S2 and a voltage corresponding to a “0” on node S1), transistor 409-2 does conduct (as does pass transistor 407-2 since the OR control signal is asserted), and the sense amplifier 406 input coupled to data line 405-2 (D_) is coupled to ground since the voltage corresponding to a “1” on node S2 causes transistor 409-2 to conduct along with pass transistor 407-2 (which also conducts since the OR control signal is asserted). In this manner, a “1” is initially stored in the sense amplifier 406 as a result of the OR operation when the secondary latch of the accumulator contains a “1” regardless of the data value previously stored in the sense amplifier. This operation leaves the data in the accumulator unchanged.
After the result of the OR operation is initially stored in the sense amplifier 406, “Close OR” in the pseudo code above indicates that the OR control signal goes low as shown at t12 in
The sensing circuitry 450 illustrated in
In a similar approach to that described above with respect to inverting the data values for the AND and OR operations described above, the sensing circuitry shown in
The “Deactivate EQ,” “Activate Row X,” “Fire Sense Amps,” “Activate LOAD,” and “Close LOAD” shown in the pseudo code above indicate the same functionality as the same operations in the pseudo code for the “Copy Row X into the Accumulator” initial operation phase described above prior to pseudo code for the AND operation and OR operation. However, rather than closing the Row X and Precharging after the Row X data is loaded into the sense amplifier 406 and copied into the dynamic latch, a compliment version of the data value in the dynamic latch of the accumulator can be placed on the data line and thus transferred to the sense amplifier 406 by enabling (e.g., causing transistor to conduct) and disabling the invert transistors (e.g., ANDinv and ORinv). This results in the sense amplifier 406 being flipped from the true data value that was previously stored in the sense amplifier to a compliment data value (e.g., inverted data value) stored in the sense amplifier. That is, a true or compliment version of the data value in the accumulator can be transferred to the sense amplifier by activating and deactivating ANDinv and ORinv. This operation leaves the data in the accumulator unchanged.
Because the sensing circuitry 450 shown in
When performing logical operations in this manner, the sense amplifier 406 can be pre-seeded with a data value from the dynamic latch of the accumulator to reduce overall current utilized because the sense amps 406 are not at full rail voltages (e.g., supply voltage or ground/reference voltage) when accumulator function is copied to the sense amplifier 406. An operation sequence with a pre-seeded sense amplifier 406 either forces one of the data lines to the reference voltage (leaving the complementary data line at VDD/2, or leaves the complementary data lines unchanged. The sense amplifier 406 pulls the respective data lines to full rails when the sense amplifier 406 fires. Using this sequence of operations will overwrite data in an Activate Row.
A SHIFT operation can be accomplished by multiplexing (“muxing”) two neighboring data line complementary pairs using a traditional DRAM isolation (ISO) scheme. According to embodiments of the present disclosure, the shift circuitry 423 can be used for shifting data values stored in memory cells coupled to a particular pair of complementary data lines to the sensing circuitry 450 (e.g., sense amplifier 406) corresponding to a different pair of complementary data lines (e.g., such as a sense amplifier 406 corresponding to a left or right adjacent pair of complementary data lines. As used herein, a sense amplifier 406 corresponds to the pair of complementary data lines to which the sense amplifier is coupled when isolation transistors 421-1 and 421-2 are conducting. The SHIFT operations (right or left) do not pre-copy the Row X data value into the accumulator. Operations to shift right Row X can be summarized as follows:
In the pseudo code above, “Deactivate Norm and Activate Shift” indicates that a NORM control signal goes low causing isolation transistors 421-1 and 421-2 of the shift circuitry 423 to not conduct (e.g., isolate the sense amplifier from the corresponding pair of complementary data lines). The SHIFT control signal goes high causing isolation transistors 421-3 and 421-4 to conduct, thereby coupling the sense amplifier 406 to the left adjacent pair of complementary data lines (e.g., on the memory array side of non-conducting isolation transistors 421-1 and 421-2 for the left adjacent pair of complementary data lines).
After the shift circuitry 423 is configured, the “Deactivate EQ,” “Activate Row X,” and “Fire Sense Amps” shown in the pseudo code above indicate the same functionality as the same operations in the pseudo code for the “Copy Row X into the Accumulator” initial operation phase described above prior to pseudo code for the AND operation and OR operation. After these operations, the Row X data value for the memory cell coupled to the left adjacent pair of complementary data lines is shifted right and stored in the sense amplifier 406.
In the pseudo code above, “Activate Norm and Deactivate Shift” indicates that a NORM control signal goes high causing isolation transistors 421-1 and 421-2 of the shift circuitry 423 to conduct (e.g., coupling the sense amplifier to the corresponding pair of complementary data lines), and the SHIFT control signal goes low causing isolation transistors 421-3 and 421-4 to not conduct and isolating the sense amplifier 406 from the left adjacent pair of complementary data lines (e.g., on the memory array side of non-conducting isolation transistors 421-1 and 421-2 for the left adjacent pair of complementary data lines). Since Row X is still active, the Row X data value that has been shifted right is transferred to Row X of the corresponding pair of complementary data lines through isolation transistors 421-1 and 421-2.
After the Row X data values are shifted right to the corresponding pair of complementary data lines, the selected row (e.g., ROW X) is deactivated as indicated by “Close Row X” in the pseudo code above, which can be accomplished by the access transistor turning off to decouple the selected cell from the corresponding data line. Once the selected row is closed and the memory cell is isolated from the data lines, the data lines can be precharged as indicated by the “Precharge” in the pseudo code above. A precharge of the data lines can be accomplished by an equilibrate operation, as described above.
Operations to shift left Row X can be summarized as follows:
In the pseudo code above, “Activate Norm and Deactivate Shift” indicates that a NORM control signal goes high causing isolation transistors 421-1 and 421-2 of the shift circuitry 423 to conduct, and the SHIFT control signal goes low causing isolation transistors 421-3 and 421-4 to not conduct. This configuration couples the sense amplifier 406 to a corresponding pair of complementary data lines and isolates the sense amplifier from the right adjacent pair of complementary data lines.
After the shift circuitry is configured, the “Deactivate EQ,” “Activate Row X,” and “Fire Sense Amps” shown in the pseudo code above indicate the same functionality as the same operations in the pseudo code for the “Copy Row X into the Accumulator” initial operation phase described above prior to pseudo code for the AND operation and OR operation. After these operations, the Row X data value for the memory cell coupled to the pair of complementary data lines corresponding to the sense circuitry 450 is stored in the sense amplifier 406.
In the pseudo code above, “Deactivate Norm and Activate Shift” indicates that a NORM control signal goes low causing isolation transistors 421-1 and 421-2 of the shift circuitry 423 to not conduct (e.g., isolate the sense amplifier from the corresponding pair of complementary data lines), and the SHIFT control signal goes high causing isolation transistors 421-3 and 421-4 to conduct coupling the sense amplifier to the left adjacent pair of complementary data lines (e.g., on the memory array side of non-conducting isolation transistors 421-1 and 421-2 for the left adjacent pair of complementary data lines. Since Row X is still active, the Row X data value that has been shifted left is transferred to Row X of the left adjacent pair of complementary data lines.
After the Row X data values are shifted left to the left adjacent pair of complementary data lines, the selected row (e.g., ROW X) is disabled as indicated by “Close Row X,” which can be accomplished by the access transistor turning off to decouple the selected cell from the corresponding data line. Once the selected row is closed and the memory cell is isolated from the data lines, the data lines can be precharged as indicated by the “Precharge” in the pseudo code above. A precharge of the data lines can be accomplished by an equilibrate operation, as described above.
According to various embodiments, general computing can be enabled in a memory array core of a processor-in-memory (PIM) device such as a DRAM one transistor per memory cell (e.g., 1T1C) configuration at 6F{circumflex over ( )}2 or 4F{circumflex over ( )}2 memory cell sizes, for example. The advantage of the apparatuses and methods described herein is not realized in terms of single instruction speed, but rather the cumulative speed that can be achieved by an entire bank of data being computed in parallel without ever transferring data out of the memory array (e.g., DRAM) or firing a column decode. In other words, data transfer time can be eliminated. For example, apparatus of the present disclosure can perform ANDs or ORs simultaneously using data values in memory cells coupled to a data line (e.g., a column of 16K memory cells).
In previous approach sensing circuits where data is moved out for logical operation processing (e.g., using 32 or 64 bit registers), fewer operations can be performed in parallel compared to the apparatus of the present disclosure. In this manner, significantly higher throughput is effectively provided in contrast to conventional configurations involving a central processing unit (CPU) discrete from the memory such that data must be transferred therebetween. An apparatus and/or methods according to the present disclosure can also use less energy/area than configurations where the CPU is discrete from the memory. Furthermore, an apparatus and/or methods of the present disclosure can improve upon the smaller energy/area advantages since the in-memory-array logical operations save energy by eliminating certain data value transfers.
The sensing circuitry 750 illustrated in
Logic selection transistors 752 and 754 are arranged similarly to transistor 407-1 (coupled to an AND signal control line) and transistor 407-2 (coupled to an OR signal control line) respectively, as shown in
The PASS* control signal is not necessarily complementary to the PASS control signal. For instance, it is possible for the PASS and PASS* control signals to both be activated or both be deactivated at the same time. However, activation of both the PASS and PASS* control signals at the same time shorts the pair of complementary sense lines together, which may be a disruptive configuration to be avoided. Logical operations results for the sensing circuitry illustrated in
The logic table illustrated in
Via selective control of the continuity of the pass gates 707-1 and 707-2 and the swap transistors 742, each of the three columns of the first set of two rows of the upper portion of the logic table of
The columns of the lower portion of the logic table illustrated in
As such, the sensing circuitry shown in
The present disclosure includes apparatuses and methods related to performing comparison operations in a memory. An example apparatus might include a first address space of a memory array comprising a first number of memory cells coupled to a sense line and to a first number of select lines. A first value can be stored in the first address space. A second address space of the memory array comprises a second number of memory cells coupled to the sense line and to a second number of select lines. A second value can be stored in the second address space. A third address space of the memory array comprises a third number of memory cells coupled to the sense line and to a third number of select lines. A result can be stored in the third address space. Sensing circuitry can be configured to receive the first value and the second value, compare the first value with the second value to determine which of the first value and the second value is greater, and store the result of the comparison operation in the third address space.
Although specific embodiments have been illustrated and described herein, those of ordinary skill in the art will appreciate that an arrangement calculated to achieve the same results can be substituted for the specific embodiments shown. This disclosure is intended to cover adaptations or variations of one or more embodiments of the present disclosure. It is to be understood that the above description has been made in an illustrative fashion, and not a restrictive one. Combination of the above embodiments, and other embodiments not specifically described herein will be apparent to those of skill in the art upon reviewing the above description. The scope of the one or more embodiments of the present disclosure includes other applications in which the above structures and methods are used. Therefore, the scope of one or more embodiments of the present disclosure should be determined with reference to the appended claims, along with the full range of equivalents to which such claims are entitled.
In the foregoing Detailed Description, some features are grouped together in a single embodiment for the purpose of streamlining the disclosure. This method of disclosure is not to be interpreted as reflecting an intention that the disclosed embodiments of the present disclosure have to use more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive subject matter lies in less than all features of a single disclosed embodiment. Thus, the following claims are hereby incorporated into the Detailed Description, with each claim standing on its own as a separate embodiment.
This application is a Continuation of U.S. application Ser. No. 17/589,417 filed on Jan. 31, 2022 which is a Continuation of U.S. application Ser. No. 17/098,160, filed Nov. 13, 2020, which issued as U.S. Pat. No. 11,238,920 on Feb. 1, 2022 which is a Continuation of U.S. application Ser. No. 16/681,523, filed Nov. 12, 2019, which issued as U.S. Pat. No. 10,839,892 on Nov. 17, 2020, which is a Continuation of U.S. application Ser. No. 15/346,526, filed Nov. 8, 2016, which issued as U.S. Pat. No. 10,490,257 on Nov. 26, 2019, which is a Divisional of U.S. application Ser. No. 14/715,001 filed May 18, 2015, which issued as U.S. Pat. No. 9,496,023 on Nov. 15, 2016, which claims benefit of priority under 35 U.S.C. 119(e) to U.S. Provisional Application Ser. No. 62/008,007, filed Jun. 5, 2014, the specification of which is incorporated herein by reference.
Number | Date | Country | |
---|---|---|---|
62008007 | Jun 2014 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 14715001 | May 2015 | US |
Child | 15346526 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 17589417 | Jan 2022 | US |
Child | 18640966 | US | |
Parent | 17098160 | Nov 2020 | US |
Child | 17589417 | US | |
Parent | 16681523 | Nov 2019 | US |
Child | 17098160 | US | |
Parent | 15346526 | Nov 2016 | US |
Child | 16681523 | US |