Circuits, systems, and methods for digital-to-analog conversion
By using a combination of delay-locked loop and multiplexer circuit in the integrated storage and computing array, the pulse signal generation and capacitor charging are optimized, which solves the problem of high power consumption during the digital/analog conversion process of the CIM array and achieves a more efficient High power efficiency and stability.
Patent Information
- Application Number
- CN202410426256.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-06-28
- Filing Date
- 2024-04-10
- Publication Date
- 2024-10-25
AI Technical Summary
Existing storage and computing integrated (CIM) arrays have the problem of high power consumption during the digital-to-analog conversion process, especially due to the consumption of peripheral circuit systems such as DAC and ADC, which results in low system power efficiency.
A timing generation scheme based on a delay locked loop (DLL) is designed, which combines a multiplexer circuit and a pulse signal generator to optimize the charging time of the capacitor by the current source by controlling the pulse width and edge interval of the pulse signal. Reduce the number of current sources and reduce power consumption.
It effectively reduces the power consumption during the digital/analog conversion process, improves the power efficiency of the system, reduces the need for additional hardware and calibration operations through the DLL's calibration mechanism, and enhances the stability of process variability.
Smart Images

Figure CN118842472A_ABST
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to U.S. Provisional Patent Application No. 63 / 498,217, filed on April 25, 2023, entitled “Delay-Locked Loop based timing generation scheme for Digital-to-Analog conversion for Compute-In-Memory macros,” and is related to U.S. Patent Application No. 17 / 162,694, filed on January 29, 2021, entitled “Computation In-Memory Using 6-Transistor Bit cells,” and U.S. Patent No. 11,551,745, filed on August 5, 2021, entitled “Computation In-Memory Architecture For Analog-to-Digital Conversion,” all of which are incorporated herein by reference in their entirety. Technical Field
[0003] The present application relates to an electronic device, and more particularly to a digital / analog converter. Background Art
[0004] A convolutional neural network (CNN) is a neural network designed to process data. A CNN may include one or more layers, and each layer may generate output data based on a dot product between the input data of the layer and the filter weights. One way to implement a CNN is to use a compute-in-one (CIM) memory array. The CIM array may include a memory device for storing the filter weights of the CNN layer. The CIM array may interface with peripheral circuit systems, such as a digital-to-analog converter (DAC) and an analog-to-digital converter (ADC). For example, a DAC may convert digital input data into an input analog voltage signal. The CIM array may combine analog input voltages based on filter weights to generate an output analog voltage signal representing a dot product. The ADC may convert the output analog voltage signal into digital output data.
[0005] Another way to implement a CNN is to use a processor. The weights and input data can be fetched from memory to the processor, which can perform calculations on the weights and input data to generate a dot product. Compared to such an arrangement, using a CIM array can reduce the data transfer and calculations involved in the dot product generation, which can reduce power consumption. However, peripheral circuitry such as DACs and ADCs can consume a considerable amount of power. Summary of the invention
[0006] In one example, a circuit includes a current source, a switch, a pulse signal generator, and a multiplexer circuit. The current source has a current output. The switch is coupled between the current output and a current terminal, and the switch has a switch control input. The pulse signal generator has a pulse signal output, and the pulse signal generator is configured to provide a pulse signal with different pulse widths at the pulse signal output. The multiplexer circuit has a pulse signal input, a selection input, and a selected pulse signal output. The selected pulse signal output is coupled to the switch control input, and the pulse signal input is coupled to the pulse signal output.
[0007] In one example, a system includes a computing-in-one (CIM) array, a digital-to-analog converter (DAC), and an analog-to-digital converter (ADC). The CIM array has a computing input and a computing output. Each DAC has a corresponding pulse signal input, a corresponding digital input, and a corresponding analog output. The analog output of the DAC is coupled to the computing input. Each DAC includes a corresponding current source coupled to a corresponding current output. Each DAC also includes a corresponding switch coupled between the corresponding current output and the corresponding analog output, and the corresponding switch has a corresponding switch control input. Each DAC includes a corresponding multiplexer circuit, the corresponding multiplexer circuit has the corresponding pulse signal input, a corresponding selection input coupled to the corresponding digital input, and a corresponding selected pulse signal output, and the corresponding selected pulse signal output is coupled to the corresponding switch control input. Each DAC includes a corresponding pulse signal generator, the corresponding pulse signal generator has a corresponding pulse signal output coupled to the corresponding pulse signal input, and the corresponding pulse signal generator is configured to provide a pulse signal with a different pulse width at the corresponding pulse signal output. Each of the ADCs has a corresponding analog input and a corresponding digital output, and the analog input of the ADC is coupled to the computing output.
[0008] In one example, a method includes receiving pulse signals having different pulse widths. The method further includes receiving a digital signal representing a value. The method includes, in response to the digital signal, combining subsets of the pulse signals to generate a combined pulse signal having a pulse width representing the value. The method further includes charging a capacitor over an interval to provide a voltage representing the value based on the combined pulse width. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] Figure 1 is a schematic diagram showing a convolutional neural network (CNN) among various examples.
[0010] Figure 2 is a schematic diagram showing memory circuits configured as a compute-in-one (CIM) array in various examples.
[0011] Figure 3 is a schematic diagram showing application of dot product operations in the digital and analog domains in various examples.
[0012] Figure 4 is a schematic diagram illustrating a system including a CIM array with a multiply / average (MAV) circuit in various examples.
[0013] Figure 5 is to show various examples of what can be Figure 4 Schematic diagram of the digital-to-analog converter (DAC) portion of the system.
[0014] Fig. 6A is a diagram showing various examples Figure 5 Schematic diagram of the internal components of the DAC.
[0015] Figure 6B Contains examples showing various Figure 5 Diagram of the operation of the DAC.
[0016] Figure 7 The invention is a diagram showing various examples of a pulse signal generator, a CIM array and a Figure 5 Schematic diagram of the DAC system.
[0017] Figure 8 is a diagram showing various examples Figure 7 Schematic diagram of the internal components of the pulse signal generator.
[0018] Fig. 9 Contains examples showing various Figure 7 Diagram of the operation of the pulse signal generator.
[0019] Fig.10 and Fig.11 is a diagram showing various examples Figure 7Schematic diagram of the delay locked loop (DLL) of the pulse signal generator.
[0020] Fig.12 is a diagram showing various examples Figure 7 Schematic diagram of the edge combiner circuit of the pulse signal generator.
[0021] Fig.13A , Fig. 13B , Fig. 13C and Fig.13D is a schematic diagram illustrating calibration circuitry and internal components of a DLL for supporting calibration operations in various examples.
[0022] Fig.14 is a flow chart of a digital-to-analog conversion method in various examples.
[0023] The same reference numbers are used throughout the drawings to indicate the same (or similar) features. DETAILED DESCRIPTION
[0024] Figure 1 1 is a block diagram illustrating an example convolutional neural network (CNN) 100 computation. In this example, CNN 100 receives input data 102 and performs inference operations on the input data. Figure 1 In the example of , input data 102 may be image data, and CNN 100 may perform inference operations to classify the image.
[0025] CNN 100 may include multiple convolutional layers 104. Input data 102 is provided to the first of the convolutional layers 104. Each convolutional layer 104 includes multiple (digital) filters applied to the input data provided to the convolutional layer 104, and each filter includes multiple filter weights. For example, convolutional layer 104 applies filter weights W to input data X to generate or provide output data Y. In some cases, convolutional layer 104 can generate outputs representing various features extracted from input data 102. CNN 100 includes fully connected layers 106 to provide classification 108 of input data 102 based on the features extracted by convolutional layer 104.
[0026] Figure 2 is a schematic diagram showing a block diagram of an example system 200. System 200 may implement at least a portion of CNN 100. System 200 includes a buffer circuit system 202 to receive an input X (e.g., input data 102 or an output provided by a previous layer 104). As described below, input X may be a digital signal, and a digital-to-analog converter (DAC, Figure 2 The digital signal is converted into an analog voltage (V a) signal, which is then provided to CIM array 204. The DAC may be part of buffer circuitry 202, or may be coupled between buffer circuitry 202 and CIM array 204. CIM array 204 may store filter weights W for convolution layer 104 (or a portion of convolution layer 104). CIM array 204 may generate a dot product by combining Va signals based on filter weights W, and provide the dot product as output Y. In some examples, output Y is an analog voltage signal, but in other examples, output Y is a digital signal (e.g., converted from an analog voltage using an analog-to-digital converter (ADC)).
[0027] Figure 3 is a schematic diagram of an example dot product operation 300 that may be performed by system 200. In dot product operation 300, input value X IN and the quantized filter weights (w k ) to generate the digital output value Y OUT . Using quantized filter weights (e.g., 16-bit, 8-bit, 4-bit, binary, or ternary weight values) reduces the memory used to store the filter weights while maintaining acceptable accuracy. Binary weights are represented as a single bit, while ternary bits are represented as two bits. For example, in a binary weighting scheme, a weight value of -1 is represented as a bit value of 1, and a weight value of +1 is represented as a bit value of 0. In another example, in a ternary weighting scheme, a weight value of -1 is represented as a bit value of 11, a weight value of +1 is represented as a bit value of 00, and a weight value of 0 is represented as 01 or 10.
[0028] Provides digital input X to CIM array 204 IN,i Using a relatively large number of wires (e.g., one wire per bit, where each digital input is multiple bits) introduces layout complexity and may also increase the area of the CIM array 204. Therefore, the digital inputs may be converted into analog voltage signals, and each analog voltage signal may be provided to the CIM array 204 on a single wire (or a pair of wires for differential signals). The example dot product operation 300 includes converting the digital input value X IN,i Converted into an analog voltage signal V a,i DAC stage 302.
[0029] In some examples, as described above, the filter weights used for the dot product operation can be quantized, for example, by factoring out a scaling factor from the initial weight value. In these examples, the scaling factor is expressed as a ratio of two integers, M / N, where N is the input X IN (or V a ). Figure 2 For simplicity, M is ignored, since it can be used to scale the final result (e.g., Y OUT), such as by multiplication (eg, in the digital domain). The example dot product operation 300 also includes a multiplication / average (MAV) stage 304 for averaging each analog voltage signal V a With the filter weight w k Multiply them, then calculate the average by summing the products and dividing the sum by N, thus generating V Y_AVG Therefore, V Y_AVG Can represent multiple analog voltage signals V a The example dot product operation 300 also includes converting the analog voltage signal V Y_AVG Converted into digital output value Y OUT ADC stage 306 .
[0030] For example, the example dot product operation 300 performed by the system 200 may be more efficient and consume less power than if the weights and input data were fetched from memory to a processor, which then performs calculations on the weights and input data to generate a dot product. Specifically, in the system 200, the weights are stored in the CIM array 204, and the input data X is stored in the CIM array 204. IN Converted into an analog voltage signal V a , which can reduce the number of signals transmitted to CIM array 204, and within CIM array 204, the power consumed by data transmission can be reduced. In addition, CIM array 204 can include low-power circuitry for implementing MAV stage 304, which can further reduce the power consumption for generating dot products.
[0031] Figure 4 is a schematic diagram of an example system 400 including CIM array 204. In some examples, system 400 can be on an integrated circuit. CIM array 204 is configured to store filter weights W of convolutional layer 104 (or a portion of convolutional layer 104). Figure 4 In the example of , CIM array 204 includes an array of bit cells arranged into 256 rows and 64 columns. CIM array 204 includes 16 sub-arrays, including sub-arrays 402_0 and 402_15. Each sub-array 402 may have 16 rows and 64 columns of bit cells. Each sub-array 402 may store weights of filters of convolution layer 104. For example, the bit cells in sub-array 402_0 may store filter 0 weights, and the bit cells in sub-array 402_15 may store filter 15 weights. In other examples, the size of CIM array 204, the size of sub-arrays 402, and / or the number of sub-arrays 402 in CIM array 204 may be different than described above.
[0032] CIM array 204 also includes 16 MAV circuit arrays, including MAV circuit arrays 404_0 and 404_15, each coupled to a corresponding one of sub-arrays 402. For example, MAV circuit array 404_0 is coupled to sub-array 402_0, and MAV circuit array 404_15 is coupled to sub-array 402_15. MAV circuit array 404 can perform the operations of MAV stage 304, as described above. System 400 includes DAC 406, including DAC 406_0 and 406_31. Each DAC 406 is configured to receive a signal representing a convolution output or a dot product input (e.g., X IN ) and provides an analog voltage signal V representing the value of the digital signal a (or differential analog voltage signal). As described above, in some examples, the digital signal may represent multiple bits. Therefore, DAC 406 is suitable for reducing wiring to CIM array 204 by providing analog input (e.g., a single wire or differential wires) instead of digital input (e.g., multiple wires, depending on the bit width), which can also reduce the number of signals transmitted within CIM array 204 and the power consumption of data transmission. In addition, in Figure 4 In the example of , power consumed by DAC 406 is also reduced because each DAC 406 drives a single wire (or differential wire) rather than multiple wires that each represent a specific bit.
[0033] As described above, in Figure 4 In the example of , CIM array 204 has 64 columns of bit cells. However, in some examples, the bit cells in a row may be grouped into pairs to implement a ternary weighting scheme in which the grouped bit cell pairs represent ternary filter weights. Grouping the bit cells in a row into pairs effectively reduces the number of columns in CIM array 204 by half (e.g., CIM array 204 has 32 active columns). As described below, each MAV circuit array 404 includes a local MAV circuit 408 for each of the 32 active columns of CIM array 204 (or subarray 402). In Figure 4 In the example of , each of the 32 DACs 406 is coupled to a local MAV circuit 408 in a column of the CIM array 204 (e.g., via an interconnect GXBL) to provide an analog voltage signal to the local MAV circuit 408 in the column of the CIM array 204 (or sub-array 402).
[0034] For example, in Figure 4, GXBL[0] couples the DAC 406_0 output to the local MAV circuit 408 in column 0 of the MAV circuit array 404_0 for filter 0, to the local MAV circuit 408 in column 0 of the MAV circuit array 404_15 for filter 15, and to the local MAV circuit 408 in column 0 of the MAV circuit array 404 for filters 1-14, which are not shown for simplicity. Similarly, GXBL
[31] couples the DAC 406_31 output to the local MAV circuit 408 in column 31 of the MAV circuit array 404_0 for filter 0, to the local MAV circuit 408 in column 31 of the MAV circuit array 404_15 for filter 15, and to the local MAV circuit 408 in column 31 of the MAV circuit array 404 for filters 1-14, which are not shown for simplicity. Other DACs 406, also not shown for simplicity, provide analog voltage inputs to local MAV circuits 408 in other columns of the CIM array 204 in a similar manner.
[0035] The system 400 also includes ADCs 410, such as ADCs 410_0 and 410_15, each of which is configured to receive a pair of differential analog voltages (e.g., Vp and Vn) from the MAV circuit array 404 via Vp_int and Vn_int interconnects. The differential analog voltages received from the MAV circuit array 404 represent the analog voltage input V from the DAC 406. a The average value of the product multiplied by the filter weights in the sub-array 402 (e.g., in a row of the sub-array 402) coupled to the MAV circuit array 404. The ADC 410 is configured to provide a digital output Y indicating the value of the received differential analog voltage OUT (eg, Vp minus Vn). In the examples of the present specification, ADC 410 provides a digital output in response to the received differential analog voltage, which reduces the impact of common mode noise on the digital output Y. OUT The influence of the calculation. Digital output Y OUT Can represent convolution or dot product output.
[0036] As described above, in Figure 4 In the example of FIG. 4 , the CIM array 204 has 256 rows of bit cells, wherein there are 16 sub-arrays 402, each including 16 rows of bit cells. Therefore, the MAV circuit array 404 of each sub-array 402 is configured to receive an analog voltage input V from the DAC 406 a , each analog voltage signal V a The filter weights w in a row of subarray 402 k multiply and provide a differential analog voltage signal, wherein the differential analog voltage signal is each analog voltage signal Va The filter weights w in a row of subarray 402 k ADC 410 receives the differential analog voltage signal from MAV circuit array 404 and provides a digital output Y OUT As a convolution or dot product output. Thus, ADC 410 is configured to facilitate ADC stage 306, as described above.
[0037] Figure 4 Also shown is an extended portion 420 of a column of the subarray 402, which contains the local MAV circuit 408 for the column. The extended portion 420 contains 16 rows of bit cells 422. The bit cells 422 may be 6T bit cells (e.g., Figure 4 4 (shown) or other types of bit cells, such as 8T and 10T bit cells. As described above, the bit cells 422 store the filter weights wk. In this example, there is only one column of bit cells 422 (e.g., to implement a binary weighting scheme). However, as described above, in other examples, the bit cells 422 in a row are grouped into pairs to implement a ternary weighting scheme, where the grouped bit cell 422 pairs represent ternary filter weights.
[0038] The extended portion 420 also includes a first capacitor 424 and a second capacitor 426 that are shared by the active columns of the sub-array 402. The first capacitor 424 and the second capacitor 426 are coupled to the local MAV circuit 408. The first capacitor 424 and the second capacitor 426 are fabricated on a metal layer that is separate from (e.g., above) the layer on which the 6T bit cell 422 is fabricated and do not significantly increase the area of the sub-array 402 or the CIM array 204. Figure 4 4. In the example of FIG. 4, the second capacitor 426 is shown in detail as a metal top plate 428 and a metal bottom plate 430 that can be fabricated on a metal layer above the bit cell 422. In the example, the top plate 428 and the bottom plate 430 are fabricated on the same metal layer above the bit cell 422, and the capacitance provided by the first capacitor 424 and the second capacitor 426 is primarily metal-to-metal line capacitance. In other examples, multiple metal layers above the bit cell 422 can be used for fabrication, and the first capacitor 424 and the second capacitor 426 are implemented as parallel capacitors on the multiple metal layers. Each active column of the subarray 402 contains a first capacitor 424 and a second capacitor 426.
[0039] The extension portion 420 includes a first local bit line (LBL) and a second local bit line (LBLB) between the local MAV circuit 408 and the bit cell 422 of the column. In an example, the local bit lines LBL, LBLB are complementary. The extension portion 420 also includes a word line (WL) coupled to each bit cell 422 in a particular row. As described below, the word line WL is activated (e.g., driven to a logic high) to access the bit cell 422 (e.g., read from it or write to it). The examples of the present specification generally involve reading from the bit cell 422 so that the analog voltage input V a and the filter weight w stored in bit location 422 k To read from the bit cell 422, the local bit lines LBL, LBLB are precharged (e.g., precharged to a supply voltage (Vdd)), and then the word line WL is activated. One of the local bit lines is discharged in response to the value stored in the bit cell 422. For example, in response to the bit cell storing a 1, the bit line LBLB is discharged; in response to the bit cell storing a 0, the bit line LBL is discharged.
[0040] The local MAV circuit 408 is configured to receive an analog voltage input V from the GXBL interconnect. a , and during the DAC precharge phase, the GXBL interconnect is coupled to the first capacitor 424 and the second capacitor 426 to charge the first capacitor 424 and the second capacitor 426 to V a For example, the top plate 428 of each of the capacitors 424, 426 is charged to V a , the bottom plate 430 of each of the capacitors 424, 426 is coupled to the ground terminal. As described below, the local MAV circuit 408 is configured to discharge one of the first capacitor 424 and the second capacitor 426 in response to one of the bit lines LBL, LBLB being discharged in response to the bit cell 422 being read. For example, the first capacitor 424 represents a positive voltage (XAp = V a ), the second capacitor 426 represents a negative voltage (XAn=-V a ). Therefore, in response to bit cell 422 storing 1 (which corresponds to filter weight value -1), first capacitor 424 (corresponding to V a ) is discharged and the second capacitor 426 (corresponding to -V a ) remains charged. Therefore, the capacitors 424 and 426 that remain charged represent V a *w k The product of .
[0041] In the example of the present specification, the first capacitor 424 and the second capacitor 426 store the variable analog voltage input V a, without providing an analog voltage input to the bit cell 422 itself. This prevents the value stored in the bit cell 422 (e.g., filter weight) from being corrupted, for example, by applying a relatively low analog voltage to the bit cell 422 (e.g., bit lines LBL, LBLB). In addition, changes affecting the transistor of the bit cell 422 do not affect the charge on the first capacitor 424 and the second capacitor 426. Therefore, the V calculated by discharging one of the capacitors 424, 426 (e.g., to ground voltage) through the local MAV circuit 408 is a *w k The product of is also not affected by variations in the transistors of bit cell 422.
[0042] The local MAV circuit 408 calculates the V of each column a *w k After multiplication by , the local MAV circuit 408 is configured to couple the first capacitor 424 of each column (e.g., the top plate 428 of the first capacitor 424) to the Vp_AVG interconnect and couple the second capacitor 426 of each column (e.g., the top plate 428 of the second capacitor 426) to the Vn_AVG interconnect. Thus, the first capacitors 424 of each column are coupled in parallel while the second capacitors 426 of each column are coupled in parallel. This has the effect of averaging the voltages on the first capacitors 424 from each column and providing the average voltage on the Vp_AVG interconnect. Similarly, this has the effect of averaging the voltages on the second capacitors 426 from each column and providing the average voltage on the Vn_AVG interconnect. As described below, the ADC 410 is configured to provide a digital output Y OUT , respectively indicating the value of the received differential analog voltage (eg, Vp minus Vn). For example, ADC 410_0 receives differential analog voltages Vp[0] and Vn[0] from subarray 402_0 via interconnects Vp_int[0] and Vn_int[0] and generates Y OUT_0 In addition, ADC 410_15 receives differential analog voltages Vp
[15] and Vn
[15] from sub-array 402_15 via interconnects Vp_int
[15] and Vn_int
[15] and generates Y OUT_15 .
[0043] As described above, there is a method for converting a digital signal (eg, X IN_0 and X IN_31 ) into an analog voltage signal (for example, V a [0] and V a
[31] ) and transmitting the analog voltage signal to the CIM array 204 can reduce the number of wires and signals transmitted within the CIM array 204, thereby reducing power consumption within the CIM array 204. In addition, having each DAC 406 drive a single wire GXBL (or a pair of differential wires) instead of a pair of wires representing a digital signal X IN A set of wires with a bit width of 100 can also reduce power consumption at DAC 406. However, because system 400 includes a large number of DACs 406 to drive GXBL wires (e.g., Figure 4 Therefore, it is desirable to reduce the power consumption of each DAC 406 to further improve the power efficiency of the system 400.
[0044] In some examples, the CIM array 204 may also operate in a memory mode. In such a memory mode, the bit cell array of the CIM array 204 may be part of a static random access memory (SRAM) array. The system 400 may also include sense amplifiers 450 coupled to the GXBL interconnects, such as sense amplifier 450_0 coupled to GXBL[0] and sense amplifier 450_31 coupled to GXBL
[31] . When operating in the memory mode, the bit cells may function as SRAM bit cells, and data stored in the bit cells may be read using sense amplifiers 450. For example, sense amplifier 450_0 may provide a readout of a bit cell in a first column of the CIM array 204 by comparing the GXBL[0] voltage to a reference voltage VREF, and generate a sense amplifier output SA[0]. Additionally, sense amplifier 450_31 may provide a readout of a bit cell in a first column of the CIM array 204 by comparing the GXBL
[31] voltage to a reference voltage VREF, and generate a sense amplifier output SA
[31] .
[0045] Figure 5 It is possible Figure 4 Schematic diagram of an example DAC 500 of a portion of a DAC 406 (eg, DAC 406_0 and 406_31). Figure 5 DAC 500 includes a current source 502 having a current output 504, a switch 506 coupled between the current output 504 and a current terminal 508, the switch having a switch control input. For example, switch 506 may include a field effect transistor (FET), a bipolar junction transistor (BJT), etc. Current terminal 508 may be coupled to a GXBL conductor, such as Figure 4The current terminal 508 may also be coupled to a capacitor 510, which may be part of the DAC 500 or may be external to the DAC 500 (e.g., part of the CIM array 204). The DAC 500 may also include a reset switch 512 coupled between the current terminal 508 and ground.
[0046] The current source 502 can provide a current I DAC During the transition interval, switch 506 may be enabled for a duration T ON During the duration, the capacitor 510 can be charged by the current I DAC charging, and the voltage at the current terminal 508 is given by:
[0047]
[0048] The DAC 500 can generate a digital signal based on an input digital signal (eg, X IN ) Set the duration T ON To perform the digital / analog conversion operation, the voltage V at the current terminal 508 is 508 The magnitude of can represent the value of the digital signal. At the end of the conversion interval, DAC 500 can enable switch 512 to transfer voltage V 508 Reset to zero, DAC 500 can then perform another digital-to-analog conversion operation in a subsequent conversion cycle.
[0049] DAC 500 includes a multiplexer circuit 520 to set the duration T ON . The multiplexer circuit 510 has a pulse signal input 514, such as pulse signal inputs 514a, 514b, 514c, and 514n. The multiplexer circuit 520 also includes a digital input 516 and a control output 518. The multiplexer circuit 520 can receive pulse signals 524a, 524b, 524c, and 524n at the pulse signal inputs 514a, 514b, 514c, and 514n, respectively. The pulse signals can have different pulse widths within a conversion interval in which the DAC 500 performs digital / analog conversion, and at least one of the pulse signals can have a zero pulse width within the conversion interval. As described below, the pulse signal can be provided by a pulse signal generator that can include a delay locked loop (DLL), and the rising edge and the falling edge of the pulse signal are separated by multiples of a unit interval, wherein each unit interval can be a phase shift / delay provided by a delay unit of the DLL. Based on Equation 1, the unit interval may also correspond to the step size of the digital-to-analog conversion provided by DAC 500. Multiplexer circuit 520 may receive digital signal 526 (eg, X) at digital input 516. IN). Multiplexer circuit 520 may combine one or more of pulse signals 524a-n based on digital signal 526 to generate control signal 528 at control output 518. Control signal 528 may have a value representative of digital signal 526 and set duration T ON Pulse width.
[0050] DAC 500 may provide reduced power consumption. Compared to a DAC that includes a set of segmented current sources and performs digital-to-analog conversion by combining currents from the segmented current sources, DAC 500 includes a single current source and performs digital-to-analog conversion by controlling the time that the current source charges a capacitor. A reduced number of current sources may reduce power consumption and reduce area.
[0051] In addition, various performance indicators of DAC 500, such as step size and gain, can be controlled by setting the pulse width of pulse signals 524a, 524b, 524c and 524n and by setting the rising / falling edge intervals between the pulse signals. DAC Instead of (or in addition to) the amount of , the DLL may be calibrated to compensate for the current I provided by the current source 502 DAC The change of , thereby maintaining the same step length and gain across PVT. With such an arrangement, the additional segmented current source supporting the calibration operation can be omitted or at least reduced, thereby reducing the hardware and power consumption involved in the calibration operation.
[0052] Fig. 6A is a schematic diagram illustrating example internal components of multiplexer circuit 520, Figure 6B is a diagram showing an example of pulse signals 524a-n. Fig. 6A , the multiplexer circuit 520 may include a first multiplexer subcircuit 602 and a second multiplexer subcircuit 604. The first multiplexer subcircuit 602 has a digital input 516 (at Fig. 6A , digital input 516a and digital input 516b), phase selection input 612 and selection output 614. In response to the state of pulse signal 524n at phase selection input 612 (also marked as TD 56 ), the first multiplexer subcircuit 602 can provide one of two sets of selection signals 624a and 624b at the selection output 614. The first set of selection signals 624a represents the digital signal 526 (X IN ), and the second group of selection signals 624 represent the N most significant bits (MSBs) of the digital signal 526, and the second group of selection signals 624 represent the N least significant bits (LSBs) of the digital signal 526. Fig. 6A In the example of FIG. 5 , the digital signal 526 has 6 bits. Therefore, the first group selection signal 624 may represent the 3 MSB X IN[5:3], the second group selection signal 624 indicates 3 LSB X IN [2:0].
[0053] In addition, the second multiplexer subcircuit 604 has a pulse signal select input 634 coupled to the select output 614, the pulse signal input 514, and the control output 518. Fig. 6A In the example of FIG. 5 , the second multiplexer circuit 604 has eight pulse signal inputs 514a, 514b, 514c, 514d, 514e, 514f, 514g, and 514n to receive pulse signals 524a (also labeled TD0), 514b (also labeled TD9), 524c (also labeled TD10), and 524d (also labeled TD11). 18 ), 524d (also marked as TD 27 ), 514e (also marked as TD 36 ), 524f (also marked as TD 45 ), 524g (also marked as TD 54 ) and 524h (also marked as TD 63 ). The pulse signal 524a (TD0) may have a zero pulse width at least in the conversion interval. During the first conversion phase, the second multiplexer subcircuit 604 may select one of the pulse signals 524 as the control signal 528 at the control output 518 based on the 3-bit selection signal 624a. In addition, during the second conversion phase, the second multiplexer subcircuit 604 may select one of the pulse signals 524a-h as the control signal 528 at the control output 518. The pulse signals 524a-h selected in the two different conversion phases may be the same pulse signal or different pulse signals, and the total pulse width of the pulse signals selected in the two conversion phases may set the duration T ON , and can represent the digital signal 526 (X IN ). In addition, the first and second conversion phases may be continuous in time (or overlap in time) such that the pulse signals 524a-h selected in the two different conversion phases are combined into one continuous pulse signal. Because the switching of the switch 506 may inject charge into the capacitor 510 and introduce non-idealities in the digital-to-analog conversion operation, combining the pulse signals 514 into one continuous pulse signal (within the conversion interval) may reduce switching and improve the accuracy of the digital-to-analog conversion operation.
[0054] Figure 6B Figures are included showing examples of signals provided to and by the DAC 500. Figure 6B In FIG. 652 , the pulse signal TD 63 The voltage variation over time, FIG654 shows the pulse signal TD 54The voltage variation over time, Figure 656 shows the pulse signal TD 45 The voltage variation over time, FIG658 shows the pulse signal TD 36 The voltage variation over time, graph 660 shows the pulse signal TD 27 The voltage variation over time, FIG662 shows the pulse signal TD 18 The voltage changes over time, FIG664 shows the voltage changes of the pulse signal TD9 over time, FIG666 shows the voltage changes of the pulse signal TD0 over time, and FIG668 shows the voltage changes of the pulse signal TD 56 In addition, FIG670 shows the voltage change of the reset signal (RST) provided to the reset switch 512, and FIG672 shows the voltage change of the reset signal (RST) for the first X IN The voltage variation of the example control signal 528 generated, and the graph 674 represents the voltage variation of the example control signal 528 for the second X IN Another example control signal 528 is generated with a voltage variation.
[0055] refer to Figure 6B , pulse signal TD0-TD 63 may have the same switching cycle T SW , which may include a switching interval T CONV . Conversion interval T CONV It may include a first phase interval T A and the second phase interval T B . Pulse signal TD0-TD 63 Included in the conversion interval T CONV The pulse signal TD0 is in a logic zero state and has no pulse width, and each of the phase intervals T A and T B Pulse signals with different pulse widths TD9, TD 18 , TD 27 , TD 36 , TD 45 , TD 54 and TD 63 , wherein the first transition edge (eg, rising edge) is at a first phase interval T A and the second transition edge (eg, falling edge) is within the second phase interval T B The first transition edges of the pulse signals are evenly spaced at intervals equal to multiples of the unit interval t0, and the second transition edges are evenly spaced at intervals equal to t0, where t0 may represent the minimum time resolution of a pulse signal generator (e.g., DLL) that generates the pulse signals and may correspond to the step size of the DAC 500. Figure 6B In the example, the pulse width of these pulse signals can be given by the following formula:
[0056] TD 9k =8×ka ×t0+k b ×t0,k a With k b :0,1,..,7 (Equation 2)
[0057] In Equation 2, k a and k b Each of represents an integer from 0 to 7. The first term in Equation 2 can provide a first phase interval T A The second term in Equation 2 provides the second phase interval T B In the first phase interval T A The rising edges are evenly spaced at intervals equal to 8×t0, which reflects the X IN (8) is the difference in value between the consecutive numbers of the 3-bit MSB. B The falling edges are evenly spaced at t0, which reflects the X IN The difference in value between consecutive numbers of the 3 LSBs of (1).
[0058] Table 1 below shows that each pulse signal has a first phase interval T A and the second phase interval T B The pulse width in .
[0059] Pulse signal The first phase interval TA <![CDATA[Second phase interval T B > <![CDATA[TD0]]> 0 0 <![CDATA[TD9]]> <![CDATA[8t0]]> <![CDATA[t0]]> <![CDATA[TD 18 ]]> <![CDATA[16t0]]> <![CDATA[2t0]]> <![CDATA[TD 27 ]]> <![CDATA[24t0]]> <![CDATA[3t0]]> <![CDATA[TD 36 ]]> <![CDATA[32t0]]> <![CDATA[4t0]]> <![CDATA[TD 45 ]]> <![CDATA[40t0]]> <![CDATA[5t0 <!-- 8 -->]]> <![CDATA[TD 54 ]]> <![CDATA[48t0]]> <![CDATA[6t0]]> <![CDATA[TD 63 ]]> <![CDATA[56t0]]> <![CDATA[7t0]]>
[0060] Table 1
[0061] In addition, the digital signal 526 (X IN ) can be expressed as follows:
[0062] X IN =8×k A +k B (Equation 3)
[0063] In Equation 3, k A It means X IN (X IN [5:3]), k B It means X IN (X IN [2:0]).
[0064] The first multiplexer sub-circuit 602 may receive the pulse signal 524n (TD 56 ), which has a phase interval T with the first A Aligned pulse width. Response to TD 56 Indicates the first interval T A (For example, TD 56has a logic one state), the first multiplexer subcircuit 602 may provide a signal indicating k A The selection signal 624a of the second multiplexer sub-circuit 602 can be based on k A Select TD0-TD 63 In addition, in response to TD 56 Indicates the second phase interval T B (eg, TD56 has a logic zero state), the first multiplexer subcircuit 602 may provide a signal representing k B The selection signal 624b is provided, and the second multiplexer sub-circuit 602 can be based on k B Select TD0-TD 63 Referring to Figure 672, for X IN 24 (011000'b), the second multiplexer sub-circuit 604 may be configured to receive a first phase interval T A Select TD 27 (For X IN [5:3]011'b), and in the second phase interval T B Select TD0 (for X IN [2:0]000'b). In addition, referring to Figure 674, for X IN 63 (111111'b), the second multiplexer sub-circuit 604 can be in the first phase interval T A Select TD 63 (For X IN [5:3]111'b), and at the second phase interval T B Select TD7 (for X IN [2:0]111'b). In each of the diagrams 672 and 674, the control signal 528 is in the transition interval T CONV The pulse width of the single pulse can define the current I from the current source 502 to turn on the switch 506. DAC T for charging capacitor 510 ON In the second phase interval T B After completion, DAC 500 may assert the reset signal to enable reset switch 112 and reset capacitor 510 .
[0065] exist Fig. 6A and 6B In the example shown, X IN The multiplexer circuit 502 receives eight pulse signals and selects the eight pulse signals based on the first phase interval T. A The 3 MSBs and the second phase interval T BThe 3 LSB bits in the eight pulse signals are selected as the control signal 528. IN In the case of N bits (N is an even number), the multiplexer circuit 502 can receive 2 N / 2 A pulse signal, and the pulse width of the pulse signal can be based on the following formula:
[0066] TD ((N / 2)+1)*k =2 N / 2 ×kt0+kt0, k:0,1,..,N / 2 (Equation 4)
[0067] The first transition edge (eg, rising edge) of the pulse signal may be at the first phase interval T A China 2 N / 2 ×kt0 are evenly spaced, and the second transition edge (eg, falling edge) of the pulse signal may be at the second phase interval T B The pixels are evenly spaced with t0.
[0068] Figure 7 Shows that it contains Figure 5 DAC 500 and Figure 1-4 4. An example system 700 of a CIM array 204 and an ADC 410 is shown. In some examples, the system 700 can be on an integrated circuit. Figure 7 , the system 700 may include 32 DACs 500, including DACs 500_0, 500_1, and 500_31. The CIM array 204 may include processing inputs 706_0, 706_1, and 706_31, which are coupled to wires GXBL[0], GXBL[1], and GXBL
[31] , respectively. DAC 500_0 has a DAC for receiving a digital signal X IN_0 The DAC 500_1 has a digital input 516_0 and a current terminal 508_0 coupled to a processing input 706_0. IN_1 The DAC 500_31 has a digital input 516_1 and a current terminal 508_1 coupled to the processing input 706_1. IN_31 DAC 500_0 can be connected to digital input 516_31 and current terminal 508_31 coupled to processing input 706_31. IN_0 Converted into analog voltage V a [0], and V a [0] is provided to the processing input 706_0. DAC 500_1 can IN_1 Converted into analog voltage V a [1], and V a [1] is provided to the processing input 706_1. In addition, DAC 500_31 can IN_31Converted into an analog voltage signal V a
[31] , and V a
[31] Provided to processing input 706_31.
[0069] In addition, the CIM array 204 may include processing outputs 708_0, 708_1, and 708_15, which include interconnects Vp_AVG[0] and Vn_AVG[0], interconnects Vp_AVG[1] and Vn_AVG[1], and interconnects Vp_AVG
[15] and Vn_AVG
[15] , respectively. As described above, the CIM array 204 may generate analog voltage signals Vp_AVG[0] and Vn_AVG[0] based on the analog voltage signals Vp_AVG[1] and Vn_AVG[1] provided by the DACs 500_0-500_31. a [0]-V a
[31] and filter weights 1-15 to generate differential average voltage signals Vp[0] and Vn[0], Vp[1] and Vn[1], Vp
[15] and Vn
[15] , etc., and provide differential average voltage signals at processing outputs 708_0-708_15. ADCs 410_0, 410_1, and 410_15 can convert the differential average voltage signals into digital signals Y OUT_0 , Y OUT_1 and Y OUT_15 .
[0070] In addition, the system 700 includes a pulse signal generator 730 having a pulse signal output 732 coupled to the pulse signal input 514 of each DAC 500, such as the pulse signal inputs 514_0, 514_1, and 514_31. The pulse signal generator 730 can provide the pulse signals 524a-n at the pulse signal output 732, and each DAC 500 can receive the same set of pulse signals 524a-n (or an identical copy of the pulse signals 524a-n) at its pulse signal input 514. Such an arrangement allows the multiplexer circuit 520 of each DAC 500 to generate the control signal 518 using the same set of pulse signals 524a-n (or a copy of the pulse signals 524a-n having the same set of pulse widths), thereby allowing the DAC 500 to convert from the digital signal 526 to the duration Ton (and the analog voltage V according to the same relationship). a ), and reduce the gain error between the DAC 500.
[0071] Figure 8 Schematic diagram showing example internal components of the pulse signal generator 730. Figure 8, the pulse signal generator 730 may include a DLL 802 and an edge combiner circuit 804. The DLL 802 may include a reference clock input 812 for receiving a reference clock signal 814. The DLL 802 may include a delay chain including a plurality of delay cells, wherein each delay cell is a variable delay cell and adds a phase shift / delay to the reference clock signal 814 as the reference clock signal 814 propagates through the delay chain. The DLL 802 may provide a phase-shifted clock signal 816 at DLL outputs 818a, 818b, 818c, and 818n, respectively, including, for example, phase-shifted clock signals 816a, 816b, 816c, and 816n.
[0072] DLL 802 also includes a feedback loop. For example, the feedback loop can set the total phase shift added to the reference clock signal 814 by the entire delay chain to one cycle of the reference clock signal 814, and it also sets the phase shift / delay introduced by each delay cell. In some examples, the delay of each delay cell can be set by the bias current and / or capacitive load of the delay cell. The feedback loop can set the bias current and / or capacitive load of each delay cell based on the target total delay of the delay chain. For example, the feedback loop can set the bias current and / or capacitive load of each delay cell so that the total phase shift / delay introduced by the entire delay chain and the phase shift introduced by each delay cell remain unchanged across different PVTs. As described below, the pulse width of the pulse signal 524a-n is based on the delay / phase shift introduced by each delay cell. Therefore, the DLL can provide the same set of pulse widths for the pulse signals 524a-n across different PVTs. This allows the DAC 500 to convert the digital signal 526 into a duration T through the same relationship across different PVTs. ON (and the analog voltage V a ), and reduce the gain error of the DAC 500 caused by PVT variations.
[0073] In addition, the edge combiner circuit 804 has a combiner input 828, including, for example, combiner inputs 828a, 828b, 828c, and 828n coupled to the DLL outputs 818a, 818b, 818c, and 818n, respectively. The edge combiner circuit 804 has a pulse signal output 732, including, for example, pulse signal outputs 732a, 732b, 732c, and 732n. The edge combiner circuit 804 can generate a pulse signal 524 (e.g., 524a, 524b, 524c, and 524n) at the pulse signal output 732 based on detecting an edge (e.g., a rising edge) of the phase-shifted clock signal 816 pair. The edge combiner circuit 804 can set the pulse width of the pulse signal 524 based on the delay between the edges of the phase-shifted clock signal 816 pair.
[0074] In some examples, the pulse signal generator 730 may include a delay chain including a plurality of delay cells therein and an edge combiner circuit 804, and the feedback loop of the DLL 802 may be disabled or otherwise disconnected from the delay chain. For example, as part of a calibration operation, the feedback loop of the DLL 802 may be enabled to generate bias / capacitive load settings to achieve a target total delay / phase shift for the delay chain, and the bias / capacitive load settings may then be stored (e.g., in a set of registers) and provided to the delay chain with the feedback loop disabled.
[0075] Fig. 9 The edge combiner circuit 804 is shown in FIG. 8 . 18 )、524d(TD 27 )、524e(TD 36 )、524f(TD 45 )、524g(TD 54 ) and 524n(TD 63 ). Fig. 9 In the illustrated example operation, the delay chain of DLL 802 includes 80 delay cells, each configured to provide a delay / phase shift of unit interval t0. Fig. 9 In FIG. 1 , a delay index may refer to a specific delay cell in a delay chain, where delay index 0 (or 80) refers to the first delay cell in the delay chain, and delay index 79 refers to the last delay cell in the delay chain. Fig. 9 Contains graphs 902, 904, 906, 908, 910, 912, 914, 916, and 918. Graph 902 represents voltage variations of reference clock signal 814 with respect to time, showing a cycle period of reference clock signal 814 having a total delay spanning the 80 delay cells of DLL 802.
[0076] In addition, graph 904 shows pulse signal 524n (TD 63 ) Regarding the voltage change over time, FIG. 906 shows the pulse signal 524g (TD 54 ) Regarding the voltage change over time, FIG. 908 shows the pulse signal 524f (TD 45 ) Regarding the voltage change over time, FIG. 912 shows the pulse signal 524e (TD 36 ) Regarding the voltage change over time, FIG. 914 shows the pulse signal 524d (TD 27 ) Regarding the voltage change over time, FIG. 916 shows the pulse signal 524c (TD 18 ) with respect to the voltage change of time, FIG. 916 shows the voltage change of the pulse signal 524b (TD9) with respect to time, and FIG. 918 shows the voltage change of the pulse signal 524n (TD 54)Voltage variation with respect to time.
[0077] The edge combiner circuit 804 may generate rising and falling edges of the pulse signal based on detecting rising / falling edges of different delay unit outputs, as shown in graphs 904-916 and Table 2 below:
[0078]
[0079]
[0080] Table 2
[0081] Fig.10 An example of the internal components of DLL 802 is shown. Fig.10 , DLL 802 has a phase detector 1002, a bias generator 1004, and a delay chain, wherein the delay chain includes delay cells 1006, such as delay cells 1006a, 1006b, 1006c, and 1006n. Each delay cell has a clock input 1008, a clock output 1010, and a bias input 1012. For example, delay cell 1006a has a clock input 1008a, a clock output 1010a, and a bias input 1012a. Delay cell 1006b has a clock input 1008b, a clock output 1010b, and a bias input 1012b. Delay cell 1006c has a clock input 1008c, a clock output 1010c, and a bias input 1012c. In addition, delay cell 1006n has a clock input 1008n, a clock output 1010n, and a bias input 1012n. Fig.10 In the example of , delay cell 1006a can be the first delay cell in the delay chain, where clock input 1008a is coupled to reference clock input 812 and clock output 1010a is coupled to DLL output 818a. Delay cell 1006b can be the second delay cell in the delay chain, where clock input 1008b is coupled to clock output 1010a and clock output 1010b is coupled to DLL output 818b. Delay cell 1006c can be the third delay cell in the delay chain, where clock input 1008c is coupled to clock output 1010b and clock output 1010c is coupled to DLL output 818c. Delay cell 1006n can be the last delay cell in the delay chain, where clock output 1010n is coupled to DLL output 818n. Each delay cell 1006 also receives a control signal 1020 that sets the delay between the clock input and clock output of the delay cell. In some examples, control signal 1020 may be a bias signal that sets a current provided by the delay cell when the capacitive load is charged / discharged, and setting the current may adjust the delay provided by the delay cell.
[0082] DLL 802 includes a phase detector (PD) 1002 and a bias generator 1004 to generate a control signal 1020. Phase detector 1002 has a first PD input 1022, a second PD input 1024, an upstream output 1026, and a downstream output 1028. The first PD input 1022 is coupled to DLL output 818n to receive clock signal 816n, and the second PD input 1024 is coupled to reference clock input 812 to receive reference clock signal 814. PD 1002 can detect whether reference clock signal 814 leads or lags clock signal 816n. If reference clock signal 814 leads clock signal 816n, indicating that the total delay provided by the delay chain exceeds the cycle period of reference clock signal 814, PD 1002 can provide an asserted downstream signal 1030 at downstream output 1028 to reduce the delay of the delay chain. Furthermore, if reference clock signal 814 lags clock signal 816n, indicating that the total delay provided by the delay chain is less than the cycle period of reference clock signal 814, PD 1002 may provide asserted upstream signal 1032 at upstream output 1026 to increase the delay of the delay chain.
[0083] In addition, the bias generator 1004 has an upstream input 1040, a downstream input 1042, and a bias output 1044. The upstream input 1040 is coupled to the upstream output 1026, the downstream input 1042 is coupled to the downstream output 1028, and the bias output 1044 is coupled to the bias input 1012 of the delay unit 1006. In response to the asserted upstream signal at the upstream input 1040, the bias generator 1004 can adjust the control signal 1020 at the bias output 1044 to increase the delay of each delay unit. In response to the asserted downstream signal at the downstream input 1042, the bias generator 1004 can adjust the control signal 1020 at the bias output 1044 to decrease the delay of each delay unit. In some examples, the bias generator 1004 can include a charging and discharging circuit that is coupled to a capacitor to form a charge pump. The charging and discharging circuit may charge or discharge the capacitor based on the state of the upstream input 1040 and the downstream input 1042 , thereby setting the control signal 1020 .
[0084] Fig.11 An example of the internal components of the delay unit 1006 is shown. Fig.11 , the delay unit 1006 may include a first inverter 1102, a second inverter 1104, a third inverter 1106, and a fourth inverter 1108, which are coupled in series between the clock input 1008 and the clock output 1010. The delay unit 1006 also includes a capacitor 1112 coupled at the output of the first inverter 1102 and a capacitor 1114 coupled at the output of the second inverter 1104. Fig.11In the example shown, the delay cell 1006 further includes a current source 1122 coupled between the pull-down portion and the ground terminal of the first inverter 1102 and a current source 1124 coupled between the pull-down portion and the ground terminal of the second inverter 1104. Control terminals of the current sources 1122 and 1124 are coupled to the bias input 1012. In other examples, the current sources 1122 and 1124 can be coupled between a power supply terminal (e.g., VDD) and the respective pull-up portions of the first inverter 1102 and the second inverter 1104.
[0085] Fig.11 The delay unit 1006 can provide balanced rising and falling edge delays across PVT, which can reduce the variation of the pulse width of the pulse signal 524 across PVT. Specifically, for a rising edge at the clock input 1008, the pull-down portion of the first inverter 1102 is enabled, and the first inverter 1102 can provide a controlled delay set by the bias signal at the bias input 1012, and the controlled delay dominates the delay between the clock input 1008 and the clock output 1010. In addition, for a falling edge at the clock input 1008, the pull-down portion of the second inverter 1104 is enabled, and the second inverter 1104 can provide a controlled delay that dominates the delay between the clock input 1008 and the clock output 1010. The controlled delays provided by the first inverter 1102 and the second inverter 1104 can be equal across PVT, so that the delay unit 1006 can provide balanced rising and falling edge delays across PVT.
[0086] Fig.12 An example of the internal components of the edge combiner circuit 804 is shown. Fig.12 In the example, only a portion of the edge combiner circuit 804 generates a specific pulse signal, such as the pulse signal 524g (TD 54 ).exist Fig.12 In the example of FIG. 1 , the edge combiner circuit 804 includes sequential logic circuits 1202 and 1204, which may include flip-flops. The sequential logic circuit 1202 has a clock terminal 1212 and an output 1214. The clock terminal 1212 is coupled to one of the DLL outputs 818a-n to receive the clock signal 816 (at the delay index 13) from the delay unit 1006. Fig.12 In addition, the sequential logic circuit 1204 has a clock terminal 1222 and an output 1224. The clock terminal 1222 is coupled to another of the DLL outputs 818a-n to receive the clock signal 816 (at the delay index 68) from the delay unit 1006. Fig.12816_68 in FIG. 8 ). Sequential logic circuits 1202 and 1204 both also have a reset input (not shown) and may be reset at the beginning of a cycle of reference clock signal 814. Sequential logic circuit 1202 may set output 1214 to logic zero after resetting and may set output 1214 to logic one in response to a rising edge of clock signal 816_13. In addition, sequential logic circuit 1204 may set output 1224 to logic zero after resetting and may set output 1224 to logic one in response to a rising edge of clock signal 816_68.
[0087] The edge combiner circuit 804 also includes a processing circuit 1230 having inputs coupled to outputs 1214 and 1224, and a pulse signal output 732g for providing a pulse signal 524g. The processing circuit 1230 may include various logic gates, such as an AND gate, an inverter, etc. If both outputs 1214 and 1224 are in a logic zero state after the sequential logic circuits 1202 and 1204 are reset at the beginning of a cycle of the reference clock signal 814, then the processing circuit 1230 may set the pulse signal 524g to a logic zero state. If the output 1214 transitions to a logic one state (in response to the rising edge of the clock signal 816_13) and the output 1224 remains in a logic zero state, then the processing circuit 1230 may also set the pulse signal 524g to a logic one state. If output 1224 transitions to a logic one state (in response to clock signal 816_68), processing circuit 1230 may also set pulse signal 524g back to a logic zero state, thereby setting the pulse width of pulse signal 524g. Then, both sequential logic circuits 1202 and 1204 are reset at the beginning of the next cycle of reference clock signal 814.
[0088] As described above, the current I provided by the current source 502 of the DAC 500 DAC The amount can vary across PVT. DAC Variations can cause the step size and gain of DAC 500 to vary across PVT. In some examples, as I provided by current source 502 DAC Alternatively (or in addition) to calibration of I DAC With such an arrangement, the additional segmented current sources supporting the calibration operation may be omitted or at least reduced, thereby reducing the hardware and power consumption involved in the calibration operation.
[0089] Fig.13A , Fig. 13B , Fig. 13C and Fig.13D Example components of a system 700 that supports calibration operations are shown. Fig.13A, the DLL 802 may have a control terminal 1302 and a multiplexer 1304. The multiplexer 1304 has inputs 1306 (e.g., 1306a, 1306b, 1306n) for receiving a plurality of phase-shifted clock signals from different delay cells 1006 along the delay chain, such as clock signals 816n (from delay cell 1006n), 816n', 816x, etc. The multiplexer 1304 may select one of the clock signals as the feedback clock signal 816fb based on a selection signal 1307 at the control terminal 1302 and provide the feedback clock signal 816fb to the phase detector 1002 via an output 1308. The phase detector 1002 and the offset generator 1004 adjust the control / bias signal 1020 to the delay cell 1006 so that the feedback clock signal 816fb is phase-shifted relative to the reference clock signal 814 by one cycle of the reference clock signal 814. Therefore, based on the selection signal 1307, the multiplexer 1304 can select a number of delay cells included in the delay chain to generate a delay (cycle delay) equal to the cycle period of the reference clock signal 814, which sets the unit interval t0, the pulse width (which is a multiple of t0) and the duration T of the pulse signals 524a-524n. ON (where capacitor 510 is charged by the IDAC current from current source 502).
[0090] In addition, reference Fig. 13B , the system 700 may include a calibration circuit 1320 to perform calibration. The calibration circuit 1320 may include a processing circuit 1322 for providing a voltage V to be converted into an analog voltage V by the DAC 500. a_CAL The maximum value of the digital signal X IN_CAL The calibration circuit 1320 may include a comparator 1324. The comparator 1324 may compare the analog voltage V a_CAL With reference voltage V REF , and generates a comparison signal 1326. If the comparison signal 1326 indicates that V a_CAL Lower than V REF , which indicates that the current source I DAC below the target value and therefore insufficient to ON The capacitor 510 is charged to V REF , then the processing circuit 1322 may generate a selection signal 1307 to reduce the number of delay units 1006 included in the generation of the cycle delay, increase the unit interval t0 and the duration T ON In addition, if the comparison signal 1326 indicates that V a_CAL Higher than V REF , which indicates that the current source I DACIf the value is greater than the target value and thus overcharges the capacitor 510, the processing circuit 1322 may generate a selection signal 1307 to increase the number of delay cells 1006 included in the generation of the cycle delay, reducing the unit interval t0 and the duration T ON Processing circuit 1322 may perform calibration operations by providing selection signal 1307 to select different numbers of delay units and stop the calibration operation when convergence is reached (e.g., based on detecting that the state of comparison signal 1326 switches a threshold number of times). Through the calibration operation, calibration circuit 1320 may reduce the gain and step size of the digital-to-analog conversion provided by DAC 500 due to I DAC Changes that occur across PVT changes.
[0091] In some examples, after reaching convergence, processing circuit 1322 may store selection signal 1307 at register 1330 and disable calibration circuit 1320 , and DLL 802 may receive selection signal 1307 ′ from register 1330 of a previous calibration operation.
[0092] Fig. 13C Another example of system 700 is shown. Fig. 13C In the example of , CIM array 204 may operate in memory mode, and processing circuit 1322 of calibration circuit 1320 may be coupled to sense amplifiers 450, including sense amplifiers 450_0 and 450_31. As described above, each sense amplifier is coupled to a corresponding GBXL interconnect, for example, sense amplifier 450_0 is coupled to GBXL[0], and sense amplifier 450_31 is coupled to GBXL
[31] . Each GBXL interconnect is coupled to (and driven by) a corresponding DAC. For example, DAC 500_0 is coupled to GBXL[0], and DAC 500_31 is coupled to GBXL
[31] .
[0093] The processing circuit 1322 can process the digital signal X IN_CAL is provided to each of the DACs 500, and each DAC 500 generates a corresponding analog voltage V a_CAL For example, DAC 500_0 generates V a_CAL0 , DAC 500_31 generates V a_CAL31 The sense amplifier 450_0 can generate a voltage V a_CAL0 and the DAC reference voltage V REF_DAC The comparison signal 1326_0 is used for comparison between V REF_DAC It can be indicated that DAC 500 is to be IN_CAL The target voltage generated, and the sense amplifier 450_31 can generate a voltage representing V a_CAL31 and V REF_DACIn some examples, X IN_CAL may be the maximum digital value to be converted by DAC 500 (e.g., 63), and V REF_DAC The processing circuit 1322 may determine the maximum voltage that the DAC 500 will provide in response to the maximum digital value based on the comparison signals 1336_0-1336_31 to generate a voltage that exceeds V REF_DAC The analog voltage V a_CAL The first number of DACs 500, and generates a voltage below V REF_DAC The analog voltage V a_CAL The processing circuit 1322 provides X IN_CAL and adjusts the selection signal 1307 to select a different number of delay cells (which also sets T ON ) to perform the calibration operation. For example, the processing circuit 1322 may stop the calibration operation when the first number is equal to the second number, which may indicate that half of the sense amplifiers have detected that GXBL has reached a value greater than or equal to the DAC reference voltage. Such an arrangement may calibrate the DAC 500 to operate at the midpoint of the variation between the DACs 500.
[0094] Fig.13D Another example of system 700 is shown. Fig.13D In the example of FIG. 1 , the processing circuit 1322 may receive the digital output Y from the ADC 410 OUT , for example, the digital output Y from ADC 410_0 OUT_0 and Y from ADC 410_15 OUT_15 The CIM array 204 may store a set of weights that all represent +1 or -1. To perform a calibration operation, the processing circuit 1322 may sequentially provide X to each of the DACs 500. IN_CAL The DAC will ramp X from 0 to the maximum digital value (e.g., 63). IN_CAL The CIM array 204 can perform the stored weights and X IN_CAL The aforementioned MAV operation between the two is performed, and a voltage representing the MAV operation result is generated, and the voltage can be converted into a digital output Y by ADC 410 OUT_0 To Y OUT_15 The processing circuit 1322 can be used for X IN_CAL Each digital value stores the digital output Y OUT_0 To Y OUT_15 The processing circuit 1322 can also be relative to X IN_CAL Different numerical values determine Y OUT_0 To YOUT_15 The slope of each of the two signals is adjusted by adjusting the selection signal 1307. ON , until the slope reaches Y OUT_0 To Y OUT_15 The slope can be expressed as X IN_CAL The transfer function of the MAV operation on , where the weights are either +1 or -1.
[0095] Fig.14 A flow chart of an example method 1400 of performing digital-to-analog conversion is shown. For example, the method 1400 may be performed by the DAC 500 in conjunction with the pulse signal generator 730, which may include the DLL 802 and the edge combiner circuit 804.
[0096] In operation 1402, the DAC 500 receives pulse signals having different pulse widths. One of the pulse signals (e.g., TD0) may have a zero pulse width. As described below, the pulse signal may be provided by the DLL 802 and the edge combiner circuit 804, and the rising edge and the falling edge of the pulse signal may be separated by a multiple of a unit interval, wherein each unit interval may be a phase shift / delay provided by the delay unit 1006 of the DLL 802. The unit interval may also correspond to the step size and gain of the digital / analog conversion provided by the DAC 500. As described above, the DLL 802 may be calibrated (e.g., by selecting a number of delay units to provide cycle delays) to reduce the variation of the gain and step size of the digital / analog conversion provided by the DAC 500 across PVT.
[0097] In operation 1404, the DAC 500 receives a digital signal representing a value (eg, X IN ). The digital signal may be input data to be combined with the weights stored in the CIM 204. The digital signal represents a plurality of bits.
[0098] In operation 1406, in response to the digital signal, the DAC 500 generates a combined pulse signal having a combined pulse width representing a value by combining a subset of the pulse signals. As described above, the combined pulse signal (e.g., the control signal 528) can be generated by the multiplexer circuit 520. The multiplexer circuit 520 can select the first of the pulse signals based on the MSB of the digital signal in the first conversion phase, and select the second of the pulse signals based on the LSB of the digital signal in the second conversion phase. The same or different pulse signals can be selected in the first and second conversion phases. The first and second conversion phases can be continuous in time (or overlap in time) so that the pulse signals selected in the two different conversion phases are merged into one continuous pulse signal, thereby reducing switching and improving the accuracy of the digital / analog conversion operation.
[0099] In operation 1408, the DAC 500 may generate a pulse width based on the combined pulse width by performing a pulse width adjustment at an interval (T ON ) to charge the capacitor to provide a voltage representing the value (analog voltage V a ). ON During the interval, the switch 506 is enabled, and the current source 502 can utilize the current I DAC The capacitor 510 is charged. ON The duration of the interval represents a value, so the voltage at capacitor 510 as a result of the charging may also represent a value.
[0100] In this description, the term "coupled" may encompass connections, communications, or signal paths that enable a functional relationship consistent with this specification. For example, if device A provides a signal to control device B to perform an action, then: (a) in the first example, device A is coupled to device B; or (b) in the second example, if the intermediate component C does not substantially change the functional relationship between device A and device B, device A is coupled to device B through the intermediate component C, so that device B is controlled by device A via the control signal provided by device A. Moreover, in this specification, a device "configured to" perform a task or function may be configured (e.g., programmed and / or hardwired) to perform the function when manufactured by the manufacturer, and / or may be configured (or reconfigured) by the user after manufacturing to perform the function and / or other additional or alternative functions. Configuration may be performed through firmware and / or software programming of the device, through the construction and / or layout of the hardware components and interconnects of the device, or through a combination thereof. In addition, in this specification, a circuit or device containing certain components may actually be used to couple to those components to form the circuit system or device. For example, a structure described as including one or more semiconductor elements (e.g., transistors), one or more passive elements (e.g., resistors, capacitors, and / or inductors), and / or one or more sources (e.g., voltage sources and / or current sources) may actually include only semiconductor elements within a single physical device (e.g., a semiconductor die and / or an integrated circuit (IC) package) and may be used to couple to at least some of the passive elements and / or sources to form the structure either at the time of manufacture or after manufacture, for example, by an end user and / or a third party.
[0101] Although specific transistor structures are mentioned above, other transistors or device structures may be used. For example, a p-type MOSFET may be used in place of an n-type MOSFET with little or no additional changes. In addition, other types of transistors (e.g., bipolar transistors) may be used in place of the transistors shown. The capacitor may be implemented using different device structures (e.g., metal structures stacked on top of each other to form a parallel plate capacitor), or may be formed on a layer (metal or doped semiconductor) that is closer to or further from the surface of the semiconductor substrate.
[0102] As used above, the terms "terminal", "node", "interconnection" and "pin" are used interchangeably. Unless explicitly stated to the contrary, these terms are generally used to indicate the interconnection between device elements, circuit elements, integrated circuits, devices or other electronic or semiconductor components or their ends.
[0103] Although some components may be described as components of a specific process technology in this article, these components may be exchanged for components of other process technologies. The circuit described herein may be reconfigured to include replaced components to provide functions that are at least partially similar to the functions available before the component replacement. Unless otherwise specified, the components shown as resistors generally represent any one or more elements that are coupled in series and / or in parallel to provide the amount of impedance represented as the resistor shown. For example, a resistor or capacitor shown and described as a single component in this article may actually be a plurality of resistors or capacitors that are coupled in series or in parallel between two nodes that are the same as the single resistor or capacitor. In addition, the use of the phrase "ground terminal" in this specification includes chassis grounding, earth grounding, floating grounding, virtual grounding, digital grounding, common grounding and / or any other form of ground connection that is applicable to or applicable to the teachings of this specification. Unless otherwise specified, the "approximately", "roughly" or "substantially" in front of a value represents + / -10% of the value.
[0104] Modifications are possible in the described examples, and other examples are possible, within the scope of the claims.
Claims
1. A circuit comprising: a current source having a current output; a switch coupled between the current output and the current terminal, the switch having a switch control input; a pulse signal generator having a pulse signal output, the pulse signal generator being configured to provide pulse signals having different pulse widths at the pulse signal output; as well as A multiplexer circuit has a pulse signal input, a select input, and a selected pulse signal output, the selected pulse signal output coupled to the switch control input and the pulse signal input coupled to the pulse signal output.
2. The circuit of claim 1 , wherein the multiplexer circuit is configured to: receiving a digital signal representing a value at the select input; and In response to the digital signal, a combined pulse signal is provided at the selected pulse signal output based on a subset of the pulse signals, the combined pulse signal having a pulse width representative of the value.
3. The circuit of claim 2, wherein at least one of the pulse signals has a zero pulse width. 4 . The circuit according to claim 2 , wherein the pulse signals have a same switching cycle, and each pair of the pulse signals has rising edges separated by a first interval and falling edges separated by a second interval in the switching cycle.
5. The circuit of claim 4, wherein the multiplexer circuit is configured to: selecting a first pulse signal from the pulse signals in response to a first selection signal at the selection input; selecting a second pulse signal among the pulse signals in response to a second selection signal at the selection input; and providing the combined pulse signal at the selected pulse signal output as a combination of the first and second pulse signals, The first selection signal represents the most significant bit (MSB) portion of the digital signal, the second selection signal represents the least significant bit (LSB) portion of the digital signal, and the total pulse width of the first and second pulse signals reflects the value.
6. The circuit of claim 5, wherein the first interval represents a difference between two consecutive numbers representing the MSB portion of the digital signal, and the second interval represents a difference between two consecutive numbers representing the LSB portion of the digital signal.
7. The circuit of claim 5, wherein the select input is a first select input, the multiplexer circuit having a second select input and configured to: receiving a third select signal at the second select input; determining the first select signal from the third select signal within a first phase of the switching cycle; and determining the second select signal from the third select signal during a second phase of the switching cycle; and The pulse signal has the rising edge in the first phase and the falling edge in the second phase.
8. The circuit of claim 7, wherein the multiplexer circuit has a phase input coupled to one of the pulse signal outputs, and the multiplexer circuit is configured to detect the first phase and the second phase in response to a state of the phase input.
9. The circuit of claim 1, further comprising a capacitor coupled between the current terminal and a ground terminal.
10. The circuit of claim 1, wherein the pulse signal generator comprises a delay locked loop (DLL), the DLL having a DLL input, a DLL output and a bias terminal, the DLL comprising: delay cells coupled between the DLL input and the DLL output, each delay cell having a respective input, a respective output and the bias terminal; a bias generator having a control input and a bias output, the bias output coupled to the bias terminal; as well as A phase detector has first and second detector inputs and a detector output, the first detector input being coupled to the DLL input, the second detector input being coupled to the DLL output, and the detector output being coupled to the control input.
11. A circuit according to claim 10, wherein the pulse signal generator includes edge combiners coupled between the outputs of the delay cells and the pulse signal outputs, each edge combiner being configured to generate a corresponding one of the pulse signals by detecting a rising edge at the output of one of the delay cells and detecting a falling edge at the output of a different one of the delay cells.
12. The circuit of claim 10 , wherein the multiplexer circuit is a first multiplexer circuit, the select input is a first select input, the DLL comprises a second multiplexer circuit coupled between the outputs of the delay cells and the DLL output, the second multiplexer circuit having a second select input and configured to selectively connect a subset of the delay cells between the DLL input and the DLL output in response to a state of the second select input.
13. The circuit of claim 12, further comprising a register coupled to the second select input.
14. The circuit of claim 12 , further comprising a calibration circuit having a calibration input, a reference input, and a calibration output, wherein the calibration input is coupled to the current terminal and the calibration output is coupled to the second selection input, the calibration circuit being configured to set the state of the second selection input in response to a comparison between a first voltage at the current terminal and a reference voltage at the reference input.
15. The circuit of claim 14, wherein the current source, the switch, and the multiplexer circuit are part of a digital-to-analog converter (DAC), the DAC having an analog output coupled to the current terminal; wherein the circuit further comprises DACs, each DAC comprising a respective current source, a respective switch and a respective multiplexer circuit; and wherein the circuit further comprises a calibration circuit having a plurality of calibration inputs, a reference input, and a calibration output, each of the calibration inputs being coupled to a respective analog output of each of the DACs, the calibration circuit having a calibration output coupled to the second select input, the calibration circuit being configured to: comparing each first voltage at the calibration input with the reference voltage to generate a comparison result; and In response to the comparison result, the state of the second select input is set.
16. The circuit of claim 12, wherein the current source, the switch, and the multiplexer circuit are part of a digital-to-analog converter (DAC), the DAC having an analog output coupled to the current terminal; wherein the circuit further comprises DACs, each DAC comprising a respective current source, a respective switch, and a respective multiplexer circuit, each DAC comprising a respective digital input coupled to a respective select input of the respective multiplexer circuit; and wherein the circuit further comprises a calibration circuit having a digital calibration input, a DAC code output and a calibration output, the DAC code output being coupled to the digital input of the DAC, the calibration output being coupled to the second select input, and the calibration circuit being configured to: sequentially providing a set of DAC codes at the DAC code output; receiving a set of digital values at each digital calibration input for the set of DAC codes; for each set of digital values, determining a corresponding slope between the set of digital values and the set of DAC codes; and Responsive to the slope, the state of the second select input is set.
17. The circuit of claim 16, further comprising: A storage-computation-in-one CIM array having a computing input and a computing output, wherein the computing input is coupled to the analog output of the DAC; as well as analog-to-digital converters ADC, each ADC having an analog input and a digital output, the analog input of the ADC being coupled to the calculated output, Wherein the digital calibration input of the calibration circuit is coupled to the digital output of the ADC.
18. A system comprising: A storage-computing integrated CIM array, which has computing input and computing output; A digital / analog converter DAC, each DAC having a corresponding pulse signal input, a corresponding digital input and a corresponding analog output, the analog output of the DAC being coupled to the calculation input, each DAC comprising: a corresponding current source coupled to the corresponding current output; a respective switch coupled between the respective current output and the respective analog output, the respective switch having a respective switch control input; a respective multiplexer circuit having the respective pulse signal input, a respective select input coupled to the respective digital input, and a respective selected pulse signal output, the respective selected pulse signal output coupled to the respective switch control input; as well as a respective pulse signal generator having a respective pulse signal output coupled to the respective pulse signal input, the respective pulse signal generator being configured to provide pulse signals having different pulse widths at the respective pulse signal output; as well as Analog / digital converters ADC, each ADC having a respective analog input and a respective digital output, the analog input of the ADC being coupled to the calculated output.
19. The system of claim 18, wherein the multiplexer circuit is configured to: receiving a digital signal representing a value at the select input; and In response to the digital signal, a combined pulse signal is provided at the selected pulse signal output based on combining a subset of the pulse signals, the combined pulse signal having a combined pulse width representative of the value.
20. The system of claim 19, wherein at least one of the pulse signals has a zero pulse width.
21. The system of claim 18, wherein the pulse signals have a same switching cycle, and each pair of the pulse signals has rising edges separated by a first interval and falling edges separated by a second interval in the switching cycle.
22. A method comprising: Receiving pulse signals with different pulse widths; receiving a digital signal representing a value; In response to the digital signal, combining a subset of the pulse signals to generate a combined pulse signal, the combined pulse signal having a pulse width representative of the value; as well as The capacitor is charged over an interval based on the combined pulse width to provide a voltage representative of the value.
23. The method of claim 22, wherein at least one of the pulse signals has a zero pulse width.
