SU1076904A1 - Device for raising to some power - Google Patents

Device for raising to some power Download PDF

Info

Publication number
SU1076904A1
SU1076904A1 SU823396077A SU3396077A SU1076904A1 SU 1076904 A1 SU1076904 A1 SU 1076904A1 SU 823396077 A SU823396077 A SU 823396077A SU 3396077 A SU3396077 A SU 3396077A SU 1076904 A1 SU1076904 A1 SU 1076904A1
Authority
SU
USSR - Soviet Union
Prior art keywords
input
counter
output
decimal
inputs
Prior art date
Application number
SU823396077A
Other languages
Russian (ru)
Inventor
Альберт Никитович Фойда
Давид Григорьевич Ротенберг
Олег Трофимович Чигирин
Юрий Трофимович Чигирин
Original Assignee
Предприятие П/Я В-8117
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 Предприятие П/Я В-8117 filed Critical Предприятие П/Я В-8117
Priority to SU823396077A priority Critical patent/SU1076904A1/en
Application granted granted Critical
Publication of SU1076904A1 publication Critical patent/SU1076904A1/en

Links

Landscapes

  • Complex Calculations (AREA)

Abstract

УСТРОЙСТВО ДЛЯ ВОЗВЕДЕНИЯ В СТЕПЕНЬ, содержащее регистр основани , матрицу умножени  двух разр дов , матрицу возведени  дес тичной цифры в квадрат, дес тичный счетчик, преобразователь дес тичного числа в число-импульсный код, генератор импульсов , а также блок управлени , содержащий генератор тактов, счетчик и первый дешифратор, выход генератора тактов соединен со счетным входом счетчика, разр дные выходы которого соединены с информационными входами первого дешифратора, разр дные выходы регистра основани  соединены с первыми группами входов матриц умножени  двух разр дов и возведени  дес тичной цифры в квадрат, разр дные выходы матриц возведени  дес тичной цифры в квадрат соединены с разр дными входами дес тичного счетчика, счетный вход которого соединен с выходом преобразовател  дес тичного числа в число-импульсный код, разр дные входы которого соединены с разр дными выходами матрицы умножени  двух разр дов, тактовый вход преобразовател  дес тичного числа в число-импульсный код соединен с выходом генератора импульсов, о ct л ичающеес  тем, что, с целью расширени  функциональных возмсжностей путем получени  возможности извлечени  квадратного корн  из .дес тичного числа, в него введены вычитающий счетчик, группа элементов И, схема сравнени , блок хранени  констант, в блок управлени  введены элемент ИЛИ, первый и второй триггеры , триггер режимов, первый, второй и третий элементы И, счетчик циклов, счетчик тактов, второй и третий дешифраторы, группа элементов ИЛИ, первый, второй, третий, четвертый и п тый выходы первого дешифрат тора соединены с первыми входами cooTBeTcjTByromHx элементов группы ИЛИ, первый выход :второго дешифратора соединен с вторыми входами элементов группы ИЛИ, выходы элементов группы ИЛИ с первого по п тый динены соответственно с управл ющисл ми входами регистра основани , мат-, рицы возведени  дес тичной цифры в квадрат, дес тичного счетчика, матрицы умножени  двух разр дов и преобразовател  дес тичного числа в числоимпульсный код, перва  группа информационных входов схемы сравнени  соединена с разр дными выходами регистра основани , втора  группа информационных входов схемы сравнени  соединена с разр дными выходами дес тичного счетчика, выход схемы сравнени  соединен с первым входом первого элеСП мента группы И и входом установки в CD О 4 единицу второго триггера блока управлени , выход генератора импульсов соединен с вторым входом первого элемента И, выход которого соединен со счетным входом вычитающего счетчика, разр дные выходы которого соединены с вторыми группами разр дных входов матриц умножени  двух разр дов и возведени  дес тичной цифры в квадрат, информационные входы регистра основани  соединены с входом устройства, разр дные выходы блока хранени  констант соединены с .информационными . входами вычитающего счетчика, в блоке управлени  пр мой выход первогоA DEVICE FOR CONSTRUCTION TO A DEGREE, containing a base register, a matrix of multiplying two bits, a matrix for raising a decimal digit in a square, a decimal counter, a decimal number to pulse number converter, a pulse generator, and a control unit containing a clock generator, the counter and the first decoder, the output of the clock generator is connected to the counter input of the counter, the bit outputs of which are connected to the information inputs of the first decoder, the bit outputs of the base register are connected to the first bars The packs of the inputs of the matrices for multiplying two bits and squaring the decimal digit into squares, the bit outputs of the squaring digit digestion matrices are connected to the digit inputs of the decimal counter, the counting input of which is connected to the output of the decimal number to pulse number code, the bit inputs of which are connected to the bit outputs of the matrix of multiplying two bits, the clock input of the converter of the decimal number into the number-pulse code is connected to the output of the pulse generator, which is ct Expansion of functional possibilities by obtaining the possibility of extracting the square root of a local number, a subtractive counter, a group of elements AND, a comparison circuit, a unit for storing constants are entered into it, an element OR, first and second triggers, mode trigger, first, second and third elements AND, cycle counter, clock counter, second and third decoders, a group of elements OR, first, second, third, fourth and fifth outputs of the first torch decoder are connected to the first inputs of cooTBeTcjTByromHx elements the OR group, the first output: the second decoder is connected to the second inputs of the elements of the OR group, the outputs of the elements of the OR group from the first to the fifth are connected to the control inputs of the base register, the matrix of the construction of the decimal digit in the square, the ten counter, the multiplication matrix of two bits and a decimal number converter in a pulse code, the first group of information inputs of the comparison circuit is connected to the bit outputs of the base register, the second group of information inputs of the comparison circuit The dinene with the bit outputs of the decimal counter, the output of the comparison circuit is connected to the first input of the first electroscope of the group I and the installation input to the CD O 4 unit of the second trigger of the control unit, the output of the pulse generator is connected to the second input of the first element And whose output is connected to the counting the input of the subtracting counter, the bit outputs of which are connected to the second groups of bit inputs of the matrix of multiplying two bits and raising the decimal digit to a square, the information inputs of the base register are connected to input Device house The discharge outlets constants storage unit connected to .informatsionnymi. the inputs of the subtracting counter, in the control unit, the direct output of the first

Description

триггера соединен с первым входом первого элемента И, выход которого соединен со счетным входом счетчика циклов, разр дные выходы которого соединены с информационны входами второго дешифратора, второй выход которого соединен с входом установки в нуль второго триггера и первым входом второго элемента ИЛИ, выход генератора тактов соединен с вторым входом первого элемента И и первым входом второго элемента И, второй вход которого соединен с инверсным выходом первого триггера, вход сброса которого соединен с третьим выходом дешифратора, вход установки в единицу-первого триггера соединен с выходом второго элемента ИЛИ, второй вход которого соединен с выходом третьего элемента И и входом сброса счетчика циклов, первый вход третьего элемента И соединен с первым выходом третьего дешифратора, информа ,ционные входыкоторого соединены с разр дными выходами счетчика тактов , счетный в.ход которого соединен the trigger is connected to the first input of the first element AND, the output of which is connected to the counting input of the cycle counter, the bit outputs of which are connected to the information inputs of the second decoder, the second output of which is connected to the input of the second element OR, the output of the clock generator connected to the second input of the first element And the first input of the second element And, the second input of which is connected to the inverse output of the first trigger, the reset input of which is connected to the third output of the decoder, the installation process in the unit-first trigger is connected to the output of the second element OR, the second input of which is connected to the output of the third element AND and the reset input of the cycle counter, the first input of the third element AND is connected to the first output of the third decoder, informational inputs of which are connected to the bit outputs clock counter whose counting input is connected

с выходом второго элемента И, второй вход третьего элемента И соединен с пр мым выходом второго триггера, стробируюадие входы первого и второго дешифраторов соединены с первым выходом триггера режимов, второй выход которого соединен со стробирующим входом третьего дешифратора, второй,третий.,четвертый, п тый,шестой и седьмой выходы третьего деи1ифратор соединены соответственно с управл ющими входами регистра основани , .матрицы возведени  дес тичной цифры в квадрат, дес тичного счетчика, матрицы умножени  двух разр дов, пр ёобразовател  дес тичного числа в число-импульсный код и управл ющим входом схемы сравнени , второй выход второго дешифратора соединен с ВХОДОМ установки числа вычитающего счетчика и входом разрешени  считывани  числа блока хранени  конс .тант, седьмой выход треть- его дешифратора соединен с третьим входом элемента И .with the output of the second element And the second input of the third element And is connected to the direct output of the second trigger, gating the inputs of the first and second decoders connected to the first output of the mode trigger, the second output of which is connected to the gate input of the third decoder, second, third., fourth, p The sixth, sixth and seventh outputs of the third deifferent are connected respectively to the control inputs of the base register, the matrix of raising the decimal digit in a square, the decimal counter, the matrix of multiplying two bits, the transforms the body of the decimal number in the pulse number code and the control input of the comparison circuit, the second output of the second decoder is connected to the INPUT setting the number of the subtracting counter and the input of the read resolution of the number of the storage unit consant, the seventh output of the third decryptor is connected to the third input of the AND element .

Изобретение-относитс  к вычислительной технике и может быть применено в цифровых приборах дл  обработки результатов измерени . Известно устройство, содержащее генератор импульсов, группу элементов И, счетчик результата-, счетчик числа и группу дешифраторов нул  и позвол ющее возводить дес тичные числа, представленные двоично-дес тичным кодом, в квадрат 1. . Наиболее близким по технической су11(ности к изобретению  вл етс  уст ройство, содержащее регистр основани , матрицу разр дов, матрицу произведени  двух разр дов, накопитель преобразователь числа в код,генератор импульсов и схему управлени  2 Недостатком известных устройств  вл етс  невозможность извлечени  квадратного корн  из заданного числ Цель изобретени  - расширение Функциональных возможностей устройс ва путем получени  возможности извл чени  квадратного корн  из дес тичного числа. . Поставленна  цель достигаетс  те что в устройство дл  возведени  в степень, содержащее регистр основани , матрицу умножени  двух разр до матрицу возведени  дес тичной цифры в квадрат, дес тичный счетчик, преобразователь дес тичного числа в число-импульсный код, генератор импульсов , а также блок управлени , содержащий генератор тактов, счетчик и первый дешифратор, выход генератора тактов соединен со счетным входом счетчика, разр дные выходы которого соединены с информационными входами первого дешифратора, разр дные выходы регистра основани  соединены с первыми группами разр дных входов матриц умножени  двух разр дов и возведени  дес тичной цифры в квадрат, разр дные выходы матрицы возведени  дес тичной цифры в квадрат соединены с разр дными входами дес тичного счетчика, счетный вход которого соединен с выходом преобразовател  дес тичного числа, в число-импульсный код, разр дные входы которого соединены с разр дными выходами матрицы умножени  двух разр дов, тактовый вход преобразовател  дес тичного числа в число-импульсный ко соединен С выходом генератора импульсов, введены вычитающий счетчик, группа элементов И, схема сравнени , блок хранениа констант, в блок управлени  введены элемент ИЛИ, первый и второй триггеры, триггер режимов, первый, второй и третий элементы И, счетчик циклов, счетчик тактов, второй и третий дешифраторы, группа элементов ИЛИ, первый, второй, третий, четвертый и п тый выходы первого дешифратора соединены с первыми входами соответствующих элементов группы ИЛИ, первый выход второго дешифратора соединен с вторыми входами элементов группы ИЛИ, выходы элементов группы ИЛИ с первого по п тый соединены соответственно с управл ющими входами регистра основани , матрицы возведени  дес тичной цифры в квадрат, дес тичного счетчика, матрицы умножени  двух разр дов и преобразовател  дес тичного числа в число-импульсный код, перва  группа информационных входов схемы сравнени  соединена с разр дными выходами регистра основани , втора  группа информационных входов схемы сравнени  соединены с разр дными выходами дес тичного счетчика , выход схемы сравнени  соединен первым входом первого элемента группы И и входом установки в единицу второго триггера блока управлени , выход генератора импульсов соединен с вторым входом первого элемента И, выход которого соединен со счетным входом вычислительного счетчика, разр дные выходы которого соединены с вторыми группами разр дных входов матриц умножени  двух разр дов и возведени  дес тичной цифры в квадрат, информационные входы регистра основани  соединены с входом устройства разр дные выходы блока .хранени  констант соединены с информационными входами вычитающего счетчика, в блоке управлени  пр мой выход первого триггера соединен с первым входом первого элемента И, выход которого соединен со счетным входом счетчика циклов, разр дные выходы которого соединены с информационными входами второго дешифратора, второй выход которого соединен с входом установки в нуль второго триггера и первым входом второго элемента ИЛИ, выход генератора тактов соединен с вторым входом первого элемента И и первым входом второго элемента И, второй вход которого соединен с инверсным выходом первого триггера, вход сброса которого соединен с третьим выходом второго дешифратора, вход установки в единицу первого триггера соединен с выходом второго элемента ИЛИ, второй вход которого соединен с выходом третьего элемента И и входом сброса счетчика циклов, первый вход третьего элемента И соединен, с первым выходом третьего дешифра- . тора, информационные -входы которого соединены с разр дными выходами счетчика тактов, счетный вход которого соединен с выходом второго элемента И, второй вход третьего элемента И соединен с пр мым выходом второго триггера, стробирующие входы первого и второго дешифраторов соединеныThe invention is related to computing and can be applied in digital instruments for processing measurement results. A device is known that contains a pulse generator, a group of elements And, a result counter, a counter of a number and a group of decoders zero and allowing to erect decimal numbers represented by a binary-decimal code in square 1.. The closest in technical terms (the invention is a device containing a base register, a bit matrix, a two-bit product matrix, a number-to-code converter, a pulse generator, and a control circuit 2) The disadvantage of the known devices is the impossibility of extracting the square root from given number The purpose of the invention is the expansion of the functional capabilities of the device by obtaining the possibility of extracting a square root from a decimal number. An apparatus for raising to a power containing a base register, a matrix of multiplying two bits to a matrix for raising a decimal digit to a square, a decimal counter, a decimal number to pulse number converter, a pulse generator, and a control unit containing a clock generator, a counter and the first decoder, the output of the clock generator is connected to the counter input of the counter, the bit outputs of which are connected to the information inputs of the first decoder, the bit outputs of the base register are connected to the first groups of times the serial inputs of the matrix of multiplying two bits and the construction of the decimal digit in the square, the bit outputs of the matrix for the construction of the decimal digit in the square are connected to the bit inputs of the decimal counter, the counting input of which is connected to the output of the decimal converter, to the pulse number code, the bit inputs of which are connected to the bit outputs of the matrix of multiplying two bits, the clock input of the decimal number to pulse number converter is connected to the output of the pulse generator, a subtractive counter is entered, a group And, the comparison circuit, the storage unit of constants, the OR element, the first and second triggers, the mode trigger, the first, second and third AND elements, the cycle counter, the clock counter, the second and third decoders, the group of the OR elements, the first , the second, third, fourth and fifth outputs of the first decoder are connected to the first inputs of the corresponding elements of the OR group, the first output of the second decoder is connected to the second inputs of the elements of the OR group, the outputs of the elements of the OR group from the first to the fifth are connected The first group of information inputs of the comparison circuit is connected to the control inputs of the base register, the matrix for raising the decimal digit to the square, the decimal counter, the multiplication matrix of two bits and the decimal digitizer to the number-pulse code, the second group of information inputs of the comparison circuit is connected to the bit outputs of the decimal counter, the output of the comparison circuit is connected by the first input of the first element of group I and the installation input to the unit of the second trigger In the control unit, the output of the pulse generator is connected to the second input of the first element I, the output of which is connected to the counting input of the computing counter, the bit outputs of which are connected to the second groups of the bit inputs of the matrix of multiplying two bits and squaring the decimal digit in the square, information inputs the base register is connected to the device input; the bit outputs of the constant storage unit are connected to the information inputs of the detracting counter; in the control unit, the direct output of the first trigger is connected to By the first input of the first element I, the output of which is connected to the counting input of the cycle counter, the bit outputs of which are connected to the information inputs of the second decoder, the second output of which is connected to the input of the second trigger and the first input of the second element OR, the clock generator output is connected to the second the input of the first element And the first input of the second element And, the second input of which is connected to the inverse output of the first trigger, the reset input of which is connected to the third output of the second decoder, the input is ki in one of the first flip-flop connected to the output of the second OR gate, a second input coupled to an output of the third AND gate and the reset input of the loop counter, the first input of the third AND gate connected with the first output of the third deshifra-. torus, informational inputs of which are connected to the bit outputs of the clock counter, the counting input of which is connected to the output of the second element I, the second input of the third element I connected to the direct output of the second trigger, the gate inputs of the first and second decoders are connected

с первым выходом триггера режимов, .второй выход которого со стробирующим входом третьего дешифратора, второй , третий, четвертый, п тый, шестой и седьмой выходы третьего дешифратора соединены соответственно с управл ющими входами регистра основани , матрицы возведени  дес тичной цифры в квадрат, де.с тичного счетчика , матрицы умножени  двух разр дов , преобразовател  дес тичного числа в число-импульсный код и управл ющим входом схемы сравнени , второй выход второго дешифратора соединен с входом установки числа вычитающего счетчика и входом разрешени  считывани  числа блока хранени  констант, седьмой выход третьего дешифратора соединен с третьим входом элемента И. .with the first output of the trigger modes, the second output of which with the gate input of the third decoder, the second, third, fourth, fifth, sixth and seventh outputs of the third decoder are connected respectively to the control inputs of the base register, the matrix of erecting the decimal digit in the square, de. from a partial counter, a matrix of multiplying two bits, a decimal number converter into a number-pulse code and a control input of the comparison circuit, the second output of the second decoder is connected to the input of setting the number of the detracting counter and the input of the resolution for reading the number of the storage unit for the constants, the seventh output of the third decoder is connected to the third input of the element I.

На фиг, 1 изображена блок-схема предлагаемого устройства; на фиг. 2 блок-схема преобразовател  дес тичного числа в число-импульсный код; на фиг . 3 - блок-схема блока управлени Fig, 1 shows a block diagram of the proposed device; in fig. 2 is a block diagram of a decimal number-to-pulse code converter; in fig. 3 is a block diagram of a control unit.

Устройство дл  возведени  в степень (фиг. 1) содержит регистр 1 основани , матрицу 2 возведени  дес тичной цифры в квадрат, дес тичный счетчик 3, преобразователь 4 дес тичного числа в число-импульсный код генератор 5 импульсов, блок 6 управлени , матрицу 7 умножени  двух разр дов , вычитающий счетчик 8, элемент И 9 схему 10 сравнени  и блок 11 хранени  констант.The device for exponentiation (Fig. 1) contains the base register 1, the decimal digit squaring matrix 2, the decimal counter 3, the decimal converter 4, the pulse number generator 5 pulses, the control unit 6, the multiplication matrix 7 two bits, the subtracting counter 8, the AND 9 element of the comparison circuit 10 and the constant storage unit 11.

Преобразователь дес тичного числа в число-импульсный код (фиг. 2) содержит сдвиговый регистр 12, элементы И 13-17, схему ИЛИ 18, триггер 19 и схему И 20.The decimal number-to-pulse code converter (Fig. 2) contains a shift register 12, elements AND 13-17, an OR circuit 18, a trigger 19 and an AND 20 circuit.

Блок управлени  (фиг. 3) содержит генератор 21 тактов, счетчик 22, первый дешифратор 23, первый элемент И 24, счетчик 25 циклов, второй деимфратор 26, первый триггер 27, счетчик 28 тактов, третий дешифратор 29, второй триггер ЗО, второй элемент И 31, третий элемент И 32, элемент ИЛИ 33 , группу-, элементов ИЛИ 34 и триггер 35 режимов.The control unit (Fig. 3) contains a generator of 21 clocks, a counter 22, a first decoder 23, a first element I 24, a counter of 25 cycles, a second deimefrator 26, a first trigger 27, a counter 28 of clocks, a third decoder 29, a second trigger AOR, the second element And 31, the third element And 32, the element OR 33, group-, elements OR 34 and the trigger 35 modes.

В устройстве возведение дес тичного числа 3 квадрат производитс  с использованием таблицы J MHожени .In the device, the construction of a decimal number of 3 square is carried out using the J table.

При таком способе возведение дес тичного числа, например , в квадрат, где а - первый разр д числа, Ь - второй разр д, с - третий разр д, алгоритм работы устройства следующий. Сначала первый разр д числа умножаетс  на все разр ды числа А, начина  с первого разр да. Затем на все разр ды числа А умножаетс  второй разр д и т.д. Полученные частичные произведени.  суммируютс , причем каждое последующее частное произведени  сдвигаетс  относитель:но предыдущего на один разр д влево. 4р ЗрWith this method, the construction of a decimal number, for example, in a square, where a is the first digit of the number, b is the second bit, c is the third bit, the algorithm of the device operation is as follows. First, the first digit of a number is multiplied by all bits of the number A, starting with the first digit. Then the second bit is multiplied by all bits of the number A, and so on. The resulting partial products. are summed, with each subsequent partial product being shifted relative: but the previous one by one bit to the left. 4p Sp

5p

брbr

ГR

baba

аьai

ГR

При основании числа равном дес ти произведение одного разр да на ДРУ гой (аЬ, Ьа, са) занимает два разр да, а их уд6рAt the base of the number equal to ten, the product of one bit per DRUA (ab, la, sa) occupies two bits, and their

5p

4p

Как следует из приведенной -формы записи, суммирование частных произ-ведений дл  возведени  дес тичного числа в квадрат реализуетс  при помощи дес тичного счетчика.As follows from the reduced recording form, the summation of private products for raising a decimal number into a square is implemented using a decimal counter.

Частные произведени , равные квад рату каждого разр да, записываютс  в определенные разр ды счетчика: квадрат первого разр да (с) записываетс  в первый и второй разр ды счеучика, квадрат второго разр да (Ь) - в третий и четвертый разр ды счетчика, квадрат третьего разр даThe private products equal to the square of each bit are written into certain bits of the counter: the square of the first bit (c) is written into the first and second bits of the counter, the square of the second bit (b) into the third and fourth bits of the counter, square third grade yes

г g

в п тый и шестой разр ды счетчика . Частные произведени , равные удвоенным произведени м двух разр - 5in the fifth and sixth bits of the counter. Private works, equal to twice the works of two bits - 5

66

1076904 1076904

1P

2p

С-АSA

военное произведение - три разр да .military work - three bits.

Преобразуем приведенную форму записи в форму, удрбную дл  анализа.We transform the form of the record into a form that is suitable for analysis.

ЗрSp

2p

iPiP

дов (2сЬ, 2с4, 2ЬЗ), преобразуютс  в число-импульсный код и поступают «в определенные разр ды счетчика, где суммируютс  с числом, наход щимс  там.The poles (2cb, 2c4, 2b3) are converted into a number-pulse code and arrive at certain counts of the counter, where they are added to the number located there.

Число-импульсный код удвоенного произведени  2 с4 поступает на счетный вход второго разр да счетчика (единицы) и на счетный вход третьего разр да счетчика (дес тки). Число-импульсный код удвоенного произведени  2сЬ поступает на счетный вход третьего разр да счетчика (единицы ) и на счетный вход четвертого разр да счетчика (дес тки). Числоимпульсный код удвоенного произведени  2Ъа поступает на счетный вхо четвертого разр да счетчика (единицы и на счетный вход п того разр)вд счетчика (дес тки). В устройстве извлечение квадратного корн  из дес тичного числаД производитс  методом последовательных проб .за несколько циклов. Дл  этого последовательно возвод тс  в квадрат числа натурального р да а,, а,..., а, отличающиес  друг о друга на одну гра,цацию (единицу) , начина  с максимального числа, кото рое можно извлечь из максимального числа А о , и сравниваетс  с числом А . Последовательность таки:с операций продолжаетс  до тех пор, пока будет выполн тьс  неравенство а: , т.е. осуществл тьс  услови а . Операци  извлечени  квадрат ного корн  из дес тичного числа А окончитс  в тот момент, когда будет выполнено неравенство а/ А. Квадратный корень из числа А будет раве числу а ,когда впервые будет получена отрицательна  или равна  нулю разность а 2-А6-0 , Описанные алгоритмы воздействи  в квадрат и извлечени  квадратного корн  из числа реализует блок 6 управлени . Операци  возведени  в квадрат пр изводитс  следующим образом. При поступлении первого импульса из генератора 21 тактов в счетчик 22 дешифратор 23 выдает разрешающий сигнал на регистр 1 основани , по к торомув него записываетс  число А с1Ъс t которое необходимо возвести в квадрат. При поступлении в. счетчик 22 второго импульса из генерато ра 21 тактов дешифратор 23 вьщает разрешающий сигнал, который через группу элементов ИЛИ 34 поступает на матрицу 2. По этому сигналу квад рат каждого разр да а Ь с числа А поступает на соответствующие установочные входы определенных двоично-дес тичных счетчиков 3 накопител . При поступлении в счетчик 22 третьего импульса из тактового генератора 21 тактов дешифратор.- 23 выдает разрешающий сигнал на матрицу 7 умножени  и преобразователь 4 числа в код. По этому сигналу удвоенное произведение 20Ъ (единицы) из матрицы 7 поступает на.преобразо ватель 4 числа в код. При поступлении в счетчик 22 чет вертого импульса из генератора 21 тактов дешифратор 23 выдает разрешающий сигнал на матрицу 7 умножени  и преобразователь 4 числа в код По этому сигналу удвоенное произведение 2сЬ (дес тки) из матрицы 7 поступает на преобразователь 4 числа в код. При поступлении п того и шестого импульсов генератора 21 тактов в счетчик 22 производитс  преобразование удвоенного произведени  2 со| в пропорциональное число импульсов, которое поступает в счетчик 3. При поступлении .седьмого и восьмого импульсов из генератора 21 тактов в счетчик 22 дешифратор 23 выдает разрешающий сигнал на матрицу 7 умножени  и преобразователь 4 числа в код, по которому производитс  преобразование удвоенного произведени  2 Ьа, наход щегос  в матрице 7, в пропорциональное число импульсов, которое поступает в счетчик 3. Операци  извлечени  квадратного корн  производитс  следующим образом . При поступлении первого импульса из Денератора 21 тактов в счетчик 25 циклов дешифратор 26 выдает сигнал начальной установки, устанавливающий все блоки устройства, имеющие цифровую пам ть, в исходное состо ние . При поступлении в счетчик 25 циклов второго импульса из .генератора 21 тактов дешифратор 26 выдает разрешающий сигнал на блок 11 хранени  констант и регистр 1 основани . По этому сигналу число, хран щеес  в блоке 11, переписываетс  в вычитающий счетчик 8, а в регистр 1 основани  записываетс  число , из которого необходимо извлечь квад-; ратный корень. Кроме того, по сигналу дешифратора 26, поступающему через элемент ИЛИ 33, триггер 27 устанавливаетс  в исходное состо ние. При этом выходной сигнал триггера 27 запрещает прохождение сигналов генератора 21 тактов через элемент И 24 на счетчик 25 циклов и разрешает прохождение этих сигналов через элемент И 32 на счетчик 28 тактов. По первому импульсу, поступившему из генератора 21 тактов в счетчик 28 тактов через элемент И 32, дешифратор 29 выдает разрешающий потенциал на матрицу 2. По этому сигналу квадрат каждого разр да а, b с числа, записанного в вычитающий счетчик 8, поступает на соответствующие входы определенных двоично-дес тичных счетчиков 3 накопител . При поступлении в счетчик 28 тактов второго импульса из генератора 21 тактов дешифратор 29 выдает разрешающий сигнал на матрицу 7 умножени  и преобразователь 4 числа в код. По этому сигналу удвоенное произведение 2сЬ (единицы) из матрицы 7 умножени  поступает на преобразователь 4 числа в код. При поступлении в счетчик 28 тактов третьего импульса из генерато- ,The double pulse number code 2 c4 is fed to the counting input of the second digit of the counter (one) and to the counting input of the third digit of the counter (ten). The number-pulse code of doubled work 2cb arrives at the counting input of the third bit of the counter (one) and at the counting input of the fourth bit of the counter (ten). The number of the pulse code of the doubled product 2a is fed to the counting input of the fourth bit of the counter (one and to the counting input of the nth bit) along the counter (ten). In the device, the square root of the decimal number D is extracted by the method of successive tests. For several cycles. To do this, one consecutively squared the numbers of the natural series da, a, ..., a, differing one by one by grace, (unit), starting with the maximum number that can be extracted from the maximum number A o, and is compared with the number A. The sequence is as follows: the operations continue until the inequality a:, i. E. conditions are met. The operation of extracting the square root of the decimal number A ends at the moment when the inequality a / A is satisfied. The square root of the number A will be equal to the number a, when the difference a 2 is first negative or equal to zero, the difference The square-root and square-root action algorithms are implemented by control block 6. The squaring operation is as follows. When the first pulse arrives from the generator of 21 clocks in the counter 22, the decoder 23 outputs an enable signal to the base register 1, and the number A c1cc t is written to square on it. Upon admission to. the counter 22 of the second pulse from the generator of 21 cycles the decoder 23 carries the enabling signal, which through the group of elements OR 34 enters the matrix 2. By this signal, the square of each bit a b of the number A goes to the corresponding installation inputs of certain binary-decimal counters 3 drives. When a third pulse arrives in counter 22 from a clock generator of 21 clocks, a decoder. 23 outputs an enable signal to a multiplication matrix 7 and a converter to 4 numbers in a code. According to this signal, the doubled product 20b (units) from matrix 7 is fed to a 4 digit converter into a code. When a fourth pulse arrives at the counter 22 from the generator of 21 cycles, the decoder 23 outputs a permit signal for the multiplication matrix 7 and the converter 4 numbers into the code. By this signal, the double product 2cb (ten) from the matrix 7 goes to the converter 4 numbers into the code. Upon receipt of the fifth and sixth pulses of the generator of 21 clocks in the counter 22, the doubled product conversion 2 with | to the proportional number of pulses that goes to counter 3. Upon receipt of the seventh and eighth pulses from the generator of 21 cycles into the counter 22, the decoder 23 outputs a permit signal to the multiplication matrix 7 and the converter 4 numbers to the code that doubles the double conversion, 2a, located in the matrix 7, in a proportional number of pulses, which enters the counter 3. The operation of extracting the square root is performed as follows. When the first pulse arrives from the Generator of 21 clocks in the counter of 25 cycles, the decoder 26 outputs the initial setup signal, which sets all the units of the device, having the digital memory, to the initial state. When the second pulse from the generator of 21 cycles arrives in the counter 25 cycles, the decoder 26 outputs an enable signal to the constant storage unit 11 and the base register 1. By this signal, the number stored in block 11 is rewritten into subtractive counter 8, and the number in register 1 is written to the base register; military root. In addition, by the signal of the decoder 26, coming through the element OR 33, the trigger 27 is reset. At the same time, the output signal of the trigger 27 prohibits the passage of the generator signals of 21 clocks through the AND 24 element to the counter of 25 cycles and allows the passage of these signals through the And 32 element to the counter of 28 clocks. According to the first impulse received from the generator of 21 clocks to the counter of 28 clocks through the element AND 32, the decoder 29 outputs the resolving potential to the matrix 2. According to this signal, the square of each bit a, b from the number recorded in the subtracting counter 8 goes to the corresponding inputs certain binary decimal counters 3 storage. Upon receipt of 28 clocks of the second pulse from the generator of 21 clocks in the counter, the decoder 29 outputs a permit signal to the multiplication matrix 7 and the converter 4 numbers to a code. By this signal, the doubled product of 2cb (units) from the multiplication matrix 7 is fed to the transducer 4 numbers in the code. Upon receipt in the counter 28 cycles of the third pulse from the generator,

pa 21 тактов дешифратор 29 выдает разрешающий сигнал на матрицу 7 умножени  и преобразователь 4 числа в код. По- этому сигналу удвоенное произведение 2сЪ (дес тки) из матрицы 7 умножени  поступает на преобразователь 4 числа в код.The pa of 21 clock decoder 29 provides the enable signal to the multiplication matrix 7 and the number 4 converter to the code. By this signal, the doubled product 2cb (ten) from the multiplication matrix 7 is fed to the transducer 4 numbers in the code.

При поступлении четвертого и п того импульсов из генератора 21 тактов в 28 тактов производитс  пцэобразование удвоенного произведени  2 cd в пропорциональное число импульсов, которое поступает в счетчик 3. .Upon receipt of the fourth and fifth pulses from the generator of 21 strokes in 28 clock cycles, the double generation of 2 cd is formed into a proportional number of pulses that enters counter 3..

При поступлении шестого и седьмого импульсов из генератора 21 тактов в, счетчик 28 тактов дешифратор 29 вьздает разрешающий сигнал на матрицу 7 и преобразователь 4, по которому производитс  преобразованиеудвоенного произведени  2Ьа, наход щегос  в матрице 7, в пропорцио- . нальное число импульсов, которые поступают в счетчик 3.Upon receipt of the sixth and seventh pulses from the generator of 21 clocks, the counter of 28 clocks decoder 29 transmits the enable signal to the matrix 7 and the converter 4, which is used to transform the dual product 2Ba, which is located in the matrix 7, in proportion to. the number of pulses that enter counter 3.

При поступлении восьмого импульса из генератора 21 тактов в счетчик 28 тактов дешифратор 29 выдает разрешаюший потенциал на схему 10 сравнени , по которому производитс  сравнение числа Л , хран щегос  в накопителе 1, из которого производитс  извлечение квадратного корн  из числа, наход щегос  в счетчике 3. .Кроме того, по этому сигналу элемент И 9 вьщает импульс на вычитающий счетчик 8, если Д(аЬс) Восьмой импульс тактового генератора 21 устанавливает счетчик 28 тактов в исход .ное состо ние. Последовательность работы устройства при поступлении следующих групп из восьми импульсов на счетчик 28 тактов аналогична описанной .When the eighth pulse arrives from the generator of 21 clocks into the counter of 28 clocks, the decoder 29 outputs a resolving potential to the comparison circuit 10, which compares the number L stored in accumulator 1, from which the square root is extracted from the number in counter 3. In addition, for this signal, the AND 9 element impulses to the subtractive counter 8 if D (abc) The eighth pulse of the clock generator 21 sets the counter to 28 cycles into the output state. The sequence of operation of the device when the following groups of eight pulses arrive at the counter of 28 cycles is similar to that described.

Когда будет выполнено условие А5;(аЬс), схема 10 сравнени  выдаст управл ющий сигнал на элемент И 9 иединичный вход триггера 30. По это му сигналу триггер 30 вьщает разрешак ций потенциал на элемент И 31.When condition A5; (abc) is fulfilled, the comparison circuit 10 will generate a control signal per element AND 9 and a single trigger input 30. With this signal, trigger 30 causes the potential per element AND 31 to be cleared.

Через элемент И 31 пройдет сигнал .дешифратора 29. Этот сигнал установит в исходное состо ние счетчик 25 циклов и кроме того, поступит на нулевой вход триггера 27. Триггер 27 выдаст разрешающий сигнал на элемен И 24 и запрещающий сигнал на элемен И 32. На этом операци  извлечени  квадратного корн  издес тичного числа оканчиваетс .Element 31 will receive a signal from the decoder 29. This signal will set the counter to 25 cycles to its original state and will also go to the zero input of trigger 27. Trigger 27 will issue an enable signal to the And 24 element and a inhibitory signal to the And 32 element. the square-root extraction process ends.

Предлагаемое устройство по сравнению с базовым объектом, в качэстве которого прин т прототип, характеризуетс  значительно меньшим временем выполнени  операции извлечени квадратного корн , которую можно осуществить за несколько последовательных циклов работы устройства. В ЭТО.М случае при извлечении квадратного корн  из числа А последовательно в квадрат возвод тс  числа натурального р да, отличающиес  на одну градацию, начина  с максимальнго числа, которое можно извлечь из числа А , до тех пор, пока результат-квадрат числа не станет меньшим чем число, из которого необходимо извлечь квадратный корень.The proposed device as compared with the base object, in which a prototype is adopted, is characterized by a significantly shorter execution time of the square root operation, which can be carried out for several consecutive cycles of the device operation. In this case, when extracting the square root of the number A, the natural row numbers differing by one gradation are successively squared, starting with the maximum number that can be extracted from the number A, until the result-square number smaller than the number from which you want to extract the square root.

При 2п-разр дном дес тичном числе А , из которого извлекаетс  квадратный корень, таких операций возведени  в квадрат будет 10. Если прин ть, что врем  выполнени  операции извлечени  квадратного корн  из числа Д в предлагаемом устройстве равно времени возведени  числа в квадрат, времени записи нового числа, которое возводитс  в квадрат, и времени считывани  результата в прототипе, то тогда в предлагаемом устройстве врем  выполнени  операции извлечени  квадратного корн  будет уменьшено в ЮWith a 2n-bit decimal number A, from which the square root is extracted, there will be 10 such squaring operations. If it is assumed that the execution time of the square root operation from the D number in the proposed device is equal to the squaring time, The new number, which is squared, and the time of reading the result in the prototype, then in the proposed device, the execution time of the square root operation will be reduced in 10

(T/+T2- T.) 10(T / + T2- T.) 10

10 раз. 10 times.

2020

19nineteen

1313

nn

1515

(Pue.2(Pue.2

Claims (1)

УСТРОЙСТВО ДЛЯ ВОЗВЕДЕНИЯ В СТЕПЕНЬ, содержащее регистр основания, матрицу умножения двух разрядов, матрицу возведения десятичной цифры в квадрат, десятичный счетчик, преобразователь десятичного числа в число-импульсный код, генератор импульсов, а также блок управления, содержащий генератор тактов, счетчик и первый дешифратор, выход генератора тактов соединен со счетным входом счетчика, разрядные выходы которого соединены с информационными входами первого дешифратора, разрядные выходы регистра основания соединены с первыми группами входов матриц умножения двух разрядов и возведения десятичной цифры в квадрат, разрядные выходы матриц возведения десятичной цифры в квадрат соединены с разрядными входами десятичного счетчика, счетный вход которого соединен с выходом преобразователя десятичного числа в число-импульсный код, разрядные входы которого соединены с разрядными выходами матрицы умножения двух разрядов, тактовый вход преобразователя десятичного числа в число-импульсный код соединен с выходом генератора импульсов, обличающееся тем, что, с целью расширения функциональных возможностей путем получения возможности извлечения квадратного корня из .деся тичного числа, в него введены вычитающий счетчик, группа элементов И, схема сравнения, блок хранения констант, в блок управления введены элемент ИЛИ, первый и второй триггеры, триггер режимов, первый, второй и третий элементы И, счетчик циклов, счетчик тактов, второй и третий дешифраторы, группа элементов ИЛИ, первый, второй, третий, четвертый и пятый выходы первого дешйфрат тора соединены с первыми входами соответствующих элементов группы ИЛИ, первый выход второго дешифратора соединен с вторыми входами элементов группы ИЛИ, выходы элементов группы ИЛИ с первого по пятый соединены соответственно с управляющими входами регистра основания, мат-’, рицы возведения десятичной цифры в квадрат, десятичного счетчика, матрицы умножения двух разрядов и преобразователя десятичного числа в числоимпульсный код, первая группа информационных входов схемы сравнения соединена с разрядными выходами регистра основания, вторая группа информационных входов схемы сравнения соединена с разрядными выходами десятичного счетчика, выход схемы сравнения соединен с первым входом первого элемента группы И и входом установки в единицу второго триггера блока управления, выход генератора импульсов соединен с вторым входом первого элемента И, выход которого соединен со счетным входом вычитающего счетчика, разрядные выходы которого соединены с вторыми группами разрядных входов матриц умножения двух разрядов и возведения десятичной цифры в квадрат, информационные входы регистра основания соединены с входом устройства, разрядные выходы блока хранения констант соединены с .информационными входами вычитающего счетчика, в блоке управления прямой выход первого триггера соединен с первым входом первого элемента И, выход которого соединен со счетным входом счетчика циклов, разрядные выходы которого соединены с информационными входами второго дешифратора, второй выход которого соединен с входом установки в нуль второго триггера и первым входом второго элемента ИЛИ, выход генератора тактов соединен с вторым входом первого элемента И и первым входом второго элемента И, второй вход которого соединен с инверсным выходом первого триггера, вход сброса которого соединен с третьим выходом дешифратора, вход установки в единицу - первого триггера соединен с выходом второго элемента ИЛИ, второй вход которого соединен с выходом третьего элемента И и входом сброса счетчика циклов, первый вход третьего элемента И соединен с первым выходом третьего дешифратора, информационные входы'которого соединены с разрядными выходами счетчика тактов, счетный вход которого соединен . с выходом второго элемента И, второй вход третьего элемента И соединен с прямым выходом второго триггера, стробирующие входы первого и второго дешифраторов соединены с первым выходом триггера режимов, второй выход которого соединен со стробирующим входом третьего дешифратора, второй, третий., четвертый, пятый , шестой и седьмой выходы третьего дешифратора соединены соответственно с управляющими входами регистра основания, .матрицы возведения десятичной цифры в. квадрат, десятичного счетчика, матрицы умножения двух разрядов, преобразователя десятичного числа в число-импульсный код и управляющим входом схемы сравнения, второй выход второго дешифратора соединен с входом· установки числа вычитающего счетчика и входом разрешения считывания числа блока хранения констант, седьмой выход треть—? ' его дешифратора соединен с третьим входом элемента И .DEGREE DEVICE containing a register of base, matrix of multiplication of two digits, matrix of raising a decimal digit to a square, a decimal counter, a converter of a decimal number to a pulse-number code, a pulse generator, and also a control unit containing a clock generator, a counter and a first decoder , the output of the clock generator is connected to the counting input of the counter, the bit outputs of which are connected to the information inputs of the first decoder, the bit outputs of the base register are connected to the first groups moves of the matrices for multiplying two digits and squaring a decimal digit, the bit outputs of the decimal digit squaring matrices are connected to the bit inputs of the decimal counter, the counting input of which is connected to the output of the decimal number to pulse-number code converter, the bit inputs of which are connected to the bit outputs of the matrix multiplication of two digits, the clock input of the decimal number to pulse-number converter is connected to the output of the pulse generator, revealing that, in order to expand f functional capabilities by obtaining the ability to extract the square root from a decimal number, a subtracting counter, a group of AND elements, a comparison scheme, a constant storage unit are introduced into the control unit, an OR element, the first and second triggers, the mode trigger, the first, second and the third AND element, cycle counter, clock counter, second and third decoders, the group of OR elements, the first, second, third, fourth and fifth outputs of the first torus desyfrat connected to the first inputs of the corresponding elements of the OR group, the first the second output of the second decoder is connected to the second inputs of the elements of the OR group, the outputs of the elements of the OR group from the first to fifth are connected respectively to the control inputs of the base register, matrix, decimal squaring matrix, decimal counter, two-digit multiplication matrix and decimal number converter into a pulse code, the first group of information inputs of the comparison circuit is connected to the bit outputs of the base register, the second group of information inputs of the comparison circuit is connected to the bit the outputs of the decimal counter, the output of the comparison circuit is connected to the first input of the first element of the And group and the installation input to the unit of the second trigger of the control unit, the output of the pulse generator is connected to the second input of the first element And, the output of which is connected to the counting input of the subtracting counter, the bit outputs of which are connected to the second groups of bit inputs of the matrices of multiplication of two bits and squaring a decimal digit, the information inputs of the base register are connected to the device input, the bit outputs are The storage of constants is connected to the information inputs of the subtracting counter, in the control unit the direct output of the first trigger is connected to the first input of the first AND element, the output of which is connected to the counting input of the loop counter, the bit outputs of which are connected to the information inputs of the second decoder, the second output of which is connected to the zero input of the second trigger and the first input of the second OR element, the output of the clock generator is connected to the second input of the first AND element and the first input of the second AND element, the second the stroke of which is connected to the inverse output of the first trigger, the reset input of which is connected to the third output of the decoder, the unit input - the first trigger is connected to the output of the second OR element, the second input of which is connected to the output of the third AND element and the reset counter input, the first input of the third And element is connected to the first output of the third decoder, the information inputs of which are connected to the bit outputs of the clock counter, the counting input of which is connected. with the output of the second element And, the second input of the third element And is connected to the direct output of the second trigger, the gate inputs of the first and second decoders are connected to the first output of the mode trigger, the second output of which is connected to the gate input of the third decoder, second, third., fourth, fifth, the sixth and seventh outputs of the third decoder are connected respectively to the control inputs of the base register, the decimal digit construction matrix c. a square, a decimal counter, a matrix of multiplication of two digits, a decimal number to pulse converter and the control input of the comparison circuit, the second output of the second decoder is connected to the input · setting the number of the subtracting counter and the permission input to read the number of the constant storage unit, the seventh output is third—? 'its decoder is connected to the third input of the element AND.
SU823396077A 1982-02-18 1982-02-18 Device for raising to some power SU1076904A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU823396077A SU1076904A1 (en) 1982-02-18 1982-02-18 Device for raising to some power

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU823396077A SU1076904A1 (en) 1982-02-18 1982-02-18 Device for raising to some power

Publications (1)

Publication Number Publication Date
SU1076904A1 true SU1076904A1 (en) 1984-02-29

Family

ID=20997265

Family Applications (1)

Application Number Title Priority Date Filing Date
SU823396077A SU1076904A1 (en) 1982-02-18 1982-02-18 Device for raising to some power

Country Status (1)

Country Link
SU (1) SU1076904A1 (en)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
1. Авторское свидетельство СССР 836634, кл. G 06 F 7/552, 1979. 2. Авторское свидетельство СССР 391560, кл. G 06 F 7/38, 1971 (прототип). *

Similar Documents

Publication Publication Date Title
SU1076904A1 (en) Device for raising to some power
SU1141406A1 (en) Device for squaring and extracting square root
SU1084787A1 (en) Device for raising to power
SU1133593A1 (en) Device for squaring and extracting square root
SU940165A1 (en) Device for functional conversion of ordered number file
SU1187177A1 (en) Multidimensional multichannel digital correlator
SU830377A1 (en) Device for determining maximum number code
SU771660A1 (en) Binary-to-bunary-decimal code converter
RU2010308C1 (en) Generator of haar functions
SU1335972A1 (en) Analog data input multichannel device
SU1247891A1 (en) Processor for fast fourier transform
SU1265975A1 (en) Device for generating time intervals
SU385283A1 (en) ANALOG-DIGITAL CORRELATOR
SU807492A1 (en) Terniary reversible n-digit pulse counter
SU1054895A1 (en) Device for forming time interval sequences
SU1167660A1 (en) Device for checking memory
RU2034401C1 (en) Threshold element
SU1270900A1 (en) Device for converting serial code to parallel code
SU819773A1 (en) Device for seismic data conversion
SU744561A1 (en) Device for discriminating significant digit
SU1487191A1 (en) Multichannel code-voltage converter
SU1193812A1 (en) Phase shift-to-digital converter
FI62736B (en) DIGITAL SPECIALDATOR FOER BEHANDLING AV STATISTICAL DATA
SU783787A1 (en) Converter of binary code into binary-decimal code of degrees and minutes
SU993263A1 (en) Device for discriminating the last non-zero digit from series code