1. Field of the Invention
The present invention relates to a semiconductor device, and more particularly to a semiconductor device that controls input and output timing of read data and write data according to a latency value.
2. Description of Related Art
A synchronous memory device, represented by a synchronous DRAM (Dynamic Random Access Memory), has been widely used for a main memory of a personal computer and the like. The synchronous memory device inputs or outputs data in synchronism with an external clock signal supplied from a controller. Therefore, the use of a higher-speed clock signal leads to an increase in data transfer rate.
However, even in the synchronous DRAM, a DRAM core still operates in an analog mode, requiring a sense operation to amplify extremely weak electric charges. As a result, it is not possible to reduce the time required to output the first data after a read command is issued. Therefore, after a predetermined delay time has passed since the issuing of the read command, the first data are output in synchronism with an external clock signal (See Japanese Patent Application Laid-open No. 2010-3397).
The delay time in the read operation is usually referred to as “CAS latency,” and is set to the integral multiple of a clock cycle. For example, when the CAS latency is five (CL=5), the first data are output in synchronism with an external clock signal of five cycles after a read command is received in synchronism with an external clock signal. That is, five clock cycles later, the first data are output.
Such a delay is necessary even for a write operation. In the write operation, after a predetermined delay time has passed since the issuing of a write command, data need to be input sequentially in synchronism with the external clock signal. The delay time in the write operation is usually referred to as “CAS write latency,” and is set to the integral multiple of a clock cycle. For example, when the CAS write latency is five (CWL=5), the first data need to be input in synchronism with the external clock signal of five clock cycles after the write command is issued in synchronism with the external clock signal.
In one embodiment, there is provided a device that includes: a first register temporarily storing first information indicative of a reference latency; a second register temporarily storing second information indicative of an offset latency; a third register temporarily storing third information indicative of one of first and second operation modes; and a logic circuit configured to produce latency information in response to the first information when the third information is indicative of the first operation mode and to both of the first information and the second information when the third information is indicative of the second operation mode.
In another embodiment, there is provided a device that includes: a first register storing a value of a reference latency in a binary form; a second register storing a value of an offset latency in a binary form; a third register in which an operation mode is set; a first logic circuit configured to subtract the value of the offset latency from the value of the reference latency to generate a first control signal indicative of a value of an adjustment latency in a binary form; a second logic circuit configured to decode the first control signal to generate a second control signal indicative of the value of the adjustment latency in a decoded form; and a latency counter configured to perform a count operation in synchronism with a first internal clock signal according to the second control signal when a first operation mode is set in the third register, and perform a count operation in synchronism with a second internal clock signal according to the value of the reference latency when a second operation mode is set in the third register.
In still another embodiment, there is provided a device that includes: a first register storing a value of a reference latency; a second register storing a value of an offset latency; a first logic circuit configured to logically synthesize the values of the reference latency and the offset latency to generate a first control signal; and a second logic circuit configured to decode the first control signal to generate a second control signal.
An embodiment of the present invention will be described in detail below. However, the present invention is not limited thereto, and it will be understood by those skilled in the art that appropriate modifications may be made according to the claims of the present application.
Referring now to
The subtractor 2 performs an operation “CL-SRL” and outputs the resulting signal ULPCLb. The signal ULPCLb is a signal of binary form indicating the value of an adjustment latency (ULPCL). The decoder 4 receives and decodes the signal ULPCLb of binary form to generate a signal ULPCLd of decoded form. The symbol with a trailing “d” represents that the signal is of decoded form. The signal ULPCLd of decoded form includes signals ULPCLi to ULPCLn, one of which becomes an active level.
As described above, in the present embodiment, a reference latency such as a CAS latency and a CAS write latency is offset. If an internal clock signal that is phase-controlled is not available, the input and output timing of data needs to be controlled in synchronism with an internal clock signal that is not phase-controlled. The foregoing offset can compensate a possible delay, for example, in the output timing of read data in a read operation due to a circuit delay. More specifically, the offset is used to generate an adjustment latency having a value smaller than that of the reference latency by one or more, and the output timing of read data can be determined based on the adjustment latency. In the present embodiment, the value of the reference latency (CL) and that of the offset latency (SRL) are operated in a binary form, and the resulting signal ULPCLb of binary form is decoded. This can reduce the entire circuit scale as compared to when the values of the reference latency (CL) and the offset latency (SRL) are decoded before operation.
Turning to
The clock terminals 11a and 11b are supplied with external clock signals CK and /CK, respectively. The external clock signals CK and /CK are transferred to a clock input circuit 21. In the present specification, a signal whose name starts with “/” is an inverted signal of the corresponding signal or low active signal. Accordingly, the external clock signals CK and /CK are complementary to each other. An output signal of the clock input circuit 21 is supplied to a timing generating circuit 22 and a DLL circuit 23. The timing generating circuit 22 generates an internal clock signal ICLK and supplies it to various internal circuits except circuits of a data output system. The DLL circuit 23 generates an internal clock signal LCLK and supplies it to the circuits of the data output system. The internal clock ICLK may be referred to as a “first internal clock signal,” and the internal clock signal LCLK as a “second internal clock signal.”
The internal clock signal ICLK generated by the timing generation circuit 22 is not phase-controlled with respect to the external clock signals CK and /CK. On the other hand, the internal clock signal LCLK generated by the DLL circuit is phase-controlled with respect to the external clock signals CK and /CK. The internal clock signal LCLK is somewhat advanced in phase with respect to the external clock signals CK and /CK so that the phase of read data DQ (and data strobe signals DQS and /DQS) coincides with that of the external clock signals CK and /CK.
Whether or not to use the DLL circuit 23 is selected according to an operation mode set in the mode register 56. More specifically, if a “DLL on mode” is selected in the mode register 56, the DLL circuit 23 is activated to generate the internal clock signal LCLK that is phase-controlled. On the other hand, if a “DLL off mode” is selected in the mode register 56, the DLL circuit 23 is deactivated to quit generating the internal clock signal LCLK. The DLL off mode is an operation mode to be selected when a low power consumption operation is needed. In this specification, the DLL off mode may be referred to as a “first operation mode.” The DLL on mode may be referred to as a “second operation mode.” The timing generation circuit 22 is activated regardless of which is selected, the DLL on mode or the DLL off mode. The reason is that the internal clock signal ICLK is needed in both modes.
When the DLL off mode is selected, the circuits constituting the data output-system use the internal clock signal ICLK instead of the internal clock signal LCLK. Unlike the internal clock signal LCLK, the internal clock signal ICLK is not advanced in phase with respect to the external clock signals CK and /CK. When the DLL off mode is selected, the output timing of read data therefore lags somewhat behind as compared to when the DLL on mode is selected.
The command terminals 12a to 12e are supplied with a row address strobe signal /RAS, a column address strobe signal /CAS, a write enable signal /WE, a chip select signal /CS, and an on die termination signal ODT, respectively. The above command signals are transferred to a command decoder 32 via a command input circuit 31. The command decoder 32 generates various internal commands ICMD by performing a process of holding and decoding command signals and other processes in synchronism with the internal clock signal ICLK. The internal commands ICMD are supplied to a row system control circuit 51, a column system control circuit 52, a read control circuit 53, a write control circuit 54, a latency counter 55, and the mode register 56. The internal commands ICMD includes a read command MDRDT that is supplied to the latency counter 55.
The latency counter 55 is a circuit that delays the read command MDRDT such that the read data is output after the CAS latency (CL) has passed since the issuing of the read command MDRDT. Such an operation is performed in synchronism with the internal clock signal LCLK if the DLL on mode is selected, and in synchronism with the internal clock signal ICLK if the DLL off mode is selected. The value of the CAS latency (CL) is specified by a set value of the mode register 56.
As shown in
The CAS latency (CL) refers to the number of clock cycles that indicates the period from the issuance of a read command to the output of read data DQ. The CAS write latency (CWL) refers to the number of clock cycles that indicates the period from the issuance of a write command to the input of write data DQ. The offset latency (SRL) is a value to be used when the DLL off mode is selected. The offset latency (SRL) indicates the number of clock cycles to be subtracted from the CAS latency (CL) and the CAS write latency (CWL) set in the register 56a and 56b, respectively. When the DLL off mode is selected, the period from the issuance of a read command to the output of read data DQ is defined by CL-SRL, and the period from the issuance of a write command to the input of write data DQ is defined by CWL-SRL.
When the DLL on mode is selected, the period from the issuance of a read command to the output of read data DQ is defined by the value of the CAS latency (CL) itself, and the period from the issuance of a write command to the input of write data DQ is define by the value of the CAS write latency (CWL) itself. It should be noted that if there is set an additive latency (AL), the read command or write command is issued one or more clock cycles before the original issuance timing.
Although not limited in particular, the set values of the registers 56a, 56b, and 56d in the mode register 56 are supplied from outside through the address terminals 13. The set value of the register 56c is supplied from outside through the data input/output terminal 14. The set values of the registers 56 may be updated through the address terminals 13 by using a known method. More specifically, a mode register set command is issued through the command terminals 12a to 12d, and a set value to be set into the mode register 56 is input to the address terminals 13.
A method for updating set values of the mode register 56 through the data input/output terminal 14 is explained with reference to
In the example shown in
The values set in the registers are logically operated by logic circuits included in the mode register 56. A specific circuit configuration of the logic circuits included in the mode register 56 will be described later.
Turning back to
When a row address indicating a defective word line is supplied, the row system relief circuit 61 relieves the row address by accessing a redundant word line instead of the original word line. An operation of the row system relief circuit 61 is controlled by the row system control circuit 51, and an output of the row system relief circuit 61 is supplied to a row decoder 71. The row decoder 71 selects any one or ones of word lines WL included in a memory cell array 70. As shown in
When a column address indicating a defective bit line is supplied, the column system relief circuit 62 relieves the column address by accessing a redundant bit line instead of the original bit line. An operation of the column system relief circuit 62 is controlled by the column system control circuit 52, and the output signal therefrom is supplied to a column decoder 72. The column decoder 72 selects any one or ones of sense amplifiers SA included in the sense circuit 73.
The sense amplifier SA selected by the column decoder 72 is connected to a read amplifier 74 at the time of a read operation and connected to a write amplifier 75 at the time of a write operation. The operation of the read amplifier 74 is controlled by the read control circuit 53, and the operation of the write amplifier 75 is controlled by the write control circuit 54.
The data input/output terminal 14 outputs read data DQ and inputs write data DQ, and is connected to a data output circuit 81 and a data input circuit 82. In this specification, the data output circuit 81 and the data input circuit 82 may be referred to collectively as a “data input/output circuit.” The data output circuit 81 is connected to the read amplifier 74 via a FIFO circuit 83, and thereby, a plurality of prefetched read data DQ are burst-outputted from the data input/output terminal 14. The data input circuit 82 is connected to the write amplifier 75 via a FIFO circuit 84, and thereby, a plurality of write data DQ burst-inputted from the data input/output terminal 14 is simultaneously written in the memory cell array 70. While
The data strobe terminals 15a and 15b input and output the data strobe signals DQS and /DQS, and are connected to a data-strobe-signal output circuit 85 and a data-strobe-signal input circuit 86, respectively.
As shown in
The power supply terminals 16a and 16b are supplied with power supply potentials VDD and VSS, respectively, and connected to an internal-voltage generating circuit 90. The internal-voltage generating circuit 90 generates various types of internal voltages.
The overall configuration of the semiconductor device 10 according to the present embodiment has been described so far. Next, a specific circuit configuration of the logic circuits included in the mode register 56 will be described.
Turning to
The logic circuit 200 receives and decodes the signal ULPCLb of binary form to generate a signal ULPCLd of decoded form. The signal ULPCLd of decoded form is a 12-bit signal including bits ULPCL4 to ULPCL15, only one of which becomes an active level. The active-level bit indicates the value of the adjustment latency (ULPCL) that is offset. For example, if the bit ULPCL10 is activated, it represents that the value of adjustment latency (ULPCL) is “10.” The value of the adjustment latency (ULPCL) is thus selected within the range of “4” and “15.” In this specification, the logic circuit 200 may be referred to as a “second logic circuit.” The bits ULPCL4 to ULPCL15 constituting the signal ULPCLd may be referred to as a “second plurality of control signals.”
Turning to
The value of offset latency (SRL) is expressed in a binary form with the bit C0 as the least significant bit and the bit C2 as the most significant bit. If the bits C0 to C2 are “000b” in value, it represents that the offset latency (SRL) has a value of “1.” If the bits C0 to C2 are “101b” in value, it represents that the offset latency (SRL) have a value of “6.” That is, different values are expressed than with an ordinary binary signal. Possible values of the bits C0 to C2 are “000b=(1)” to “101b=(6).” The other values are invalid.
The final value of the adjustment latency (ULPCL) is determined by a combination of the values of the CAS latency (CL) and the offset latency (SRL). The value of the adjustment latency (ULPCL) is given by CL-SRL.
As shown in
The subtractor 110 includes an exclusive OR gate circuit EXOR1 which receives the bits A0 and C0. The output of the exclusive OR gate circuit EXOR1 is used as the bit E0. If the logic levels of the bits A0 and C0 coincide with each other, the logic level of the bit E0 becomes “0.” On the other hand, if the logic levels of the bits A0 and C0 do not coincide with each other, the logic level of the bit E0 becomes “1.” In particular, if the logic level of the bit A0 is “0” and the logic level of the bit C0 is “1,” the subtraction produces a negative and a borrow bit BRW0 becomes a high level. The borrow bit BRW0 is supplied to the subtractor 120 of higher order.
The subtractor 120 includes an exclusive OR gate circuit EXOR2 which receives the bit C1 and the borrow bit BRW0, and an exclusive OR gate circuit EXOR3 which receives the bit A1 and the output of the exclusive OR gate circuit EXOR2. The output of the exclusive OR gate circuit EXOR3 is used as the bit E1. When the borrow bit BRW0 is at a low level, the logic level of the bit E1 is “0” if the logic levels of the bits A1 and C1 coincide with each other, and the logic level of the bit E1 is “1” if the logic levels of the bits A1 and C1 do not coincide with each other. On the other hand, when the borrow bit BRW0 is at a high level, the bit C1 is inverted by the exclusive OR gate circuit EXOR2. The resulting value of the bit E1 is thus inverse to the foregoing. If the subtraction produces a negative, a borrow bit BRW1 becomes a high level. The borrow bit BRW1 is supplied to the subtractor 130 of yet higher order.
The subtractor 130 has basically the same circuit configuration as that of the subtractor 120. The subtractor 130 includes an exclusive OR gate circuit EXOR4 which receives the bit C2 and the borrow bit BRW1, and an exclusive OR gate circuit EXOR5 which receives the bit A2 and the output of the exclusive OR gate circuit EXOR4. The output of the exclusive OR gate circuit EXOR5 is used as the bit E2. When the borrow bit BRW1 is at a low level, the logic level of the bit E2 is “0” if the logic levels of the bits A2 and C2 coincide with each other, and the logic level of the bit E2 is “1” if the logic levels of the bits A2 and C2 do not coincide with each other. On the other hand, when the borrow bit BRW1 is at a high level, the bit C2 is inverted by the exclusive OR gate circuit EXOR4. The resulting value of the bit E2 is thus inverse to the foregoing. If the subtraction produces a negative, a borrow bit BRW2 becomes a high level.
The borrow bit BRW2 and the bit A3 are supplied to an exclusive OR gate circuit EXOR6. When the borrow bit BRW2 is at a low level, the logic level of the bit E3 coincides with that of the bit A3. When the borrow bit BRW2 is at a high level, the logic level of the bit E3 coincides with the inverted level of the bit A3.
With the foregoing configuration, the operation CL-SRL is performed in a binary form. The resulting signal ULPCLb is thus a signal of binary form. The signal ULPCLb of binary form is supplied to the logic circuit 200 in the subsequent stage.
As shown in
As shown in
The resulting signals ULPCL4 to ULPCL15 are supplied to the latency counter 55 shown in
In the prototype example shown in
As shown in
As shown in
As shown in
In contrast, according to the semiconductor device 10 of the present embodiment described above, the adjustment latency (ULPCL) can be obtained with a relatively simple circuit configuration.
An operation of the semiconductor device 10 according to the present embodiment will be explained with reference to
In the example shown in
On the other hand, when the DLL off mode is selected, the timing at which the first pieces of read data DQ start to be output becomes asynchronous with the external clock signal CK since the phase-controlled internal clock signal LCLK is not available. In such a case, operations in synchronism with the internal clock signal ICLK are made instead of the internal clock signal LCLK. Since the internal clock signal ICLK is not advanced in phase with respect to the external clock signal CK, the output timing of the read data DQ lags behind as compared to when the DLL on mode is selected. When the DLL off mode is selected, as shown in the area Y, the set value of the CAS latency (CL) is then reduced by one to start the operation for outputting the read data DQ at the clock edge t10 of the external clock signal CK.
Even after the start of the operation for outputting the read data DQ, it takes some time to actually output the read data DQ. The time can be affected by factors such as variations in manufacturing conditions, the ambient temperature, and the operating voltage. If a plurality of semiconductor devices 10 are mounted on the same module substrate, the semiconductor devices 10 therefore actually output the read data DQ at respective different timing. In the example shown in the area Y of
As described above, when the DLL off mode is selected, the output timing of the read data DQ becomes asynchronous with the external clock signal CK. Note that the deactivation of the DLL circuit 23 can reduce the power consumption. In such a case, the controller connected with the semiconductor devices 10 latches the read data by using the data strobe signals DQS and /DQS.
The variations in output timing of the read data DQ when the DLL off mode is selected can be reduced by using offset latencies. For example, as shown in the area Z, the offset latency (SRL) of ChipB which outputs the read data DQ the earliest is set to 1. The offset latency (SRL) of ChipA which outputs the read data DQ next is set to 2. The offset latency (SRL) of ChipC which outputs the read data DQ the latest is set to 3. With such settings, ChipA to ChipC start the operation for outputting the read data DQ at the clock edges t9, t10, and t8 of the external clock signal CK, respectively. This reduces differences in the timing at which the read data DQ actually starts to be output. A similar operation to when the DLL on mode is selected can thus be achieved with the DLL circuit deactivated. Which value to set the offset latency (SRL) of each semiconductor device 10 to may be determined by a write leveling operation which is performed during initialization. The write leveling operation includes performing a read operation shown in the area Y of
According to the embodiment of present invention, the first plurality of bits and the second plurality of bits are operated before decoding. The adjustment latency can thus be calculated by a logic circuit of smaller scale.
It is apparent that the present invention is not limited to the above embodiments, but may be modified and changed without departing from the scope and spirit of the invention.
For example, the foregoing embodiment has dealt with the case where the CAS latency (CL) is offset. However, the scope of application of the present invention is not limited thereto, and the present invention is applicable when the CAS write latency (CWL) is offset. The present invention is also applicable when an ODT latency is offset. The ODT latency refers to the number of clock cycles that indicates the period from the supply of the on-die termination signal ODT to the command terminal 12e to an impedance change of the data input/output terminal.
For example, the mode register according to the present invention may be a volatile circuit, a nonvolatile circuit, or a hybrid circuit thereof. While the DLL circuit is used to control the phase of an internal clock with respected to the external clock, other phase control means such as a PLL circuit may be employed. In the present invention, a circuit that controls a clock signal, like the DLL circuit and the PLL circuit, may be referred to as a “clock circuit.”
The technical ideas of the present invention can be applied to any semiconductor devices including a signal transmission circuit. Moreover, the circuit types in each circuit block disclosed in the diagrams, as well as circuits that produce control signals, are not limited to the circuit types disclosed in the example.
The technical concept of the semiconductor device of the present invention may be applied to various semiconductor devices. For example, the present invention may be applied to semiconductor products in general, including functions as CPUs (Central Processing Units), MCUs (Micro Control Units), DSPs (Digital Signal Processors), ASICs (Application Specific Integrated Circuits), ASSPs (Application Specific Standard Products), and memories. Examples of the product types of the semiconductor devices to which the present invention is applicable include an SOC (System On Chip), MCP (Multi Chip Package), and POP (Package On Package). The present invention may be applied to semiconductor devices that have any of such product types and package types.
When the transistors constituting a logic gate circuit are field effect transistors (FETs), various FETs are applicable, including MIS (Metal Insulator Semiconductor) and TFT (Thin Film Transistor) as well as MOS (Metal Oxide Semiconductor). The device may even include bipolar transistors.
In addition, an NMOS transistor (N-channel MOS transistor) is a representative example of a first conductive transistor, and a PMOS transistor (P-channel MOS transistor) is a representative example of a second conductive transistor.
Many combinations and selections of various constituent elements disclosed in this specification can be made within the scope of the appended claims of the present invention. That is, it is needles to mention that the present invention embraces the entire disclosure of this specification including the claims, as well as various changes and modifications which can be made by those skilled in the art based on the technical concept of the invention. cm What is claimed is:
Number | Date | Country | Kind |
---|---|---|---|
2011-243120 | Nov 2011 | JP | national |