1. Field of the Invention
The invention relates in general to a memory apparatus, and more particularly to a memory apparatus capable of achieving timing synchronization of internal and external clock signals in a dummy sub-period.
2. Description of the Related Art
In the present age, non-volatile memory devices have become more popular for use in various electronic devices. For example, flash memory is one of the most popular non-volatile semiconductor memories applied in the present age. Generally, operation commands, access addresses, and access data are transmitted between a host device and a memory device, so as to achieve access operation of the memory device by the host device. In order to make sure that the transmitted access data can be properly obtained by the host device, a sampling clock signal of the host device has to be properly synchronized with the transmission of the access data transmitted between the host device and the memory device.
However, how to provide a decent synchronization scheme capable of having the sampling clock signal of the host device synchronized with the data transmission has became a prominent object of the invention.
According to a first aspect of the invention, a memory apparatus, operating in a first read operation period including a first command sub-period, a first dummy sub-period, and a first data transmission sub-period, is provided. The memory apparatus includes a host device and a slave device. The host device stores first verification data and provides a first command indicating the first verification data. The slave device includes a memory unit, a control unit, a logic unit, and an output unit. The control unit receives the first command in the first command sub-period, drives the memory unit to provide first storage data in the first data transmission sub-period, and further provides a first control signal in the first dummy sub-period, wherein the first control signal indicates the first verification data. The logic unit provides first preamble data, indicating substantially a same data value as the first verification data, in the first dummy sub-period in response to the first control signal. The output unit receives the first preamble data and the first storage data, and further outputs the first preamble data and the first storage data according to an internal clock signal. The host device samples the first preamble data according to an external clock signal, and determines whether the external clock signal is substantially aligned with data valid-intervals determined by the internal clock signal by comparing the first preamble data and the first verification data.
According to a second aspect of the invention, a memory access method, applied on a memory apparatus operating in a first read operation period including a first command sub-period, a first dummy sub-period, and a first data transmission sub-period, is provided. A host device of the memory apparatus stores first verification data and provides a first command indicating the first verification data. The memory access method comprises the follow steps. The first command is received by a control unit of a slave device in the first command sub-period. A memory unit of the slave device is driven to provide first storage data in the first data transmission sub-period by the control unit. A first control signal, indicating the first verification data, is provided in the first dummy sub-period, by the control unit. First preamble data, indicating substantially a same data value as the first verification data, is provided in the first dummy sub-period in response to the first control signal, by a logic unit of the slave device. The first preamble data and the first storage data, are received and accordingly outputted according to an internal clock signal, by an output unit of the slave device. The first preamble data are sampled according to an external clock signal by the host device, and whether the external clock signal is substantially aligned with data valid-intervals determined by the internal clock signal by comparing the first preamble data and the first verification data, are determined by the host device.
The above and other aspects of the invention will become better understood with regard to the following detailed description of the preferred but non-limiting embodiment(s). The following description is made with reference to the accompanying drawings.
Referring to
The memory apparatus 1 includes a host device 100 and a slave device 200. The host device 100 is coupled to the slave device 200 via a set of I/O pin P, and provides a command CMD, an operation address ADDR, and a clock signal CK to the slave device 200 via the set of I/O pin P, so as to have the slave device 200 configured to provide access data D. The host device 100 further receives the access data D, provided by the slave device 200, via the set of I/O pin P. As such, the slave device 200 can be properly accessed by the host device 100.
The host device 100 further stores a number of pieces of verification data, and provides the command CMD indicating one of the number of pieces of verification data. For example, each of the number of pieces of verification data includes 8 bits of data, each of which selectively corresponds to a logic value of one and a logic value of zero. In an embodiment, the command CMD is configured with a value of (00), and the corresponding verification data indicates the value of (10101010).
The slave device 200 includes a memory unit 202, a control unit 204, a logic unit 206, a multiplexer 208, and an output buffer 210, wherein the control unit 204 is connected to the memory unit 202 and the logic unit 206, and the memory unit 202 and the logic unit 206 are further coupled to the output buffer 210 via the multiplexer 208.
The control unit 204 receives the command CMD in the command sub-period TP1, and accordingly has the slave device 200 driven to operate in the dummy and the data transmission sub-periods TP2 and TP3. For example, the command CMD is a read command, and the control unit 204, in response to the read command, provides an access signal Sa to the memory unit 202 in the data transmission sub-period TP3, and further provides a control signal Sc to the logic unit 206 in the dummy sub-period TP2, wherein the control signal Sc is configured with the same value as the command CMD, i.e. (00), and accordingly indicates the verification data with the value of (10101010).
In other example, the control signal Sc is not provided by the command CMD together with the access signal Sa. In other example, the control signal Sc can also be provided by a status register, which is configured with different values in response to a status configuration command provided by the host device 100. As such, the control scheme of the control signal Sc can be achieved by configuring data value stored in the status register.
The memory unit 202 includes a memory array 202a and a peripheral circuit 202b. For example, the memory array 202a is a flash memory array, and the peripheral circuit 202b includes a word line decoder, a bit line decoder, and a sense amplifier, which operate in response to the access signal Sa to have the flash memory array biased and accordingly obtain storage data D_storage stored in selected cells of the memory unit 202 in the data transmission sub-period TP3. In other words, based on the access signal Sa, the memory unit provides the storage data D_storage in the data transmission sub-period TP3.
The logic unit 206 is driven to provide preamble data D_preamble in response to the control signal Sc in the dummy sub-period TP2, wherein the preamble data D_preamble indicate substantially the same data value as the verification data. In other words, the logic unit 206 is configured to provide the preamble data D_preamble indicating the data value of (10101010) in response to the control signal Sc indicating the signal value of (00).
Referring to
Referring to
Referring back to
The host device 100 samples the preamble data D_preamble according to an external clock signal. The host device 100 further determines whether the external clock signal is substantially aligned with data valid-intervals, determined by the internal clock signal CK, by comparing the obtained preamble data D_preamble and the verification data. For example, the data valid-intervals are the periods of time that each bit datum of the preamble data D_preamble is transmitted. In other words, the host device 100 determines whether the external and the internal clock signals are substantially synchronized by determining whether the data value of the preamble data D_preamble, transmitted based on the internal clock signal CK while sampled with the external clock signal, is substantially the same as the verification data.
When the preamble data D_preamble substantially correspond to the verification data, the host device 100 obtains a determination indicating that the external clock signal is substantially aligned with the data valid intervals of the internal clock signal CK, and the external and the internal clock signals are substantially synchronized.
On the other hand, when the first preamble data D_preamble does not completely correspond to the first verification data, the host device 100 obtains a determination indicating that the external clock signal is not aligned with the data valid intervals of the internal clock signal CK, and the external and the internal clock signals are not synchronized. The host device 100 further adjusts a trigger edge of the external clock signal based on the determination, so as to achieve clock timing synchronization of the external clock signal in the dummy sub-period TP2.
Though only the situation that the command CMD is configured with a value of (00) and the corresponding verification data indicates the value of (10101010) has been illustrated in the present embodiment of the invention, the memory apparatus 1 is not limited thereto. In other embodiment, the command CMD can also be configured with other values, such as (01), (10), and (11), and the corresponding verification data accordingly indicate the values of (11001100), (01010101), and (00110011), and the logic unit 206 can still obtain the preamble data D_preamble, having substantially the same data values as the aforementioned values of the verification data. As such, similar determination operation of whether the external and the internal clock signals are synchronized can also be achieved with the verification data and the preamble data D_preamble are configured with other data values.
Though only the situation that the verification data and the preamble data D_preamble selectively correspond to any one of the values of (10101010), (11001100), (01010101), and (00110011) has been illustrated in the present embodiment of the invention, the memory apparatus 1 is not limited thereto. In other example, other data values, such as (00000001), (11111110), or any other kinds of bit datum patterns can also be designated as the verification data and the preamble data D_preamble.
While the invention has been described by way of example and in terms of the preferred embodiment(s), it is to be understood that the invention is not limited thereto. On the contrary, it is intended to cover various modifications and similar arrangements and procedures, and the scope of the appended claims therefore should be accorded the broadest interpretation so as to encompass all such modifications and similar arrangements and procedures.
This application claims the benefit of U.S. provisional application Ser. No. 61/654,973, filed Jun. 4, 2012, the subject matter of which is incorporated herein by reference.
Number | Name | Date | Kind |
---|---|---|---|
5689502 | Scott | Nov 1997 | A |
6442644 | Gustavson et al. | Aug 2002 | B1 |
6952462 | Harrison | Oct 2005 | B2 |
7170819 | Szczypinski | Jan 2007 | B2 |
7646835 | Rozas | Jan 2010 | B1 |
7864624 | Kim et al. | Jan 2011 | B2 |
8010724 | Wortham et al. | Aug 2011 | B2 |
8234422 | Linam et al. | Jul 2012 | B2 |
8250297 | Gillingham et al. | Aug 2012 | B2 |
20010039632 | MacLaren et al. | Nov 2001 | A1 |
20020157031 | Lin | Oct 2002 | A1 |
20030126356 | Gustavson et al. | Jul 2003 | A1 |
20050058234 | Stojanovic | Mar 2005 | A1 |
20060056244 | Ware | Mar 2006 | A1 |
20080294855 | Chen et al. | Nov 2008 | A1 |
20090040846 | Chang | Feb 2009 | A1 |
20100271092 | Zerbe et al. | Oct 2010 | A1 |
20110208989 | Nygren et al. | Aug 2011 | A1 |
20110228619 | Iwasaki | Sep 2011 | A1 |
20120254873 | Bringivijayaraghavan | Oct 2012 | A1 |
20120321002 | Akita | Dec 2012 | A1 |
20130024916 | Evans | Jan 2013 | A1 |
Number | Date | Country | |
---|---|---|---|
20130326184 A1 | Dec 2013 | US |
Number | Date | Country | |
---|---|---|---|
61654973 | Jun 2012 | US |