1. Field of the Invention
The present invention relates to a data interface device for accessing an SDRAM (Synchronous Dynamic Random Access Memory), and more particularly to a data interface device for accessing an SDRAM that can address a phase problem between a clock and data incurable at a high-speed SDRAM access time.
2. Description of the Related Art
When delay of a signal such as a clock or data is large, a time point of inputting internal DATA into the memory controller 2 can be the same as a time point of a rising edge of the internal clock as indicated by “V” in
That is, this phenomenon occurs because a relationship between the internal clock and the data input is asynchronous. When the phenomenon cannot be removed, an operating frequency must be lowered according to an operating state, such that the lowered operating frequency may have a negative effect on the performance of a device.
In many methods for preventing the negative effect, a DLL (Delay Locked Loop) circuit 7 is used as shown in FIG. 4. When the DLL circuit 7 is used, externally inputted data can be predicted to some degree because an external clock (i.e., a board clock) and an internal clock can be matched to each other. Consequently, the above-described asynchronous problem can be avoided. In particular, there are problems in that a design of the DLL circuit 7 requires complicated technology differently from general circuits and it is very difficult for replica delay in PADs, pins, etc. to be predicted.
Therefore, the present invention has been made in view of the above and other problems, and it is an object of the present invention to provide a data interface device for accessing an SDRAM (Synchronous Dynamic Random Access Memory) that uses a clock for the SDRAM and a selective data capturing method so that an operating rate of an SDRAM interface can be improved and data can be matched at SDRAM data input and output times.
In accordance with an aspect of the present invention, the above and other objects can be accomplished by the provision of a data interface device for accessing an SDRAM (Synchronous Dynamic Random Access Memory), comprising: a clock used in the SDRAM; and selective data capturing, wherein the clock and the selective data capturing are used to improve an operating rate of an SDRAM interface and to match data at SDRAM data input and output times. Preferably, the clock is used to drive the SDRAM, and is a feedback clock used for synchronization in an SDRAM controller as well as the SDRAM. Preferably, the feedback clock is generated from the SDRAM controller through a sequential path of an output pad, the SDRAM, and an input pad and is used for approximating a clock when an external SDRAM is used and an output data time point of the SDRAM.
Preferably, the selective data capturing uses a register part for storing data inputted into the SDRAM. Preferably, the register part for storing the data is configured by double registers that are operated in an alternative manner according to a correlation between the inputted data and the feedback clock. Preferably, an inverter is provided in an input stage of one of the registers so that phases of feedback clocks inputted into the registers can be different. Preferably, a cycle of the feedback clock is set to two to four times that of a main clock so that an operation can be ensured. Preferably, the stored data is selected using a signal generated by the internal clock.
Preferably, the register part comprises: a first T flip-flop for receiving a generated internal clock and outputting an internal clock selection signal; a second T flip-flop for receiving a feedback clock in which a board clock delayed through a pad from the internal clock is fed back and outputting a feedback clock selection signal; a first AND element for simultaneously receiving the feedback clock and an inversion signal of the feedback clock selection signal outputted from the second T flip-flop; a second AND element for simultaneously receiving the feedback clock and the feedback clock selection signal outputted from the second T flip-flop; a first D flip-flop for simultaneously receiving a clock outputted from the first AND element and data; a second D flip-flop for simultaneously receiving a clock outputted from the second AND element and data; a data selection element for selecting one of data outputted from the first D flip-flop and data outputted from the second D flip-flop in response to the internal clock selection signal outputted from the first T flip-flop; and a third D flip-flop for simultaneously receiving the internal clock and the data outputted from the data selection element and outputting the data in response to the internal clock. Preferably, the data interface device further comprises: an inverter coupled between the first AND element and a contact point coupled to an input terminal of the second AND element and an output terminal of the second T flip-flop, the inverter generating the inversion signal of the feedback clock selection signal. Preferably, the data interface device further comprises: a third AND element for simultaneously receiving a command signal and the internal clock, carrying out an operation and outputting a result of the operation to a reset terminal of the first T flip-flop; and a fourth D flip-flop for simultaneously receiving the command signal and the internal clock, carrying out an operation and outputting a result of the operation to a reset terminal of the second T flip-flop, wherein the third AND element and the fourth D flip-flop are configured to perform reset control of the first and second T flip-flops outputting the internal clock selection signal and the feedback clock selection signal.
The above and other objects, features and other advantages of the present invention will be more clearly understood from the following detailed description taken in conjunction with the accompanying drawings, in which:
Now, preferred embodiments of the present invention will be described in detail with reference to the annexed drawings.
The register part 10 includes a first T flip-flop 101 for receiving a generated internal clock and outputting an internal clock selection signal “select_i”; a second T flip-flop 102 for receiving a feedback clock in which a board clock delayed through a PAD from the internal clock is fed back and outputting a feedback clock selection signal “select_f”; a first AND element 103 for simultaneously receiving the feedback clock and an inversion signal of the feedback clock selection signal “select_f” outputted from the second T flip-flop 102; a second AND element 104 for simultaneously receiving the feedback clock and the feedback clock selection signal “select_f” outputted from the second T flip-flop 102; a first D flip-flop 106 for simultaneously receiving a clock outputted from the first AND element 103 and data; a second D flip-flop 107 for simultaneously receiving a clock outputted from the second AND element 104 and data; a data selection element 108 for selecting one of data outputted from the first D flip-flop 106 and data outputted from the second D flip-flop 107 in response to the internal clock selection signal “select_i” outputted from the first T flip-flop 101; and a third D flip-flop 109 for simultaneously receiving the internal clock and the data outputted from the data selection element 108 and outputting the data in response to the internal clock. Here, the register part 10 further comprises an inverter 105 between the first AND element 103 and a contact point coupled to the second AND element 104 and the second T flip-flop 102.
The reset part 20 comprises a third AND element 201 for simultaneously receiving a command signal and the internal clock, carrying out a logic operation and outputting a result of the operation to a reset terminal of the first T flip-flop 101; and a fourth D flip-flop 202 for simultaneously receiving the command signal and the internal clock, carrying out a logic operation and outputting a result of the operation to a reset terminal of the second T flip-flop 102.
As described above, the feedback clock in
Assuming that a difference between delay of an input path of external DATA and delay of an input path of a clock is small, a problem in storing DATA_IN is not incurred when the feedback clock is used. However, when DATA is stored, a phase relationship between the feedback clock and the internal clock may be a problem. This problem can be addressed using the circuit structure of
There is a problem in that DATA associated with the internal clock may not be stabilized when DATA captured by the feedback clock is used in the internal clock. Thus, DATA is used in the next internal clock after being captured by the feedback clock in accordance with the present invention. For this, DATA must be stored once during two clocks. Double registers can be alternately used. A signal for selecting a register must be generated according to the feedback clock so that no asynchronous problem is incurred. This is shown in
It can be seen that DATA stored according to a feedback operation in relation to various types of delay shown in
However, when the feedback clock selection signal “select_f” is generated by the feedback clock, no problem occurs in a clock control process. The internal clock selection signal “select_i” for deciding internal data between two data units DATA_F0 and DATA_F1 must be generated by the internal clock. In this case, because motion between the signals “select_i” and “select_f” plays an important role as shown in
To address this problem, a circuit such as the reset part 20 shown in
That is, a reset input of a flip-flop for generating the signal “select_i” is generated by ANDing the CMD and a high-level internal clock. A reset input of a flip-flop for generating the signal “select_f” uses the CMD stored at a negative edge of the internal clock.
As apparent from the above description, the input rate of DATA associated with a used clock decreases as an existing memory access rate increases, such that violation may occur when DATA is stored. Because a DATA input time and an internal clock are not influenced by each other in a data interface device for accessing an SDRAM (Synchronous Dynamic Random Access Memory) in accordance with the present invention, an operating frequency can be increased without a complex circuit such as a DLL (Delay Locked Loop) circuit that cannot easily be designed.
Although the preferred embodiments of the present invention have been disclosed for illustrative purposes, those skilled in the art will appreciate that various modifications, additions and substitutions are possible, without departing from the scope and spirit of the invention as disclosed in the accompanying claims.
The entire content of Priority Document No. 10-2003-72893 is incorporated herein by reference.
Number | Date | Country | Kind |
---|---|---|---|
10/2003-72893 | Oct 2003 | KR | national |