SU1612294A1 - Device for computing inverted value - Google Patents
Device for computing inverted value Download PDFInfo
- Publication number
- SU1612294A1 SU1612294A1 SU894642376A SU4642376A SU1612294A1 SU 1612294 A1 SU1612294 A1 SU 1612294A1 SU 894642376 A SU894642376 A SU 894642376A SU 4642376 A SU4642376 A SU 4642376A SU 1612294 A1 SU1612294 A1 SU 1612294A1
- Authority
- SU
- USSR - Soviet Union
- Prior art keywords
- input
- output
- information
- trigger
- adder
- Prior art date
Links
Landscapes
- Complex Calculations (AREA)
Abstract
Изобретение относитс к области автоматики и вычислительной технике и предназначено дл вычислени обратной величины из чисел, представленных в двоичной системе счислени в форме с фиксированной зап той дл случа малых приращений аргументов. Целью изобретени вл етс повышение быстродействи при обработке операндов, значение каждого текущего из которых отлично от предыдущего на незначительную величину, за счет сокращени числа итераций. Устройство может быть использовано как самосто тельно, так и в составе специализированных ЭВМ. Оно содержит сумматоры-вычитатели 1-3, регистры 4-8, сдвигатели 9, 10, мультиплексоры 11, 12, блок 13 приоритета, генератор 14 импульсов, триггер 15 запуска, триггер 16, элемент И 17, элементы ИЛИ 18, 19, схемы 20, 21 сравнени . 1 ил.The invention relates to the field of automation and computing, and is intended to calculate the reciprocal of a number represented in the binary number system in fixed-point form for cases of small increments of arguments. The aim of the invention is to increase the speed when processing operands, the value of each current one of which is different from the previous one by an insignificant amount, by reducing the number of iterations. The device can be used both independently and as part of specialized computers. It contains adders-subtractors 1-3, registers 4-8, shifters 9, 10, multiplexers 11, 12, priority block 13, pulse generator 14, trigger trigger 15, trigger 16, element 17, elements OR 18, 19, circuits 20, 21 comparisons. 1 il.
Description
Изобретение относится к азтоматике и вычислительной технике и предназначено для вычисления обратной величины чисел, представленных в двоичной системе счисления с фиксированной точкой для случая малых приращений аргументов.The invention relates to aztomatics and computer engineering and is intended to calculate the reciprocal of the numbers represented in the binary number system with a fixed point for the case of small increments of the arguments.
Цель изобретения - повышение быстродействия устройства для вычисления обратной величины.The purpose of the invention is to increase the speed of the device for calculating the reciprocal.
На чертеже представлена блок-схема устройства.The drawing shows a block diagram of a device.
Устройство содержит сумматоры-вычитатели 1 - 3, первый 4, третий 5, четвертый 6, второй 7 и пятый 8 регистры, сдвйгатели 9, 10, мультиплексоры 11, 12, блок 13 приоритета, генератор 14 импульсов, триггер 15 запуска, D-триггер 16, элемент И 17. второй 18 и первый 19 элементы ИЛИ, схемы 20 и 21 сравнения.The device contains adders-subtractors 1 - 3, first 4, third 5, fourth 6, second 7 and fifth 8 registers, motors 9, 10, multiplexers 11, 12, priority block 13, pulse generator 14, trigger 15 trigger, D-trigger 16, AND element 17. Second 18 and first 19 OR elements, comparison circuits 20 and 21.
Устройство функционирует аналогично известному устройству для вычисления ряда значений обратной величины из Операндов, отличающихся на величину 2 , где //=1,2.....п-1, где η - разрядность входной информации, но начальный номер итерации определяется по выражениюThe device operates similarly to the known device for calculating a number of reciprocal values from Operands that differ by 2, where //=1,2.....p-1, where η is the bit depth of the input information, but the initial iteration number is determined by the expression
1=//-3, при 0,5 <Х < 0,5945785;1 = // - 3, with 0.5 <X <0.5945785;
i = μ- 2, при 0,5945785 <Х< 0,8284279;i = μ- 2, at 0.5945785 <X <0.8284279;
(1)(1)
I = μ - 1, при 0.8284279 <Х < 1.I = μ - 1, at 0.8284279 <X <1.
Предположим, что в некоторый j-1-й момент времени в регистре 4 записано число Xj - 1, значение обратной величины которого, вычисленное устройством к j-му моменту времени, хранится в регистре 6. На информационный вход устройства поступает новое значение аргумента, из которого в сумматоре 1 образуется разностьSuppose that at some j-1st time moment in register 4 the number Xj - 1 is written, the value of the reciprocal of which, calculated by the device at the j-th time moment, is stored in register 6. A new argument value is received at the information input of the device, from which in adder 1 a difference is formed
AXj = Xj-Xj-i.AXj = Xj-Xj-i.
Эта разность(AXj=2 ~~^,^//=1,2,3.....п-1) из сумматора 1 передается (со знаком) для анализа в блок 13 приоритета, где определяется наиболее старший номер разряда μ в коде разности AXj, в котором записана единица. Знак.разности определяет работу сумматора-вычитателя в подготовительном такте, в котором определяется начальное значение частичного остаткаThis difference (AXj = 2 ~~ ^, ^ // = 1,2,3 ..... p-1) from adder 1 is transmitted (with a sign) for analysis to priority block 13, where the most significant bit number μ is determined in the difference code AXj in which the unit is written. The difference sign determines the operation of the adder-subtractor in the preparatory cycle, in which the initial value of the partial remainder is determined
Zj.i = Ζι-ι,η-Ί - AXjYj-i,n-i.Zj.i = Ζι-ι, η-Ί - AXjYj-i, n-i.
Для этого предыдущее значение обратной величины Yj-i.n-i, хранящееся в регистре 6, передается со сдвигом на μ разрядов вправо (это соответствует умножению на 2 ~9 ), осуществляемым сдвигдтелем 10, управляемого блоком 13 приоритета, через мультиплексор 11 на вход сумматора-вычитателя 2. Кроме того, значение аргумента Xj записывается в регистр 4 и передается через сдвигатель 9 со сдвигом на i разрядов вправо в регистр 7, а в регистр 8 записывается единица в I разряд, что соответствует 5 формированию начальных констант Xj2'' и z , где i - начальный номер итерации, определяемый в соответствии с выражением (1). Значение ϊ определяется схемами 21 и 20 сравнения кодов, на вторые входы которых 10 поданы константы 0,5945785 и 0,8284279, причем первая схема 20 сравнения кода настроена на определение ситуации Меньше, а вторая схема 21 сравнения кода настроена на определение ситуации Боль15 ше. Выходы схем 20 и 21 управляют мультиплексором 12, который в соответствии с значениями схем 20 и 21 сравнения пропускает на выход //- 3, μ - 2, μ- 1 на выходы блока 13 приоритета. С приходом управля20 ющего сигнала Пуск” триггер 15 устанавливается в единичное состояние и разрешает прохождение с генератора 14 импульсов через элемент 17 на сдвиговые входы регистров 7 и 8. Таким образом, происходит 25 формирование приращений сумматоромвычитателем 3 к ранее вычисленному (хранящемуся в регистре 6) результату. Итерационный процесс протекает до выполнения п-1 итерации, что обеспечивает 30 вычисление обратной величины с погрешностью ΙΔΥΙ <2 ~п For this, the previous value of the inverse value Yj-in-i, stored in register 6, is transmitted with a shift of μ bits to the right (this corresponds to multiplication by 2 ~ 9), carried out by the shift switch 10, controlled by priority block 13, through the multiplexer 11 to the input of the adder subtractor 2. In addition, the value of the argument Xj is written to register 4 and transmitted through the shifter 9 with a shift of i bits to the right in register 7, and in the register 8, the unit is written in I bit, which corresponds to 5 formation of the initial constants Xj2 '' and z, where i is the starting number of the iteration, o allocated in accordance with expression (1). The value ϊ is determined by the code comparison circuits 21 and 20, the constants 0.5945785 and 0.8284279 are fed to the second inputs of 10, the first code comparison circuit 20 configured to determine the situation Less, and the second code comparison circuit 21 configured to determine the situation is more than 15. The outputs of circuits 20 and 21 control the multiplexer 12, which, in accordance with the values of comparison circuits 20 and 21, passes to the output // - 3, μ - 2, μ - 1 to the outputs of priority block 13. With the arrival of the Start control signal, trigger 15 is set to a single state and allows the pulse 14 to pass from the generator 14 through element 17 to the shift inputs of registers 7 and 8. Thus, the adder 3 subtracts 3 increments to the previously calculated (stored in register 6) result . The iterative process proceeds until p-1 iteration is completed, which provides 30 calculation of the reciprocal with an error ΙΔΥΙ <2 ~ p
Таким образом, алгоритм работы предлагаемого устройства имеет вид с учетом условия (1) 35 Xj,|+1 = Xj.i + giX2y1) Xj.n-i -*Xj.Thus, the algorithm of the proposed device has the form taking into account the conditions (1) 35 Xj, | +1 = Xj.i + giX2y 1) Xj.ni - * Xj.
Yj.i+1 = Yj.i + 9ίΥ2·<,+1), Yj,n-1 ~*1 /Xj. . -. +1,ecnnZt>0, g, = slgnZ, = | , еми Z1 < 0 (2)Yj.i + 1 = Yj.i + 9ίΥ2 · < , + 1) , Yj, n-1 ~ * 1 / Xj. . -. + 1, ecnnZt> 0, g, = slgnZ, = | , emi Z1 <0 (2)
Zi.M-Zj.i-giXF'^ZiYi -0Zi.M-Zj.i-giXF '^ ZiYi -0
С начальными условиями Zj ι = Zj-i Π-1 -AXjYH,n-i,With the initial conditions Zj ι = Zj-i Π -1 -AXjY H , ni,
AXj - Xj-1. Yj.i = Yj-in-1. Xj.i = Xj-i.n-1, (3)AXj - Xj-1. Yj.i = Yj-in-1. Xj.i = Xj-i.n-1, (3)
X = Xj, Y = 1,1 = //-3//-2, ...n-1, где i - номер итерации текущего вычислительного процесса;X = Xj, Y = 1,1 = // - 3 // - 2, ... n-1, where i is the iteration number of the current computational process;
j - номер обращения к устройству.j is the device access number.
Устройство позволяет повысить быстродействие вычисления обратной величины 50 при 2 приращениях аргумента, сохраняя при этом возможность работы в обычных условиях (1).The device allows to increase the speed of calculating the reciprocal of 50 with 2 increments of the argument, while maintaining the ability to work under ordinary conditions (1).
Пример. Предположим, чтоExample. Let's pretend that
XI = 0,100000, Yi = 1,111111,XI = 0.100000, Yi = 1.111111,
Ζι,5 = 0,000000100000. Необходимо вычислить Y2 для Х2 = 0,100001. Определяют ΔΧι= Х2 - Χί = 0.000001. Ζ2.Ι = Ζι,5 - Δ Χ2Υι,5 = =0,000000100000 - 0,000001111111 = =1,1111 ЮЮ0001 [ДК], так как // = 6, итерационный процесс должен начинаться с ите5 рации I =// -3 = 3 по выражению (3) (операнд принадлежит первому интервалу). Процесс вычисления аналогичен известному устройствуΖι, 5 = 0.000000100000. It is necessary to calculate Y2 for X2 = 0.100001. Determine ΔΧι = X 2 - Χί = 0.000001. Ζ2.Ι = Ζι, 5 - Δ Χ 2 Υι, 5 = = 0.000000100000 - 0.000001111111 = = 1.1111 SJ0001 [DK], since // = 6, the iterative process should begin with iteration I = / / -3 = 3 by expression (3) (the operand belongs to the first interval). The calculation process is similar to the known device.
Имеется Хз = 0.101011 и Уз = 1,011111,There is Xs = 0.101011 and Uz = 1.011111,
Z3.5 = 0,000000001011. Необходимо вычис- 25 литьУддля Х4 = 0,101100. Определяют ΔΧ4= = Х4 - Хз= 0,000001, i =//-2 = 6- 2 = 4, Z<4= = Z3.5 - Δ ХзУз.5 - 0,00000000101 1 -0.00000101111 = 1.11111010011 [ДК]Z3.5 = 0.000000001011. It is necessary to calculate 25 cast for X4 = 0.101100. Determine ΔΧ4 = X4 - X3 = 0.000001, i = // - 2 = 6-2 = 4, Z <4 = Z3.5 - Δ X3Uz.5 - 0.00000000101 1 -0.00000101111 = 1.11111010011 [DK]
Для вычисления Уб потребовалась одна итерация вместо трех по известному устрой ству.To calculate Ub, one iteration was required instead of three according to the known device.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU894642376A SU1612294A1 (en) | 1989-01-24 | 1989-01-24 | Device for computing inverted value |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU894642376A SU1612294A1 (en) | 1989-01-24 | 1989-01-24 | Device for computing inverted value |
Publications (1)
Publication Number | Publication Date |
---|---|
SU1612294A1 true SU1612294A1 (en) | 1990-12-07 |
Family
ID=21425081
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
SU894642376A SU1612294A1 (en) | 1989-01-24 | 1989-01-24 | Device for computing inverted value |
Country Status (1)
Country | Link |
---|---|
SU (1) | SU1612294A1 (en) |
-
1989
- 1989-01-24 SU SU894642376A patent/SU1612294A1/en active
Non-Patent Citations (1)
Title |
---|
Оранский A.M. Аппаратные методы в цифровой вычислительной технике - Минск: БГУ. 1977, с. 180, рис. 6.10. Авторское свидетельство СССР Ms 1035603. кл. G 06 F 7/52, 1981. * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4156922A (en) | Digital system for computation of the values of composite arithmetic expressions | |
EP0136834A2 (en) | A digital circuit performing an arithmetic operation with an overflow | |
GB2330226A (en) | Digital signal processor for performing fixed-point and/or integer arithmetic | |
JPH09507941A (en) | Block normalization without wait cycles in a multi-add floating point sequence | |
JP2738443B2 (en) | Processor | |
US3878985A (en) | Serial-parallel multiplier using booth{3 s algorithm with combined carry-borrow feature | |
US5402368A (en) | Computing unit and digital signal processor using the same | |
US5363322A (en) | Data processor with an integer multiplication function on a fractional multiplier | |
JPH07234778A (en) | Arithmetic circuit | |
JPS6227412B2 (en) | ||
SU1612294A1 (en) | Device for computing inverted value | |
US4611273A (en) | Synchronized microsequencer for a microprocessor | |
EP0296344A2 (en) | Parallel adder having removed dependencies | |
JPH04314126A (en) | Inverse number generating device | |
JPH02127727A (en) | Absolute value addition/subtraction system and its device | |
SU1035603A1 (en) | Device for computing inverse value | |
SU1501052A1 (en) | Function computing device | |
SU1661760A1 (en) | Arc tan function calculator | |
GB2345563A (en) | Digital signal processor for performing fixed-point and/or integer arithmetic | |
JPH0418344B2 (en) | ||
RU2225638C2 (en) | Arithmetic operations in data processing system | |
JPS63254525A (en) | Dividing device | |
JP2575856B2 (en) | Arithmetic circuit | |
SU842796A1 (en) | Device for computing fractional rational function | |
JPH0424766A (en) | Arithmetic operation processor for computer system |