RU2029435C1 - Combination recurrent former of remainders - Google Patents

Combination recurrent former of remainders Download PDF

Info

Publication number
RU2029435C1
RU2029435C1 SU5032302A RU2029435C1 RU 2029435 C1 RU2029435 C1 RU 2029435C1 SU 5032302 A SU5032302 A SU 5032302A RU 2029435 C1 RU2029435 C1 RU 2029435C1
Authority
RU
Russia
Prior art keywords
input
block
output
adder
modulo
Prior art date
Application number
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 SU5032302 priority Critical patent/RU2029435C1/en
Application granted granted Critical
Publication of RU2029435C1 publication Critical patent/RU2029435C1/en

Links

Images

Landscapes

  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

FIELD: computer engineering. SUBSTANCE: increased efficiency of functioning due to reduced number of components incorporated in equipment is achieved by insertion combination former of partial residues. EFFECT: increased functioning efficiency. 3 cl, 3 dwg

Description

Изобретение относится к вычислительной технике и может быть использовано в устройствах для формирования элементов конечных полей, в устройствах, функционирующих в СОК, а также в устройствах для формирования кодовых последовательностей, построение которых основывается на теории конечных полей. The invention relates to computer technology and can be used in devices for forming finite field elements, in devices operating in RNS, and also in devices for generating code sequences, the construction of which is based on the theory of finite fields.

Известно устройство для формирования остатка по произвольному модулю от числа, содержащее регистры, элементы ИЛИ, вычитатель, схемы сравнения, мультиплексор, элемент задержки, сумматор, группу блоков элементов И и блок постоянной памяти со связями. A device is known for generating a remainder modulo an arbitrary number, containing registers, OR elements, a subtractor, comparison circuits, a multiplexer, a delay element, an adder, a group of blocks of AND elements, and a read-only memory block with connections.

Недостатком известного устройства является низкая надежность, так как для его реализации требуется большой объем оборудования. A disadvantage of the known device is low reliability, since its implementation requires a large amount of equipment.

Целью изобретения является повышение надежности функционирования за счет уменьшения объема оборудования. The aim of the invention is to increase the reliability of operation by reducing the amount of equipment.

Сущность изобретения заключается в реализации следующего способа приведения чисел по модулям. The essence of the invention lies in the implementation of the following method of bringing numbers into modules.

Известно, что позиционные системы счисления строятся следующим образом. Выбирается некоторое число m - основание системы счисления и каждое число А представляется в виде комбинации его степеней с коэффициентами ai, i =

Figure 00000001
, принимающими значения от 0 до m-1. Для случая двоичной системы счисления (m = 2) всякое число А можно представить в виде
A = ak2k + ak-12k-1 + ... + a121 + a0, (1) где ai,i = 0,k, принимают значения "0" или "1".It is known that positional number systems are constructed as follows. A certain number m is selected - the base of the number system and each number A is represented as a combination of its degrees with coefficients a i , i =
Figure 00000001
taking values from 0 to m-1. For the case of a binary number system (m = 2), any number A can be represented as
A = a k 2 k + a k-1 2 k-1 + ... + a 1 2 1 + a 0 , (1) where a i , i = 0, k, take the values "0" or "1" .

Для вычисления остатка от числа А по модулю Р достаточно в выражении (1) просуммировать частичные остатки по модулю Р от чисел 2iдля тех i, для которых коэффициент ai = 1. Способ вычисления частичных остатков состоит в следующем. Частичный остаток от 2о для любого модуля (Р ≥2) всегда равен единице. Частичный остаток от 21 в два раза превышает (с учетом операции приведения по модулю) частичный остаток от 2о и т.д., т.е. частичный остаток от 2i в два раза превышает частичный остаток от 2i-1. Таким образом, вычисление частичного остатка от 2i заключается в умножении на два частичного остатка от 2i-1 и приведении результата по модулю Р. Операция умножения на два (как видно из выражения (1)) может быть реализована сдвигом всех разрядов умножаемого числа на один влево либо подачей разрядов множимого на выход результата в такой последовательности: 2i разряд множимого на 2i+1 разряд произведения, i =

Figure 00000002
. Операция приведения по модулю Р для чисел, не превышающих величину 2Р-1, реализуется следующим образом. Если число не превышает величину Р, то оно остается без изменения, если же число лежит в интервале от Р до 2Р-1, то из него вычитается модуль Р, а результат является остатком.To calculate the remainder of the number A modulo P it is enough to sum in the expression (1) the partial residuals modulo P of the numbers 2 i for those i for which the coefficient a i = 1. The method for calculating the partial residuals is as follows. Partial remainder of about 2 for any module (p ≥2) is always equal to unity. The partial remainder of 2 1 is two times (taking into account the reduction operation modulo) the partial remainder of 2 about , etc., i.e. the partial residue of 2 i is twice the partial residue of 2 i-1 . Thus, the calculation of the partial remainder of 2i consists in multiplying by two partial remainders of 2 i-1 and bringing the result modulo R. The operation of multiplying by two (as can be seen from expression (1)) can be implemented by shifting all the bits of the multiplied number by one to the left or by applying the digits of the multiplicable output result in the following sequence: 2 i digit of the multiplicable by 2 i + 1 digit product, i =
Figure 00000002
. The reduction operation modulo P for numbers not exceeding 2P-1 is implemented as follows. If the number does not exceed the value of P, then it remains unchanged, but if the number lies in the range from P to 2P-1, then the module P is subtracted from it, and the result is the remainder.

На фиг. 1 представлена функциональная электрическая схема комбинационного рекуррентного формирователя остатков; на фиг. 2 - сумматора по модулю; на фиг. 3 - узла формирования частичных остатков. In FIG. 1 is a functional electrical diagram of a combination recurrent residual former; in FIG. 2 - modulo adder; in FIG. 3 - node formation of partial residues.

Формирователь содержит (фиг.1) последовательно соединенные комбинационный формирователь 1 частичных остатков, блок 2 ключей и блок 3 сумматоров по модулю. Вход 4 служит для подачи инверсного кода модуля, а вход 5 - для подачи кода числа. Выход 6 является выходом остатка формирователя. The shaper contains (Fig. 1) a series-connected combination shaper 1 of partial residues, a block of 2 keys and a block of 3 adders modulo. Input 4 serves to feed the inverse code of the module, and input 5 serves to feed the code of the number. Output 6 is the output of the remainder of the shaper.

Комбинационный формирователь 1 частичных остатков содержит N-1 узлов 7 формирования частичных остатков, соединенных последовательно по рекуррентному принципу, причем на вход первого узла формирования подан код единицы, выходы разрядов предыдущего узла формирования подаются на входы последующего узла формирования со сдвигом на один в сторону старших (реализация процедуры умножения), выходы каждого узла формирования, а также код единицы, защитный на входе первого узла, являются информационными выходами формирователя. Блок 2 ключей содержит N ключей 8, на информационные входы которых подаются коды с выходов узлов 7 формирования, причем управляющие входы являются входами подачи кода числа блока, а информационные выходы - информационными выходами блока. The combination shaper 1 of the partial residues contains N-1 nodes 7 of the formation of partial residues connected in series according to the recurrence principle, and the unit code is supplied to the input of the first formation node, the bit outputs of the previous formation node are fed to the inputs of the subsequent formation node with a shift by one to the older ones ( implementation of the multiplication procedure), the outputs of each formation node, as well as the unit code, protective at the input of the first node, are the information outputs of the shaper. Block 2 of the keys contains N keys 8, the information inputs of which are supplied with the codes from the outputs of the nodes 7 of the formation, and the control inputs are inputs of the code number of the block, and the information outputs are information outputs of the block.

Блок 3 сумматоров по модулю содержит сумматоры 9 по произвольному модулю. Каждый сумматор 9 содержит (фиг.2) последовательно соединенные комбинационный сумматор 10 и узел 11 формирования частичных остатков. В состав узла формирования частичных остатков (фиг.3) входят сумматор 12 и мультиплексор 13. Block 3 adders modulo contains adders 9 modulo an arbitrary module. Each adder 9 comprises (FIG. 2) a combinational adder 10 and a partial residue forming unit 11 connected in series. The composition of the formation of partial residues (figure 3) includes an adder 12 and a multiplexer 13.

Комбинированный рекуррентный формирователь остатков работает следующим образом. Combined recurrent shaper residues works as follows.

В исходном состоянии (фиг.1) на вход 4 модуля подается инверсный код модуля Рj, по которому необходимо формировать остатки. Так как на вход первого узла 7 формирования частичных остатков подается код единицы, а выходы разрядов предыдущего узла формирования подключены к входам последующего узла формирования со сдвигом на один разряд в сторону старших, то на выходах формирователя 1 формируются частичные остатки по модулю Рj от числа 2i, i =

Figure 00000003
.In the initial state (Fig. 1), the inverse code of the module P j is supplied to the input 4 of the module, according to which it is necessary to form residues. Since the unit code is supplied to the input of the first node 7 for the formation of partial residues, and the outputs of the bits of the previous node are connected to the inputs of the next node with a shift by one digit toward the older ones, partial residues modulo P j of the number 2 are formed at the outputs of the former 1 i , i =
Figure 00000003
.

Число Аk через вход 5 поступает на управляющие входы блока 2 ключей. В зависимости от того на управляющий вход какого из ключей 8 поступает логическая "1", тот из ключей 8 оказывается открытым и коммутирует на свои выходы значения с информационных входов, на которые с информационных выходов формирователя 1 поступают частичные остатки по модулю Рj. В результате на соответствующие входы блока 3 сумматоров по модулю поступают остатки от чисел 2i для тех i, для которых коэффициент аi = 1 в представлении (1) числа Ak, записанного в формирователь 1. Блок 3 сумматоров по модулю суммирует по модулю Рj частичные остатки, и результат суммирования выдается на информационные выходы 6 формирователя.The number And k through the input 5 is supplied to the control inputs of the block 2 keys. Depending on the control input of which of the keys 8 receives a logical "1", that of the keys 8 is open and commutes to its outputs the values from the information inputs, to which partial residues modulo P j come from the information outputs of the driver 1. As a result, the corresponding inputs of block 3 adders modulo receive the residues from the numbers 2 i for those i for which the coefficient a i = 1 in the representation (1) of the number A k recorded in the former 1. Block 3 adders modulo sums modulo P j partial residuals, and the summation result is output to the information outputs 6 of the shaper.

При следующем цикле формирования остатка задается любое другое число А, которое поступает на вход 5, и работа всех элементов и блоков формирователя повторяется. In the next cycle of the remainder formation, any other number A is set, which is input 5, and the operation of all elements and blocks of the former is repeated.

Для смены модуля на вход 4 формирователя подается очередной модуль Рх, узлы 7 формирования формирователя 1 формируют частичные остатки от чисел 2i, а с подачи очередного числа Аm работа элементов и блоков формирователя повторяется.To change the module, the next module P x is supplied to the input 4 of the shaper, the nodes 7 of the formation of the shaper 1 form partial residues from the numbers 2 i , and from the supply of the next number A m, the work of the elements and blocks of the shaper is repeated.

Блок 3 сумматоров по модулю работает следующим образом. На управляющие входы каждого сумматора 9 поступает значение модуля в инверсном виде, а на информационные входы первого сумматора 9 поступают остатки от чисел 20 и 21, если коэффициенты а0 и а1 при представлении (1) числа А равны единице. Результат суммирования поступает на вторые информационные входы второго сумматора, на первые информационные входы которого поступает остаток от числа 22 по модулю, если коэффициент а2 = 1, и т.д. до тех пор, пока результат суммирования по модулю частичных остатков не появится на выходе последнего сумматора 9 по произвольному модулю. Этот результат и поступает на выход 6 формирователя. Время формирования остатка равно времени распространения сигнала с первого по последний сумматор 9 по произвольному модулю.Block 3 adders modulo works as follows. The control inputs of each adder 9 receive the module value in the inverse form, and the information inputs of the first adder 9 receive residues from the numbers 2 0 and 2 1 if the coefficients a 0 and a 1 in the representation (1) of A are equal to one. The result of the summation is fed to the second information inputs of the second adder, the first information inputs of which receive the remainder of the number 2 2 modulo if the coefficient a 2 = 1, etc. until the result of summing modulo partial residues does not appear at the output of the last adder 9 modulo an arbitrary modulus. This result also goes to the output 6 of the shaper. The remainder formation time is equal to the signal propagation time from the first to the last adder 9 in an arbitrary module.

Сумматор 9 по произвольному модулю (фиг.2) работает следующим образом. Комбинационный сумматор 10 осуществляет суммирование остатков, поступающих на его информационные входы, а узел 11 формирования частичных остатков в зависимости от значения инверсного кода модуля, поступающего на его вход 4, приводит по модулю значение суммы. The adder 9 in an arbitrary module (figure 2) works as follows. The combinational adder 10 sums up the residuals arriving at its information inputs, and the node 11 for generating partial residuals, depending on the value of the inverse code of the module arriving at its input 4, leads modulo the sum value.

Узел 7 (11) формирования остатков (фиг.3) работает следующим образом. Сумматор 12, на разряд переноса которого постоянно подан уровень логической "1", за счет подачи на его вход 4 кода модуля в инверсном виде выполняет функцию вычитания модуля из числа. Если поступившее на информационный вход сумматора 12 число меньше кода модуля, то на управляющем выходе (выходе переноса) остается нулевой потенциал и вторые информационные входы мультиплексора 13 остаются скоммутированными на его информационные выходы, и код числа поступает на выход формирователя без изменений. Если код числа меньше или равен коду модуля, то на выходе переноса сумматора 12 появляется единичный потенциал, который коммутирует первые входы мультиплексора 13 с его информационными выходами, и код разности поступает на выход мультиплексора 13. The node 7 (11) of the formation of residues (figure 3) works as follows. The adder 12, to the transfer discharge of which the logic level “1” is constantly applied, by supplying 4 module codes in its inverse form, performs the function of subtracting the module from the number. If the number received at the information input of adder 12 is less than the module code, then the potential output remains at the control output (transfer output) and the second information inputs of multiplexer 13 remain switched to its information outputs, and the number code goes to the output of the former without changes. If the code of the number is less than or equal to the code of the module, then the unit potential appears at the transfer output of the adder 12, which commutes the first inputs of the multiplexer 13 with its information outputs, and the difference code goes to the output of the multiplexer 13.

Claims (3)

1. КОМБИНАЦИОННЫЙ РЕКУРРЕНТНЫЙ ФОРМИРОВАТЕЛЬ ОСТАТКОВ, содержащий блок из N ключей и блок из N-1 сумматоров по модулю (где N - разрядность входного числа), причем первый информационный вход i-го сумматора по модулю блока (i= 1, .. N-1) соединен с выходом (i+1)-го ключа блока, отличающийся тем, что в него введен блок формирования частичных остатков, состоящий из N-1 узлов формирования частичных остатков, причем вход блока формирования частичных остатков соединен с входом инверсного кода модуля формирователя и вторым информационным входом каждого из N-1 сумматоров по модулю блока, выход (N-1)-го сумматора по модулю блока соединен с выходом остатка формирователя, вход j-го разряда числа которого соединен с управляющим входом j-го ключа блока (j=1, ..., N), третий вход первого сумматора по модулю блока соединен с выходом первого ключа блока, третий вход (i+1)-го сумматора по модулю блока соединен с выходом i-го сумматора по модулю блока, N выходов блока формирования частичных остатков соединены соответственно с информационными входами N ключей блока, а в блоке формирования частичных остатков вход блока соединен с первым входом каждого из N-1 узлов формирования частичных остатков, второй вход первого узла формирования частичных остатков соединен с шиной логической единицы и первым выходом блока, (i+1)-й выход которого соединен с выходом i-го узла формирования частичных остатков и вторым входом (i+1)-го узла формирования частичных остатков. 1. COMBINATION RECURRENT RESIDUER FORMER, containing a block of N keys and a block of N-1 adders modulo (where N is the bit depth of the input number), and the first information input of the i-th adder modulo the block (i = 1, .. N- 1) is connected to the output of the (i + 1) -th block key, characterized in that a partial remainder forming unit is introduced into it, consisting of N-1 partial residual forming units, the input of the partial residual forming unit being connected to the inverse code input of the shaper module and the second information input of each of the N-1 su mathors modulo the block, the output of the (N-1) -th adder modulo the block is connected to the output of the remainder of the shaper, the input of the jth digit of the number of which is connected to the control input of the jth key of the block (j = 1, ..., N) , the third input of the first adder modulo the block is connected to the output of the first key of the block, the third input of the (i + 1) -th adder modulo the block is connected to the output of the i-th adder modulo the block, N outputs of the partial residual formation block are connected respectively to the information inputs N keys of the block, and in the block of formation of partial residues the input of the block with is dined with the first input of each of the N-1 partial residual formation nodes, the second input of the first partial residual generation node is connected to the logical unit bus and the first output of the block, the (i + 1) -th output of which is connected to the output of the i-th partial residual formation node and the second input of the (i + 1) th node of the formation of partial residues. 2. Формирователь по п.1, отличающийся тем, что каждый из N-1 сумматоров по модулю блока содержит комбинационный сумматор и узел формирования частичных остатков, выход которого соединен с выходом сумматора по модулю, первый и третий информационные входы которого соединены соответственно с первым и вторым входами комбинационного сумматора, выход которого соединен с вторым входом узла формирования частичных остатков, первый вход которого соединен с вторым информационным входом сумматора по модулю. 2. The shaper according to claim 1, characterized in that each of the N-1 adders modulo block contains a combination adder and a partial residual formation unit, the output of which is connected to the adder output modulo, the first and third information inputs of which are connected respectively to the first and the second inputs of the combination adder, the output of which is connected to the second input of the partial residual formation unit, the first input of which is connected to the second information input of the adder modulo. 3. Формирователь по пп.1 и 2, отличающийся тем, что узел формирования частичных остатков содержит сумматор и мультиплексор, выход которого соединен с выходом узла, первый вход которого соединен с входом первого слагаемого сумматора, выход суммы которого соединен с первым информационным входом мультиплексора, второй информационный вход которого соединен с вторым входом узла и входом второго слагаемого сумматора, вход переноса и выход переноса которого соединены соответственно с шиной логической единицы и управляющим входом мультиплексора. 3. The shaper according to claims 1 and 2, characterized in that the node for forming partial residues comprises an adder and a multiplexer, the output of which is connected to the output of the node, the first input of which is connected to the input of the first term of the adder, the output of the sum of which is connected to the first information input of the multiplexer, the second information input of which is connected to the second input of the node and the input of the second term of the adder, the transfer input and the transfer output of which are connected respectively to the logical unit bus and the control input of the multiplexer a.
SU5032302 1992-03-16 1992-03-16 Combination recurrent former of remainders RU2029435C1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU5032302 RU2029435C1 (en) 1992-03-16 1992-03-16 Combination recurrent former of remainders

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU5032302 RU2029435C1 (en) 1992-03-16 1992-03-16 Combination recurrent former of remainders

Publications (1)

Publication Number Publication Date
RU2029435C1 true RU2029435C1 (en) 1995-02-20

Family

ID=21599349

Family Applications (1)

Application Number Title Priority Date Filing Date
SU5032302 RU2029435C1 (en) 1992-03-16 1992-03-16 Combination recurrent former of remainders

Country Status (1)

Country Link
RU (1) RU2029435C1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
RU2445730C2 (en) * 2010-02-24 2012-03-20 Государственное образовательное учреждение высшего профессионального образования "Ставропольский государственный университет" Device for generating remainder from arbitrary modulus of number
RU2696223C1 (en) * 2018-12-04 2019-07-31 федеральное государственное автономное образовательное учреждение высшего образования "Северо-Кавказский федеральный университет" Arithmetic logic unit for generating residual by arbitrary module from number
RU2717915C1 (en) * 2019-02-21 2020-03-26 федеральное государственное автономное образовательное учреждение высшего образования "Северо-Кавказский федеральный университет" Computing device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Авторское свидетельство СССР N 1633495, кл. H 03M 7/18, 1991. *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
RU2445730C2 (en) * 2010-02-24 2012-03-20 Государственное образовательное учреждение высшего профессионального образования "Ставропольский государственный университет" Device for generating remainder from arbitrary modulus of number
RU2696223C1 (en) * 2018-12-04 2019-07-31 федеральное государственное автономное образовательное учреждение высшего образования "Северо-Кавказский федеральный университет" Arithmetic logic unit for generating residual by arbitrary module from number
RU2717915C1 (en) * 2019-02-21 2020-03-26 федеральное государственное автономное образовательное учреждение высшего образования "Северо-Кавказский федеральный университет" Computing device

Similar Documents

Publication Publication Date Title
EP0066768B1 (en) Apparatus for generation of random numbers
Wang et al. A high-speed residue-to-binary converter for three-moduli (2/sup k/, 2/sup k/-1, 2/sup k-1/-1) RNS and a scheme for its VLSI implementation
Gokhale et al. Design of area and delay efficient Vedic multiplier using Carry Select Adder
US4346451A (en) Dual moduli exponent transform type high speed multiplication system
KR950012379B1 (en) Serial bit digital signal processing circuity
Premkumar A formal framework for conversion from binary to residue numbers
RU2029435C1 (en) Combination recurrent former of remainders
US6745219B1 (en) Arithmetic unit using stochastic data processing
RU2348965C1 (en) Computing mechanism
RU2717915C1 (en) Computing device
JPS5961220A (en) Digital dpcm coder
RU2324972C2 (en) Creator of random module reminder of number
RU2012137C1 (en) Device for forming remainder on arbitrary modulus
RU2007037C1 (en) Recurrent generator of remainders of arbitrary modulo
US20030169939A1 (en) Apparatus and method for Fast Hadamard Transforms
RU2356086C2 (en) Computing device
KR0147942B1 (en) Booths recording circuit in a multiplier
Mohan Evaluation of fast conversion techniques for binary-residue number systems
Patel et al. Diminished-1 multiplier using modulo adder
RU2739338C1 (en) Computing device
RU2756408C1 (en) Computing apparatus
RU2368942C2 (en) Device for generating remainder with arbitrary modulus
RU2791440C1 (en) Pipeline generator of remainders by an arbitrary modulus
RU2299462C1 (en) Device for forming remainder by double modulus
RU2007036C1 (en) Device which produces members of multiplicative groups of galois fields gf(p)