SU771672A1 - Device for computing logarithmic functions - Google Patents

Device for computing logarithmic functions Download PDF

Info

Publication number
SU771672A1
SU771672A1 SU782709186A SU2709186A SU771672A1 SU 771672 A1 SU771672 A1 SU 771672A1 SU 782709186 A SU782709186 A SU 782709186A SU 2709186 A SU2709186 A SU 2709186A SU 771672 A1 SU771672 A1 SU 771672A1
Authority
SU
USSR - Soviet Union
Prior art keywords
counter
input
output
binary
decoder
Prior art date
Application number
SU782709186A
Other languages
Russian (ru)
Inventor
Вячеслав Родионович Толокновский
Валерий Эмануилович Штейнберг
Original Assignee
Предприятие П/Я Р-6378
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 Предприятие П/Я Р-6378 filed Critical Предприятие П/Я Р-6378
Priority to SU782709186A priority Critical patent/SU771672A1/en
Application granted granted Critical
Publication of SU771672A1 publication Critical patent/SU771672A1/en

Links

Description

Изобретение относится к вычислительной технике, а именно к устройствам· для воспроизведения и вычисления логарифмических функций методом кусочно-линейной аппроксимации.The invention relates to computing, and in particular to devices · for reproducing and calculating logarithmic functions by the method of piecewise linear approximation.

Извесгаы устройства для функционального преобразования информационных сигналов в виде унитарных кодов [1], содержащие управляемый делитель, счетчик участков, блок памяти и схему его управления. Такие устройства хотя и обеспечивают кусочно-линейную аппроксимацию с фиксированным шагом по выходной переменной, однако имеют существенный недостаток — табличное задание функции, что при повышенных требованиях к точности приводит к увеличению приборных затрат и снижению надежности.The device is known for the functional conversion of information signals in the form of unitary codes [1], containing a controlled divider, a counter of sections, a memory block and its control circuit. Such devices, although they provide a piecewise linear approximation with a fixed step in the output variable, however, they have a significant drawback - a tabular definition of the function, which, with increased accuracy requirements, leads to an increase in instrument costs and a decrease in reliability.

Наиболее близким по технической сущности к предложенному является устройство для воспроизведения логарифмических функций — аппроксимирующей функции [21, содержащее генератор импульсов, ключ, счетчик аргумента, счетчик результата, регистр сдвига, первый и второй двоичные умножители, каждый из которых состоит из счетчика, дешифратора и эле2 мента ИЛИ, входы которого соединены с выходами дешифратора, входы которого соединены с выходами счётчика, причем выход генератора импульсов соединен с информационным входом ключа, разрешающий вход которого является входом устройства, запрещающий вход соединен с выходом счетчика аргумента, а выход ключа соединен со входами счетчиков первого и второго двоичных умножителей.The closest in technical essence to the proposed one is a device for reproducing logarithmic functions - an approximating function [21, containing a pulse generator, a key, an argument counter, a result counter, a shift register, the first and second binary multipliers, each of which consists of a counter, a decoder and ele2 OR, whose inputs are connected to the outputs of the decoder, the inputs of which are connected to the outputs of the counter, and the output of the pulse generator is connected to the information input of the key, allowing the input to orogo is an input device for prohibiting the input connected to the output of the counter argument, and an output switch coupled to the inputs of counters of the first and second binary multipliers.

Вход дешифратора первого двоичного умножителя соединен с выходом регистра сдвига, вход которого соединен с выходом старшего разряда счетчика второго двоичного умножителя, выход элемента ИЛИ первого двоичного умножителя соединен со входом счетчика аргумента.The input of the decoder of the first binary multiplier is connected to the output of the shift register, the input of which is connected to the high-order output of the counter of the second binary multiplier, the output of the OR element of the first binary multiplier is connected to the input of the argument counter.

Недостатком устройства является низкая точность вследствие того, что аппроксимирующая функция имеет ступенчатую форму.The disadvantage of this device is the low accuracy due to the fact that the approximating function has a stepped shape.

Цель изобретения — повышение точности.The purpose of the invention is improving accuracy.

Поставленная цель достигается тем, что в устройство, содержащее генератор импульсов, ключ, счетчик аргумента, счетчик результата, регистр сдвига, первый и второй двоичные умножители, каждый из которых состоит из счетчика, дешиф· ратора и элемента ИЛИ, вхбды которого соединены с выходами дешифратора, входы которого соединены с выходами счетчика, причем выход генератора импульсов соединен с информационным входом ключа, разрешающий вход которо- 5 го является входом устройства, запрещающий вход соединен с выходом счетчика аргумента, а выход ключа соединен со входами счетчиков первого и второго двоичных умножителей, вход дешифратора первого двоичного умножителя 10 соединен о выходом регистра сдвига, вход которого соединен с выходом старшего разряда |счетчика второго двоичного умножителя, выход! элемента ИЛИ первого двоичного умножителя соединен со входом счетчика аргумента, допол- 15 нительно введены третий двоичный умножитель, состоящий также из счетчика, дешифратора и элемента ИЛИ, и блок коррекции, включающий счетчик, дешифратор, блок памяти, триггер и сумматор. При этом выход счетчика второго 20 двоичного умножителя соединен со входом счетчика блока коррекции, выход которого через триггер соединен с первым входом сумматора. Выходы разрядов счетчика блока коррекции через дешифратор блока коррекции и блок 25 памяти соединены со входом дешифратора третьего двоичного умножителя, выход элемента ИЛИ которого подключен ко второму входу сумматора, третий вход сумматора ,соединен с информационным ВЫХОДОМ второго ДВОИЧНОГО умно- 30 жителя, а выход сумматора, подключен ко входу счетчика результата.This goal is achieved by the fact that in a device containing a pulse generator, a key, an argument counter, a result counter, a shift register, the first and second binary multipliers, each of which consists of a counter, a decoder and an OR element, the inputs of which are connected to the outputs of the decoder having inputs connected to the outputs of the counter, wherein the pulse generator output is connected to an information input key enabling input kotoro- 5 is an input device of prohibiting input connected to the output of the argument counter, and output to the beam is connected to the inputs of the counters of the first and second binary multipliers, the input of the decoder of the first binary multiplier 10 is connected to the output of the shift register, the input of which is connected to the output of the high order | counter of the second binary multiplier, output! The OR element of the first binary multiplier is connected to the input of the argument counter; in addition, a third binary multiplier is introduced, which also consists of a counter, a decoder and an OR element, and a correction unit, including a counter, a decoder, a memory block, a trigger, and an adder. In this case, the counter output of the second 20 binary multiplier is connected to the input of the counter of the correction unit, the output of which through the trigger is connected to the first input of the adder. The outputs of the bits of the counter of the correction unit through the decoder of the correction unit and the memory unit 25 are connected to the input of the decoder of the third binary multiplier, the output of the OR element of which is connected to the second input of the adder, the third input of the adder is connected to the information OUTPUT of the second Binary multiplier, and the output of the adder, connected to the input of the result counter.

Структурная схема предложенного устройства приведена на чертеже.The structural diagram of the proposed device is shown in the drawing.

Устройство содержит генератор 1 импульсов; 35 ключ 2; счетчик 3 аргумента; первый двоичный умножитель 4; регистр 5 сдвига; второй двоичный умножитель 6; счетчик 7 результата; блок 8 коррекции; третий двоичный умножитель 9.Блок 8 коррекции включает в себя 40 счетчик 10, дешифратор 11, блок 12 памяти, триггер 13 и сумматор 14 (импульсов). Двоичные ^умножители состоят из счетчика 15, дешифратора 16, элемента ИЛИ 17.The device contains a pulse generator 1; 35 key 2; counter 3 arguments; first binary multiplier 4; shift register 5; second binary multiplier 6; counter 7 result; block 8 correction; the third binary multiplier 9. The correction unit 8 includes 40 counter 10, a decoder 11, a memory unit 12, a trigger 13, and an adder 14 (pulses). Binary ^ multipliers consist of a counter 15, a decoder 16, an OR element 17.

Предложенное устройство работает следующим 45 образом.The proposed device operates as follows 45 .

Коэффициент пересчета счетчика 3 аргумента устанавливается равным заданному значению аргумента, в регистр 5 сдвига записывается единица, а триггер 13 устанавливается в состояние, 50 при котором сумматор 14 импульсов фиксируется в режиме сложения. На управляющих входах двоичного умножителя 9 устанавливается! код первого углового коэффициента корректирующей функции. ,The conversion factor of the counter 3 argument is set equal to the specified value of the argument, a unit is written into the shift register 5, and the trigger 13 is set to a state 50 in which the pulse adder 14 is fixed in the addition mode. On the control inputs of the binary multiplier 9 is installed! code of the first angular coefficient of the correction function. ,

При подаче сигнала пуска на ключ 2 он отпирается и счетные импульсы с выхода генератора 1 поступают на вход двоичных умножителей 4, 6 и 9. Устройство обрабатывает аппрокси мирующую функцию на первом участке. При отработке каждого участка коррекции на вход счетчика 10 поступает по одному импульсу, что приводит к переключению кодов угловых коэффициентов на управляющих входах двоичного умножителя 9, При отработке первой половины первого участка аппроксимации и, соответственно, первой половины участков коррекции корректирующие импульсы, поступающие на вход сумматора 14 импульсов, суммируются с импульсами приращения. Скорректированное приращение функции интегрируется в счетчике 7 результата. В момент окончания отработки первой половины участков коррекции, что соответствует прохождению точки максимальной погрешности, на вход триггера 13 со счетчика 10 поступает импульс, в результате чего триггер 13 перебрасывается и устанавливает сумматор 14 импульсов в режим вычитания. В момент окончания отработки первого участка аппроксимации и, соответственно, второй половины участков коррекции счетчик 10 и триггер 13 приходят в исходное состояние, на вход регистра 5 сдвига поступает единица, и устройство осуществляет отработку второго участка аппроксимации.When a start signal is supplied to key 2, it is unlocked and the counting pulses from the output of generator 1 are fed to the input of binary multipliers 4, 6, and 9. The device processes the approximating function in the first section. When working out each correction section, one pulse is supplied to the input of the counter 10, which leads to switching of the codes of angular coefficients at the control inputs of the binary multiplier 9, When working out the first half of the first approximation section and, accordingly, the first half of the correction sections, the correcting pulses received at the input of the adder 14 pulses are summed with incremental pulses. The corrected increment of the function is integrated in the counter 7 of the result. At the moment of completion of the first half of the correction sections, which corresponds to the passage of the maximum error point, a pulse is received at the input of the trigger 13 from the counter 10, as a result of which the trigger 13 is transferred and sets the pulse adder 14 to the subtraction mode. At the moment of completion of the first approximation section and, accordingly, of the second half of the correction sections, the counter 10 and trigger 13 return to their initial state, one is input to the shift register 5, and the device processes the second approximation section.

Для выполнения условия аппроксимации Ду =. 1п2 на управляющих входах двоичного умножителя 6 устанавливается код числа N = = 1п2 = 0,693 с точностью до определения знака после запятой, благодаря чему при переполнении на выход двоичного умножителя 6 поступает число импульсов, равноеTo fulfill the approximation condition, Ду =. 1p2 at the control inputs of the binary multiplier 6, the code of the number N = 1p2 = 0.693 is set up to the decimal point, due to which, when overflowing, the output of the binary multiplier 6 receives the number of pulses equal to

Ду = 1п2 = 693..., а на вход регистра сдвига — единица, что означает окончание отработки очередного участка аппроксимации с шагом Ду = In2 и обеспечивает требуемое изменение углового коэффициента вдвое на каждом последующем участке. Можно видеть, что при поступлении на вход счетчика Ί результата очередного числа”импульсов Ду число импульсов, поступающее на вход счетчика 3 аргумента, увеличивается вдвое.Ду = 1п2 = 693 ..., and the input to the shift register is one, which means the end of the development of the next approximation section with the step Ду = In2 and provides the required change in the angular coefficient by half in each subsequent section. It can be seen that when the result of the next number of ”pulses Du arrives at the counter input число, the number of pulses arriving at the input of counter 3 of the argument doubles.

Сравнение предложенного и известйЪго устройств показывает, что предложенное отличается повышенной (до заданной величины) точностью вычисления, что улучшает эксплуатационные характеристики и позволяет использовать его при обработке информационных сигналов с точностью до сотых долей процента.A comparison of the proposed and known devices shows that the proposed one is characterized by increased (up to a predetermined value) calculation accuracy, which improves operational characteristics and allows its use in processing information signals with an accuracy of hundredths of a percent.

Claims (2)

1.Браго Б. Н. Методы и устройства цифррвого преобразовашт  информации. М., Недра, 1976, с. 58, рис; 25.1. Brago B.N. Methods and devices for digital information conversion. M., Nedra, 1976, p. 58, rice; 25 2.Мельников А. А. и др. Обработка частотных и временных импульсных сигналов. М., Энерги , 1976, с. 96, рис. 8 (прототип).2. Melnikov A. A. and others. Processing of frequency and time pulse signals. M., Energie, 1976, p. 96, fig. 8 (prototype).
SU782709186A 1978-12-26 1978-12-26 Device for computing logarithmic functions SU771672A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU782709186A SU771672A1 (en) 1978-12-26 1978-12-26 Device for computing logarithmic functions

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU782709186A SU771672A1 (en) 1978-12-26 1978-12-26 Device for computing logarithmic functions

Publications (1)

Publication Number Publication Date
SU771672A1 true SU771672A1 (en) 1980-10-15

Family

ID=20803709

Family Applications (1)

Application Number Title Priority Date Filing Date
SU782709186A SU771672A1 (en) 1978-12-26 1978-12-26 Device for computing logarithmic functions

Country Status (1)

Country Link
SU (1) SU771672A1 (en)

Similar Documents

Publication Publication Date Title
US4135249A (en) Signed double precision multiplication logic
SU771672A1 (en) Device for computing logarithmic functions
SU1013953A1 (en) Exponential function computing device
SU1171784A1 (en) Multiplier
SU1645966A1 (en) Device for calculating fourier-galois transforms
SU1038880A1 (en) Scaling converter
SU436351A1 (en) POSSIBLE DEVICE
SU834889A1 (en) Code-to-frequency converter
SU1168922A1 (en) Code converter
SU439805A1 (en) Square root extractor
SU758171A1 (en) Digital computer of sine and cosine functions
SU691862A1 (en) Apparatus for computing logarithmic functions
SU813419A1 (en) Multiplier-divider
SU633017A1 (en) Exponentiation device
SU970354A1 (en) Converter of binarycode to angular valve binary coded decimals
SU1008749A1 (en) Computing device
SU1273922A1 (en) Device for extracting root
SU1092516A1 (en) Digital sine function generator
SU1167608A1 (en) Device for multiplying frequency by code
SU942004A1 (en) Digital coordinate converter
SU1476487A1 (en) Digital net computer node
SU1023341A1 (en) Spectrum analyzer
SU1140115A1 (en) Device for calculating value of polynominal of degree n
SU615609A1 (en) Multiplying counter
SU632080A1 (en) Analogue-digital function generator