SU1332321A2 - Device for approximately computing the inverse value of normalized binary fraction - Google Patents

Device for approximately computing the inverse value of normalized binary fraction Download PDF

Info

Publication number
SU1332321A2
SU1332321A2 SU864023215A SU4023215A SU1332321A2 SU 1332321 A2 SU1332321 A2 SU 1332321A2 SU 864023215 A SU864023215 A SU 864023215A SU 4023215 A SU4023215 A SU 4023215A SU 1332321 A2 SU1332321 A2 SU 1332321A2
Authority
SU
USSR - Soviet Union
Prior art keywords
input
node
code
outputs
control code
Prior art date
Application number
SU864023215A
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 SU864023215A priority Critical patent/SU1332321A2/en
Application granted granted Critical
Publication of SU1332321A2 publication Critical patent/SU1332321A2/en

Links

Landscapes

  • Complex Calculations (AREA)

Abstract

Изобретение относитс  к вычислительной технике и может быть использовано при создании арифметических устройств вычислительных машин. Устройство позвол ет вычисл ть и контролировать приближенные значени  обратной величины нормализованной двоичной дроби. В состав его вход т регистр 1, Ъг.1 хран щий код нормализованной дроби, узел вычитани  2, осуществл ющий аппроксимацию функции Y 1/X функцией Y 3 + в интервале 0,, блок коррекции 3, определ ющий поправку сУ X -2- , если 0,5 i X ,75 и с 1-( х + 2), если 0,75 Х ч: 1, и формирующий приближенное значение обратной величины дроби по формуле Y 3 + 2 - 2Х . Узлы 6, 7, 8 и 9 осуществл ют контроль устройства по модулю три. На интервале 0,5 Х 0,75 wod3 1, на интервале 0, 1 -Х„,,3 или -(Х-2)„аЗ при четной и нечетной разр дности кода X. Регистр 10 хранит контрольный код КХ кода X. На выходах элементов И-НЕ и ИЛИ-НЕ 6 и 7 формируетс  код Y(j5j3 . Узел 8 свертки по модулю три выполн ет свертку кода Y, который сравниваетс  с контрольным кодом устройства с помощью узла сравне- . ни  9. 1 ил. (Л со оо to со to 1 g N)  The invention relates to computing and can be used to create arithmetic devices of computers. The device allows the calculation and control of the approximate values of the reciprocal of the normalized binary fraction. It consists of a register 1, yr.1 storing the code of a normalized fraction, subtracting unit 2, which approximates the function Y 1 / X by the function Y 3 + in the interval 0 ,, correction unit 3, determining the correction SU X -2- if 0.5 i X, 75 and c 1- (x + 2), if 0.75 X h: 1, and forming an approximate value of the reciprocal of the fraction by the formula Y 3 + 2 - 2X. Nodes 6, 7, 8 and 9 monitor the device modulo three. On the interval 0.5 X 0.75 wod3 1, on the interval 0, 1 -Х „,, 3 or - (Х-2)„ аЗ with even and odd bits of code X. Register 10 stores the control code КХ of code X. At the outputs of the elements AND-NOT and OR-NOT 6 and 7, the Y code (j5j3 is formed. Modulation-three convolution node 8 performs a convolution of the Y code, which is compared with the control code of the device using the comparison node 9. 1 ill. ( L with oo to with to 1 g N)

Description

Изобретение относитс  к вычислительной технике, может быть использовано при создании арифметических устройств вычислительных машин и  вл етс  усовершенствованием изобретени  по ант, св. № 1 125623.The invention relates to computing, can be used to create arithmetic devices of computers, and is an improvement of the invention according to ant. № 1 125623.

Цель изобретени  - повьпление достоверности функционировани  устройства .The purpose of the invention is to increase the reliability of the operation of the device.

На чертеже представлена функциональна  схема устройства.The drawing shows the functional diagram of the device.

Устройство содержит регистр I аргумента , узел 2 вычитани , блок 3 коррекции, в состав которого вход т узел 4 вычитани  и группа элементов ИСКЛЮЧАЮЩЕЕ ИЛИ 5.1-5(п-2), элемент И-НЕ 6, элемент ШЖ-НЕ 7,узел 8 свертки по модулю три, узел 9 сравнени  и регистр 10 контрольного кода , вход 11 контрольного кода, выход 1 2 приближенного значени  обратной величины нормализованной двоичной дроби, выход 13 кода контрол .The device contains the register of the I argument, subtracting node 2, correction block 3, which includes subtracting node 4 and a group of EXCLUSIVE elements OR 5.1-5 (p-2), AND-NOT element 6, ShJ-NOT element 7, node 8 modulo three convolutions, comparison node 9 and control code register 10, control code input 11, output 1 2 of the approximate inverse value of the normalized binary fraction, output 13 of the control code.

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

В начальный момент в регистры 1 и 10 занос тс  пр мой код нормализованной двоичной дроби и его контрольный код. Контрольньш код определ етс  как результат свертки по числовому модулю три кода двоичной дроби, если количество его разр дов п нечетно ,At the initial moment, registers 1 and 10 add the direct code of the normalized binary fraction and its control code. The check code is defined as the result of a convolution by a numerical modulo three binary fraction codes, if the number of its digits n is odd,

При четном п Контрольньш код опре- ,,j- кодируютс  соответственно 01 и 10.With an even p, the control code is defined as ,, j- are coded 01 and 10, respectively.

ч5О ллh5O ll

дел етс  как результат свертки по модулю три (п-) младших разр дов кодов двоичной дроби.is made as a result of the convolution modulo three (n-) low-order bits of the binary fraction codes.

. С выход регистра 1 пр мой код двоичной дроби, сдвинутый на один разр д в сторону старших разр дов, поступает на первый узел 2 вычитани , где вычитаетс  из посто нной величины , а разр ды с третьего по п-й этого кода поступают на вторые коды элементов ИС1ШОЧАЮЩЕЕ ИЛИ 5. 1,, . ., 5. (п-2) на первые входы которых поступает разр д кода с весом 2,. From the output of register 1, the forward binary fraction code, shifted one bit towards the higher bits, goes to the first subtraction node 2, where it is subtracted from a constant value, and bits from the third to the nth of this code go to the second codes of the elements ISOCHOOLING OR 5. 1 ,,. ., 5. (p-2) the first inputs of which receive a code bit with a weight of 2,

На выходах узла 4 формируетс  приближенное значение обратной величины нормализованной двоичной д1)обй, оп- редел емое по формулеAt the outputs of node 4, an approximate value of the reciprocal of the normalized binary value e) is obtained, defined by the formula

Y « (3 -I- 2- - 2Х) -: (I)Y "(3 -I- 2- - 2X) -: (I)

в интервале 0,5 .i X ,in the range of 0.5 .i X,

гдеWhere

2- , если 0, X :0,75 (X + 2-), если 2- if 0, X: 0.75 (X + 2-), if

Остаток О имеет два представлени  00 и 11.Balance O has two representations 00 and 11.

4040

На интервале 0,,75 ла (1) имеет видOn the interval 0,, 75 la (1) has the form

22

формуform

3 - ЗХ +3 - SX +

+ 2учитыва , 1+ 2 reads, 1

4545

что дл  нечетных значений К: 2 mod3 2 или 2 mod3 , Y mod3 1 . На интервале 0,75 Х 1 формула (1) имеет видthat for odd values of K: 2 mod 3 2 or 2 mod 3, Y mod 3 1. On the interval 0.75 X 1, formula (1) has the form

2-52-5

+ 2+ 2

5050

5555

X -ь Y 2 - X - При нечетном п Y mod 3 -X mod3X - Y 2 - X - With odd n Y mod 3 -X mod3

При четном п, учитыва , что четн значений 1,With even n, taking into account that even the values of 1,

mod 3 -(X - 2)mod 3 . mod 3 - (X - 2) mod 3.

Величина (X - 2)mod 3 может быт определена как результат свертки по модулю три (n-l)-ro младших разр доThe value of (X - 2) mod 3 can be determined as the result of a convolution modulo three (n-l) -ro minor bits to

323212323212

Узел 2 осуществл ет линейную аппроксимацию функции Y 1/X функцией Y 3 + 2--f -2Хв интервале 0, 1.Node 2 performs a linear approximation of the function Y 1 / X by the function Y 3 + 2 - f -2Х in the interval 0, 1.

Группа элементов 5 определ ет поправку J , котора  принимает взаимоинверсные значени  вThe group of elements 5 defines the correction J, which takes mutually inverse values in

10ten

1515

2020

зависимости от значени  разр да / кода с весом 2 . Дл  нулевого значени  этого разр да, что соответствует дл  нормализованной дроби интервалу 0, 0,75, поправка -у определ етс  (п-2) младшими разр дами кода X:depending on the value of the bit / code with a weight of 2. For a zero value of this bit, which corresponds to the interval of 0, 0.75 for a normalized fraction, the correction -y is determined by (n-2) lower bits of the code X:

с X - 2- .with X - 2-.

Дп  единичного значени  указанного разр да -у , соответствующего интервалу 0,75 1, поправка J определ етс  инверсией (п-2) младших разр дов кода X, что может быть представлено формулойDp is the unit value of the specified bit -y corresponding to the interval of 0.75 1, the correction J is determined by the inversion (p-2) of the lower bits of the code X, which can be represented by the formula

d - (К +d - (K +

Г).D).

Учет поправки дл  более точной аппроксимации функции Y 1/X выполн етс  с использованием узла 4.Accounting corrections for more accurate approximation of the function Y 1 / X is performed using node 4.

Узлы 6-10 обеспечивают контроль вычислени  обратной величины нормализованной дроби по приближенной фор- муле. В основу контрол  положены соотношени , имеющие место в приближенной формуле между посчитанными по ней значени ми и их делимостью на три. Остатки,от делени -на три 1 и 2Nodes 6-10 provide control over the calculation of the inverse of the normalized fraction using an approximate formula. The control is based on the relations that occur in the approximate formula between the values calculated from it and their divisibility by three. Residues, from division to three 1 and 2

кодируютс  соответственно 01 и 10.01 and 10 respectively are encoded.

ллll

Остаток О имеет два представлени  00 и 11.Balance O has two representations 00 and 11.

На интервале 0,,75 ла (1) имеет видOn the interval 0,, 75 la (1) has the form

22

форму3 - ЗХ +form3 - SX +

+ 2учитыва , 1+ 2 reads, 1

что дл  нечетных значений К: 2 mod3 2 или 2 mod3 , Y mod3 1 . На интервале 0,75 Х 1 формула (1) имеет видthat for odd values of K: 2 mod 3 2 or 2 mod 3, Y mod 3 1. On the interval 0.75 X 1, formula (1) has the form

2-52-5

+ 2+ 2

Y 2 - X - При нечетном п Y mod 3 -X mod3Y 2 - X - With odd n Y mod 3 -X mod3

При четном п, учитыва , что четных значений 1,With even n, taking into account that even values are 1,

mod 3 -(X - 2)mod 3 . mod 3 - (X - 2) mod 3.

Величина (X - 2)mod 3 может быть определена как результат свертки по модулю три (n-l)-ro младших разр довThe value of (X - 2) mod 3 can be defined as the result of a convolution modulo three (n-l) -ro least significant bits

кода X нормализованной двоичной дроби .X code of normalized binary fraction.

Таким образом определ етс  контрольный код КХ, записываемый в регистр 10 при четном п. Если п - нечетно , то в качестве контрольного кода КХ выступает результат свертки по модулю три всего кода X. Весовые функции первого и второго разр дов контрольного кода равны соответственThus, the check code KX is written to register 10 with even n. If n is odd, then the result of convolution modulo three of the whole code X is the check code KH. The weight functions of the first and second bits of the check code are equal to

значени  00 и 11. Значение кода конт рол  01 или 10 указывает на неисправ ность устройства.the values 00 and 11. The value of the control code 01 or 10 indicates a device malfunction.

Claims (1)

Формула изобретени Invention Formula Устройство дл  приближенного вычислени  обратной величины нормализо10 ванной двоичной дроби по авт. св. № 1125623, отличающеес  тем, что, с целью повышени  достоверности функционировани  устройства, в него введены регистр контрольного ко15 да, элементы И-НЕ и Ш1И-НЕ, узелA device for an approximate calculation of the reciprocal of the normalization of a binary fraction by auth. St. No. 1125623, characterized in that, in order to increase the reliability of the operation of the device, the control code register has been entered into it, the AND-NOT and STI-NOT elements, the node свертки по модулю три и узел сравнени , причем вход контрольного кодаmodulo convolutions and a comparison node, with the control code input но 1 и 2 mod3 -1, т.е. равны по величрше и противоположны по знаку.but 1 and 2 are mod3 -1, i.e. equal in magnitude and opposite in sign. При нулевом значении поправки j выходы элементов 6 и 7 принимают соответственно значение 1 и О, что соответствует коду Y mod3 1 на интер- устройства соединен с информационным вале 0, 0,75. При единичном - входом регистра контрольного кода, значении -у элементы 6 и 7 инвертиру-20 выходы первого и второго разр дов ко ют значени  разр дов контрольного ко-. торого соединены с первым входом эле да, т.е. с их выходов снимаетс  код мента И-НЕ и пр мым входом элемен- Y mods - Х mods или modS -(Х- та ИЛИ-НЕ соответственно, выходы ко- -2)mod3, определ емый на интервале торых соединены с входом первого чис 0, . .. 25 ла узла сравнени , выход которого  вAt zero value of the correction j, the outputs of elements 6 and 7 take the value 1 and O, respectively, which corresponds to the Y code mod3 1 on the device interconnected with the information shaft 0, 0.75. With a single input of the control code register, the value of the y elements 6 and 7 of the inverter-20 outputs the first and second bits of the control code bits. the second is connected to the first input of the elede, i.e. from their outputs, the code of the AND-NOT and the direct input of the element Y mods - X mods or modS - (X- that OR-NOT, respectively, the outputs are ko-2) mod3, determined on the interval of which are connected to the input of the first number 0,. .. 25 la comparison node whose output is . л етс  выходом кода контрол  устройства , второй вход элемента И-НЕ сое- динен с инверсным входом элемента ИЛИ-НЕ и выходом второго разр да . is output of the control code of the device, the second input of the NAND element is connected to the inverse input of the OR element NOT and the output of the second bit Сравнение результата Y, полученного на выходах элементов 6 и 7, с кодом Y mod3, полученном на выходахComparison of the result of Y obtained at the outputs of elements 6 and 7 with the Y code mod3 obtained at the outputs узла 8, приводит к определению кода 30 регистра аргумента, выход блока кор- контрол .рекции соединен с входом узла свертки по модулю три, выход которого соеПри правильном функционировании динен с входом второго числа узла устройства код контрол  принимает сравнени .node 8, leads to the definition of the argument register code 30, the output of the correction control block is connected to the input of a modulo three convolution node, whose output is connected to the input of the second device node number, the control code accepts comparisons. Редактор Е.Папп Заказ 3834/45Editor E.Papp Order 3834/45 Составитель Н.Маркелова Техред Л.СердюковаCompiled by N.Markelova Tehred L. Serdyukova Корректор Corrector Тираж 672ПодписноеCirculation 672 Subscription ВНИИПИ Государственного комитета СССРVNIIPI USSR State Committee по делам изобретений и открытий 113035, Москва, Ж-35, Раушска  наб., д. 4/5for inventions and discoveries 113035, Moscow, Zh-35, Raushsk nab., 4/5 Производственно-полиграфическое предпри тие, г. Ужгород, ул. Проектна , 4Production and printing company, Uzhgorod, st. Project, 4 значени  00 и 11. Значение кода контрол  01 или 10 указывает на неисправность устройства.values 00 and 11. The value of control code 01 or 10 indicates a device failure. Формула изобретени Invention Formula Устройство дл  приближенного вычислени  обратной величины нормализованной двоичной дроби по авт. св. № 1125623, отличающеес  тем, что, с целью повышени  достоверности функционировани  устройства, в него введены регистр контрольного кода , элементы И-НЕ и Ш1И-НЕ, узелDevice for approximate calculation of the inverse of the normalized binary fraction by aut. St. No. 1125623, characterized in that, in order to increase the reliability of the operation of the device, a control code register is entered into it, the AND-NOT and STI-NOT elements, the node свертки по модулю три и узел сравнеустройства соединен с информационным входом регистра контрольного кода, выходы первого и второго разр дов ко торого соединены с первым входом эле мента И-НЕ и пр мым входом элемен- та ИЛИ-НЕ соответственно, выходы ко- торых соединены с входом первого чис ла узла сравнени , выход которого  вconvolutions modulo three and the node of the com- pany device are connected to the information input of the control code register, the outputs of the first and second bits of which are connected to the first input of the NAND element and the forward input of the OR element NOT, respectively, whose outputs are connected to the input of the first number of the comparison node whose output is ни , причем вход контрольного кодаneither, and the control code input устройства соединен с информационны входом регистра контрольного кода, выходы первого и второго разр дов к торого соединены с первым входом эл мента И-НЕ и пр мым входом элемен- та ИЛИ-НЕ соответственно, выходы ко торых соединены с входом первого чи ла узла сравнени , выход которого  the device is connected to the information input of the control code register, the outputs of the first and second bits of which are connected to the first input of the NAND unit and the direct input of the OR-NOT element, respectively, whose outputs are connected to the input of the first member of the reference node, the output of which Корректор В.Гирн кProofreader V.Girn to
SU864023215A 1986-02-17 1986-02-17 Device for approximately computing the inverse value of normalized binary fraction SU1332321A2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU864023215A SU1332321A2 (en) 1986-02-17 1986-02-17 Device for approximately computing the inverse value of normalized binary fraction

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU864023215A SU1332321A2 (en) 1986-02-17 1986-02-17 Device for approximately computing the inverse value of normalized binary fraction

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
SU1125623 Addition

Publications (1)

Publication Number Publication Date
SU1332321A2 true SU1332321A2 (en) 1987-08-23

Family

ID=21221962

Family Applications (1)

Application Number Title Priority Date Filing Date
SU864023215A SU1332321A2 (en) 1986-02-17 1986-02-17 Device for approximately computing the inverse value of normalized binary fraction

Country Status (1)

Country Link
SU (1) SU1332321A2 (en)

Non-Patent Citations (1)

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

Similar Documents

Publication Publication Date Title
US5508951A (en) Arithmetic apparatus with overflow correction means
US3432811A (en) Data compression/expansion and compressed data processing
JPS5829539B2 (en) arithmetic unit
US5325321A (en) High speed parallel multiplication circuit having a reduced number of gate stages
SU1332321A2 (en) Device for approximately computing the inverse value of normalized binary fraction
US3001708A (en) Central control circuit for computers
US4069478A (en) Binary to binary coded decimal converter
KR100188147B1 (en) Error detecting circuit used for code
US2954164A (en) Check digit monitoring and correcting circuits
US3538314A (en) System of conversion and computing circuits based on the constant-sum unimodular p-adic number
US3196259A (en) Parity checking system
RU2758410C1 (en) Fail-safe processor with error correction in two bytes of information
SU815908A1 (en) Binary code decoding device with single error correction
RU2758065C1 (en) Fault-tolerant processor with error correction in a byte of information
US3207888A (en) Electronic circuit for complementing binary coded decimal numbers
SU362299A1 (en) ALL-UNION
SU1485232A1 (en) Divider
SU1287151A1 (en) Device for calculating absolute value of complex number
SU824203A1 (en) Device for adding n-digit decimal numbers
SU1295390A1 (en) Device for calculating logarithm of number
SU1016778A1 (en) Code comparison circuit
SU404077A1 (en) CONVERTER OF THE RIGHT BINARY-DECIMAL CRUSHES TO BINARY CRACKS
SU1695512A1 (en) Device for detection and correction of errors
SU401994A1 (en) DEVICE FOR DETERMINATION OF MINORANT BINARY CODES
SU1035601A2 (en) Multiplication device