SU1487153A1 - Pseudorandom number generator - Google Patents
Pseudorandom number generator Download PDFInfo
- Publication number
- SU1487153A1 SU1487153A1 SU874260220A SU4260220A SU1487153A1 SU 1487153 A1 SU1487153 A1 SU 1487153A1 SU 874260220 A SU874260220 A SU 874260220A SU 4260220 A SU4260220 A SU 4260220A SU 1487153 A1 SU1487153 A1 SU 1487153A1
- Authority
- SU
- USSR - Soviet Union
- Prior art keywords
- input
- output
- inputs
- outputs
- register
- Prior art date
Links
Landscapes
- Error Detection And Correction (AREA)
Description
Изобретение относится к импульсной технике. Цель изобретения — расширение функциональных возможностей за счет генерации «-разрядных некоррелированных псевдослучайных чисел — достигается введением регистра 9, мультиплексора 11 и счетчика 13 импульсов. Генератор также содержит генератор 1 тактовых импульсов, Г-триггер 2, элемент И 3, коммутатор 4, счетчик 5 импульсов, сумматор 6, элемент ИЛИ 7, блок 8 памяти, сумматор 10 по модулю два, £)-триггер 12. 1 ил.The invention relates to a pulse technique. The purpose of the invention is the extension of functionality due to the generation of "-bit non-correlated pseudo-random numbers - achieved by the introduction of register 9, multiplexer 11 and counter 13 pulses. The generator also contains a generator of 1 clock pulses, G-trigger 2, element I 3, switch 4, counter 5 pulses, adder 6, element OR 7, block 8 of memory, adder 10 modulo two, £) -trigger 12. 1 ill.
33
14871531487153
4four
Изобретение относится к импульсной технике и может, использоваться в вычислительной и информационно-измерительной технике.The invention relates to a pulse technique and can be used in computing and information and measuring equipment.
Цель изоретения — расширение функциональных возможностей генератора псевдослучайных чисел за счет генерации «-разрядных некоррелированных псевдослучайных чисел.The goal of the theory is to expand the functionality of a pseudo-random number generator by generating “-bit non-correlated pseudo-random numbers.
На чертеже представлена структурная схема генератора псевдослучайных чисел.The drawing shows a structural diagram of a pseudo-random number generator.
Генератор псевдослучайных чисел содержит генератор 1 тактовых импульсов, выход которого соединен с входом Τ'-триггера 2 и с первым входом элемента И 3, выход которого соединен с входом коммутатора 4, первый счетчик 5 импульсов, выходы которого соединены с первой группой входов сумматора 6, элемент ИЛИ 7, выход которого соединен с входом управления блока 8 памяти, выходы которого соединены с соответствующими входами регистра 9, соответствующий выход которого соединен со вторым входом сумматора 10 по модулю два, мультиплексор 11, выход которого соединен с информационным входом £>-триггера 12, вход установки которого соединен с выходом второго счетчика 13 импульсов, вход синхронизации которого соединен с выходом первого счетчика 5 импульсов, вход синхронизации которого соединен с входом синхронизации регистра 9, со вторым входом элемента ИЛИ 7 и с первым выходом Г-триггера 2, второй выход которого соединен со вторым входом элемента И 3, выход которого соединен с первым входом элемента ИЛИ 7 и с входом синхронизации/ ΰ-триггера 12, выход которого соединен е первым входом сумматора 10 по модулю два, выход которого соединен с первым информационным входом блока 8 памяти, выходы которого соединены с соответствующими информационными входами мультиплексора 11, входы управления которого соединены с соответствующими выходами второй группы выходов коммутатора 4, первая группа выходов которого соединена со второй группой входов сумматора б, выходы которого соединены с соответствующими адресными входами блока 8 памяти. Вход установки второго счетчика 13 импульсов соединен с соответствующим выходом регистра 9, Ζ-й выход которого соединен с (г + 1)-м входом (/==.1, 2, ..., п—1) блока 8 памяти. Группа 14 входов коммутатора 4 является входами управления генератора псевдослучайных чисел.The pseudo-random number generator contains a clock pulse generator 1, the output of which is connected to the input of the Τ'-flip-flop 2 and the first input of the element 3, the output of which is connected to the input of the switch 4, the first pulse counter 5, the outputs of which are connected to the first group of inputs of the adder 6, the element OR 7, the output of which is connected to the control input of the memory block 8, the outputs of which are connected to the corresponding inputs of the register 9, the corresponding output of which is connected to the second input of the adder 10 modulo two, multiplexer 11, the output of which dinene with information input £> -trigger 12, the installation of which is connected to the output of the second counter 13 pulses, the synchronization input of which is connected to the output of the first counter of 5 pulses, the synchronization input of which is connected to the synchronization input of the register 9, with the second input of the element OR 7 and c the first output of the G-flip-flop 2, the second output of which is connected to the second input of the element I 3, the output of which is connected to the first input of the element OR 7 and to the synchronization input of the ΰ-flip-flop 12, the output of which is connected by the first input of the adder 10 modulo two, the output of which is connected to the first information input of the memory block 8, the outputs of which are connected to the corresponding information inputs of the multiplexer 11, the control inputs of which are connected to the corresponding outputs of the second group of outputs of the switch 4, the first group of outputs of which are connected to the second group of inputs of the adder b, outputs which is connected to the corresponding address inputs of the memory block 8. The installation input of the second counter 13 pulses is connected to the corresponding output of register 9, the Ζth output of which is connected to (r + 1) -th input (/==.1, 2, ..., n — 1) of memory block 8. The group 14 of the inputs of the switch 4 are the control inputs of the pseudo-random number generator.
Устройство работает следующим образом.The device works as follows.
Сигнал с выхода генератора 1 тактовых импульсов поступает на вход Г-триггера 2 и на первый вход элемента И 3. На первом и втором выходах Г-триггера 2 формируются сигналы, смещенные во времени. Положительный импульс на выходе элемента И 3The signal from the output of the generator 1 clock pulses fed to the input of the G-trigger 2 and the first input element And 3. On the first and second outputs of the G-trigger 2, signals are generated that are offset in time. Positive pulse at the output of the element And 3
формируется в момент воздействия тактового импульса при наличии положительного сигнала на втором выходе 7'-триггера 2.formed at the time of the impact of the clock pulse in the presence of a positive signal at the second output of the 7'-trigger 2.
Импульс, поступающий с первого выхода Г-триггера 2 на вход синхронизации первого счетчика 5 импульсов, увеличивает на единицу код М на его выходах, соединенных с первой группой входов (первого слагаемого) сумматора 6. При воздействии на вход коммутатора 4 сигнала управления с выхода элемента Й 3 на входы второй группы входов (второго слагаемого) сумматора 6 и входы управления мультиплексора 11 подаются нулевые кодовые комбинации. В этом случае на адресных входах блока 8 памяти формируется код М, определяющий адрес опрашиваемой ячейки памяти. Режим работы блока 8 памяти, число адресуемых «-разрядных ячеек памяти которого равно количеству /е=2"1 состояний первого счетчика 5 импульсов, задается сигналом на его входе управления. При единичном сигнале обеспечивается считывание двоичной кодовой комбинации, содержащейся в ячейке с адресом Λ4, из входы регистра 9, в который эта комбинация переписывается импульсом с первого выхода Г-триггера 2. Следовательно, в первом такте работы на выходах устройства формируется двоичный кодовый сигнал, равный содержимому опрашиваемой ячейки блока 8 памяти. Сигнал с выхода соответствующего, например, последнего разряда регистра 9 поступает на второй вход сумматора 10 по модулю два и на вход установки второго счетчика 13 импульсов. В случае единичного сигнала содержимое второго счетчика 13 импульсов обращается в нуль.The pulse coming from the first output of the G-flip-flop 2 to the synchronization input of the first counter of 5 pulses increases by one the code M at its outputs connected to the first group of inputs (first term) of the adder 6. When the control input 4 is affected by the control signal from the element output TH 3 to the inputs of the second group of inputs (second term) of the adder 6 and the control inputs of the multiplexer 11 serves zero code combinations. In this case, the code M is formed at the address inputs of the memory block 8, which determines the address of the polled memory cell. The mode of operation of memory block 8, the number of addressable "-bit memory cells of which is equal to the number / e = 2" 1 of the state of the first counter 5 pulses, is set by a signal at its control input. With a single signal, the binary code combination contained in the cell with the address Λ4 is read , from the inputs of register 9, in which this combination is rewritten by a pulse from the first output of the G-trigger 2. Therefore, in the first cycle of operation, a binary code signal is generated at the outputs of the device, equal to the content of the polled cell of the 8th block memory. The signal output from the corresponding, e.g., the last digit of register 9 is supplied to the second input of the adder 10 and modulo two to the input of setting the second counter 13 pulses. In the case of a single signal the contents of the second counter 13 becomes zero pulses.
С приходом следующего тактового импульса с выхода генератора 1 тактовых импульсов Г-триггер 2 переходит в нулевое состояние и коммутатор 4 подключает к второй группе входов сумматора б и входам управления мультиплексора 11 двоичные кодовые комбинации с группы 14 входов управления устройства. На адресных входах блока 8 памяти формируется новый двоичный кодовый сигнал, определяющий адрес новой опрашиваемой «-разрядной ячейки памяти, двоичная комбинация с выходов которой поразрядно поступает на информационные входы мультиплексора 11. На выход мультиплексора 11 коммутируется сигнал с выхода разряда блока 8 памяти под номером, определяемым значением двоичной кодовой комбинации на управляющих входах со второй группы выходов коммутатора 4. Импульсом с выхода элемента И 3 этот сигнал записывается П-триггером 12 и поступает на первый вход сумматора 10 по модулю два. По окончании импульса с выхода элемента И 3 коммутатор 4 вновь подключает ко второй группе входов (второго слагаемого) сумматора 6 нулевой кодовый сигнал, чем обеспечивается формирование на адрес1487153With the arrival of the next clock pulse from the output of the clock generator 1, the G-trigger 2 goes to the zero state and the switch 4 connects to the second group of inputs of the adder b and the control inputs of the multiplexer 11 binary code combinations from the group 14 of the control inputs of the device. At the address inputs of memory 8, a new binary code signal is generated, which determines the address of the new polled “-bit memory cell, the binary combination from the outputs of which is bitwise fed to the information inputs of the multiplexer 11. The output from the discharge of memory 8 under the number, determined by the value of the binary code combination on the control inputs from the second group of outputs of the switch 4. A pulse from the output of the element And 3 this signal is recorded P-trigger 12 and enters the first in stroke of modulator 10 modulo two. At the end of the pulse from the output of the element And 3 switch 4 again connects to the second group of inputs (second term) of the adder 6 a zero code signal, which ensures the formation of address 1487153
ных входах блока 8 памяти двоичной кодовой комбинации М, равной содержимому первого счетчика 5 импульсов. Одновременно нулевой сигнал с выхода элемента ИЛИ 7 на входе управления блока 8 памяти переводит его в режим записи информации с его информационных входов. К этому моменту на первом информационном входе блока 8 памяти присутствует сигнал, равный результату суммирования по модулю два сигнала с выхода соответствующего, например, последнего разряда регистра 9 и сигнала с выхода .О-триггера 12. При этом п—1 старших разрядах информационных входов блока 8 памяти формируется число, являющееся сдвигом предыдущего содержимого ячейки с адресом М на один разряд вправо. Нулевым сигналом с выхода элемента ИЛИ 7 это число записывается в ячейку с адресом М, на чем цикл работы устройства завершается.the inputs of block 8 of the memory of the binary code combination M equal to the contents of the first counter of 5 pulses. At the same time, the zero signal from the output of the element OR 7 at the control input of the memory block 8 transfers it to the information recording mode from its information inputs. At this point, the first information input of memory block 8 contains a signal equal to the result of modulo-summing two signals from the output of the corresponding, for example, the last digit of register 9 and the signal from the output of the O-flip-flop 12. At the same time, n — 1 most significant bits of the information inputs of the block 8 memory number is formed, which is a shift to the previous contents of the cell with the address M by one digit to the right. The zero signal from the output of the element OR 7 is written to the cell with the address M, on which the device operation cycle ends.
Аналогичным образом первый счетчик 5 импульсов проходит все 2т состояний, обеспечивая обращение последовательно ко всем «-разрядным ячейкам блока 8 памяти. По истечении 2"' тактов работы содержимое первого счетчика 5 импульсов вновь примет значение М и на выходах устройства будет сформирована двоичная кодовая комбинация, ранее записанная в ячейку памяти с данным адресом в результате суммирования по модулю два и сдвига на разряд вправо. Еще через 2т тактов работы устройства число на его выходах окажется сдвинутым относительно начального на два разряда вправо и так далее.Similarly, the first counter of 5 pulses passes through all 2 tons of states, ensuring that all “-bit cells of memory block 8 are addressed sequentially. After 2 "'cycles of operation, the contents of the first counter of 5 pulses will again take the value M and a binary code combination will be formed at the outputs of the device, previously recorded in the memory cell with the given address as a result of modulo two and shift by digit to the right. After another 2 t cycles of the device number at its outputs will be shifted relative to the initial two digits to the right and so on.
В результате работа блока 8 памяти совместно с регистром 9 аналогична функционированию «^“-разрядного регистра сдвига охваченного обратной связью по модулю два При условии 6=2“>« числа, формируемые в разрядах регистра 9 и поступающие на выход устройства, являются псевдослучайными и некоррелированными.As a result, the operation of memory block 8 in conjunction with register 9 is similar to the functioning of the “^“ - bit shift register covered modulo two feedback. Under the condition 6 = 2 ">" the numbers generated in the bits of register 9 and output to the output device are pseudo-random and uncorrelated .
Второй счетчик 13 импульсов, коэффициент пересчета которого выбирается равным «, обеспечивает разблокировку запретного состояния устройства, когда (при включении питания или под воздействием импульсных помех) содержимое всех ячеек памяти блока 8 памяти и регистра 9 оказывается равным нулю. В этом случае, в течение п-2т тактов наличия нулевого сигнала на первом выходе 7-триггера 2, второй счетчик 13 импульсов не будет сброшен, и на его выходе сформируется импульс, устанавливающий О-триггер 12 в единичное состояние, что обеспечит восстановление нормальногоThe second counter of 13 pulses, the conversion factor of which is chosen equal to “, provides for unblocking the forbidden state of the device when (at power on or under the influence of impulse noise) the contents of all the memory cells of memory block 8 and register 9 are zero. In this case, during p-2 t clocks of the presence of a zero signal at the first output of the 7-flip-flop 2, the second pulse counter 13 will not be reset, and at its output a pulse will be generated that sets the O-flip-flop 12 to one state, which will ensure the restoration of normal
5 режима работы устройства.5 modes of operation of the device.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU874260220A SU1487153A1 (en) | 1987-06-11 | 1987-06-11 | Pseudorandom number generator |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU874260220A SU1487153A1 (en) | 1987-06-11 | 1987-06-11 | Pseudorandom number generator |
Publications (1)
Publication Number | Publication Date |
---|---|
SU1487153A1 true SU1487153A1 (en) | 1989-06-15 |
Family
ID=21310149
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
SU874260220A SU1487153A1 (en) | 1987-06-11 | 1987-06-11 | Pseudorandom number generator |
Country Status (1)
Country | Link |
---|---|
SU (1) | SU1487153A1 (en) |
-
1987
- 1987-06-11 SU SU874260220A patent/SU1487153A1/en active
Similar Documents
Publication | Publication Date | Title |
---|---|---|
SU1487153A1 (en) | Pseudorandom number generator | |
SU1091227A1 (en) | Device for checking primary storage | |
SU1697071A1 (en) | Orthogonal signal generator | |
SU1640827A1 (en) | Sequential code converter | |
SU1223350A1 (en) | Pseudorandom number generator | |
RU1820393C (en) | Device for forming sequence of discrete-frequency signals | |
SU1539774A1 (en) | Pseudorandom series generator | |
SU1196838A1 (en) | Device for generating code sequences | |
SU1432526A1 (en) | Device for sequential transmission of digital information | |
SU497718A1 (en) | Device for generating pseudo-random signals of complex structure | |
SU871163A1 (en) | Generator of pseudo-random decimal number sequencies | |
SU1305837A1 (en) | Pseudorandom sequence generator | |
SU383042A1 (en) | FORMER OF CODE COMBINATIONS | |
SU720507A1 (en) | Buffer memory | |
RU1789985C (en) | Analog signals identificator | |
SU984001A1 (en) | Generator of pseudorandom pulse trains | |
SU1338020A1 (en) | M-sequence generator | |
SU1716497A1 (en) | Generator of logic-dynamic test | |
SU1310898A1 (en) | Storage | |
SU1636993A1 (en) | Pseudo random sequence generator | |
SU1185633A1 (en) | Device for transmission-reception of information | |
SU1683017A1 (en) | Modulo two check code generator | |
SU463234A1 (en) | Device for dividing cycle time into fractional number of intervals | |
SU693408A1 (en) | Pseudorandom number generator | |
SU857984A1 (en) | Pseudorandom train generator |