SU1732472A1 - Converter of binary code to modulo k code - Google Patents
Converter of binary code to modulo k code Download PDFInfo
- Publication number
- SU1732472A1 SU1732472A1 SU894757422A SU4757422A SU1732472A1 SU 1732472 A1 SU1732472 A1 SU 1732472A1 SU 894757422 A SU894757422 A SU 894757422A SU 4757422 A SU4757422 A SU 4757422A SU 1732472 A1 SU1732472 A1 SU 1732472A1
- Authority
- SU
- USSR - Soviet Union
- Prior art keywords
- bits
- inputs
- adder
- outputs
- code
- Prior art date
Links
Landscapes
- Error Detection And Correction (AREA)
Abstract
Изобретение относитс к области автоматики и вычислительной техники и может быть использовано дл построени систем передачи и переработки дискретной информации . Целью изобретени вл етс сокращениеаппаратурныхзатрат . Преобразователь двоичного кода в код по модулю К содержит блок 1 весового суммировани , пороговый блок 3, выходной сумматор 4 и блок 2 свертки числа разр да. При подаче входного кода на выходах блока 1 весового суммировани формируетс t 2г + 1-разр дный код, остаток по модулю К которого равен остатку по модулю К входного кода. Код с выходов блока 1 поступает на входы блока 2 свертки числа разр дов, который формирует на своих выходах р log2 (К + 1) + 1-разр дный код, который поступает на входы выходного сумматора 4 и входы порогового блока 3, формирующего на своих выходах код вычета такой, что его сумми- рование с кодом на входе первого слагаемого выходного сумматора 4 дает на его выходах код остатка по модулю К. 4 ил. (Л С 1 со ю i ю 01121The invention relates to the field of automation and computer technology and can be used to build systems for the transmission and processing of discrete information. The aim of the invention is to reduce hardware costs. The binary code to modulo K converter contains a weight summation unit 1, a threshold unit 3, an output adder 4, and a convolution unit 2 of the discharge number. When the input code is fed at the outputs of the weight summation unit 1, a t 2g + 1-bit code is formed, the modulo K remainder is equal to the modulus K of the input code. The code from the outputs of block 1 is fed to the inputs of block 2 convolution of the number of bits that forms at its outputs log2 (K + 1) + 1-bit code, which is fed to the inputs of output adder 4 and the inputs of threshold block 3, which forms outputs, the deduction code is such that its summation with the code at the input of the first term of the output adder 4 gives, at its outputs, a residue code modulo K. 4 Il. (L С 1 сою и ю 01121
Description
Изобретение относитс к автоматике и вычислительной технике и может быть использовано дл свертки чисел по модулю.The invention relates to automation and computer technology and can be used to convolve numbers by module.
Цель изобретени - сокращение аппаратурных затрат.The purpose of the invention is to reduce hardware costs.
На фиг. 1 показана схема преобразовател двоичного 31-разр дного кода в код по модулю К 11; на фиг. 2 - схема блока свертки числа разр дов дл случа К 11; на фиг. 3 - схема преобразовател двоичного 37-разр дного кода в код по модулю К 13; на фиг. 4 - схема блока свертывани числа разр дов дл случа К 13.FIG. 1 shows a 31-bit binary code converter circuit modulo K 11 code; in fig. 2 is a block diagram of a convolution number of bits for the case of K 11; in fig. 3 is a diagram of a 37-bit binary code converter into a modulo K 13 code; in fig. 4 is a block diagram of a convolution of the number of bits for case K 13.
Преобразователь двоичного кода в код по модулю К содержит блок 1 весового суммировани , блок 2 свертки числа разр дов, пороговый блок 3, выходной сумматор 4.The binary code to modulo K code converter contains a weight summation block 1, a convolution block 2 of the number of bits, a threshold block 3, an output adder 4.
Блок 1 весового суммировани соединен входами с входами устройства, а выходами - с входами блока 2 свертки числа разр дов, выходы которого соединены с входами порогового блока 3, соединенного выходами с соответствующими входами второго слагаемого выходного сумматора 4, входы первого слагаемого которого соединены с соответствующими выходами блока 2 свертки числа разр дов, а выходы - с выходами преобразовател .The weight summing unit 1 is connected by inputs to the device inputs, and the outputs are connected to the inputs of the convolution unit 2 of the number of bits whose outputs are connected to the inputs of the threshold unit 3 connected by the outputs to the corresponding inputs of the second term of the output adder 4, the inputs of the first term of which are connected to the corresponding outputs block 2 convolution of the number of bits, and outputs - with the outputs of the converter.
Выполнение блока 1 весового суммировани зависит от числа входов и выполн емой задачи: свертка по модулю К двоичного позиционного кода или подсчет по модулю К числа единиц входного кода. В общем случае он может быть выполнен в виде набора полных сумматоров, объединенных в уровни, причем входы каждого из сумматоров первого уровн соединены с входами преобразовател с весами со, дл которых ( ft)) mod К одинаковы, входы каждого из сумматоров i-ro уровн соединены с выходами сумматоров предыдущих уровней с весами со такими, что (со) mod К одинаковы, либо с выходами сумматоров предыдущих уровней и входами преобразовател с весами , удовлетвор ющими указанному условию . В схемах на фиг. 1 и 3 блоки 1 весового суммировани 1 выполнены в виде набора полных сумматоров одного у ровн , поскольку число входов с одинаковыми значени ми (а) ) mod К равно трем.The execution of weight weighting block 1 depends on the number of inputs and the task to be performed: convolution modulo K of a binary position code or count modulo K of the number of units of the input code. In general, it can be made as a set of full adders combined into levels, with the inputs of each of the first level adders connected to the converter inputs with weights ω for which (ft) mod K are the same, the inputs of each i-ro level adders connected to the outputs of adders of previous levels with weights with such that (co) mod K are the same, or with the outputs of adders of previous levels and inputs of the converter with weights that satisfy the specified condition. In the diagrams in FIG. 1 and 3 blocks 1 of weight summation 1 are made in the form of a set of complete adders of one level, because the number of inputs with the same values (a)) mod K is equal to three.
Блок 1 весового суммировани преобразует входной код в t 2r + 1-разр дный выходной код, где г - мощность множества значений остатков весов разр дов входного кода по модулю К в случае формировани остатка входного кода по модулю К, и г - мощность множества значений остатков весов разр дов натурального двоичного кода по модулю К в случае формировани остаткаWeight weighting unit 1 converts the input code into a t 2r + 1-bit output code, where g is the power of the set of values of the residual weights of the bits of the input code modulo K in the case of forming the remainder of the input code modulo K, and g is the power of the set of values of the residuals the weights of bits of the natural binary code modulo K in the case of the formation of a residue
количества единиц входного кода по модулю К.the number of units of the input code modulo K.
Блок 2 свертки числа разр дов выполнен в виде группы последовательно соединенных сумматоров (фиг. 2 и 4, дл случа К 11 и 13 соответственно, где число сумматоров равно четырем). Входы первого сумматора вл ютс входами блока, его выходы от первого до (г/2)-го соединены с входамиThe convolution unit 2 of the number of bits is made as a group of series-connected adders (Fig. 2 and 4, for the cases K 11 and 13, respectively, where the number of adders is four). The inputs of the first adder are the inputs of the block, its outputs from the first to (g / 2) -th are connected to the inputs
второго сумматора (первой группой входов разр дов 1-г/2 соответственно), а выходы от (г/2 + 1)-го до г-го - с группой инверсных входов второго сумматора (от первого до i-ro соответственно). Выход переноса первогоthe second adder (the first group of inputs of bits 1-g / 2, respectively), and the outputs from (g / 2 + 1) -th to g-th - with a group of inverse inputs of the second adder (from the first to i-ro, respectively). First transfer output
сумматора, выходы второго сумматора и его инверсный выход переноса, а также выходы любого i-ro сумматора блока соединены с входами последующих сумматоров с весами , сумма которых равна остатку по модулюthe adder, the outputs of the second adder and its inverse transfer output, as well as the outputs of any i-ro block adder are connected to the inputs of subsequent adders with weights, the sum of which is equal to the remainder modulo
К веса данного выхода сумматора.To the weight of the output of the adder.
Блок 2 дл случа фиг. 2 содержит 4 последовательно соединенных сумматоров двоичных чисел. В соответствии с описанным выход суммы Ss второго сумматора соединен с входами первого и третьего разр дов четвертого сумматора, поскольку его вес со 16, а (ад) mod K 4 2° + 22.Unit 2 for the case of FIG. 2 contains 4 serially connected adders of binary numbers. In accordance with the described output, the sum Ss output of the second adder is connected to the inputs of the first and third bits of the fourth adder, since its weight is from 16, and (hell) mod K 4 2 ° + 22.
Блок 2 преобразует входной t 2г + 1 разр дный код в выходной I loga (К + 1) + 1-разр дный.Block 2 converts the input t 2g + 1 bit code into the output I loga (К + 1) + 1-bit.
Пороговый блок 3 содержит многопороговый элемент 5 с весами входов 2 (i О,The threshold unit 3 contains a multithreshold element 5 with weights of inputs 2 (i О,
11 - 1) и порогами выходов А К, 2К,..., К11 - 1) and exit thresholds А К, 2К, ..., К
и блок б формировани вычетов, Многопороговый элемент 5 может быть выполнен в виде а. пороговых элементов, каждый из которых содержит последовательно соединенные элементы И, ИЛИ и выполн етс как в известном преобразователе. Блок 6 формировани вычетов в общем случае содержит ( а - 1) элементов запрета, где а -Јand a residue shaping unit B, Multithreshold element 5 may be made as a. threshold elements, each of which contains series-connected elements AND, OR, and is performed as in a known converter. The unit 6 for the formation of deductions in the general case contains (a - 1) prohibition elements, where a is -
кto
a m - максимальное значение кода на входах многопорогового элемента 7, выходы которых соединены с входами I элементов ИЛИ. j-й элемент запрета соединен входами: пр мым - с выходом многопороговогоa m - the maximum code value at the inputs of the multi-threshold element 7, the outputs of which are connected to the inputs of the I elements OR. The j-th element of the ban is connected by inputs: direct - to the output of the multithreshold
элемента с порогом j-К, а инверсным - с выходом многопорогового элемента с порогом (j + 1) К. р -и элемент ИЛИ соединен выходом с входом р -го разр да выходного сумматора 4, а входами - с выходами элементов запрета с номерами j, дл которых в двоичном представлении числа Bj 2 - jK вelement with a threshold j-K, and inverse - with the output of a multithreshold element with a threshold (j + 1) K. p is the element OR connected to the output of the p-th bit of the output adder 4, and the inputs to the outputs of the prohibition elements with numbers j for which in binary representation of the number Bj 2 - jK in
р- м разр де имеетс единица (,rm discharge there is one (,
0). Дл случа , представленного на фиг. 1 и 3, максимальное значение j 2. При этом блок 6 формировани вычетов содержит 0). For the case shown in FIG. 1 and 3, the maximum value of j 2. In this case, the unit 6 for the formation of residues contains
один элемент запрета, пр мой вход которого соединен с выходом многопорогового логического элемента 7 с порогом А К, а инверсный - с выходом многопорогового элемента с порогом А 2К.one prohibition element, the direct input of which is connected to the output of the multithreshold logic element 7 with the threshold А К, and the inverse one with the output of the multithreshold element with the threshold А 2К.
Поскольку дл случа К 11 (фиг, 1) Вт 5, а 62 10, выход элемента запрета соединен с входами первого и третьего разр дов сумматора 4, а выход многопорогового элемента с порогом А 2К - с входами второго и четвертого разр дов сумматора 4, втора группа входов которого соединена с выходом суммы последнего сумматора блока 2. Дл случа К 13 (фиг. 3) Вт 3, а Ва 6, при этом выход многопорогового элемента 7 с порогом А К соединен с входом второго разр да, выход элемента зап рета - с входом первого разр да, а выход многопорогового элемента с порогом А 2К - с входом третьего разр да сумматора 5Since for the case of K 11 (FIG. 1) W 5 and 62 10, the output of the inhibit element is connected to the inputs of the first and third bits of the adder 4, and the output of the multi-threshold element with the threshold А 2К - to the inputs of the second and fourth bits of the adder 4, the second group of inputs of which is connected to the output of the sum of the last adder of block 2. For case K 13 (Fig. 3) W 3 and Ba 6, while the output of the multithreshold element 7 with the threshold А К is connected to the second-bit input, the output of the projection element - with the input of the first digit, and the output of the multithreshold element with the threshold А 2К - with the input third bit yes adder 5
Функционирование преобразовател происходит следующим образомThe operation of the inverter is as follows
При подаче на входы преобразовател входного кода на выходах блока 1 весового суммировани формируетс t 2г + 1-разр дный код, остаток по модулю К которого равен остатку по модулю К входного кода (остатку количества единиц входного кода по модулю К), код с выходов блока 1 поступает на входы блока 2 свертки числа разр дов , который формирует на своих выходах I log2(K + 1) + 1-разр дный код, остаток по модулю К которого равен остатку по модулю К кода на входах блока 2 Код с выходов блока 2 свертки числа разр дов поступает на входы порогового блока 3, а также на входы выходного сумматора 4 (кроме старшего разр да), на вторую группу входов которого подаетс код с выходов порогового блока 3 такой, что сумма кодов на выходах суммы сумматора 4 равна остатку входного кода (числа единиц входного кода) по модулю КWhen the input code converter is fed to the inputs, the output of the weight summing block 1 produces a t 2g + 1-bit code, the modulo K remainder is equal to the modulo K of the input code (the remainder of the input code modulo K), the code from the output of the block 1 enters the inputs of block 2 convolution of the number of bits that forms at its outputs I log2 (K + 1) + 1-bit code, the remainder modulo K is equal to the remainder modulo K code at the inputs of block 2 Code from the outputs of block 2 convolutions of the number of bits are fed to the inputs of the threshold block 3, and that as the inputs the output of the adder 4 (except the MSB), a second group of inputs of which is supplied with a threshold code output unit 3 such that the sum of the codes on the outputs of the adder 4 is equal to the sum of the residue of the input code (code number input unit) modulo K
Рассмотрим функционирование предлагаемого преобразовател дл случа , изображенного на фиг 3 и 4Consider the operation of the proposed converter for the case depicted in FIGS. 3 and 4.
Пусть единичные сигналы поданы на входы Xi, Хз, Хб, Xg, Xi2. что соответствует коду числа Х 2° + 22 +25 +28 +211 1 + 4 + 32 + 256 + 2048 2341, остаток по модулю К 13 которого равен 1. При этом единичные сигналы будут на выходах суммы первого, третьего, шестого, дев того и двенадцатого сумматоров блока 1 весового суммировани , которые поступают на входы первого, третьего, шестого, дев того и двенадцатого разр дов первого сумматора блока 2 свертки числа разр дов (фиг. 4), что вызывает единичные сигналы на его выходах суммы Si, 83 Se, Sg, 812, которые поступают наLet single signals are fed to the inputs Xi, Xs, Xb, Xg, Xi2. which corresponds to the code of the number X 2 ° + 22 +25 +28 +211 1 + 4 + 32 + 256 + 2048 2341, the modulo K 13 remainder is 1. At the same time, the single signals will be at the outputs of the sum of the first, third, sixth, virgins of the one and twelfth adders of block 1 weight summing, which are fed to the inputs of the first, third, sixth, ninth and twelfth bits of the first adder of block 2 of the convolution of the number of bits (Fig. 4), which causes single signals at its outputs of the sum Si, 83 Se, Sg, 812, which arrive on
входы второго сумматора, вызыва единичный сигнал на выходе суммы Si и нулевые сигналы на остальных выходах, при этом единичные сигналы будут на выходе суммыthe inputs of the second adder, causing a single signal at the output of the sum of Si and zero signals at the remaining outputs, while the single signals will be at the output of the sum
Si третьего и четвертого сумматоров блока 2 и нулевые сигналы - на остальных его выходах. Единичный сигнал с выхода суммы Si четвертого сумматора блока 2 поступает на вход первого разр да выходного сумма0 тора 4 и вход порогового блока 3, однако на его выходах будут нулевые сигналы. При этом на выходах сумматора 4 будет код числа 1, что соответствует остатку входного кода по модулю К.Si of the third and fourth adders of block 2 and zero signals are at its other outputs. A single signal from the output of the sum Si of the fourth adder of block 2 is fed to the input of the first bit of the output sum 0 of torus 4 and the input of the threshold block 3, but its outputs will have zero signals. In this case, the outputs of the adder 4 will be the code of the number 1, which corresponds to the remainder of the input code modulo K.
5 Таким образом предложенный преобразователь имеет меньшие аппаратурные затраты5 Thus, the proposed converter has lower hardware costs.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU894757422A SU1732472A1 (en) | 1989-11-09 | 1989-11-09 | Converter of binary code to modulo k code |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU894757422A SU1732472A1 (en) | 1989-11-09 | 1989-11-09 | Converter of binary code to modulo k code |
Publications (1)
Publication Number | Publication Date |
---|---|
SU1732472A1 true SU1732472A1 (en) | 1992-05-07 |
Family
ID=21478717
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
SU894757422A SU1732472A1 (en) | 1989-11-09 | 1989-11-09 | Converter of binary code to modulo k code |
Country Status (1)
Country | Link |
---|---|
SU (1) | SU1732472A1 (en) |
-
1989
- 1989-11-09 SU SU894757422A patent/SU1732472A1/en active
Non-Patent Citations (1)
Title |
---|
Авторское свидетельство СССР № 1476614, кл. G 06 F 11/00, 1986. Авторское свидетельство СССР № 1401610, кл. Н 03 М 7/18, 1986. Авторское свидетельство СССР № 1425845, кл. Н 03 М 7/12, 1986. * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP0741354A2 (en) | Multi-operand adder using parallel counters | |
US4683548A (en) | Binary MOS ripple-carry parallel adder/subtracter and adder/subtracter stage suitable therefor | |
TW200418264A (en) | Reconfigurable fir filter | |
SU1732472A1 (en) | Converter of binary code to modulo k code | |
US4187549A (en) | Double precision residue combiners/coders | |
US4623872A (en) | Circuit for CSD-coding of a binary number represented in two's complement | |
EP0467524A2 (en) | Lookahead adder | |
EP0661820B1 (en) | Parallel-to-serial data conversion circuit | |
US4954978A (en) | Priority order decomposing apparatus | |
US5212481A (en) | Circuit for code converting PCM codes | |
SU1691834A1 (en) | Modulo-k multiplier | |
SU1097995A1 (en) | Transformer from binary code to binary-coded decimal code | |
SU1325484A1 (en) | Device for q = 2m-1 modulus convolution | |
US4811271A (en) | Expandable bi-phase convolving element | |
SU1262503A1 (en) | Device for rounding numbers | |
RU2763988C1 (en) | Accumulating adder-subtractor by an arbitrary natural number modulo | |
SU1539768A1 (en) | Adder of redundant minimum computation system | |
SU981993A1 (en) | Fibonacci code adder | |
JP3255251B2 (en) | Multiplier with array-type carry save adder | |
SU1501278A1 (en) | Reversible binary-decimal to binary code converter | |
SU1649535A1 (en) | Fibonacci decimal code adder | |
SU822174A1 (en) | Converter of direct binary-decimal code into complementary binary-decimal one | |
RU2149443C1 (en) | Rapid carry circuit | |
RU2023288C1 (en) | Combination adder of structural codes | |
SU771659A1 (en) | Binary-to-binary-decimal code converter |