Claims
- 1. An arithmetic processor responsive to first and second multi-bit input signals respectively representing first and second data values comprising:
- a carry generation and propagation producing circuit responsive to the first and second input signals for combining the first and second input signals so (a) a signal representing a first carry bit for each bit of the first and second input signals is derived in response to subtraction of the second input signal representing the second data value from the first input signal representing the first data value, (b) the second input signal representing the second data value and a signal representing a "1" value are summed to derive a sum signal and the sum signal is subtracted from the first signal representing the first data value to generate a signal representing a second carry bit for each bit of the first and second input signals in response to the signal representing the subtraction of the sum of the second input signal second data value and the signal representing the "1" value from the first input signal representing the first data value and (c) a signal indicative of a bit representing the exclusive OR sum of every pair of corresponding bits of the first and second input signals respectively representing the first and second data values is derived as an interim sum value;
- a first difference generating circuit responsive to signals representing bits derived by the carry generation and propagation producing circuit for obtaining a first output signal commensurate with first difference data values as a result of a combination of the first and second input signals and further signals representing the subtraction between the first and second data values from the first carry bit and the interim sum value:
- a second difference generating circuit responsive to signals representing bits derived by the carry generation and propagation producing circuit for obtaining a second output signal commensurate with a second difference data value as a result of a combination of the first and second input signals and additional signals representing the subtraction between the first data value and the sum of the second data value and "1" from the second carry bit and the interim sum;
- an inverter circuit responsive to the second output signal for obtaining a signal representing an inversion data value by inverting the value at every bit of the second difference data value and for outputting the inversion data value as a third output signal; and
- a selecting circuit responsive to the first and third output signals for selecting only one of the first difference data value and the inversion data value and for outputting the selected data value as a fourth output signal.
- 2. The arithmetic processor according to claim 1, wherein the carry generation and propagation producing circuit comprises a common circuit for (a) generating the signal representing the first carry by using a carry generation function and a carry propagation function which are required for generating the first carry and (b) generating the signal representing the second carry by using a carry generation function and a carry propagation function which are required for generating the second carry.
- 3. The arithmetic processor of claim 1 wherein the first difference generating circuit derives an overflow output signal indicating whether the result of the subtraction of the first difference generating circuit is positive or negative, the selecting circuit being responsive to said overflow output signal of the first difference generating circuit for selecting the signal representing the result of the subtraction of the first difference generating circuit in response to the overflow output signal indicating the result of the subtraction of the first difference generating circuit is a signal representing a positive value and for selecting the inverted output signal of the inverting circuit in response to the overflow output signal indicating the result of the subtraction of the first difference generating circuit is a signal representing a negative value.
- 4. An arithmetic processor responsive to first and second multi-bit input signals respectively representing first and second data values comprising:
- a carry generation and propagation producing circuit responsive to the first and second multi-bit input signals for (a) combining the first and second input signals to represent a subtraction of the second data value from the first data value and for generating a signal representing a first carry at each bit of the first and second input signals in response to a combination of the first and second input signals representing the subtraction of the second data value from the first data value, (b) combining the first and second input signals and other signals to derive a signal representing a subtraction of the sum of the second data value and "1" from the first data value and for generating a signal representing a second carry bit at each bit of the first and second input signals in response to a combination of the first and second input signals and further signals representing the subtraction of the sum of the second data value and a "1" value from the first data value and (c) obtaining a signal representing an exclusive OR bit for every pair of corresponding bits of the first and second data values as an interim sum value;
- a first difference generating circuit responsive to a first output signal of the carry generation and propagation producing circuit commensurate with the subtraction between the first and second data values from the first carry bit and the signal representing the interim sum value for obtaining a second output signal commensurate with first difference data values as a result of the subtraction between the first and second input signals representing the first and second data values from the signal representing the first carry bit and the signal representing the interim sum value;
- a second difference generating circuit responsive to another output signal of the carry generation and propagation producing circuit commensurate with a combination of the first and second input signals representing the result of the subtraction between the first data value and the sum of the second data value and the signal representing the "1" value from the signal representing the second carry bit and the signal representing the interim sum value for obtaining a signal representing second difference data as a result of a combination of the first and second input signals and other signals representing the subtraction between the first data value and the sum of the second data value and the "1" value from the second carry bit and the interim sum value, and for obtaining a third output signal commensurate with inversion data by inverting the signal value at every bit of the signal representing the second difference data value and for outputting the inversion data; and
- a selecting circuit responsive to the output signals commensurate with the first difference data value and the inversion data for selecting one of the first difference data value and the inversion data value and for outputting a signal representing the selected data value.
- 5. The arithmetic processor according to claim 4, wherein the carry generation and propagation producing circuit comprises a common circuit for (a) generating the signal representing the first carry by using a carry generation function and a carry propagation function which are required for generating the first carry and (b) generating the signal representing the second carry by using a carry generation function and a carry propagation function which are required for generating the second carry.
- 6. The arithmetic processor of claim 4 wherein the first difference generating circuit derives an overflow output signal indicating whether the result of the subtraction of the first difference generating circuit is positive or negative, the selecting circuit being responsive to said overflow output signal of the first difference generating circuit for selecting the result of the subtraction of the first difference generating circuit in response to the overflow output signal indicating the result of the subtraction of the first difference generating circuit is a signal representing a positive value and for selecting the inversion data in response to the overflow output signal indicating the result of the subtraction of the first difference generating circuit is a signal representing a negative value.
- 7. An arithmetic processor responsive to first and second multi-bit input signals respectively representing first and second data values comprising:
- a carry generation and propagation producing means responsive to the first and second input signals for combining the first and second input signals so (a) a first carry bit for each bit of the first and second input signals is derived in response to subtraction of the second data value from the first data value, (b) the second data value and a "1" value are summed and the sum is subtracted from the first data value to generate a second carry bit for each bit of the first and second input signals in response to the subtraction of the sum of the second data value and the "1" value from the first data value and (c) a bit representing the exclusive OR sum of every pair of corresponding bits of the first and second data values is derived as an interim sum value;
- a first difference generating means responsive to bits derived by the carry generation and propagation producing means for obtaining a first output signal commensurate with first difference data values as a result of the subtraction between the first and second data values from the first carry bit and the interim sum value;
- a second difference generating means responsive to bits derived by the carry generation and propagation producing means for obtaining a second output signal commensurate with a second difference data value as a result of the subtraction between the first data value and the sum of the second data value and "1" from the second carry bit and the interim sum;
- an inverting means responsive to the second output signal for obtaining an inversion data value by inverting the value at every bit of the second difference data value and for outputting the inversion data value as a third output signal; and
- a selecting means responsive to the first and third output signals for selecting only one of the first difference data value and the inversion data value and for outputting the selected data value, the carry generation and propagation producing means including first and second input ports respectively and simultaneously responsive to the first and second input signals, the first difference generating means including third input ports to which are coupled bits derived by the carry generation and propagation producing means and a third output port on which the first output signal is derived, the second difference generating means including fourth input ports to which are coupled bits derived by the carry generation and propagation producing means and a fourth output port on which the second output signal is derived, the inverting means including a multi-bit fifth input port to which the bits of the signal output signal are applied and a fifth output port on which the third output signal is derived, the selecting means including sixth and seventh input ports to which the first and third output signals are respectively supplied.
- 8. An arithmetic processor responsive to first and second multi-bit input signals respectively representing first and second data values comprising:
- a carry generation and propagation producing means responsive to the first and second multi-bit input signals for (a) subtracting the second data value from the first data value and for generating a first carry at each bit of the first and second input signals in response to the subtraction of the second data value from the first data value, (b) subtracting the sum of the second data value and "1" from the first data value and for generating a second carry bit at each bit of the signals in response to the subtraction of the sum of the second data value and a "1" value from the first data value and (c) obtaining an exclusive OR bit for every pair of corresponding bits of the first and second data values as an interim sum value;
- a first difference generating means responsive to a first output signal of the carry generation and propagation producing means commensurate with the subtraction between the first and second data values from the first carry bit and the interim sum value for obtaining a second output signal commensurate with first difference data values as a result of the subtraction between the first and second data values from the first carry bit and the interim sum value;
- a second difference generating means responsive to another output signal of the carry generation and propagation producing means commensurate with the result of the subtraction between the first data value and the sum of the second data value and the "1" value from the second carry bit and the interim sum value for obtaining second difference data as a result of the subtraction between the first data value and the sum of the second data value and the "1" value from the second carry bit and the interim sum value, and for obtaining a third output signal commensurate with inversion data by inverting the value at every bit of the second difference data value and for outputting the inversion data; and
- a selecting means responsive to the output signals commensurate with the first difference data value and the inversion data for selecting one of the first difference data value and the inversion data value and for outputting the selected data value, the carry generation and propagation producing means including first and second input ports to which the first and second input signals are respectively supplied and first and second output ports on which are respectively derived the first and another output signals, the first difference generating means includes a third input port coupled with the first output ports to be responsive to the first output signal and a third output port on which is derived the second output signal, the second difference generating means including a fourth input port coupled with the third output port to be responsive to the another output signal and a fourth output port on which is derived the third output signal, the selecting means including fifth and sixth input ports responsive to the output signals commensurate with the first difference data and the inversion data.
Priority Claims (1)
| Number |
Date |
Country |
Kind |
| 63-68600 |
Mar 1988 |
JPX |
|
Parent Case Info
This application is a division of application Ser. No. 07/327,656 filed Mar. 23, 1989 now U.S. Pat. No. 5,122,981.
US Referenced Citations (13)
Foreign Referenced Citations (1)
| Number |
Date |
Country |
| 0020833 |
Feb 1978 |
JPX |
Divisions (1)
|
Number |
Date |
Country |
| Parent |
327656 |
Mar 1989 |
|