SU1451681A1 - Adder - Google Patents
Adder Download PDFInfo
- Publication number
- SU1451681A1 SU1451681A1 SU874257060A SU4257060A SU1451681A1 SU 1451681 A1 SU1451681 A1 SU 1451681A1 SU 874257060 A SU874257060 A SU 874257060A SU 4257060 A SU4257060 A SU 4257060A SU 1451681 A1 SU1451681 A1 SU 1451681A1
- Authority
- SU
- USSR - Soviet Union
- Prior art keywords
- input
- code
- register
- shift
- output
- Prior art date
Links
Landscapes
- Compression, Expansion, Code Conversion, And Decoders (AREA)
Abstract
Изобретение относитс к области вычислительной техники и может быть использовано в высокопроизводительных устройствах дл обработки множества чисел. Целью изобретени вл етс сокращение аппаратурных затрат . Устройство реализует алгоритм последовательного по разр дам и параллельного по числам сложени путем подсчета кода числа единиц в разр дных срезах слагаемых и последующего суммировани этих кодов со сдвигом . По сравнению с устройством-прототипом , где при увеличении количества суммируемых чисел необходимо введение новых узлов, в данном устройстве увеличиваетс лишь разр дность имеющихс узлов. Цель достигаетс введением в состав устройства двух комбинационных сумматоров, накопительного регистра и регистра сдвига, а также новых св зей. 2 ил., 1 табл. lO (ЛThe invention relates to the field of computing and can be used in high-performance devices for processing a plurality of numbers. The aim of the invention is to reduce hardware costs. The device implements a sequential-by-bit and parallel-by-number addition algorithm by counting the code of the number of units in bit sections of the terms and then summing these codes with a shift. Compared with the device-prototype, where the increase in the number of summed numbers requires the introduction of new nodes, in this device only the size of the existing nodes increases. The goal is achieved by introducing into the device two combinational adders, a cumulative register and a shift register, as well as new connections. 2 ill., 1 tab. lO (L
Description
Изобретение относитс к вычислительной технике и может быть использовано в высокопроизводительных устройствах дл обработки множества чисел..The invention relates to computing and can be used in high-performance devices for processing a plurality of numbers.
Цель изобретени - сокращение аппаратурных затрат.The purpose of the invention is to reduce hardware costs.
На фиг. 1 представлена структурна схема суммирующего устройства дл случа суммировани двенадцати чисел на фиг„ 2 - временные диаграммы подачи импульсов синхронизации .FIG. Figure 1 shows the block diagram of the totalizer for the case of the summation of twelve numbers in Fig.2, the timing diagrams for the delivery of synchronization pulses.
Суммирующее устройство содержит входные регистры 1, блоки 2 и 3 преобразовани кода числа в двоичный код количества единиц, регистр 4 результата, промежуточные регистры 5 сдвига, блок 6 преобразовани кода числа в двоичный код количества еди- ниц, комбинационный сумматор 7, регистр 8 сдвига, комбинационный сумматор 9, накопительный регистр 10, а также входы 11 и 12 синхронизации и вход 13 сброса.The totalizer contains input registers 1, blocks 2 and 3 of converting the code of a number into a binary code of the number of units, result register 4, intermediate shift registers 5, block 6 of converting a code of a number into a binary code of a number of units, combinational adder 7, shift register 8, combinational adder 9, cumulative register 10, as well as synchronization inputs 11 and 12 and reset input 13.
Устройство работает следуницим образом .The device works as follows.
Слагаемые помещаютс во входные регистры 1. Регистры 8 и 10 сбрасы- ваютс . При этом на вход блоков 2 подаютс младпше биты слагаемых.-Блоки 2 образуют на своих выходах сумму битов, поданных на их входы. Младшие биты этих сумм подаютс на блок 3 совместно с мпадшим битом с выхода регистра 10.The terms are placed in the input registers 1. The registers 8 and 10 are reset. At the same time, the input of the blocks 2 is given to the younger bits of the terms. -Blocks 2 form at their outputs the sum of the bits fed to their inputs. The lower bits of these sums are supplied to block 3 along with the bit from the output of register 10.
На выходе младшего разр да блока 3 образуетс младший бит суммы всех входных чисел. Разр ды переноса с выходов старших разр дов блоков 2 и 3 записываютс в промежуточные регистры 5 по срезу импульса на входе 1At the low-bit output of block 3, the low-order bit of the sum of all input numbers is formed. The transfer bits from the outputs of the high bits of blocks 2 and 3 are written into intermediate registers 5 over the pulse section at input 1
Число выходов q блоков 2,3 и 6 можно определить по формуле The number of outputs q blocks 2,3 and 6 can be determined by the formula
q tlog Kj+1,q tlog Kj + 1,
где К число входов блока 2(3,6).where K is the number of inputs of block 2 (3,6).
1one
Следовательно, число разр дов прмежуточных регистров 5 сдвигаConsequently, the number of bits of the intermediate registers 5 shift
п tlogiK,n tlogiK,
где log,jK - цела часть числа logwhere log, jK is the whole part of the number log
На вход блока 6 подаютс мпадшие биты с выходов регистров 5. На. выходе образуетс сумма битов переносов , котора подаетс на один вход комбинационного сумматора 7. ЧислоThe input of block 6 is supplied with bits from the outputs of registers 5. On. the output is the sum of the carry bits, which is fed to one input of the combinational adder 7. The number
0 5 0 5
О ABOUT
0 0
5five
5five
входов комбинационного сумматора 7 равно числу выходов q блока 6.the inputs of the combinational adder 7 is equal to the number of outputs q of block 6.
По фронту импульса на входе 12 происходит запись в регистр 8 и сдвиг вправо в промежуточных регистрах 5. По срезу иг пульса на входе 12 происходит сдвиг вправо в регистре 8. Освободившийс разр д заполн етс нулем. На выходе блока 6 образуетс сумма очередных битов переноса, котора по следукщему фронту импульса на входе 12 суммируетс в регистре 8 с соответствующими разр дами суммы переносов . После фронта п-го импульса на входе 12 в регистре 8 образуетс сумма переносов данного разр дного среза входных двоичных чисел.The pulse at the input 12 is written to the register 8 and shifted to the right in intermediate registers 5. The pulse from the pulse at the input 12 is shifted to the right in the register 8. The freed bit is filled with zero. At the output of block 6, the sum of the next carry bits is formed, which over the following edge of the pulse at input 12 is summed up in register 8 with the corresponding bits of the sum of transfers. After the front of the nth pulse at input 12 in register 8, the sum of the carries of a given bit slice of the input binary numbers is formed.
Разр дность регистра 8Register width 8
S q + п,S q + n,
где q - число выходов блока 6п - разр дность регистров 5. Далее по фронту импульса на входе 11 происходит:where q is the number of outputs of the block 6n is the size of the registers 5. Then, along the pulse front at the input 11, the following occurs:
1.сдвиг вправо во входньк регистрах 1, при этом на входы блоков 2 подаетс очередной разр дный срез входных чисел;1. shift to the right in input registers 1, while the next bit slice of input numbers is supplied to the inputs of blocks 2;
2.сдвиг вправо в регистре 4 результата , при этом во входной регистр заноситс очередной бит суммы входных чисел;2. shift to the right in the register 4 of the result, while the next bit of the sum of the input numbers is entered into the input register;
3.. суммирование в накопительном регистре 10.3 .. summation in the cumulative register 10.
Накопительный регистр 10 соединен с входом комбинационного сумматора 9 со сдвигом вправо на один разр д , что позвол ет использовать регистр 10 без сдвигового регистра. Разр дность комбинационного сумматора 9 равна разр дности S регистра 8. Разр дность регистра 10 равна S+1.The cumulative register 10 is connected to the input of the combinational adder 9 with a right shift by one bit, which allows the use of the register 10 without the shift register. The bit of the combinational adder 9 is equal to the bit S of the register 8. The bit of the register 10 is equal to S + 1.
По срезу импульса на входе 11 происходит запись в промежуточные регистры 5. С Приходом импульса на вход 13 обнул етс регистр 8. Далее после очередных п импульсов на входе 12 в регистре 8 будет находитьс перенос в старшие разр ды очередного разр дного среза входных чисел, а на входе регистра 4 - очередной бит суммы входных чисел.The pulse at input 11 is written to intermediate registers 5. With the arrival of a pulse, register 8 is zeroed out. Next, after the next n pulses at input 12, register 8 will be transferred to the higher bits of the next bit slice of input numbers at the input of register 4 is the next bit of the sum of the input numbers.
С приходом очередного импульса на . вход 11 в регистре 10 будет находитьс перенос в старшие, разр ды суммы входных чисел, а в регистр 4 зане- .сетс очередной бит суммы.With the arrival of the next impulse on. input 11 in register 10 will carry the transfer to the most significant bits of the sum of the input numbers, and register 4 will not contain the next bit of the sum.
После фронта m-ro импульса на входе 1 1 в регистре 4 будет находитьс сумма входных чисел.After the front of the m-ro pulse at input 1 1, register 4 will contain the sum of the input numbers.
Таким образом, на вход 11 нужно подать т+1 импульсов, где m - разр дность слагаемых .svHa вход 12 необходимо подавать по п импульсов между каждыми двум импульсами на входе 11. На вход 13 необходимо подать m импульсов после каждого среза импульса на входе 11.Thus, t + 1 pulses must be fed to input 11, where m is the size of the terms .svHa input 12 must be fed by n pulses between every two pulses at input 11. To input 13 it is necessary to feed m pulses after each cut of the pulse at input 11 .
Приме р. Необходимо сложить 12 трехразр дных двоичных чисел.Primer p. It is necessary to add 12 three-bit binary numbers.
Слагаемые загружаютс в регистры 1 в соответствии с таблицей.The terms are loaded into registers 1 in accordance with the table.
По срезу нулевого импульса на входе 11 происходит запись в регистры 5: Номер регистра КодThe slice of the zero pulse at input 11 is written to the registers 5: Register number Code
5.1005.100
5.2015.201
5.3015.301
5.4 015.4 01
На входе блока 6 по вл етс код 0111, на его выходе - код 011.At the input of block 6, code 0111 appears, at its output - code 011.
По фронту первого импульса на входе 12 происходит суммирование в регистре 8. В рем будет код 00110. Также происходит сдвиг в регистрах 5. На входе блока 6 по вл етс код 0000, на выходе - код 000.On the front of the first pulse at input 12, summation occurs in register 8. Code 00110 will be rem. Rem also registers 5. A code 0000 appears at the input of block 6, code 000 appears at the output.
По срезу первого импульса на входе 12 происходит сдвиг информации в регистре 8. В нем будет код 00011. По фронту второго импульса на входе 12 происходит суммирование в регистре 8.Over the first impulse section at input 12, information in register 8 is shifted. It will contain code 00011. On the front of the second pulse at input 12, register 8 is summed.
В нем будет код 00011.It will contain code 00011.
По фронту первого импульса на вхо- де 11 происходит:On the front of the first pulse at input 11, the following occurs:
1.сдвиг вправо в регистре 4, в нем будет 1 х х х х х х, где х - неопределенный символ;1. shift to the right in register 4, it will be 1 x x x x x, where x is an undefined character;
2.суммирование в -регистре 10, в нем будет код 000011;2. summation in register 10, it will be code 000011;
3.сдвиг в регистрах 1.3. shift in registers 1.
На входах и, соответственно, на выходах блоков 2:At the inputs and, accordingly, at the outputs of blocks 2:
Номер блокаBlock number
Номер регистраRegister number
5.15.1
5.2 5.2
5.35.3
5.45.4
На входе блока 6 выходе - код 011.At the input of block 6 output - code 011.
10ten
1515
2525
30thirty
3535
КодCode
01 01 01 00 - код 1110, на01 01 01 00 - code 1110, on
После третьего импульса на входе 12 происходит запись и сдвиг в регистре 8. В нем будет код 00011.After the third pulse at input 12, a write occurs and a shift in register 8. It will contain code 00011.
На входе блока 6 будет код 0000, на выходе - код 000. По фронту четвертого импульса на входе 12 в регистре Ъ происходит суммирование, в нем будет 00011, который подаетс на первый вход сумматора 9, на второй вход подаетс код 00001. На его выходе - 20 код 000100.At the input of block 6 there will be a code 0000, at the output - a code 000. On the front of the fourth pulse at input 12 in register b there is a summation, it will contain 00011, which is fed to the first input of adder 9, the second input is given code 00001. At its output - 20 code 000100.
По фронту второго импульса на входе 11 происходит:On the front of the second pulse at the input 11 occurs:
1. сдвиг информации в регистре 4, в нем будет 01 х х х х х; 1. shift information in the register 4, it will be 01 x x x x;
2.запись в регистр 10 кода 000100;2. Record in the register 10 of the code 000100;
3.сдвиг в регистрах 1.3. shift in registers 1.
На входах и выходах блоков 2: Номер блока Код на входеAt the inputs and outputs of blocks 2: Block number Code at the input
2.110012.11001
2.210102.21010
2.31100 На2.31100 On
Код на выходеExit code
010010
010010
010010
4040
входе регистра 4 будет код 0000, на выходе - код 000.the input of register 4 will be code 0000, the output code 000.
Продолжа таким образом, после седьмого импульса на входе 11 получим в регистре 4 результата сумму входных слагаемых, т.е. 0101001.Continuing in this way, after the seventh pulse at input 11, we obtain in register 4 of the result the sum of the input terms, i.e. 0101001.
Claims (5)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU874257060A SU1451681A1 (en) | 1987-04-20 | 1987-04-20 | Adder |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU874257060A SU1451681A1 (en) | 1987-04-20 | 1987-04-20 | Adder |
Publications (1)
Publication Number | Publication Date |
---|---|
SU1451681A1 true SU1451681A1 (en) | 1989-01-15 |
Family
ID=21308952
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
SU874257060A SU1451681A1 (en) | 1987-04-20 | 1987-04-20 | Adder |
Country Status (1)
Country | Link |
---|---|
SU (1) | SU1451681A1 (en) |
-
1987
- 1987-04-20 SU SU874257060A patent/SU1451681A1/en active
Non-Patent Citations (1)
Title |
---|
Авторское свидетельство СССР № 1062689, кл. G 06 F 7/50, 1982. Авторское свидетельство СССР № 1200281, кл. С 06 F 7/50, 1984. * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
SU1451681A1 (en) | Adder | |
SU624227A1 (en) | Arrangement for raising binary number to power | |
SU1140117A1 (en) | Device for extracting square root | |
SU801258A1 (en) | N-digit binary counter | |
SU857976A1 (en) | Binary adder | |
SU1137460A1 (en) | Conveyer adder | |
SU758149A1 (en) | Device for multiplying binary code by number represented in unitary code | |
SU951291A1 (en) | Fibonacci code normalization device | |
EP0564752B1 (en) | A diagonal propagation digital multiplier | |
SU1022153A1 (en) | Device for adding binary numbers | |
SU1272329A1 (en) | Calculating device | |
SU1672439A1 (en) | M-numbers adder | |
SU531154A1 (en) | Cube Maker | |
SU941992A1 (en) | Digital pulse to parallel binary code converter | |
SU733109A1 (en) | Reversible ternary n-bit pulse counter | |
SU1137459A1 (en) | Device for multiplication numbers in fibronacci p-codes | |
SU1211877A1 (en) | Pulse number multiplier | |
SU739528A1 (en) | Device for sequential isolation of zeros from n-bit binary code | |
SU577528A1 (en) | Adder-accumulator | |
SU970358A1 (en) | Device for squaring | |
SU1105896A1 (en) | Modulo 3 pyramidal convolution | |
SU432485A1 (en) | DEVICE FOR CONVERSION OF WHOLE TRINICAL AND BINARY NUMBERS INTO DECIMAL BINARY CODE | |
SU1156069A1 (en) | Device for scaling digital differential analyser | |
SU1141402A1 (en) | Array dividing device | |
SU1383340A1 (en) | Computing device |