SU1697079A1 - Device for computing modulo multiplication - Google Patents

Device for computing modulo multiplication Download PDF

Info

Publication number
SU1697079A1
SU1697079A1 SU884622474A SU4622474A SU1697079A1 SU 1697079 A1 SU1697079 A1 SU 1697079A1 SU 884622474 A SU884622474 A SU 884622474A SU 4622474 A SU4622474 A SU 4622474A SU 1697079 A1 SU1697079 A1 SU 1697079A1
Authority
SU
USSR - Soviet Union
Prior art keywords
elements
input
output
inputs
block
Prior art date
Application number
SU884622474A
Other languages
Russian (ru)
Inventor
Валерий Иванович Глушков
Валерий Петрович Ирхин
Виктор Анатольевич Краснобаев
Ирина Викторовна Кононова
Анатолий Иванович Сахно
Original Assignee
Предприятие П/Я Г-4190
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 Предприятие П/Я Г-4190 filed Critical Предприятие П/Я Г-4190
Priority to SU884622474A priority Critical patent/SU1697079A1/en
Application granted granted Critical
Publication of SU1697079A1 publication Critical patent/SU1697079A1/en

Links

Landscapes

  • Complex Calculations (AREA)

Abstract

Изобретение относитс  к автоматике и вычислительной технике и может быть использовано в вычислительных машинах и устройствах, функционирующих в системе остаточных классов. Целью изобретени   вл етс  упрощение устройства. Устройство дл  умножени  чисел по модулю содержит группу блоков 3 элементов И, группу блоков 4 умножени  на константу по модулю, кольцевые регистры 5 и 16 сдвига, блок 8 элементов ИЛИ, счетчик 9, элемент ИЛИ 10, элементы И 11, 13 и 14, элемент НЕ 12, блок 15 элементов И и шифратоо 17 с соответствующими св з ми, 1 ил.The invention relates to automation and computing and can be used in computers and devices operating in the system of residual classes. The aim of the invention is to simplify the device. A device for multiplying modulo numbers contains a group of blocks of 3 elements AND, a group of blocks of 4 multiplication by a constant modulo, ring registers 5 and 16 of shift, a block of 8 elements OR, a counter 9, an element OR 10, elements 11, 13 and 14, an element NOT 12, block 15 of the elements AND and the encryption 17 with the appropriate links, 1 Il.

Description

Изобретение относитс  к автоматике и вычислительной технике и может быть использовано в вычислительных машинах и устройствах, функционирующих в системе остаточных классов.The invention relates to automation and computing and can be used in computers and devices operating in the system of residual classes.

Цель изобретени  - упрощение устройства .The purpose of the invention is to simplify the device.

На чертеже представлена схема устройства дл  умножени  чисел по модулю.The drawing shows a diagram of a device for multiplying modulo numbers.

Устройство содержит вход 1 первого сомножител , вход 2 второго сомножител , группу блоков 3 элементов И, группу блоков 4 умножени  на константу по модулю, первый кольцевой регистр 5 сдвига, выход 6 устройства, тактовый вход 7 устройства, блок элементов ИЛИ 8, счетчик 9, элемент ИЛИ 10, первый элемент И 11, элемент НЕ 12, второй и третий элементы И 13 и 14, блок элементов И 15, второй кольцевой регистр 16 сдвига, шифратор 17.The device contains the input 1 of the first factor, the input 2 of the second factor, a group of blocks 3 elements AND, a group of blocks 4 multiplied by a constant modulo, the first ring register 5 shift, the output 6 of the device, the clock input 7 of the device, the block of elements OR 8, counter 9, the element OR 10, the first element And 11, the element NOT 12, the second and third elements And 13 and 14, the block of elements And 15, the second ring register 16 shift, the encoder 17.

Блоки 4 умножени  на константу по модулю группы реализованы как в аналоге.Blocks 4 multiplication by a constant modulo the group are implemented as in the analog.

Сущность изобретени  состоит в следующем: пусть А - первый операнд, В - второй и необходимо провести операцию модульного умножени  А-В (mod m), где m - модуль. Представим число В в виде В Sn-i-2n 1 + Sn-2-2n 2 + ..+ + S0 2° (n 1092 (m-1) + 1) ТогдаThe essence of the invention is as follows: let A be the first operand, B the second and it is necessary to carry out the operation of modular multiplication AB (mod m), where m is the module. Represent number B as B Sn-i-2n 1 + Sn-2-2n 2 + .. + + S0 2 ° (n 1092 (m-1) + 1) Then

n - 1 A В 2 A 21 Si (Si равно О либо 1,n - 1 A B 2 A 21 Si (Si is O or 1,

I oI o

т.е. соответствует значению соответствующего разр да в двоичном представлении числа В). Произведение вида А -21 (mod m) можно получить при помощи блока умножени  на константу. Следовательно, дл  получени  результата операции А-В (mod m) необходимо произвести последовательное слежение чисел вида А-2 (mod m) дл  тех разр дов двоичного представлени , числа 8, Si которых равны единицеthose. corresponds to the value of the corresponding bit in the binary representation of the number B). The product of the form A -21 (mod m) can be obtained by using the multiplication unit by a constant. Consequently, to obtain the result of operation А-В (mod m), it is necessary to carry out sequential tracking of numbers of the type A-2 (mod m) for those bits of the binary representation, the numbers 8, Si of which are equal to one.

Рассмотрим работу устройства. Первый кольцевой регистр 5 сдвига состоит из n двоичных разр дов (с 0-го по n-1-й) ВторойConsider the operation of the device. The first ring register 5 shift consists of n binary bits (from 0th to n-1st) Second

СОWITH

сwith

о юo you

VIVI

о VJabout vj

sQsQ

кольцевой регистр 16 сдвига состоит из m двоичных разр дов (с 0-го по m-1-й). В исходном состо нии в нулевые разр ды регистров 5 и 16 записаны единицы, а в остальные разр ды - нули по входу начальной установки устройства (на чертеже не показан). Первый сомножитель А поступает на входы блоков 4 умножени  на константу по модулю, а также на первый вход последнего блока 3 элементов И группы, на входах блоков 4 умножени  на константу по модулю группы получаем произведени  вида (а-21) mod m (i n-1 - 1), а на третьем входе последнего блока 3 элементов И имеем (А-2°) mod m А. Второй сомножитель В в двоичном коде поступает на соответствующие вторые входы блоков 3 элементов И группы. На первые входы блоков 3 элементов И группы поступает сигнал.с выходов разр дов первого кольцевого регистра 5 сдвига. Первоначально в нулевом разр де регистра 5 записана единица. В соответствующий n-1-й. разр д операнда В тоже записываетс  единица. Тогда через соответствующий блок элементов И 3 и через блок элементов ИЛИ 8 число (А -2П ) то т поступает на импульсный вход установки числа счетчика 9. Сигнал с элемента ИЛИ 10 открывает элемент И 11, и импульсы с входа 7 устройства поступают на вход разрешени  сдвига разр дов регистра 16 и вычитающий вход счетчика 9. Через (A-2n ) modm импульсов единица из нулевого разр да регистра 16 переходит в () mod m-й разр д, а содержимое счетчика 9 становитс  равно нулю. Тогда сигнал поступает через элемент НЕ 12 на элемент И 13. С входа 7 устройства один импульс поступает на вход разрешени  сдвига разр дов регистра 5, передвинув единицу из нулевого разр да в первый. Если в п-2-м двоичном разр де операнда В имеетс  нуль, сигнал с элемента 12 поступает на элемент И 13, и единица из первого разр да регистра 5 переходит во второй. Процесс продолжаетс  до тех пор, пока единица в регистре 5 не перейдет в n-1-й разр д. В этом случае, если соответствующий (нулевой) разр д операнда В равен нулю, на выходе элемента НЕ 12 оказываетс  сигнал, который поступает с элемента И 14 на первый вход блока элементов И 15, и результат операции модульного умножени , полученный в унитарном коде на выходах разр дов регистра 16, поступает через шифратор 17, который преобразует его в двоичное представление, на в-ыхо д 6 устройства. Если нулевой двоичный разр д операнда В равен единице, сигнал с элемента И 14 поступает только тогда, когда содержимое счетчика 9 становитс  равно нулю, т.е. после последнего сложени .The circular shift register 16 consists of m binary bits (from the 0th to the m-1th). In the initial state, the units of the registers 5 and 16 are written to zero bits, and the remaining bits are zeroed at the input of the initial setup of the device (not shown in the drawing). The first factor A is fed to the inputs of blocks 4 multiplied by a constant modulo, as well as the first input of the last block of 3 elements AND groups, at the inputs of blocks 4 multiplied by a constant modulo group we get the product of the form (a-21) mod m (i n- 1 - 1), and at the third input of the last block 3 elements And we have (A-2 °) mod m A. The second factor B in the binary code goes to the corresponding second inputs of the blocks 3 elements And groups. The first inputs of the blocks of 3 elements AND groups receive a signal. From the outputs of the bits of the first ring register 5 shift. Initially, in the zero discharge de register 5 recorded unit. In the corresponding n-1st. the bit of operand B is also recorded as one. Then, through the corresponding block of elements AND 3 and through the block of elements OR 8, the number (A -2P) then goes to the pulse input of setting the number of the counter 9. The signal from the element OR 10 opens the element AND 11, and the pulses from the input 7 of the device enter the permission input the shift of the bits of the register 16 and the subtracting input of the counter 9. After (A-2n) modm pulses, the unit from the zero bit of the register 16 goes to () mod the m-th bit, and the contents of the counter 9 becomes equal to zero. Then the signal enters through element 12 at element 13. From the input 7 of the device, one pulse arrives at the input of the shift resolution of register bits 5, moving the unit from zero to the first. If in the n-2nd binary bit of the operand B is zero, the signal from element 12 enters And 13, and the unit from the first register bit 5 goes to the second. The process continues until the unit in register 5 goes into n-1-th bit. In this case, if the corresponding (zero) bit of operand B is zero, the output of element 12 is a signal that comes from element And 14 at the first input of the block of elements And 15, and the result of the modular multiplication operation, obtained in a unitary code at the outputs of the register bits 16, is received through the encoder 17, which converts it into a binary representation, in the last 6 of the device. If the zero binary bit of operand B is equal to one, the signal from AND 14 enters only when the contents of counter 9 becomes zero, i.e. after the last addition.

Ф о р м у л а и з о б р е т е н и  FORUMAWLAH AND ISLANDS

Устройство дл  умножени  чисел по модулю , содержащее группу блоков элементов И, первый и второй кольцевые регистры.A device for multiplying modulo numbers, containing a group of blocks of elements And, the first and second ring registers.

сдвига, блок элементов ИЛИ, счетчик, элемент НЕ, с первого по третий элементы И и блок элементов И, причем выходы разр дов первого кольцевого регистра сдвига соединены с первыми входами соответствующихshift, block of elements OR, counter, element NOT, from the first to the third elements AND and the block of elements AND, and the bits of the first circular shift register are connected to the first inputs of the corresponding

блоков элементов И группы, выходы которых соединены с соответствующими входами блока элементов ИЛИ, тактовый вход устройства соединен с первыми входами первого и второго элементов И, выход элемента НЕ соединен со вторым входом второго элемента И, выход третьего элемента И соединен с первым входом блока элементов И, отличающеес  тем, что, с целью упрощени  устройства, оно содержит группу блоков умножени  на константу по модулю , элемент ИЛИ и шифратор, причем вход первого сомножител  устройства соединен со входами блоков умножени  на константу по модулю группы, входы разр дов входаblocks of elements AND groups whose outputs are connected to the corresponding inputs of the block of elements OR, the clock input of the device is connected to the first inputs of the first and second elements AND, the output of the element is NOT connected to the second input of the second element AND, the output of the third element And is connected to the first input of the block of elements AND , in order to simplify the device, it contains a group of units of multiplication by a constant modulo, the OR element and an encoder, with the input of the first device multiplier connected to the inputs of multiplication units by band modulo, input bit inputs

второго сомножител  устройства соединены со вторыми входами соответствующих блоков элементов И группы, выходы блоков умножени  на константу по модулю группы соединены соответственно с третьими входами блоков элементов И, кроме последнего , группы, вход первого сомножител  устройства соединен с третьим входом последнего блока элементов И группы, выход блока элементов ИЛИ соединен с установочным входом счетчика, выходы разр дов которого соединены с соответствующими входами элемента ИЛИ, выход которого соединен со входом элемента НЕ и со вторым входом первого элемента И, выход которогоThe second device multiplier is connected to the second inputs of the corresponding blocks of elements AND groups, the outputs of multiplication blocks by a constant modulo the group are connected respectively to the third inputs of blocks of elements AND, except for the last group, the input of the first factor of the device is connected to the third input of the last block of elements AND groups, output the block of elements OR is connected to the installation input of the counter, the outputs of the bits of which are connected to the corresponding inputs of the element OR, the output of which is connected to the input of the element NOT and with the second input of the first element And, the output of which

сВединен с вычитающим входом счетчика и со входом разрешени  сдвига второго кольцевого регистра сдвига, выходы разр дов которого соединены с соответствующими входами шифратора, выход которого соединен со вторым входом блока элементов И, выход которого  вл етс  выходом устройства , выход последнего разр да первого кольцевого регистра сдвига и выход элемента НЕ соединены соответственно с первым иConnected to the subtracting input of the counter and to the shift enable input of the second ring shift register, the bit outputs of which are connected to the corresponding inputs of the encoder, the output of which is connected to the second input of the AND block whose output is the device output, the output of the last bit of the first ring shift register and the output of the element is NOT connected respectively to the first and

вторым входами третьего элемента И, выход второго элемента И соединен со входом разрешени , сдвига первого кольцевого регистра сдвига.the second inputs of the third element And, the output of the second element And is connected to the input of the resolution, the shift of the first ring shift register.

Claims (1)

5 Формула изобретения5 claims Устройство для умножения чисел по модулю, содержащее группу блоков элементов И, первый и второй кольцевые регистры Ю сдвига, блок элементов ИЛИ,’счетчик, элемент НЕ, с первого по третий элементы И и блок элементов И, причем выходы разрядов первого кольцевого регистра сдвига соединены с первыми входами соответствующих 15 блоков элементов И группы, выходы которых соединены с соответствующими входами блока элементов ИЛИ, тактовый вход устройства соединен с первыми входами первого и второго элементов И, выход эле20 мента НЕ соединен со вторым входом второго элемента И, выход третьего элемента И соединен с первым входом блока элементов И, отличающее с я тем, что, с целью упрощения устройства, оно содержит груп25 пу блоков умножения на константу по модулю, элемент ИЛИ и шифратор, причем вход первого сомножителя устройства соединен со входами блоков умножения на константу по модулю группы, входы разрядов входа 30 второго сомножителя устройства соединены со вторыми входами соответствующих блоков элементов И группы, выходы блоков умножения на константу по модулю группы соединены соответственно с третьими вхо35 дами блоков элементов И, кроме последнего, группы, вход первого сомножителя устройства соединен с третьим входом последнего блока элементов И группы, выход блока элементов ИЛИ соединен с устано4Q вочным входом счетчика, выходы разрядов которого соединены с соответствующими входами элемента ИЛИ, выход которого соединен со входом элемента НЕ и со вторым входом первого элемента И, выход которого 45 сбединен с вычитающим входом счетчика и со входом разрешения сдвига второго кольцевого регистра сдвига, выходы разрядов которого соединены с соответствующими входами шифратора, выход которого соеди55 нен со вторым входом блока элементов И. выход которого является выходом устройства, выход последнего разряда первого кольцевого регистра сдвига и выход элемента НЕ соединены соответственно с первым и 55 вторым входами третьего элемента И, выход второго элемента И соединен со входом разрешения сдвига первого кольцевого регистра сдвига.A device for multiplying numbers modulo containing a group of blocks of AND elements, first and second ring shift registers U, a block of OR elements, a counter, an element NOT, first to third AND elements and a block of AND elements, and the outputs of the bits of the first ring shift register are connected with the first inputs of the corresponding 15 blocks of elements AND groups, the outputs of which are connected to the corresponding inputs of the block of elements OR, the clock input of the device is connected to the first inputs of the first and second elements AND, the output of the element 20 is NOT connected to the second by the course of the second AND element, the output of the third AND element is connected to the first input of the block of AND elements, characterized in that, in order to simplify the device, it contains a group of 25 blocks of multiplication by a constant modulo, an OR element, and an encoder, and the input of the first factor of the device connected to the inputs of the units of multiplication by a constant modulo the group, the inputs of the bits of the input 30 of the second factor of the device are connected to the second inputs of the corresponding blocks of elements And groups, the outputs of the units of multiplication by a constant modulo the group are connected respectively Accordingly, with the third inputs of the AND block of elements, except for the last group, the input of the first factor of the device is connected to the third input of the last block of AND elements, the output of the OR block is connected to the setting input of the counter, the bit outputs of which are connected to the corresponding inputs of the OR element, the output which is connected to the input of the element NOT and to the second input of the first element AND, the output of which 45 is connected to the subtracting input of the counter and to the shift enable input of the second ring shift register, outputs in which they are connected to the corresponding inputs of the encoder, the output of which is connected to the second input of the block of elements I. The output of which is the output of the device, the output of the last bit of the first ring shift register and the output of the element are NOT connected to the first and 55 second inputs of the third element And, the output of the second element And is connected to the shift enable input of the first annular shift register.
SU884622474A 1988-12-20 1988-12-20 Device for computing modulo multiplication SU1697079A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU884622474A SU1697079A1 (en) 1988-12-20 1988-12-20 Device for computing modulo multiplication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU884622474A SU1697079A1 (en) 1988-12-20 1988-12-20 Device for computing modulo multiplication

Publications (1)

Publication Number Publication Date
SU1697079A1 true SU1697079A1 (en) 1991-12-07

Family

ID=21416143

Family Applications (1)

Application Number Title Priority Date Filing Date
SU884622474A SU1697079A1 (en) 1988-12-20 1988-12-20 Device for computing modulo multiplication

Country Status (1)

Country Link
SU (1) SU1697079A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
RU2313124C1 (en) * 2006-05-02 2007-12-20 Государственное образовательное учреждение высшего профессионального образования "Воронежский государственный университет" Device for modulus multiplication of numbers
RU2321883C1 (en) * 2006-10-16 2008-04-10 Государственное образовательное учреждение высшего профессионального образования "Северо-Кавказский государственный технический университет" Device for modulo multiplication of polynomials
RU2338241C1 (en) * 2007-03-22 2008-11-10 Государственное образовательное учреждение высшего профессионального образования "Воронежский государственный технический университет" Device for number module multiplication

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Авторское свидетельство СССР № 1617439,кл. G 06 F 7/72, 1988. Авторское свидетельство СССР № 1259255, кл. G 06 F 7/72, 1985. *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
RU2313124C1 (en) * 2006-05-02 2007-12-20 Государственное образовательное учреждение высшего профессионального образования "Воронежский государственный университет" Device for modulus multiplication of numbers
RU2321883C1 (en) * 2006-10-16 2008-04-10 Государственное образовательное учреждение высшего профессионального образования "Северо-Кавказский государственный технический университет" Device for modulo multiplication of polynomials
RU2338241C1 (en) * 2007-03-22 2008-11-10 Государственное образовательное учреждение высшего профессионального образования "Воронежский государственный технический университет" Device for number module multiplication

Similar Documents

Publication Publication Date Title
SU1697079A1 (en) Device for computing modulo multiplication
SU1734212A1 (en) Device for computing of modulo @@@+1 reminder
SU1363187A1 (en) Associative arithmetic device
SU748880A1 (en) Pulse recurrence rate divider with variable division factor
SU1091145A1 (en) Walsh function generator
SU1508203A1 (en) Binary encoder
SU1020834A1 (en) Walsh spectrum digital analyzer
SU1012278A1 (en) Differentiating device
RU2047895C1 (en) Spectrum analyzer
SU1168934A1 (en) Device for modulo p adding and subtracting numwers
SU1511865A2 (en) Binary code transmission device
SU840878A1 (en) Binary-coded decimal "12222" code- to-serial code converter
SU450162A1 (en) Tunable phase-pulse multi-stable element
SU1262519A1 (en) Device for logical processing of information
SU1247868A1 (en) Device for modulo p adding and subtracting of numbers
SU463234A1 (en) Device for dividing cycle time into fractional number of intervals
SU1317661A1 (en) Device for reception and conversion of binary balanced code
SU1124293A1 (en) Random process generator
SU485444A1 (en) Code to large code converter
SU1125621A1 (en) Translator from binary system to residual class system
SU849199A1 (en) Binary-to-bcd code converter
SU1493994A1 (en) Haar function generator
SU368598A1 (en) CONVERTER BINARY DECIMAL CODE "12222" TO UNITARY CODE
KR950002302B1 (en) Digital to Analog Converter
SU1388850A1 (en) Device for modulo p addition and subtraction of numbers