SU1287151A1 - Device for calculating absolute value of complex number - Google Patents

Device for calculating absolute value of complex number Download PDF

Info

Publication number
SU1287151A1
SU1287151A1 SU853896414A SU3896414A SU1287151A1 SU 1287151 A1 SU1287151 A1 SU 1287151A1 SU 853896414 A SU853896414 A SU 853896414A SU 3896414 A SU3896414 A SU 3896414A SU 1287151 A1 SU1287151 A1 SU 1287151A1
Authority
SU
USSR - Soviet Union
Prior art keywords
output
input
register
adder
switch
Prior art date
Application number
SU853896414A
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 SU853896414A priority Critical patent/SU1287151A1/en
Application granted granted Critical
Publication of SU1287151A1 publication Critical patent/SU1287151A1/en

Links

Landscapes

  • Complex Calculations (AREA)

Abstract

Изобретение относитс .к вычислительной технике и может быть использовано в быстродействующих вычислительных устройствах, не отличающихс  высокой точностью вычислений, но надежных в работе. Целью изобрете- .( НИН  вл етс  повьшение достоверности вычислени  модул  комплексного числа за счет введени  аппаратного контрол  по модулю п тнадцать. Процесс вычислени  основан на приближенном вычислении модул  комплексного числа на трех С5гмматорах и коммутаторе и на одновременном преобразовании контрольных р азр дов компонентов комплексного числа на сумматоре по модулю п тнадцать и вычита- теле по модулю п тнадцать. Сравнение на схеме сравнени  значени  модул  и контрольных разр дов показывает правильность функционировани  устройства. 1 ил. SS слThe invention relates to computing technology and can be used in high-speed computing devices that are not highly computable but reliable in operation. The purpose of the invention. (NIN is to increase the reliability of the calculation of the modulus of a complex number by introducing hardware modulo fifteen. The calculation process is based on an approximate calculation of the modulus of a complex number on three C5 modules and a switch and simultaneously controlling the distribution of the complex number components on modulo fifteen and subtractor modulo fifteen. Comparison on the comparison circuit of the module value and the check bits shows the correctness of the function ani device 1 ss cl

Description

юYu

0000

Изобретение относитс  к области вычислительной техники и может быть применено в быстродействующих специализированных вьгчислител х.The invention relates to the field of computing and can be applied in high-speed specialized numbers.

Целью изобретени   вл етс  повы- шение достоверности вычислени  модул  комплексного числа за счет введени  аппаратного контрол , по модулю п тнадцать,The aim of the invention is to increase the reliability of the calculation of the modulus of a complex number by introducing hardware control modulo fifteen,

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

Устройство содержит регистр 1 действительной части, регистр 2 мнимой части, регистр 3 контрольных разр дов действительной части, регистр 4 контрольных разр дов мнимой части, первый 5, второй 6 и третий 7 сумматоры, сумматор 8 по модулю п тнадцать, первый 9, второй 10, третий 11 коммутаторы, блок 12 свертки по модулю п тнадцать, вычитатель 13 по модулю п тнадцать, блок 14 сравнени , вход 15 действительной. части аргумента, вход 16 мнимой части аргумента, вход 17 контрольных разр дов действительной части, вход 18 контрольных разр дов мнимой части , выход 19 модул , выход 20 признака сбо  устройства.The device contains a register of 1 real part, a register of 2 imaginary parts, a register of 3 control bits of the real part, a register of 4 control bits of the imaginary part, the first 5, second 6 and third 7 adders, adder 8 modulo fifteen, first 9, second 10 , the third 11 switches, a convolution unit 12 modulo fifteen, a subtractor 13 modulo fifteen, a comparison unit 14, an input 15 valid. parts of the argument, input 16 of the imaginary part of the argument, input 17 of the control bits of the real part, input 18 of the control bits of the imaginary part, output 19 of the module, output 20 of the device fault sign.

Устройство функционирует следующим образом.The device operates as follows.

В начальный момент времени в регистры I и 2, а также в регистры 3 и 4 занос тс  п-разр дные мантиссы пр мых кодов действительной а и мнимой b составл ющих комплексного числа , а также контрольные коды - вычеты по модулю п тнадцать этих мантисс: ka и kb соответственно.At the initial time, registers I and 2, as well as registers 3 and 4, enter the n-bit mantissas of the direct codes of the real a and imaginary b components of the complex number, as well as the control codes — deductions modulo fifteen of these mantisses: ka and kb respectively.

С выходов регистров 1 и 2 коды а и b подаютс  на входы первого 5, второго 6 и третьего 7 сумматоров. При этом на первые и вторые входы сумматора 5 поступают соответственно код действительной составл ющей и (п-2) старших разр да кода мнимой составл ющей комплексного числа. На выходе второго сумматора 6 определ етс  результат сложени  Ml кода действительной составл ющей со сдвинутым вправо на два разр да кодом мнимойFrom the outputs of registers 1 and 2, codes a and b are fed to the inputs of the first 5, second 6 and third 7 adders. In this case, the first and second inputs of the adder 5 receive, respectively, the code of the real component and (n-2) most significant bits of the code of the imaginary component of the complex number. At the output of the second adder 6, the result of adding the Ml code of the real component with the code shifted to the right by two bits is determined

составл ющей, т.е. Ml а тЬ.component, i.e. Ml a tb.

Два младших разр да b кода Б, не участвующие в вычислении числа Ml, подаютс  на первый вход второго коммутатора 10.The two least significant bits b of the code B, which are not involved in the calculation of the number Ml, are fed to the first input of the second switch 10.

5five

00

00

5five

00

5five

На входы первого и второго аргументов третьего сумматора 7 поступают соответственно код мнимой составл ющей и (п-2) старших разр да кода действительной составл ющей комплексного числа. На выходе третьего сумматора 7 определ етс  результат сложени  М2 b + гаДва младших разр да а кода а, не участвующие в вычислении числа М2, подаютс  на второй вход второго ком- -мутатора 10.The inputs of the first and second arguments of the third adder 7 receive, respectively, the code of the imaginary component and (p-2) most significant bit of the code of the real component of the complex number. At the output of the third adder 7, the result of the addition of M2 b + almost two least significant bits of code a, not participating in the calculation of the number M2, is determined, is fed to the second input of the second commutator 10.

На вход первого слагаемого и инверсный вход второго слагаемого второго сумматора 6 поступают соответственно коды а и Ъ. При этом на выходе второго сумматора 6 вычисл етс  разность кодов а и Ь, котора  значением старшего разр да 3 указывает на соотношени  величин, кодов а и Ь: при , , при , a4b. Сигнал с выхода разр да Зн поступает на управл ющие входы первого 9, второго 10 и третьего 11 коммутаторов. На входы первого и второго аргументов первого коммутатора 9 поступают соответственно результаты сложени  Ml и М2, снимаемые с выходов первого 5 и третьего 7 сумматоров .To the input of the first term and the inverse input of the second term of the second adder 6, codes a and b are received, respectively. At the same time, at the output of the second adder 6, the difference between the codes a and b is calculated, which value of the high bit 3 indicates ratios of the values, codes a and b: with,, with, a4b. The signal from the output of the bit Zn is fed to the control inputs of the first 9, second 10, and third 11 switches. The inputs of the first and second arguments of the first switch 9 receive, respectively, the results of the addition of Ml and M2, taken from the outputs of the first 5 and third 7 adders.

Первый коммутатор 9 пропускает на выход результат сложени  Ml, если , , или М2, если , т.е. абЬ.The first switch 9 transmits to the output the result of the addition Ml, if,, or M2, if, i.e. ab

Таким образом, на выходе коммутатора 9,  вл ющегос  выходом 19 модул  устройства, определ етс  величинаThus, at the output of the switch 9, which is the output 19 of the device module, the value

,Га + /4Ь, если , |Ь + 1/4а, если ,, Ga + / 4b, if, | b + 1 / 4a, if,

Второй коммутатор 10 пропускает на выход два младших разр да Ь, если , или два младших разр да а, если , т.е. пропускает младшие разр ды m меньшего из кодов а и b, отбрасываемые при вычислении величины М.The second switch 10 passes to the output two lower bits b, if, or two low bits a, if, i.e. skips the lower bits of the smallest of codes a and b, discarded when calculating the value of M.

С выходов регистров 3 и 4 контрольный код ka и циклически сдвинутьй на два разр да контрольный код kb поступают на входы первого и второго аргументов сумматора 8 по модулю п тнадцать, который формирует код KM(ka+2 KB)inodl5,From the outputs of registers 3 and 4, the control code ka and the control code kb cyclically shifted two bits are fed to the inputs of the first and second arguments of adder 8 modulo fifteen, which forms the code KM (ka + 2 KB) inodl5,

Код КМ1 с выхода сумматора 8 по модулю п тнадцать поступает непосредственно на вход первого аргументаCode KM1 from the output of the adder 8 modulo fifteen is fed directly to the input of the first argument

3131

и циклически сдвинутым на два разр да на вход второго аргумента третьего коммутатора 11. При этом на выходе третьего коммутатора 11 вычисл етс  код КМ.and cyclically shifted by two bits to the input of the second argument of the third switch 11. At the same time, at the output of the third switch 11, the KM code is calculated.

„, Г()modI5, если , . 4ka+2 kb), если „, R () modI5, if,. 4ka + 2 kb) if

илиor

/ (ka+2 kb)modl5, если , l(kb+2 ka)modl5, если ,  / (ka + 2 kb) modl5, if, l (kb + 2 ka) modl5, if,

Этот код поступает на вход уменьшаемого вычитател  13 по модулю п тнадцать , на вход вычитаемого которого поступают младшие разр ды m с вы- хода второго коммутатора 10. Вычи- татель 13 по модулю п тнадцать координирует код КМ на величину отбрасываемых разр дов т, формиру  при этом код KM(KM-m)mod.l5,  вл ющийс  выче- том по модулю п тнадцать величины М.This code is fed to the input of the decremented subtractor 13 modulo fifteen, the input of the subtracted which receives the lower bits m from the output of the second switch 10. The subtractor 13 modulo fifteen coordinates the CM code by the amount of discarded bits, forming This code is KM (KM-m) mod.l5, which is subtracted modulo fifteen magnitudes M.

Код М с выхода первого коммутатора 9 поступает на выход 19 модул  устройства, а также на вход блока 12 свертки по модулю п тнадцать, формирующего вычет по модулю п тнадцать КМ.Code M from the output of the first switch 9 is fed to the output 19 of the device module, as well as to the input of convolution unit 12 modulo fifteen, forming a deduction modulo fifteen CM.

Коды КМ и КМ 1 поступают соответственно на входы блока 14 сравнени , вьтолн ющего сравнение указанных кодов по модулю п тнадцать и формирующего при этом на выходе сигнал контрол . Сигнал контрол  поступает, на контрольный выход 20 устройства.The codes KM and KM 1 are received respectively at the inputs of the comparator unit 14, which compares the specified codes modulo fifteen and forms the control signal at the same time. The control signal arrives at the control output 20 of the device.

При правильном функционировании устройства сравнение кодов КМ и КМ 1 приводит к установке значени  сигнала контрол  Исправно. Инверсное значение сигнала контрол  указьшает на неправильное функционирование уст ройства.With proper functioning of the device, the comparison of the codes KM and KM 1 leads to the setting of the value of the control signal. The inverse value of the control signal indicates a malfunction of the device.

Ф о-р мула изобретени F o r mule of invention

Устройство дл  вычислени  модул  комплексного числа, -содержащее регистр действительной части, регистр мнимой части, регистр контрольных разр дов действительной части, регистр контрольных разр дов мнимой части, три сумматора, два коммутатора , причем входы действительной и мнимой частей, аргумента устройства соединены с информационными входами регистра действительной части и ре- гистра мнимой части соответственно, выход регистра действительной части соединен с входами первых слагаемых первого и второго сумматоров, выходA device for calculating the module of a complex number, -containing the real part register, imaginary part register, real data check digit register, imaginary part check register, three adders, two switches, where the real and imaginary parts of the device argument are connected to information inputs the real part register and the imaginary part register, respectively, the output of the real part register is connected to the inputs of the first components of the first and second adders, the output

514514

регистра действительной части соединен со сдвигом на два разр да в сторону младших разр дов с входом первого слагаемого третьего сумматора, вход второго слагаемого которого соединен с выходом регистра мнимой части, выход которого соединен с инверсным входом второго слагаемого второго сумматора и со сдвигом на два разр да в сторону младших разр дов - с входом второго слагаемого первого сумматора, выходы первого и третьего сумматоров соединены о первым и вторым информационными входами первого коммутатора соответственно , управл ющий вход которого соединен с выходом знакового разр да второго сумматора и с управл ющим входом второго коммутатора, первый и второй информационные входы которого соединены с выходами младших разр дов регистров действительной и мнимой частей соответственно, выход первого коммутатора  вл етс  выходом значени  модул  устройства, информационные входы регистров контрольных разр дов действительной и мнимой частей соединены с входами контрольных разр дов действительной 6и мнимой частей устройства соответственно , отличающеес  тем, что, с целью повышени  досто- верности функционировани , в него дополнительно введены сумматор по модулю п тнадцать, вычитатель по модулю п тнадцать, блок свертки по модулю п тнадцать, третий коммутатор и схема сравнени , причем выход регистра контрольных разр дов действительной части соединен с входом первого слагаемого сумматора по модулю п тнадцать, выход регистра контрольных разр дов мнимой части соединен со сдвигом на два разр да в сторону младших разр дов с входом второго слагаемого сумматора по модулю п тнадцать , выход которого соединен с первым информационным входом третьего коммутатора, выход сумматора по модулю .п тнадцать соединен со сдвигом на два разр да в сторону старших разр дов с вторым информационным входом третьего коммутатора, управл ющий вход которого соединен с выходом знакового разр да второго сумматора, выходы второго и третьего коммутаторов соединены с входами вычитаемого и уменьшаемого вычитател  по модулю п тнадцать,соответственно , выход которого соединен с первым информационным входом схемы сравнени , второй информационный 1зход которой соединен с выходом блока сверкипо модулю п тнадцать,вход которого соединено выходом первого коммутатора , выход блока сравнени   вл етс  выходом признака сбо  устройства.the register of the real part is connected with a shift by two bits towards the lower bits with the input of the first term of the third adder, the input of the second term of which is connected to the output of the register of the imaginary part, the output of which is connected to the inverse input of the second term of the second adder and with a shift of two bits towards the lower bits - with the input of the second term of the first adder, the outputs of the first and third adders are connected about the first and second information inputs of the first switch, respectively, the control the input of which is connected to the output of the sign bit of the second adder and with the control input of the second switch, the first and second information inputs of which are connected to the low-order outputs of the registers of the real and imaginary parts, respectively, the output of the first switch is the output of the device module value, information inputs of the registers the control bits of the real and imaginary parts are connected to the inputs of the control bits of the real 6 and imaginary parts of the device, respectively, characterized in that in order to increase the reliability of the operation, modulo fifteen, subtractor modulo fifteen, a convolution unit modulo fifteen, the third switch and the comparison circuit are additionally entered into it, the output of the register of control bits of the real part is connected to the input of the first addend adder modulo fifteen, the output of the register of control bits of the imaginary part is connected with a shift of two bits in the direction of the lower order bits with the input of the second term of the adder modulo fifteen, the output of which connected to the first information input of the third switch, the output of the modulo adder. Nineteen is connected with a shift by two bits towards the higher bits with the second information input of the third switch, the control input of which is connected to the output of the sign bit of the second adder, the outputs of the second and The third switch is connected to the inputs of the subtracted and decremented subtractor modulo fifteen, respectively, the output of which is connected to the first information input of the comparison circuit, the second information output to Torah connected to the output of the modulo sverkipo fifteen, whose input is connected to the first output of switch unit output comparator is the output device failure flag.

Claims (1)

Ф о-p мула изобретенияF o-p mule of the invention Устройство для вычисления модуля 45 комплексного числа, содержащее регистр действительной части, регистр мнимой части, регистр контрольных разрядов действительной части, регистр контрольных разрядов мнимой 50 части, три сумматора, два коммутатора , причем входы действительной и мнимой частей аргумента устройства соединены с информационными входами регистра действительной части и ре- 55 гистра мнимой части соответственно, выход регистра действительной части соединен с входами первых слагаемых первого и второго сумматоров, выход регистра действительной части соединен со сдвигом на два разряда в сторону младших разрядов с входом первого слагаемого третьего сумматора, вход второго слагаемого которого соединен с выходом регистра мнимой части, выход которого соединен с инверсным входом второго слагаемого второго сумматора и со сдвигом на два разряда в сторону младших разрядов - с входом второго слагаемого первого сумматора, выходы первого и третьего сумматоров соединены с· первым и вторым информационными входами первого коммутатора соответственно, управляющий вход которого соединен с выходом знакового разряда второго сумматора и с управляющим входом второго коммутатора, первый и второй информационные входы которого соединены с выходами младших разрядов регистров действительной и мнимой частей соответственно, выход первого коммутатора является выходом значения модуля устройства, информационные входы регистров контрольных разрядов действительной и мнимой частей соединены с входами контрольных разрядов действительной <5и мнимой частей устройства соответственно, отличающееся тем, что, с целью повышения достоверности функционирования, в него дополнительно введены сумматор по модулю пятнадцать, вычитатель по модулю пятнадцать, блок свертки по модулю пятнадцать, третий коммутатор и схема сравнения, причем выход регистра контрольных разрядов действительной части соединен с входом первого слагаемого сумматора по модулю пятнадцать, выход регистра контрольных разрядов мнимой части соединен со сдвигом на два разряда в сторону младших разрядов с входом второго слагаемого сумматора по модулю пятнадцать, выход которого соединен с первым информационным входом третьего коммутатора, выход сумматора по модулю пятнадцать соединен со сдвигом на два разряда в сторону старших разрядов с вторым информационным входом третьего коммутатора, управляющий вход которого соединен с выходом знакового разряда второго сумматора, выходы второго и третьего коммутаторов соединены с входами вычитаемого и уменьшаемого вычитателя по модулю пятнадцать,соответ5 ственно, выход которого соединен с первым информационным входом схемы сравнения, второй информационный вход которой соединен с выходом бло ка сверки по модулю пятнадцать,вход которого соединено, выходом первого коммутатора, выход блока сравнения является выходом признака сбоя устройства.A device for calculating a complex number module 45, comprising a register of the real part, a register of the imaginary part, a register of control bits of the real part, a register of control bits of the imaginary part 50, three adders, two switches, the inputs of the real and imaginary parts of the argument of the device being connected to the information inputs of the register of the real parts and register 55 of the imaginary part, respectively, the output of the register of the real part is connected to the inputs of the first terms of the first and second adders, the output is register the real part is connected with a shift by two digits towards the lower digits with the input of the first term of the third adder, the input of the second term is connected with the output of the register of the imaginary part, the output of which is connected with the inverse input of the second term of the second adder and with a shift of two digits towards the lower digits - with the input of the second term of the first adder, the outputs of the first and third adders are connected to the first and second information inputs of the first switch, respectively, the control input of which connected to the output of the sign bit of the second adder and to the control input of the second switch, the first and second information inputs of which are connected to the outputs of the lower bits of the registers of the real and imaginary parts, respectively, the output of the first switch is the output of the value of the device module, the information inputs of the registers of the control bits of the real and imaginary parts are connected to the inputs of the control bits of the actual <5 and imaginary parts of the device, respectively, characterized in that, in order to increase To verify the reliability of operation, an adder modulo fifteen, a subtracter modulo fifteen, a convolution unit modulo fifteen, a third switch and a comparison circuit are added to it, the output of the register of control bits of the real part being connected to the input of the first term of the adder modulo fifteen, the output of the register of control bits of the imaginary part is connected with a shift by two bits towards the lower bits with the input of the second term of the adder modulo fifteen, the output of which is connected to the first the information input of the third switch, the output of the adder modulo fifteen is connected with a shift by two digits towards the higher digits with the second information input of the third switch, the control input of which is connected to the output of the significant bit of the second adder, the outputs of the second and third switches are connected to the inputs of the subtracted and reduced subtractor modulo fifteen, respectively, whose output is connected to the first information input of the comparison circuit, the second information input of which is connected to the output th ka blo verification modulo fifteen, whose input is connected, the output of the first switch, the output of the comparator is an output fault indication device.
SU853896414A 1985-05-16 1985-05-16 Device for calculating absolute value of complex number SU1287151A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU853896414A SU1287151A1 (en) 1985-05-16 1985-05-16 Device for calculating absolute value of complex number

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU853896414A SU1287151A1 (en) 1985-05-16 1985-05-16 Device for calculating absolute value of complex number

Publications (1)

Publication Number Publication Date
SU1287151A1 true SU1287151A1 (en) 1987-01-30

Family

ID=21177586

Family Applications (1)

Application Number Title Priority Date Filing Date
SU853896414A SU1287151A1 (en) 1985-05-16 1985-05-16 Device for calculating absolute value of complex number

Country Status (1)

Country Link
SU (1) SU1287151A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
RU2766990C1 (en) * 2021-04-13 2022-03-16 Акционерное общество "Научно-производственное объединение "Правдинский радиозавод" (АО "НПО "ПРЗ") Device for calculating the modulus of a complex number

Non-Patent Citations (1)

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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
RU2766990C1 (en) * 2021-04-13 2022-03-16 Акционерное общество "Научно-производственное объединение "Правдинский радиозавод" (АО "НПО "ПРЗ") Device for calculating the modulus of a complex number

Similar Documents

Publication Publication Date Title
US3986015A (en) Arithmetic unit for use in a digital data processor and having an improved system for parity check bit generation and error detection
SU1287151A1 (en) Device for calculating absolute value of complex number
SU1716609A1 (en) Encoder of reed-solomon code
SU1606974A1 (en) Device for computing tangent and cotangent functions
SU1566340A1 (en) Device for division of numbers with floating point
RU2022472C1 (en) Device for checking and error correction in redundant modular code
SU1233145A1 (en) Device for calculating complex number modulus
SU815908A1 (en) Binary code decoding device with single error correction
SU1695512A1 (en) Device for detection and correction of errors
SU1449986A1 (en) Device for forming remainders by modulo
SU1714587A1 (en) Device for summing-subtracting numbers with floating point
SU1254478A1 (en) Device for calculating complex number modulus
SU1104505A2 (en) Device for calculating complex number modulus
SU404082A1 (en) A DEVICE FOR CALCULATING THE TYPE = FUNCTION. KV&#39;X ^ + y
SU1111167A1 (en) Device for checking adder
SU1280620A1 (en) Stochastic pulse distributor
US3538314A (en) System of conversion and computing circuits based on the constant-sum unimodular p-adic number
SU451996A1 (en) Device to convert coordinates
US3336468A (en) Hamming magnitude determinator using binary threshold logic elements
SU813415A1 (en) Device for adding and subtracting binary-decimal codes
RU1784971C (en) Floating point number adding-subtracting device
SU1332321A2 (en) Device for approximately computing the inverse value of normalized binary fraction
SU1711147A1 (en) Device for arithmetic decomposition of symmetric boolean functions
SU1432784A1 (en) Converter of binary code to residual class system code
SU1016778A1 (en) Code comparison circuit