Abstract:
This invention relates to a digital circuit for controlling the power usage of an electronic device such as a read only memory (ROM) for a computer device, particularly a portable computer device that relies on a battery power source. The circuit includes the latch, a positive edge detecting circuit, a negative edge detecting circuit, a guaranteed reset circuit, and a delay circuit. Control signals from the device open and close the latch when either a rising or falling edge of these control signals is detected by the edge detecting circuits. The latch itself includes a three input NAND gate and a two input NAND gate. The guaranteed reset circuit ensures that the circuit is initiated. The delay circuit includes a series of inverters and loads. The edge detecting circuits generate a pulse when a rising or falling edge is detected, and include a pulse generating portion, a NAND gate and inverters.

Description:
This invention is related to an invention by the same inventor, assigned to the same Assignee and described in a patent application entitled &#34;ROM Bit Sensing,&#34; Ser. No. 08/886,616 filed Jul. 1, 1997 which is hereby incorporated by reference in its entirety. 
    
    
     BACKGROUND OF THE INVENTION 
     The present invention relates generally to digital circuits, and specifically to digital circuits which conserve power in computer memories, particularly in computer devices that run on batteries. 
     Increasingly, computer devices such as laptops have become portable in response to the demand by consumers to take their work with them for home or for business trips. New devices such as handheld calendars and memo pads have a chief advantage that they too are portable. Such portable computing devices require batteries to run them, and one of the most important problems associated with these computing devices is battery usage. It often takes a long time to recharge a portable computer device, and the user may not be in a situation where he can stop and remain near a particular electrical outlet to run or charge the unit. When the user must become stationary to use the computer device, it defeats the portability feature of the computer. It thus becomes critical to reduce the amount of power usage in portable computer devices so that it is not necessary to recharge these devices so frequently. 
     Among the many components in a portable computer device is the read only memory (ROM). When a byte or word is received from a memory such as a read only memory (ROM), the state of the byte or word is detected and sent to the computer processor to be acted upon. Meanwhile there is power drawn from the computer device even after the byte or word has been detected, and the state of the byte or word determined. The power that is drawn is referred to as the static current. In such a system, the circuit that detects a series of bits from the ROM is called the ROM bit sensor. Typically, unless there is some method for de-selecting the memory, the bits will continue to drain power from the computer device. De-selecting the memory chip is, however, a comparatively slow process during which static current continues to be drawn. 
     SUMMARY OF THE INVENTION 
     The present invention performs the function of conserving the static current with a latch and two edge detecting circuits to shut off the static current without de-selecting the chip. Each of the edge detecting circuits produces a pulse on both the rising and falling edges of a control bit. However, one of these circuits is a negative edge detector and the other circuit is a positive edge detector. The negative edge detecting circuit only transmits a pulse to the latch when a negative edge is detected, while the positive edge detecting circuit only transmits a pulse to the latch when a positive edge is detected. 
     Two control signal bits are supplied to the digital circuit, the ROMVCP (ROM Voltage Column Precharge) signal and the ROMSAC (ROM SenseAmp Control) signal; one of these signals is supplied to each edge detecting circuit. The ROMVCP signal effectively turns the power on to a given chip, and the ROMSAC signal turns the power off. Preferably, the ROMVCP and ROMSAC signals are supplied by an address transition detection (ATD) unit, which is circuitry that produces a series of signals that start various functions in the computer in response to detecting a transition in the address requested by the computer from the memory. The control signal ROMSAC turns the chip off to conserve power every time there is an address transition at the ROM. 
     Each of the edge detecting circuits consists of a series of inverters, a NAND gate, and a C-MOS passgate. The NAND gate ensures that, from a pulse generated by pulse generating portion of the edge detector, only a negative or positive edge is passed to the latch. The latch includes a two input NAND gate and a three input NAND gate. 
     The digital circuit that shuts down the static current additionally includes a guaranteed reset circuit to initiate the NAND gates of the latch so that the digital circuit starts in a state where the static current is in the off condition. This guaranteed reset circuit consists of a plurality of inverters and a NAND gate. A delay line circuit, consisting of a plurality of inverters and loads, acts to delay the termination of the static current after the ROMSAC signal is received. 
     The preferred application for the present invention is to turn a ROM bit sensing circuit on and off. At the output end of this digital circuit, the Y select clock (YSELCLK) signal is pulsed to permit the ROM bit information to connect to the sensing circuit. After this YSELCLK pulse terminates, the connection between the power supply and the ROM bit sensing circuit is broken. It thus becomes possible to hardwire the connection and termination of the power supply with the digital circuit of the present invention without de-selecting the chip, which results in additional power savings since the de-selecting process takes longer. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     FIG. 1 is a simplified block diagram of the digital circuit; 
     FIG. 2 shows a timing diagram for the digital circuit; 
     FIG. 3 is a detailed circuit diagram of the digital circuit; 
     FIG. 4 shows the operation of the negative edge detector; 
     FIG. 5 shows the operation of the positive edge detector; 
     FIG. 6 shows the operation of the latch circuit; 
     FIG. 7 shows a detailed timing chart for the digital circuit; 
     FIG. 8 is the bit detection circuit that is controlled by the digital circuit; 
     FIG. 9 is a timing diagram for the circuit of FIG. 8; and 
     FIGS. 10(a) and 10(b) show two states of part of the circuit of FIG. 8. 
    
    
     DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS 
     FIG. 1 shows a digital circuit 100 in simplified block diagram form. Circuit 100 includes a Guaranteed RESET (GRESET) circuit, a Negative Edge Detector (NED) circuit, a Positive Edge Detector (PED) circuit, a Delay circuit, and a latch circuit. A ROMVCP signal pulse consisting of leading (1) and trailing (2) edges is applied at node A at the input to the negative edge detecting (NED) circuit. Circuit NED includes a pulse generating portion (PGP) that produces a pulse at each of the leading (1) and trailing (2) edges of the ROMVCP signal. However, circuit NED includes a NAND gate X9 which only passes the pulse when circuit NED detects a negative edge. Edge (1) is a rising or positive edge, so the pulse generated by the pulse generating portion PGP does not pass NAND gate X9. Edge (2) is a falling or negative edge, so a pulse generated by the pulse generating portion PGP passes through the gate NAND1. 
     The ROMSAC signal pulse, consisting of a falling or negative edge (3) and a rising or positive edge (4), is applied at node B to a positive edge detecting (PED) circuit. The PED circuit includes a pulse generating portion PGP&#39; that produces a pulse for each edge of the ROMSAC signal pulse. Because PED is a positive edge detector, its NAND gate X37 only lets this pulse through when PED detects a positive edge. Only positive edge (4) produces a pulse that gets through the positive edge detecting (PED) circuit. 
     The pulses that are released from the NAND1 gates of edge detecting circuits NED and PED have the form of 1-0-1. These pulses are applied to the LATCH circuit, which consists of NAND gates X31 and X32. The LATCH circuit toggles the YSELCLK output from a logical &#34;zero&#34; to a logical &#34;one&#34; at edge (2) and back to a logical &#34;zero&#34; at a delay time after edge (4). The YSELCLK signal turns on the static current at edge (2) and off after edge (4). 
     FIG. 1 also shows a guaranteed reset (GRESET) circuit and a time delay (DELAY) circuit. The GRESET circuit resets the LATCH and ensures that the YSELCLK output is &#34;zero&#34; after edge (1). The GRESET circuit thereby initiates the digital circuit of FIG. 1. 
     The DELAY circuit consists of various inverters and loads which at some delayed time after edge (4) turn off the YSELCLK signal, as shown in FIG. 2. 
     FIG. 2 is a timing diagram showing signal pulses input to, used in, and output by the invention. The ROMVCP signal pulse has a rising leading edge (1) and a falling trailing edge (2). The ROMSAC signal pulse has a falling leading edge (3) and a rising trailing edge (4). The ROMVCP signal rising edge (1) and the ROMSAC signal falling edge (3) start at the same time, but the ROMSAC signal pulse outlasts the ROMVCP signal pulse. The YSELCLK output is &#34;zero&#34; through edge (1), goes to &#34;one&#34; at edge (2), and, at a delay time after signal (4), goes back to &#34;zero.&#34; The YSELCLK signal output enables the senseamp. Leading edge (1) is a reset edge, and edge (2) changes the YSELCLK signal output to a logical &#34;one,&#34; thus turning on the senseamp. A delayed rising edge (4) of the ROMSAC signal changes the YSELCLK output back to a logical &#34;zero,&#34; thus turning off the senseamp. 
     FIG. 3 is a circuit diagram of the invention. The PED circuit includes an input terminal B and an output terminal H connected by a series of inverters X21, X22, X23, X24, X25, X26 and X27, a CMOS passgate X28, NMOS transistor N4, PMOS transistor N3, and a NAND gate X37. 
     The NED circuit is the same as the PED circuit with the addition of an inverter X8 in the line between its input terminal A and one input of its NAND gate X9. 
     The GRESET circuit consists of an input terminal connected to node A, an output terminal K, three inverters and a NAND gate. 
     The DELAY circuit includes an input terminal at node H and an output terminal at node P connected by four inverters in series and four loads. 
     The LATCH circuit includes input terminals at nodes E, 0 and P, an output terminal at node R, a two input NAND gate X31 and a three input NAND gate X32, and produces an output signal YSELCLK. 
     Referring to FIG. 4, the negative edge detecting (NED) circuit and the guaranteed reset (GRESET) circuit operate as follows. The ROMVCP signal has the form 0-1-0. Initially, a logical &#34;zero&#34; ROMVCP signal is applied through input node A and inverters X11, X12 and X13, which produces a logical &#34;one&#34; at input J to NAND gate X14. At the same time, the ROMVCP logical &#34;zero&#34; is also applied to input terminal I of NAND gate X14 and forces the NAND gate output node K to produce a logical &#34;one&#34; &#34;guaranteed reset&#34; signal. This &#34;one&#34; is applied to input O of NAND gate X32 which resets the LATCH, as will be discussed below. 
     When the value of signal ROMVCP rises at edge (1), the logical value &#34;one&#34; propagates to input I at NAND gate X14 faster than through inverters X11, X12 and X13, and hence both inputs I and J to NAND gate X14 are &#34;one&#34; until edge (1) propagates through the inverters. During this delay NAND gate X14 outputs a logical &#34;zero.&#34; 
     The ROMVCP &#34;one&#34; value following edge (1), after being delayed through inverters X11, X12 and X13, is inverted to a logical &#34;zero&#34; at input J of NAND gate X14, which forces NAND gate X14 to output a logical &#34;one&#34; at the GRESET output node K. The NAND gate X14 output thus goes from &#34;one&#34; before edge (1) to &#34;zero&#34; following edge (1) and back to &#34;one&#34; after delayed edge (1) arrives, as shown in FIG. 2. 
     When signal ROMVCP falls at edge (2), the &#34;zero&#34; value applied to input I of NAND gate X14 forces its output at node K to a logical &#34;one&#34; until another rising edge arrives. The 1-0-1 pulse output of the GRESET circuit is applied to input O of NAND gate X32 of the LATCH circuit, as will be described below. 
     Continuing with FIG. 4, NED circuit initially receives the ROMVCP signal in a &#34;zero&#34; state before edge (1). This &#34;zero&#34; is inverted through inverter X8 to a logical &#34;one&#34; at input C of the NAND gate X9. The initial ROMVCP value of &#34;zero&#34; causes a &#34;zero&#34; value at node 12 at the gates of transistors M1 and M2, and a &#34;zero&#34; at node 16 and a &#34;one&#34; at node 17, which turn on CMOS passgate X10, which passes the &#34;zero&#34; from node 12 to node 18 at the D input to NAND gate X9. The &#34;one&#34; at input C and the &#34;zero&#34; at input D cause NAND gate X9 to output a logical &#34;one&#34; to input L of NAND gate X31 of the LATCH. 
     After signal ROMVCP rises at edge (1), the ROMVCP value of logical &#34;one&#34; at input A is inverted through inverter X8 to a &#34;zero&#34; at input C of NAND gate X9 whose output E (node 19) remains a logical &#34;one.&#34; 
     Meanwhile, in response to rising edge (1), the NED pulse generating portion PGP produces at input D of NAND gate X9 a pulse whose duration is determined by inverters X3 to X6. This pulse is not transmitted through NAND gate X9 because of the logical &#34;zero&#34; applied at input C. Thus, the NED circuit does not &#34;detect&#34; a rising edge and responsively output a pulse at node E. 
     Sometime later, as shown in FIG. 2, the falling edge (2) is applied to the NED. Following falling edge (2), signal ROMVCP has a logical value of &#34;zero,&#34; which, after inversion by inverter X8 produces a logical &#34;one&#34; at input C of NAND gate X9. Meanwhile, edge (2) causes the pulse generating portion PGP of the NED circuit to apply a 0-1-0 pulse to input D of NAND gate X9. Since there is a logical &#34;one&#34; at input C, the pulse passes through NAND gate X9 and is inverted to a 1-0-1 pulse at output E (node 19). 
     Referring to FIG. 5, the positive edge detecting (PED) circuit operates as follows. The ROMSAC signal is initially at a logical level &#34;one.&#34; As shown in. FIG. 2, at the same time t 1  that signal ROMVCP has a rising edge (1), signal ROMSAC has a falling edge (3). The low portion of the ROMSAC signal pulse lasts longer than the high portion of the ROMVCP signal pulse. In contrast to the NED circuit, the PED circuit has a direct line without an inverter between input terminal B and input F of its NAND gate X37. Following edge (3), the ROMSAC signal has a logical &#34;zero&#34; value which is applied to input F of NAND gate X37. Meanwhile, edge (3) is applied to the pulse generating portion PGP&#39; of the PED which produces a pulse whose duration is determined by inverters X23 to X26. This pulse is applied to input G of NAND gate X37. However, since a logical &#34;zero&#34; is applied to input F, NAND gate X37 is forced to output a &#34;one&#34; and cannot pass the pulse. After passing through the DELAY circuit, this logical &#34;one&#34; signal is applied to input P of NAND gate X32 of the LATCH. 
     Once the ROMSAC rising edge (4) is applied to input terminal B, the logical &#34;one&#34; value reaches node N21 and passes through passgate X28 to present a second logical &#34;one&#34; to the inputs of NAND gate X37 before the logical &#34;one&#34; reaches nodes 25 and 26 and turns off the top and bottom halves, respectively, of passgate 28. This allows NAND gate X37 to output a 1-0-1 pulse, the duration of which depends on the delay through inverters X23-X26. This inverted pulse propagates through the DELAY circuit and then is applied to input P of NAND gate X32 in the LATCH circuit. 
     The operation of the LATCH circuit will be described with reference to FIG. 6. According to the FIG. 2 timing diagram, edge (1) and edge (3) occur simultaneously. As previously noted, rising edge (1) causes the NED circuit to produce a logical &#34;one&#34; signal at input L of NAND gate X31 while falling edge (3) causes the PED circuit to produce a logical &#34;one&#34; signal at input P of NAND gate X32 of the LATCH. Meanwhile, the GRESET circuit applies a short 1-0-1 pulse to input O of NAND gate X32, which resets the LATCH to output a logical &#34;zero&#34;. 
     When the GRESET &#34;zero&#34; pulse is applied to input &#34;O,&#34; NAND gate X32 outputs a logical &#34;one&#34; which is fed back to input M of NAND gate X31. As noted previously, NAND gate X31 also receives a value of logical &#34;one&#34; at input L from the NED, so the YSELCLK output of NAND gate X31 is &#34;zero&#34; at node R following edges (1) and (3). This YSELCLK signal value of &#34;zero&#34; during the initial reset phase is preferably used to power-off the ROM circuit or other device (not shown) being controlled. 
     Following edge (1) at time t1, the &#34;one&#34; value ROMVCP signal propagates through delay elements X11, X12, X13 and then applies a &#34;zero&#34; value to node N40 at the second input of NAND gate X14, causing the RESET signal at node 46 to return to a &#34;one&#34; and cease resetting the LATCH. 
     When falling edge (2) is input to node A, the negative edge detecting circuit NED produces at node E a 1-0-1 pulse which is applied to input L of NAND gate X31, and this sets the LATCH to output at node R a logical &#34;one&#34; value YSELCLK signal. 
     Meanwhile, during the occurrence of edge (2) at time t2, the ROMSAC signal remains at a logic &#34;zero&#34; level and hence the PED output signal at node H, and the DELAY output signal at node P, remains at a logical &#34;one&#34; level. Thus, all three of lines N, O and P apply logical &#34;one&#34; inputs to NAND gate X32, which outputs on line M (node 33) a logical &#34;zero&#34; that holds the LATCH in its SET state outputting a logical &#34;one&#34; YSELCLK signal. This logical &#34;one&#34; YSELCLK signal is preferably used to turn the power supply &#34;on&#34; to the ROM or other device being controlled. 
     Next, at time t3 the ROMSAC signal has rising edge (4), following which the ROMSAC value of logical &#34;one&#34; is applied to input B of the PED circuit, which is connected directly to input F of NAND gate X37. Edge (4) is also applied to the pulse generating portion PGP&#39; which, because of the delay through inverters X23 through X26, produces a logical &#34;one&#34; pulse at input G of NAND gate X37. The logical &#34;one&#34; signal at input F and logical &#34;one&#34; pulse at input G cause NAND gate X37 to produce a 1-0-1 pulse which passes through delaying inverters X28, X29, X34 and X33 with delaying loads X40, X41, X35 and X36 of the DELAY circuit, and then arrives at input P of NAND gate X32 of the LATCH. 
     Following time t2 in the meantime ROMVCP remains at logical &#34;zero&#34; so the NED output at remains a logical &#34;1.&#34; The GRESET circuit output also remains at a value of logical &#34;one&#34; at input O of NAND gate X32. 
     At time t4 when the DELAY circuit outputs the 1-0-1 pulse to input P of NAND gate X32 the &#34;zero&#34; signal resets the LATCH, which thereafter outputs a logical &#34;zero&#34; value YSELCLK signal. Thus, following edge (4) the &#34;zero&#34; YSELCLK signal turns &#34;off&#34; the power supply to the ROM or other controlled device. 
     FIG. 7 is a timing chart showing the input and output signal values in circuit 100 at times t1, t2, t3 and t4. 
     FIG. 8 is a schematic diagram of the ROM bit sensing circuit that is preferably controlled by digital circuit 100 of the present invention. There are two y select transfer gates to get through in order to hook the bit and reference bit to the senseamp. The signals that turn on these selects are labeled YAFIRST, YASECOND, YREF, and their inversions. Comparing FIG. 8 with the FIG. 9 timing diagram, the precharge signal goes low and the bit line, reference bit line, Node A, Node B and all points between the y select transfer gates, get charged up to voltage VCC. This is possible because ROMSAC is low, and does not allow charge to get to ground from Node A and Node B. 
     The precharge pulse then goes inactive or high. At the same time, the wordline rises up to VCC, and the y select signals activate. The y select signals are enabled by YSELCLK in their decoders. Eventually, sufficient differential builds up between the bit line and the reference bit line and this is transferred to Node A and Node B. The ROMSAC signal then goes high, which grounds the senseamp latch and forces Node A and Node B to go to either zero or VCC, depending on whether a bit has been programmed. (A bit is programmed if a bit transistor is present; a bit is not programmed if a bit transistor is not present.) 
     At this point, bit information has been ascertained and the senseamp latch is set. If a bit transistor is not present, Node A is at VCC and Node B is at zero. No current is drawn, as shown in FIG. 10(a). If a bit transistor is present, Node A is at zero and Node B is high. Node B wants to be at VCC but there is a current path from the senseamp pullup PMOS device on Node B through the YREF transfer gates and down to ground through the reference bit. This current is wasted and needs to be eliminated. It is stopped by YSELCLK going to zero and disabling all the y select signals. 
     The YREF transfer gate has two purposes. One is to duplicate the impedance from the bit line to the senseamp. The other is to act as the gate to be turned off to stop the current. 
     For every 32 columns, there is one reference bit column. The 32 columns are selected down to one by the two y select stages. 
     Thus, when an address transition is detected by the address transition circuit, this cues the ROMSAC signal to activate circuit 100 to turn off the ROM bit sensing circuit. Then, when more ROM bits must be detected, the address transition detector applies the ROMVCP signal to the circuit 100 to turn the ROM bit sensor back on. 
     The present invention has been described in terms of the specific embodiment of a digital circuit for controlling the power supply to a bit detection circuit of a read only memory (ROM) in response to an address transition signal from an address transition detector (ATD). However, the circuit of the present invention is applicable to any circuit that controls the &#34;on&#34; and &#34;off&#34; state of another device, including any other memory, such as a RAM, or another circuit in a computer. 
     Although the present invention has been described in detail, those skilled in the art should understand that they can make various changes, substitutions and alterations herein without departing from the spirit and scope of the invention in its broadest form.