SU1179325A1 - Random number sequence generator - Google Patents
Random number sequence generator Download PDFInfo
- Publication number
- SU1179325A1 SU1179325A1 SU843714694A SU3714694A SU1179325A1 SU 1179325 A1 SU1179325 A1 SU 1179325A1 SU 843714694 A SU843714694 A SU 843714694A SU 3714694 A SU3714694 A SU 3714694A SU 1179325 A1 SU1179325 A1 SU 1179325A1
- Authority
- SU
- USSR - Soviet Union
- Prior art keywords
- output
- input
- inputs
- elements
- trigger
- Prior art date
Links
Abstract
ГЕНЕРАТОР ПОСЛЕДОВАТЕЛЬНОСТЕЙ СЛУЧАЙНЫХ ЧИСЕЛ, содержащий датчик случайных чисел, блок пам ти, первый ключ, выход которого соединен с установочньми входами первого и второго счетчиков, выходы которых соединены соответственно с информационными входами второго и третьего ключей, выходы которых соединены соответственно с первым и вторым входами блока элементов ИЛИ, выход которого соединен с первым входом схемы сравнени , блок управлени , отличающий с тем, что, с целью упрощени генератора, он содержит два элемента задержки и третий счетчик, а блок управлени содержит шесть элементов И, два триггера и генератор тактовых импульсов, выход которого соединен с первыми входами первого и второго элементов И, вторые входы которых подключены соответственно к пр мому и .инверсному выходам первого триггера. пр мой вход которого объединен с инверсным входом второго триггера и подключен к выходу переполнени третьего счетчика, информационный выход которого соединен с адресньм входом блока пам ти, информационный вход которого подключен к выходу датчика случайных чисел, а выход блока пам ти соединен с вторым входом схемы сравнени и с информационным входом первого ключа, выход которого вл етс выходом генератора, выход схемы сравнени соединен с управл ющим вгсодом первоI го ключа, с пр мым входом второго триггера и с входом первого элемен (Л та задержки, выход которого соединен с входом Опрос датчика случайных чисел и с входом второго элемента задержки, выход которого соединен с установочным входом третьего счетчика, счетный вход которого соединен с выходом перрого элемента s| И и с первыми входами третьего и со четвертого элементов И, выходы коО9 торых соединены соответственно с упN9 равл ющими входами второго и третьего ключей, выход второго элемента И СЛ соединен с инверсным входом первого триггера и с первыми входами п того и шестого элементов И, выходы которых соединены со счетными входами первого и второго счетчиков соответственно , пр мой выход второго триггера соединен с вторьми входами третьего и п того элементов И, инверсный выход второго триггера соединен с вторыми входами четвертого и шестого элементов И.A GENERATOR OF RANDOM NUMBERS SEQUENCES, containing a random number sensor, a memory block, a first key, the output of which is connected to the installation inputs of the first and second counters, the outputs of which are connected respectively to the information inputs of the second and third keys, the outputs of which are connected respectively to the first and second inputs of the block elements OR, the output of which is connected to the first input of the comparison circuit, the control unit, characterized in that, in order to simplify the generator, it contains two delay elements and three s counter and the control unit comprises six AND gates, two trigger and clock pulse generator, whose output is connected to first inputs of first and second AND gates, whose second inputs are connected respectively to the forward and .inversnomu outputs of the first flip-flop. the direct input of which is combined with the inverse input of the second flip-flop and connected to the overflow output of the third counter, the information output of which is connected to the address input of the memory unit, the information input of which is connected to the output of the random number sensor, and the output of the memory block and with the information input of the first key, the output of which is the generator output, the output of the comparison circuit is connected to the control key of the primary key, to the direct input of the second trigger and to the input of the first key. element (L ta delay, the output of which is connected to the input Poll random number sensor and the input of the second delay element, the output of which is connected to the installation input of the third counter, the counting input of which is connected to the output of the first element s | And with the first inputs of the third and fourth And elements, the outputs of which are connected respectively with upN9 equal inputs of the second and third keys, the output of the second element AND SL is connected to the inverse input of the first trigger and with the first inputs of the fifth and sixth elements And, the cat outputs The connectors are connected to the counting inputs of the first and second counters, respectively, the direct output of the second trigger is connected to the second inputs of the third and fifth elements, and the inverse output of the second trigger is connected to the second inputs of the fourth and sixth elements I.
Description
Изобретение относитс к вычислительной технике и может быть использовано в качестве приставки или внуреннего блока электронной вычислительной машины.The invention relates to computing and can be used as a set-top box or internal unit of an electronic computer.
Целью изобретени вл етс упрощение генератора и повышение его быстродействи .The aim of the invention is to simplify the generator and increase its speed.
На чертеже приведена блок-схема предлагаемого генератора.The drawing shows the block diagram of the proposed generator.
Генератор содержит счетчик 1 , блок 2 , схему 3-сравнени , ключ 4, счетчики 5 и 6, ключи 7 и 8 блок 9 элементов ШШ, элемент 10 задержки, датчик -11 случайных чисел элемент 12 задержки и блок 13 управлени , которьш содержит генератор 14 тактовых и fflyльcoв, элементы И 15-20, триггеры 21 и 22. .The generator contains a counter 1, a block 2, a 3-comparison circuit, a key 4, counters 5 and 6, keys 7 and 8, a block 9 of elements ШШ, a delay element 10, a sensor -11 random numbers delay element 12 and a control block 13, which contains a generator 14 clock and fflylkov, elements And 15-20, triggers 21 and 22..
Генератор последовательностей . случайных чисел работает следующим образом.Sequence generator random numbers works as follows.
В исходном положении счетчик 1 установлен в нулевое состо ние. Бло пам ти 2 и счетчики 5 и 6 содержат независимые реализации случайной величины, распределенной по требуемому закону, генерируемому датчиком 11 случайных чисел. При этом в блоке 2 пам ти находитс п чисел, а в счетчиках 5 и 6 - одно и то же число. На выходе схемы 3 сравнени сигнал отсутствует, следовательно, ключ 4 заперт, и на выход устройств число не подаетс . Триггер 21 открывает элемент И 15 и закрывает элемент И 16. Триггер 22 открывает элементы И 17 и 19 и закрывает элементы И 18 и 20. На всех шинах сигналы отсутствуют.In the initial position, the counter 1 is set to zero. Memories 2 and counters 5 and 6 contain independent implementations of a random variable distributed according to the required law generated by a sensor of 11 random numbers. In this case, in block 2 of the memory there are n numbers, and in counters 5 and 6 the same number. At the output of the comparison circuit 3, there is no signal, therefore, the key 4 is locked and the number is not output at the devices. The trigger 21 opens the element And 15 and closes the element And 16. The trigger 22 opens the elements And 17 and 19 and closes the elements And 18 and 20. There are no signals on all tires.
Импульс от генератора 14 тактовых импульсов через элемент И 15 поступает на пшну Ш1 и через элементы И 1 5 и 1 7 - на шину Ш2. По шине . Ш1 сигнал передаетс на счетный вход счетчика 1. По шине Ш2 сигнал поступает на разрешающий вход ключа 7. В счетчике 1 устанавливаетс очередное значение адреса блока 2 пам ти, которое поступает на адресньй вход блока 2 пам ти. На выходе блока 2 пам ти по вл етс число, записанное по установленному всчет чике 1 адресу. Это число передаетс .на первьй информационньй вход схемы 3 сравнени и на информационный вход ключа 4.The impulse from the generator 14 clock pulses through the element And 15 enters the pin Sh1 and through the elements And 1 5 and 1 7 on the bus Sh2. On the bus. P1 signal is transmitted to the counting input of counter 1. Via bus P2, the signal arrives at the enable input of key 7. Counter 1 sets the next value of the address of memory block 2, which is fed to the address input of memory block 2. At the output of memory block 2, a number written at the address set by 1 is displayed. This number is transmitted to the first information input of the comparison circuit 3 and to the information input of the key 4.
793252793252
На второй информационный вход схемы 3 сравнени через ключ 7 и блок ИЛИ 9 поступает число, записанное ранее в счетчике 5. На выходе схемы 3 сравнени по вл етс сигнал, если сравнение произошло, в противном случае сигнал не вырабатываетс . Если сигнал не по вл етс , то ключ 4 остаетс запертым и чис0 ло из блока 2 пам ти на выход генератора последовательностей случайных чисел не поступает. Устройство работает аналогичным образом до тех пор. Пока не по вл етс сигнал сравнени на выходе схемы 3 сравнеци либо не происходит переполнение счетчика 1.The second information input of the comparison circuit 3 via the key 7 and the block OR 9 receives the number recorded earlier in the counter 5. At the output of the comparison circuit 3, a signal appears if a comparison has occurred, otherwise the signal is not produced. If the signal does not appear, key 4 remains locked and the number from memory block 2 does not arrive at the output of the random number generator. The device works in a similar way until then. Until a comparison signal appears at the output of the comparison circuit 3, or the counter 1 does not overflow.
Пусть произошло переполнение счет чика 1, т.е. осуществилось последовательное сравнение содержимого счетчика 5 со всеми п числами, хран щимис в блоке 2 пам ти. Счетчик 1 переводитс в исходное.состо ние . На выходе по переполнению 25 счетчика 1 по вл етс сигнал, который по шине Ш6 поступает на счетные входы триггеров 21 и 22, измен их состо ни на противоположные . При этом элементы И 15-19Let the overflow of the counter 1 occur, i.e. A sequential comparison of the contents of counter 5 with all n numbers stored in memory block 2 was carried out. Counter 1 is transferred to its original. State. At the output of the overflow 25 of the counter 1, a signal appears which, via bus 6, enters the counting inputs of the flip-flops 21 and 22, changing their states to opposite ones. In this case, the elements And 15-19
30 закрываютс , а элементы И 16, 18 и 20 открываютс .30 closes and elements 16, 18 and 20 open.
Очередной импульс от генератора 14 тактовых иг-шульсов через элементы И 16 и 20 поступает на шину ШЗ,The next impulse from the generator of 14 clock ig-pulses through the elements And 16 and 20 goes to the ShZ bus,
JJ через элемент И 16 - на установочньй вход триггера 21, устанавлива его в исходное состо ние, что приводит к открыванию элемента И 15 и закрыванию элемента И 16. СигналJJ through the element AND 16 - to the installation input of the trigger 21, set it to its original state, which leads to the opening of the element 15 and the closing of the element 16. The signal
0 по шине ШЗ передаетс на счетньм вход счетчика 6, уменьша его содержимое на единицу.0 through the SHZ bus is transmitted to the counting input of counter 6, reducing its content by one.
Следующий импульс от генератора 14 тактовых импульсов поступаетThe next pulse from the generator is 14 clock pulses.
45 через элемент И 15 на шину Ш1 и через элементы И 15 и 18 - на шину Ш4 . С шины Ш1 сигнал передаетс на счетный вход счетчика 1. По шине Ш4 сигнал поступает на разрешающий45 through the element And 15 on the bus Ш1 and through the elements And 15 and 18 - on the bus Ш4. From the bus Ш1 the signal is transmitted to the counting input of the counter 1. On the bus Ш4 the signal goes to the enabling
50 вход ключа 8. В счетчике 1 устанавливаетс очередное значение адреса, которое, попада на адресньй вход блока 2 пам ти, вызывает поступление числа, записанного по этому50 key entry 8. In counter 1, the next value of the address is set, which, getting to the address input of memory block 2, causes the arrival of the number written by this
55 адресу, из блока пам ти на первый информационный вход схемы 3 сравнени и на информационный вход ключа 4. На второй информационньй вход55 address from the memory unit to the first information input of the comparison circuit 3 and to the information input of the key 4. To the second information input
33
схемы 3 сравнени через ключ 8 и блок ИЛИ 9 поступает содержимое счетчика 6. В случае совпадени чисел, поступающих на входы схемы 3 сравнени , на ее выходе по вл етс сигнал. В противном случае устроство повтор ет цикл сравнени .The comparison circuit 3 through the key 8 and the block OR 9 enters the contents of the counter 6. In the case of coincidence of the numbers supplied to the inputs of the comparison circuit 3, a signal appears at its output. Otherwise, the device repeats the comparison cycle.
Если сравнение всех чисел из блока 2 пам ти с содержимым счетчика 6 не произойдет, то на выходе по переполнению счетчика 1 по вл етс сигнал, который поступает на шину Ш6. С шины Ш6 этот сигнал передаетс на счетные входы триггеров 21 и 22, измен их состо ни на противоположные, При этом открываютс элементы И 16, 17 и 19 и закрываютс элементы И 15, 18 и 20. Очередной импульс от генератора 14 тактовых импульсов через элементы И 16 и 19 поступает на шину Ш5, через элемент И 16 - на установочньй вход триггера 21, устанавлива его в исходное состо ние , что приводит к открыванию элемента И 15 и закрыванию элемента И 16. Сигнал по шине Ш5 передаетс на счетный вход счетчика 5, увеличива его содержимое на единицу. Далее работа устройства продолжаетс поIf the comparison of all numbers from memory block 2 with the contents of counter 6 does not occur, then the output of the overflow of counter 1 is the signal that arrives at the bus Ш6. From the bus 6, this signal is transmitted to the counting inputs of the flip-flops 21 and 22, changing their states to opposite ones. At the same time, elements 16 and 17 and 19 are opened and elements 15 and 18 and 20 are closed. Another pulse from the generator 14 clock pulses through the elements Both 16 and 19 enter the bus Sh5, through the element 16 and to the installation input of the trigger 21, reset it, which leads to the opening of the element 15 and the closing of the element 16. The signal through the bus 5 passes to the counting input of the counter 5 by increasing its content by one. Further, the operation of the device continues for
793254793254
описанной схеме до тех пор, пока не произойдет сравнение числа из блока 2 пам ти с содержимым одного из счетчиков 5 или 6. При этом на 5 выходе схемы 3 сравнени по вл етс сигнал сравнени , который открывает ключ 4 и поступает на вход элемента 10 задержки. Число из блока 2 пам ти , адрес которого установлен вof the described scheme until the comparison of the number from memory block 2 with the contents of one of the counters 5 or 6. At the 5 output of the comparison circuit 3, a comparison signal appears that opens the key 4 and enters the input of the delay element 10 . A number from memory block 2 whose address is set to
to счетчике 1, через ключ 4 поступает на выход устройства, а также на установочные входы счетчиков 5 и 6 и записьшаетс в них. С выхода элемента 10 задержки сигнал поступаетto counter 1, through key 4 enters the output of the device, as well as the installation inputs of counters 5 and 6, and is written to them. From the output of the element 10, the delay signal arrives
5 на вход датчика случайных чисел 11 и на вход элемента 12 задержки. Датчик 11 случайных чисел вырабатывает очередное число, которое записываетс на место числа, поступившего на выход устройства, так как значение адреса в счетчике 1 не изменилось. С выхода элемента 12 задержки .сигнал передаетс на вход Установка в нуль счетчика 1 и устанавливает его в нулевое состо ние (состо ние, соответствующее начальному адресу блока 2 пам ти). Устройство переводитс в исходное состо ние . Такт работы генератора последовательностей случайных чисел заканчиваетс .5 to the input of the sensor of random numbers 11 and to the input of the element 12 delay. The random number sensor 11 generates the next number that is recorded in place of the number received at the output of the device, since the value of the address in counter 1 has not changed. From the output of the delay element 12, the signal is transmitted to the input. Setting the counter 1 to zero and sets it to the zero state (the state corresponding to the starting address of the memory block 2). The device is reset. The work cycle of the random number generator ends.
ВыходOutput
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU843714694A SU1179325A1 (en) | 1984-03-12 | 1984-03-12 | Random number sequence generator |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU843714694A SU1179325A1 (en) | 1984-03-12 | 1984-03-12 | Random number sequence generator |
Publications (1)
Publication Number | Publication Date |
---|---|
SU1179325A1 true SU1179325A1 (en) | 1985-09-15 |
Family
ID=21108950
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
SU843714694A SU1179325A1 (en) | 1984-03-12 | 1984-03-12 | Random number sequence generator |
Country Status (1)
Country | Link |
---|---|
SU (1) | SU1179325A1 (en) |
-
1984
- 1984-03-12 SU SU843714694A patent/SU1179325A1/en active
Non-Patent Citations (1)
Title |
---|
Авторское свидетельство СССР № 370601, кл. G 06 F 7/58. 1971. Авторское свидетельство СССР № 516042, кл. G 06 F 7/58, 1974. Авторское свидетельство СССР № 314208, кл. G 06 F 7/58, 1969. * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US3978413A (en) | Modulus counter circuit utilizing serial access | |
SU1179325A1 (en) | Random number sequence generator | |
KR950020730A (en) | Variable Latency Control Circuits, Output Buffers, and Synchronizers for Synchronous Memory | |
KR960032217A (en) | Serial Data Output Method of Dual Port Memory Device and Dual Port Memory Device | |
SU1374220A2 (en) | Random number sequence generator | |
SU1513440A1 (en) | Tunable logic device | |
SU1327102A1 (en) | Random-number sequence generator | |
SU1103352A1 (en) | Device for generating pulse trains | |
SU1539972A1 (en) | Pulse sequence generator | |
SU394813A1 (en) | I ALL-UNION | |
SU1312569A1 (en) | Generator of ordinal statistics | |
SU1332383A1 (en) | Serial-access buffer storage unit | |
SU368594A1 (en) | DEVICE FOR TRANSFORMING LOGICAL | |
SU1091159A1 (en) | Control device | |
SU1451698A1 (en) | Device for shaping remainder from number by arbitrary modulo | |
SU1118991A1 (en) | Information input device | |
RU2022345C1 (en) | Interfaces matching device | |
SU1531172A1 (en) | Parallel asynchronous register | |
SU1275436A1 (en) | Random number generator | |
SU1524093A1 (en) | Buffer storage | |
SU1319027A1 (en) | Generator of random combinations | |
SU1300653A1 (en) | Device for generating pulse sequence | |
SU1259260A1 (en) | Command access driver | |
SU1547057A2 (en) | Frequency divider with variable division ratio | |
RU1798791C (en) | Device for interface connection |