The article deals with the development of a parallel-sequential adder-subtractor that performs arithmetic operations of addition and subtraction of binary numbers in the format with a fixed comma with the highest digits forward. The result of performing arithmetic operations is the sum and difference of binary numbers in the direct code of eight digits. The sum and difference of numbers is calculated on neuropositive elements, the transfer to the highest digits when summing and the loan from the highest digits when subtracting is determined by the majority elements. The algorithm for adding numbers in direct codes allows you to get the result in direct code. The signed digits of numbers determine which operation should be performed on numbers using the sum modulo two operation. If the characters are the same, the result will be zero. Otherwise, the result will be one. After that, the addition or subtraction operation is selected. Summation is performed if the numbers have the same signs, the result is assigned the sign of the first number. Subtraction is performed if the numbers have different signs, the result is assigned the sign of a larger modulo number. The adder-subtracter senior digits forward on neurons contains: block input, block comparatii, the block parallel-serial addersubtracter, the unit registers a larger number, the unit of determining the transfer and loan, a unit registers a smaller number of unit registers a result, the control unit, majority, threshold and neural elements. The device can be used as an arithmetic co-processor in a computer system. It significantly speeds up calculations of both simple arithmetic operations and results of various mathematical functions.
Read full abstract