SU1348826A1 - Device for adding binary numbers - Google Patents
Device for adding binary numbers Download PDFInfo
- Publication number
- SU1348826A1 SU1348826A1 SU864084034A SU4084034A SU1348826A1 SU 1348826 A1 SU1348826 A1 SU 1348826A1 SU 864084034 A SU864084034 A SU 864084034A SU 4084034 A SU4084034 A SU 4084034A SU 1348826 A1 SU1348826 A1 SU 1348826A1
- Authority
- SU
- USSR - Soviet Union
- Prior art keywords
- register
- code
- inputs
- counter
- accumulating adder
- Prior art date
Links
Landscapes
- Complex Calculations (AREA)
Abstract
Изобретение относитс к вычислительной технике. Цель изобретени - расширение области применени за счет формировани результата в произвольно выбранной системе счислени С основанием . Устройство содержит регистр 1, накапливающий сумматор 2, группу элементов И-З, тактирующий вход 4, L-ичный счетчик 5, элемент задержки 6 и шифратор 7. 1 ип. i 1(Л со 4 00 00 N5 аThe invention relates to computing. The purpose of the invention is to expand the scope by forming a result in an arbitrarily chosen number system With a base. The device contains a register 1, accumulating adder 2, a group of I & W elements, a clock input 4, an L-ary counter 5, a delay element 6, and an encoder 7. 1 ip. i 1 (L with 4 00 00 N5 and
Description
Изобретение относитс к вычислительной технике.The invention relates to computing.
Целью изобретени вл етс расширение области применени за счет формировани результата в произвольно выбранной системе счислени с основанием L 2,The aim of the invention is to expand the scope by forming a result in an arbitrarily selected number system with a base L 2,
На чертеже представлена блок-схема устройства.The drawing shows the block diagram of the device.
Устройство содержит регистр 1, накапливающий сумматор 2, группу элементов И 3, тактирующий вход 4, счетчик 5 (L-ИЧНЫЙ), элемент 6 задержки и шифратор 7, осуществл ющий шифра- цию в двоичный код,The device contains a register 1, accumulating adder 2, a group of elements And 3, a clock input 4, a counter 5 (L-EARNING), a delay element 6 and an encoder 7 that encrypts the binary code,
Р (2 - L ), где п - разр дность регистра 1;P (2 - L), where n is the register resolution 1;
k - целое число, такое, что 2k is an integer such that 2
Устройство работает следующим образом .The device works as follows.
Зададимс значением , Tlj-at подаче сигнала с входа 4 на входы элементов И 3 двоичное число, записанное предварительно в регистр 1, передаетс на входы накапливающего сумматора 2, При этом в накапливающем сумматоре 2 регистрируетс сумма двоичного числа , записанного в регистре 1, и числа , хранившегос « накапливающем с:/м- маторе 2 перед подачей тактирующего сигнала. При поступлении след -ю-дего сигнала на вход 4 аналогичным образом осуществл етс суммирование двоичного числа регистра 1 с новьи-i содержимым накапливающего сумматора 2,Given a value, Tlj-at, applying a signal from input 4 to the inputs of the AND 3 elements, a binary number prerecorded in register 1 is transmitted to the inputs of accumulating adder 2, and the sum of the binary number recorded in register 1 and the numbers stored with the: / m-mat 2 before the clocking signal is applied. When the next signal arrives at input 4, the binary number of register 1 is added in the same way with the nova-i content of accumulating adder 2,
ПрИопереполнении накапливающего сумматора 2, когда на выходе его старше.го разр да образуетс сигнал переноса, последний поступает на счетчик 5 (дес тичный) и одновременно на элемент 6 задержки. Таким образом , изменение на единицу числа, записанного в дес тичном счетчике 5, соответствует регистрации сигнала переноса в старшем разр де накапливающего сумматора 2, Учитыва , что сигнал переноса в старшем разр де накапливающего сумматора 2 образуетс при переполнении последнего, конечный результат сложени в дес тичном коде за фиксированное врем измерений можно определить как сумму результатов, полученных на дес тичном счетчике 5 и накапливающем сумматоре 2, т,е,The overflow of accumulating adder 2, when the transfer signal is generated at the output of its older digit, the latter arrives at counter 5 (decimal) and simultaneously at delay element 6. Thus, the change per unit number recorded in decimal counter 5 corresponds to the registration of the transfer signal in the highest bit of accumulative adder 2, Considering that the transfer signal in the higher bit of accumulating adder 2 is formed when the latter is overflowed, the final result of the accumulation in decimal code for a fixed measurement time can be defined as the sum of the results obtained on a decimal counter 5 and accumulating adder 2, t, e,
S N 2 VM,(1)S N 2 VM, (1)
где N - число отсчетов дес тичного счетчика;where N is the number of counts of the decimal counter;
488262488262
М - двоичный код остатка, хран щегос в накапливающем сумматоре 2, после окончани цикла суммировани .M is the binary code of the residue stored in accumulator 2, after the end of the summation cycle.
Как видно из этой формулы, процесс получени конечного результата суммировани в дес тичном коде св зан с операцией умножени , что не всегда 10 вл етс удобным,As can be seen from this formula, the process of obtaining the final result of the summation in decimal code is associated with the multiplication operation, which is not always convenient 10,
Дл исключени этого недостатка в устройстве выражение (1) преобразовано с помощью элемента 6 задержки и шифратора 7 в следующий алгоритм: .10 +M,(2)To eliminate this drawback in the device, expression (1) is transformed using delay element 6 and encoder 7 into the following algorithm: .10 + M, (2)
где ,2 ,,, - посто нньй коэффициент , величина которого зависит от числа разр дов накапливаю- 20щего сумматора 2,where, 2 ,,, is a constant coefficient, the value of which depends on the number of bits of the accumulating adder 2,
В этой формуле слагаемое М равноIn this formula, the term M equals
,,(2-10), (3),, (2-10), (3)
где М - двоичное число, хран щеес where M is the binary number stored
в накапливающем сумматоре 2 25 после формировани единицы переноса в старшем разр де; М , - разность между кодом числа, соответствующего полной емкости накапливающего сумма- 30 тора 2, и ближайшим числом, кратным степени дес ти, значение которого выбираетс меньше уменьшаемого, В выражении (2) процесс умножени существенно упрощен за счет того, что каждый отсчет дес тичного счетчика 5 кратен выбранному числу 10 , Кроме этого, дл того.чтобы погрешность многократного суммировани была Q минимальна, двоичный код разности М после дополнительной задержки вновь подаетс на соответствующие разр ды накапливающего сумматора 2,in accumulative adder 2 25 after forming the transfer unit in the higher order; M, is the difference between the code of the number corresponding to the total capacity of the accumulating sum of 30 torus 2, and the closest number to a power of ten, the value of which is chosen less than decreasing. In expression (2) the multiplication process is greatly simplified due to the fact that each count is ten The actual counter 5 is a multiple of the selected number 10, In addition, in order for the multiple sum error Q to be minimal, the binary code of the difference M after the additional delay is again fed to the corresponding bits of accumulating adder 2,
Рассмотрим работу предлагаемого 45 устройства дл суммировани , например , четьфехразр дного накапливающего сумматора 2 и регистра 1, когда необходимо суммировать многократно один и тот же двоичный код, например,Consider the operation of the proposed 45 device for summing, for example, a four-bit accumulating adder 2 and register 1, when it is necessary to repeatedly add the same binary code, for example,
3535
код числа 15. Дл этого случа полна емкость накапливающего сумматора 2 и регистра 1 равна 2 16, а раз-- ность Mj дл коэффициента k, выбранного в соответствии с указанным ранее условием, т,е, , составл ет М (, code number 15. For this case, the total capacity of accumulating adder 2 and register 1 is 2 16, and the difference Mj for the coefficient k chosen in accordance with the previously specified condition, t, e,, is M (,
Если начальные услови таковы, что в регистре 1 посто нно находитс двоичный код числа 15, а накапливающий сумматор 2 обнулен, то при поступлении первого сигнала на вход А код числа 15 будет записан в накапливающий сумматор 2. При поступлении второго сигнала на вход 4 будет осуществл тьс суммирование кода числа 15, хранившегос в накапливающем сумматоре 2, с кодом этого же числа, поступившим на вход сумматора 2 после подачи второго тактирующего сигнала. В результате суммировани этих кодов должен быть nojiy4eH двоичный код числа 30, т.е. 11110. Однако из-за того, что накапливающий сумматор 2 имеет четыре двоичных разр да, старщий бит кода числа 30 HP регистрируетс в сумматоре, а используетс , как сигнал переноса дл регистрации в дес тичном счетчике 5 и одновременно через элемент 6 задержки в шифраторе . В результате в на сапливающем сумматоре 2 остаетс двоичный код 1110, т.е. число 14. При 31 ом к содержимому дес тичного счетчика 5 прибавитс единицы , котора в конечном результате суммы кратна числу 10 . Этим же сигналом переноса, задержанным элементом 6 задержки на врем несколько большее , чем врем распространени сигналов переноса в накапливающем сумматоре 2, происходит формирование двоичного кода разности М , равной в данном случае числу 6, т.е. двоичный код 0110. В результате с выхода шифратора 7 сигналы поступают на входы вто-. рого и третьего разр дов накапливающего сумматора 2. Таким образом, к содержимому сумматора 2, в котором хранитс код числа 14 (1110) прибавл етс код числа 6 (0110).If the initial conditions are such that register 1 permanently contains the binary code of number 15, and accumulating adder 2 is zero, then when the first signal arrives at input A, the code of number 15 will be written into accumulating adder 2. When the second signal arrives at input 4, There is a summation of the code of the number 15 stored in accumulating adder 2, with the code of the same number received at the input of adder 2 after the second clock signal was applied. As a result of summation of these codes, the nojiy4eH binary code of the number 30, i.e. 11110. However, because accumulative adder 2 has four binary bits, the most significant bit of the code of the number 30 HP is recorded in the adder, and is used as a transfer signal for registration in the decimal counter 5 and simultaneously through the delay element 6 in the encoder. As a result, a binary code 1110 remains in the adpolator 2, i.e. The number 14. At 31 ohms, one adds to the contents of the decimal counter 5, which in the end result is a multiple of the number 10. By the same transfer signal, the delayed delay element 6, at a time slightly longer than the propagation time of the transfer signals in accumulation adder 2, the binary code of the difference M is formed, which in this case is equal to 6, i.e. the binary code is 0110. As a result, from the output of the encoder 7, the signals arrive at the inputs of the second. and the third bits of the accumulating adder 2. Thus, the code of the number 14 (1110) is added to the contents of the adder 2, the code of the number 6 (0110).
Единица старшего разр да двоичного кода суммы этих чисел, равной 20 (код 10100), аналогично указанному выше регистрируетс дес тичным счетчиком 5 и одновременно используетс дл формировани кода разности , двоичный код которой вторично поступает на суммирование в накапливающий сумматор 2, хран щий после формировани второго переноса в старшем разр де код 0100, т.е. число 4.The unit of the highest bit of the binary code of the sum of these numbers, equal to 20 (code 10100), is recorded by the decimal counter 5 similarly to the above and is simultaneously used to form a difference code, the binary code of which is again fed to the accumulating adder 2, which is stored after forming the second carry in higher order code 0100, i.e. number 4.
В результате такого двухкратного суммировани дес тичньп счетчиком 5 зарегистрировано два сигнала переноса , каждый из которых кратен числу 10, ив качестве остатка в накапливающем сумматоре 2 хранитс двоичный код числа 10, равного в соответствииAs a result of such a twofold summation by the decimal 5, two transfer signals are registered, each of which is a multiple of 10, and the binary code of the number 10 is stored in the accumulator 2 as equal to
8826488264
с формулой (3) сумме чиселwith formula (3) the sum of numbers
10ten
1515
М 4 и .M 4 and.
Таким образом, окончательное значение суммы кодов двух двоичных чисел 15 в соответствии с формулой (2) равно Thus, the final value of the sum of the codes of two binary numbers 15 in accordance with formula (2) is equal to
S 240 .S 240.
При следующей операции суммировани входного кода двоичного числа 15 с остатком, хран щимс в накапливающем сумматоре 2 и равным 10, дес тичный счетчик 5 зарегистрирует еще один сигнал переноса, а двоичный код остатка , хран щегос в накапливающем сумматоре 2, соответствует по аналогии с приведенным пор дком суммировани числу 15, в котором , а . Таким образом, новое значение суммы равноIn the next operation, the summation of the input code of the binary number 15 with the remainder stored in accumulator 2 and equal to 10, decimal counter 5 will register another transfer signal, and the binary code of the remainder stored in accumulator adder 2 corresponds to The dc summation number 15, in which, a. Thus, the new value of the sum is
-Ю . -YU .
При многократном суммировании, когда в формуле (2) N-10 М, значение суммы с достаточной степенью точности может быть представлено какWith repeated summation, when in formula (2) N-10 M, the value of the sum with a sufficient degree of accuracy can be represented as
(4) (four)
и результат суммировани может быть определен только по показани м дес тичного счетчика 5.and the result of the summation can only be determined from the indications of the decimal counter 5.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU864084034A SU1348826A1 (en) | 1986-06-27 | 1986-06-27 | Device for adding binary numbers |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU864084034A SU1348826A1 (en) | 1986-06-27 | 1986-06-27 | Device for adding binary numbers |
Publications (1)
Publication Number | Publication Date |
---|---|
SU1348826A1 true SU1348826A1 (en) | 1987-10-30 |
Family
ID=21243836
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
SU864084034A SU1348826A1 (en) | 1986-06-27 | 1986-06-27 | Device for adding binary numbers |
Country Status (1)
Country | Link |
---|---|
SU (1) | SU1348826A1 (en) |
-
1986
- 1986-06-27 SU SU864084034A patent/SU1348826A1/en active
Non-Patent Citations (1)
Title |
---|
Папернов А.А. Логические основы цифровой вычислительной техники. М.: Советское радио, 1972, с.566, рис.1. Авторское свидетельство СССР № 660049, кл. G 06 F 7/66, 1977. * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
SU1348826A1 (en) | Device for adding binary numbers | |
SU433474A1 (en) | DEVICE FOR TRANSFORMING CODES | |
SU1236462A1 (en) | Device for multiplying decimal numbers | |
SU1532924A1 (en) | Device for shaping position indication in modular arithmetic | |
SU388278A1 (en) | INTEGRATOR FOR PARALLEL DIGITAL INTEGRATING MACHINE WITH ELECTRONIC SWITCHING | |
SU466507A1 (en) | Device for converting regular binary fraction to binary fraction | |
SU1262477A1 (en) | Device for calculating inverse value | |
SU1273917A1 (en) | Device for taking sum of n-digit numbers | |
SU1035601A2 (en) | Multiplication device | |
SU491129A1 (en) | Device for raising binary numbers to the third degree | |
SU391560A1 (en) | DEVICE FOR CONSTRUCTION IN SQUARES | |
SU1275431A1 (en) | Multiplying device | |
SU577524A1 (en) | Mixed number binary-to-binary-decimal code converter | |
SU451996A1 (en) | Device to convert coordinates | |
SU491947A1 (en) | Dedicated adder | |
SU434406A1 (en) | COMPUTER DEVICE | |
SU1424011A1 (en) | Associative adder | |
SU840899A1 (en) | Device for squaring and obtaining the difference of squares of unit-counting code | |
SU1363203A1 (en) | Division device | |
SU1374218A2 (en) | Digital function generator | |
SU1075374A1 (en) | Recursive digital filter | |
SU855658A1 (en) | Digital device for computing functions | |
SU368598A1 (en) | CONVERTER BINARY DECIMAL CODE "12222" TO UNITARY CODE | |
SU1569823A1 (en) | Multiplying device | |
SU1026302A1 (en) | Multiplication measuring system |