SU1499338A1 - Device for raising to power - Google Patents
Device for raising to power Download PDFInfo
- Publication number
- SU1499338A1 SU1499338A1 SU874271984A SU4271984A SU1499338A1 SU 1499338 A1 SU1499338 A1 SU 1499338A1 SU 874271984 A SU874271984 A SU 874271984A SU 4271984 A SU4271984 A SU 4271984A SU 1499338 A1 SU1499338 A1 SU 1499338A1
- Authority
- SU
- USSR - Soviet Union
- Prior art keywords
- input
- elements
- output
- inputs
- group
- Prior art date
Links
- 238000009434 installation Methods 0.000 claims 5
- 238000010276 construction Methods 0.000 abstract description 3
- 238000000034 method Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000001934 delay Effects 0.000 description 1
Landscapes
- Complex Calculations (AREA)
Abstract
Изобретение относитс к автоматике и вычислительной технике и может быть использовано при построении специализированных вычислительных машин и функциональных преобразователей. Цель изобретени - расширение класса решаемых задач за счет дополнительной возможности возведени в геометрически возрастающую степень чисел, заданных последовательностью импульсов или последовательным позиционным кодом. Поставленна цель достигаетс тем, что в устройство, содержащее два счетчика 1 и 2, первый 5 и второй 6 триггеры, первую группу 8 элементов И, элементы И 11-18, элементы ИЛИ 19-22, введены втора 9 и треть 7 группы элементов И, сумматор 4, элементы задержки 23-27. 1 ил.The invention relates to automation and computing and can be used in the construction of specialized computers and functional converters. The purpose of the invention is to expand the class of tasks to be accomplished due to the additional possibility of raising to a geometrically increasing degree the numbers specified by a sequence of pulses or a sequential positional code. The goal is achieved by the fact that the device containing two counters 1 and 2, the first 5 and the second 6 triggers, the first group of 8 elements AND, elements 11-18, elements OR 19-22, entered the second 9 and the third 7 groups of elements AND adder 4, delay elements 23-27. 1 il.
Description
33 V33 V
СО со оэ оэCO so oe oe
0000
Изобретение относитс к области автоматики и вычислительной техники, в частности может быть использовано при построении специализированных вычислительных машин и функциональных преобразователей,The invention relates to the field of automation and computing, in particular, can be used in the construction of specialized computers and functional converters,
Цельго изобретени вл етс расширение класса решаемых задач за счет дополнительной возможности возведени в геометрически возрастающую степень чисел, заданных последовательностью импульсов или последовательным позиционным кодом.The purpose of the invention is the expansion of the class of tasks due to the additional possibility of raising to a geometrically increasing degree the numbers defined by a sequence of pulses or a sequential positional code.
На чертеже представлена структурна схема устройства дл возведени в степеньThe drawing shows a block diagram of a device for exponentiation
На схеме .обозначены: счетчики 1 и 2, регистр 3 сдвига, сумматор 4,триггеры 5 и 6, группы элементов И 7 - 9, группа элементов ИЛИ 10, элементы И 11, 12, 13- 18, ИЛИ 19 - 22, элементы 23 - 27 задержки, информационный вход 28, входы 29-31 задани реступает на информационные входы группы элементов И 8 через rpyimy элементов ИЛИ 10)„ Затем импульс с выхода элемента И 15 прохбдит через элемент 25 задержки, элементы И 14, ИЛИ 21 и прибавл ет единицу к содержимому счетчика 1.The diagram shows: counters 1 and 2, shift register 3, adder 4, triggers 5 and 6, groups of elements AND 7–9, group of elements OR 10, elements 11, 12, 13-18, OR 19-22, elements 23 - 27 delays, information input 28, inputs 29-31 of the task enter the information inputs of the group of elements AND 8 through the rpyimy of the elements OR 10) “Then the pulse from the output of the element AND 15 passes through the element 25 of the delay, elements AND 14, OR 21 and added em unit to the contents of the counter 1.
Аналогичные вычислени провод т10 с дл каждого импульса, поступившего на информационный вход 28 устройства ,Similar calculations were carried out for 10 seconds for each pulse received at the information input 28 of the device,
Сигнал сброса, поступающий после числа X на вход 33, через элементA reset signal, coming after the number X at the input 33, through the element
15 ИЛИ 19 устанавливает триггер 5 в единичное состо ние и вычитает единицу из числа К, записанного в счетчике 2, Если значение К К-1 равно нулю, то на выходе элемента ИЛИ 20 будет ну20 левой сигнал и процесс вычислени прекращаетс . При этом в сумматоре 4 будет значение X „15 OR 19 sets the trigger 5 to one and subtracts the unit from the number K recorded in counter 2. If the value of K K-1 is zero, then the output of the OR 20 element will be at the left 20 and the calculation process is terminated. At the same time in the adder 4 will be the value of X „
В случае, если значение К К-1 больше нул , то на выходе элемента .жима, тактовый вход 32, вход 33 сбро- 25 ИЛИ 20 единичный сигнал остаетс .ПриIn case the value of KK-1 is greater than zero, then at the output of the clamp element, clock input 32, input 33 reset 25 OR 20, a single signal remains.
са, управл ющий вход 34, выход 35 счетчика 1.Sa, control input 34, output 35 of counter 1.
Устройство работает следующим образоМоThe device works as follows
При возведении в геометрически возрастающута степень числа X, заданного последовательностью импульсов и поступающего на информационный вход 28, на входе 29 задани режима работы должен быть единичный, а на входах 30, 31 и 34 устройства нулевые сигналы При этом счетчик 1 и сумматор 4 свободны, а в счетчике 2 должно быть записано число К, равное двоичному логарифму степени (например, дл степени 2 - число I; дл степени 2 - число 2; дл степени 2 - число К), вследствие чего на выходе элемента ИЛИ 20 есть единичный сигнал Вместе с тем, на вход 32 поступают тактовые импульсы определенной частоты, а триггеры 5 и 6 - в нулевом состо нииWhen erected in a geometrically increasing manner, the degree of the number X defined by a sequence of pulses and arriving at information input 28, must have a single input at input 29, and zero signals at device inputs 30, 31, and 34. At that, counter 1 and adder 4 are free, and counter 2 should contain the number K equal to the binary logarithm of the degree (for example, for degree 2, the number I; for degree 2, the number 2; for degree 2, the number K), resulting in the output of the OR element 20 there is a single signal However, at the input 32 they receive t such as are for pulses of a certain frequency, and the flip-flops 5 and 6 - the zero state
С приходом первого импульса на информационный вход 28 через элемент И 15 к содержимому сумматора 4 прибавл етс единица. Кроме того, импульс с выхода элемента И 15 открывает группу элементов ИЗ, через которую содержимое счетчика 1 передаетс на первую группу входов (в п младших разр дов) сумматора 4 со сдвигом на один разр д влево, , удвоенное значение (содержимое счетчика 1 по35With the arrival of the first pulse, the information input 28 through the AND 15 element adds one to the contents of the adder 4. In addition, the pulse from the output of the element 15 opens a group of elements from the I, through which the contents of counter 1 is transferred to the first group of inputs (in n the least significant bits) of the adder 4 with a shift of one bit to the left, double the value (the contents of counter 1 through 35
4040
этом импульс с выхода элемента ИЛИ 19 проходит через элемент 23 задержки , вследствие чего на выходе элемента И 12 возникает единичный сиг30 нал. Этот сигнал через элемент ИЛИ 22 устанавливает счетчик 1 и регистр сдвига 3 в нулевое состо ние, а затем через элемент 26 задержки переписывает содержимое сумматора 4 в регистр 3 сдвига и устанавливает в счетчике 1 в дополнительном коде число , равное количеству разр дов п регистра 3 сдвига. Далее сигнал с входа элемента 26 задержки через элемент 27 задержки устанавливает сумматор 4 в нулевое состо ние, а три:- гер 6 - в единичное состо ние. При этом на единичном выходе.триггера 6 возникает единичный сигнал.This impulse from the output of the element OR 19 passes through the element 23 of the delay, as a result of which a single signal occurs at the output of the element And 12. This signal through the element OR 22 sets the counter 1 and the shift register 3 to the zero state, and then through the delay element 26 writes the contents of the adder 4 into the shift register 3 and sets a number in the counter 1 in the additional code equal to the number of bits of the shift register n 3 . Further, the signal from the input of the delay element 26 through the delay element 27 sets the adder 4 to the zero state, and three: - ger 6 - to the single state. At the same time on a single output. Trigger 6, a single signal occurs.
Если на выходе первого (самого младшего) разр да регистра 3 сдвига единичный сигнал, то первый тактовый импульс, поступающий на вход 32; через элемент И. 13 открьшает группуIf the output of the first (youngest) bit of the 3 shift register is a single signal, then the first clock pulse arriving at input 32; through element I. 13 opens the group
50 элементов И 7, через которую содержимое регистра 3 сдвига, кроме самого младшего разр да, передаетс на вторую группу входов (в п+1.старших разр дов) сумматора 4 со сдвигомThe 50 elements And 7, through which the contents of the register 3 shift, except for the least significant bit, are transmitted to the second group of inputs (in n + 1. most significant bits) of the adder 4 with the shift
55 на один разр д влево, т.е. удвоенное значение. Вместе с тем к содержимому сумматора 4 в (2п+1)-й разр д прибавл етс единица. Затем первый так- товый импульс через элемент И 11 и 4555 one bit to the left, i.e. double value. However, one is added to the contents of adder 4 at (2n + 1) -th bit. Then the first tick pulse through the element And 11 and 45
ступает на информационные входы группы элементов И 8 через rpyimy элементов ИЛИ 10)„ Затем импульс с выхода элемента И 15 прохбдит через элемент 25 задержки, элементы И 14, ИЛИ 21 и прибавл ет единицу к содержимому счетчика 1.steps on the information inputs of the group of elements AND 8 through the rpyimy of the elements OR 10) "Then the pulse from the output of the element 15 goes through the element 25 of the delay, elements 14 and OR 21 and adds one to the contents of counter 1.
Аналогичные вычислени провод тс дл каждого импульса, поступившего на информационный вход 28 устройства ,Similar calculations are performed for each pulse arriving at device information input 28,
Сигнал сброса, поступающий после числа X на вход 33, через элементA reset signal, coming after the number X at the input 33, through the element
ИЛИ 19 устанавливает триггер 5 в единичное состо ние и вычитает единицу из числа К, записанного в счетчике 2, Если значение К К-1 равно нулю, то на выходе элемента ИЛИ 20 будет нулевой сигнал и процесс вычислени прекращаетс . При этом в сумматоре 4 будет значение X „OR 19 sets the trigger 5 to one and subtracts one from the number K recorded in counter 2. If the value of K K-1 is zero, then the output of the element OR 20 will have a zero signal and the calculation process will stop. At the same time in the adder 4 will be the value of X „
5five
00
этом импульс с выхода элемента ИЛИ 19 проходит через элемент 23 задержки , вследствие чего на выходе элемента И 12 возникает единичный сиг0 нал. Этот сигнал через элемент ИЛИ 22 устанавливает счетчик 1 и регистр сдвига 3 в нулевое состо ние, а затем через элемент 26 задержки переписывает содержимое сумматора 4 в регистр 3 сдвига и устанавливает в счетчике 1 в дополнительном коде число , равное количеству разр дов п регистра 3 сдвига. Далее сигнал с входа элемента 26 задержки через элемент 27 задержки устанавливает сумматор 4 в нулевое состо ние, а три:- гер 6 - в единичное состо ние. При этом на единичном выходе.триггера 6 возникает единичный сигнал.This impulse from the output of the element OR 19 passes through the element 23 of the delay, as a result of which a single signal appears at the output of the element And 12. This signal through the element OR 22 sets the counter 1 and the shift register 3 to the zero state, and then through the delay element 26 writes the contents of the adder 4 into the shift register 3 and sets a number in the counter 1 in the additional code equal to the number of bits of the shift register n 3 . Further, the signal from the input of the delay element 26 through the delay element 27 sets the adder 4 to the zero state, and three: - ger 6 - to the single state. At the same time on a single output. Trigger 6, a single signal occurs.
Если на выходе первого (самого младшего) разр да регистра 3 сдвига единичный сигнал, то первый тактовый импульс, поступающий на вход 32; через элемент И. 13 открьшает группуIf the output of the first (youngest) bit of the 3 shift register is a single signal, then the first clock pulse arriving at input 32; through element I. 13 opens the group
0 элементов И 7, через которую содержимое регистра 3 сдвига, кроме самого младшего разр да, передаетс на вторую группу входов (в п+1.старших разр дов) сумматора 4 со сдвигом0 elements And 7, through which the contents of the register 3 shift, except the youngest bit, is transmitted to the second group of inputs (in n + 1. most significant bits) of the adder 4 with a shift
5 на один разр д влево, т.е. удвоенное значение. Вместе с тем к содержимому сумматора 4 в (2п+1)-й разр д прибавл етс единица. Затем первый так- товый импульс через элемент И 11 и 55 one bit to the left, i.e. double value. However, one is added to the contents of adder 4 at (2n + 1) -th bit. Then the first tick pulse through the element 11 and 5
5five
элемент 24 задержки осуществл ет сдвиг содержимого сумматора 4 на два разр да вправо и сдвиг содержимого регистра 3 сдвига на один разр д вправо„the delay element 24 shifts the contents of the adder 4 by two bits to the right and the shift of the contents of the register 3 shifts by one bit to the right
Кроме того, импульс с выхода элемента 24 задержки проходит через элемент ИЛИ 21 и прибавл ет единицу к содержимому счетчика 1 оIn addition, the pulse from the output of the delay element 24 passes through the OR element 21 and adds one to the contents of the counter 1 o
В случае, если на выходе самого младшего разр да - нулевой сигнал, то первый тактовый импульс только через элемент И И и элемент 24 задержки осуществл ет сдвиг содержимо- го сумматора 4 на два разр да вправо и сдвиг содержимого регистра 3 сдвига на один разр д вправо, В этом случае импульс с выхода элемента 24 задержки также проходит через элемент ШШ 21 и прибавл ет единицу к содержимому счетчика 1.If the output of the least significant bit is a zero signal, then the first clock pulse through the AND element only and the delay element 24 shifts the content adder 4 by two bits to the right and the shift of the shift register 3 by one bit to the right. In this case, the pulse from the output of the delay element 24 also passes through the element 21 21 and adds one to the contents of counter 1.
Аналогичные вычислени провод тс дл каждого тактового импульса, поступившего на вход 32. После сдвига числа в регистре 3 сдвига п раз в счетчик 1 поступит п импульсов,вследствие чего на выходе 35 этого счетчика возникает единичный сигнал, который устанавливает триггер 6 в нуле- вое состо ние. Благодар этому поступление тактовых импульсов через элементы И 13 и 11 прекращаетс . Вместе с тем единичный сигнал с выхода 35 счетчика 1 через элементы ИЛИ 19 вычитает единицу из числа К, записанного в счетчике 2..Similar calculations are performed for each clock pulse received at input 32. After shifting the number in shift register 3, n pulses go to counter 1, resulting in a single signal at output 35 of this counter, which sets trigger 6 to zero. the Due to this, the arrival of the clock pulses through the elements And 13 and 11 is terminated. However, a single signal from the output 35 of the counter 1 through the elements OR 19 subtracts one from the number K recorded in the counter 2 ..
Если К К-1 больше нул , то на выходе элемента ИЛИ 20 останетс еди ничньй сигнал. При этом единичный сигнал с выхода элемента ИЛИ 19 проходит через элемент 23 задержки, вследствие чего на выходе элемента И 12 возникает единичный сигнал.If K K-1 is greater than zero, then a single signal will remain at the output of the OR 20 element. While a single signal from the output of the element OR 19 passes through the element 23 of the delay, resulting in the output element And 12 there is a single signal.
Далее устройство работает знало- гично описанному.Next, the device works as described.
В случае, если значение К К-1 равно нулю, то на выходе элемента ИЛИ 20 возникает нулевой сигнал и процесс вычислени прекращаетс . If the value of KK-1 is zero, then a zero signal occurs at the output of the OR 20 element and the calculation process is terminated.
В результате в сумматоре 4 будет значение х, где К - первоначальное значение, записанное в счегчи- ке 2„As a result, in adder 4, there will be a value x, where K is the initial value recorded in the slice 2 „
ма работы должен быть единичный, а на входах 29 и 31 устройстпа нулевые сигналы. При этом регистр 3 сдвига , сумматор 4 и счетчик I свободны, а в счетчике 2 записано число К, равное двоичному логарифму степени, вследствие чего на выходе элемента ИЛИ 20 есть единич№1Й сигнал.Вместе с тем, на вход 32 поступают тактовые импульсы определенной частоты,а триггеры 5 и 6 - в нулевом состо нииWork must be single, and at inputs 29 and 31 there are zero signals. In this case, the shift register 3, the adder 4 and the counter I are free, and the counter 2 records the number K equal to the binary logarithm of the degree, so that the output of the OR 20 element is the 1 st signal. However, the input pulses 32 frequencies, and triggers 5 and 6 are in the zero state
В первом такте на вход 34 управлени поступает единичный сигнал,который через элемент И 17 осуществл ет сдвиг содержимого сумматора 4 и регистра 3 сдвига соответственно на два и один разр д влево. Во втором такте при наличии единицы в данном разр де последовательного кода, поступающего на информационный вход 28 устройства, через элемент И 15 к содержимому сумматора 4 прибавл етс единицао Кроме того, импульс с выхода элемента И 15 открывает группу элементов И 8, через которую содержимое регистра 3 сдвига, кроме: первого самого младшего разр да, передаетс на первую группу входов сумматора 4 со сдвигом на один разр д влево, т.е удвоенное значение. Затем импульс с выхода элемента И 15 проходит через элемент 25 задержки, элемент И 16 и записывает единицу в регистр 3 сдвига .In the first cycle, a single signal is received at the control input 34, which, through the element 17, shifts the contents of the adder 4 and the shift register 3 by two and one bits to the left, respectively. In the second cycle, if there is a unit in the given bit of a serial code arriving at the device information input 28, the unit 15 is added to the contents of the adder 4 In addition, the pulse from the output of the And 15 element opens the group of elements And 8 through which the contents of the register 3 shifts, except for: the first least significant bit, is transmitted to the first group of inputs of the adder 4 with a shift of one bit to the left, i.e. a double value. Then the pulse from the output of the element And 15 passes through the element 25 of the delay, the element And 16 and writes a unit in the register 3 shift.
В случае, если в данном разр де п последовательного кода, поступающего на информационный вход 28 устройства , единица отсутствует, то второй такт не выполн етс If there is no unit in this bit n of the sequential code arriving at the device information input 28, the second clock is not executed.
Аналоп-гчные вычислени производ тс дл каждого разр да, поступившего на информационный вход 28 устройства .Analogue computing is performed for each bit received at device information input 28.
После окончани числа х, заданного последователышм позиционным кодом, на вход 33 поступает сигнал сброса. При этом последующие вычислени выполн ютс в устройстве так, как при поступлении сигнала сброса после числа, заданного последовательностью импульсов. В результатеAfter the end of the number x specified by the sequential positional code, a reset signal is sent to the input 33. In this case, the subsequent calculations are performed in the device as when a reset signal is received after the number specified by the sequence of pulses. As a result
Л1/L1 /
в сумматоре 4 будет значение х . В случае возведени в степень чисin the adder 4 will be the value of x. In the case of raising to the power of
В случае возведени в геометричес- - ла, заданного параллельным кодом, ки возрастающую степень числа х, за- на входе 31 задани режима должен данного последовательным позиционным быть единичный, а на входах 28, 29,In the case of construction in a geometric, given by a parallel code, the increasing degree of the number x, at the input of the mode setting 31, must be given a serial positional one, and at the inputs 28, 29,
.30, 33 и 34 устройства нулевые сигналы . При этом в сумматоре 4 записакодом и поступающего на информационный вход 28, на шине 30 задани , режино число, которое необходимо возвести в степень 2, а в счетчике 2 записано число К, равное двоичному логарифму степени, вследствие чего на выхбде элемента ИЛИ 20 есть единичный сигнало Вместе с тем, на вход 32 поступают тактовые импульсы определенной частоты, а триггер; 1 5 и 6 - в нулевом состо нии..30, 33 and 34 devices are zero signals. At the same time, in the adder 4 by the record and arriving at the information input 28, on the bus 30 of the task, the number is to be raised to the power 2, and in the counter 2 the number K is equal to the binary logarithm of the degree, as a result of which the output element OR 20 is signal At the same time, the input of 32 receives clock pulses of a certain frequency, and a trigger; 1 5 and 6 - in the zero state.
Первый тактовый импульс, поступающий на вход 32, проходит через элементы И 18 и ИЛИ 22о Далее устройство работает так, как при прохождении единичного сигнала с выхода элемента И 12 через элемент ИЛИ 22 при возведении в степень числа, заданного последовательностью импульсов, В результате в сумматоре 4 будет записано значение х.The first clock pulse arriving at input 32 passes through AND 18 and OR 22o elements. Next, the device works as when a single signal passes from an AND 12 element output through an OR 22 element while raising the power of the number specified by a sequence of pulses. As a result, in the adder 4, the value x will be written.
Claims (1)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| SU874271984A SU1499338A1 (en) | 1987-04-27 | 1987-04-27 | Device for raising to power |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| SU874271984A SU1499338A1 (en) | 1987-04-27 | 1987-04-27 | Device for raising to power |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| SU1499338A1 true SU1499338A1 (en) | 1989-08-07 |
Family
ID=21314690
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| SU874271984A SU1499338A1 (en) | 1987-04-27 | 1987-04-27 | Device for raising to power |
Country Status (1)
| Country | Link |
|---|---|
| SU (1) | SU1499338A1 (en) |
-
1987
- 1987-04-27 SU SU874271984A patent/SU1499338A1/en active
Non-Patent Citations (1)
| Title |
|---|
| Введение в кибернетическую технику Обработка физической информации под ред. БоНоМалиновскогОо Киев: Наукова думка, 1979, с.256. Авторское свидетельство СССР 1171786, кл„ G 06 F 7/552, 1983о * |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4160154A (en) | High speed multiple event timer | |
| SU1441402A1 (en) | Apparatus for majority selection of signals | |
| SU1264165A1 (en) | Adder-accumulator | |
| SU1517136A1 (en) | Series-to-parallel code converter | |
| SU1476459A1 (en) | Arithmetic unit | |
| SU999047A1 (en) | Device for computing x , x,mx argument, set by parallel and unit counting | |
| SU1386988A1 (en) | Device for determining extremes | |
| SU567208A2 (en) | Multidigit decade counter | |
| SU911526A1 (en) | Device for multiplying unit-counting codes | |
| SU1709536A1 (en) | Converter of codes | |
| SU1280390A1 (en) | Digital filter | |
| SU1162040A1 (en) | Digital accumalator | |
| SU1677870A1 (en) | Controlled frequency divider with fractional division coefficient | |
| SU1438008A1 (en) | Code converter | |
| SU725072A1 (en) | Device for determining maximum number from a series of numbers | |
| SU1562966A1 (en) | Device for selection of asynchronous signals on basis of criterion "m out of n" | |
| SU1474629A1 (en) | Quadratic function computing device | |
| SU1387182A1 (en) | Programmed multichannel timer | |
| RU1827719C (en) | Analyzer of state of channel of multiple access | |
| SU1541586A1 (en) | Timer | |
| SU1504652A1 (en) | Queue orering device | |
| RU2047272C1 (en) | Reversible binary counter | |
| SU1531172A1 (en) | Parallel asynchronous register | |
| SU1409955A1 (en) | Device for shaping "unity time mark" signal for digital recorder of seismic waves | |
| SU1438003A1 (en) | Binary code to time interval converter |