SU1633495A1 - Device for generating arbitrary modulo residue - Google Patents
Device for generating arbitrary modulo residue Download PDFInfo
- Publication number
- SU1633495A1 SU1633495A1 SU894698127A SU4698127A SU1633495A1 SU 1633495 A1 SU1633495 A1 SU 1633495A1 SU 894698127 A SU894698127 A SU 894698127A SU 4698127 A SU4698127 A SU 4698127A SU 1633495 A1 SU1633495 A1 SU 1633495A1
- Authority
- SU
- USSR - Soviet Union
- Prior art keywords
- input
- output
- comparison circuit
- register
- multiplexer
- Prior art date
Links
Landscapes
- Error Detection And Correction (AREA)
Abstract
Изобретение относитс к вычислительной технике и может быть использовано в устройствах дл формировани кодовых последовательностей, построение которых основываетс на теории конечных полей. Целью изобретени вл етс повышение быстродействи . Цель достигаетс тем, что устройство дл формировани остатка, содержащее регистры 9 и 10, элементы ИЛИ 4 и 5, вычитатель 13, схему II сравнени и мультиплексор 18, содержит элементы ИЛИ 6, 7 и 8, схему 12 сравнени , элемент 14 задержки, сумматор 15, группу блоков 16 элементов И и блок 17 посто нной пам ти со св з ми. 1 ил.The invention relates to computing and can be used in devices for generating code sequences, the construction of which is based on the theory of finite fields. The aim of the invention is to increase speed. The goal is achieved by the fact that a device for forming a residual containing registers 9 and 10, elements OR 4 and 5, a subtractor 13, a comparison circuit II and a multiplexer 18, contains the elements OR 6, 7 and 8, a comparison circuit 12, a delay element 14, an adder 15, a group of blocks of 16 And elements and a block 17 of a permanent memory with links. 1 il.
Description
Изобретение относитс к вычислительной технике и может быть использовано в устройствах дл Формировани элементов конечных полей, а также в устройствах дл Нормировани кодовых последовательностей, построение которых основываетс на теории конечных полей.The invention relates to computing and can be used in devices for generating elements of finite fields, as well as in devices for normalizing code sequences, the construction of which is based on the theory of finite fields.
Целью изобретени вл етс повышение быстродействи .The aim of the invention is to increase speed.
На чертеже изображена схема устройства дл формировани остатка по произвольному модулю от числа.The drawing shows a diagram of an apparatus for forming a remainder in an arbitrary modulus of a number.
Устройство содержит вход 1 Начало вычислени устройства, вход 2 модул устройства, вход 3 числа устройства , с первого по п тый элементы ИЛИ 4-8, первый 9 и второй 10 регистВ исходном состо The device contains input 1 Start calculating the device, input 2 of the device module, input 3 of the device number, first through fifth elements OR 4-8, first 9 and second 10 regs of the initial state
ры, первую 1 и вторую 12 схемы срав- 2Q обнулены. В блоке 17The first, first, and second 12 schemes were compared to 2Qs. In block 17
нени , вычитатель 13, элемент 14 задержки , сумматор 15, группу блоков 16 элементов И, блок 17 посто нной пам ти , мультиплексор 18, выход 19 Конец вычислени устройства и выход 20 25 результата устройства., subtractor 13, delay element 14, adder 15, group of blocks 16 elements And, block 17 of permanent memory, multiplexer 18, output 19 End of calculation of the device and output 20 25 of the result of the device.
Принцип работы устройства дл формировани остатка по произвольному модулю от числа заключаетс в реализации следующего способа приведени по модул м чисел.The principle of operation of the device for forming a residue of an arbitrary modulus of a number is to implement the following method of converting modulo numbers.
Известно, что позиционные системы счислени стро тс по следующему принципу . Выбираетс некоторое число m основание системы счислени , и каждое число А представл етс в виде комбинации его гтепеней с коэффициентами a1, ,k, принимающими значени от 0 до п-1, т.е. в видеIt is known that positional number systems are constructed according to the following principle. Some number m is chosen as the base of the number system, and each number A is represented as a combination of its values with coefficients a1,, k, taking values from 0 to n-1, i.e. as
30thirty
3535
рительно записаны з ные остатки от чисел Р.1, с которыми предп устройства. Модуль P осуществл етс Формир ков чисел, задаетс п ичным кодом, подаваем модул устройства. На поступает число А в двоичном коде. После числа и модул на вхо на вход 1 Начало выч импульс, который, про мент ИПИ 4, поступает решени считывани бл на вход разрешени за 10 и на вход элемента При этом н регистр 10 плексор 18 происходит а на выходах блока 1 л ютс остатки от чисThe known remnants of the numbers P.1, with which the prep devices are recorded. Module P is carried out by a number formulant, given with a set code, and supplied with a device module. The number A comes in binary code. After the number and the module at input 1, the beginning of the deduction pulse, which, for the IPI 4, goes to read the resolution for the resolution input for 10 and for the input of the element. At the register 10, the plexer 18 occurs and at the outputs of block 1 there are residues from numbers
akrnakrn
++a,m+a0, ++ a, m + a0,
(О(ABOUT
afc- 2(modP) ++а, 2(modP) +afc- 2 (modP) ++ a, 2 (modP) +
счистоль- сум+a0 (modP).(4)clean-sum + a0 (modP). (4)
Так как дл двоичной системы лени коэффициенты а| принимают ко два значени О или 1, то, миру заранее вычисленные остатки по модулю Р от чисел 21 дл тех i, 0 дл которых коэффициент , получаем остаток по модулю Р от числа А.Since for a binary lazy system, the coefficients a | take two values O or 1, then, to the world, the pre-calculated residues modulo P from the numbers 21 for those i, 0 for which is a coefficient, we obtain the remainder modulo P from the number A.
с которыми предпола- в посто нном запоминающем устройстве (ПЗУ/ за- 5 поминаютс заранее вычисленные остатки от чисел 2.with which it is assumed in the permanent storage device (ROM / 5 is remembered the pre-calculated residuals from the numbers 2.
Устройство работает следующим образом ,The device works as follows
В исходном состо нии все регистрыIn the initial state, all registers
Дл модулей Р.For modules R.
гаетс работа устройства,the device works,
Q обнулены. В блоке 17Q cleared. In block 17
пам ти предва5 memory pred5
00
5five
00
рительно записаны заранее вычисленные остатки от чисел 2 по модул м Р.1, с которыми предполагаетс работа устройства. Модуль Pj, по которому осуществл етс Формирование остатков чисел, задаетс параллельным двоичным кодом, подаваемым на вход 2 модул устройства. На вход 3 числа поступает число А в параллельном двоичном коде. После подачи кодов числа и модул на входы устройства на вход 1 Начало вычислени подают импульс, который, проход через элемент ИПИ 4, поступает на вход разрешени считывани блока 17 пам ти, на вход разрешени записи регистра 10 и на вход элемента 14 задержки. При этом н регистр 10 через мультиплексор 18 происходит запись числа, а на выходах блока 17 пам ти по вл ютс остатки от чисел 21 по модуThe pre-calculated residuals from the numbers 2 modulo R.1, with which the device is supposed to work, are recorded. The module Pj, according to which the formation of residual numbers is carried out, is given by a parallel binary code supplied to the input 2 of the device module. The input number 3 receives the number A in the parallel binary code. After the codes and the module are fed, the input of the device to input 1 of the beginning of the calculation is given by a pulse, which, passing through the IPI 4, enters the read enable input of memory block 17, the write enable register 10 and the input of delay element 14. At the same time, the n register 10 through the multiplexer 18 records the number, and at the outputs of the memory block 17, the remainder of the numbers 21 modulo
где k - разр дность представл емого числа, Дл случа двоичной системы счислени выражение (1) принимает видwhere k is the width of the represented number. For the case of a binary number system, expression (1) takes the form
Известно также, что сравнени можно почленно складывать, т.е. если А,В (modP),, (modP), тоIt is also known that comparisons can be added termwise, i.e. if A, B (modP) ,, (modP), then
справедливо рыраженис fair dyrazhenis
А, +AfcsB ,+ . . .. BK(raodP).A, + AfcsB, +. . .. bk (raodP).
Учитыва (2) и (3), можно запи (3)Taking into account (2) and (3), you can record (3)
сатьto sat
(ak, 2(ak, 2
, -t-а, 2+aOmodP, -t-a, 2 + aOmodP
4545
5050
3)3)
5555
лю РLiu R
J.J.
ГR
входentrance
Блок 17 пам ти имеет k выходов , каждый из которых состоит из „ 1 разр дов, необходимых дл представлени остатков чисел 2 по модулю Р; В зависимости от того, на первый какого из блоков 16 элементов И поступает логическа 1, тот из блоков 16 элементов Н оказываетс открытым и коммутирует на свой выход значени с второго входа. В результате на соответствующие входы сумматора 15 поступают остатки от чисел 2 , дл тех L, дл которых коэффициент в представлении (2) числа, записанного в регистре 10, Сумматор 15 осуществл ет суммирование чисел, поступающих на его входы, и эта сумма в двоичном параллельном коде оказываетс на егоThe memory unit 17 has k outputs, each of which consists of ' 1 bits, necessary for representing the residuals of the numbers 2 modulo P; Depending on which of the 16 blocks of elements AND receives the logical 1, that of the blocks of 16 elements of H turns out to be open and switches its value from the second input to its output. As a result, the corresponding inputs of the adder 15 receive the residues from the numbers 2, for those L for which the coefficient in the representation (2) of the number written in register 10, the adder 15 performs the summation of the numbers arriving at its inputs, and this sum in the binary parallel the code appears on its
выходе. При этом на первый вход схемы I1 сравнени воздействует код моду п , а на второй вход - код вычисленно суммы с выхода сумматора 15. К этому моменту времени на выходе элемента 14 задержки по вл етс импульс, который , поступа на управл ющий вход схемы И сравнени , разрешает сравнение кодов чисел, воздействующих на ее входы. Если в результате сравнени окажетс , что код числа, воздействующий на второй вход схечы сравнени , меньше кода модул , то на выходе Меньше схемы II сравнени по вл етс импульс, который поступает на второй управл ющий вход мультиплексора 1 и через элемент ИЛИ 7 на вход разрешени записи регистра 9. В результате мультиплексор коммутирует на выход свой второй вход и в регистр 9 при этом записываетс с выхода сумматора 15 код остатка, а на выходе 19 Конец вычислени устройства по вл етс импульс , свидетельствующий о том, что Нормирование остатка закончено и в .регистре 9 записан код остатка. Если же в результате сравнени импульс по витс на выходе Равно схемы 11 сравнени , это свидетельствует о том, что остаток от числа равен модулю, что означает тождественное равенство нулю числа. При этом импульс с выхода Равно схемы 11 сравнени , пройд через элемент ИЧИ 8, обнул ет регистр 9 и через элемент ИЛИ 5 поступает на выход Конец вычислени 19 устройства . По вление же импульса на выходе Больше схемы I1 сравнени свидетельствует о том, что формирование остатка не закончено. Импульс с выхода Больше схемы 11 сравнени поступает на управл ющий вход схемы 12 сравнени , разреша сравнение кодов чисел, воздействующих на ее входы. При этом на ее первый вход воздействует код модул , а на второй вход воздействует код числа с выхода вы- читател 13, численно равного разности кода числа с выхода сумматора 15 и кода модул . Если в результате работы схемы 12 сравнени импульс по витс на ее выходе Равно, то это свидетельствует о том, что код числа тождественно равен нулю по модулю. При этом этот импульс, проход через элемент ИЛИ 8, поступает на обнул ющий вход регистра 9 и на второй вход элемента ИЛИ 5. В результате на выoutput In this case, the first input of the comparison circuit I1 is affected by the mode code n, and the second input is a code calculated by the sum from the output of the adder 15. At this time, a pulse appears at the output of the delay element 14, which arrives at the control input of the comparison circuit , allows comparison of codes of numbers acting on its inputs. If, as a result of the comparison, it turns out that the code of the number acting on the second input of the comparison circuit is less than the module code, then the output of the Less comparison circuit II is the pulse that arrives at the second control input of the multiplexer 1 and through the OR 7 element at the resolution input write register 9. As a result, the multiplexer switches its second input to the output and, in this case, the residual code from the output of the adder 15 is written to the register 9, and an output appears at the output of the device calculating output. but completed and in register 9 recorded code residue. If, as a result of the comparison, the pulse is at the output of Equal to the comparison circuit 11, this indicates that the remainder of the number is equal to the module, which means that the number is identically equal to zero. In this case, the pulse from the output Equal to the comparison circuit 11, passed through the element ICI 8, zeroed the register 9 and through the element OR 5 enters the output. The end of calculation 19 of the device. The appearance of a pulse at the output of the More comparison circuit I1 indicates that the formation of the residue is not completed. Impulse from the output More comparison circuit 11 arrives at the control input of comparison circuit 12, allowing comparison of the codes of numbers acting on its inputs. In this case, its first input is affected by the module code, and the second input is affected by the number code from the output of the subtractor 13, which is numerically equal to the difference of the code from the output of the adder 15 and the module code. If, as a result of the operation of the circuit 12, the comparison pulse is equal at its output equal to, then this indicates that the code of the number is identically equal to zero modulo. At the same time, this pulse, the passage through the element OR 8, goes to the zero input of register 9 and to the second input of the element OR 5. As a result, you
5five
2020
2525
д d
30thirty
3535
4040
4545
5050
5five
ходе 19 устронс ва по вл етс импульс Конец вычислени , а на выходе 20 по вл етс код нул . Если импульс по вл етс на выходе Меньше схемы 12 сравнени , то это также свидетельствует о том, что Лормирование остатка закончено. Этот импульс через элемент ИЛИ 6 поступает на первый управл ющий вход мультиплексора I8 и через элемент ИЛИ 7 на вход разрешени записи регистра 9. В результате выход мультиплексора 18 оказываетс скомму- тированным г его третьим входом и в регистр 9 описываетс код числа с выхода вычнтател 13. При этом на выхода 19 по вл етс импульс Конец рычислени , а на выходах 20 - код остатка числа по модупю. Если же импульс по витс па выходе Больше схемы сравнени , то это свидетельствует о том, что Формирование остатка еще не закончено. Этот импульс поступает через элемент ИЛИ 6 на первый управл ющий вход мультиплексора 18, коммутиру его выход с его третьим входом, а также поступает на второй вход элемента ИЛИ 4. При этом работа устройства повтор етс . Однако в регистр 10 записываетс не код числа Ак, а код MHCJV, с выхода вычи- тател 13, воздействующий на информационный вход регистра 10 через мультиплексор 18. Процесс формировани остатка по модулю от числа продолжаетс до тех пор, пока на выходах сумматора I5 или вычитател 13 не по витс число, меньшее или равное модулю, которое и будет численно равно остатку от числа А по модулю Р:.In the course of 19 Ustrons, a pulse appears. End of the calculation, and at exit 20 a code of zero appears. If a pulse appears at the output of Less Comparison 12, then this also indicates that the Lormation of the residue is complete. This pulse through the element OR 6 is fed to the first control input of the multiplexer I8 and through the element OR 7 to the input of the recording resolution of the register 9. As a result, the output of the multiplexer 18 is switched to its third input and to the register 9 the code of the output from the remainder 13 is described. At the same time, at the output 19, an impulse End of scaling appears, and at the outputs 20 - the code of the remainder of the number by mod. If, on the other hand, the impulse in accordance with the output of the More Comparison Scheme, then this indicates that the Formation of the remainder has not yet been completed. This pulse goes through the element OR 6 to the first control input of the multiplexer 18, switches its output to its third input, and also goes to the second input of the element OR 4. At the same time, the operation of the device is repeated. However, the register 10 does not write the code of the number Ak, but the code MHCJV, from the output of the subtractor 13, affecting the information input of the register 10 through the multiplexer 18. The process of forming the modulo of the number continues until the outputs of the adder I5 or the subtractor 13 does not show a number less than or equal to the modulus, which will be numerically equal to the remainder of the number A modulo P :.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU894698127A SU1633495A1 (en) | 1989-05-31 | 1989-05-31 | Device for generating arbitrary modulo residue |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU894698127A SU1633495A1 (en) | 1989-05-31 | 1989-05-31 | Device for generating arbitrary modulo residue |
Publications (1)
Publication Number | Publication Date |
---|---|
SU1633495A1 true SU1633495A1 (en) | 1991-03-07 |
Family
ID=21450800
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
SU894698127A SU1633495A1 (en) | 1989-05-31 | 1989-05-31 | Device for generating arbitrary modulo residue |
Country Status (1)
Country | Link |
---|---|
SU (1) | SU1633495A1 (en) |
Cited By (1)
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 |
-
1989
- 1989-05-31 SU SU894698127A patent/SU1633495A1/en active
Non-Patent Citations (1)
Title |
---|
Авторское свидетельство СССР 1008729, кл. Н 03 М 7/18, 1981. Авторское свидетельство СССР 1396281, кл. Н 03 М 7/18, 1986. * |
Cited By (1)
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 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4535320A (en) | Method and apparatus for digital Huffman decoding | |
SU1633495A1 (en) | Device for generating arbitrary modulo residue | |
SU1396281A1 (en) | Device for forming random-modulo remainder of a number | |
SU1130876A1 (en) | Device for calculating polynomial coefficients | |
RU1837401C (en) | Device for forming arbitrary modulo residue | |
RU2007033C1 (en) | Device for generation of integer remainder of arbitrary modulo | |
SU1357976A1 (en) | Digital filter | |
SU1300492A1 (en) | Function generator | |
SU1686437A1 (en) | Conveying device for calculating sums of products | |
SU1566472A1 (en) | Digital nonrecursive filter | |
RU2007037C1 (en) | Recurrent generator of remainders of arbitrary modulo | |
SU1316074A1 (en) | Digital filtering processor module | |
RU2007036C1 (en) | Device which produces members of multiplicative groups of galois fields gf(p) | |
SU1234847A1 (en) | Device for orthogonal walsh-adamard transforming of digital signals | |
SU1244786A1 (en) | Digital filter | |
SU1335986A1 (en) | Device for computing percentage ratio of two values | |
SU1737442A1 (en) | Arbitrary modulo computing device | |
SU1432783A1 (en) | Device for forming arbitrary-modulo remainder of number | |
SU1462355A1 (en) | Device for adamar conversion of digital sequence | |
SU1312614A1 (en) | Device for local equalizing of histograms | |
RU2007034C1 (en) | Device for generation of indexes of members of multiplicative groups from galois fields gf(p) | |
SU1401480A1 (en) | Multichannel digital interpolation filter | |
SU240341A1 (en) | ||
SU1211811A1 (en) | Storage with self-check | |
SU1647585A1 (en) | Digital two-dimension convolving device |