Circuit arrangement for adding or subtracting operands coded in BCD-code or binary-code
AssigneeSiemens Aktiengesellschaft
InventorsHorst Fischer, Wolfgang Rohsaint
Life of this patent
Estimating the term…
Loading patent…
AssigneeSiemens Aktiengesellschaft
InventorsHorst Fischer, Wolfgang Rohsaint
Estimating the term…
It is possible to add or subtract operands coded in binary coded decimal (BCD) code or in the binary code with the circuit arrangement upon employment of a single binary adder. In order to enable BCD operations, the BCD operations are supplied to the binary adder (DA) via input stages (EG1, EG2). The one input stage (EG1) inverts the allocated operand (A) when this operand has a minus sign. The other input stage (EG2) edits the allocated operand (B) such that, given positive operands, (A, B), the number 6 is added to the allocated operand (B) and the result is inverted given negative operands (A, B). Given operands in the binary code, the allocated operands are inverted when they are provided with a minus sign; otherwise, they are not influenced. After the operation of the edited operands (X, Y) in the binary adder (DA), a correction of the sum result (S) can be required given BCD operation. This is the case when a carry signal (C) in the binary operation in the binary adder (DA) has appeared at the most significant place of the sum result. In this case the number 6 is subtracted from the sum result (S) in an output stage (AGS). This leads to the corrected sum (R). Upon employment of a single binary adder, it is possible to add and to subtract BCD numbers and binary numbers with the circuit arrangement.
A circuit arrangement for adding or subtracting 4-bit first and second operands coded in one of binary coded decimal or binary code upon employment of a binary adder, comprising:
Dependencies are inferred from the claim text.