Addition and subtraction of integers in codes operands with negative zero

DOI:10.31673/2412-4338.2020.029099

Authors

  • О. В. Самощенко, (Samoshchenko O. V.) State University of Telecommunications, Kyiv
  • О. А. Золотухіна, (Zolotukhina O. A.) State University of Telecommunications, Kyiv

Abstract

Code on the outputs of adder binary numbers described as the remainder of the sum the initial data on the adder module is equal to output carry weight. An original technique for synthesizing a way of operands representation in the addition and subtraction schemes of integers in a code with a negative zero was developed, which is based on the representation the source data in the form a remainder on the adder module. A method of computer representation for integer numbers is proposed, in which the codes of posi-tive and negative numbers are formed by the same procedure. The property of duality the addition and sub-traction operations on the initial data in the code with a negative zero have justified analytically. Areas of allowable results values for the correct input data addition and subtraction operations are determined. It is identified combination of the adder output signals, which determine the presence and polarity the adder bit grid overflow. It is shown that designed fixing scheme bit grid overflow of adder outputs invariant with re-spect to operations of addition and subtraction of source data with a negative zero code. For the analytical description of arithmetic operations on integer numbers represented with the proposed encoding method, a technique of calculating the sum and difference of numbers using the biased supplementary code has been proposed. Analytically substantiated, that the technique makes the scheme of the operational adder homoge-neous. The rules for establishing the correctness of the addition and subtraction operations of the integers given in the proposed encoding form are given. For true values of the initial arguments, the sums and the differences codes ranges are obtained, and the rules for positive and negative overflows identification are proposed. The original usage of a common numerical bias during the operands encoding, that evinces itself in the advantages of basic computer operations technical implementation, predetermines positive properties in practical implementations of more complex arithmetical actions.

Keywords: adder binary numbers, code with negative zero, the remainder modulo, signs of overflow, code inverse.

References
1. Patterson, David A. Computer organization and design: the hardware/software interface / David A. Patterson, John L. Hennessy. - 5th ed. (The Morgan Kaufmann series in computer archi-tecture and design) (2014).
2. Stallings, William. (2016) Computer organization and architecture : designing for perfor-mance / William Stallings. - 10th ed. (Pearson Education, Inc., Hoboken, NJ 07030). 864 p.
3. Intel® 64 and IA-32 Architectures Software Developer’s Manual. - Order Number: 325462-067US, May 2018.
4. Anderson, S., et al. “The IBM System/360 Model 91: Floating-Point Execution Unit.” IBM Journal of Research and Development, January 1967. Reprinted in [SWAR90,Volume 1].
5. Mary Payne and Dileep Bhandarkar. "VAX Floating Point: A Solid Foundation For Numer-ical Computation" Digital Equipment Corporation 146 Main Street Maynard, Massachusetts 01754. Prepared for and presented at Electro/80, May 14, Boston, Massachusetts.
6. Lapko, V. V. (2017) Synthesis and mathematical modeling of addition and subtraction schemes of integers in the codes with positive zero [Syntez ta matematychne modeljuvannja skhem dodavannja ta vidnimannja cilykh chysel v kodakh z dodatnym nulem] / V. V. Lapko, A. V. Samoshchenko, H. E. Marhiev // Scientific papers of Donetsk National Technical University. Series “Informatics, cybernetics and computational technics”. Issue 1 (24), Pokrovsk, DonNTU, P. 12–21. ISSN: 1996-1588.
7. Samoshchenko, O. V. (2018) Synthesis and research of addition and subtraction circuits for negative zero coded integers [Syntez ta doslidzhennja skhem dodavannja ta vidnimannja cilykh chysel v systemi z vid'jemnym nulem] / O. V. Samoshchenko, O. M. Miroshkin, H. E. Marhiev // Scientific papers of Donetsk National Technical University. Series “Informatics, cybernetics and computational technics”. Issue 1 (26), Pokrovsk, DonNTU, P. 91–100. ISSN: 1996-1588.
8. 754-2008 - IEEE Standard for Floating-Point Arithmetic. Revision of ANSI/IEEE Std 754-1985 // [ieeexplore.ieee.org], 2008 ISBN 978-0-7381-5752-8, doi:10.1109/ IEE-ESTD.2008.4610935.
9. Sviyatny, V. A. (2016) Mathematical description of computer operations of summation and subtraction of integers with offset operand codes [Matematicheskoye opisaniye komp'yuternykh operatsiy summirovaniya i vychitaniya tselykh chisel pri smeshchennykh kodakh operandov] / V. A. Sviyatny, V. V. Lapko, A. V. Samoschenko // Naukovi pratsi DonNTU: Informatyka, Kyber-netyka ta obchysliuvalna teknika, №1 (22), Donetsk National Technical University, Krasnoarmiysk, P. 75-83. ISSN: 1996-1588.
10. Kagan B. M. (1991) Digital computers and systems [Electonnyye vychislitel'nyye mashiny i sistemy], Energoatomizdat, Moscow, 680 p.
11. Cragon, H. G. (2000) Computer Architecture and Implementation. University of Texas at Austin, Cambridge University Press.

Published

2021-04-02

Issue

Section

Articles