The invention relates to an electronic apparatus and an operative method, and particularly relates to an electronic apparatus and an operative method which are capable of triggering an initialization operation for the electronic apparatus correctly.
Nowadays, memory devices are widely used to store data in numerous electronic apparatuses. Among different memory types, content-addressable memory (CAM) are preferable for applications that require relatively high speed searching for data. However, one of critical issues that cause a corruption of stored data in the memory devices are sudden power loss or too low power drop. Therefore, it is necessary to detect the power drop and trigger a power-on-reset (POR) signal to reset the electronic apparatus correctly, thereby recovering the corrupted data and improving the reliability of the electronic apparatus.
This invention introduces an electronic apparatus and an operative method which are capable of triggering correctly an initialization operation for the electronic apparatus.
The electronic apparatus includes a plurality of latches and a POR generator. The plurality of latches are coupled to the memory cells and are configured to monitor memory data of the memory cells. The POR generator is coupled to the plurality of latches and are configured to generate a POR pulse to reset the electronic apparatus in response to a data corruption on at least one of the memory cells. The data corruption is detected during an initialization operation of the electronic apparatus according to memory data of the memory cells and corresponding hardwired code data.
The operative method includes steps of monitoring memory data sensed from a plurality of memory cells; detecting a data corruption during an initialization operation of the electronic apparatus according to the memory data and corresponding hardwired code data; and generating a power-on-reset (POR) pulse to reset the electronic apparatus according to the detected data corruption.
In some embodiments of the invention, when memory data is corrupted due to power drop, the POR pulse is generated to reset the electronic apparatus so as to recover the corrupted memory data. In this way, the corrupted memory data may be recovered and the reliability the electronic apparatus are improved.
The accompanying drawings are included to provide a further understanding of the invention, and are incorporated in and constitute a part of this specification. The drawings illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention.
It is to be understood that other embodiment may be utilized and structural changes may be made without departing from the scope of the present invention. Also, it is to be understood that the phraseology and terminology used herein are for the purpose of description and should not be regarded as limiting. The use of “including,” “comprising,” or “having” and variations thereof herein is meant to encompass the items listed thereafter and equivalents thereof as well as additional items. Unless limited otherwise, the terms “connected,” “coupled,” and “mounted,” and variations thereof herein are used broadly and encompass direct and indirect connections, couplings, and mountings.
Referring to
The latch circuit 120 may include a plurality of latches L1, L2 and L3, where each of the latches L1, L2 and L3 corresponds to one of the memory cells and each of the latches L1, L2 and L3 is configured to monitor memory data of the corresponding memory cell. For example, the latch L1 corresponds to the memory cell at the address 01h and is configured to monitor the memory data D1 stored in the corresponding memory cell; the latch L2 corresponds to the memory cell at the address 02h and is configured to monitor the memory data D2 stored in the corresponding memory cell; and the latch L3 corresponds to the memory cell at the address 03h and is configured to monitor the memory data D3 stored in the corresponding memory cell. The latch circuit 120 may provide the memory data D1 to D3 which are monitored by the latches L1 to L3 to the POR generator 130.
In some embodiments of the invention, the electronic apparatus 100 may further include a sense amplifier (not shown) that is configured to sense the memory data of the memory cells. The sense amplifier may output the sensed memory data to the latches L1 to L3 of the latch circuit 120 so that the latch circuit 120 may monitor the memory data stored in the memory cells of the memory array 110.
The hardwired code circuit 140 is configured to provide hardwired code data D1′ to D3′ corresponding to memory data D1 to D3 which are monitored by the latches L1 to L3, respectively to the POR generator 130. For example, the hardwired code circuit 140 may provide the hardwired code data D1′ corresponding to the memory data D1, the hardwired code data D2′ corresponding to the memory data D2, and the hardwired code data D3′ corresponding to the memory data D3 to the POR generator 130.
The POR generator 130 may include a plurality of logical circuits which may be exclusive-OR (XOR) circuits 131 to 137 in some embodiments of the invention. Each of the XOR circuits 131 to 137 may receive the memory data monitored by one of the latches L1 to L3 and the corresponding hardwired data provided by the hardwired code circuit 140. As illustrated in
It should be noted that the logical circuits of the POR generator are not limited to the XOR circuit. Other logical circuits fall within the scope of the invention as long the other logical circuits may detect a difference between the memory data and the corresponding hardwired code data.
In some embodiment of the invention, the POR 130 is configured to generate a p POR pulse (or a POR signal) in response to a corruption of memory data in at least one the memory cells. The POR 130 may generate the POR signal when at least one of XOR circuits 131 to 137 outputs a pre-defined logical value. For example, if at least one of the XOR circuits 131 to 137 outputs the high-logical value (e.g., logical value of 1) indicating that the memory data are different from the corresponding hardwired code data, the POR pulse is generated. As such, when the voltage drop causes the corruption of the memory data stored in a memory cell, the POR signal is generated to trigger an initialization process to initialize the electronic apparatus no matter how low level of the voltage drop. In this way, the corrupted data may be recovered.
Referring to
The inverter Inv1 is coupled back-to-back to the inverter Inv2. In other words, an output of the inverter Inv1 is input to the inverter Inv2; and the output of the inverter Inv2 is input back to the inverter Inv1. The inverter Inv1 may include a p-type transistor P1 and a n-type transistor N1; and the inverter Inv2 may include a p-type transistor P2 and a n-type transistor N2. The control terminals of P1 and N1 are coupled to a node B that electrically connects to a drain terminal of P2 and a drain terminal of N2. The control terminals of P2 and N2 are coupled to a node A that electrically connects to a drain terminal of P1 and a drain terminal of N1. The invention is not limited to any specific type of the transistor P1, P2, N1 and N2.
Referring to
Referring to
Referring to
From
Referring to
In some embodiments of the invention, an electronic apparatus and an operative method are introduced for triggering correctly an initialization operation for the electronic apparatus, thereby preventing data loss in memory cells of the electronic apparatus. A data corruption in at least one of the memory cell is detected according to memory data which are monitored by a plurality of latches and corresponding hardwired code data which are provided by a hardwired code circuit. A POR pulse is generated in response to the detection of the data corruption in at least one of the memory cell to reset the electronic apparatus, thereby recovering the corrupted memory data. The plurality of latches may be operated with a pre-set operating supply voltage being dropped by a threshold voltage, so that the data corruption is detected earlier to reset the electronic apparatus earlier. Since data corruption is detected according to the memory data stored in the memory cell, the data corruption is always detected regardless of how low the power drop level is.
It will be apparent to those skilled in the art that various modifications and variations can be made to the structure of the present invention without departing from the scope or spirit of the invention. In view of the foregoing, it is intended that the present invention cover modifications and variations of this invention provided they fall within the scope of the following claims and their equivalents.
Number | Name | Date | Kind |
---|---|---|---|
4586179 | Sirazi | Apr 1986 | A |
5402081 | Wong | Mar 1995 | A |
5831470 | Park | Nov 1998 | A |
5940343 | Cha | Aug 1999 | A |
6144600 | Ogura | Nov 2000 | A |
6232818 | Zaliznyak | May 2001 | B1 |
6895525 | Wilkie et al. | May 2005 | B1 |
7257763 | Srinivasan | Aug 2007 | B1 |
9406395 | Kodama et al. | Aug 2016 | B1 |
9582349 | Schmit | Feb 2017 | B1 |
9628061 | Lu et al. | Apr 2017 | B2 |
20020013876 | Rosa | Jan 2002 | A1 |
20040052249 | Fukuoka | Mar 2004 | A1 |
20060012396 | Kim | Jan 2006 | A1 |
20100054054 | Kim | Mar 2010 | A1 |
20100271057 | Cannon et al. | Oct 2010 | A1 |
20110090203 | Cho | Apr 2011 | A1 |
20110181339 | Kikuchi | Jul 2011 | A1 |
20130162458 | Nishiki | Jun 2013 | A1 |
20130300394 | Wang | Nov 2013 | A1 |
20150318033 | Kajigaya | Nov 2015 | A1 |
20180026549 | Xu | Jan 2018 | A1 |
20180183434 | Kowkutla | Jun 2018 | A1 |
20190095570 | Hutton | Mar 2019 | A1 |
Number | Date | Country |
---|---|---|
102520223 | Jun 2012 | CN |
103093807 | May 2013 | CN |
104461947 | Mar 2015 | CN |
104620194 | Jan 2018 | CN |
111091856 | May 2020 | CN |
2010224954 | Oct 2010 | JP |
I299161 | Jul 2008 | TW |
Entry |
---|
“Office Action of Taiwan Counterpart Application”, dated Feb. 27, 2020, p. 1-p. 4. |
“Office Action of China Counterpart Application”, dated Apr. 2, 2021, p. 1-p. 10. |
Number | Date | Country | |
---|---|---|---|
20200026607 A1 | Jan 2020 | US |