SELECTIVE BIT LINE CLAMPING CONTROL FOR AN IN-MEMORY COMPUTE OPERATION WHERE SIMULTANEOUS ACCESS IS MADE TO PLURAL ROWS OF A STATIC RANDOM ACCESS MEMORY (SRAM)
20230012303 · 2023-01-12
Assignee
Inventors
- Kedar Janardan DHORI (Ghaziabad, IN)
- Harsh RAWAT (Faridabad, IN)
- Promod KUMAR (Greater Noida, IN)
- Nitin Chawla (Noida, IN)
- Manuj AYODHYAWASI (Noida, IN)
Cpc classification
G11C7/04
PHYSICS
G11C7/062
PHYSICS
G11C7/12
PHYSICS
G11C7/1057
PHYSICS
G11C7/1051
PHYSICS
International classification
Abstract
A circuit includes a memory array with SRAM cells connected in rows by word lines and in columns by bit lines. A row controller circuit simultaneously actuates, through a word line driver circuit for each row, word lines in parallel for an in-memory compute operation. A column processing circuit processes analog voltages developed on the bit lines in response to the simultaneous actuation to generate a decision output for the in-memory compute operation. A bit line clamping circuit includes a sensing circuit that compares the analog voltages on a given pair of bit lines to a threshold voltage. A voltage clamp circuit is actuated in response to the comparison to preclude the analog voltages on the given pair of bit lines from decreasing below a clamping voltage level.
Claims
1. A circuit, comprising: a memory array including a plurality of static random access memory (SRAM) cells arranged in a matrix with plural rows and plural columns, each row including a word line connected to the SRAM cells of the row, and each column including at least one bit line connected to the SRAM cells of the column; a word line driver circuit for each row having an output connected to drive the word line of the row; a row controller circuit configured to simultaneously actuate the plurality of word lines by applying pulses through the word line driver circuits to the word lines for an in-memory compute operation; a column processing circuit connected to the at least one bit line for each column and configured to process an analog voltage developed on the bit lines in response to the simultaneous actuation of the plurality of word lines to generate a decision output for the in-memory compute operation; and a bit line clamping circuit comprising a sensing circuit configured to compare the analog voltage on a given bit line to a threshold voltage and a voltage clamp circuit that is actuated in response to the comparison to preclude the analog voltage on that given bit line from decreasing below a clamping voltage level.
2. The circuit of claim 1, wherein the voltage clamp circuit comprises: a transistor having a source-drain path coupled between a supply voltage node and the given bit line; wherein a gate terminal of the transistor is configured to receive a clamp actuate signal that is asserted by the sensing circuit in response to the comparison.
3. The circuit of claim 2, further comprising a flag signal generated in response to the clamp actuate signal, wherein the flag signal is indicative of a loss of sensitivity of the decision output for the in-memory compute operation.
4. The circuit of claim 1, wherein the voltage clamp circuit comprises: a first transistor having a source-drain path coupled between a supply voltage node and the given bit line; a second transistor having a source-drain path coupled in series with the source-drain path of the first transistor; wherein a gate terminal of the transistor is configured to receive a clamp actuate signal that is asserted by the sensing circuit in response to the comparison; and wherein a gate terminal of the second transistor is configured to receive a control signal.
5. The circuit of claim 4, further comprising a flag signal generated in response to the clamp actuate signal, wherein the flag signal is indicative of a loss of sensitivity of the decision output for the in-memory compute operation.
6. The circuit of claim 4, wherein the control signal is an analog bias voltage, and a voltage level of the analog bias voltage is configured to control a strength of the clamping circuit in clamping the bit line to the clamping voltage level.
7. The circuit of claim 6, further comprising: a voltage generating circuit configured to generate the analog bias voltage in response to a setting signal; and a control circuit configured to generate the setting signal for application to the voltage generator circuit.
8. The circuit of claim 7, wherein the setting signal is configured to cause modulation of the analog bias voltage away from a nominal level in response to an applicable integrated circuit process corner for transistor devices of the SRAM cells.
9. The circuit of claim 7, wherein the applicable integrated circuit process corner is indicated by a programmed code stored in the control circuit, and wherein the control circuit includes a lookup table (LUT) correlating the programmed code to a value of the setting signal.
10. The circuit of claim 7, wherein the control circuit further comprises a temperature sensor, and wherein the setting signal is configured to cause a temperature dependent tuning of the analog bias voltage in response to applicable integrated circuit process corner.
11. The circuit of claim 10, wherein the control circuit includes a lookup table (LUT) correlating sensed integrated circuit temperature to a tuning level for the value of the setting signal.
12. The circuit of claim 7, wherein the control circuit further comprises a temperature sensor, and wherein the setting signal is configured to cause modulation of the analog bias voltage away from a nominal level in response to an integrated circuit temperature sensed by the temperature sensor.
13. The circuit of claim 12, wherein the control circuit includes a lookup table (LUT) correlating sensed integrated circuit temperature to a value of the setting signal.
14. The circuit of claim 4, wherein the control signal is digital control signal, and a digital value of the digital control signal is configured to control a strength of the clamping circuit in clamping the bit line to the clamping voltage level.
15. The circuit of claim 14, further comprising a control circuit configured to generate the digital control signal.
16. The circuit of claim 15, wherein the digital control signal is configured to cause modulation of clamping circuit strength away from a nominal level in response to an applicable integrated circuit process corner for transistor devices of the SRAM cells.
17. The circuit of claim 16, wherein the applicable integrated circuit process corner is indicated by a programmed code stored in the control circuit, and wherein the control circuit includes a lookup table (LUT) correlating the programmed code to a value of the digital control signal.
18. The circuit of claim 16, wherein the control circuit further comprises a temperature sensor, and wherein the digital control signal is configured to cause a temperature dependent tuning of clamping circuit strength in response to applicable integrated circuit process corner.
19. The circuit of claim 18, wherein the control circuit includes a lookup table (LUT) correlating sensed integrated circuit temperature to a tuning level for the value of the digital control signal.
20. The circuit of claim 15, wherein the control circuit further comprises a temperature sensor, and wherein the digital control signal is configured to cause modulation of clamping circuit strength away from a nominal level in response to an integrated circuit temperature sensed by the temperature sensor.
21. The circuit of claim 20, wherein the control circuit includes a lookup table (LUT) correlating sensed integrated circuit temperature to a value of the digital control signal.
22. The circuit of claim 1, wherein the sensing circuit comprises a circuit selected from a group consisting of: a Schmitt trigger circuit, a MOS inverter circuit, and a differential amplifier circuit.
23. The circuit of claim 1, wherein the bit line clamping circuit further comprises a logic circuit configured to logically combine an output of the sensing circuit with a clamping circuit enable signal, wherein said logic circuit is configured, when said clamping circuit enable signal is deasserted, to block actuation of the voltage clamp circuit.
24. The circuit of claim 1, wherein said given bit line is one of a pair of bit lines for the SRAM cell.
25. The circuit of claim 1, wherein the bit line clamping circuit is a component of a bit line precharge circuit.
26. A circuit, comprising: a memory array including a plurality of static random access memory (SRAM) cells arranged in a matrix with plural rows and plural columns, each row including a word line connected to the SRAM cells of the row, and each column including a pair of bit lines connected to the SRAM cells of the column; a word line driver circuit for each row having an output connected to drive the word line of the row; a row controller circuit configured to simultaneously actuate the plurality of word lines by applying pulses through the word line driver circuits to the word lines for an in-memory compute operation; a column processing circuit connected to the pair of bit lines for each column and configured to process analog voltages developed on the pair of bit lines in response to the simultaneous actuation of the plurality of word lines to generate a decision output for the in-memory compute operation; and a bit line clamping circuit comprising a sensing circuit configured assert a clamp actuate signal if the analog voltage on either bit line of a given pair of bit lines fall below a threshold voltage and a voltage clamp circuit that is actuated in response to assertion of the clamp actuate signal to clamp the analog voltages on that given pair of bit lines to a clamping voltage level.
27. The circuit of claim 26, wherein the voltage clamp circuit comprises: a first transistor having a source-drain path coupled between a supply voltage node and a first bit line of said given pair of bit lines; and a second transistor having a source-drain path coupled between the supply voltage node and a second bit line of said given pair of bit lines; wherein gate terminals of the first and second transistors are configured to receive said clamp actuate signal.
28. The circuit of claim 26, wherein the voltage clamp circuit comprises: a first transistor having a source-drain path coupled between a supply voltage node and a first bit line of said given pair of bit lines; a second transistor having a source-drain path coupled between the supply voltage node and a second bit line of said given pair of bit lines; wherein gate terminals of the first and second transistors are configured to receive said clamp actuate signal; a third transistor having a source-drain path coupled in series with the source-drain path of the first transistor; and a fourth transistor having a source-drain path coupled in series with the source-drain path of the second transistor; wherein gate terminals of the third and fourth transistors are configured to receive a control signal.
29. The circuit of claim 28, wherein the control signal is an analog bias voltage, and a voltage level of the analog bias voltage is configured to control a strength of the clamping circuit in clamping the bit line to the clamping voltage level.
30. The circuit of claim 29, further comprising: a voltage generating circuit configured to generate the analog bias voltage in response to a setting signal; and a control circuit configured to generate the setting signal for application to the voltage generator circuit.
31. The circuit of claim 30, wherein the setting signal is configured to cause modulation of the analog bias voltage away from a nominal level in response to an applicable integrated circuit process corner for transistor devices of the SRAM cells.
32. The circuit of claim 31, wherein the applicable integrated circuit process corner is indicated by a programmed code stored in the control circuit, and wherein the control circuit includes a lookup table (LUT) correlating the programmed code to a value of the setting signal.
33. The circuit of claim 31, wherein the control circuit further comprises a temperature sensor, and wherein the setting signal is configured to cause a temperature dependent tuning of the analog bias voltage in response to applicable integrated circuit process corner.
34. The circuit of claim 33, wherein the control circuit includes a lookup table (LUT) correlating sensed integrated circuit temperature to a tuning level for the value of the setting signal.
35. The circuit of claim 30, wherein the control circuit further comprises a temperature sensor, and wherein the setting signal is configured to cause modulation of the analog bias voltage away from a nominal level in response to an integrated circuit temperature sensed by the temperature sensor.
36. The circuit of claim 35, wherein the control circuit includes a lookup table (LUT) correlating sensed integrated circuit temperature to a value of the setting signal.
37. The circuit of claim 26, wherein the sensing circuit comprises a circuit selected from a group consisting of: a Schmitt trigger circuit, a MOS inverter circuit and a differential amplifier circuit.
38. The circuit of claim 26, wherein the bit line clamping circuit further comprises a logic circuit configured to logically combine an output of the sensing circuit with a clamping circuit enable signal, wherein said logic circuit is configured, when said clamping circuit enable signal is deasserted, to block actuation of the voltage clamp circuit.
39. The circuit of claim 26, wherein the bit line clamping circuit is a component of a bit line precharge circuit.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0016] For a better understanding of the embodiments, reference will now be made by way of example only to the accompanying figures in which:
[0017]
[0018]
[0019]
[0020]
[0021]
[0022]
[0023]
[0024]
[0025]
[0026]
[0027]
[0028]
DETAILED DESCRIPTION OF THE DRAWINGS
[0029] Reference is now made to
[0030] The clamping voltage level Vcl is specifically set by circuit design, calibration and/or modulation to be higher than a voltage Vdf where there is a risk that an unwanted data flip in a memory cell 14 could occur. In an embodiment, the clamping voltage level Vcl may have a nominal voltage substantially equal to (i.e., within plus/minus a few percent) about one-half of the supply voltage (i.e., Vdd/2). Some selected modulation of the clamping voltage level Vcl plus/minus some amount away from the nominal Vdd/2 voltage may be supported in view of integrated circuit process and/or temperature conditions.
[0031] In an embodiment, the threshold voltage level for triggering actuation of the voltage clamping circuit may be substantially equal to (i.e., within plus/minus a few percent of) the clamping voltage level Vcl. In any case, however, the threshold voltage level for triggering actuation of the voltage clamping circuit is preferably set at a level where the risk of an unwanted data flip is a concern.
[0032] The selective clamping circuits 112 may be configured to generate a flag signal (Flag) each time the voltage clamp circuit is activated. This flag signal can provide feedback to the in-memory computation system to indicate that some loss of sensitivity in the in-memory compute operation has occurred due to activation of the bit line clamping function. Based on this information, some corrective action can be taken by the in-memory computation system (for example, by taking an action to repeat the computation cycle with a data reorganization designed to preclude generation of the dangerous analog voltage level or taking an action to ignore the results of this specific computation cycle where the flag is asserted). Additionally, based on this information, the in-memory computation system can evaluate whether the decision output for the in-memory compute operation can be considered as valid, notwithstanding the loss of sensitivity due to activation of the bit line clamping function.
[0033] Although the selective clamping circuits 112 are shown as distinct from the bit line precharge circuit 22, it will be understood that in an embodiment the selective clamping circuits 112 may be implemented as a part of the bit line precharge circuit 22.
[0034]
[0035] Reference is now made to
[0036] A first detection circuit 118 (for example, comprising a Schmitt trigger circuit or series connected MOS inverter circuits) for threshold crossing detection has an input coupled (preferably directly connected) to the true bit line BLT, and a second detection circuit 120 (for example, comprising a Schmitt trigger circuit or series connected MOS inverter circuits) for threshold crossing detection has an input coupled (preferably directly connected) to the complement bit line BLC. The first and second detection circuits 118, 120 are configured to sense the voltage levels on the true and complement bit lines BLT, BLC, respectively. A comparison of the sensed bit line voltage against a threshold voltage level is made by each detection circuit 118, 120, with the threshold voltage level being the high-to-low threshold switching voltage set by the circuit configuration of the detection circuit. The output of each detection circuit 118, 120 generates a trigger signal Tr1, Tr2, respectively, having logic level associated with the result of the comparison of the sensed bit line voltage to the threshold voltage level. The trigger signals Tr1, Tr2 output from the detection circuits 118, 120 are logically combined by a logic circuit 122 to generate the clamp actuate signal Cmp. In an embodiment, the logic circuit is a logic AND gate, and each trigger signal Tr1, Tr2 would be asserted logic low in the event that the threshold voltage level is crossed. The detection circuits 118, 120 and logic circuit 122 together form a sensing circuit which controls actuation of the voltage clamp circuit formed by transistors 114 and 116. When either trigger signal Tr1 or Tr2 is asserted logic low, the clamp actuate signal Cmp is likewise asserted logic low through the AND logic and both of the first and second transistors 114 and 116 are turned on to actuate the voltage clamp circuit and clamp the maximum permitted voltage drop on the pair of bit lines BLT and BLC to the clamping voltage level Vcl. Conversely, when both trigger signals Tr1 and Tr2 are asserted logic high, the clamp actuate signal Cmp is likewise asserted logic high through the AND logic in order to turn off the first and second transistors 114 and 116.
[0037] The level of the high to low switching threshold for each detection circuit 118, 120 (i.e., the threshold voltage level) may be tuned by the circuit designer to ensure that the level is sufficient to protect against unwanted data flip while still permitting a sufficient voltage swing on the bit lines. Additionally, some process dependent compensation of the detection circuit can be designed in order to tune the threshold voltage level. In this regard, it will be noted that the data flip voltage Vdf level is process dependent and tuning of the threshold voltage level as function of this process dependency will effectuate and adjustment of the clamping circuit operation to provide the necessary protection while also allowing the circuit to achieve a better (higher) bit line swing range.
[0038] In this implementation, the clamp actuate signal Cmp may further comprise the flag signal (Flag). Alternatively, the clamp actuate signal Cmp may be input to a logic circuit which responds to assertion of the clamp actuate signal Cmp by controlling assertion of the flag signal.
[0039]
[0040] A voltage generator circuit 332 receives a control signal Vsel. In an embodiment, the control signal Vsel is a multi-bit digital signal, but it will be understood that the control signal can instead be implemented as an analog signal. The value of the control signal (in particular, the digital values of the bits of the control signal Vsel) select the level of the bias voltage Vbias output by the voltage generator circuit 332. The control signal Vsel is generated by a control circuit 314 in response to integrated circuit process and/or temperature information, and thus the level of the bias voltage Vbias is modulated in a manner which is dependent on that integrated circuit process and/or temperature information.
[0041] The integrated circuit process information is a digital code generated and stored in a memory M within the control circuit 314. The digital code represents the centering of the process lot and is generated by circuitry such as, for example, ring oscillators (RO) whose output frequency varies dependent on integrated circuit process. The output frequencies of the RO circuits thus represent the process centering and can easily be converted into a digital code (for example, through the use of counter circuits). A process monitoring circuit 316 within the control circuit 314 can generate the value of the control signal Vsel as a function of the stored digital code for the integrated circuit process. For example, the process monitoring circuit 316 may include a look-up table (LUT) that correlates each digital code with a value of the control signal Vsel for providing a specific level of the bias voltage Vbias that will produce an optimal level of strength for clamping circuit operation in clamping to the bit line clamping voltage Vcl for the integrated circuit process corner (i.e., control the conductivity of the third and fourth MOSFET devices 115 and 117 so as to set the strength of the clamped circuit operation when the clamp actuate signal Cmp is asserted and the transistors 114 and 116 are turned on). The control circuit 314 outputs the digital value of the control signal Vsel correlated to the stored digital code and the voltage generator circuit 332 responds by generating the corresponding level for the bias voltage Vbias.
[0042] The temperature information is generated by a temperature sensing circuit 318 and represents a current temperature of the integrated circuit. The temperature sensing circuit 318 may select, modify or adjust the digital value of the control signal Vsel as a function of the sensed temperature. For example, the temperature sensing circuit 318 may include a look-up table (LUT) that specifies a certain (positive or negative) adjustment in the digital value of the control signal Vsel for providing a corresponding tuning of the specific level of the bias voltage Vbias that will produce optimal bit line clamping circuit performance given the integrated circuit process corner and current temperature condition.
[0043] Reference is now made to
[0044] In the implementation of the circuit 112 shown in
[0045] Reference is now made to
[0046] A first circuit 128 includes a detection circuit (for example, comprising a Schmitt trigger circuit or series connected MOS inverter circuits) 118′ for threshold crossing detection having an input coupled (preferably directly connected) to the true bit line BLT, and a second circuit 130 includes a detection circuit (for example, comprising a Schmitt trigger circuit or series connected MOS inverter circuits) 120′ for threshold crossing detection having an input coupled (preferably directly connected) to the complement bit line BLC. The detection circuits 118, 120 (see,
[0047] The enable clamp signal En may be generated by a control circuit of the overall system. The same enable clamp signal En may be applied by the control circuit to all of the selective clamping circuits 112. Alternatively, an individual enable clamp signal En may be applied by the control circuit to each selective clamping circuit 112. The determination as whether the control circuit will assert/deassert the enable clamp signal En can be made based on data and layer statistics. For example, the enable clamp signal En may be deasserted dependent on the data values for the computational weights stored in the memory. For example, if the stored computational weights for the in-memory compute operation are viewed as being unlikely because of their arrangement in the memory to result in a bit line voltage drop that could cause an unwanted data flip, then there is no need to enable operation of the clamping function. Furthermore, the enable clamp signal En may be deasserted dependent on the feature (sensor) data for the in-memory compute operation. For example, if the feature (sensor) data are viewed as being unlikely because of their values to result in a bit line voltage drop that could cause an unwanted data flip, then the control circuit can deassert the enable clamp signal En and disable the clamping function.
[0048] In this implementation, the clamp actuate signal Cmp may further comprise the flag signal (Flag). Alternatively, the clamp actuate signal Cmp may be input to a logic circuit which responds to assertion of the clamp actuate signal Cmp by controlling assertion of the flag signal.
[0049]
[0050] Reference is now made to
[0051] A first differential amplifier circuit 138 has a first input coupled (preferably directly connected) to the true bit line BLT and a second input coupled to receive a reference voltage Vref. The first differential amplifier circuit 138 is enabled for differential operation in response to an enable clamp signal En. A second differential amplifier circuit 140 has a first input coupled (preferably directly connected) to the complement bit line BLC and a second input coupled to receive the reference voltage Vref. The second differential amplifier circuit 140 is enabled for differential operation in response to the enable clamp signal En. The output signals O1 and O2 from the differential amplifier circuits 138, 140 are logically combined by a logic AND circuit 132 to generate the clamp actuate signal Cmp. The amplifier circuits 138, 140 and logic AND circuit 132 together form a sensing circuit which controls actuation of the voltage clamp circuit formed by transistors 114 and 116.
[0052] The logic value of the enable clamp signal En determines whether the bit line clamping protection provided by the selective clamping circuit 112 is enable or disabled. In this regard, there may be instances where it is desired for bit line clamping to be deactivated and deasserting the enable clamp signal En will cause this to happen. In this condition, the outputs O1 and O2 of the first and second differential amplifier circuits 138 and 140 will each be logic high and the logic AND circuit will deassert the clamp actuate signal Cmp logic high to turn off both of the first and second transistors 114 and 116.
[0053] However, when the enable clamp signal En is asserted, the first and second differential amplifier circuits 138 and 140 are enabled for operation to perform the comparison and the generation of a logic low signal at either of the outputs O1 and O2 of the first and second differential amplifier circuits 138 and 140 is dependent on the sensed bit line voltage falling from the precharge voltage level Vdd to below a threshold voltage set by the reference voltage Vref. In response to a logic low state for either of the outputs O1 and O2 (which occurs when the sensed bit line voltage falls below the threshold voltage), the logic AND circuit will assert the clamp actuate signal Cmp logic low to turn on both of the first and second transistors 114 and 116 to clamp the maximum permitted voltage drop on the pair of bit lines BLT and BLC.
[0054] The enable clamp signal En may be generated by a control circuit of the overall system. The same enable clamp signal En may be applied by the control circuit to all of the selective clamping circuits 112. Alternatively, an individual enable clamp signal En may be applied by the control circuit to each selective clamping circuit 112. The determination as whether the control circuit will assert/deassert the enable clamp signal En can be made based on data and layer statistics. For example, the enable clamp signal En may be deasserted dependent on the data values for the computational weights stored in the memory. For example, if the stored computational weights for the in-memory compute operation are viewed as being unlikely because of their arrangement in the memory to result in a bit line voltage drop that could cause an unwanted data flip, then there is no need to enable operation of the clamping function. Furthermore, the enable clamp signal En may be deasserted dependent on the feature (sensor) data for the in-memory compute operation. For example, if the feature (sensor) data are viewed as being unlikely because of their values to result in a bit line voltage drop that could cause an unwanted data flip, then the control circuit can deassert the enable clamp signal En and disable the clamping function.
[0055] It will further be noted that the use of the enable clamp signal En is optional in an embodiment of this selective clamping circuit 112. In other words, the first and second differential amplifier circuits 138 and 140 are configured in this mode to always operate in the differential comparison mode where the logic state of the outputs O1 and O2 is solely dependent on the comparison of the bit line voltages to the reference voltage Vref.
[0056] In an implementation, the clamp actuate signal Cmp may further comprise the flag signal (Flag). Alternatively, the clamp actuate signal Cmp may be input to a logic circuit which responds to assertion of the clamp actuate signal Cmp by controlling assertion of the flag signal.
[0057]
[0058] The foregoing description has provided by way of exemplary and non-limiting examples a full and informative description of the exemplary embodiment of this invention. However, various modifications and adaptations may become apparent to those skilled in the relevant arts in view of the foregoing description, when read in conjunction with the accompanying drawings and the appended claims. However, all such and similar modifications of the teachings of this invention will still fall within the scope of this invention as defined in the appended claims.