SU771662A1 - Converter of binary code into binary-decimal code with scaling - Google Patents
Converter of binary code into binary-decimal code with scaling Download PDFInfo
- Publication number
- SU771662A1 SU771662A1 SU782702975A SU2702975A SU771662A1 SU 771662 A1 SU771662 A1 SU 771662A1 SU 782702975 A SU782702975 A SU 782702975A SU 2702975 A SU2702975 A SU 2702975A SU 771662 A1 SU771662 A1 SU 771662A1
- Authority
- SU
- USSR - Soviet Union
- Prior art keywords
- output
- input
- decoder
- inputs
- pseudo
- Prior art date
Links
- 238000006243 chemical reaction Methods 0.000 claims description 8
- 230000010354 integration Effects 0.000 claims description 4
- 230000009466 transformation Effects 0.000 claims description 3
- 241000238876 Acari Species 0.000 claims description 2
- 238000010276 construction Methods 0.000 claims description 2
- 238000010586 diagram Methods 0.000 claims description 2
- 238000005516 engineering process Methods 0.000 claims description 2
- 239000000470 constituent Substances 0.000 claims 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 238000001208 nuclear magnetic resonance pulse sequence Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Landscapes
- Pulse Circuits (AREA)
Description
Изобретение относится к области автоматики и вычислительной техники и может быть использовано при построении устройств для преобразования информации с учетом масштабов.The invention relates to the field of automation and computer technology and can be used in the construction of devices for converting information based on scale.
Известен преобразователь кодов с масштабированием [1], содержащий элемент И, двоич- 5 ный счетчик, выходной счетчик, дешифратор, элемент запрета и формирователь, причем первый вход элемента И подключен к входу тактовых импульсов, а второй вход к выходу дешифратора, выходы двоичного счетчика соединены со входами дешифратора и формирователя, выход элемента И подключен к счетному входу выходного счетчика и через элемент запрета ко входному счетчику.A known code converter with scaling [1], containing an AND element, a binary 5 counter, an output counter, a decoder, a prohibition element and a shaper, the first input of an AND element connected to a clock input, and the second input to a decoder output, binary counter outputs connected to the inputs of the decoder and the driver, the output of the And element is connected to the counting input of the output counter and through the prohibition element to the input counter.
Недостаток такого преобразователя состоит в невысокой точности преобразования и невозможности преобразования кодов с различными масштабами.The disadvantage of such a converter is the low accuracy of the conversion and the inability to convert codes with different scales.
Наиболее близким по технической сущности и схемному решению является преобразователь двоичного кода в двоично-десятичный с масштабированием [2], содержащий регистр входного числа, первый дешифратор, элемент И, выход2 ной счетчик, счетный вход которого соединен с выходом элемента И. Кроме того, известный преобразователь содержит два управляемых делителя частоты и регистры делимого и делителя масштабного коэффициента.The closest in technical essence and circuit design is a binary to binary decimal converter with scaling [2], containing an input number register, a first decoder, an And element, an output counter, the counting input of which is connected to the output of an I. element. In addition, the well-known the converter contains two controlled frequency dividers and the dividend register and the scale factor divider.
Недостаток этого преобразователя состоит в большом объеме аппаратуры и невысоком быстродействии.The disadvantage of this converter is a large amount of equipment and low speed.
Цель изобретения - упрощение преобразователя и повышение быстродействия.The purpose of the invention is to simplify the Converter and improve performance.
Поставленная цель достигается тем, что в преобразователь двоичного кода в двоично-десятичный с масштабированием, содержащий регистр входного числа, первый дешифратор, элемент И , выходной счетчик, счетный вход которого соединен с выходом элемента И, дополнительно введены двб схемы сравнения, генератор псевдослучайных чисел, коммутатор, блок хранения констант, второй дешифратор, элемент задержки, выходной регистр, вход выбора масштаба преобразователя соединен со входами второго дешифратора, выходы которого соединены с информационными входами коммутатора, управляющие входы которого соеди йены с выходами блока хранения констанг, вход генератора псевдослучайных чисел соединен с первыми входами первой и второй схемы сравнения и входом тактовых импульсов преобразователя, первая группа выходов генератора псевдослучайных чисел соединена с первой группой входов первой схемы сравнения и входами первого дешифратора, вторая группа входов генератора псевдослучайных чисел соединена с первой группой входов второй схв мы сравнения, вторые группы входов первой и второй схем сравнения подключены к выходам регистра входного числа и выходом коммутатора соответственно, выходы обеих схем сравнения соединены с соответствующими входами элемента И, выход первого дешифратора 15 соединен с- входом записи выходного регистра и через элемент задержки с входом сброса выходного счетчика, выходы которого подключены ко входам выходного регистра.This goal is achieved by the fact that in the binary-to-decimal binary code converter with scaling, containing the input number register, the first decoder, the And element, the output counter, the counting input of which is connected to the output of the And element, two additional comparison circuits, a pseudo-random number generator are introduced, a switch, a storage unit for constants, a second decoder, a delay element, an output register, an input for selecting the scale of the converter is connected to the inputs of the second decoder, the outputs of which are connected to the information moves of the switch, the control inputs of which are connected to the outputs of the constant storage unit, the input of the pseudo-random number generator is connected to the first inputs of the first and second comparison circuits and the input of the converter clock pulses, the first group of outputs of the pseudo-random number generator is connected to the first group of inputs of the first comparison circuit and the inputs of the first decoder, the second group of inputs of the pseudo random number generator is connected to the first group of inputs of the second comparison circuit, the second group of inputs of the first and second circuits neniya connected to the outputs of the input register and the output switch, respectively, the outputs of the two comparison circuits are connected to respective inputs of AND gates, the output of the first decoder 15 is connected to the c input of the output register and recording through a delay element output to the input of the counter reset, the outputs of which are connected to the inputs of the output register.
На чертеже показана блок-схема предлагаемо- 20 го преобразователя.The drawing shows a block diagram of the proposed 20th converter.
Она содержит регистр 1 входного числа (Рг1), первую схему сравнения 2 (СС1), генератор 3 псевдослучайных чисел (ГПС4), вторую схему сравнения 4 (СС2), коммутатор 5, блок хранения 6 констант, второй дешифратор 7 (Дш2), элемент И 8, первый дешифратор 9 (Дш1), элемент задержки 10, выходной регистр 11, выходной счетчик 12 (Сч),'вход 13 тактовых импульсов, вход 14 выбора масштаба.It contains register 1 of the input number (Pr1), the first comparison scheme 2 (CC1), the pseudo-random number generator 3 (GPS4), the second comparison circuit 4 (CC2), switch 5, the storage unit 6 constants, the second decoder 7 (Dsh2), element And 8, the first decoder 9 (Дш1), delay element 10, output register 11, output counter 12 (MF), input 13 clock pulses, input 14 select scale.
Предлагаемое устройство состоит из регистра 1 и 11 для хранения входных и выходных величин, схем сравнения 2, 4, генератора 3 псевдослучайных чисел (в виде сдвигового регистра с обратной связью по mod2) для пре- 35 образования входного числа и масштабной константы в псевдослучайную последовательность, второго дешифратора 7, коммутатора 5, блока хранения констант 6 для выбора масштаба преобразования, элемента И 8, осуществляемого 40 умножение входного числа на масштабный множитель, выходного счетчика 12, подсчитывающего количество импульсов на выходе элемента И 8 за период генератора 3, дешифратора 9 и элемента 10 задержки , осуществляющих синхрони- 45 зацию работы устройства.The proposed device comprises register 1 and 11 for storage of input and output variables, comparison circuits 2, 4, pseudo-random number generator 3 (in the form of a shift register with feedback mod2) for pre- formation 35 and the input scale number in the pseudorandom sequence is constant, second decoder 7, a switch 5, constants storage unit 6 to select a conversion scale member 8 and implemented by multiplying the input 40 of the scaling factor, the output of the counter 12 counts the number of pulses on vyho e AND gate 8 for the period of the generator 3, the decoder 9 and a delay element 10, carrying 45 zatsiyu synchronized operation.
Преобразователь работает следующим образом.The converter operates as follows.
Двоичное входное число N], хранимое в регистре 1, с помощью генератора 3 псевдослучай- 50 ных чисел преобразуется на выходе схемы сравнения 2 в моменты тактовых импульсов в псевдослучайную последовательность импульсов по правилу:The binary input number N], stored in register 1, is converted by the generator 3 of pseudo-random numbers 50 at the output of the comparison circuit 2 at the moments of clock pulses into a pseudo-random sequence of pulses according to the rule:
Ρ^Νι) = 1 если<Рг!7 > <ГПСЧ>/< ; 55 Ρ ^ Νι) = 1 if <Pr! 7><PRNG> / <; 55
P^Nj) =0если<1’г17 < <ГПСЧ> ;P ^ Nj) = 0 if <1’d17 <<PRNG>;
где Pj(Nj) - вероятность появления единицы на выходе схемы сравнения 2. Под вероятностьюwhere Pj (Nj) is the probability of a unit appearing at the output of the comparison circuit 2. Under the probability
I/ 'Р понимается Р- —, где К - число импульсов, М ~ число тактов;I / 'P is understood to be P-, where K is the number of pulses, M is the number of ticks;
<Рг Р - содержимое регистра 1;<Rg P - the contents of the register 1;
<ГПСЧ>- содержимое генератора 3 псевдослучайных чисел в i-ом такте.<PRNG> - contents of the generator of 3 pseudo-random numbers in the i-th cycle.
По такому же правилу в псевдослучайную последовательность на выходе схемы сравнения 4 преобразуется масштабный множитель К, выбранный с помошью дешифратора 7 и коммутатора 5 из блока хранения констант 6.According to the same rule, a scale factor K, selected with the help of a decoder 7 and switch 5 from the constant storage unit 6, is converted into a pseudo-random sequence at the output of the comparison circuit 4.
Две псевдослучайные последовательности перемножаются на элементе И 8. Интегрирование последовательности импульсов с выхода элемента И 8 за время периода М генератора 3 псевдослучайных чисел осуществляется счетчиком 12. Результат интегрирования переписывается по сигналу от дешифратора 9 в регистр 11, а счетчик 12 обнуляется.Two pseudo-random sequences are multiplied by the element And 8. Integration of the pulse sequence from the output of the element And 8 during the period M of the pseudo-random number generator 3 is carried out by the counter 12. The integration result is copied by the signal from the decoder 9 to register 11, and the counter 12 is reset.
Для повышения точности преобразования разрядность η генератора псевдослучайных чисел выбирается больше разрядности входного числа. В этом случае ошибка преобразования равна ± , где М = 2 м - 1.To increase the accuracy of the conversion, the bit depth η of the pseudo random number generator is selected to be greater than the bit width of the input number. In this case, the conversion error is ±, where M = 2 m - 1.
/V4 4 4/ V4 4 4
Например, пусть η = 11, где М = 2 - 1 = = 2047, и пусть входное 9-ти разрядное число N1 = 287 должно соответствовать значению 3,62 в десятичном (двоично-десятичном) коде. Число Ν) = 287 записывается в старшие разряды регистра 1. Учитывая, что генератор 3 псевдослучайных чисел за период формирует все числа от 1 до 2047 по одному разу, получим, что P(Nj = 287) = = 0,561. Числу 3,62 в трехразрядном десятичном коде соответствует вероятность P(Nj = 3,62)-~|= 0,362. Таким образом, получаем, что для’данного преобразования масштабный множитель должен быть Р(К) = = = 0,645, или же = 10100101001.For example, let η = 11, where M = 2 - 1 = 2047, and let the input 9-bit number N1 = 287 should correspond to the value of 3.62 in the decimal (binary decimal) code. The number Ν) = 287 is written in the upper digits of register 1. Given that the generator of 3 pseudo-random numbers for the period forms all the numbers from 1 to 2047 once, we get that P (Nj = 287) = 0.561. The number 3.62 in a three-digit decimal code corresponds to the probability P (Nj = 3.62) - ~ | = 0.362. Thus, we get that for this transformation, the scale factor should be P (K) = = = 0.645, or = 10100101001.
Расширение функциональных возможностей достигается тем, что благодаря наличию блока хранения констант возможно преобразование двоичных кодов с различными масштабами.The expansion of functionality is achieved by the fact that due to the presence of a constant storage unit, binary codes with different scales can be converted.
Claims (2)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| SU782702975A SU771662A1 (en) | 1978-12-27 | 1978-12-27 | Converter of binary code into binary-decimal code with scaling |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| SU782702975A SU771662A1 (en) | 1978-12-27 | 1978-12-27 | Converter of binary code into binary-decimal code with scaling |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| SU771662A1 true SU771662A1 (en) | 1980-10-15 |
Family
ID=20801157
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| SU782702975A SU771662A1 (en) | 1978-12-27 | 1978-12-27 | Converter of binary code into binary-decimal code with scaling |
Country Status (1)
| Country | Link |
|---|---|
| SU (1) | SU771662A1 (en) |
-
1978
- 1978-12-27 SU SU782702975A patent/SU771662A1/en active
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4115867A (en) | Special-purpose digital computer for computing statistical characteristics of random processes | |
| SU771662A1 (en) | Converter of binary code into binary-decimal code with scaling | |
| RU2022332C1 (en) | Orthogonal digital signal generator | |
| SU1223350A1 (en) | Pseudorandom number generator | |
| SU1619243A2 (en) | Generator of sequence of code weights | |
| SU450153A1 (en) | Code rate converter | |
| SU758163A1 (en) | Device for spectral conversion | |
| SU571915A1 (en) | Pulse frequency divider with adiustable division factor | |
| SU1392620A1 (en) | Device for generating m-coded pulse sequence | |
| SU1091145A1 (en) | Walsh function generator | |
| SU1529218A1 (en) | Pseudorandom number generator | |
| SU742910A1 (en) | Pseudorandom binary train generator | |
| SU1010717A1 (en) | Pseudorandom train generator | |
| SU690475A1 (en) | Converter of binary code into binary-decimal code of degrees and minutes | |
| SU690493A1 (en) | Time-to-probability converter | |
| SU807320A1 (en) | Probability correlometer | |
| SU758145A1 (en) | Square rooting device | |
| SU557360A1 (en) | Device for converting binary code | |
| SU568158A1 (en) | Pulse train shaper | |
| SU1170453A1 (en) | Test sequence generator | |
| SU840921A1 (en) | Multichannel device for solving integral equations | |
| SU892441A1 (en) | Digital frequency divider with fractional countdown ratio | |
| SU813411A1 (en) | Combinatorial device | |
| SU864291A1 (en) | Device for computing walsh spectrum of sine and cosie functions | |
| SU495658A1 (en) | Walsh function generator |