摘要 |
PURPOSE:To realize a high-speed subtraction with just a pass through an adding circuit, by using a comparator for a subtracting process of two numbers showing the binary numbers. CONSTITUTION:A binary number A comprising A0, A1-AN is compared with a binary number B comprising B0, B1-BN. In this case, the output of a comparator is set at level ''0'' and ''1'' with A<B and A>B, respectively. In the case of A>B, a carry input CIN is at ''1'', and accordingly, the output S of an adding circuit is denoted by S=A+B'+1. Since the output of an inverter INV is at ''0'', the subtraction value D is denoted by D=S. Then the output S goes to S=A+B' because the input CIN is at ''0'' in A<B. At the same time, D=S' is satisfied since the output of the INV is at ''1''. |