SU1348831A1 - Device for computing exponential function - Google Patents

Device for computing exponential function Download PDF

Info

Publication number
SU1348831A1
SU1348831A1 SU864078351A SU4078351A SU1348831A1 SU 1348831 A1 SU1348831 A1 SU 1348831A1 SU 864078351 A SU864078351 A SU 864078351A SU 4078351 A SU4078351 A SU 4078351A SU 1348831 A1 SU1348831 A1 SU 1348831A1
Authority
SU
USSR - Soviet Union
Prior art keywords
input
output
inputs
multiplexer
adder
Prior art date
Application number
SU864078351A
Other languages
Russian (ru)
Inventor
Александр Александрович Валов
Лев Михайлович Виткин
Игорь Владимирович Герасимов
Мирослав Кубовэ
Original Assignee
Ленинградский электротехнический институт им.В.И.Ульянова (Ленина)
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ленинградский электротехнический институт им.В.И.Ульянова (Ленина) filed Critical Ленинградский электротехнический институт им.В.И.Ульянова (Ленина)
Priority to SU864078351A priority Critical patent/SU1348831A1/en
Application granted granted Critical
Publication of SU1348831A1 publication Critical patent/SU1348831A1/en

Links

Landscapes

  • Hardware Redundancy (AREA)

Abstract

Изобретение относитс  к вычислительной технике и может быть использовано дл  аппаратной реализации операций вычислени  степенной функции с показател ми 2 и 1/2 в универсальных и специализированных вычислител х . Цель изобретени  - повьше- ние точности при вычислении функции с показателем 1/2. Поставленна  цель достигаетс  тем,что в устройство , содержащее схему сравнени  1, счетчик 2, мультиплексор 3, накапливающий сумматор 4, элементы И 5,6,блок 7 микропрограммного управлени ,введены втора  схема сравнени  14,второй мультиплексор 15, коммутатор 16 и комбинационный сумматор 17 с соответствующими св з ми. Устройство позвол ет вычисл ть степенные функции с показател ми 2 и 1/2 с высокой помехоустойчивостью и высоким быстродействием при отработке малых приращений аргумента за счет организации рекурсивного процесса вычислени . 5 ил., 8 табл. S (Л оо 4 00 00 00The invention relates to computing and can be used for the hardware implementation of the operations of calculating a power function with indicators 2 and 1/2 in universal and specialized computers. The purpose of the invention is to increase the accuracy in calculating the function with the indicator 1/2. The goal is achieved by the fact that the device containing the comparison circuit 1, counter 2, multiplexer 3, accumulating adder 4, elements AND 5.6, block 7 of microprogram control, introduced the second comparison circuit 14, second multiplexer 15, switch 16 and combination combiner 17 with related communications. The device allows calculating power-law functions with exponents 2 and 1/2 with high noise immunity and high speed when developing small increments of the argument due to the organization of a recursive computation process. 5 ill., 8 tab. S (L oo 4 00 00 00

Description

1P

И-и|Г11: стение относитс  к нмч сли- тельной технике и может быть использовано дл  аппаратной реализации операций вычислени  степенной функции с показателем 2 и 1/2 в универсальных и спепиализированных вычислител х ,And-and | G11: the concept refers to the nanometer-hp selection technique and can be used for the hardware implementation of the operations of calculating the power function with the exponent 2 and 1/2 in the universal and specialized calculators,

Цель изобретени  - повышение точности при воспроизведении cтeпe п oй функции с показателем 1/2.The purpose of the invention is to improve the accuracy when reproducing the step of the first function with the indicator 1/2.

На фиг. 1 приведена функциональна  схема устройства; на фиг. 2 - вариант реализации коммутатора; на фиг. 3 - вариант схемотехнической реализации микропрограммного блока управлени ; на фиг. 4 - блок-схема его работы; на фиг. 5 - прошивка программируемой логической матриць (ПЛМ) блока управлени  соответственноFIG. 1 shows a functional diagram of the device; in fig. 2 - implementation of the switch; in fig. 3 - a variant of the circuit implementation of the firmware control unit; in fig. 4 is a block diagram of his work; in fig. 5 - firmware programmable logic matrix (PLA) control unit, respectively

На схеме устройства (фиг. 1) прин ты следующие обозначени : перва  схема 1 сравнени , реверсивный счетчик 2, первыр мультиплексор 3, накапливан1щий сумматор 4, первый 5 и второй 6 -элементы И, микропрограммный блок 7 управлени , вход 8 логического нул  и вход 9 логической единицы устройства, входы 10, 11 - соответственно входы запуска и ус- тановки ус тройства,выход 12 готовности рету, ата , информационный вход 13 уст poitcTBa, втора  схема 14 сравнени , второй му;1тзтиплексор 15, коммутатор 16, .,lнaциoнный сумма- тор 17, вход 18 режима и выход 19 результата устройства.In the device diagram (Fig. 1), the following designations are accepted: the first comparison circuit 1, the reversible counter 2, the multiplexer 3 first, the accumulating adder 4, the first 5 and the second 6 elements And, the microprogrammed control unit 7, the input 8 of the logical zero and the input 9 logical units of the device, inputs 10, 11, respectively, start and installation inputs of the device, output 12, readiness of ata, ata, information input 13 of the poitcTBa installation, second comparison circuit 14, second mu; 1tx multiplexer 15, switch 16,. summator 17, input 18 of the mode and output 19 of the devices but.

Все (вчементы устройства могут быть реализованы на основе широко используемых Р вычислительной техни- ке микросхем; ..члримср схемы 1,14 сравнени  - на микросхемах К 155 СП счетчик 2 - на микрос:хемах К 155 ИЕ7, К :мбина1 ионныГ1 сумматор 17 - на микросхемах К 155 ИМЗ, мультиплексо-- ры 3,15 - на микросхемах К 155 KI 1 1 Накапливающий сумматор может быть реализован, например,на микросхеме 1802 ИМ1 путем подключени  выхода с мматора на его свобстдный вход.Ку о.- типлексоры 3,15 подк.; ючают на выход свой первый или второй информащюн-- ные входы при на;шчии на yпpaFjJiнющeм входе соответственно единичжп о ЦПУ. нулевого сигнала. Вариант реализа- ции коммутатора 16, например, на микросхемах К 155 КП 11 пригеден на фиг. 2. К мму1атор содержит му:гт,- типлексоры 20 и 21. При нулевом си;112All (devices can be implemented on the basis of widely used P computational microcircuits; .. circuitry 1.14 comparison - on K 155 SP chips; counter 2 - on micros: Khemah 155 IE7, K: mbina1 ion G1 adder 17 - on K 155 IMZ chips, multiplexers 3.15 - on K 155 KI 1 1 chips. The accumulating adder can be implemented, for example, on IM1 chip 1802 by connecting the output from the mmator to its free input. 15 connect; yyuchayut to the output of their first or second informational inputs with the completion; shchii on yppaFjJinyuschem in de edinichzhp respectively about zero signal, the CPU variant realization tion switch 16, e.g., on chips K 155 CP 11 prigeden FIG 2. mmu1ator mu contains: rT - tipleksory 20 and 21. At zero B; 112...

пале ил упраи.п юп ем ихг лс комму га- тора 1Ь его Г1Р 1НЫГ1 и втс|)ой инфгфма- циоиные входы полк.г;юч(ны гоответст- ncruid к его П(.р1юму и пторпму выходам при единичрк. М Lurnajif; на утптавл ющем входе - cooTPi TC iiriiR;. к второму и первому выходам. li;ioK 7 угтравлени  содержит пернь й 22 н второй 23 триггеры ,11ЛМ 24, генератор 25 импульсов и регистр 26, сиихр;1ни:зирую1ций вход которого св зан с выходом генератораpale silt uprai.p yu emu ehls ls commutator 1b his G1R 1NG1 and bts | | th th infhma-ing inputs pol.kg; yuch (we are responsible to ncruid to his P (.rIyum and ptorpmu outputs with unid. M Lurnajif ; at the upstream input - cooTPi TC iiriiR ;. to the second and first outputs. li; ioK 7 of the etching contains the first 22 and the second 23 triggers, 11ЛМ 24, the generator of 25 pulses and the register 26, sikhr; 1: the outputs whose input is connected generator output

25импульсов, первый - четвертый информационные входы .юдключены на первый - четвертый выходы ИЛМ 24 соответственно , а первый - четвертый выходы на первый - четвертый входы ПЛМ соответственно , п тый - седьмой входы которой  вл ютс  1 хпдамР с, , запуска ST блока 7 управлени  соответственно , п тый - дев тый выходы  вл ютс  первым - п тым выходами R, S1, S2, RA, W блока 7 управлени  соответственно ), восьмой вход ПЛМ 24 подключен25 pulses, the first - the fourth information inputs. They are connected to the first - the fourth outputs of the ILM 24, respectively, and the first - the fourth outputs to the first - the fourth inputs of the PLM, respectively, the fifth - the seventh inputs of which are 1 cpdPr, , the fifth - the ninth outputs are the first - the fifth outputs R, S1, S2, RA, W of the control unit 7, respectively), the eighth input of the PLA 24 is connected

к инверсному  ыходу не рвого триггера 22, а дев тый - к njjHMOMy выходу второго триггера 23. Синхронизирующий вход трип-ера 23 соединен с дев  т(,1м выходом ПЛМ 2, информационный вход - с вхопом режима SO блока 7 управлени , t и ::-; ;оничирующий вход трмпх-ра 22 . .nt и с входом сброса S(J б.покч 7 управлени , информационны 1;Х.(); t входом 8 логического нул  устройствгч, а единичный иход no/iKji/c icH к п тому выходу ПЛМ 24.to the inverse output of the first trigger 22, and the ninth to the njjHMOMy output of the second trigger 23. The synchronizing input of the trip-ra 23 is connected to the ninth (, 1 m output of the PLM 2, the information input with the hopper of the SO mode of the control unit 7, t and: : -;; onchiruyushchy input rpmh-ra 22. .nt and with the reset input S (J bp 7 control, informational 1; X. (); t input 8 logical zero deviceg, and the unit no / iKji / c icH to p to the output of the PLM 24.

В качестве тригтеров 22, 23 могут быть использованы, например, микро- схг-мы К 155 ТМ2, Fi качестве регистраAs triggers 22, 23, for example, K 155 TM2 microschemes can be used, as a register

26 К 155 И; 1;,н качестве ГО1 24 - К 556 РТ2 . оператор 25 импульсов может б1,1ть ri)6pan, качрикг-р, на основе мг кросхем К 155 ЛАЗ,26 K 155 And; 1; as GO1 24 - K 556 PT2. the operator of 25 pulses can b1,1t ri) 6pan, kachrikg-r, on the basis of mg circuits K 155 LAZ,

Г абота yc rpoj iCTPa основана ;;а pei-iP{;cH)(HoM ci iot oOe описани  рагичпо i, заключав-1ч;к :. вы- ЧИСЛ1-ьии по РСЬ Р1: снт1и,1.ч с оотнсшег.и-  м Последующих о . функции дл  4a; aii;ioi ;1Г м, п;л, ч 1;и ичьестпо прг-;;1;1ду111(:ч- змач : мие функции. Реьур- ги П , i.hi -. (11 I4ioii;i ;:м  псл,ра )Дел ютс  ;/ группы, Ka. ко1чэрых учи- п-вло . i i;iToKa данных,  вл - si i ,H;-.( H )Нач1;П1||..1 li ivMenia функции.The work of yc rpoj iCTPa is based ;; a pei-iP {; cH) (HoM ci iot oOe descriptions of racic i, concluding-1 hr; to: you are NUMBER1 by PCL P1: snit1, 1.h with outgoing - m Subsequent on. Functions for 4a; aii; ioi; 1Г m, п; л, ч 1; and істестпо прг - ;; 1; 1 ду111 (:-ма ма ма-: function of function. . (11 I4ioii; i;: psl, ra) Are made; / groups, Ka. Kochery take into account. Ii; iToKa data, is - Si, H; -. (H) Begin1; P1 || ..1 li ivMenia functions.

1-.1 ли ч;и-чс:;1и .4)..I v:-itЛ i T у1 еличива- e ii ,4. То дли чмчсо i I иад,ратич- 1-1-й функции ;-.т;.;-1 : соотношени  V Ч т :1-.1 whether h; and-hs:; 1 and .4) .. I v: -itЛ i T у1 is precious, e ii, 4. That is the length of i m i i iad, the ratic 1-1 th function; -. T.; - 1: ratios V h:

Y(x-H) Y(x) + h(x); h(x-t-l) h(x) + 2,Y (x-H) Y (x) + h (x); h (x-t-l) h (x) + 2,

если значение аргумента уменьшаетс : 5 Y(x) Y(x4.1) - h(x)(3)if the value of the argument decreases: 5 Y (x) Y (x4.1) - h (x) (3)

h(x) h(x+1) - 2(4)h (x) h (x + 1) - 2 (4)

Начальные значени  функций: ю Y(0) О, h(0) 1Initial values of functions: th Y (0) O, h (0) 1

l, принадлежащих интервалуl belonging to the interval

х .x

(x-tУсловие завершени  вычислительного процесса RA х Xj при вычислении функции Y X или RA 1у Y при вычислении функции X Y .(x-t Condition of completion of the computational process RA x Xj when calculating the function Y X or RA 1y Y when calculating the function X Y.

Пусть X и Y - суть целые числа, тогда X - значение у /L дл  всех I, прин -И)-.Let X and Y be integers, then X is the value of y / L for all I, -and) -.

Например, при представлении X двм  дес тичными разр дами величина X 12  вл етс  значением любых YG l44, 168.For example, when presenting X two-decimal places, the value of X 12 is the value of any YG l44, 168.

На основании сказанного, при вычислении по рекуррентным соотношени м (1) -.(4) признаком окончани  вычислительного процесса в случае вычислени  функции Х Y будет попадание заданного значени  Y в интервал Y(X), Y(x+1)-l. В устройстве значение Y(x) формируетс  на выходе накапливающего сумматора 4, значение Y(x+1)-1 - на выходе комбинационного сумматора 17, сравнение заданного значени  аргумента с границами интервала производитс  на схемах 1,14 сравнени .Based on the above, when calculating by recurrent relations (1) -. (4), the sign of the end of the computational process in the case of calculating the function X Y will be the hit of the given value Y in the interval Y (X), Y (x + 1) -l. In the device, the value of Y (x) is formed at the output of accumulating adder 4, the value of Y (x + 1) -1 is at the output of the combinational adder 17, the comparison of the specified argument value with the interval boundaries is performed in comparison circuits 1.14.

Устройство работает следующим образом .The device works as follows.

Исходное состо ние задаетс  единичным сигналом на входе 11 сброса SR устройства. В этом состо нии на первом выходе R блока 7 управлени  присутствует единичный сигнал, которым осуществлен сброс счетчика 2 и накапливающего сумматора 4.На втором третьем и п том выходах блока 7 управлени  присутствуют нулевые сигналы , на четвертом выходе RA - единичный .The initial state is given by a single signal at input 11 of the device SR. In this state, the first output R of the control unit 7 contains a single signal, which reset the counter 2 and accumulating adder 4. The second third and fifth outputs of the control unit 7 contain zero signals, and the fourth output RA contains a single signal.

Режим 1-ый возведени  в квадрат задаетс  единичным сигналом SQ 1с входа 18 режима устройства. В этом режиме нулевым сигналом с п того выхода W блока 7 управлени  через мултиплексор 15 и коммутатор 16 осуществл етс  подключение к выходу 19The 1st squaring mode is defined by the single signal SQ 1c of the device mode input 18. In this mode, the zero signal from the fifth output W of the control unit 7 through the multiplexer 15 and the switch 16 is connected to the output 19

5 five

ю Yu

, ь15, lb15

2020

2525

30thirty

3535

4040

4545

5050

5555

результата устройства выхода накапливающего сумматора 4, к вторым входам схем 1,14 сравнени  - пр мого выхода счетчика 2.the result of the output device of the accumulating adder 4, to the second inputs of the comparison circuits 1.14 - the direct output of the counter 2.

Поступление данных на вход 13 аргумента устройства сопровождаетс  кратковременным единичным сигналом ST на вход 10 запуска устройства. По этому сигналу на первом R и четвертом RA выходах блока 7 управлени  устанавливаетс  нулевой сигнал, а также начинают восприниматьс  блоком .7 управлени  сигналы с выходов схем 1,14 сравнени  и с входа 18 режима SQ. При такой дисциплине запуска динамическа  погрешность выполнени  вычислительных операций возведени  в квадрат равна нулю, если скорость поступлени  новых значений аргумента не вьш1е скорости формировани  результата по предыдущему значению .The arrival of data at the input 13 of the device argument is accompanied by a brief single signal ST at the input 10 of the start of the device. This signal at the first R and fourth RA outputs of the control unit 7 sets the zero signal, and also the control unit .7 controls the signals from the outputs of the comparison circuits 1.14 and from the input 18 of the SQ mode. With this launch discipline, the dynamic error in performing computational squaring operations is zero if the rate of arrival of new values of the argument is not higher than the rate of formation of the result from the previous value.

Если значение входного аргумента X больше величины, содержащейс  в счетчике 2, то на выходах и схем 1, 14 сравнени  и одноименных входах блока 7 управлени  образуетс  комбинаци  сигналов 10 (см. строку 1, табл 1). В этом случае блок 7 управлени  формирует на своих третьем и втором выходах последовательность синхронизирующих сигналов S2, S1. По S2 происходит увеличение содержимого накапливающего сумматора 4, по S1 - увеличение содержимого счетчика 2 на единицу.If the value of the input argument X is greater than the value contained in the counter 2, then the outputs and the comparison circuits 1, 14 and the same-named inputs of the control unit 7 form a combination of signals 10 (see line 1, table 1). In this case, the control unit 7 forms at its third and second outputs a sequence of synchronization signals S2, S1. S2 increases the content of accumulating adder 4, S1 increases the content of counter 2 by one.

Если значение входного кода аргумента X меньше величины, содержащейс  в счетчике 2, то на выходах и схем 1,14 сравнени  образуетс  комбинаци  сигналов 01 (см. строку 2, табл. 1). В этом случае блок 7 управлени  формирует на своих втором и третьем выходах последовательность синхронизирующих сигналов S1,S2. По S1 происходит уменьшение содержимого счетчика 2 на единицу, по S2 - уменьшение содержимого накапливающего сумматора 4, так как в этом случае на входы старших разр дов информационного входа накапливающего сумматора 4 поступает через мультиплексор 3 информаци  с инверсного выхода счетчика 2.If the value of the input code of the argument X is less than the value contained in counter 2, then the outputs and the comparison circuits 1.14 produce a combination of signals 01 (see line 2, table 1). In this case, the control unit 7 forms at its second and third outputs a sequence of synchronization signals S1, S2. S1 reduces the content of counter 2 by one, and S2 reduces the content of accumulating adder 4, since in this case the inputs of the higher bits of the information input of accumulating adder 4 are fed through multiplexer 3 information from the inverse output of counter 2.

В результате изложенных действий устройство осуществл ет вычисление функции по формулам (1), (2) или (3),(А) соответственно.As a result of the described actions, the device calculates the function by formulas (1), (2) or (3), (A), respectively.

При равенстве содержимого счетчи ка 2 значение входного аргумента X (код 00 на входах и блока 7 управлени ) на четвертом выходе блока управлени  и на выходе 12 готовности результата устройства формируетс  единичный сигнал, на выходе 19 результата устройства - значение вычисленной функции Y X .When the contents of counter 2 are equal, the value of the input argument X (code 00 at the inputs and the control unit 7) at the fourth output of the control unit and at the output 12 of the device result readiness produces a single signal, at the output 19 of the device result the value of the calculated function Y X.

Процесс вычислени  корн  квадратного основан на том, что при режиме возведени  в квадрат после завершени  цикла вычислени  содержимое пр мых выходов счетчика 2  вл етс  корнем квадратным от величины , снимаемой с выходов накапливающего сумматора 4.The process of calculating the square root is based on the fact that during the square squaring mode, after the completion of the calculation cycle, the contents of the direct outputs of counter 2 is the square root of the value taken from the outputs of accumulating adder 4.

Режим 2-ой извлечени  квадратного корн  задаетс  нулевым сигналом SQ 0 с входа 18 режима устройства. В этом режиме единичным сигналом с п того выхода W блока 7 управлени  мультиплексор 15 подключает на второй вход первой схемы 1 сравнени  выход комбинационного сумматора 17, коммутатор 16 подключает на выход 19 результата пр мой выход счетчика 2, на второй вход схемы 1Д сравнени  выход накаплинаюшего сумматора 4. В результате таких подключений на вторые входь схем 14, 1 сравнени  будут подаватьс  значени , соответствующие концам инти 5пала У(х), Y(x + + 1)-1, 1топада1 ие в который входного аргумента Y будет свидете. 1ьст- вовать об oKOriqaHviH вычислительного процесса.The mode of the 2nd square root extraction is given by the zero signal SQ 0 from the input 18 of the device mode. In this mode, a single signal from the fifth output W of the control unit 7 multiplexer 15 connects the output of the combinational adder 17 to the second input of the first comparison circuit 1, the switch 16 connects the direct output of the counter 2 to the output 19 of the result, and the second accumulator of the ad accumulator 1 4. As a result of such connections, the values corresponding to the ends of the 5th pal Y (x), Y (x + + 1) -1, 1 stop 1 into which the input argument Y will witness will be supplied to the second input of the comparison circuits 14, 1. 1 st oKOriqaHviH computational process.

После поступлени  данных на вход 13 аргумента устройства по сигналу ST на входе 10 запуска устройства блок 7 управлени  переводит СРОЙ четвертый вьгхг, RA в нулевое состо ние и начнет вырабатывать синхронизирующие импульсы S1, S2 в последовательности , определ емые комбинацией сигналов на своих входахAfter the data is received at the input 13 of the device argument by the ST signal at the input 10 of the device start, the control unit 7 sets the CROWN fourth vrxg, RA to the zero state and starts generating clock pulses S1, S2 into sequences determined by the combination of signals at its inputs

гI /и gI / s

Табл. 1 по сн ет работу устройства .Tab. 1 shows the operation of the device.

Если значение входного аргумента У на входе 13 устройства больше, чем значение У(х+1)-1, содержаи1ее- с  в комбинационном сумматоре 17, то (см. строку 1, табл. 1) цо ouixpo сигналу S2 прсизойдет увеличение содержимого накапливающего суммах ра 4 (Y (х)-- У (х+1) , а мо синхросиг10If the value of the input argument Y at the input 13 of the device is greater than the value Y (x + 1) -1, which contains c in the combinational adder 17, then (see line 1, Table 1) the ouixpo signal S2 will increase the content of the accumulating sums pa 4 (Y (x) - Y (x + 1), and mo sync Sig10

- -

3488 П63488 P6

налу S1 - увеличе} ие содержимого счетчика 2 ( х+1) .nalu S1 - increase} the contents of counter 2 (x + 1).

Ксли значение входного аргумента У на входе 13 устройства меньше,чем значение У(х), содержащеес  в накапливающемс  сумматоре 4, то (см. строку 2 табл. 1) по сигналам S1, S2 произойдет соответственно уменьще- ние содержимого счетчика 2 и накапливающего сумматора 4.If the value of the input argument Y at the input 13 of the device is less than the value Y (x) contained in accumulative adder 4, then (see line 2, table 1) the signals S1, S2 will decrease according to the content of counter 2 and accumulating adder four.

При попадании ьходного аргумента У в интервал У(х), Y(x+1)-l на входы , блока 7 управлени  поступает комбинаци  сигналов 00 (см. строку 3 табл 1), по } оторому синхронизирующие сигналы не вырабатываютс , на выходе 12 готовности результата устройства по вл етс  единичный сигнал, на выходе 19 результата устройства находитс  вычис- v AWhen the input argument Y falls into the interval Y (x), Y (x + 1) -l, a combination of signals 00 is received at the inputs of control unit 7 (see line 3, table 1), the clock signals are not generated, output 12 a single signal appears when the device’s result is ready, the output of the device’s result 19 is calculated

1515

00

30thirty

ЗЬSc

4040

4545

5050

5555

-ченное значение .-value value.

Формирование управл ющих сигналов в соответствии с описанным алгоритмом осуществл етс  блоком 7 управлени  (фиг. 4). Ксли блок 7 управлени  построен, например, на основе ПЛМ (фиг. 3), то по размеченной блок- схеме (фиг. 4) в соответствии с известной методикой несложно построить таб.Г. 2 фyнкциot иpoвaни  блока 7 управлени  и осуществить прошивку ИЛ (фиг. 5) .The formation of control signals in accordance with the described algorithm is carried out by the control unit 7 (Fig. 4). If the control unit 7 is constructed, for example, on the basis of a PLA (Fig. 3), then according to the marked flowchart (Fig. 4) in accordance with a known technique, it is easy to construct a tab.G. 2 FUNCTIONS of the control unit 7 and the firmware of the IL (Fig. 5).

Наличие н блоке 7 управлени  (фиг. 3) триггера 22 обеспечивает возможность перевода устройства дл  возне/гени  в квадрат в исходное положение после выполнени  очередного цикла вычислений, если в течение этого цикла или после его окончани  на вход сброса SR блока 7 управлени  поступал импульсный единичный сигнал.The presence of the control block 7 (Fig. 3) of the trigger 22 makes it possible to turn the device for the squaring into the initial position after executing the next calculation cycle if during this cycle or after its termination a pulse unit arrived at the reset input SR of the control unit 7 signal.

Наличие триггера 23 в блоке 7 управлени  исключает возможность изменени  режима устройства статическим сигналом SQ с входа режима )i течение одного цикла вычислений (текущего). Иериоп тактовых импульсов генерат(;;рп 25 импульсов опре- цел :еус  Оьк-тро действием и с: пользуемых ь усч рш пч е дл  возведени  в .ат rvMr- cVropoB и схем срав- 1 It;мн  .The presence of the trigger 23 in the control block 7 excludes the possibility of changing the mode of the device with the static signal SQ from the mode input) i during one calculation cycle (current). The ieriop clock pulses are generated (;; rp 25 pulses are determined by: eus ok-tro action and c: used by us for the erection of .at rvMr-cVropoB and cfr- 1 It; pl.

.Цлч описанных режимов работы уст- poiicTjia вычисление ,едуюшего значе- ;:у1;кции ocMii n.iHt) на значени пре-- дьа,ущс;го значени  этой функции. Это 1и)нол ет обесги чипать высокое быс- ,еГ:ствие гги о ; .: Тке М Т.пых при713. The number of the described modes of operation of the device is a poiicTjia calculation, the value goes to ;-: y1; ktsii ocMii n.iHt) for the values of the foretep, the fault; the go value of this function. This 1i) gives you a chip high chipset fast, eG: the effect of ggi o; .: Tke M T.pykh at 713

ращений аргумента. Кроме того, устройство имеет высокую помехоустойчивость за счет некритичности к единичным сбо м входных данных, так как устройство отслеживает любые изменени  входного аргумента. Если сбой не приводит к изменению сигналов на выходах схем 1,14 сравнени  то они не сказываютс  на конечном результате. В противном случае устройство выполнит обратное требуемому действие (например, вместо суммировани  выполн етс  вычитание приращени  функции), однако после восста новлени  значени  аргумента на входе устройства процесс вычислени  функции будет продолжен до момента получени  истинного результата.rascheny argument. In addition, the device has high noise immunity due to noncriticality to single input data failure, since the device monitors any changes in the input argument. If the failure does not lead to a change in the signals at the outputs of the 1.14 comparison circuits, then they do not affect the final result. Otherwise, the device performs the inverse of the required action (for example, instead of the summation, the function increments are subtracted), however, after the restoration of the argument value at the device input, the process of calculating the function will continue until the true result is obtained.

Таким образом, даже при наличии единичных сбоев входных данных будет получен верный результат,при этом в общем случае может лишь увеличитс  врем  вычислений.Thus, even in the presence of single input data failures, a correct result will be obtained, and in the general case, the computation time can only increase.

Пример 1. Режим 1 ().Example 1. Mode 1 ().

Вычислительный процесс возведени  в квадрат числа 6« (OOOllOj) начинаетс  после поступлени  сигнала ST на вход 10 запуска устройства . При этом состо ние выходов схем 1,14 сравнени , счетчика 2, накапливающего сумматора 4 будет измен тьс  в соответствии с табл. 3.The computational process of squaring the number 6 "(OOOllOj) begins after the arrival of the ST signal at the device launch input 10. In this state, the outputs of the comparison circuits 1.14, counter 2, accumulating adder 4 will vary in accordance with the table. 3

П р и м е р 2. Режим 1 ().PRI mme R 2. Mode 1 ().

Предположим,что после четвертого шага произошел сбой, в результате которого на входе образовалс  нулевой код. После выполнени  текущего шага данные на входе восстановились и стали равными 6 (0001lOt). Suppose that after the fourth step a failure occurred, as a result of which a zero code was formed at the input. After the current step, the input data was restored and became equal to 6 (0001lOt).

Вычислительный процесс будет происходить в соответствии с табл. 4.The computational process will occur in accordance with the table. four.

В отличие от примера 1 здесь количество шагов вычислений увеличилось на два, однако конечный резуль- тат осталс  без изменений.In contrast to Example 1, the number of calculation steps here increased by two, but the final result remained unchanged.

П р и м е р 3. Режим 1 ().PRI me R 3. Mode 1 ().

Предположим, что значение аргумента по сравнению с примером 1 изменилось и стало равным (OOOIOOj). Suppose that the value of the argument has changed and become equal (OOOIOOj) as compared with example 1.

Вычислительный процесс будет протекать в соответствии с табл. 5.The computational process will proceed in accordance with the table. five.

Таким образом, если дл  возведени  в квадрат числа в примере 1 потребовалось бы четыре шага вычисле НИИ,то в примере 3 эта операци  осуществилась бы за два шага.Thus, if for squaring the number in example 1, it would take four steps to calculate the SRI, then in example 3 this operation would be carried out in two steps.

Эффект от повышени  быстродействи устройства тем больше, чем больша The effect of increasing the speed of the device is greater, the greater

8eight

5five

о about

00

g g

QQ

g g

5five

зеличина входного аргумента и меньше величина его приращени .Zelichina input argument and less than the value of its increment.

П р и м е р 4. Режим 2 ().PRI me R 4. Mode 2 ().

Вычислительный процесс извлечени  квадратного корн  из числа (1001012) начинаетс  после поступлени  сигнала ST на вход запуска устройства .The computational process of extracting the square root of the number (1001012) begins after the signal ST arrives at the device start input.

Состо ние выходов схем 1,14 сравнени , счетчика 2, накапливающего и комбинационного сумматоров 4,17 будет измен тьс  в соответствии с табл. 6.The output state of the comparison circuits 1.14, counter 2, accumulation and combination adders 4.17 will vary in accordance with the table. 6

Вычислительный процесс заканчиваетс  при попадании значени  аргумента в интервал 36 , Вычисленное значение квадратного корн  равно бло .The computational process ends when the value of the argument falls in the interval 36, the computed value of the square root is equal to blo.

П р и м е р 5. Режим 2 ().PRI me R 5. Mode 2 ().

Предположим,что после четвертого шага вычислений произошел сбой,в результате котого на входе образовалс  нулевой код. После выполнени  одного шага вычислений данные на входе восстановились и стали равными (100101).Suppose that after the fourth step of the calculation a failure occurred, as a result of which a zero code was formed at the input. After performing one calculation step, the input data was restored and became equal (100101).

Вычислительный процесс будет происходить в соответствии с табл. 7.The computational process will occur in accordance with the table. 7

П р и м е р 6. Режим 2 ().PRI me R 6. Mode 2 ().

Предположим,что значение аргумента по сравнению с примером 4 изменилось и стало равным (OlOOOi).Suppose that the value of the argument has changed and become equal (OlOOOi) as compared to Example 4.

Вычислительный процесс будет протекать в соответствии с табл. 8.The computational process will proceed in accordance with the table. eight.

Таким образом, результат вычислени  ; квадратного корн  из числа 16 получен за два шага.Thus, the result of the calculation; The square root of 16 is obtained in two steps.

Claims (1)

Формула изобретени  Invention Formula Устройство .дл  вычислени  степенной функции, содержащее реверсивный счетчик, накапливающий сумматор,первый мультиплексор, первую схему сравнени , первый и второй элементы И, микропрограммный блок управлени , входы запуска и начальной установки которого соединены с одноименными входами устройства, первый выход - с входами сброса реверсивного счетчика и накапливающего сумматора, второй и третий выходы подключены к первым входам первого и второго элементов И и к синхронизирующему входу накапливающего сумматора соответственно , а четвертый выход  вл етс  выходом готовности результата устройства , информационный вход устройства соединен с первым входом первой схемы сравнени , выход Больше,которой подключен к второму входу первого элемента И и к управл ющему входу первого мультиплексора, первый и второй информационные входы которого соединены с пр мым и инверсным выходами реверсивного счетчика соответственно , суммирующий и вь читающий входы которого подключены к выходам первого и второго элементов И соответственно , входы старших и младшего разр дов информационного входа накапливающего сумматора соединены соответственно с выходом первого мультиплексора и входом логической единицы устройства, отличающеес  тем,что, с целью повышени  точности, в него введены второй мультиплексор, втора  схема сравнени , коммутатор и комбинационный сумматор, первый информационный вход которого подключен к выходу накапливающего сумматора и одноименному входу коммутатора,входы старших разр дов второго информационного входа комбинационного сумматора соединены с пр мым выходом реверA device for calculating a power function containing a reversible counter, accumulating adder, the first multiplexer, the first comparison circuit, the first and second elements AND, the microprogram control unit, the start and initial installation inputs of which are connected to the device inputs of the same name, the first output - to the reverse inputs of the reverse the counter and accumulating adder, the second and third outputs are connected to the first inputs of the first and second And elements and to the synchronizing input of the accumulating adder, respectively, and the lateral output is the output of the output of the device, the information input of the device is connected to the first input of the first comparison circuit, the output More, which is connected to the second input of the first And element and to the control input of the first multiplexer, the first and second information inputs of which are connected to the direct and inverse outputs of the reversible counter, respectively, the summing and reading inputs of which are connected to the outputs of the first and second elements AND, respectively, the inputs of the high and low bits of the information The input of the accumulating adder is connected respectively to the output of the first multiplexer and the input of the logical unit of the device, characterized in that, in order to improve accuracy, a second multiplexer, a second comparison circuit, a switch and a combiner adder, the first information input of which is connected to the accumulator adder's output, are introduced into it and to the same input of the switch, the inputs of the higher bits of the second information input of the combinational adder are connected to the direct output rever 5five 00 GG гивиого счетчика и вторым информационным входом ко ммутатора, а вхог; младшего разр да - с входЛм логического нул  устройства, информационный вход устройства подключен к первому входу второй cxt Mbi сравнени , вьгход Меньше которой соединен с вторым входом второго элемента И и выходом второго признака микропрограммного блока управлени , вход первого приз нака и вход режима которого подключены к выходу Больше первой схемы сравнени  и входу задани  режима устройства соответственно, п тый выход микропрограммного блока управлени  соединен с управл ющими входами коммутатора и второго мультиплексора, выход которого и первый выход коммутатора подключены к вторым входам первой и второй схем сравнени  соответственно , первый и второй информационные входы второго мультиплексора соединены соответственно с выходом комбинационного сумматора и первым выходом коммутатора, второй выход KOTopciro  вл етс  выходом результата устройства.A bi-counter and the second information input to the mmutator, and vhog; the lower order is from the input of the logical zero of the device, the information input of the device is connected to the first input of the second comparison cxt Mbi, the input Less than which is connected to the second input of the second element AND and the output of the second feature of the microprogram control unit, the input of the first prize of the circuit and the mode input of which are connected output More than the first comparison circuit and the device mode input input, respectively, the fifth output of the firmware control unit is connected to the control inputs of the switch and the second multiplexer, the output to The first and second outputs of the switch are connected to the second inputs of the first and second comparison circuits, respectively, the first and second information inputs of the second multiplexer are respectively connected to the output of the combinational adder and the first output of the switch, the second output of the KOTopciro is output from the device. Таблица 1Table 1 ТаблицаTable (jowz.;(jowz .; ГR Составитель Н.Шелобанова Редактор Н.Слобод ник Техред А.КравчукКорректор М.ДемчикCompiled by N. Shelobanova Editor N. Slobod nickname Tehred A. Kravchuk Corrector M. Demchik Заказ 5191/48 Тираж 670Order 5191/48 Run 670 ВНИИПИ Государственного комитета СССРVNIIPI USSR State Committee по делам изобретенир и открытий 11-3035, Мсскка, Ж-35, Раушска  наб., д. 4/5for inventions and discoveries 11-3035, Moscow, Zh-35, 4/5 Raushsk nab. Произнодственно-полиграфнческое предпри тие, г. Ужгород, ул. Проектна , 4Polygraphic Enterprise, Uzhgorod, st. Project, 4 inin OSOS ПодписноеSubscription
SU864078351A 1986-06-17 1986-06-17 Device for computing exponential function SU1348831A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU864078351A SU1348831A1 (en) 1986-06-17 1986-06-17 Device for computing exponential function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU864078351A SU1348831A1 (en) 1986-06-17 1986-06-17 Device for computing exponential function

Publications (1)

Publication Number Publication Date
SU1348831A1 true SU1348831A1 (en) 1987-10-30

Family

ID=21241697

Family Applications (1)

Application Number Title Priority Date Filing Date
SU864078351A SU1348831A1 (en) 1986-06-17 1986-06-17 Device for computing exponential function

Country Status (1)

Country Link
SU (1) SU1348831A1 (en)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Авторское свидетельство СССР № 1167605, кл. G 06 F 7/552, 1985. Авторское свидетельство СССР № 1280616, кл. G 06 F 7/552, 1985. *

Similar Documents

Publication Publication Date Title
US3838259A (en) Circuit arrangement for generating pseudo random numbers
EP0066768B1 (en) Apparatus for generation of random numbers
US5798955A (en) High-speed division and square root calculation unit
JP3714570B2 (en) Division circuit for parallel processing
SU1348831A1 (en) Device for computing exponential function
US4224680A (en) Parity prediction circuit for adder/counter
US4538238A (en) Method and apparatus for calculating the residue of a signed binary number
RU2696223C1 (en) Arithmetic logic unit for generating residual by arbitrary module from number
US4503512A (en) Cellular division circuit
US3311739A (en) Accumulative multiplier
EP0030857B1 (en) Programmable counter circuit
US4538237A (en) Method and apparatus for calculating the residue of a binary number
SU1280616A1 (en) Device for squaring numbers
SU1339553A1 (en) Divider
RU2018933C1 (en) Divider
SU1388852A1 (en) Multiplier
SU1027722A1 (en) Conveyer-type device for computing logarithmic and exponential function
RU2642385C1 (en) DEVICE FOR CALCULATING arctg Y/X FUNCTION
SU429423A1 (en) ARITHMETIC DEVICE
SU1325468A1 (en) Computing device
RU2018934C1 (en) Divider
SU1151957A1 (en) Device for calculating value of square root
SU1667060A1 (en) Divider
KR100505471B1 (en) A waveform generation method using data conversion
SU711560A1 (en) Arrangement for taking logarithms