1. Field of the Invention
The present invention relates to a counter circuit, and, more particularly relates to a counter circuit that can suitably count a clock signal in which hazard easily occurs. Furthermore, the present invention relates to a latency counter, and, more particularly relates to a latency counter that counts a latency of an internal command within a synchronous memory. Further, the present invention relates to a semiconductor memory device including such a latency counter and also relates to a data processing system including such a semiconductor memory device.
2. Description of Related Art
Synchronous memories represented by a synchronous DRAM (Synchronous Dynamic Random Access Memory) are widely used as a main memory or the like of personal computers. In the synchronous memory, data is inputted and outputted in synchronism with a clock signal supplied from a controller. Thus, when a higher-speed clock is used, the data transfer rate can be increased.
However, because a DRAM core is consistently operated by an analog operation also in the synchronous DRAM, a considerably weak charge needs to be amplified by a sensing operation. Accordingly, it is not possible to shorten the time from issuing a read command to outputting first data. After the elapse of a predetermined delay time from the read command is issued, the first data is outputted in synchronism with an external clock.
This delay time is generally called “CAS latency” and is set to an integral multiple of a clock cycle. For example, when the CAS latency is 5 (CL=5), the read command is fetched in synchronism with the external clock, and thereafter, the first data is outputted in synchronism with the external clock that is after five cycles. That is, the first data is outputted after the elapse of the five clocks. A counter that counts such latency is called “latency counter”.
As the latency counter, a circuit described in Japanese Patent Application Laid-open (JP-A) No. 2008-47267 proposed by the present inventor(s) is well known. The latency counter described in JP-A No. 2008-47267 includes a ripple counter that outputs a count value in a binary format and a point-shift FIFO circuit, in which by a count value of the ripple counter, an input gate and an output gate of the point-shift FIFO circuit are controlled. The reason for using the ripple counter as the counter circuit is due to a consideration of a point that hazard easily occurs in a clock signal that should be counted.
That is, in the general DRAM, a DLL (Delay Locked Loop) circuit is used, and data is inputted and outputted in synchronism with an output clock generated by the DLL circuit. The DLL circuit always operates in a normal mode; however, when it is entered in a power-down mode or the like, its operation is stopped due to reduction of power consumption. Thus, upon returning from the power-down mode to the normal mode, a state that the output clock is temporarily unstable occurs, and hazard is sometimes outputted.
When hazard occurs in the output clock, if a ring counter in which shift registers are circulation-connected is used, for example, the count value sometimes fluctuates. That is, in the ring counter, it is necessary that the number of registers to which an active level is latched is one. However, there is sometimes a state that the active level is latched to two or more registers by hazard, or the active level is not latched to any register. When the ring counter is in such a state, the count value fluctuates and the operation of the latency counter is disabled.
Such problems can be solved by using a ripple counter in which a counting operation is performed in a binary format. That is, the ripple counter is deemed not to experience a state that the count value fluctuates, and thus, even when the count value is made to jump wrongly by hazard, the count value can be used as is. Due to these reasons, in the latency counter in JP-A No. 2008-47267, the ripple counter is used as the counter circuit.
Japanese Patent Application Laid-open No. 2007-115351 discloses a similar circuit, as another patent document related to the latency counter.
As described above, as a countermeasure against hazard, it is very effective to use the ripple counter as the counter circuit used for the latency counter. However, in the ripple counter, a count value changes more belatedly in higher-order bits. Thus, when the frequency of the clock signal is very high, there can be a case that the output of the count value is not in time for the operation of the FIFO circuit, depending upon a certain situation.
Such a problem occurs not only in the counter circuit for a latency counter but also in overall counter circuits that need to count a high-frequency signal in which hazard or the like is easily generated.
The present invention seeks to solve one or more of the above problems, or to improve upon those problems at least in part.
In one embodiment, there is provided a counter circuit that includes: a frequency dividing circuit that generates, based on a clock signal, a plurality of frequency dividing clocks that are composed of at least first and second frequency dividing clocks, which differ in phase to each other; a first counter that counts the first frequency dividing clock; a second counter that fetches a count value of the first counter in synchronism with the second frequency dividing clock; and a selection circuit that exclusively selects count values of the first and second counters.
While the type of the first counter is not particularly limited, it is preferable to use a counter, e.g., a ripple counter, which outputs a count value in a binary format. When a ripple counter is used, there is a problem that higher-order bits change more belatedly at a time of incrementing or decrementing. However, in the present invention, a counting operation is performed based on a frequency dividing clock obtained by frequency-dividing the clock signal, not on the clock signal itself. Thus, it becomes possible to sufficiently compensate the delay of change of high-order bits.
Further, the second counter generates a count value by fetching the count value of the first counter, and thus a relation between the count value of the first counter and that of the second counter can be kept always constant. That is, even when the count value of the first counter is made to jump by hazard or the like, the count value of the second counter is also made to jump in cooperation therewith. Thus, when the count values of the first and second counters are exclusively selected by a selection circuit, outputting of an accurate count value all the time can be made.
In another embodiment, there is provided a latency counter that counts a latency of an internal command in synchronism with the clock signal, the latency counter that includes: the counter circuit as claimed in claim 1; and a point-shift FIFO circuit including a plurality of latch circuits, wherein the point-shift FIFO circuit fetches the internal command to any one of the latch circuits based on a count value of the counter circuit, and outputs the internal command fetched to any one of the latch circuits based on a count value of the counter circuit.
Accordingly, even when the frequency of the clock signal is high and hazard or the like easily occur, accurately counting of the latency of the internal command can be made.
In still another embodiment, there is provided a semiconductor memory device that includes the latency counter as described above. Further, in another embodiment, there is provided a data processing system wherein the semiconductor memory device and a data processor are connected to each other by a system bus.
As described above, according to the present invention, a counting operation is performed based on a frequency dividing clock obtained by frequency-dividing the internal clock, not on an internal clock itself. Thus, even when the frequency of the clock is high, it becomes possible to sufficiently secure an operation margin.
Further, a second counter generates a count value by fetching the count value of the first counter, and thus a relation between the count value of the first counter and that of the second counter can be kept always constant. Accordingly, even when the count value of the first counter is made to jump, an accurate count value can be outputted all the time.
Accordingly, when the counter circuit according to the present invention is used for a latency counter, even when the frequency of the clock signal is high and hazard or the like easily occur, it becomes possible to accurately count the latency of the internal command.
The above features and advantages of the present invention will be more apparent from the following description of certain preferred embodiments taken in conjunction with the accompanying drawings, in which:
Preferred embodiments of the present invention will be explained below in detail with reference to the accompanying drawings.
The semiconductor memory device 10 is a synchronous DRAM, and includes as external terminals such as: clock terminals 11a and 11b; command terminals 12a to 12e; an address terminal 13; a data input/output terminal 14; data strobe terminals 15a and 15b; and power supply terminals 16a and 16b.
The clock terminals 11a and 11b are supplied with clock signals CK and /CK, respectively, and the supplied clock signals CK and /CK are supplied to a clock input circuit 21. In this specification, a signal assigned with “/” at the head of a signal name means an inverted signal of the corresponding signal. Accordingly, the clock signals CK and /CK are mutually complementary signals. Output 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 ICLK, and serves a roll for supplying the clock to each of various types of internal circuits other than circuits of a data output system. The DLL circuit 23 generates an output clock LCLK, and serves a roll for supplying the clock to circuits of a data output system.
The output clock LCLK generated by the DLL circuit 23 is a signal phase-controlled for the clock signals CK and /CK, and is slightly advanced in phase for the clock signals CK and /CK so that phases of read data DQ (and data strobe signals DQS and /DQS) match those of the clock signals CK and /CK.
Whether possible to use the DLL circuit 23 is selected according to a set content to a mode register 56. That is, when a “DLL-on mode” is set to the mode register 56, the DLL circuit 23 is in a usable state, and the output clock LCLK is phase-controlled for the clock signals CK and /CK. On the other hand, when a “DLL-off mode” is set to the mode register 56, the DLL circuit 23 is in a non-usable state, and the output clock LCLK is not phase-controlled for the clock signals CK and /CK any more. Accordingly, at the time of the DLL-off mode, the output clock LCLK is a signal of which the phase is delayed more with respect to the clock signal CK. Control of the DLL circuit 23 by the mode register 56 is performed by a mode signal M.
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. These command signals are supplied to a command input circuit 31. The command signals supplied to the command input circuit 31 are supplied to a command decoder 32. The command decoder 32 generates various types of internal commands ICMD by retaining, decoding, counting, and so on the command signals in synchronism with the internal clock ICLK. The generated internal commands are supplied to a row control circuit 51, a column control circuit 52, a read control circuit 53, a write control circuit 54, a latency counter 55, and the mode register 56. Among the various types of internal commands ICMD, the read command MDRDT is supplied at least to the latency counter 55.
The latency counter 55 delays the read command MDRDT so that the read data is outputted after the elapse of a previously set CAS latency from a time that the read command MDRDT is issued. Whereas the read command MDRDT is a signal synchronous with the internal clock ICLK, an output control signal DRC that is output of the latency counter 55 needs to be in synchronism with the output clock LCLK. Accordingly, the latency counter 55 also serves a role for shifting the clock that is a synchronization target, from the internal clock ICLK to the output clock LCLK. The latency counter 55 will be described in detail later.
The address terminal 13 is supplied with an address signal ADD, and the supplied address signal ADD is supplied to an address input circuit 41. Output of the address input circuit 41 is supplied to an address latch circuit 42. The address latch circuit 42 latches the address signal ADD in synchronism with the internal clock ICLK. Out of the address signal ADD latched to the address latch circuit 42, a row address is supplied to a row repair circuit 61 and a column address is supplied to a column repair circuit 62. The row repair circuit 61 is also supplied with a row address generated by a refresh counter 63. Upon entering a mode register set, the address signal ADD is supplied to the mode register 56.
The row repair circuit 61 repairs a row address by alternatively accessing a redundancy word line rather than a word line that should be normally accessed when the row address indicating a defective word line is supplied. The operation of the row repair circuit 61 is controlled by the row control circuit 51, and the output is supplied to a row decoder 71. The row decoder 71 selects any one of word lines WL included in a memory cell array 70. As shown in
The column repair circuit 62 repairs a column address by alternatively accessing a redundancy bit line rather than a bit line that should be normally accessed when the column address indicating a defective bit line is supplied. The operation of the column repair circuit 62 is controlled by the column control circuit 52, and the output is supplied to a column decoder 72. The column decoder 72 selects any one of sense amplifiers 73 included in the memory cell array 70.
The sense amplifier 73 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. 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.
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 entire configuration of the semiconductor memory device 10 is as described above. The latency counter 55 included in the semiconductor memory device 10 is described next.
As shown in
The output clock LCLK is generated by the DLL circuit 23 shown in
Such hazard generally results in an erroneous operation of the latency counter. However, in the latency counter 55, even when hazard occurs in the output clock LCLK, the count values are only made to jump, and thus the count values do not fluctuate and a counting operating is not stopped.
The configuration and the operation of each circuit block configuring the latency counter 55 are described below.
The frequency dividing circuit 100 is described first.
As shown in
With such a circuit configuration, as shown in
Thus, the frequency dividing circuit frequency-divides the output clock LCLK by two, thereby generating the two frequency dividing clocks LCLKE and LCLKO of which the phases differ from each other. The generated frequency dividing clocks LCLKE and LCLKO are supplied to the counter circuit 200, as shown in
The counter circuit 200 is described next.
As shown in
As shown in
The output bits B1 and B2 of the flip-flops 211 and 212 are supplied to the decoder 213. However, the output bits B1 and B2 do not change simultaneously, but the change starts from a lower-order bit. That is, a higher-order bit changes belatedly. In the present embodiment, to eliminate a difference in such change timings, a delay circuit 214 is used. The delay circuit 214 has a delay amount equivalent to one stage of the flip-flop. As shown in
As a result, the change timings of the bits B1 and B2 inputted to the decoder 213 substantially match with each other. The decoder 213 activates any one of four (=22) outputs to a high level based on the bits B1 and B2 that are in a binary format.
The output of the decoder 213 changes in arrear of the frequency dividing clock LCLKE due to the presence of the flip-flops 211 and 212 or the delay circuit 214. However, in the present embodiment, the first counter 210 is the ripple counter of only two bits, and the delay amount is very small. Thus, a skew between the output of the decoder 213 and the frequency dividing clock LCLKE is hardly a problem.
On the other hand, the second counter 220 includes data-latch flip-flops 221 and 222, and a decoder 223 that decodes outputs of the flip-flops 221 and 222. Clock terminals of the flip-flops 221 and 222 are supplied with the frequency dividing clock LCLKO delayed by a delay circuit 224. A data input terminal D of the flip-flop 221 is supplied with the output bit B1 of the flip-flop 211, and a data input terminal D of the flip-flop 222 is supplied with the output bit B2 of the flip-flop 212. According to such a configuration, the second counter 220 can fetch the count values of the first counter 210 in synchronism with the frequency dividing clock LCLKO. That is, when the frequency dividing clock LCLKO is activated, the count values of the second counter 220 match the count values of the first counter 210.
Output bits B3 and B4 of the flip-flops 221 and 222 are supplied to the decoder 223. The output bits B3 and B4 change simultaneously, and thus a delay circuit or the like is not inserted in signal paths of the output bits B3 and B4. However, as described above, the first counter 210 is a ripple counter, and thus, when the generated output bits B1 and B2 change, a delay of a total of two stages of the flip-flop occurs. To correctly latch the output bits B1 and B2 having such a delay, the delay circuit 224 is arranged in the second counter 220. The delay circuit 224 has a delay amount equivalent to two stages of the flip-flop. As shown in
As a result, the change timings of the output bits B3 and B4 inputted to the decoder 223 substantially match those of the output bits B5 and B2. The decoder 223 activates any one of four (=22) outputs to a high level based on the bits B3 and B4 that are in a binary format.
The selection circuit 230 is configured by: four AND circuits 230-0, 230-2, 230-4, and 230-6 corresponding to the outputs of the first counter 210; and four AND circuits 230-1, 230-3, 230-5, and 230-7 corresponding to the outputs of the second counter 220. One input terminals of the AND circuits 230-0, 230-2, 230-4, and 230-6 are supplied with the corresponding output bits of the first counter 210, respectively, and the other input terminals are supplied commonly with the frequency dividing clock LCLKE. One input terminals of the AND circuits 230-1, 230-3, 230-5, and 230-7 are supplied with the corresponding output bits of the second counter 220, respectively, and the other input terminals are supplied commonly with the frequency dividing clock LCLKO.
According to such a configuration, the output of the first counter 210 and the output of the second counter 220 are alternately selected, and the selected count values are supplied to the point-shift FIFO circuit 300. The count values of the counter circuit 200 are used as output-gate control signals COT0 to COT7.
As shown in
The generated count values are selected by the selection circuit 230. That is, in a period during which the frequency dividing clock LCLKE is at high level, the count values of the first counter 210 are selected, and in a period during which the frequency dividing clock LCLKO is at high level, the count values of the second counter 220 are selected. As a result, the count values of the counter circuit 200 are incremented in synchronism with the output clock LCLK. That is, the output-gate control signals COT0 to COT7 are activated in this order.
Further, when the count values of the first counter 210 are made to jump by hazard or the like, the activated output-gate control signals COT0 to COT7 change in an unpredicted manner. However, the first and second counters 210 and 220 output the count values in a binary format. Thus, this eliminates a possibility of an indefinite state such as: a plurality of output-gate control signals COT0 to COT7 are simultaneously activated, or neither output-gate control signals COT0 to COT7 are activated. That is, the count values are only made to jump. Further, hazard occurs only at the time of returning from the power-down mode or the like, and thus, in the point-shift FIFO circuit 300 described later, the read command MDRDT is not accumulated.
Accordingly, even when the count values are made to jump by hazard or the like, the counter circuit 200 is automatically recovered, and can operate normally immediately thereafter. This is because when the point-shift FIFO circuit 300 starts an operation, the count values themselves of the counter circuit 200 are irrelevant, and if the count values sequentially change, an accurate operation can be performed.
The point-shift FIFO circuit 300 is described next.
As shown in
The input selection circuit 310 is configured by eight AND circuits 310-0 to 310-7. In the AND circuits 310-0 to 310-7, one input terminals are commonly inputted the read command MDRDT, and the other input terminals are inputted the output-gate control signals COT0 to COT7, respectively, delayed by the delay circuit 390.
Thereby, when the read command MDRDT is activated, based on the count values of the counter circuit 200, the read command MDRDT is supplied to any one of the signal paths 311-0 to 311-7. For example, when is supplied at the timing at which the output-gate control signal COT0 is activated, only the signal path 311-0 is supplied with the read command MDRDT, and the other signal paths 311-1 to 311-7 are not supplied with the read command MDRDT. In this case, the signal paths 311-0 to 311-7 are supplied with output signals of the AND circuits 310-0 to 310-7, respectively.
The signal paths 311-0 to 311-7 are connected to the input terminals of the shift circuit 320. The shift circuit 320 supplies the read command MDRDT to a predetermined latch circuit based on a previously-determined corresponding relation between the signal paths 311-0 to 311-7 and the latch circuits 330-0 to 330-7.
As shown in
Whether the input-gate control signals CIT0 to CIT7 are set to a high level when the read command MDRDT is supplied on which of the signal paths 311-0 to 311-7 totally differs depending on the multiplexers 320-0 to 320-7. The designation is performed by a latency setting signal CL.
An outer ring 311 shown in
More specifically,
On the other hand,
The difference can be set to any one of 0 to 7, and in a set state, the corresponding relation between the signal path and the input-gate control signal is fixed. In this way, the shift circuit 320 shifts the read command MDRDT on the signal path 311-0 to 311-7, and generates the input-gate control signal CIT0 to CIT7. Such a difference is determined based on a required CAS latency.
Thus, in the present embodiment, the input selection circuit 310 is placed at a preceding stage of the shift circuit 320, and thus, when the read command MDRDT is activated, only one of the multiplexers 320-0 to 320-7 is operated. Thus, as compared to a case that all the multiplexers are operated irrespective of the presence of the activation of the read command MDRDT, the power consumption can be further reduced.
The input-gate control signals CIT0 to CIT7 generated by the shift circuit 320 are supplied to the latch circuits 330-0 to 330-7, respectively. At a succeeding stage of the latch circuits 330-0 to 330-7, output gates 340-0 to 340-7 configuring the output selection circuit 340 are connected, respectively.
As shown in
Further, the output gate 340-0 outputs the logical level latched to the SR latch circuit 331 in a period during which the output-gate control signal COT0 is at a high level. In a period during which the output-gate control signal COT0 is at a low level, the output is in a high impedance state. Outputs of the output gates 340-0 to 340-7 are supplied to the combining circuit 350.
As shown in
In this way, in the present embodiment, the outputs from the eight latch circuits 330-0 to 330-7 are grouped in two, and each group is wired-OR connected, and the obtained wired-OR outputs are further combined by a logic gate circuit. According to such a configuration, as compared to a case that the outputs from all the latch circuits 330-0 to 330-7 are collected together and wired-OR connected, the output loads of the output gates 340-0 to 340-7 are further reduced. Thus, the signal quality of the output control signal DRC can be increased.
The combining circuit 350 includes reset circuits 354 and 355 that reset the wired-OR circuits 351 and 352, respectively. The reset circuit 354 resets the wired-OR circuit 351 in response to the output-gate control signal COT4, and the reset circuit 355 resets the wired-OR circuit 352 in response to the output-gate control signal COT0. Both the reset circuits 354 and 355 are configured by an N-channel MOS transistor, and gates thereof are supplied with the output-gate control signals COT4 and COT0, respectively. Sources thereof are both connected to a grounding potential (VSS). Accordingly, when the output-gate control signal COT4 is activated, the reset circuit 354 is turned on, and the wired-OR circuit 351 is reset to a low level. Likewise, when the output-gate control signal COT0 is activated, the reset circuit 355 is turned on, and the wired-OR circuit 352 is reset to a low level.
As described above, the output-gate control signals COT0 to COT7 are sequentially activated by the counter circuit 200 in this order. Thus, it is immediately after the activation of the output-gate control signals COT0 to COT3 is ended that the output-gate control signal COT4 is activated, and thus the output control signal DRC is not outputted for a while from the wired-OR circuit 351. When the reset circuit 354 is turned on at such timings, a period until the output-gate control signals COT0 to COT3 are activated next is sufficiently secured. Thus, it becomes possible to surely reset the wired-OR circuit 351. The same applies to the reset circuit 355. To the wired-OR circuits 351 and 352, the latch circuits 351a and 352a are connected, respectively. Thereby, the logical level of a period during which all the corresponding output gates (340-0 to 340-3 or 340-4 to 340-7) become a high impedance state is retained.
As shown in
The mode switching circuit 400 includes: a delay circuit 401 that delays the read command MDRDT; and a multiplexer 402 that selects one of the read command MDRDT that is not delayed and the read command MDRDT that is delayed, based on a mode signal.
The multiplexer 402 selects the read command MDRDT that is not delayed in a case of an operation mode (a DLL-on mode) in which the DLL circuit 23 is used. Thereby, to the point-shift FIFO circuit 300, the read command MDRDT is supplied at high speed. On the other hand, in an operation mode (a DLL-off mode) in which the DLL circuit 23 is not used, the multiplexer 402 selects the read command MDRDT that is delayed by the delay circuit 401. As a result, the read command MDRDT is to be supplied to the point-shift FIFO circuit 300 more belatedly than the DLL-on-mode time.
The delay amount of the delay circuit 401 is preferably set to an amount equivalent to the delay of the output clock LCLK caused for the external clock signal CK when the DLL circuit 23 is not operated. According thereto, even when the output clock LCLK is delayed more than the clock signal CK by the DLL-off mode, the same operation margin as that at the time of the DLL-on mode can be secured.
The configuration of the latency counter 55 is as described above. The operation of the latency counter 55 is described next.
The read command MDRDT stored in the latch circuit 330-7 is retained in the latch circuit 330-7 until the output-gate control signal COT7 is selected by the increment of the counter circuit 200. When the output-gate control signal COT7 is selected, and the output gate 340-7 is opened, and thus, the output control signal DRC is activated. The output control signal DRC is in synchronism with the output clock LCLK, and by using this, the read data DQ is actually outputted.
Thereafter, upon entering the self-refresh mode or the power-down mode, the DLL circuit 23 shown in
However, in the latency counter 55, the count values themselves are irrelevant, and when correct increment (or decrement) is performed at the time of the normal operation, there is no problem at all. That is, in the first place, there is no case that the count value results in an error, and even when the count values are changed by hazard, a subsequent operation can be directly executed. Thus, according to the latency counter 55, it becomes possible to prevent an error resulting from hazard of the output clock LCLK.
As shown in
As described above, according to the latency counter 55, the counting operation is performed in synchronism with the frequency dividing clocks LCLKE and LCLKO obtained by frequency-dividing the output clock LCLK by two. Thus, even when the frequency of the output clock LCLK is high, the operation margin of the counter circuit 200 can be sufficiently secured.
The counter circuit 200 is separated in the first counter 210 and the second counter 220, and thus the number of bits of the ripple counter included in the first counter 210 is small. Thereby, the delay occurring in the ripple counter becomes small, and as a result, it becomes possible to directly supply the frequency dividing clocks LCLKE and LCLKO to the selection circuit 230. That is, when the delay of the ripple counter is large, to synchronize accurately, it is necessary to delay the frequency dividing clocks LCLKE and LCLKO by a certain extent, and then, input the same to the selection circuit 230. In this case, there occurs a need of re-synchronizing the read command MDRDT to the output clock LCLK by arranging a re-synchronizing circuit that restores the delay. Such a re-synchronizing circuit can be a factor of deteriorating a transfer margin of a command when the frequency of the clock is high. However, in the present embodiment, such a re-synchronizing circuit is unnecessary, and as a result, even when the frequency of the clock is high, a sufficient transfer margin can be secured.
Further, the first counter 210 counts the frequency dividing clock LCLKE in a binary format while the second counter 220 fetches the count values of the first counter 210 in synchronism with the frequency dividing clock LCLKO. Thus, the count values of the first counter 210 and those of the second counter 220 are not deviated. Thus, the read command MDRDT latched based on the count values of the first counter 210 can be outputted based on the count values of the second counter 220. Needless to say, this operation can be executed vice versa. This means that although the counting operation is performed in synchronism with the frequency dividing clocks LCLKE and LCLKO, the point-shift FIFO circuit 300 is not affected by the frequency-division.
That is, when the count values of the first counter 210 and those of the second counter 220 are unrelated, it becomes essential to output the read command MDRDT latched based on the count values of the first counter 210 based on the count values of the first counter 210. Likewise, it becomes essential to output the read command MDRDT latched based on the count values of the second counter 220 based on the count values of the second counter 220. In this case, the number of latencies settable to the point-shift FIFO circuit 300 includes only an even number, and thus, in order that the latencies are set to odd numbers, it becomes necessary to add a latency adding circuit or the like. However, in the present embodiment, the count values of the first counter 210 and those of the second counter 220 are interlocked, and thus such a restraint can be eliminated. As a result, it becomes possible to set the number of latencies to an arbitrary value without adding a latency adding circuit or the like.
Moreover, in the present embodiment, because the first counter 210 is a ripple counter, as described above, it is possible to prevent an error resulting from hazard of the output clock LCLK.
In the present embodiment, the input selection circuit 310 is arranged at a preceding stage of the shift circuit 320, and only when the read command MDRDT is supplied, the shift circuit 320 is operated. Thus, as compared to a case that the shift circuit is operated all the time irrespective of the presence of the read command MDRDT, the power consumption can be further reduced.
In the present embodiment, the outputs of the output gates 340-0 to 340-7 are grouped in two, and each group is wired-OR connected. Further, the obtained wired-OR outputs are combined by the logic gate circuit. As a result, as compared to a case that all the outputs are collected together and wired-OR connected, the output loads are further reduced. Thereby, the signal quality of the output control signal DRC can be increased.
In the present embodiment, by using the mode switching circuit 400, when the DLL-off mode is selected, the read command MDRDT is supplied more belatedly than the DLL-on-mode time. As a result, even when the output clock LCLk is more belated than the external clock signal CK, the fetching margin of the read command MDRDT can be sufficiently secured similarly to a case that the DLL-on mode is selected.
The data processing system 500 shown in the
In
Examples of the storage device 540 can include a hard disk drive, an optical disk drive, and a flash memory. Examples of the I/O device 550 can include a display device such as a liquid crystal display, and an input device such as a keyboard and a mouse. The I/O device 550 can function either as an input device or as an output device. For the sake of simplicity, each constituent element shown in
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, in the present embodiment, the frequency dividing circuit 100 is used to frequency-divide the output clock LCLK by two. However, the frequency dividing number is not limited thereto in the present invention. Accordingly, when the output clock LCLK is higher-speed, the output clock LCLK can be frequency-divided by four, and also, similarly to the second counter 220, the third and fourth counters interlocked with the first counter 210 can be used.
In the present embodiment, while the first counter 210 includes the ripple counter, the present invention is not limited thereto.
In the present embodiment, while the counter circuit 200 is used as a part of the latency counter 55, utilization of the counter circuit according to the present invention is not limited thereto.
Further, in the present invention, the configuration of the point-shift FIFO circuit 300 is arbitrary, and not limited to the configuration described above. In addition, in the present invention, it is not essential to provide the mode switching circuit 400.
In the present embodiment, the outputs of the output gates 340-0 to 340-7 are received by the wired-OR circuits 351 and 352 divided into two. However, the number of the wired-OR circuits to be divided is not limited thereto, and they can be divided into three or more, and they do not necessarily need to be divided.
In the present embodiment, the wired-OR circuit 351 is reset in response to the output-gate control signal COT4, and the wired-OR circuit 352 is reset in response to the output-gate control signal COT0. However, the timing at which the wired-OR circuits 351 and 352 are reset is not limited thereto. Accordingly, it suffices that the wired-OR circuit 351 is reset in response to the count values of the counter circuit 200 indicating a latch circuit corresponding to the wired-OR circuit 352. Likewise, it suffices that the wired-OR circuit 352 is reset in response to the count values of the counter circuit 200 indicating a latch circuit corresponding to the wired-OR circuit 351.
Number | Date | Country | Kind |
---|---|---|---|
2008-129087 | May 2008 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
6388945 | Aikawa | May 2002 | B2 |
7345950 | Fujisawa et al. | Mar 2008 | B2 |
20080043566 | Fujisawa | Feb 2008 | A1 |
20080192563 | Cho | Aug 2008 | A1 |
20090323441 | Johnson et al. | Dec 2009 | A1 |
Number | Date | Country |
---|---|---|
2007-115351 | May 2007 | JP |
2008-047267 | Feb 2008 | JP |
Number | Date | Country | |
---|---|---|---|
20090285048 A1 | Nov 2009 | US |