SU1520512A1 - Matrix-type squaring device - Google Patents

Matrix-type squaring device Download PDF

Info

Publication number
SU1520512A1
SU1520512A1 SU884401437A SU4401437A SU1520512A1 SU 1520512 A1 SU1520512 A1 SU 1520512A1 SU 884401437 A SU884401437 A SU 884401437A SU 4401437 A SU4401437 A SU 4401437A SU 1520512 A1 SU1520512 A1 SU 1520512A1
Authority
SU
USSR - Soviet Union
Prior art keywords
input
column
adder
output
inputs
Prior art date
Application number
SU884401437A
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 SU884401437A priority Critical patent/SU1520512A1/en
Application granted granted Critical
Publication of SU1520512A1 publication Critical patent/SU1520512A1/en

Links

Abstract

Устройство относитс  к вычислительной технике и позвол ет вычисл ть квадрат аргумента и осуществл ть контроль вычислений по неразрешенным кодам результата. Устройство содержит элементы И 1  чеек матрицы, определ ющие всевозможные конъюнкции значений различных разр дов аргумента, сумматоры 2  чеек матрицы, вычисл ющие квадрат аргумента путем нахождени  взвешенной суммы значений конъюнкций и разр дов аргумента. Устройство содержит также блок 3 свертки по модулю семь, определ ющий остаток от делени  кода результата на семь, блок свертки по модулю два 5, и элемент ИЛИ 4. ЭЛЕМЕНТ НЕ 6 И ЭЛЕМЕНТ И 7 ПО СИГНАЛАМ С ВЫХОДОВ БЛОКА 5 И ЭЛЕМЕНТА 4 ИДЕНТИФИЦИРУЮТ КОДЫ ОСТАТКА 3, 5 И 6, УКАЗЫВАЮЩИЕ НА НЕРАЗРЕШЕННЫЕ КОДЫ РЕЗУЛЬТАТА И СООТВЕТСТВЕННО НА НЕПРАВИЛЬНОЕ ФУНКЦИОНИРОВАНИЕ УСТРОЙСТВА. 1 ИЛ.The device is related to computing and allows calculating the square of the argument and controlling the calculations by unresolved result codes. The device contains And 1 cells of the matrix, defining all possible conjunctions of the values of different argument bits, adders of 2 matrix cells, calculating the square of the argument by finding the weighted sum of the conjunction values and the argument bits. The device also contains a modulo seven convolution block 3, determining the remainder of dividing the result code by seven, a modulo convolution block of two 5, and the element OR 4. NOT 6 AND ELEMENT AND 7 ON SIGNALS FROM THE OUTPUTS OF BLOCK 5 AND ELEMENT 4 IDENTIFYING CODES RESIDUALS 3, 5 AND 6, INDICATING TO UNRESOLVED RESULTS CODES AND ACCORDINGLY TO THE WRONG FUNCTIONING OF THE DEVICE. 1 IL.

Description

1one

(21)4401437/24-24(21) 4401437 / 24-24

(22)31.03.88(22) 03/31/88

(46) 07.11.89. Бюл. Р 41(46) 11/07/89. Bul P 41

(71)Одесский политехнический институт(71) Odessa Polytechnic Institute

(72). Дрозд, Е.Л. Полин, A.M. Романкевич, В.Н. Валуйский и С.А. Не стеренко(72). Drozd, E.L. Pauline, A.M. Romankevich, V.N. Valuisky and S.A. Not sterenko

(53)681.325(088.8).(53) 681.325 (088.8).

(56)Авторское свидетельство СССР № 842804, кл, G 06 F 7/552, 1979.(56) USSR Author's Certificate No. 842804, class G 06 F 7/552, 1979.

Авторское свидетельство СССР № 1439583, кл. G 06 F 7/552, 1985,USSR Author's Certificate No. 1439583, cl. G 06 F 7/552, 1985,

(54)МАТРИЧНОЕ УСТРОЙСТВО ДЛЯ ВОЗВЕДЕНИЯ В КВАДРАТ(54) MATRIX DEVICE FOR INCLUSION IN SQUARES

(57)Изобретение относитс  к вычислительной технике и позвол ет вычисл ть квадрат аргумента и осуществл ть контроль вычислений по неразрешенным(57) The invention relates to computing and allows calculating the square of the argument and controlling the calculations for unresolved

кодам результата. Устройство содержит элементы И 1  чеек матрицы, определ ющие всевозможные конъюнкции значений различных разр дов аргумен- j-a, сумматоры 2  чеек матрицы, вы- числ н ще квадрат аргумента путем нахождени  взвешенной суммы зна1| ений конъюнкций и разр дов аргумента. Устройство содержит также блок 3 свертки по модулю семь, определ ющий остаток от делени  кода результата на семь, блок 5 свертки по модулю два и элемент ИЛИ 4. Элемент НЕ 6 и элемент И 7 по сигналам с выходов блока 5 и элемента 4 идентифихщруют коды остатка 3, 5 и б, указываюпдае на неразрешенные коды результата и соответственно на неправильное функционирование устройства, t ил.result codes. The device contains the elements And 1 cells of the matrix, determining all possible conjunctions of the values of different bits of the argument j-a, adders of 2 cells of the matrix, calculating the square of the argument by finding the weighted sum sign 1 | conjunctions and bits of argument. The device also contains a modulo seven convolution block 3, determining the remainder of dividing the result code by seven, modulo two convolution block 5 and the element OR 4. The HE element 6 and the AND 7 element identify the residual codes from the outputs of the block 5 and element 4. 3, 5 and b, indicate unresolved result codes and, accordingly, the device malfunction, t Il.

(L

СWITH

СПSP

| C

оabout

ел гоate

.3.3

Изобретение относитс  к вычислительной технике и может быть использовано в специализированных вычислител х .The invention relates to computing and can be used in specialized computers.

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

На чертеже представлена структурна  схема устройства дл  .The drawing shows a block diagram of the device for.

Устройство содержит элементы И 1, сумматоры 2, блок 3 свертки по модулю семь, элементы ИЛИ 4, блок 5 срертки по модулю два, элемент НЕ б и элемент И 7,The device contains elements AND 1, adders 2, block 3 convolutions modulo seven, elements OR 4, block 5 modulo two modulo, element NOT b and element And 7,

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

Разр ды операнда поступают на рходы устройства. При этом первый разр д операнда подаетс  на первый выход устройства, второй выход ко- торого посто нно принимает значение логического нул . Кроме того, первый разр д tp подаетс  на первые входы элементов И 1 первого столбца, на вторые входы которых поступают соответственно последующие разр ды операнда 2pj Зр, 4р, 5р и 6р. На выхода элементов И 1 первого столбца образуютс  конъюнкции 1р 2р., tp;3p, 1р-4р, 1р-5р и Тр-бр, которые ПостуOperand bits are fed to the devices. In this case, the first bit of the operand is fed to the first output of the device, the second output of which constantly takes on the value of a logical zero. In addition, the first bit tp is fed to the first inputs of the And 1 elements of the first column, the second inputs of which receive the subsequent bits of the 2pj operand 3p, 4p, 5p, and 6p, respectively. At the output of the elements And 1 of the first column are formed of the conjunction 1p 2p., Tp; 3p, 1p-4p, 1p-5p and Tr-br, which Post

пают на вторые входы соответствующих сумматоров 2 первого столбца, Через первые входы-и выходы этих маторов 2, как и сумматоров 2 последующих столбцов, распростран етс  сигнал переноса .(кроме первого входа первого сумматора 2j который, как и в последующих столбцах, занулен, а также кроме первого выхода последующего п того сумматора 2, с выхода которого, как и во втором столбце, сигнал переноса поступает на третий вход четвертого сумматора 2 следующего столбца).go to the second inputs of the corresponding adders 2 of the first column. The transfer signal spreads through the first inputs and outputs of these mathors 2, as well as the adders of the 2 subsequent columns (except for the first input of the first adder 2j which, as in the subsequent columns, is zeroed, and as well as the first output of the subsequent nth adder 2, from the output of which, as in the second column, the transfer signal arrives at the third input of the fourth adder 2 of the next column).

Третьи входы четных сумматоров первого столбца занулены, а на третьи входы первого, третьего и п того суматоров 2 первого « столбца поступают разр ды операнда, соответственно 2р , Эр и 4р .The third inputs of the even adders of the first column are zeroed, and the third inputs of the first, third, and fifth summers 2 of the first column receive bits of the operand, respectively 2p, Er and 4p.

При этом определ ютс  третий и четвертый разр ды результата, посту- пакмцие с вторых выходов первого и второго сумматоров 2 первого столбца на третий и четвертый вькоды устройства . Сигналы суммы с вторых вьпсо- дов третьего, четвертого и п того сумматоров 2 первого столбца поступают , как и сигналы суммы с соответствующих сумматоров 2 второго столб0In this case, the third and fourth bits of the result are determined, received from the second outputs of the first and second adders 2 of the first column to the third and fourth codes of the device. The sum signals from the second points of the third, fourth, and fifth adders 2 of the first column are received, as are the sum signals from the corresponding adders 2 of the second column0

0505

5five

00

00

5 0 50

5 five

0 е 0 e

124124

ца, на третьи входы соответственно первого, второго и третьего сумматоров следующего столбца. Элементы I И 1 второго столбца вычисл ют в соответствии с заведенными на их входы разр дами операнда конъюнкции 2р-3р, 2р 4р5 2р 5р 5 2р-6р и 4р 5р, которые поступают на вторые входы сумматоров 2 второго столбца. На третий вход п того сумматора 2 второго столбца поступает разр д операнда 5р.ca, to the third inputs, respectively, of the first, second and third adders of the next column. Elements I and 1 of the second column are calculated in accordance with the bits of the operand conjunctions 2p-3p, 2p 4p5 2p 5p 5 2p-6p and 4p 5p that are input to their inputs, which are fed to the second inputs of adders 2 of the second column. The third input of the second adder 2 of the second column receives the bit operand 5p.

При этом определ ютс  п тый и шестой разр ды результата, поступающие с вторых выходов первого и второго с т маторов 2 второго столбца на п тый и шестой выходы устройства. Элементы И 1 третьего столбца определ ют в соответствии с заведенными на их входы разр дами операнда конъюнкции Зр-4р, Зр-Зр, Зр-6р, 4р6р и Зр бр, которые поступают на вторые входы соответствующих сумма- Т.ОРОВ 2 третьего столбца. На третий вход п того сумматора 2 третьего столбца поступает разр д операнда 6р. При этом определ ютс  последующие разр ды результата, поступающие с вторых выходов ci MMaTopa 2 третьего столбца и первого выхода п того сумматора 2 третьего столбца соответственно на выходе устройства .с седьмого по двенадцатый.In this case, the fifth and sixth bits of the result are determined, coming from the second outputs of the first and second from matrices 2 of the second column to the fifth and sixth outputs of the device. Elements And 1 of the third column are determined in accordance with the bits of the conjunction operand Zp-4p, Zp-Zp, Zp-6p, 4p6p and Zpbr set at their inputs, which are fed to the second inputs of the corresponding sum-TOROV 2 of the third column. The third input of the first adder 2 of the third column receives the 6p operand bit. The following bits of the result are determined from the second outputs ci MMaTopa 2 of the third column and the first output of the fifth adder 2 of the third column, respectively, at the output of the device from seventh to twelfth.

-Кроме того, все разр ды результа- та поступают соответственно на входы блока 3 свертки по модулю семь. При этом блок 3 определ ет остаток от делени  результата на семь. Код остатка поступает на входы элемента ИЛИ 4 5 а также на входы блока 5 , свертки по модулю два. Блок 5 принимает единичное значение при нечетном количестве единиц в коде остатка; Это значение инвертируетс  элементом НЕ 6 и устанавливает выход элемента И 7 в нулевое значение по первому входу. По второму входу элемент И 7 устанавливаетс  в ноль при нулевом коде остатка, вы вл емом элементом ИЛИ 4. Таким образом, все коды остатка имеющие четное количество единиц , отличное от нул , установит выход элемента И 7,  вл ющийс  конт- рольнь1М выходом устройства в единичное значение.- In addition, all bits of the result are received respectively at the inputs of the convolution unit 3 modulo seven. In this case, block 3 determines the remainder of dividing the result by seven. The residual code goes to the inputs of the element OR 4 5 as well as to the inputs of block 5, the convolutions modulo two. Block 5 takes a single value when an odd number of units in the code of the remainder; This value is inverted by the element NOT 6 and sets the output of the element AND 7 to zero at the first input. At the second input, the AND 7 element is set to zero with a zero residual code, the detected element OR 4. Thus, all residual codes having an even number of ones other than zero, will determine the output of the AND 7 element, which is the control 1M output of the device single value.

Правильно вычисленный результат возведени  операнда в квадрат не может иметь кода остатка с четным количеством единиц, .отличным от нул .A correctly calculated result of raising the operand to a square cannot have a residual code with an even number of ones, different from zero.

поэтому при правильной работе устройства его контрольный выход принимает нулевое значение, а возникновение единичного значение на контрольном выходе устройства указывает на его неправильное функционирование.therefore, when the device is working properly, its control output assumes a zero value, and the occurrence of a single value at the control output of the device indicates its malfunction.

Claims (1)

Формула изобретени Invention Formula Матричное устройство дл  возведени  в квадрат, содержащее элементы НЕ и И, а также матрицу  чеек из п/2 столбцов и п-1 строк, где п - четное число, разр дность операнда, причем кажда   чейка содержит сумматор и элемент И, первый выход сумматора i-й строки ( , п-2) казвдо- го столбца соединен с первым входом сумматора (1+1)-й строки того же столбца матрицы, выход элемента И каждой  чейки соединен с вторым входом сумматора этой же  чейки, первый выход сумматора (n-t)-ft стро- ки j-ro столбца (, п/2-1) соединен с третьим входом сумматора (п+2)-й строки (j+1)-ro столбца, второй вьгход сумматора i-й строки (, п-1)-го столбца соединен с третьим входом сумматора (1-2)-й строки (j+1)-ro столбца, первые входы элементов И первых п-1 строк j-ro столбца (j 1, п/2) объединены между собой и подключены к входу j-ro разр да операнда устройства, второй вход элемента И 1-й строки j-ro столбца (, n-i) соединен с входом (j+1)-ro разр да операнда устройства , первые входы элементов И последних (j-l)-x строк j-ro столбца (дл  j 1) объединены между собой и подключены к входу (n/2+j)-ro разр да операнда устройства, второй вход элемента И 1-й строки j-ro столбца (, п-1, j 1) соединенA matrix squaring device containing NOT and AND elements, as well as a matrix of p / 2 column cells and n-1 rows, where n is an even number, operand width, each cell containing an adder and an And element, the first output of the adder The i-th row (, p-2) of each column is connected to the first input of the adder (1 + 1) -th row of the same column of the matrix, the output of the element AND each cell is connected to the second input of the adder of the same cell, the first output of the adder ( nt) -ft of the row j-ro of the column (, p / 2-1) is connected to the third input of the adder (n + 2) -th row (j + 1) -ro of the column, the second input of the adder of the i-th row (, n-1) of the th column is connected to the third input of the adder (1-2) -th row (j + 1) -ro of the column, the first inputs of the elements And the first n-1 rows of j-ro column (j 1, p / 2) are interconnected and connected to the j-ro input of the operand of the device, the second input of the element AND the 1st row of the j-ro column (, ni) is connected to the input (j + 1) -ro the device operand bit, the first inputs of the AND elements of the last (jl) -x rows of the j-ro column (for j 1) are interconnected and connected to the input (n / 2 + j) -ro of the device operand, the second input of the AND element 1st row of j-ro column (, n-1, j 1) oedinen 10ten 1515 2020 2525 30thirty 3535 4040 4545 126126 с входом (j+i-n/2)-ro разр да опера: - да устройства, третий вход сумматора (2j-1)-й строки первого столбца подключен к входу (j+1)-ro разр да операнда устройства, а третьи входы сумматоров первых строк первого столбца и первые входы сумматоров первых строк всех столбцов подключены к входу логического нул  устройства , третий вход сумматора (п-1)-и строки j-ro столбца (j 1) соединен с входом (j+nV2)-ro разр да операнда устройства, первый и второй выходы устройства соединены соответственно с входом первого разр да операнда устройства и входом логического нул  устройства, вторые выходы сумматоров первой и второй строк столбца подключены к (2j+1)-My и (2j+2)-My входам устройства соответственно , второй вьпсод сумматора 1-й строки П/2-ГО столбца соединен с (1+п)-гм выходом устройства, 2п-й эыход которого соединен .с первым выходом сумматора (п-1)-и строки Д/2-ГО столбца, выход элемента НЕ соединен с первым входом элемента И, выход которого  вл етс  контрольным выходом устройства, отличающеес  тем, что, с целью повышени  достоверности функционировани , в него введены блок свертки по модулю семь, элемент ИЛИ и блок свертки по модулю два, причем информационные выходы устройства соединены с входами блока свертки по модулю семь, первый, второй и третий выходы которого соединены соответственно с одноименными входами элемента ИЛИ и соответствукнцими входами блока свертки по модулю два, выход которого соединен с входом элемента НЕ, а выход элемента ИЛИ подключен к второму входу элемента И.with the input (j + in / 2) -ro bit opera: - yes devices, the third input of the adder (2j-1) -th row of the first column is connected to the input (j + 1) -ro bit of the device operand, and the third inputs the adders of the first rows of the first column and the first inputs of the adders of the first rows of all columns are connected to the input of the logical zero of the device, the third input of the adder (n-1) and the rows of the j-ro column (j 1) is connected to the input (j + nV2) -ro bit Yes, the device operand, the first and second device outputs are connected respectively to the input of the first bit of the device operand and the logical zero input. devices, the second outputs of the adders of the first and second rows of the column are connected to (2j + 1) -My and (2j + 2) -My to the inputs of the device, respectively, the second output of the adder of the 1st row P / 2-nd column is connected to (1 + n a) -gm output of the device, the 2nth output of which is connected to the first output of the adder (p-1), and the rows of the D / 2th column, the output of the element is NOT connected to the first input of the AND element whose output is the control output of the device characterized in that, in order to increase the reliability of the operation, a modulo seven convolution block, the OR element and the block modulo two convolutions, the information outputs of the device are connected to the inputs of the convolution unit modulo seven, the first, second and third outputs of which are connected respectively to the same inputs of the OR element and the corresponding inputs of the convolution unit modulo two, the output of which is connected to the input of the HE element, and the output of the element OR is connected to the second input of the element I.
SU884401437A 1988-03-31 1988-03-31 Matrix-type squaring device SU1520512A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU884401437A SU1520512A1 (en) 1988-03-31 1988-03-31 Matrix-type squaring device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU884401437A SU1520512A1 (en) 1988-03-31 1988-03-31 Matrix-type squaring device

Publications (1)

Publication Number Publication Date
SU1520512A1 true SU1520512A1 (en) 1989-11-07

Family

ID=21365026

Family Applications (1)

Application Number Title Priority Date Filing Date
SU884401437A SU1520512A1 (en) 1988-03-31 1988-03-31 Matrix-type squaring device

Country Status (1)

Country Link
SU (1) SU1520512A1 (en)

Similar Documents

Publication Publication Date Title
US4498174A (en) Parallel cyclic redundancy checking circuit
JPH0697559B2 (en) Semiconductor memory device
US3555255A (en) Error detection arrangement for data processing register
SU1520512A1 (en) Matrix-type squaring device
SU1509881A1 (en) Matrix squaring device
SU858115A1 (en) Fixed storage unit testing device
SU1005189A1 (en) Device for reading-out information from associative storage
SU703817A1 (en) Monitored parallel adder
SU911510A1 (en) Device for determining maximum number
SU875461A1 (en) Storage device
SU824316A1 (en) Fixed storage testing device
SU818018A1 (en) Device for checking the quantity of unities in code
SU1695308A2 (en) Modulo three pyramidal convolution
SU1337899A1 (en) Device for checking packet-optimum t-codes
SU1030797A1 (en) Device for sorting mn-digit numbers
SU1619260A1 (en) Matrix-type squaring device
SU1478340A1 (en) Fibonacci p-code check unit
SU1103223A2 (en) Device for adding binary numbers
SU691856A1 (en) Parallel adder with even parity check
SU830377A1 (en) Device for determining maximum number code
SU1262476A1 (en) Device for selecting the maximum number
SU898509A1 (en) Storage device with error detection and correction
SU1096639A1 (en) Device for comparing n-digit numbers
SU1001529A1 (en) Majority-redundancy device
SU752332A1 (en) Device for computing the function: squared x plus squared y