[go: up one dir, main page]

SU546890A1 - Device for calculating elementary functions - Google Patents

Device for calculating elementary functions

Info

Publication number
SU546890A1
SU546890A1 SU1954385A SU1954385A SU546890A1 SU 546890 A1 SU546890 A1 SU 546890A1 SU 1954385 A SU1954385 A SU 1954385A SU 1954385 A SU1954385 A SU 1954385A SU 546890 A1 SU546890 A1 SU 546890A1
Authority
SU
USSR - Soviet Union
Prior art keywords
output
register
pseudo
input
control unit
Prior art date
Application number
SU1954385A
Other languages
Russian (ru)
Inventor
Борис Иосифович Рувинский
Сергей Абрамович Селютин
Original Assignee
Предприятие П/Я Г-4783
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 Предприятие П/Я Г-4783 filed Critical Предприятие П/Я Г-4783
Priority to SU1954385A priority Critical patent/SU546890A1/en
Application granted granted Critical
Publication of SU546890A1 publication Critical patent/SU546890A1/en

Links

Landscapes

  • Error Detection And Correction (AREA)

Description

1one

Изобретение относитс  к области вычислительной техники и может найти ирименение при создании цифровых вычислительных машин , выполн ющих вычисление элементарных функций аппаратными средствами.The invention relates to the field of computer technology and can be used to create digital computers that perform the calculation of elementary functions by hardware.

Известно устройство дл  вычислени  элементарных функций 1, содержащее блок унравлени  и блок односторонней пам ти. Недостатком известного устройства  вл етс  низкое быстродействие при вычислении функции Sina и Coscc.A device for calculating atomic functions 1 is known, which contains an equating unit and a one-way memory unit. A disadvantage of the known device is the low speed in calculating the function of Sina and Coscc.

Наиболее близким к предлагаемому изобретению  вл етс  устройство дл  вычислени  элементарных функций 2, содержащее блок управлени , счетчик шагов, регистры, сумматор - вычитатель и блок односторонней пам ти .Closest to the proposed invention is a device for calculating elementary functions 2, comprising a control unit, a step counter, registers, a subtractor and a one-way memory unit.

Недостатком такого устройства  вл етс  отсутствие возможности непосредственного вычислени  функций , Since и Cosa, как базовых. Это ириводит к необходимости составлени  соответствующих программ дл  указанных функций, что требует значительных затрат времени и оборудовани  при аипаратпой реализации программ.The disadvantage of such a device is the inability to directly calculate the functions, Since and Cosa, as basic ones. This leads to the need to develop appropriate programs for these functions, which requires a significant investment of time and equipment for the implementation of programs.

Целью изобретени   вл етс  создание устройства дл  непосредственного вычислени  функций К- , Sina и Cosa, как базовых т. е. расширение функциональных воз.можностей устройства. При этом все функции вычисл ютс  по единой инерционной схеме, что позвол ет уменьшить аппаратурные затраты в устройстве управлени  и увеличить быстродействие устройства.The aim of the invention is to create a device for directly calculating the functions of K-, Sina and Cosa, as basic, i.e., expanding the functional capabilities of the device. In this case, all functions are calculated by a single inertial scheme, which allows reducing hardware costs in the control device and increasing the speed of the device.

Поставленна  цель достигаетс  тем, что в устройство дополнительно введены блок сравнени , счетчик итераций, регистр знаков, сумматор по модулю два и элемент ИЛИ, приче.м первый вход блока односторонней пам ти св зан с первым выходом блока управлени , а выход - с первым информационным входом регистра псевдоделител , второй вход которого соединен с первой информационной шиной, а третий вход - с выходом сумматора - вычитател  и первым входом регистра делимого, второй вход которого соединен со второй информационной шиной, а выход - с первым входом блока сравнени , с первым входом сумматора- вычитател  и информационным входом регистра модификатора, управл ющий вход которого св зан со вторым выходом блока управлени , а выход - со вторым входом сумматора - вычитател , третий вход которого соединен с выходом регистра псевдоделител  и вторым входом блока сравнени , выход которого св зан с первы.м входом блока управлени , третий выход которого соединен с пер3 вымп управл ющими входами регистра псевдочастного и регистра зиаков и знакового разр да регистра делимого, четвертый выход - с первым входом сумматора по модулю два, п тый выход - с первыми входами5 младших разр дов регистра псевдочастного и регистра знаков и управл ющим входом регистра делимого, шестой выход - со входом счетчика шагов, седьмой выход - с первым входом элемента Р1ЛИ и вторым входом млад-10 шего разр да регистра псевдочастного, восьмой выход - со вторым входом элемента ИЛИ и первым установочным входом младшего разр да регистра знаков, второй установочный вход которого соединен с выходом15 знакового разр да регистра делимого, а выход- со вторым входом сумматора по модулю два, выход которого соединен с четвертым входом сумматора - вычитател , выход младшего разр да регистра псевдочастного20 св зан со вторым входом блока управлени , третий вход которого соединен с выходом счетчика итераций, вход которого св зан с выходом элемента ИЛИ, четвертый вход блока управлени  соединен с выходом счетчика25 шагов. На чертеже показана блок-схема предлагаемого устройства, где: I-перва  информационна  шина (дл  записи информации в ре-30 гистр г евдоделител  /псевдомножимого/, первый вход); 2 - втора  информационна  шина (дл  записи информации в регистр делимого /произведени /, второй вход); 3 - блок односторонней пам ти (дл  хранени 35 констант); 4 - регистр псевдоделител  ( псевдомножимого); 5 - блок сравнени ; 6- сумматор-вычитатель; 7 - регистр модификатора; 8 - регистр делимого (произведени ); 9 - знаковый разр д регистра делимого40 (произведени ); 10 - регистр знаков (цифр цсевдочастного /псевдомножител /); 11- младший разр д регистра знаков; 12 - регистр псевдочастного (псевдомножител ); 13 - младший разр д регистра псевдочастно-45 го (псевдомножител ); 14 - сумматор по модулю два; 15 - счетчик итераций; 16 - элемент ИЛИ; 17 - блок управлени ; 18 - выход устройства управлени  дл  передачи сигнала изменени  знака преобразовани ; 19-50 выход устройства управлени  дл  передачи сигнала прибавлени  (вычитани ) «1 к (из) младшему разр ду регистра псевдочастного ( псевдомножител ); 20 - счетчик шагов; 21-выход устройства управлени  дл  пере-55 дачи сигнала прибавлени  (вычитани ) «1 к ( из) содержимому счетчика шагов; 22 - выход устройства управлени  дл  передачи сигнала сдвига вправо регистров 8, 10 и 12; 23- выход устройства управлени  дл  передачи60 сигнала сдвига вправо регистра модификатора 7; 24 - выход устройства управлени  дл  передачи сигнала выборки очередной константы из посто нного запоминающего устройст .ва; 25 - выход устройства управлени  дл 65 . 4 передачи сигнала сдвига влево регистров 8, 10 и 12; 26 - выход устройства управлени  дл  передачи сигпала установки знака иреобразовани . Ниже приведено описание работы устройства дл  случа  дес тичной системы счисле и , однако, предлагаемое устройство может работать при произвольной значности систе iw счислени . При вычислении функции предлагаемое устройство работает следующим образом. Величины х и у, поступающие на входы 1 и 2, записываютс  со своими знаками в регистры 4 и 8. Перед началом процесса псевдоделени  содержимое счетчика итераций 15 и счетчика шагов 20 обнул етс , а на выходе 26 блока управлени  17 по вл етс  сигнал «ЛОГ 1, обеспечивающий режим псевдоделени . В начале каждого шага, на котором вычисл етс  очередна  цифра псевдочастного, производитс  пересылка содержимого знакового разр да 9 регистра делимого 8 в младший разр д 11 регистра знаков 10. Дл  осуществлени  .модификации выход регистра делимого 8 соединен со входом регистра модификатора 7, на сдвиговый выход которого поступает сигнал с выхода 23 блока управлени  17. Величина сдвига регистра 7 определ етс  содержимым счетчика шагов 20. Выходы регистров 8 и 7 соединены со входами сумматора-вычитател  6, выход которого подключен ко входу регистра 8, дл  заииси в него нового значени  делимою со своим знаком. Выходы регистров 7 и 4 соединены со входами сумматора--вычитател  6, выход которого подключен ко входу регистра 4, дл  записи в него нового значени  псевдоделител  со своим знаком. Выход младшего разр да 11 регистра 10 соединен ее входом сумматора 14 дл  задани  режима слол ени  или вычитани  в сумматоре - вычитателе 6. После вычислени  новых значений псевдоделител  и делимого на выходе 19 блока управлени  17 по вл етс  сигнал, осуществл ющий прибавление «1 к младшему разр ду 13 регистра 12. Процесс продолжаетс  до тех пор, пока на выходе блока сравнени  5 не по витс  сигнал о том, что содержимое регистра 8 меньше или равно по абсолютной неличине содержимому регистра 4, после чего происходит анализ содержимого младшего разр да 13 регистра 12 блоком управлени  17 на четность; при нечетном значении содержимого разр да 13 цифра псевдочастного считаетс  вычисленной, при четном значении содержимого разр да 13 производитс  еще одна итераци . После вычислени  очередной цифры псевдочастного (кажда  цифра меньше или равна 9) осуществл етс  проверка содержимого счетчика итераций 15; если содержимое счетчика итераций 15 меньше «9, то на выходе 18 блока управлени  17 по вл етс  сигнал, осуществл Еощий изменение знака преобразовани . Далее итерации продолжаютс  с той разницей, что на выходе 19 блокаThe goal is achieved by adding a comparison block, iteration counter, character register, modulo two adder, and OR element, the first input of the one-way memory block is connected to the first output of the control unit, and the output to the first information block. the input of the pseudo-delimiter register, the second input of which is connected to the first information bus, and the third input - to the output of the adder - subtractor and the first input of the register of the dividend, the second input of which is connected to the second information bus, and the output to the first the comparison block, with the first input of the subtractor and the information input of the modifier register, the control input of which is connected to the second output of the control unit, and the output with the second input of the adder - the subtractor, the third input of which is connected to the output of the pseudo-divider register and the second input of the block the comparison, the output of which is connected to the first input of the control unit, the third output of which is connected to the first 3 control inputs of the pseudo-private register and the register of the characters and the sign bit of the register of the dividend, the fourth one with the first input of the modulo adder two, the fifth output with the first inputs 5 lower bits of the pseudo-part register and the character register and the control input of the dividend register, the sixth output with the input of the step counter, the seventh output with the first input of the P1LI element and the second the input of the younger-10 of our pseudo-partial register register, the eighth output - with the second input of the OR element and the first installation input of the lower digit of the register of characters, the second installation input of which is connected to the output 15 of the sign bit of the register of the dividend, and the output from the second modulo-two input, the output of which is connected to the fourth input of the subtractor - subtractor, the low-order output of the pseudoparticle register 20 is connected to the second input of the control unit, the third input of which is connected to the output of the iteration counter, the input of which is connected to the output of the OR element, the fourth input the control unit is connected to the output of the counter 25 steps. The drawing shows a block diagram of the proposed device, where: I-first information bus (for recording information into the re-30 of the splitter / pseudomodible /, the first input); 2 - the second information bus (for recording information in the register of the dividend / product /, the second input); 3 is a one-way memory unit (for storing 35 constants); 4 - pseudo-delimiter register 5 - comparison unit; 6- adder-subtractor; 7 - modifier register; 8 - register of the dividend (product); 9 is the sign bit of the register 40 (product); 10 - the register of characters (digits of the pseudo-partial / pseudomultiplier /); 11 - the lowest bit of the register of characters; 12 - pseudo-part register (pseudo-multiplier); 13 - low-order bit of the pseudo-45 th register (pseudo-multiplier); 14 - modulo adder; 15 - iteration counter; 16 - element OR; 17 — control unit; 18 is the output of the control device for transmitting a change sign of the conversion signal; 19-50 the output of the control unit for transmitting the addition (subtraction) signal “1 to (from) the low-order bit of the pseudo-partial (pseudomultiplier) register; 20 - step counter; 21-output of the control unit for transferring the signal of addition (subtraction) "1 to (from) the contents of the step counter; 22 shows the output of the control unit for transmitting the shift signal to the right of the registers 8, 10 and 12; 23- control device output for transmitting 60 a shift signal to the right of modifier register 7; 24 shows the output of the control device for transmitting the next-constant sampling signal from the persistent storage device; 25 is the output of the control unit for 65. 4 transmit signal shift left registers 8, 10 and 12; 26 is the output of the control unit for transmitting the sign set and redisplay signal. Below is a description of the operation of the device for the case of the decimal number system and, however, the proposed device can operate with an arbitrary value of the iw counting system. When calculating the function of the proposed device works as follows. The values x and y entering inputs 1 and 2 are recorded with their signs in registers 4 and 8. Before the pseudo-division process starts, the contents of iteration counter 15 and step counter 20 are zeroed out, and at output 26 of control unit 17, the signal LOG 1, providing pseudo-sharing mode. At the beginning of each step in which the next pseudo-partial digit is calculated, the contents of the sign bit 9 of the divisor register 8 are sent to the low-order bit 11 of the 10 character register. To modify the output, the output of the divisible register 8 is connected to the input of the modifier register 7, to the shift output which receives a signal from the output 23 of the control unit 17. The amount of shift of the register 7 is determined by the contents of the step counter 20. The outputs of the registers 8 and 7 are connected to the inputs of the adder-subtractor 6, the output of which is connected to the input regis Tra 8, for fixing a new value in it, divisible with its sign. The outputs of registers 7 and 4 are connected to the inputs of the adder - subtractor 6, the output of which is connected to the input of register 4, to record in it the new value of the pseudo-divider with its own sign. The output of the low bit 11 of the register 10 is connected by its input of the adder 14 to set the mode of adhesion or subtraction in the adder - subtractor 6. After calculating the new values of the pseudo-divider and the dividend at the output 19 of the control unit 17, the signal is added, adding 1 to the youngest bit 13 of the register 12. The process continues until the output of the comparison block 5 does not give a signal that the contents of register 8 are less than or equal in absolute terms to the contents of register 4, after which the content of the lowest time is analyzed row 13 of register 12 by control unit 17 for parity; for an odd value of the contents of bit 13, the pseudo-part digit is considered to be calculated, and for an even value of the contents of bit 13, another iteration is performed. After calculating the next digit of the pseudo-part (each digit is less than or equal to 9), the contents of the iteration counter 15 are checked; if the contents of the iteration counter 15 is less than "9, then the output 18 of the control unit 17 is a signal, making a real change in the sign of the transformation. Further iterations continue with the difference that at output 19 of the block

управлени  17 не вырабатываетс  сигнал прибавлени  «1 к младшему разр ду 13 регистра 12. Процесс продолжаетс  до тех пор, пока содержимое счетчика не станет равным «9. Перед началом вычислени  следующей цифры псевдочастного на выходе 25 блока управлени  17 по вл етс  сигнал, осуществл ющий сдвиг влево регистров 8, 10, 12, а на выходе 21 ,блока управлени  17 по вл етс  сигнал прибавлени  «1 к содержимому счетчика щагов 20, выход которого подключен ко входу блока управлени  17; содержимое счетчика итераций 15 обнул етс . Описанный процесс псевдоделени  продолжаетс  до тех пор, пока не будут вычислены все цифры псевдочастного . По окончании псевдоделени  в регистре 4 содержитс  величина , где К - заранее вычисленна  константа.Control 17 does not generate a signal to add "1 to the low-order bit 13 of register 12. The process continues until the contents of the counter become equal to" 9. Before starting the calculation of the next digit of the pseudo-part at the output 25 of the control unit 17, a signal appears that shifts the registers 8, 10, 12 to the left, and at the output 21, the control unit 17 appears the signal to add "1 to the contents of the counter of steps 20, output which is connected to the input of the control unit 17; the contents of iteration counter 15 are zero. The pseudo-division process described continues until all pseudo-partial digits are calculated. At the end of the pseudo-division, register 4 contains the value, where K is a pre-calculated constant.

При вычислении функций Sina и Cosa устройство работает следующим образом. Величина X, поступающа  на вход 2, записываетс  в регистр 8 со своим знаком. Далее следует процесс псевдоделени  на константы вида lO-arctg 10, который отличаетс  от обычного делени  тем, что перед вычислением каждой цифры псевдочастного в регистр 4 записываетс  нова  константа из блока односторонней пам ти 3 с помощью сигнала на выходе 24 блока управлени  17. Знакопеременное псевдочастное, представл емое только нечетными цифрами, формируетс  аналогично описанному выше процессу при вычислении функции ./( Отличие заключаетс  в том, что не выполн ютс  дополнительные знакопеременные итерации. По окончании процесса псевдоделени  в регистре 12 содержитс  псевдочастное. Псевдоумножение иа полученное псевдочастное (псевдомножитель ) происходит аналогично описанному выше псевдоделению при вычислении функции . Отличие заключаетс в том,что на выходе 26 блока управлени  17 по вл етс  сигнал «ЛОГ О, обеспечивающий режим псевдоумиожени . При умножении на очередную цифру псевдочастного на выходе 19 блока управлени  17 по вл етс  сигнал вычитани  «1 из младшего разр да 13 регистра 12. Умножение на очередную цифру псевдочастного заканчиваетс  при обнулении разр да 13, после чего производитс  анализ содержимого счетчика итераций 15. Если оно не равно «9, то выполн ютс  знакопеременные итерации. Дл  этого на выходе 18 блока управлени  17 по вл етс  сигнал изменени  знака преобразовани . Знакопеременные итерации выполн ютс  до тех пор, пока содержимое счетчика итераций 15 не станет равным «9. Перед началом следующего шага псевдоумножени  происходит сдвиг вправо регистров 8, 10 и 12 с помощью сигнала на выходе 22 блока управлени  17. По окончании псевдоумножени  в регистре 4 содержитс  величина /С-Cosa, а в регистре 8 -величина К- Sina.When calculating the functions of Sina and Cosa, the device works as follows. The value of X, fed to input 2, is written to register 8 with its sign. This is followed by a pseudo-division process for constants of the form lO-arctg 10, which differs from the usual division in that before calculating each digit of the pseudo-private in the register 4 a new constant is written from the one-way memory block 3 using the signal at the output 24 of the control unit 17. The alternating pseudo-particle, represented only by odd numbers, is formed in the same way as the process described above when calculating the function ./ (The difference is that additional alternating sign iterations are not performed. At the end of the process The division in register 12 contains a pseudo-part. Pseudo-multiplication and the resulting pseudo-part (pseudo-multiplier) occur similarly to the pseudo-division described above in calculating the function. The difference is that the output "26 of the control unit 17 providing the mode of pseudo-decomposition. the next digit of the pseudo-part at the output 19 of the control unit 17 appears the subtraction signal "1 from the low-order bit 13 of the register 12. Multiplication by the next digit of the pseudo-partial ends when resetting and 13, whereupon analysis of the contents is performed iterations counter 15. If it is not equal to "9, the alternating iterations are performed. For this purpose, at output 18 of control unit 17, a change in sign of the conversion appears. Alternate iterations are performed until the contents of iteration counter 15 become equal to "9. Before the next pseudo-multiplication step begins, the registers 8, 10 and 12 are shifted to the right by the signal at the output 22 of the control unit 17. At the end of the pseudo-multiplication, register 4 contains the value / C-Cosa, and register 8 contains the K-Sina value.

Claims (2)

1. Авторское свидетельство С ССР Aib 404082, М. Кл.2 G 06F 7/38, опубл. 16.06.72.1. Copyright certificate C SSR Aib 404082, M. Cl.2 G 06F 7/38, publ. 06.16.72. 2. /ВМ, Jornal of research and development V. 6 № 2, 1962, стр. 210-216.2. / VM, Jornal of Research and Development V. 6, No. 2, 1962, pp. 210-216.
SU1954385A 1973-08-14 1973-08-14 Device for calculating elementary functions SU546890A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU1954385A SU546890A1 (en) 1973-08-14 1973-08-14 Device for calculating elementary functions

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU1954385A SU546890A1 (en) 1973-08-14 1973-08-14 Device for calculating elementary functions

Publications (1)

Publication Number Publication Date
SU546890A1 true SU546890A1 (en) 1977-02-15

Family

ID=20563090

Family Applications (1)

Application Number Title Priority Date Filing Date
SU1954385A SU546890A1 (en) 1973-08-14 1973-08-14 Device for calculating elementary functions

Country Status (1)

Country Link
SU (1) SU546890A1 (en)

Similar Documents

Publication Publication Date Title
US3290493A (en) Truncated parallel multiplication
SU546890A1 (en) Device for calculating elementary functions
GB1014628A (en) Data processing system
US3249747A (en) Carry assimilating system
US3500383A (en) Binary to binary coded decimal conversion apparatus
JPS5595148A (en) Binary arithmetic circuit
SU798857A1 (en) Exponent-computing device
SU922760A2 (en) Digital function generator
RU2248094C2 (en) Device for transforming numbers from decimal to binary notation scale
SU560229A1 (en) Device for calculating elementary functions
SU1432512A1 (en) Series computing device
SU741260A1 (en) Converter of proper binary-decimal fraction into binary fraction and integer binary numbers into binary-decimal numbers
SU593211A1 (en) Digital computer
SU748409A1 (en) Device for multiplying binary-decimal numbers
SU1233149A1 (en) Device for solving differential equations
SU789992A1 (en) Subtracting device
SU868767A1 (en) Device for computing polynomials
SU1249551A1 (en) Dividing device
SU752336A1 (en) Pseudodivision device
SU1151957A1 (en) Device for calculating value of square root
SU577524A1 (en) Mixed number binary-to-binary-decimal code converter
SU842798A1 (en) Adding and subtracting device
SU662938A1 (en) Divider
SU940155A1 (en) Device for computing elementary functions
SU911519A1 (en) Device for computing elementary functions