SU1315970A1 - Multiplying device - Google Patents

Multiplying device Download PDF

Info

Publication number
SU1315970A1
SU1315970A1 SU853990822A SU3990822A SU1315970A1 SU 1315970 A1 SU1315970 A1 SU 1315970A1 SU 853990822 A SU853990822 A SU 853990822A SU 3990822 A SU3990822 A SU 3990822A SU 1315970 A1 SU1315970 A1 SU 1315970A1
Authority
SU
USSR - Soviet Union
Prior art keywords
multiplier
input
output
adder
information input
Prior art date
Application number
SU853990822A
Other languages
Russian (ru)
Inventor
Анатолий Николаевич Шейк-Сейкин
Владимир Федорович Перминов
Original Assignee
Одесский Политехнический Институт
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 Одесский Политехнический Институт filed Critical Одесский Политехнический Институт
Priority to SU853990822A priority Critical patent/SU1315970A1/en
Application granted granted Critical
Publication of SU1315970A1 publication Critical patent/SU1315970A1/en

Links

Landscapes

  • Complex Calculations (AREA)

Abstract

Устройство дл  умножени  двоичных чисел, представленных в дополнительном коде, может быть использова/2 « lit 15 пГ 2 17 но в цифровых вычислительных и измерительных системах.Устройство содержит четыре табличных умножител  1-4 и семь сумматоров 5-11, причем 12, 13, 14 - входы соответственно младших , старших и знакового разр дов второго сомножител , а 15, 16, 17 - входы соответствующих разр дов первого сомножител , 18-21 - выходы устройства . За счет совмещени  операции вычислени  «частичных произведений с предварительной частичной коррекцией результата в табличных умножител х удалось уменьшить аппаратурные затраты устройства. 1 ил. 18 (Л СО Ю 20 ел QD И 21A device for multiplying binary numbers presented in the additional code can be used / 2 "lit 15 pg 2 17 but in digital computing and measurement systems. The device contains four tabular multipliers 1-4 and seven adders 5-11, and 12, 13, 14 — the inputs of the younger, senior, and sign bits of the second factor, respectively; 15, 16, 17 — the inputs of the corresponding bits of the first factor, 18–21 — the device outputs. By combining the computational operation of the “partial products” with the preliminary partial correction of the result in tabular multipliers, it was possible to reduce the hardware costs of the device. 1 il. 18 (L SO YU 20 ate QD I 21

Description

11eleven

Изобретение относитс  к вычислительной технике и может быть использовано в .цифровых вычислительных и измерительных системах.The invention relates to computing and can be used in digital computing and measuring systems.

Цель изобретени  - уменьшение аппаратурных затрат.The purpose of the invention is to reduce hardware costs.

На чертеже представлена функциональна  схема устройства.The drawing shows the functional diagram of the device.

Устройство содержит первый 1, четвертый 2, второй 3 и третий 4 табличные умножители, семь сумматоров 5-11, входы 12-14 младших, старших и знакового .разр д ов второго сомножител , входы 15-17 младших, старших и знакового разр дов первого сомножител , выходы 18 и 19 первых и вторых младших разр дов произведени , выходы 20 и 21 первых и вторых старших разр дов произведени .The device contains the first 1, the fourth 2, the second 3 and the third 4 tabular multipliers, seven adders 5-11, the inputs 12-14 junior, senior and sign bits of the second factor, the inputs 15-17 junior, senior and sign bits of the first multiplier, outputs 18 and 19 of the first and second low-order digits of the product, outputs 20 and 21 of the first and second high-order bits of the product.

Кодирование функциональных преобразователей при п-разр дных входных числах А и В, при разбиении каждого из них на две части (,, А.; В,), где разр дность частей А, В, -п; Aj, Bj-nj осуществл етс  по следующим формулам:Coding of functional converters with n-bit input numbers A and B, by dividing each of them into two parts (A, B,), where the bits of A, B, -n; Aj, Bj-nj is carried out according to the following formulas:

.Bj, (mod ); (1) Bj+Ef,- ;.Bj, (mod); (1) Bj + Ef, -;

Z A B +bn-AI-2 , (mod 2); (2) Z,A,- В,+а„-В,,-A,-2 . ,(3)Z A B + bn-AI-2, (mod 2); (2) Z, A, - B, + a „-B ,, - A, -2. , (3)

Окончательный результат произведени , реализуемый устройством, вычисл етс  по формулеThe final result of the work realized by the device is calculated by the formula

, + () 2 +Z,. 2 Чап- 2%-t-b -2 , (mod ),, + () 2 + Z ,. 2 Chap- 2% -t-b -2, (mod),

(4)(four)

где mod 2 обозначает, что результат представл етс  в х-разр дной секе , а, и Ь - знаковые разр ды операндов .where mod 2 indicates that the result is represented in the x-bit section, a, and b are sign bits of the operands.

Устройство работает следующим образом.The device works as follows.

При положительных сомножител х (А,) коэффициенты а, Ь,0, поэтому коррекции не происходит. Выражение (4) принимает видWith positive factors x (A,), the coefficients are a, b, 0, so the correction does not occur. Expression (4) takes the form

,2n, 2n

1one

,-.В,. 2 (A,- B +Aa-B)-2 +,-.AT,. 2 (A, - B + Aa-B) -2 +

(5)(five)

+A2B, (mod 2)+ A2B, (mod 2)

Поскольку Z7/0, запись его в пр мом коде эквивалентна записи в дополнительном коде.Since Z7 / 0, writing it in the direct code is equivalent to writing in the additional code.

5970259702

Если один из сомножителей отрицателен , например , с выходов табличных умножителей частичные произведени  поступают с предварительнойIf one of the factors is negative, for example, from the outputs of tabular multipliers, partial products come from a preliminary

5 коррекцией и после суммировани  дают следующий рез5гльтат: ,- . 2. (А, В4+5 correction and after summing give the following result:, -. 2. (A, B4 +

+Aj.Bi+Bi-2 М X 2 +Ai-В2- -2 (mod ),+ Aj.Bi + Bi-2MX2 + Ai-B2-2 -2 (mod),

fOfO

(6)(6)

так как а,1, .since a, 1,.

Выражение (6) можно представить в виде суммы двух слагаемых z , рав- ного произведению кодов А,. В и корректирующего коэффициента с Expression (6) can be represented as the sum of two terms z, equal to the product of the codes A ,. In and the correction factor with

Z Z +C A-B+2(B+1)Z +2 (-В),Z Z + C A-B + 2 (B + 1) Z + 2 (-B)

(mod )„(7)(mod) „(7)

Рассмотрим теперь процесс перемножени  с преобразованием сомножителей в пр мой код и с последующим преобразованием произведени  в дополнительньш код. Поскольку АО, , то , следовательноLet us now consider the process of multiplying with the transformation of factors into a direct code and with the subsequent transformation of the product into an additional code. Since AO, therefore,

,2п, 2n

,2п, 2n

,()()-B, () () - B

2 +А В-2 +Z +2 - (-В), (mod ).(8)2 + A B-2 + Z + 2 - (-B), (mod). (8)

Как видим, выражени  (7) и (8) тождественны (коэффициент 2 выходит за пределы ()-разр дной сетки и поэтому не оказывает вли ни  на результат ) , что говорит о правильности Выполнени  произведени  устройством.As you can see, expressions (7) and (8) are identical (the coefficient 2 goes beyond the () -size grid and therefore does not affect the result), which indicates the correctness of the performance of the production by the device.

Аналогично выполн етс  произведение в случае , . При равенст- ве нулю одного из сомножителей (например , В), выражение (4) примет видThe product is executed in the same way in the case of,. If one of the factors is equal to zero (for example, B), the expression (4) takes the form

Zn,Zn

,- 2 -2 2+Bi-2- 2 -2 2 + Bi-2

+2 +2

Zn-iZn-i

4545

(В+1), (mod 2 ), (B + 1), (mod 2),

т.е. даже при з множении отрицательного числа на нуль, выходной нулевой результат будет положительным, что соответствует представлению чисел в 50 дополнительных кодах.those. even if a negative number is multiplied by zero, the output zero result will be positive, which corresponds to the representation of numbers in 50 additional codes.

В случае, если оба сомножител  отрицательны, результат произведени  согласно (4) выгл дит следующим образом:In case both factors are negative, the result of the product according to (4) is as follows:

+ (A,- B +B AJ+BI- )2 +  + (A, - B + B AJ + BI-) 2 +

+ (A,B,+BV 2 +А, 2 М-2 2+2%2 А-В+2 - (-В)+2;(-А), (mod ). (9)+ (A, B, + BV 2 + A, 2 M-2 2 + 2% 2 A-B + 2 - (-B) +2; (- A), (mod). (9)

При классическом произведении, аналогично (8), с учетом того, что , получимIn the classical product, similarly to (8), taking into account the fact that, we get

А а п I A a p i

.Вп () ()2 +А-В-н.Vp () () 2 + AB

)+2(-В), (mod 2 ). (10)) +2 (-B), (mod 2). (ten)

Совпадение (9) и (10) говорит о том, что и в этом случае устройство выдает правильный результат.Coincidence (9) and (10) indicates that in this case the device produces the correct result.

Числа А и В разбиваютс  на две равные части с числом разр дов в каждой . Выражени  (1-5), отображающие работу устройства, принимают видNumbers A and B are divided into two equal parts with the number of bits in each. Expressions (1-5), showing the operation of the device, take the form

B г Bj+aB g Bj + a

(mod (mod

2Ъ;2b;

Aj+b,- , (modAj + b, -, (mod

2«);2 ");

(11) (12)(11) (12)

, ,- A,- 2, (mod 2); ,, - A, - 2, (mod 2);

+ (Z2+Z5) ,-2 + + (Z2 + Z5), -2 +

Claims (1)

.2, (mod 2 ). Формула изобрет.2, (mod 2). Invention Formula Устройство дл  умножени , содержащее четыре табличных умножител  и семь сумматоров, причем вход младших разр дов первого сомножител  устройства  вл етс  первым информационным входом первого табличного умножител  и соединен с первым информационным входом второго табличного умножител , второй информационный вход которого  вл етс  входом старших разр дов второго сомножител  устройA multiplying device containing four tabular multipliers and seven adders, the lower order input of the first multiplier device being the first information input of the first table multiplier and connected to the first information input of the second table multiplier, the second information input of which is the second higher factor of the second multiplier arrange 4545 .ства и соединен с первым информацион- д которого  вл етс  вторым выходом ным входом третьего табличного умножител , второй информационный вход которого  вл етс  входом старших разр дов первого сомножител  устройства и соединен с первым информационным входом четвертого табличного умножител , второй информационный вход которого  вл етс  входом младших разр дов второго сомножител  устройства и соединен с вторым информационным входом первого табличного умножител , выход младших разр дов которого  вл етс  первым выходом младших разр дов произведени  уст50and is connected to the first information of which is the second output input of the third tabular multiplier, the second information input of which is the input of the higher bits of the first factor of the device and connected to the first information input of the fourth tabular multiplier, the second information input of which is input the lower bits of the second device multiplier and is connected to the second information input of the first table multiplier, the output of the lower bits of which is the first output of the lower bits view products 50 старших разр дов произведени  уст ства, отличающеес  те что, с целью уменьшени  аппаратур затрат, выход младших разр дов вт го табличного умножител  соединен вторым информационным входом трет его сумматора, выходы переноса пе вого и третьего сумматоров соедин с входами переноса второго и четв того сумматоров соответственно, в ход переноса второго сумматора со динен с вторым информационным вхо п того сумматора, вход знакового р да второго сомножител  устройстfor the purpose of reducing equipment costs, the output of the lower bits of the tabular multiplier is connected to the second information input of its third adder, the transfer outputs of the first and third adders are connected to the transfer inputs of the second and fourth adders, respectively , in the course of transfer of the second adder are connected with the second information input of the fifth adder, the input of the sign row of the second co-multiplier device ройства, вход знакового разр да пер- соединен с входом знакового разр даSigns, the input of the sign bit is first connected to the input of the sign bit. вого сомножител  устройства  вл етс  входом знакового разр да первого сомножител  четвертого табличного умножител , выход младших разр довdevice multiplier is the input of the sign bit of the first multiplier of the fourth tabular multiplier, the output of the lower order bits первого сомножител  третьего табличного умножител  и входом переноса шестого сумматора, второй информа- ционньй вход которого соединен с вхоthe first multiplier of the third tabular multiplier and the transfer input of the sixth adder, the second information input of which is connected to the input зо 3159704hor 3159704 которого соединен с первым информационным входом первого сумматора, второй информационный вход которого соединен с выходом старших разр довwhich is connected to the first information input of the first adder, the second information input of which is connected to the output of the higher bits г первого табличного умножител , вход знакового разр да второго сомножител  устройства  вл етс  входом знакового разр да второго сомножител  второго табличного умножител , вы-.The first tabular multiplier, the sign input of the second device multiplier is the sign input of the second multiplier of the second table multiplier, vy. fO ход старших разр дов которого соединен с первым информационным входом второго сумматора, второй информационный вход которого соединен с выходом старших разр дов четвертогоfO the course of the high bits of which is connected to the first information input of the second adder, the second information input of which is connected to the output of the high bits of the fourth t5 табличного умножител , выход суммы первого сумматора соединен с первым информационным входом третьего сумматора , выход суммы которого  вл етс  вторым выходом младших разр довt5 of the table multiplier; the output of the sum of the first adder is connected to the first information input of the third adder, the output of the sum of which is the second output of the lower bits 20 произведени  устройства, выход суммы второго сумматора соединен с первым информационным входом четвертого сумматора, второй информационньш вход которого соединен с выходом20 of the device, the output of the sum of the second adder is connected to the first information input of the fourth adder, the second information input of which is connected to the output 25 младших разр дов третьего табличного умножител , выход старших разр дов которого соединен с первым информационным входом п того сумматора, вход переноса которого соединен с выходом переноса четвертого сумматора , выход суммы которого соединен с первым информационйым входом шестого сумматора, выход суммы которого  вл етс  первым выходом старших раз35 р дов произведени  устройства, выходы суммы п того и переноса шестого сумматоров соединены с информационным входом и входом переноса соответственно седьмого сумматора, выходThe 25 lower bits of the third table multiplier, the output of the higher bits of which is connected to the first information input of the fifth adder, the transfer input of which is connected to the transfer output of the fourth adder, the output of which is connected to the first information input of the sixth adder, the output of which is the first output the highest divisions of product output, the sum of the sum of the fifth and the transfer of the sixth adders are connected to the information input and the transfer input, respectively, of the seventh adder, the output которого  вл етс  вторым выходом which is the second exit старших разр дов произведени  устройства , отличающеес  тем, что, с целью уменьшени  аппаратурных затрат, выход младших разр дов второго табличного умножител  соединен с вторым информационным входом третьего сумматора, выходы переноса пер-- вого и третьего сумматоров соединены с входами переноса второго и четвертого сумматоров соответственно, выход переноса второго сумматора соединен с вторым информационным входом п того сумматора, вход знакового разр да второго сомножител  устройстваthe higher output bits of the device, characterized in that, in order to reduce hardware costs, the output of the lower bits of the second table multiplier is connected to the second information input of the third adder, the transfer outputs of the first and third adders are connected to the transfer inputs of the second and fourth adders , the transfer output of the second adder is connected to the second information input of the fifth adder, the input of the sign bit of the second device factor первого сомножител  третьего табличного умножител  и входом переноса шестого сумматора, второй информа- ционньй вход которого соединен с вхо513159706the first multiplier of the third tabular multiplier and the transfer input of the sixth adder, the second information input of which is connected to input 513159706 дом знакового разр да первого сомно- разр да второго сомножител  третье- жител  устройства и входом знакового го табличного з множител .the house of the sign bit of the first sum is the bit of the second multiplier of the device third-party and the input of the sign tabular s multiplier.
SU853990822A 1985-12-11 1985-12-11 Multiplying device SU1315970A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU853990822A SU1315970A1 (en) 1985-12-11 1985-12-11 Multiplying device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU853990822A SU1315970A1 (en) 1985-12-11 1985-12-11 Multiplying device

Publications (1)

Publication Number Publication Date
SU1315970A1 true SU1315970A1 (en) 1987-06-07

Family

ID=21210301

Family Applications (1)

Application Number Title Priority Date Filing Date
SU853990822A SU1315970A1 (en) 1985-12-11 1985-12-11 Multiplying device

Country Status (1)

Country Link
SU (1) SU1315970A1 (en)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Электроника, 1970, № 10, с. 13-15, фиг. 1. Авторское свидетельство СССР 1019442, кл. G 06 F 7/52, 1981. *

Similar Documents

Publication Publication Date Title
US3878985A (en) Serial-parallel multiplier using booth{3 s algorithm with combined carry-borrow feature
US4644491A (en) Sign generation system for a carry save adder
SU1315970A1 (en) Multiplying device
GB1582958A (en) Digital system for binary multiplication of a number by a sum of two numbers
SU1229757A1 (en) Multiplying device
SU817700A1 (en) Device for adding n single-digit binary numbers
SU1196853A1 (en) Device for determining inverse value
SU1003074A1 (en) Device for parallel algebraic adding in sign-digit number system
EP0067862B1 (en) Prime or relatively prime radix data processing system
SU824203A1 (en) Device for adding n-digit decimal numbers
SU1285463A1 (en) Multiplying device
SU1229758A1 (en) Multiplying device
RU1797112C (en) Device for multiplication of numbers
SU1515161A1 (en) Multiplication device
SU851395A1 (en) Converter of binary to complementary code
SU1291973A1 (en) Dividing device
SU1256019A1 (en) Dividing device
SU1043627A1 (en) Binary to bcd converter
SU822174A1 (en) Converter of direct binary-decimal code into complementary binary-decimal one
SU1038937A1 (en) Multiplication device
JPH05216626A (en) Multiplier
SU900282A1 (en) Device for adding n-bit decimal numbers
SU1254477A1 (en) Device for calculating value of square root
SU1008736A1 (en) Device for square root calculation
SU877528A1 (en) Device for computing square root of two n-digit number squared sum