Изобретение относитс к импульсн технике. Целью изобретени вл етс повышение точности воспроизведени за анного закона распределени интервалов . На фиг« 1 приведена функциональн схема генератора случайных временны интервалов, на фиг. 2 - временные диаграммы его работы, на фиг. 3 пример вьшолнени генератора псевдо случайных равномерно распределенных чисел. Генератор (фиг. 1) содержит гене ратор 1 тактовых импульсов, элемент И 2, элемент 3 задержки, генератор 4 псевдослучайных равномерно распределенных чисел, запоминающее уст ройство 5, схему 6 сравнени , эле5 RS-триггер 8, счетчики мент И-НЕ 7 9и lOj элемент 11 задержки, регистр 12. Генератор 1 тактовых импульсов соединен с входом первого счетчика 9 непосредственно, а с установочным входом КЗ-триггера.8 и входом синхронизации пегистра 12 че рез последовательно соединенные элемент И 2, первьй элемент 3 задержки и элемент И-НЕ 7. Выход элемента И 2 соединен с входом генератора 4 псевдослучайных равномерно распределенных чисел, перва группа выходов которого соединена с входам схемы 6 сравнени непосредственно, втора группа выходов - через запоминающее устройство 5. Группа выходов генератора 4 соединена также с BXOAaNffl регистра 12, вьосоды которог соединены с входами счетчика 10, выход которого через элемент 11 задержки соединен с входами счетчика 10и триггера 8, Выход схемы 6 срав нени соединен с входом элемента И-НЕ 7, выход счетчика 9 соединен с входом управлени счетчика 10. Генератор 4 псевдослучайных равномерно распределенных чисел (фиг. содержит регистры 13 и 14 сдвига, элементы ИЛИ-НЕ 15 и 16, сумматоры 17 и 18 по модулю два, элементы ИЛИ 19 и 20. Регистр 3 сдвига с элементами ИЛ14-НЕ 15, ИЛИ 19 и сумматором 17 образуют первый генерато М последовательностей, а второй генератор М последовательностей состо ит из регистра 14, элемента ИЛИ-НЕ ИЛИ 19 и сумматора 18, выходы генераторов М последовательностей соот- 1187247 ой ветственно подключены к входам сумматоров 21 по модулю два. Генератор случайных временных ин . тервалов.(фиг. 1) работает следующим образом. Импульс с выхода счетчика 10 (фиг. 25) проходит через элемент 11 задержки и записывает в счетчик 10 число, наход щеес в регистре 12, после чего импульс с генератора 1 тактовых импульсов (фиг. 2а) через счетчик 9 начинают уменьшать содер жимое счетчика 10. Одновременно импульс с выхода элемента 11 задержки устанавливает RS-триггер 8 в единичное состо ние (фиг. 2Ь), что разрешает прохождение импульсов с генератора 1 тактовых импульсов на выход. элемента И 2 (фиг.2г). Под действием этих импульсов на выходах генератора 4 псевдослучайных равномерно распределенных чисел происходит последовательна смена чисел, опре-г дел ющих адрес, по которому из запоминающего устройства 5 будет считано очередное число, поступающее на входы схемы 6 сравнени . Если число запоминающего устройства 5 больше числа с выходов генератора 4, то на выходе схемы 6 сравнени по вл етс единичный потенциал (фиг. 2д), которьш стробируетс импульсами с выхода элемента И 2, задержанными элементом 3 задержки. Импульс с выхода элемента И-НЕ 7 (фиг, 2е) устанавливает RS-триггер в нулевое состо ние и записывает в регистр 12 очередное число с выходов генератора 4. Поступление импульсов на выход элемента И 2 прекращаетс до тех пор, пока состо ние счетчика 10 не уменьшитс до нул . После этого работа генератора случайных временных интервалов происходит в соответствии с описанным. Очевидно, что дл правильного функционировани устройства необходима смена случайного числа в регистре 12 перед началом каждого интервала , иначе повторение одинаковых интервалов может привести к искажению задаваемого распределени . Дл предотвращени этого необходимо, чтобы веро тность Р отсутстви импульса на выходе элемента И-НЕ 7This invention relates to a pulse technique. The aim of the invention is to improve the accuracy of reproduction for the law of distribution of intervals. FIG. 1 shows a functional diagram of a generator of random time intervals; FIG. 2 is a timing diagram of its operation; in FIG. 3 is an example of the implementation of a generator of pseudo randomly uniformly distributed numbers. The generator (Fig. 1) contains a generator of 1 clock pulses, an AND 2 element, a delay element 3, a generator of 4 pseudorandom uniformly distributed numbers, a storage device 5, a comparison circuit 6, an 5 RS flip-flop 8, and I-HE 7 counters lOj delay element 11, register 12. The clock pulse generator 1 is connected to the input of the first counter 9 directly, and to the setting input of the short-circuit trigger 8 and the clock input of the pegger 12 through the serially connected element I 2, the first delay element 3 and the element I- NOT 7. The output element And 2 is connected to in generator 4 pseudo-random evenly distributed numbers, the first group of outputs of which is connected to the inputs of the comparison circuit 6 directly, the second group of outputs through the memory 5. The group of outputs of the generator 4 is also connected to the BXOAaNffl register 12, the outputs of which are connected to the inputs of the counter 10, the output of which through the delay element 11 is connected to the inputs of the counter 10 and trigger 8, the output of the comparison circuit 6 is connected to the input of the element AND-7, the output of the counter 9 is connected to the control input of the counter 10. Pseudo-case generator 4 evenly distributed numbers (FIG. contains the registers 13 and 14 of the shift, the elements OR-NOT 15 and 16, the adders 17 and 18 modulo two, the elements OR 19 and 20. The shift register 3 with the elements IL14-NOT 15, OR 19 and the adder 17 form the first generator of the M sequences, and the second generator of the M sequences consists of register 14, the element OR NOT OR 19 and the adder 18, the outputs of the generators of the M sequences are respectively connected to the inputs of the adders 21 modulo two. Random time generator. Tervalov. (Fig. 1) works as follows. The pulse from the output of the counter 10 (Fig. 25) passes through the delay element 11 and writes into the counter 10 the number in the register 12, after which the pulse from the generator 1 of clock pulses (Fig. 2a) through the counter 9 begins to decrease the content of the counter 10 At the same time, the pulse from the output of the delay element 11 sets the RS flip-flop 8 to one state (Fig. 2b), which permits the passage of pulses from the generator 1 of clock pulses to the output. element And 2 (Figg). Under the action of these pulses, at the outputs of the generator 4 of pseudorandom uniformly distributed numbers, a succession of numbers is determined that determine the address at which the next number to be read from the inputs of the comparison circuit 6 is read from memory 5. If the number of the storage device 5 is greater than the number from the outputs of the generator 4, then at the output of the comparison circuit 6 there appears a unit potential (Fig. 2e), which is gated with pulses from the output of the And 2 element delayed by the delay element 3. The pulse from the output of the NAND 7 element (Fig 2e) sets the RS flip-flop to the zero state and writes the next number from the outputs of the generator 4 to the register 12. The receipt of the pulses from the output of the And 2 element stops until the state of the counter 10 does not decrease to zero. After that, the work of the generator of random time intervals occurs in accordance with the described. Obviously, in order for the device to function properly, a random number in register 12 must be changed before the start of each interval, otherwise repetition of the same intervals may lead to a distortion of the specified distribution. To prevent this, it is necessary that the probability P of the absence of an impulse at the output of the element AND-NE 7
в течение (А + 1)М тактов работы генератора 1 (А - емкость запоминающего устройства 5) была пренебрежимо малой, что определ етс емкостью during (A + 1) M cycles of operation of generator 1 (A is the storage capacity of device 5) was negligible, which is determined by the capacity
М счетчика 9. Например, дл равномер кого распределени с заданной величиной Р емкость счетчика 9 М 50.M is counter 9. For example, for uniform distribution with a given value of P, the capacity of the counter is 9 M 50.
фиг. 2.FIG. 2