SU824203A1 - Device for adding n-digit decimal numbers - Google Patents

Device for adding n-digit decimal numbers Download PDF

Info

Publication number
SU824203A1
SU824203A1 SU792807633A SU2807633A SU824203A1 SU 824203 A1 SU824203 A1 SU 824203A1 SU 792807633 A SU792807633 A SU 792807633A SU 2807633 A SU2807633 A SU 2807633A SU 824203 A1 SU824203 A1 SU 824203A1
Authority
SU
USSR - Soviet Union
Prior art keywords
input
decade
transfer
bit
adder
Prior art date
Application number
SU792807633A
Other languages
Russian (ru)
Inventor
Юрий Михайлович Баженов
Виталий Владимирович Роздобара
Георгий Вальтерович Кремез
Original Assignee
Военный Инженерный Краснознаменный Инсти-Тут Имени A.Ф.Можайского
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Военный Инженерный Краснознаменный Инсти-Тут Имени A.Ф.Можайского filed Critical Военный Инженерный Краснознаменный Инсти-Тут Имени A.Ф.Можайского
Priority to SU792807633A priority Critical patent/SU824203A1/en
Application granted granted Critical
Publication of SU824203A1 publication Critical patent/SU824203A1/en

Links

Landscapes

  • Complex Calculations (AREA)

Description

1one

Изобретение относитс  к автомати ке и вычислительной техни-ке и может быть использовано в специализированных вычислительных машинах.The invention relates to automation and computer technology and can be used in specialized computers.

Известно устройство дл  сложени  дес тичных чисел, содержащее п-последовательно соединенных в кольцо шинами переноса двоично-дес тичных декад сумматоров, D-триггеров, элементов ИЛН, элементов И, элементов задержки l.A device for adding decimal numbers is known, which contains n-series circularly connected tires for transferring binary decimal decades of adders, D-flip-flops, LII elements, And elements, delay elements l.

Одйако в известном устройстве при суммировании двух дес тичных цифр, сумма которых больше дес ти, полученный в декаде код необходимо корректировать прибавлением к нему числа иесть. Это ведет к усложнению управлени  работой сумматора, к уменьшению его быстродействи . Кроме того , в декадах таких сумматоров используетс  двоична  система счислени , обладающа  нулевой ошибкообнаруживающей способностью.However, in the known device, when summing two decimal digits, the sum of which is more than ten, the code obtained in the decade must be corrected by adding to it the number and there. This leads to the complication of control of the operation of the adder, to a decrease in its speed. In addition, in the decades of such adders, a binary number system with zero error-detecting ability is used.

Наиболее близким к предлагаемому по технической сущности  вл етс  уст ройство дл  сложени  дес тичных чисел , в котором количество тактов Коррекции результата суммировани The closest to the proposed technical entity is a device for adding decimal numbers, in which the number of ticks of the correction of the summation result

авно единице 2.Avno unit 2.

Недостатками устройства  вл ютс  необходимость коррекции результата и использование в дёксщах кода ошибкообнаруживающё  способности.,The drawbacks of the device are the need to correct the result and use the error-detecting ability in code dex.,

Цель изобретени  - упрощение устройства суммировани  дес тичных чисел , повышение надежности его работы .The purpose of the invention is to simplify the device for summing decimal numbers, increasing the reliability of its operation.

Поставленна  цель достигаетс  The goal is achieved

0 тем, что в устройстве дл  сложени  п-разр дных дес тичных чисел, каждый i-й разр д которого содержит ( ,2,3, ...,п) четыре трехвходовых одноразр дных двоичных сумматора, 5 первый и второй входы koтopыx под-/ ключены соответственно к входам i-го разр да первого и второго операндов, а выходы сумматора подключены к вы- . ходам i-ro разр да устройства, при0 чем, выход переноса первого.трехвходового одноразр дного двоичного сумматора i-ro разр да соединен с третьим входом второго трехвходового одноразр дного двоичного сумматора 0 in that the device for adding n-bit decimal numbers, each i-th bit of which contains (, 2,3, ..., p) four three-input single-digit binary adders, 5 the first and second inputs of the matrices - / are connected respectively to the inputs of the i-th bit of the first and second operands, and the outputs of the adder are connected to you-. to the i-ro moves of the device, with a 0, transfer output of the first three-input single-bit binary adder i-ro discharge is connected to the third input of the second three-input single-bit binary adder

5 i-ro разр да, выход переноса которого подключен к третьему входу третьего трехвхсдового oднopc,зp днoгo двоичного сумматора i-ro разр да, выход переноса которого соединен с третьим 5 i-ro bit, the transfer output of which is connected to the third input of the third three-level single bit, from the bottom of the binary adder i-ro bit, the transfer output of which is connected to the third

Claims (3)

0 входом четвертого трехвходового однораэр дного двоичного сумматора -го разр да, выход переноса которо го подключен к выходу переноса i-ro разр да в (i+l)-ft разр д устройства содержит в каждом i-ом разр де элемент ИЛИ, выход которого подключен третьему входу первого трехвходовог одноразр дного двоичного сумматора i-ro разр да, а первый и второй вхо ды элемента ИЛИ подключены к выходам переноса соответственно второго и третьего трехвходовых одноразр дных двоичных сумматоров i-ro разр да В декадах сумматора дл  представлени  дес тичных цифр используютс  фибоначиевые коды. Веса разр дов в декадах соответственно равны 1,2,3 и 5, причем .младших разр д каждой де кады соответствует разр ду с весом дл  предыдущей декады. Дес тичные цифры в такой системе счислени  имеют вид, представленный в таблице. I При представлении используют нормальную форму чисел в фибоначиевой системе счислени : единица заноситс  в раз-р д, вес которого максимально близок (но не больше) к числу, затем то же осуществл ют дл  разности между числом и избранным весом и так далее З. , Из табл. 1 видно, что в первых трех разр дах немогут сто ть подр д две единицы, это свойство используетс  .дл  контрол  отсутстви  искаженной информации. Наибольшее число, которое можно представить с помощью нормешьной формы в одной декаде 9, поэтому пере нос из одной декады в другую соответ ствует дес тичному переносу между ра р дами, т.е. исключаетс  коррекци  результатов сложени  в декгщах. Применение фибоначиевой системы счислени  измен ет правила сложени  кодов в разр дах декад. Сложение разр дов с весом 1 осуществл етс  по правилу 0 + 0 0. 0+ 1 1 1+ 1 О и формируетс  перенос в разр д с весом 2. Сложение разр дов с весом 2 осуществл етс  ио .указанному правилу и формируютс  переносы в разр ды с весами 1 и 3. Сложение разр дов с весами 3 и 5 осуществл етс  по указанному правилу и форглируютс  соответственно переносы в разр ды с весами 1 и 5 и 10 (в следующую дека.цу). На чертеже приведена функциональна  схема одной декады устройства, состо ща  из четырех трехвходовых одноразр дных двоичных сумматоров 1-4 и элемента ИЛИ 5. Одноразр дные сумматоры 1-4 представл ют собой обычные в классической двоичной арифметике сумматоры, которые соответствуют разр дам с весами 1, 2, 3 и 5 и соединены между собой цеп ми переносов на основании правил суммировани  в разр дах декады, т.е. перенос Р1 подаетс  на вход сумматора 2, перенос Р2 - на вход сумматора 3 и через элемент ИЛИ на вход сумматора 1, перенос РЗ - на вход сумматора 4 и через элемент ИЛИ на вход сумматора 1, Р4 - перенос в следующую декаду. Элемент ИЛИ 5 введен дл  того, чтобы сумматор 1 имел три входа. Он не искажает результата суммировани , так как одновременно.переносы Р2 и РЗ возникнуть не могут вследствие того , что на выходы подаютс  коды в нормальной форме, т.е. наличие единиц во втором, третьем разр дах декады одновременно невозможно. На схеме не показаны входы установки нул . Устройство работает следу ощим образом . Одновременно на входы декады устройства поступают суммируемые дес тичные цифры А и В в нормальной форме системы Фйбоначи, формируютс  переносы и перва  промежуточна  сумма, затем осуществл етс  подсуммирование переносов, образование второй.промежуточной суммы и новых переносов и так до тех пор, пока не прекратитс  образование переносов и на выходах сумматоров, 1-4 не образуетс  код суммы . Если код суммы получитс  в нормализованной форме, то в дальнейшем этот код должен переписыватьс  на норнормализатор , где с помощью операции свертки происходит нормализаци  кода результата. Пример суммировани  9 + 9 18. Перва  промежуточна  сумма 0000 Возникшие переносы Перенос в старшую екаду Код суммы од суммы после (ормализации При наличии переноса в данную декаду из млсшшей нужно выполнить еще одно сложение нормализованного кода суммы в данной декаде с этой единицей переноса. Таким образом, в отличие от известных ранее двоично-дес тичных сумматоров в устройстве исклю чаэтс  коррекци . В устройстве упрлчаетс  схема узла сум1.1ировани  дес тичных чисел исключаетс  аппаратура дл  коррекции и управлени  ею, соответственно повышаетс  надежность работы узла, кроме того, упрощаетс  его контроль за. счет ошибкообнаруживающей способ ности фибоначиевой системы счислени  так как нет необходимости вводить до полнительные разр ды, как в случае контрол  по четности (нечетности). Формула изобретени  Устройство дл  сложени  п-разр дных дес тичных чисел, каждый i-и раз р д которого содержит (,2,3,..., п) четыре трехвходоьых одноразр дных двоичных су-мматора, первый и то рой входы которых подключены соответ ственно к входам i-ro разр да первого и второго операндов, а выходы сум мы подключены к выходам i-ro разр да устройства, причем выход переноса перв го трехвходового одноразр дного двоичного сумматора i-ro разр да соединен с третьим входом второго трехвходового одноразр дного двоичного сумматора i-ro разр да, выход переноса которого подключен к третьему входу третьего трехвходового одноразр дного двоичного сумматора i-ro разр да, выход переноса которого соединен с третьим входом четвертого трехвхюдового одноразр дового двоичного сумматора i-ro разр да выход переноса которого подключен к выходу переноса i-ro разр да в (i+l)-й разр д устройства , отличающеес  тем, что, с целью упрощени  устройства, оно содержит в каждом I-ом разр де элемент ИЛИ, выход которого подключен к третьему входу первого трехвходового одноразр дного двоичного сумматора -го разр да, а первый и второй входы элемента ИЛИ подключены к выходам переноса соответственно второго и третьего трехвходовых одноразр дных двоичных сумматоров i-ro разр да . Источники информации, прин тые во внимание при экспертизе 1.Патент Японии 52-38367, кл. G Об F 7/385, 1977. 0 by the input of the fourth three-input single-bit single binary adder of the ith bit, the transfer output of which is connected to the transfer output of the i-bit bit in the (i + l) -ft bit of the device contains in each i-th bit the OR element, the output of which connected to the third input of the first three-input single-bit binary adder i-ro digit, and the first and second inputs of the OR element are connected to the transfer outputs of the second and third three-input single-digit binary respectively adders of the i-ro digit In the decades of the adder to represent the decimal digits Fibonacci codes are used. The weights of the bits in the decades are respectively 1, 2, 3 and 5, with the lowest bits of each decade corresponding to the weight of the previous decade. The decimal digits in such a number system have the form presented in the table. I In the presentation, the normal form of the numbers in the Fibonacci number system is used: the unit is entered in a division, the weight of which is as close as possible (but not more) to the number, then the same is done for the difference between the number and the selected weight, and so on From tab. 1, it can be seen that in the first three bits it can not be worth another two units, this property is used to control the absence of distorted information. The largest number that can be represented using the normal form in one decade 9, therefore, the transfer from one decade to another corresponds to a ten-fold transfer between rows, i.e. Correction of the results of the addition in decals is eliminated. The use of the fibonacci number system changes the rules for the addition of codes in the decade bits. The addition of bits with a weight of 1 is carried out according to the rule 0 + 0 0. 0+ 1 1 1+ 1 O and a transfer is formed to the discharge with a weight of 2. The addition of bits with a weight of 2 is carried out according to the indicated rule and the transfers to the discharge Weights with weights 1 and 3. The addition of weights with weights 3 and 5 is carried out according to the indicated rule and, respectively, transfers are carried out into bits with weights 1 and 5 and 10 (in the next decade). The drawing shows a functional diagram of one decade of the device, consisting of four three-input single-bit binary adders 1-4 and an element OR 5. Single-bit adders 1-4 are common adders in classical binary arithmetic that correspond to bits with weights 1, 2, 3, and 5 and are interconnected by chains of transfers based on the summation rules in decade bits, i.e. the transfer P1 is fed to the input of the adder 2, the transfer of P2 to the input of the adder 3 and through the OR element to the input of the adder 1, the transfer of PZ to the input of the adder 4 and through the OR element to the input of the adder 1, P4 to the next decade. The element OR 5 is entered so that adder 1 has three inputs. It does not distort the result of the summation, since at the same time the transfers of P2 and P3 cannot arise due to the fact that the outputs are given codes in normal form, i.e. the presence of units in the second and third decade is simultaneously impossible. The diagram does not show the installation inputs zero. The device works in the following way. At the same time, the decade inputs A and B in the normal form of the Fibonacci system arrive at the inputs of the decade of the device, transfers and the first intermediate sum are formed, then the transfers are summed up, the second intermediate sum and new transfers are formed, and so on until the formation transfers and at the outputs of adders, 1-4, no sum code is formed. If the sum code is obtained in normalized form, then this code should be rewritten to the normalizer, where the result code is normalized using the convolution operation. Summation example 9 + 9 18. The first intermediate amount is 0000 The emerged carry-overs Transfer to the senior decade Amount code one amount after (normalization If there is a transfer to this decade from last week, you need to perform one more addition of the normalized amount code in this decade with this transfer unit. Thus In contrast to the previously known binary-decimal adders, the device eliminates correction in the device. The device controls the scheme of the node of the sum of decimal numbers and eliminates the equipment for correction and control, respectively the reliability of operation of the node is enhanced, in addition, its control for the fibonacci number system is simplified because there is no need to add extra bits, as in the case of parity (odd parity) checking. Invention formula A device for adding n-digits tal numbers, each i- and the number of which contains (, 2,3, ..., p) four three-input single-digit binary sumators, the first and the other inputs of which are connected respectively to the inputs of the i-ro digit of the first and second operands, and outputs are su We are connected to the i-ro outputs of the device, and the transfer output of the first three-input single-digit binary adder i-ro discharge is connected to the third input of the second three-input single-digit binary adder i-ro discharge, the transfer output of which is connected to the third input of the third three-input one-bit binary i-ro adder, the transfer output of which is connected to the third input of the fourth three-output one-bit binary i-ro binary discharge output of which is connected to the transfer output ir o bit in the (i + l) th bit of the device, characterized in that, in order to simplify the device, it contains in each I-th bit of the element OR, the output of which is connected to the third input of the first three-input single-bit binary adder - the first and second inputs of the OR element are connected to the transfer outputs of the second and third three-input single-digit binary adders of the i-th digit, respectively. Sources of information taken into account in the examination 1. Japanese Patent 52-38367, cl. G About F 7/385, 1977. 2.Авторское свидетельство СССР № 488206, кл. G 06 F 7/385, 1975. 2. USSR author's certificate number 488206, cl. G 06 F 7/385, 1975. 3.Стахов А.П. Введение в алгоритмическую теорию измерени . М., Советское радио, 1977, с. 105-123.3. Stakhov A.P. Introduction to algorithmic measurement theory. M., Soviet Radio, 1977, p. 105-123. from I VI v А МA m лl
SU792807633A 1979-06-19 1979-06-19 Device for adding n-digit decimal numbers SU824203A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU792807633A SU824203A1 (en) 1979-06-19 1979-06-19 Device for adding n-digit decimal numbers

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU792807633A SU824203A1 (en) 1979-06-19 1979-06-19 Device for adding n-digit decimal numbers

Publications (1)

Publication Number Publication Date
SU824203A1 true SU824203A1 (en) 1981-04-23

Family

ID=20845463

Family Applications (1)

Application Number Title Priority Date Filing Date
SU792807633A SU824203A1 (en) 1979-06-19 1979-06-19 Device for adding n-digit decimal numbers

Country Status (1)

Country Link
SU (1) SU824203A1 (en)

Similar Documents

Publication Publication Date Title
Er On generating the N-ary reflected Gray codes
EP0375947A2 (en) Two's complement multiplication with a sign magnitude multiplier
Agrawal et al. On modulo (2 n+ 1) arithmetic logic
JPS5829539B2 (en) arithmetic unit
EP0416869B1 (en) Digital adder/accumulator
US4805131A (en) BCD adder circuit
SU824203A1 (en) Device for adding n-digit decimal numbers
US6546411B1 (en) High-speed radix 100 parallel adder
US4118786A (en) Integrated binary-BCD look-ahead adder
US4190894A (en) High speed parallel multiplication apparatus with single-step summand reduction
JP2578482B2 (en) Floating point arithmetic unit
US3251983A (en) Means for readily doubling or halving contents of register stages
SU900282A1 (en) Device for adding n-bit decimal numbers
GB1476603A (en) Digital multipliers
SU1315970A1 (en) Multiplying device
RU2148270C1 (en) Device for multiplication
SU1179322A1 (en) Device for multiplying two numbers
SU734678A1 (en) Number adding device
SU1689946A1 (en) Multiplier
SU1229757A1 (en) Multiplying device
SU1401453A1 (en) Counter-type adder
SU720757A1 (en) Decoder
SU703817A1 (en) Monitored parallel adder
SU1305664A1 (en) Binary-coded decimal adder
SU741271A1 (en) Trigonometric function computing device