SU1451681A1 - Adder - Google Patents

Adder Download PDF

Info

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
Application number
SU874257060A
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 SU874257060A priority Critical patent/SU1451681A1/en
Application granted granted Critical
Publication of SU1451681A1 publication Critical patent/SU1451681A1/en

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)

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 входе регистра 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. 4040 Формула изобретени Invention Formula га, выходы младших разр дов иромежу- точньк регистров сдвига соединены с соответствующими входами первого дополнительного блока преобразова- ни  кода числа в двоичный код количества единиц, выходы старших разр дов второго дополнительного блока преобразовани  кода числа в двоичный код количества единиц соединены Q с входами (1+1)-го промежуточного регистра сдвига, а выход младшего ра:з- р да соединен с входом младшего разр да регистра результата, входы сдвига входных регистров, регистра резуль-,5 код количества единиц,, остальные вхо- тата и входы записи промежуточных ре- ды которого соединены с вькодамиha, the outputs of the lower bits of the transient shift registers are connected to the corresponding inputs of the first additional block for converting the number code to the binary code of the number of ones, the outputs of the higher bits of the second additional block for converting the code of the number to the binary code of the number of ones are connected Q to the inputs (1 +1) -th intermediate shift register, and the output of the younger ra: zrd is connected to the input of the lower digit of the result register, the input of the shift of the input registers, the result register, 5 code of the number of units, the remaining inputs that and the inputs of the intermediate records are connected to the codes преобразовани  кода числа в двоичный код количества единиц, выхода регистра сдвига, выход первого комбинационного сумматора соединен с входом регистра сдвига, все разр ды выхода регистра сдвига соединены с первым входом второго комбинационного сумматора, второй вход которого соединен с выходом старших разр дов накопительного регистра, младший разр д которого соединен с первым входом второго дополнительного блока преобразовани  кода числа в двоичныйconverting the code of the number into a binary code of the number of units, the output of the shift register, the output of the first combinational adder is connected to the input of the shift register, all bits of the output of the shift register are connected to the first input of the second Raman adder, the second input of which is connected to the output of the higher bits of the cumulative register, the youngest the bit of which is connected to the first input of the second additional block for converting a code to a number in binary гистров сдвига соединены с первьм входом синхронизации устройства, о т- личающеес  тем, что, с целью сокращени  аппаратурных затрат, устройство содержит два комбинационных сумматора, накопительньй регистр и регистр сдвига, причем выход первого дополнительного блока преобразовани  кода числа в двоичный код количества единиц соединен с первым входом первого комбинационного сумматора , второй вход которого соединен с разр дами .с п-го по (q+n-1)-и, гдеthe shift histories are connected to the first synchronization input of the device, which is characterized by the fact that, in order to reduce hardware costs, the device contains two combinational adders, a storage register and a shift register, and the output of the first additional block for converting the number code to the binary code of the number of ones is connected to the first input of the first combinational adder, the second input of which is connected to the bits. with the n-th to (q + n-1) -and, where 2020 младшего разр да блоков преобразова- ни  кода числа в двоичный код количества единиц, вход записи накопительного регистра соединен с первым входом синхронизации устройства, вход управлени  записью и сдвигом регистра сдвига и вход сдвига промежуточных регистров сдвига соединены с вторым вхо- 25 дом синхронизации устройства, выход младшего разр да (1+1) -го промежуточного регистра сдвига соединен с (-1+1 )-м входом первого блока преобразовани  кода числа в двоичньш код количестваthe lower bit of the number code to binary number conversion code block, the write input of the cumulative register is connected to the first synchronization input of the device, the write and shift control input of the shift register and the shift input of the intermediate shift registers are connected to the second synchronization input of the device, output the low-order (1 + 1) -th intermediate shift register is connected to the (-1 + 1) -th input of the first conversion unit of the number code to the binary quantity code п - разр дность промежуточных регист- зо единиц, вход сброса регистра сдвига ров сдвига; q --число разр дов вы- подключен к входу сброса устройства, хода первого дополнительного блокаn is the length of intermediate registers; the reset input of the shift shift register; q - the number of bits you connected to the device reset input, the course of the first additional block код количества единиц,, остальные вхо- ды которого соединены с вькодамиcode of the number of units, the remaining inputs of which are connected to the codes преобразовани  кода числа в двоичный код количества единиц, выхода регистра сдвига, выход первого комбинационного сумматора соединен с входом регистра сдвига, все разр ды выхода регистра сдвига соединены с первым входом второго комбинационного сумматора, второй вход которого соединен с выходом старших разр дов накопительного регистра, младший разр д которого соединен с первым входом второго дополнительного блока преобразовани  кода числа в двоичныйconverting the code of the number into a binary code of the number of units, the output of the shift register, the output of the first combinational adder is connected to the input of the shift register, all bits of the output of the shift register are connected to the first input of the second Raman adder, the second input of which is connected to the output of the higher bits of the cumulative register, the youngest the bit of which is connected to the first input of the second additional block for converting a code to a number in binary код количества единиц,, остальные вхо- ды которого соединены с вькодамиcode of the number of units, the remaining inputs of which are connected to the codes младшего разр да блоков преобразова- . ни  кода числа в двоичный код количества единиц, вход записи накопительного регистра соединен с первым входом синхронизации устройства, вход управлени  записью и сдвигом регистра сдвига и вход сдвига промежуточных регистров сдвига соединены с вторым вхо- дом синхронизации устройства, выход младшего разр да (1+1) -го промежуточного регистра сдвига соединен с (-1+1 )-м входом первого блока преобразовани  кода числа в двоичньш код количестваlow bit block conversion-. neither the number code in the binary code of the number of units, the write input of the cumulative register is connected to the first synchronization input of the device, the write control and the shift register shift input and the shift input of the intermediate shift registers are connected to the second synchronization input of the device, the low-order output (1 + 1 a) th intermediate shift register is connected to the (-1 + 1) th input of the first block of converting a number code to a binary number code ;з ; :; :;5гт5; г; жh; :; : 5gt5; g; Well «SJ"SJ v:v: 4h4h хГhG 0 0 2.12.1 золись cdSuzget angry cdSuz tStS CusurCusur нГng 660660 7/ П 7J7 / P 7J bvbv rcrc «о"about :: : ь:: s: кto XX SiJSij хx г. гyr 2.32.3 5five пгpg 5.Z5.Z ШSh 5.35.3 5five пP s.s. гтггhtgg Заг7асьLighted up I i М I II i M I I 7O 1 I I М1 I I M фиг.1figure 1
SU874257060A 1987-04-20 1987-04-20 Adder SU1451681A1 (en)

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)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
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