Patent Publication Number: US-3875386-A

Title: Zero suppression circuit

Description:
United States Patent 1191 Tsuiki et al.  
 [ 1 Apr. 1, 1975 1 1 ZERO SUPPRESSION CIRCUIT [75] Inventors: Takao Tsuiki; Yoshikazu Hatsukano. both of Tokyo. Japan [73] Assignee: Hitachi, Ltd., Tokyo. Japan [22] Filed: Oct. 4, 1973 [211 App]. No.: 403,556  
 I30] Foreign Application Priority Data DETECTOR CKT Primary Exaniim&#39;rMalc0lm A. Morrison Assistant E.ruminerDavid A. Malzahn Attorney. Ageul. 0r Firm-Craig &amp; Antonelli l5 7] ABSTRACT A zero suppression circuit for a display of an electronic calculator or the like employs a register which includes n flip-flops for storing a decimal point signal and signals representing whether the digits of respective places are any of the digits 1 to 9. and a detector circuit which includes n OR gates, the i-th gate of the detector circuit being supplied with the output signals of the first to i-th flip-flops of the register. An output 0&#34; of the i-th OR gate signifies that neither a digit from 1 to 9 nor a decimal point exists in and below the i-th place, so the digit 0 in the i-th place is unnecessary. Through such a judgement, the unnecessary zeros below the decimal point are prevented from being indicated in the display. When further detector circuits are provided unnecessary zeros in the upper places can also be prevented from being indicated.  
 8 Claims, 3 Drawing Figures J FW R CKT TH DTs RG2 REGISTER RD DEEIIMAL-POINF REGISTER &#34;LBTELBSC PMENTEBAPR I iE-NS arm 3 BF 3 P F n5 l||||||| r5 T fi Hi L its FL E H E E E FL P5 FT E E E FT L FTE ZERO SUPPRESSION CIRCUIT BACKGROUND OF THE INVENTION 1. Field of the invention The present invention relates to the indicator circuit of an electronic calculator or the like and, more particularly, to a zero suppression circuit for preventing unnecessary zeros below a decimal point from being indicated.  
 2. Description of the Prior Art in conventional electronic desk calculators and the like, all the places of an indicating device are brought to the zero indication after the closure of the power supply switch. Subsequently, when the first or second operand is set or when a calculated result is requested, all the places except those necessary for the indication are indicated as zeros. For example, where a fouriigure number i234 is set, an expression Ol234.00 is given by the indicating device.  
  With such an indicating system, the unnecessary zeros are indicated in the places above and below those required for the indication. For this reason, the indication is difficult to read, and misreading may become a problem.  
  Where, with the miniaturization of the electronic desk calculator, a battery is employed as the power supply, the power consumption of the calculator must be made low in order to lengthen the life of the power supply. Since the indicating portion exploits electrooptic conversion, the power consumption thereof is high in comparison with those of the arithmetic portion, etc., and the indication of the unnecessary zeros is not negligible.  
 SUMMARY OF THE INVENTION it is, accordingly, an object of the present invention to provide a zero suppression circuit which can reduce the power consumption in an indicator circuit.  
  Another object of the present invention is to provide a zero suppresion circuit which prevents unnecessary zeros below a decimal point from being indicated.  
  Still, another object of the present invention is to provide a zero suppression circuit which prevents unnecessary zeros in both the upper and lower places from being indicated.  
  The present invention itself and further objects of the present invention will become apparent from the following detailed description taken with reference to the accompanying drawings.  
 BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a connection diagram showing the zero suppression circuit according to the present invention;  
  FIG. 2 is a connection diagram showing a digit discriminating circuit which discriminates whether or not a digit from i to 9 or a decimal point is present in each place of a decimal number; and  
  FIG. 3 is a chart showing timing pulses used in the circuits in FIGS. 1 and 2.  
 PREFERRED EMBODIMENT OF THE INVENTION FIG. I shows an embodiment of the zero suppression circuit according to the present invention. I  
  Referring to the figure, RG designates a register, which is composed of eight flip-flop circuits FF -FF... The flip-flop circuits FF FF are connected in esscsde. Each of these flip-flop circuits is constructed as a two-phase delay type flip-flop circuit which uses a digit pulse D, and a clock pulse g as shift pulses (or trigger pulses). Information is written in accordance with the timing of the clock pulses D denotes a circuit for detecting unnecessary zeros in upper places, which is composed of OR circuits OG, OG.,. D, indicates a circuit for detecting unnecessary zeros in lower places, which is composed of OR circuits 0G 0G The OR circuit 06, receives the output signals of the eight flip-flop circuits FF, FF... as its inputs. The 7-input OR circuit 00, receives the output signals of the flip-flop circuits FF FF as its inputs. in this manner, the i-th (i l, 2, 8) (9 i)-input OR circuit 0G, in the unnecessary-upper-zero detector circuit D receives as its inputs the output signals of the flip-flop circuits from that FF, in the i-th place (as determined from the lowermost place) to that FF in the uppermost place. On the other hand, the i-th (i 1, 2, 8) i-input OR circuit OG in the unnecessary -low er-zero detector circuit D, conversely receives as its inputs the output signals of the flip-flop circuits from that FF, in the i-th place to that FF. in the lowermost place.  
  D, represents a circuit for detecting unnecessary zeros in upper and lower places, which is composed of eight 3-input AND circuits AG, Ag... On the input side of the i-th AND circuit AG there are applied output signals of the respective i-th 0R circuits 0G. and 0G of the unnecessary-upper-zero detector circuit D, and unneceseary-lower-zero detector circuit D.. To all the AND circuits AG, AG... a timing pulse T DT, is applied as a control input. Although, in order to facilitate the explanation, the l-input OR circuits 0G,, and 0G are shown in the detector circuits D. and D they are not necessarily required. For example, the flip-flop circuit FF, and the AND circuit AG. may be directly connected.  
  R0. designates a register, which is composed of twophase delay type flip-flop circuits FF FF being the same in construction as the foregoing flip-flop circuits FF, FF... The flip-flop circuits FF FF are connected in cascade. The output side of the flip-flop circuit FF is fed-back through an AND circuit AG onto the input side of the flip-flop circuit FF The formation of the feedback loop is controlled by a timing pulse T,,. On the input side of the flip-flop circuit FF in the l-th place, an output signal of the i-th AND circuit AG. is applied.  
  FIG. 2 shows a digit discriminating circuit to be connected at the stage preceding the zero suppression circuit in FIG. 1. The digit discriminating circuit discriminates whether a decimal point or a digit from i to 9 is present or absent in each place of a decimal number.  
  Referring to the figure, RN indicates a numeral re gister. Where the binary-coded decimal system is adopted as the notation, a decimal number of one figure is stored by four bits of flip-flop circuits FF -FF Assuming that the calculating or indicating capability of the calculator concerned is eight places. the register RN requires a number of such flip-flop circuits by at least 8 X 4 bits. Each of the flip-flop circuits FF FF. is constructed as a two-phase delay type flip-flop circuit whose shift pulses are clock pulses tit, and 4a,.  
  FF designates a set preference flip-flop circuit. Applied at its set input S is an output signal of the flip-flop circuit FF at the second bit in the lowermost place of the register RN, while applied at its reset input R is a bit signal ET The flip-flop circuit FF is also in the construction of the delay type in which the shift operation is effected by the clock pulses d), and d), The truth table is given below.  
  RD represents a decimal-point register, which is used to store the position of the decimal point of the number stored in the numeral register RN and which is composed of eight flip-flop circuits FF FF These flipflop circuits have the construction of the two-phase delay type flip-flop circuit whose shift pulses are the digit pulse D, and the clock pulse g.  
  Output signals of the flip-flop circuit FF and the decimal-point register RD are combined by an OR circuit 00, The resultant signal is fed to the register R0,.  
  Various pulse signals for use in the embodiment will now be explained with reference to FIG. 3. in the figure, the upper level of each pulse signal indicates a reference potential or the ground potential (logical 1), while the lower level a negative potential (logical 0). The clock pulses o, and q), are generated by, for example, astable multivibrators. They are continuously generated within the calculator and are employed for the shifting or triggering operation of the memory elements (delay type flip-flops) connected in cascade in the registers, the other flip-flop circuits. etc. Bit signals BT, BT, are used where binary parallel signals derived from an encoder are to be transformed into binary series signals. in the embodiment, the bit signal HT, is utilized as the reset input signal of the tlip-flop circuit FF Digit signals DT, DT. are used as, for example, place switching signals in the dynamic indication system. in the embodiment, they are used as the control pulses oi the detector circuit D The digit pulse D, is used for distinguishing the places oi the binary-coded decimal number, while a word pulse W, (not especially employed in the embodiment) serves to distinguish words. The characteristic equations of the respective pulses are:  
 Accordingly, the pulses D, and W, can be formed oi the pulses previously stated. The bit signals BT, B1, and the digit signals DT, DT. can be respectively produced from the clock pulses o. and the bit signal ET, by utilizing counters etc. Here, the pulse width of the bit signals 81&#39;&#39;, B1&#34;, is equivalent to the period of the clock pulses 4:, or o and is equivalent to the time oi I bit of the binary series signal. The pulse width of the digit signals DT, OT, and the period of the digit pulses D, are equivalent to the period of the bit signals HT, BT,, namely, the time of one place (4 bits) of the series binary-coded decimal number. The timing pulses T and T are used for the control of the register and so forth, and have a pulse width equal to the period of the digit signals. in this manner, as the various timing pulses for use in the embodiment, pulses for use in the other circuits of the electronic caclulator can be employed as they are.  
  The operation of the zero suppression circuit thus constructed will be described in detail hereunder on every block.  
 1. Register R6,  
  The register RG, stores a decimal-point signal and a signal representing whether the digits of the respective places are any one of the numbers from 1 to 9 or 0.  
  For example, where the position of the decimal point is specified at the fifth place as determined from the lowermost place and where a four-figure number 10.34 is set, the former signal is made 0010000, and the latter signal is made 00l0l it the digits 1 to 9 are converted into a logical l and the digit 0 is converted into a logical 0. Thus, a signal 00111 100 corresponding to the logical sum between both the above signals is fed to and stored in the register R6,.  
  Accordingly, when the output of the flip-flop circuit FF, in the i-th place becomes 1 in a predetermined period (at I DT i), it becomes known that either a digit from i to 9 or the decimal point exists in the i-th place. When, conversely, it becomes 0, it becomes known that neither a digit from i to 9 nor the decimal point exists in the i-th place, namely, that only the digit 0 exists in the i-th place.  
 2. Unnecessary Upper Zero Detector Circuit D The circuit D, for detecting unnecessary zeros in upper places detects whether unnecessary zeros are present in each place and the places above it, in other words, if either a digit from i to 9 or a decimal point is present in the places.  
  in more detail, the i-th OR circuit OGrreceives the output signals of the i-th to eighth flip-flop circuits FF, FF, as its inputs. When any one of the signals becomes I, it is judged that a digit from i to 9 or the decimal point is existent in or above the i-th place and that no unnecessary zero is existent therein. For example, for a number 03005678 or a number 00.005678, the digits of the fifth and sixth place are 0s, but any digits from i to 9 or the decimal point is present in a place above the fifth and sixth places. As a result, the outputs of the OR circuits 0G, and 0G, become i. it is, accordingly, judged that no unnecessary zero is existent in the fifth and sixth places.  
  On the other hand, when all the output signals of the i-th to eighth flip-flop circuits FF, FF, becomes 0, the output of the 0R circuit 00, becomes 0. it is, accordingly, judged that neither a digit from i to 9 nor the decimal point exists in and above the i-th place, and that the digit 0 in the i-th place is unnecessary.  
 3. Unnecessary-Lower-Zero Detector Circuit D,  
  The circuit D. for detecting unnecessary zeros in lower places detects whether unnecessary zeros are present in each place and the places below it, in other words, if either a digit from i to 9 or a decimal point is present in the places.  
  in more detail, the i-th OR circuit 00,, receives the output signals of the first to ith places of flip-flop circuits FF, FF. as its inputs. When any one oi the signals becomes 1, it is judged that a digit from i to 9 or the decimal point is exlstsnt in or below the i-th place, and that no unnecessary zero is existent therein.  
  On the other hand, when all the output signals of the flip-flop circuits FF. FF, become 0. the output of the OR circuit 06,, becomes 0. it is, accordingly, judged the neither a digit from i to 9 nor the decimal point exists in and below the i-th place, and that the digit 0 in the i-th place is unnecessary.  
  4. Unnecessary-Upper-and-Lower-Zero Detector Circuit D,  
  On the basis of the detecting results of the unnecessary-upper-zero detector circuit D, and the unnecessary-lower-zero detector circuit D,, the detector circuit D detects whether unnecessary zeros are present in both upper and lower places. in other words, the detector circuit D detects if a digit from i to 9 or the decimal point is present in each place and places above and below it. in case where a digit from 1 to 9 or the decimal point is present in both the upper and lower places, it is judged that the digit in the particular place is to be indicated.  
  The i-th AND circuit AG, receives as its inputs the output signal of the OR circuit 06, for detecting the presence of unnecessary zeros in an above the i-th places and the output signal of the OR circuit 06 for detecting the presence of unnecessary zeros in and below the i-th places. Therefore, where at least one of the received output signals is 0, it becomes known that the unnecessary zero exists in the i-th place.  
  For example, where the position of the decimal point is specified at the fifth place as determined from the lowermost place and where a four-figure number 10.04 is set (0010.0400), the contents of the register RG become 00l l0l00, and the output of the detector circuit D, becomes a signal 001 l l 100 which corresponds to the logical product between the output 001 l l i ll of the unnecessary-upper-zero detector circuit D, and the output 1 l l i l 100 of the unnecessary-lower-zero detector circuit D,. it is thus detected that the unnecessary zeros exist in the upper two places and the lower two places.  
  The timing pluse T DT, impressed on each AND circuit of the detector circuit D, is utilized as the signal for control. More specifically, when the decimal point signal and the signal indicative of the existence or nonexistence of a digit from i to 9 in each place are loaded in the register RG, (when both the timing pulse T and the digit signal DT, become 1), the gate of each AND circuit is opened, and the detecting result is fed to the succeeding circuit.  
  in this way, on the output side of the detector circuit D,, whether or not the unnecessary zeros are present in the respective places appears in the form of parallel binary signals. in the static indication system, they can be used as indication control signals (zero suppress signals) without any further processing. in the dynamic indication system, only the necessary indication can be effected in such way that the parallel binary zero suppress signals are transformed into series signals by means of the register R0, as will now be described, and that the transformed signals are fed into an indication control circuit.  
 5. Register R0,  
  The register R0, stores in series the detecting results of the detector circuit D,. The rear stage portion of the register R0, is fed-back to the front stage portion by the AND circuit AG The opening and closure of the feedback loop is controlled by the timing pulse T In the period in which the timing pulse T -D&#39;l, is l, the detected results of the unnecessary zeros in the respective places are simultaneously written into the flipflop circuits FF -FF Next, when the timing pulse 1&#34;,, becomes 1, the detected results are circulatively stored within the register RG Subsequently, when the timing pulse T becomes 0, the feedback loop of the register RC], is opened, and the contents of the register R6,. are reset. Then, rewriting of the detecting results becomes possible.  
  The register RG serves also as a register for arithmetic control, for example, a register for grasping the degree of progress of calculations in multiplication and division. ln this case, inputs may be fed through the front stage portion of the register RG with the gates of the AND circuits AG, AG kept closed during the calculations.  
  As described above, in accordance with the embodiment, the unnecessary zeros in the upper and lower places can be prevented from being indicated. For example, in the case previously mentioned (the case of indicating 00l0.0400), the unnecessary 05 in the upper two places and the lower two places are extinguished, and only the digits in the necessary places are displayed as 10.04. Accordingly, the power consumption in the indicating portion diminishes, and the indication becomes easy to read. This applies not only to the case where the indication is conducted with luminescent elements, but also to a case where the display is performed with an electronic typewriter.  
  Lastly, description will be made of the operation of the circuit which generates the signals to be delivered to the register R0,, that is, the digit discriminating circuit which descriminates whether or not a decimal point or a digit from i to 9 exists in each place.  
 6. Digit Discriminating Circuit Where any number is set or where a calculated result is requested, the number is stored in the form of binarycoded decimal signals in a manner to be circulated in the numeral register RN. Similarly, the decimal point signal representative of the position of the decimal point of the number is circulatively stored in the decimal point register RD.  
  For example, where the positon of the decimal point is specified at the fifth place as determined from the lowermost place and where the four-figure number l0.34 is set, the contents of the numeral register RN become 00l03400 (from the uppermost place to the lowermost one) when T &#39;DTrflTr $2 becomes 1. At this time, the contents of the decimal point register RD become 00010000 (from the uppermost place to the lowermost place).  
  The number thus stored in the numeral register RN is fed from the flip-flop circuit FF, at the second bit to the set preference flip-flop circuit FF and serially at every bit. in the flip-flop circuit FF it is discriminated whether the digit in each place is any one of the digits 1 to 9 or zero. in more detail, the flip-flop circuit FF judges if there is a l in the series binary signal of four bits within one place of the binary-coded decimal number. For example, where a series binary signal OOlO representative of a decimal number 4 is fed, the flip-flop circuit FF is set by the signal I at the second bit, and thereafter maintains the set state until it is reset by the bit signal 51&#39; Accordingly, a series binary signal iilO appears on the output side oi the flip-flop circuit FF Since the bit signal ET, is utilized as the reset signal, the state of the flip-flop circuit FF for a certain place exerts no influence on the state for the succeeding place.  
  As stated above, if the contents I exist at any bit of a determined place of a binary-coded decimal number.  
 the state of the flip-flop FF is thereafter forced into 1 irrespective of the presence or absence of l or within the same place. For example, where the number to be indicated is 0000 0100 0010, the outputs of the flip-flop FF, become 0000 l 100 l l 10. Therefore, the detection of every fourth bit of the outputs of the flipf&#39;lop FF makes it possible to discriminate if there is 1 within one place (4 bits) of the binary-coded decimal number. That is, the detection makes it possible to judge if the digit of the place is the decimal zero. Accordingly, the flip-flop circuit FF discriminates between the presence and absence of the digit 0 (or any digit from 1 to 9) at every place, and delivers the result to the 0R circuit 0G in the form of the signal 0 or 1.  
 Consequently, for example, when binary signals of eight places and 32 hits as correspond to a decimal number 00103400 are supplied from the register RN, the flip-flop circuit FF generates signals in which the contents of every fourth bit of the respective places are 00101 100.  
  On the other hand, where the decimal point is lo cated at, for example, the fifth place as determined from the lowermost place, the decimal point register RD feeds a decimal point signal 00010000 to the OR circuit 06, The decimal point signal at this time is equivalent to the digit signal DT,  
  Accordingly, a signal corresponding to the logical sum between the decimal point signal and the signal representative of whether the digit of each place is any one of the digits 1 to 9 or 0 appears on the output side of the OR circuit 06 For example, where the position of a decimal point is specified at the fifth place and where a four-figure number 10.34 is set, the outputs of the OR circuit 0G for every fourth fit of the respective places become 00111 100 which is the logical sum between 00l0l 100 and 00010000.  
  Even when a 4-input 0R circuit is prepared in lieu of the flip-flop circuit FF and has output signals of the flip-flop circuits FF, FF, applied as its inputs, it can be similarly discriminated whether or not the binary-coded signal l is contained in each decimal place (in 4 bits).  
  While We have shown and described several embodiments in accordance with the present invention, it is understood that the same is not limited thereto but is susceptible of numerous changes and modifications as known to a person skilled in the art, and We therefore do not wish to be limited to the details shown and described herein but intend to cover all such changes and modifications as are obvious to one of ordinary skill in the art.  
 What we claim is:  
 l. A zero suppression circuit comprising:  
 first means, responsive to an input signal representative of an n-digit decimal number, and having an n element memory capacity, for storing therein respective signals representative of whether a digit of said decimal number is the digit zero, and including means for storing, in one of said elements, a signal representative of the position of a decimal point in said decimal number; and  
 second means, responsive to the contents of said first means, for detecting the presence of the digit zero at those digit positions of said n digit decimal number which are unnecessary for completely representing said decimal number and comprising a first detector circuit including it gate circuits respectively coupled to the 11 memory elements of said first means, so that the outputs of the first to i-th memory elements of said first means are coupled to the i-th gate circuit of said first detector circuit,  
 5 wherein] S i S n.  
  2. A circuit according to claim 1, wherein said second means comprises a second detector circuit includ ing it gate circuits respectively coupled to the n memory elements of said first means, so that the outputs of m the nth to ith memory elements of said first means are coupled to the i-th gate circuit of said second detector circuit, where l i n.  
  3. A circuit according to claim 2, wherein said second means further includes a third detector circuit, responsive to the outputs of said first and second detector circuits, for logically combining the respective outputs of the gate circuits thereof, and for providing an output signal representative of the presence of zeros at digit positions which are unnecessary for completely representing said decimal number.  
  4. A circuit according to claim 3, further including an output register, coupled to said third detector circuit for storing the output signals therefrom in n memory element positions.  
  5. A circuit according to claim 3, wherein said first means includes a numeral register, having it storage positions, for receiving a signal representative of a decimal number and converting said received number into an n digit decimal number,  
 a decimal point register having 11 storage positions,  
 for storing the position of a decimal point in said decimal number, and  
 35 means for logically combining the contents of selected ones of the storage positions of said numeral and decimal point registers for providing an n bit signal representative of those digit positions of said 11 digit decimal number which are digits other than zero and the position in said )1 digit decimal number at which a decimal point occurs. 6. A circuit according to claim 5, further including an output register, coupled to said third detector circuit for storing the output signals therefrom in n memory 45 element positions.  
 7. A zero suppression circuit comprising:  
 first means, responsive to an input signal representative of an n digit decimal number, and having an n element memory capacity, for storing therein respective signals representative of whether a digit of said decimal number is the digit zero and including means for storing, in one of said elements, a signal representative of the position of a decimal point in said decimal number, said first means further including a numeral register, having it storage positions, for receiving a signal representative of a decimal number and converting said received number into an n digit decimal number,  
 a decimal point register having it storage positions, for storing the position of a decimal point in said decimal number, and  
 means for logically combining the contents of selected ones of the storage positions of said numeral and decimal point registers for providing an n bit signal representative of those digit positions of said n digit decimal number which are digits other than 8. A circuit according to claim 7, wherein the logically combining means of said first means comprises means for logically combining the contents of the next to least significant storage position of said numeral register with the least significant storage position of said decimal point register.  
 i i t