Memory system and apparatus supporting method for calibrating input offset therein
By designing the input/output circuit and current switch circuit in the volatile memory device, and using the code shifter to adjust the current flow, efficient offset calibration of the input buffer is achieved, which solves the problem of low calibration efficiency and area in the existing technology. Added issues that improve memory device performance and stability.
Patent Information
- Application Number
- CN202410180564.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-03-03
- Filing Date
- 2024-02-18
- Publication Date
- 2024-09-03
AI Technical Summary
Existing volatile memory devices have problems of low efficiency and increased area during the input offset calibration process, especially during the offset calibration code generation before receiving the mode register code and the subsequent gain adjustment process, which may affect the memory device. Performance and area utilization.
A memory device is designed that generates an offset calibration code before receiving the mode register code through the input/output circuit, and adjusts the gain of the input buffer circuit after receiving the mode register code, using a current switch circuit and a code shifter based on The offset calibration code and the mode register code adjust the amount of current flowing through the current element to achieve offset calibration of the input buffer.
This method effectively shortens the offset calibration operation time, improves the performance of the memory device, avoids an increase in the area of the memory device, and ensures the stability of the write operation.
Smart Images

Figure CN118588141A
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims the patent application filed on March 3, 2023, in Korean Patent Application No.
[0003] The disclosure of which is incorporated herein by reference. Technical Field
[0004] Embodiments of the present disclosure described herein relate to integrated circuit memory devices, and more particularly, to memory devices included in a memory system and methods of calibrating input offsets therein. Background Art
[0005] Semiconductor memory devices are classified into volatile memory devices and nonvolatile memory devices. Volatile memory devices such as dynamic random access memory (DRAM) devices and static random access memory (SRAM) devices generally have relatively high read and write speeds, but lose their stored data when their power is interrupted. In contrast, nonvolatile memory devices can retain their stored data even when their power is interrupted.
[0006] A representative example of a volatile memory is a DRAM. A memory cell of a volatile memory may include a single N-type "access" transistor used as a switch and a single capacitor storing charge (data). Binary information "1" or "0" may correspond to the presence or absence of charge stored in the capacitor in the memory cell, for example, may correspond to whether the terminal voltage of the cell capacitor is high or low. The memory cell may be connected to a word line and a bit line. The bit line may be connected to a sense amplifier. The sense amplifier may sense the data stored in the memory cell through the bit line based on the voltage applied to the word line and gate terminals of multiple access transistors in the same row.
[0007] The volatile memory may receive data from an external device such as a memory controller and store the data, and may convert an analog signal input through an input buffer into a digital signal. However, due to a potential input offset in the input buffer, an error may occur in the analog-to-digital conversion process. In order to correct the error caused by such an input offset, the volatile memory may perform an input offset calibration operation. Summary of the invention
[0008] An embodiment of the present disclosure provides a memory device that obtains an offset calibration code for an input buffer circuit before receiving a mode register code and has the effect of shifting the offset calibration code by adjusting the amount of current supplied to a current element connected to an input terminal of the input buffer circuit after receiving the mode register code.
[0009] According to an embodiment, a memory device includes a memory cell array and an input / output circuit. The input / output circuit is configured to compare first data received via a data pad with a reference voltage, and to generate second data stored in the memory cell array based on the comparison. A control logic configured to provide a mode register code including gain information (of the input / output circuit) to the input / output circuit is also provided. The input / output circuit is also configured to: (i) generate an offset calibration code corresponding to a first input offset of the input / output circuit based on the second data and before receiving the mode register code, (ii) change the gain of an input buffer corresponding to the mode register code after receiving the mode register code, and (iii) calibrate the second input offset corresponding to the changed gain of the input buffer by adjusting the amount of current applied to a current element connected to an input terminal of the input buffer based on the offset calibration code and the mode register code.
[0010] According to another embodiment, a memory device includes: a memory cell array; and an input / output circuit configured to compare first data received via a data pad with a reference voltage, thereby storing sampled second data in the memory cell array. The input / output circuit may include: (i) an input buffer circuit connected to the data pad and configured to output second data by comparing the first data with the reference voltage, (ii) a current switch circuit configured to supply current to at least one input terminal of the input buffer circuit, (iii) an offset calibration logic configured to generate an offset calibration code corresponding to a first input offset of the input buffer circuit based on the second data before receiving a mode register code including gain information of the input buffer circuit, (iv) a thermometer code generator configured to convert the offset calibration code into a thermometer code corresponding to the number of current sources included in the current switch circuit, (v) a gain code decoder configured to convert the mode register code into a gain information code corresponding to a gain value used in the input buffer circuit, and (vi) a code shifter configured to generate a code shift signal for controlling the current switch circuit by combining the gain information code or the thermometer code. In some embodiments, the current switching circuit adjusts the amount of current applied to a current element connected to at least one input terminal of the input buffer based on the code shift signal so that a second input offset corresponding to a changed gain of the input buffer circuit is calibrated after receiving the mode register code.
[0011] According to another embodiment, a method for calibrating an input offset of a memory device includes: generating an offset calibration code corresponding to a default gain of an input buffer circuit; generating a thermometer code based on the offset calibration code; generating a first code shift signal based on the thermometer code; supplying a first calibration current to a current element connected to an input terminal of the input buffer circuit based on the first code shift signal; decoding a mode register code when a mode register code is received to generate a gain information code that determines the gain of the input buffer circuit; applying the gain information code to the input buffer circuit; generating a second code shift signal based on the gain information code and the thermometer code; and supplying a second calibration current to the current element connected to the input terminal of the input buffer circuit based on the second code shift signal. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] The above and other aspects and features of the present disclosure will become apparent by describing in detail embodiments of the present disclosure with reference to the attached drawings.
[0013] Figure 1 is a block diagram illustrating a memory system according to example embodiments.
[0014] Figure 2 It is shown Figure 1 A block diagram of a memory device.
[0015] Figure 3 It is shown Figure 2 Diagram of the input / output circuit.
[0016] Figure 4 Is to show about Figure 3 0048] A table of example embodiments of mode register codes, gain information codes, and offset calibration codes for an input buffer circuit of FIG.
[0017] Figure 5 is a diagram showing a code shifter Figure 2 Block diagram of the input / output circuit.
[0018] Figure 6 It is shown by Figure 5 A table of example embodiments of thermometer codes generated by a thermometer code generator.
[0019] Figure 7 It is shown from Figure 5 FIG. 1 is a diagram of an example embodiment of a code shift signal output by a code shifter.
[0020] Figure 8 It is shown Figure 5 FIG. 1 is a diagram of an example embodiment of an input buffer circuit and a current switching circuit.
[0021] Fig. 9 It is shown Figure 5FIG. 1 is a diagram of an example embodiment of logic in a code shifter of FIG. 1 for performing a code down-shift operation.
[0022] Fig.10 It is shown Figure 5 FIG. 1 is a diagram of an example embodiment of logic in a code shifter for performing a code up-shift operation.
[0023] Fig.11 It is shown by Figure 5 The code shift operation input of the code shifter is Figure 8 Diagram of the truth table of the current switching signal of the current switch.
[0024] Fig.12 It shows that according to Figure 8 A diagram of the shift of the offset calibration code as the current switching circuit is turned on or off.
[0025] Fig.13 It shows that Figure 5 A flow chart of a method of calibrating an input offset of an input / output circuit. DETAILED DESCRIPTION
[0026] Hereinafter, embodiments of the present disclosure will be described in detail and clearly so that those skilled in the art can easily implement the present invention.
[0027] Below, DRAM will be used as an example for illustrating the features and functions of the present disclosure. However, those of ordinary skill in the art can easily understand other features and performances from the information disclosed herein. The present disclosure can be implemented or applied to other embodiments through other embodiments. In addition, the specific implementation can be modified or changed according to the viewpoint and application without departing from the scope, spirit and other aspects of the present disclosure.
[0028] Figure 1 is a block diagram illustrating a memory system according to an example embodiment. Figure 1 , the memory system 1000 according to the present embodiment may include a memory controller 1100 and a memory device 1200. In some embodiments, the memory controller 1100 may perform an access operation to write data in the memory device 1200 or read data stored in the memory device 1200. For example, the memory controller 1100 may generate a command CMD and an address ADDR for writing data in the memory device 1200 or reading data stored in the memory device 1200. The memory controller 1100 may include at least one of a memory controller controlling the memory device 1200, a system on chip (SoC) such as an application processor (AP), a central processing unit (CPU), a digital signal processor (DSP), and a graphic processing unit (GPU).
[0029] In addition, the memory controller 1100 may provide various signals to the memory device 1200 to control the overall operation of the memory device 1200. For example, the memory controller 1100 may control memory access operations such as read operations and write operations of the memory device 1200. The memory controller 1100 may provide a command CMD and an address ADDR to the memory device 1200 to write data DATA to the memory device 1200 or read data DATA from the memory device 1200.
[0030] According to another example embodiment, the memory controller 1100 may generate various commands CMD to control the memory device 1200. For example, the memory controller 1100 may generate a bank request corresponding to a bank operation of changing the state of one of a plurality of memory banks to read data DATA or write data DATA. As an example, the bank request may include an activation request for changing the state of one of a plurality of memory banks to an activated state. The memory device 1200 may activate a row, such as a word line, included in the memory bank in response to the activation request. The bank request may include a precharge request for changing the memory bank from an activated state to a waiting state after the reading or writing of the data DATA is completed. In addition, the memory controller 1100 may generate an input / output (I / O) request (e.g., a column address strobe (CAS) request) for causing the memory device 1200 to perform a read operation or a write operation of the data DATA. As an example, the I / O request may include a read request for reading data DATA from an activated memory bank. The I / O request may include a write request for writing data DATA in an activated memory bank. The memory controller 1100 may generate a refresh command to control a refresh operation on a memory bank. However, the types of commands CMD described herein are merely exemplary, and other types of commands CMD may exist.
[0031] According to another example embodiment, the memory device 1200 may output data DATA requested to be read by the memory controller 1100 to the memory controller 1100, or may store data DATA requested to be written by the memory controller 1100 in a memory cell of the memory device 1200. The memory device 1200 may input and output data DATA based on a command CMD and an address ADDR. The memory device 1200 may include a memory bank. The memory device 1200 may include at least one data pad DQ. The memory device 1200 may input and output data DATA through the data pad DQ. The data pad DQ may be connected to an input / output (I / O) circuit.
[0032] The memory device 1200 may be a volatile memory device such as a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate (DDR) DRAM, a DDR SDRAM, a low power double data rate (LPDDR) SDRAM, a graphic double data rate (GDDR) SDRAM, a Rambus dynamic random access memory (RDRAM), and a static random access memory (SRAM), etc. Alternatively, the memory device 1200 may be implemented as a non-volatile memory device such as a resistive RAM (RRAM), a phase change memory (PRAM), a magnetoresistive memory (MRAM), a ferroelectric memory (FRAM), a spin transfer torque RAM (STT-RAM), etc. In the present specification, the advantages of the present disclosure have been described with reference to DRAM, but example embodiments are not limited thereto.
[0033] According to another example embodiment, the memory bank may include a memory cell array divided in units of memory banks, a row decoder, a column decoder, a sense amplifier, a write driver, etc. The memory bank may store data DATA requested to be written to the memory device 1200 through the write driver, and may read the data DATA requested to be read using the sense amplifier. The memory bank may also include a component for a refresh operation for storing and holding data in the cell array or an address-based selection circuit.
[0034] Now refer to Figure 2 , the memory device 1200 according to the embodiment may include a memory cell array 1210, a row decoder 1211, a column decoder 1212, an address buffer 1220, a bit line sense amplifier 1230, an input / output circuit 1240, a command decoder 1251, and a control logic 1250 electrically connected as shown. In some embodiments, the memory cell array 1210 may include a plurality of memory cells arranged in a matrix of multiple rows and multiple columns. For example, the memory cell array 1210 may include a plurality of word lines and a plurality of bit lines BL connected to the memory cells. The plurality of word lines may be connected to the rows of the memory cells, and the plurality of bit lines BL may be connected to the columns of the memory cells.
[0035] According to an example embodiment, the address buffer 1220 may be Figure 1 The memory controller 1100 receives the address ADDR. For example, the address ADDR may include a row address RA for addressing a row of the memory cell array 1210 and a column address CA for addressing a column of the memory cell array 1210. The address buffer 1220 may send the row address RA to the row decoder 1211 and may send the column address CA to the column decoder 1212.
[0036] According to example embodiments, the row decoder 1211 may select one of a plurality of word lines connected to the memory cell array 1210. The row decoder 1211 may decode a row address RA received from the address buffer 1220 to select a single word line corresponding to the row address RA and may activate the selected word line. According to example embodiments, the column decoder 1212 may select a predetermined bit line from a plurality of bit lines BL of the memory cell array 1210. The column decoder 1212 may decode a column address CA received from the address buffer 1220 and then select a predetermined bit line BL corresponding to the column address CA.
[0037] According to yet another embodiment, the bit line sense amplifier 1230 may be connected to the bit line BL of the memory cell array 1210. For example, the bit line sense amplifier 1230 may sense a voltage change of a selected bit line among the plurality of bit lines BL and then may amplify and output the voltage change.
[0038] According to example embodiments, the input / output circuit 1240 may output data DATA to the memory controller 1100 via the data line based on the sensed and amplified voltage from the bit line sense amplifier 1230. For example, the input / output circuit 1240 may include an input buffer or an output buffer. The input buffer or the output buffer may be connected to Figure 1 The input / output circuit 1240 may include an offset calibration circuit configured to calibrate an input offset of the input buffer.
[0039] According to an example embodiment, the command decoder 1251 may decode a write enable signal / WE, a row address strobe signal / RAS, a column address strobe signal / CAS, and a chip select signal / CS received from the memory controller 1100, so that a control signal corresponding to the command CMD is generated in the control logic 1250. The command CMD may include an activation request, a read request, a write request, or a precharge request. The control logic 1250 may control the overall operation of the bit line sense amplifier 1230 by a control signal corresponding to the command CMD. The control logic 1250 may send a mode register code MRC to the input / output circuit 1240. The mode register code MRC may include gain information of an input buffer included in the input / output circuit 1240.
[0040] Figure 3 It is shown Figure 2 FIG. 1 is a diagram of an embodiment of an input / output circuit, and Figure 4 Is to show about Figure 3 Table of example embodiments of mode register codes, gain information codes, and offset calibration codes for an embodiment of an input buffer circuit of FIG. Figure 3 and Figure 4 , the input / output circuit 1240 may include an input buffer circuit 110 , a gain code decoder 120 , and an offset calibration logic 130 . Figure 3 One input buffer circuit 110 connected to one data pad DQ is shown as an example. However, the input / output circuit 1240 may include a plurality of input buffer circuits respectively connected to a plurality of data pads.
[0041] According to example embodiments, the input buffer circuit 110 may receive the data from the data pad DQ. Figure 1 The memory controller 1100 receives the first data D1. The input buffer circuit 110 may output the second data D2 in response to the first data D1. For example, the first data D1 may be an analog signal, and the input buffer circuit 110 may convert the analog first data signal D1 into a digital signal, referred to herein as the second data D2. The input buffer circuit 110 may output the second data D2 in response to comparing the "analog" first data D1 with a fixed reference voltage VREF. As an example, when the first data D1 is greater than the reference voltage VREF, the input buffer circuit 110 may output a high level (or logic 1) as the second data D2. Conversely, when the first data D1 is less than the reference voltage VREF, the input buffer circuit 110 may output a low level (or logic 0) as the second data D2. Once generated, the second data D2 may be sent to Figure 2 of the bit line sense amplifier 1230 and is stored in the memory cell array 1210 .
[0042] According to an example embodiment, the gain code decoder 120 may provide the gain information code GIC to the input buffer circuit 110. For example, the gain code decoder 120 may provide the gain information code GIC to the input buffer circuit 110. Figure 2 The control logic 1250 receives the mode register code MRC. The mode register code MRC may include gain information to be applied to the input buffer circuit 110. The gain code decoder 120 may convert the mode register code MRC into a gain information code GIC. The input buffer circuit 110 may set a gain to be applied when converting the first data D1 based on the gain information code GIC (or the mode register code MRC). As an example, referring to Figure 4 , the mode register code MRC may be composed of a 3-bit code (e.g., 011, 010, 001, 000, 101, 110, 111). The gain information code GIC may be composed of codes (e.g., default gain code GI0, first gain code GI1 to third gain code GI3, fifth gain code GI5 to seventh gain code GI7) corresponding to designated gain values (e.g., 6dB, 4dB, 2dB, 0dB, -2dB, -4dB, -6dB), respectively.
[0043] According to an example embodiment, the offset calibration logic 130 may generate an offset calibration code CALC based on the second data D2. For example, after connecting the data pad DQ and the terminal of the reference voltage VREF to the interlock source, the offset calibration logic 130 may check the input offset based on the measured second data D2. The offset calibration logic 130 may generate an offset calibration code CALC based on the input offset. The input buffer circuit 110 may adjust the current amount of the input terminal of the input buffer circuit 110 based on the offset calibration code CALC, and thus the input offset of the input buffer circuit 110 may be calibrated.
[0044] However, in order to avoid adversely affecting the write operation of the memory device 1200, the offset calibration logic 130 may perform an offset calibration operation before the write operation. Therefore, before the input buffer circuit 110 may receive the mode register code MRC, the offset calibration logic 130 may perform an offset calibration operation. Since the gain of the input buffer circuit 110 changes when the input buffer circuit 110 may receive the mode register code MRC, the input offset of the input buffer circuit 110 may also change. As an example, referring to Figure 4 , for each gain of the input buffer circuit 110, the offset calibration code CALC (for example, the offset calibration code to be measured when the gain of the input buffer circuit 110 is set to one of 6dB, 4dB, 2dB, 0dB, -2dB, -4dB and -6dB at the beginning) may be different. Before receiving the mode register code MRC, the input buffer circuit 110 may be set to a default gain, such as 0dB. Therefore, the offset calibration logic 130 may provide the input buffer circuit 110 with an offset calibration code CALC corresponding to the default gain (for example, 0dB). Then, when the mode register code MRC is received, the gain of the input buffer circuit 110 changes so that the offset calibration code CALC also needs to be changed. However, since a relatively long time is required to drive the offset calibration logic 130 again after receiving the mode register code MRC, the performance of the memory device 1200 may be reduced. In addition, since many flip-flops may be required to shift the offset calibration code CALC, the area of the memory device 1200 may increase.
[0045] Figure 5 It is shown Figure 2 A block diagram of an embodiment of an input / output circuit and includes a code shifter. Figure 6 It is shown by Figure 5 A table of example embodiments of thermometer codes generated by a thermometer code generator. Figure 7 It is shown from Figure 5 FIG. 1 is a diagram of an example embodiment of a code shift signal output by a code shifter. Figures 5 to 7The input / output circuit 1240 may include the illustrated input buffer circuit 110, the gain code decoder 120, the offset calibration logic 130, the thermometer code generator 140, the code shifter 150, and the current switch circuit 160. According to an example embodiment, the input buffer circuit 110 may receive a current from the data pad DQ via the data pad DQ. Figure 1 The memory controller 1100 receives the first data D1. The input buffer circuit 110 may output the second data D2 in response to the first data D1. For example, the input buffer circuit 110 may include a first input buffer 111 and a second input buffer 112. The gain of the first input buffer 111 may be changed based on the gain information code GIC received from the gain code decoder 120. The first input buffer 111 may compare the first data D1 (e.g., an analog signal) with a reference voltage VREF, and generate an intermediate digital signal based on the gain according to the gain information code GIC. The second input buffer 112 may sample the intermediate digital signal based on a specific gain, regardless of the gain information code GIC. The second input buffer 112 may output the second data D2 by comparing the intermediate digital signal with the reference voltage VREF. In this regard, if the gain of the first input buffer 111 is changed based on the gain information code GIC, and the offset calibration code CALC generated before receiving the mode register code MRC is used, the input offset of the first input buffer 111 (or the input buffer circuit 110) may not be fully calibrated.
[0046] According to an example embodiment, the gain code decoder 120 may convert the mode register code MRC into a gain information code GIC. For example, the mode register code MRC may include gain information to be applied to the input buffer circuit 110. The gain code decoder 120 may convert the mode register code MRC into a gain information code GIC corresponding to a gain value of the first input buffer 111. The gain code decoder 120 may provide the gain information code GIC to the first input buffer 111. As an example, referring to Figure 4 , the mode register code MRC may be composed of a 3-bit code (e.g., 011, 010, 001, 000, 101, 110, 111). The gain information code GIC may be composed of codes (e.g., default gain code GI0, first gain code GI1 to third gain code GI3, fifth gain code GI5 to seventh gain code GI7) corresponding to the specified gain values (e.g., 6dB, 4dB, 2dB, 0dB, -2dB, -4dB, -6dB), respectively. In addition, the gain code decoder 120 may send the gain information code GIC to the code shifter 150.
[0047] According to an example embodiment, the offset calibration logic 130 may generate an offset calibration code CALC based on the second data D2. For example, after connecting the data pad DQ and the terminal of the reference voltage VREF to the interlock source, the offset calibration logic 130 may check the input offset based on the measured second data D2. The offset calibration logic 130 may generate the offset calibration code CALC based on the input offset. As an example, the offset calibration logic 130 may generate the offset calibration code CALC before receiving the mode register code MRC. The offset calibration logic 130 may send the offset calibration code CALC to the thermometer code generator 140. In addition, the offset calibration logic 130 may generate shift direction signals SIGN1 and SIGN2 corresponding to the offset calibration code CALC. The shift direction signals SIGN1 and SIGN2 may be sent to the current switch circuit 160 and may determine the direction of the code shift.
[0048] According to an example embodiment, the thermometer code generator 140 may convert the offset calibration code CALC into the thermometer code TMC. For example, the offset calibration code CALC may be composed of a 4-bit code (e.g., 0000 to 1111). The thermometer code TMC may be composed of a code corresponding to the number of current switches included in the current switch circuit 160. As an example, referring to Figure 6 , the thermometer code TMC may correspond to the offset calibration code CALC one-to-one. As the offset calibration code CALC increases, the number of “1”s included in the thermometer code TMC may increase by one. The number of “1”s included in the thermometer code TMC may correspond to the number of current switches turned on in the current switch circuit 160. The thermometer code generator 140 may send the thermometer code TMC to the code shifter 150.
[0049] According to an example embodiment, the code shifter 150 may generate a code shift signal CSH based on a gain information code GIC or a thermometer code TMC. For example, before receiving the mode register code MRC, the code shifter 150 may generate a code shift signal CSH based only on the thermometer code TMC corresponding to the offset calibration code CALC. After receiving the mode register code MRC, the code shifter 150 may generate a code shift signal CSH based on the gain information code GIC corresponding to the mode register code MRC and the thermometer code TMC corresponding to the offset calibration code CALC. The current switch circuit 160 may adjust the calibration current of the current element connected to one of the input terminals of the first input buffer 111 based on the code shift signal CSH, and by doing so, the effect of shifting the offset calibration code CALC may be exhibited. The code shifter 150 may convert the thermometer code TMC into pre-switching signals T1 to T15.
[0050] As an example, the code shifter 150 may include at least one logic circuit. The at least one logic circuit may generate a modified code shift signal CSH by combining the gain information code GIC and some of the pre-switching signals T1 to T15. Figure 4 The code shift down logic and the code shift up logic may be set based on the required amount of code shift in the code shifter 150. The required amount of code shift may be determined based on the difference between the offset calibration code CALC (e.g., 0111) of the default gain (e.g., 0 dB) and the offset calibration code CALC corresponding to each gain. Based on the code shift down logic and the code shift up logic, at least one logic circuit of the code shifter 150 may be configured.
[0051] According to an example embodiment, the code shifter 150 may convert each component of the thermometer code TMC into a pre-shift signal corresponding to each current switch included in the current switch circuit 160. In addition, the code shifter 150 may convert the pre-shift signal into a code shift signal CSH. A portion of the code shift signal CSH may have the same value as the pre-shift signal. Another portion of the code shift signal CSH may be determined by a logic operation of the pre-shift signal and the gain information code GIC. As an example, referring to Figure 7 , the pre-shift signal may include a first pre-switching signal T1 to a fifteenth pre-switching signal T15. The first pre-switching signal T1 to the fifteenth pre-switching signal T15 may correspond to each component of the thermometer code TMC. Each of the first pre-switching signal T1 to the fifteenth pre-switching signal T15 may have a high level (or logic 1) or a low level (or logic 0). The code shift signal CSH may include a first switch signal T1D to a fifteenth switch signal T15D. The first switch signal T1D to the fifteenth switch signal T15D may be input to each of the current switches included in the current switch circuit 160. Each of the first switch signal T1D to the fifteenth switch signal T15D may have a high level (e.g., logic 1) or a low level (e.g., logic 0).
[0052] According to one embodiment, the current switch circuit 160 may adjust the amount of current supplied to the current element connected to one of the input terminals of the first input buffer 111 based on the shift direction signals SIGN1 and SIGN2 and the code shift signal CSH. By doing so, the effect of shifting the offset calibration code CALC may occur. For example, the current switch circuit 160 may include at least one current source that is turned on or off based on at least one switch signal. As an example, the current switch circuit 160 may include the number of current switches corresponding to the thermometer code TMC. The current switch may be turned on or off based on the thermometer code TMC. The current switch circuit 160 may initially turn on the current switch (e.g., 7 current switches) based on a default gain (e.g., 0 dB) or a code shift signal CSH corresponding to the offset calibration code CALC. After receiving the mode register code MRC, the current switch circuit 160 may turn off some of the turned-on current switches based on the code shift signal CSH changed according to the mode register code MRC. Alternatively, the current switch circuit 160 may turn on some of the turned-off current switches based on the changed code shift signal CSH. By turning off or on some of the current switches, the current switch circuit 160 can generate an effect in which the offset calibration code CALC is shifted according to the mode register code MRC. In addition, according to the offset position of the first input buffer 111, the current switch circuit 160 can determine the input position of the calibration current through the current switch based on the shift direction signals SIGN1 and SIGN2. When receiving the first shift direction signal SIGN1, the current switch circuit 160 can supply the calibration current to the first input buffer 111 through the first calibration current path PATH1. When receiving the second shift direction signal SIGN2, the current switch circuit 160 can supply the calibration current to the first input buffer 111 through the second calibration current path PATH2.
[0053] Figure 8 It is shown Figure 5 FIG. 1 is a diagram of an example embodiment of an input buffer circuit and a current switching circuit. Figure 5 and Figure 8, the current switch circuit 160 may include at least one current switch, such as first to fifteenth current switches 1601 to 1615. According to example embodiments, the input buffer circuit 110 may include an input transistor (or current device) connected to the first input buffer 111. For example, the input buffer circuit 110 may include a first input transistor INT1 connected to a first input terminal 111_1 of the first input buffer 111. The input buffer circuit 110 may include a second input transistor INT2 connected to a second input terminal 111_2 of the first input buffer 111. A gate of the first input transistor INT1 may be connected to the data pad DQ, a source of the first input transistor INT1 may be connected to a first node N1, and a drain of the first input transistor INT1 may be connected to the first input terminal 111_1 of the first input buffer 111. A reference voltage VREF may be applied to a gate of the second input transistor INT2, a source of the second input transistor INT2 may be connected to a second node N2, and a drain of the second input transistor INT2 may be connected to a second input terminal 111_2 of the first input buffer 111. The calibration short transistor CS may be connected between the first node N1 and the second node N2. When the calibration short signal CALS is activated, the calibration short transistor CS may short the first node N1 and the second node N2. Alternatively, when the calibration short signal CALS is activated, the data pad DQ and the input terminal of the reference voltage VREF may be interlocked. The calibration short signal CALS may be Figure 2 The control logic 1250 or Figure 5 The offset calibration logic 130 generates the offset calibration code CALC. After the calibration short signal CALS is activated and the first node N1 and the second node N2 are short-circuited, the offset calibration logic 130 may generate the offset calibration code CALC.
[0054] According to one embodiment, the current switch circuit 160 may include at least one current source. However, this is only an example, and the number of current sources may be set in various ways. For example, the current switch circuit 160 may include a first current switch 1601 to a fifteenth current switch 1615. The first current switch 1601 to the fifteenth current switch 1615 may be turned on or off based on the first switch signal T1D to the fifteenth switch signal T15D, respectively. The first switch signal T1D to the fifteenth switch signal T15D may be received from the code shifter 150. The first switch signal T1D to the fifteenth switch signal T15D may be included in the code shift signal CSH. When the first shift direction signal SIGN1 is activated, the calibration current of the current switch turned on may be supplied to the input transistor INT1 connected to the first input terminal 111_1 of the first input buffer 111 through the first calibration current path PATH1. When the second shift direction signal SIGN2 is activated, the calibration current passing through the turned-on current switch may be supplied to the second input transistor INT2 connected to the second input terminal 111_2 of the first input buffer 111 through the second calibration current path PATH2 .
[0055] Fig. 9 It is shown Figure 5 FIG. 1 is a diagram of an example embodiment of logic in a code shifter of FIG. 1 for performing a code down-shift operation. Fig.10 It is shown Figure 5 FIG. 1 is a diagram of an example embodiment of logic in a code shifter for performing a code up-shift operation. Fig.11 It is shown by Figure 5 The code shift operation input of the code shifter is Figure 8 Diagram of the truth table of the current switching signal of the current switch.
[0056] According to an example embodiment, Fig. 9 , the code shifter 150 may generate a code shift signal CSH based on the code down-shift logic. For example, based on the code down-shift logic, when the third gain code GI3 is received (or when the gain of the first input buffer 111 is 6 dB), the code shifter 150 may generate a code shift signal CSH that causes the offset calibration code CALC to have an effect of shifting by -2. In addition, when the second gain code GI2 is received (or when the gain of the first input buffer 111 is 4 dB), the code shifter 150 may generate a code shift signal CSH that causes the offset calibration code CALC to have an effect of shifting by -1.
[0057] As an example, the code shifter 150 may include first to fifth logic gates 1501 to 1505. The first logic gate 1501 may perform an OR operation on the second gain code GI2 and the third gain code GI3 to output the first intermediate signal GI23. The second logic gate 1502 may invert the first intermediate signal GI23 and output the first inverted intermediate signal GI23B. The third logic gate 1503 may invert the third gain code GI3 to output the third inverted gain code GI3B. The fourth logic gate 1504 may perform an AND operation on the first inverted intermediate signal GI23B and the first pre-switching signal T1 to output the first switching signal T1D. The fifth logic gate 1505 may perform an AND operation on the third inverted gain code GI3B and the second pre-switching signal T2 to output the second switching signal T2D.
[0058] That is, when the third gain code GI3 is at a high level (or logic 1), such as when the first input buffer 111 is set to 6dB, the first switch signal T1D and the second switch signal T2D may have a low level (or logic 0) regardless of the first pre-switch signal T1 and the second pre-switch signal T2. Therefore, when the third gain code GI3 is at a high level (or logic 1), the first current switch 1601 and the second current switch 1602 may be turned off. In addition, when the second gain code GI2 is at a high level (or logic 1), such as when the first input buffer 111 is set to 4dB, the first switch signal T1D may have a low level (or logic 0) regardless of the first pre-switch signal T1. Therefore, when the second gain code GI2 is at a high level (or logic 1), the first current switch 1601 may be turned off.
[0059] According to an example embodiment, Fig.10 , the code shifter 150 may generate a code shift signal CSH based on the code up-shift logic. For example, based on the code up-shift logic, when the fifth gain code GI5 is received (or when the gain of the first input buffer 111 is -2dB), the code shifter 150 may generate a code shift signal CSH that causes the offset calibration code CALC to have an effect of shifting by +1. In addition, when the sixth gain code GI6 is received (or when the gain of the first input buffer 111 is -4dB), the code shifter 150 may generate a code shift signal CSH that causes the offset calibration code CALC to have an effect of shifting by +2. In addition, when the seventh gain code GI7 is received (or when the gain of the first input buffer 111 is -6dB), the code shifter 150 may generate a code shift signal CSH that causes the offset calibration code CALC to have an effect of shifting by +3.
[0060] As an example, the code shifter 150 may include sixth to tenth logic gates 1506 to 1510. The sixth logic gate 1506 may perform an OR operation on the sixth gain code GI6 and the seventh gain code GI7 to output the second intermediate signal GI67. The seventh logic gate 1507 may perform an OR operation on the fifth gain code GI5, the sixth gain code GI6, and the seventh gain code GI7 to output the third intermediate signal GI567. The eighth logic gate 1508 may perform an OR operation on the seventh gain code GI7 and the thirteenth pre-switching signal T13 to output the thirteenth switching signal T13D. The ninth logic gate 1509 may perform an OR operation on the second intermediate signal GI67 and the fourteenth pre-switching signal T14 to output the fourteenth switching signal T14D. The tenth logic gate 1510 may perform an OR operation on the third intermediate signal GI567 and the fifteenth pre-switching signal T15 to output the fifteenth switching signal T15D.
[0061] That is, when the fifth gain code GI5 is at a high level (or logic 1), such as when the first input buffer 111 is set to -2dB, the fifteenth switch signal T15D may have a high level (or logic 1) regardless of the fifteenth pre-switch signal T15. Therefore, when the fifth gain code GI5 is at a high level (or logic 1), the fifteenth current switch 1615 may be turned on. In addition, when the sixth gain code GI6 is at a high level (or logic 1), such as when the first input buffer 111 is set to -4dB, the fourteenth switch signal T14D and the fifteenth switch signal T15D may have a high level (or logic 1) regardless of the fourteenth pre-switch signal T14 and the fifteenth pre-switch signal T15. Therefore, when the sixth gain code GI6 is at a high level (or logic 1), the fourteenth current switch 1614 and the fifteenth current switch 1615 may be turned on. In addition, when the seventh gain code GI7 is at a high level (or logic 1), such as when the first input buffer 111 is set to -6dB, the thirteenth switch signal T13D, the fourteenth switch signal T14D, and the fifteenth switch signal T15D have a high level (or logic 1) regardless of the thirteenth pre-switching signal T13, the fourteenth pre-switching signal T14, and the fifteenth pre-switching signal T15. Therefore, when the seventh gain code GI7 is at a high level (or logic 1), the thirteenth current switch 1613, the fourteenth current switch 1614, and the fifteenth current switch 1615 may be turned on.
[0062] According to example embodiments, the first to fifteenth switching signals T1D to T15D input to the first to fifteenth current switches 1601 to 1615 may be determined by the code shifter 150 based on the gain information code GIC (or the mode register code MRC). Figure 8 and Fig.11, when the code shifter 150 receives the default gain code GI0 and the first gain code GI1, each of the first to fifteenth switch signals T1D to T15D may correspond to each of the first to fifteenth pre-switch signals T15. However, when the code shifter 150 receives the second gain code GI2, each of the second to fifteenth switch signals T2D to T15D may correspond to each of the second to fifteenth pre-switch signals T2 to T15, and the first switch signal T1D may have a low level (or logic 0) regardless of the first pre-switch signal T1. When the code shifter 150 receives the third gain code GI3, each of the third to fifteenth switch signals T3D to T15D may correspond to each of the third to fifteenth pre-switch signals T3 to T15, and the first and second switch signals T1D and T2D may have a low level (or logic 0) regardless of the first and second pre-switch signals T1 and T2. When the code shifter 150 receives the fifth gain code GI5, each of the first to fourteenth switching signals T1D to T14D may correspond to each of the first to fourteenth pre-switching signals T1 to T14, and the fifteenth switching signal T15D may have a high level (or logic 1) regardless of the fifteenth pre-switching signal T15. When the code shifter 150 receives the sixth gain code GI6, each of the first to thirteenth switching signals T1D to T13D may correspond to each of the first to thirteenth pre-switching signals T13, and the fourteenth and fifteenth switching signals T14D and T15D may have a high level (or logic 1) regardless of the fourteenth and fifteenth pre-switching signals T14 and T15. When the code shifter 150 receives the seventh gain code GI7, each of the first to twelfth switching signals T1D to T12D may uniformly correspond to each of the first to twelfth pre-switching signals T1 to T12, and the thirteenth, fourteenth, and fifteenth switching signals T13D, T14D, and T15D may have a high level (or logic 1) regardless of the thirteenth, fourteenth, and fifteenth pre-switching signals T13, T14, and T15.
[0063] As described above, before receiving the mode register code MRC, the current switch circuit 160 may provide the calibration current to the first input buffer 111 according to the shift signal CSH generated by the code shifter 150 based on the offset calibration code CALC from the offset calibration logic 130. After receiving the mode register code MRC, the code shifter 150 may convert the code shift signal CSH by applying both the gain information code GIC converted by the mode register code MRC and the thermometer code TMC converted by the offset calibration code CALC. And the current switch circuit 160 may provide the changed calibration current to the first input buffer 111 based on the changed code shift signal CSH. Therefore, the input / output circuit 1240 may obtain the effect of shifting the offset calibration code CALC based on the mode register code MRC.
[0064] Fig.12 It shows that according to Figure 8 The current switching circuit is turned on or off and the offset calibration code shifts. Figure 8 and Fig.12 , the current switch circuit 160 may initially turn on seven current switches, such as the first current switch 1601 to the seventh current switch 1607, based on the code shift signal CSH generated based only on the offset calibration code CALC and not based on the mode register code MRC. Since the current switches are turned on or off based on the thermometer code TMC converted from the offset calibration code CALC, the current switches may be turned on sequentially starting from the first current switch 1601. When the mode register code MRC is received by the gain code decoder 120, the code shifter 150 may change the code shift signal CSH based on the gain information code GIC corresponding to the mode register code MRC and the thermometer code TMC corresponding to the offset calibration code CALC.
[0065] As an example, when the code shifter 150 receives the third gain code GI3, the code shifter 150 may Fig. 9 The first logic gate 1501 to the fifth logic gate 1505 output the code shift signal CSH including the first switch signal T1D and the second switch signal T2D having a low level (or logic 0). The current switch circuit 160 may turn off two current switches (such as the first current switch 1601 and the second current switch 1602 corresponding to the first switch signal T1D and the second switch signal T2D), and then as the code shifts down, the input / output circuit 1240 may obtain the effect of shifting the offset calibration code CALC.
[0066] As another example, when the code shifter 150 receives the seventh gain code GI7, the code shifter 150 may Fig.10The sixth logic gate 1506 to the tenth logic gate 1510 output the code shift signal CSH including the thirteenth switch signal T13D, the fourteenth switch signal T14D, and the fifteenth switch signal T15D having a high level (or logic 1). The current switch circuit 160 may turn on three current switches, such as the thirteenth current switch 1613, the fourteenth current switch 1614, and the fifteenth current switch 1615 corresponding to the thirteenth switch signal T13D, the fourteenth switch signal T14D, and the fifteenth switch signal T15D, respectively, and then as the code shifts up, the input / output circuit 1240 may obtain the effect of shifting the offset calibration code CALC.
[0067] Fig.13 It shows that Figure 5 A flow chart of a method for calibrating an input offset of an input / output circuit. Figures 5 to 13 , before receiving the mode register code MRC for determining the gain of the input buffer circuit 110, the input / output circuit 1240 may generate an offset calibration code CALC corresponding to the input buffer circuit 110. After receiving the mode register code MRC, the input / output circuit 1240 may control the amount of current of the input terminal of the input buffer circuit 110 so that the offset calibration code CALC is shifted corresponding to the mode register code MRC.
[0068] According to an example embodiment, in operation S110, the input / output circuit 1240 may generate an offset calibration code CALC of the input buffer circuit 110. For example, the input buffer circuit 110 may generate an offset calibration code CALC of the input buffer circuit 110 through the data pad DQ. Figure 1 The memory controller 1100 receives the first data D1. The input buffer circuit 110 may output the second data D2 by comparing the first data D1 with the reference voltage VREF. The offset calibration logic 130 may generate an offset calibration code CALC based on the second data D2. During the offset calibration operation, the offset calibration logic 130 may connect the data pad DQ and the terminal of the reference voltage VREF to the interlock source, and then determine the input offset based on the measured second data D2. The offset calibration logic 130 may generate the offset calibration code CALC based on the input offset. The offset calibration logic 130 may generate the offset calibration code CALC before receiving the mode register code MRC. In addition, the offset calibration logic 130 may generate shift direction signals SIGN1 and SIGN2 corresponding to the offset calibration code CALC. The shift direction signals SIGN1 and SIGN2 may be sent to the current switch circuit 160 and may determine the direction of the code shift.
[0069] According to an example embodiment, in operation S120, the input / output circuit 1240 may generate a thermometer code TMC based on the offset calibration code CALC. For example, the thermometer code generator 140 may convert the offset calibration code CALC into the thermometer code TMC. The offset calibration code CALC may be composed of a 4-bit code (e.g., 0000 to 1111). The thermometer code TMC may be composed of a code corresponding to the number of current switches included in the current switch circuit 160. The thermometer code TMC may be a code in which the number of "1"s increases sequentially, and the number of "1"s included in the thermometer code TMC may correspond to the number of current switches turned on in the current switch circuit 160.
[0070] As an example, see Figure 6 , the thermometer code TMC may correspond to the offset calibration code CALC one-to-one. As the offset calibration code CALC increases, the number of “1” included in the thermometer code TMC may increase by one. The number of “1” included in the thermometer code TMC may correspond to the number of current switches turned on in the current switch circuit 160. The thermometer code generator 140 may send the thermometer code TMC to the code shifter 150.
[0071] According to example embodiments, in operation S130, the input / output circuit 1240 may generate a first code shift signal based on the thermometer code TMC. For example, before receiving the mode register code MRC, the code shifter 150 may generate the first code shift signal based only on the thermometer code TMC corresponding to the offset calibration code CALC. According to example embodiments, in operation S140, the input / output circuit 1240 may supply a first calibration current to the input buffer circuit 110 based on the first code shift signal. For example, the current switch circuit 160 may supply the first calibration current to a current element, such as the first input transistor INT1 or the second input transistor INT2 connected to the first input terminal 111_1 or the second input terminal 111_2 of the first input buffer 111. Before receiving the mode register code MRC, the first calibration current may calibrate the first input offset of the input buffer circuit 110 according to the offset calibration code CALC.
[0072] According to an example embodiment, in operation S150, the input / output circuit 1240 may decode the mode register code MRC into the gain information code GIC of the input buffer circuit 110. For example, the gain code decoder 120 may decode the mode register code MRC into the gain information code GIC of the input buffer circuit 110. Figure 2 The control logic 1250 receives the mode register code MRC. The gain code decoder 120 can convert the mode register code MRC into a gain information code GIC. As an example, refer to Figure 4, the mode register code MRC may be composed of a 3-bit code (e.g., 011, 010, 001, 000, 101, 110, 111). The gain information code GIC may be composed of codes (e.g., default gain code GI0, first gain code GI1 to third gain code GI3, fifth gain code GI5 to seventh gain code GI7) corresponding to specific gain values (e.g., 6dB, 4dB, 2dB, 0dB, -2dB, -4dB, -6dB), respectively.
[0073] According to an example embodiment, in operation S160, the input / output circuit 1240 may apply the gain information code GIC to the input buffer circuit 110. For example, the input buffer circuit 110 may change the gain of the first input buffer 111 based on the gain information code GIC. The first input buffer 111 may be initially set to a default gain (e.g., 0 dB). As an example, the input buffer circuit 110 may include the first input buffer 111 and the second input buffer 112. The gain of the first input buffer 111 may be changed based on the gain information code GIC received from the gain code decoder 120. The first input buffer 111 may compare the first data D1 with the reference voltage VREF and generate an intermediate digital signal based on the gain according to the gain information code GIC. The second input buffer 112 may sample the intermediate digital signal based on a specific gain, regardless of the gain information code GIC. The second input buffer 112 may output the second data D2 by comparing the intermediate digital signal with the reference voltage VREF.
[0074] According to another example embodiment, in operation S170, the input / output circuit 1240 may generate a second code shift signal based on the gain information code GIC and the thermometer code TMC. For example, the code shifter 150 may generate a code shift signal CSH based on the gain information code GIC and the thermometer code TMC. After receiving the mode register code MRC, the code shifter 150 may generate a second code shift signal based on the gain information code GIC corresponding to the mode register code MRC and the thermometer code TMC corresponding to the offset calibration code CALC. The code shifter 150 may convert the thermometer code TMC into the pre-switching signals T1 to T15.
[0075] As an example, the code shifter 150 may include at least one logic circuit. The at least one logic circuit may generate a second code shift signal modified by combining the gain information code GIC and some of the pre-switching signals T1 to T15. Figure 4 The code shift down logic and the code shift up logic may be set based on the required amount of code shift in the code shifter 150. The required amount of code shift may be determined based on the difference between the offset calibration code CALC (e.g., 0111) of the default gain (e.g., 0 dB) and the offset calibration code CALC corresponding to each gain. Based on the code shift down logic and the code shift up logic, at least one logic circuit of the code shifter 150 may be configured.
[0076] According to example embodiments, in operation S180, the input / output circuit 1240 may supply a second calibration current to the input buffer circuit 110 based on the second code shift signal. For example, the current switch circuit 160 may supply the second calibration current to a current element, such as the first input transistor INT1 or the second input transistor INT2 connected to the first input terminal 111_1 or the second input terminal 111_2 of the first input buffer 111. After receiving the mode register code MRC, the second calibration current may calibrate the second input offset of the input buffer circuit 110 changed according to the mode register code MRC. The current switch circuit 160 may include at least one current source that is turned on or off based on at least one switch signal.
[0077] As an example, see Figure 8 , the current switch circuit 160 may include fifteen current sources, such as the first current switch 1601 to the fifteenth current switch 1615. Before receiving the mode register code MRC, the current switch circuit 160 may turn on or off the current source based on a first code shift signal of an offset calibration code CALC (e.g., 0111) corresponding to a default gain (e.g., 0 dB). After receiving the mode register code MRC, the current switch circuit 160 may turn on or off some of the current sources based on a second code shift signal changed to correspond to the mode register code MRC. The changed number of the turned-on current sources of the current switch circuit 160 may correspond to the offset calibration code CALC changed according to the gain information included in the mode register code MRC.
[0078] In addition, the current switch circuit 160 may receive shift direction signals SIGN1 and SIGN2 from the offset calibration logic 130. Based on the shift direction signals SIGN1 and SIGN2, the current switch circuit 160 may connect the turned-on current source to a current element (such as the first input transistor INT1 or the second input transistor INT2) connected to one of the input terminals of the first input buffer 111. Figure 8 In the embodiment, when the first shift direction signal SIGN1 has a high level and the second shift direction signal SIGN2 has a low level, the current switch circuit 160 may supply the calibration current to the first input terminal 111_1 of the first input buffer 111 with respect to the data pad DQ. When the first shift direction signal SIGN1 has a low level and the second shift direction signal SIGN2 has a high level, the current switch circuit 160 may supply the calibration current to the second input terminal 111_2 of the first input buffer 111 with respect to the reference voltage VREF.
[0079] As described above, the input / output circuit 1240 of the present disclosure may generate an offset calibration code CALC for the input buffer circuit 110 before receiving the mode register code MRC. The input / output circuit 1240 may generate a first code shift signal based on the offset calibration code CALC. The current switch circuit 160 may supply a first calibration current to the input terminal of the first input buffer 111 based on the first code shift signal. After receiving the mode register code MRC, the input / output circuit 1240 may not regenerate the offset calibration code CALC that will be changed according to the mode register code MRC, but generate a second code shift signal modified based on the offset calibration code CALC obtained before receiving the mode register code MRC and the gain information code GIC corresponding to the mode register code MRC. Based on the second code shift signal, the current switch circuit 160 may apply the changed second calibration current to a current element connected to one of the input terminals of the first input buffer 111, such as the first input transistor INT1 or the second input transistor INT2. In this way, the input / output circuit 1240 may have the effect of regenerating the offset calibration code CALC corresponding to the mode register code MRC. Compared with the method of regenerating the changed offset calibration code CALC of the input buffer circuit 110 according to the mode register code MRC, the method of changing the current amount of the adjustment current switch circuit 160 based on the code shift signal CSH according to the present disclosure can shorten the offset calibration operation time.
[0080] According to the present disclosure, after receiving the mode register code, the offset calibration code can be obtained logically (or in matrix form) based on the received mode register code without the need to obtain the offset calibration code again through offset calibration, thereby shortening the calibration time of the input offset corresponding to the changed gain of the input buffer circuit.
[0081] Although the present disclosure has been described with reference to the embodiments thereof, it will be apparent to those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the present disclosure as set forth in the following claims.
Claims
1. A memory device, include: a memory cell array; An input / output circuit configured to generate second data in response to sampling first data received via a data pad by comparing the first data with a reference voltage, and further configured to: generating an offset calibration code corresponding to a first input offset of the input / output circuit based on the second data before receiving the mode register code; After receiving the mode register code, changing a gain of an input buffer corresponding to the mode register code; as well as calibrating a second input offset corresponding to a changed gain of the input buffer by adjusting an amount of current applied to a current element electrically connected to an input terminal of the input buffer based on the offset calibration code and the mode register code; as well as Control logic is configured to provide the mode register code including gain information associated with the input / output circuit to the input / output circuit.
2. The memory device according to claim 1, in, The input / output circuit is configured as: converting the mode register code into a gain information code indicating a gain of the input buffer; converting the offset calibration code into a thermometer code representing a stepwise increase in the amount of current; as well as A code shift signal including increase or decrease information of the current amount is generated by combining the gain information code and the thermometer code.
3. The memory device according to claim 1, in, The input / output circuit is configured to generate a shift direction signal for determining a current element whose current amount is adjusted among current elements electrically connected to input terminals of the input buffer when the offset calibration code is generated.
4. The memory device according to claim 1, in, The input / output circuit is configured to generate the offset calibration code after connecting the data pad and an input terminal of the reference voltage to an interlock source.
5. A memory device, include: a memory cell array; as well as An input / output circuit configured to generate second data stored in the memory cell array in response to comparing first data received via a data pad with a reference voltage, the input / output circuit comprising: an input buffer circuit electrically connected to the data pad and configured to output the second data by comparing the first data with the reference voltage; a current switching circuit configured to supply current to at least one input terminal of the input buffer circuit; an offset calibration logic configured to generate an offset calibration code corresponding to a first input offset of the input buffer circuit based on the second data before receiving a mode register code including gain information of the input buffer circuit; a thermometer code generator configured to convert the offset calibration code into a thermometer code corresponding to the number of current sources included in the current switching circuit; a gain code decoder configured to convert the mode register code into a gain information code corresponding to a gain value used in the input buffer circuit; and A code shifter configured to generate a code shift signal for controlling the current switch circuit by combining the gain information code or the thermometer code; and wherein the current switch circuit is configured to: adjust the amount of current applied to the current element electrically connected to at least one input terminal of the input buffer based on the code shift signal, thereby calibrating a second input offset corresponding to the changed gain of the input buffer circuit after receiving the mode register code.
6. The memory device according to claim 5, in, The current switching circuit is configured as follows: turning on a specific number of current sources based on a first code shift signal corresponding to the offset calibration code; as well as After receiving the mode register code, at least some of the current sources specified by the second code shift signal corresponding to the mode register code are turned on or off.
7. The memory device according to claim 5, in, The offset calibration logic is configured to generate, when the offset calibration code is generated, a shift direction signal for determining a current element whose current amount is adjusted among current elements electrically connected to at least one input terminal of the input buffer circuit.
8. The memory device according to claim 5, in, The input buffer circuit comprises: an input buffer configured to include a first input terminal and a second input terminal; a first input transistor configured to have a gate electrically connected to the data pad and a drain electrically connected to the first input terminal; and a second input transistor configured to have a gate to which the reference voltage is applied and a drain electrically connected to the second input terminal; Wherein, the current switch circuit is configured as follows: supplying a calibration current to the first input transistor when a first shift direction signal is activated; and A calibration current is supplied to the second input transistor when the second shift direction signal is activated.
9. The memory device according to claim 5, in, The code shifter is configured to generate the code shift signal to additionally turn on at least some current sources of the current switch circuit when the gain of the input buffer circuit is reduced according to the mode register code.
10. The memory device according to claim 5, in, The code shifter is configured to generate the code shift signal to additionally turn off at least some current sources of the current switch circuit when the gain of the input buffer circuit increases according to the mode register code.
11. The memory device according to claim 5, in, The code shifter is configured to generate the code shift signal to additionally turn on at least some current sources of the current switch circuit when the offset calibration code needs to be increased by reception of the mode register code.
12. The memory device according to claim 5, in, The code shifter is configured to generate the code shift signal to additionally turn off at least some current sources of the current switching circuit when the offset calibration code needs to be reduced by reception of the mode register code.
13. The memory device according to claim 5, in, The code shift signal is configured to include a switch signal corresponding one-to-one to the current source included in the current switch circuit.
14. The memory device according to claim 5, in, The input buffer circuit comprises: a first input buffer electrically connected to the data pad and configured to have a gain changed based on the gain information code; and A second input buffer is configured to output the second data in response to receiving the output signal of the first input buffer and to maintain a specific gain independently of the gain information code.
15. A method for calibrating an input offset of a memory device, the method include: generating an offset calibration code corresponding to a default gain of an input buffer circuit; generating a thermometer code based on the offset calibration code; generating a first code shift signal based on the thermometer code; supplying a first calibration current to a current element electrically connected to an input terminal of the input buffer circuit based on the first code shift signal; decoding the mode register code when a mode register code is received to generate a gain information code that determines a gain of the input buffer circuit; applying the gain information code to the input buffer circuit; generating a second code shift signal based on the gain information code and the thermometer code; as well as A second calibration current is supplied to the current element electrically connected to the input terminal of the input buffer circuit based on the second code shift signal.
16. The method according to claim 15, in, The input buffer circuit is configured to compare first data received through the data pad with a reference voltage and output sampled second data; The step of generating the offset calibration code includes: generating the offset calibration code based on the second data in a state in which the data pad and the input terminal of the reference voltage are electrically connected to an interlock source.
17. The method according to claim 15, in, The step of generating an offset calibration code is performed before receiving the mode register code based on the default gain of the input buffer circuit.
18. The method according to claim 15, in, The thermometer code is generated to correspond to the number of current sources included in a current switching circuit that supplies the first calibration current or the second calibration current to a current element electrically connected to an input terminal of the input buffer circuit.
19. The method according to claim 18, in, The step of generating the second code shift signal includes generating the second code shift signal to additionally turn on at least some current sources of the current switch circuit when the gain of the input buffer circuit is reduced according to the mode register code.
20. The method according to claim 18, in, The step of generating the second code shift signal includes generating the second code shift signal to additionally turn off some current sources in the current switch circuit when the gain of the input buffer circuit increases according to the mode register code.
