SU922707A2 - Device for probabilistic simulation - Google Patents

Device for probabilistic simulation Download PDF

Info

Publication number
SU922707A2
SU922707A2 SU802980775A SU2980775A SU922707A2 SU 922707 A2 SU922707 A2 SU 922707A2 SU 802980775 A SU802980775 A SU 802980775A SU 2980775 A SU2980775 A SU 2980775A SU 922707 A2 SU922707 A2 SU 922707A2
Authority
SU
USSR - Soviet Union
Prior art keywords
input
register
output
elements
block
Prior art date
Application number
SU802980775A
Other languages
Russian (ru)
Inventor
Герман Георгиевич Баранов
Рафиз Газизович Вагапов
Вячеслав Михайлович Захаров
Юрий Степанович Комаров
Original Assignee
Казанский Ордена Ленина И Ордена Трудового Красного Знамени Государственный Университет Им. В.И.Ульянова (Ленина)
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Казанский Ордена Ленина И Ордена Трудового Красного Знамени Государственный Университет Им. В.И.Ульянова (Ленина) filed Critical Казанский Ордена Ленина И Ордена Трудового Красного Знамени Государственный Университет Им. В.И.Ульянова (Ленина)
Priority to SU802980775A priority Critical patent/SU922707A2/en
Application granted granted Critical
Publication of SU922707A2 publication Critical patent/SU922707A2/en

Links

Landscapes

  • Complex Calculations (AREA)

Description

Изобретение относитс  к вычислительной технике и предназначено дл  моделировани  случайных процессов .The invention relates to computing and is intended to simulate random processes.

По основному авт.св. № 488212 известно устройство, содержащее генератор случ.айных чисел, блок сравнени , регистр маски, регистр числа, блок . пам ти, регистр адреса и блок управлени , причем вход генератора случайных чисел, соединен с первым выходом. блока управлени , первый вход блока сравнени  соединен с выходом генератора , случайных чисел, второй вход с вторым выходом блока управлени , а первый выход - с первым входом регистра адреса, второй вход которого соединен с третьим выходом блока управлени , а выход - с входом блока пам ти,- выход которого подключен к первому входу регистра числа, второй вход которого подключен к четвертому выходу блока управлени , п тЫй выход которого соединен с первым входом регистра маски, второй вход которого соединен с вторым выходом блока сравнени , а третий вход - с выходом регистра числа, первый выход с третьим входом блока сравнени , а второй выход г- с третьим входом ре .гистра адреса, предназначенное дл According to the main auth. No. 488212, a device is known comprising a random number generator, a comparison block, a mask register, a number register, a block. a memory, an address register and a control unit, the input of the random number generator being connected to the first output. control unit, the first input of the comparison unit is connected to the output of the generator, random numbers, the second input to the second output of the control unit, and the first output to the first input of the address register, the second input of which is connected to the third output of the control unit, and the output to the input of the memory block ti, whose output is connected to the first input of a number register, the second input of which is connected to the fourth output of the control unit, the fifth output of which is connected to the first input of the mask register, the second input of which is connected to the second output of the comparison unit, and the third input is with the output of the register of the number, the first output with the third input of the comparison unit, and the second output g with the third input of the registrar of the address intended for

формировани  дискретных случайных величин и простых цепей Маркова.forming discrete random variables and simple Markov chains.

Однако с помощью этого устройства нельз  формировать более сложные цепи - многосв зные цепи, в которых веро тность по влени  последующего состо ни  .зависит от более чем одного предыдущих, состо ний.However, with the help of this device it is impossible to form more complex chains — multi-connected chains in which the probability of the occurrence of a subsequent state depends on more than one previous state.

Цель изобретени  - разширение The purpose of the invention - expansion

10 Функциональных возможностей за счет формировани  многосв зных цепей Маркова.10 Functionalities due to the formation of multiple Markov chains.

Поставленна  цель Достигаетс  тем, что в устройство, содержащее генера15 тор случайных чисел, блок сравнени , регистр маски, регистр числа, блок пам ти, регистр адреса и блок управлени , причем вход генератора случайных чисел соединен с первым выходом Set goal Achieved by having a device containing a random number generator, a comparison block, a mask register, a number register, a memory block, an address register and a control block, the input of a random number generator being connected to the first output

20 блока управлени , первый вход, блока сравнени  соединен с выходом генератора случайных чисел, второй вход с вторым выходом блока управлени , а первый выход - с первым входом ре25 гистра адреса, второй, вход.которого соединен с третьим выходом блока управлени , а выход - с входом блока пам ти, выход которого подключен к первому входу регистра числа, второй 20 of the control unit, the first input of the comparison unit is connected to the output of the random number generator, the second input is connected to the second output of the control unit, and the first output is connected to the first input of the address register, the second input is connected to the third output of the control unit, and the output is with the input of the memory block, the output of which is connected to the first input of the number register, the second

30 вход которого подключен к четвертому выходу блок управлени , п тый выход которого соединен с первым входом регистра маски, второй вход которого соединен с Бторым выходом блока срав нени , третий вход - с выходом реги ра числа, а первый выход - с третьим Ьходом блока сравнени , дополнитель введены счетчик, элемент ИЛИ-НЕ, эле мент И, сумматор по модулю два, комм татор и группа элементов И, первые входы которых объединены с первым входом коммутатора и подключены к второму выходу регистра маски, вторые входы элементов И группы объеди нены с первым«входом элемента И, со счетным входом счетчика и с вторым входом регистра адреса, третий вход которого соединен с выходом коммутй тора, второй вход которого объединен со вторым входом элемента И и подключен к выходу элемента ИЛИ-НЕ, входы которого соединены с разр дны ми выходами счетчика, третий вход коммутатора подклю-чен к выходу сумматора по модулю два, первый и второй входы которого соединены соответственно с выходами элементов И группы и элемента И. На фиг.1 приведена блок-схема устройства; на фиг.2 - схема блока управлени. ; на фиг.З - диаграммы ра боты блока управлени . Устройство содержит генератор 1 случайных чисел, блок 2 сравнени , регистр 3 маски, регистр 4 числа, блок 5 пам ти, регистр 6 адреса, блок 7 управлени , блок 8 изменени  глубины св зи состо ний цепи, коммутатор 9, группу 10 элементов И, сумматор 11 по модулю два, элемент ИЛИНЕ 12, счетчик 13, элемент И 14. Блоки 1-7 относ тс  к основному устройству, узлы 9-14, содержащиес  в блоке 8,  вл ютс  дополнительными Блок 7 управлени  содержит генератор 15 тактовой частоты, элементы ИЛИ-НЕ 16 и 17, сдвигающий регист 18, элементы ИЛИ 19 и 21, элемент И 20, сдвигающий регистр 22, элементы И 23-25, сдвигающий регистр 26, элемент И 27, элемент НЕ 28, элементы И 29 и 30, шину 31 св зи с генератором 1 случайных чисел, шину 32 св зи с регистром 4 числа. Шину 33 св зи с регистром 3 маски, шину 34 св зи с блоком 2 сравнени , шину 35 св зи с регистром б адреса, часть 36 шины 35, используемую дл  синхронизации блока В. При этом R - вход установки нул  С - синхровход;. D -.информационный вход; 1 - уровень логической единицы . Цепи питани  и начально  установки исходного состо ни  не показаны. На фиг.З приведены временные диаграммы работы блока управлени  на выходах определен((нх узлов схемы. Генератор 1 случайных чисел пред назначен дл  генерации-исходных, равномерно распределенных случайных двоичных чисел. Вход генератора 1 случайных чисел соединен с первым выходом блока 7 управлени . Блок 2 сравнени  служит дл  параллельного сравнени  группы граничных значений интервалов разбиени  области Ъпоеделени  формируемой случайной функции с исходным случайным числом. Первый вход блока 2 сравнени  соединен с выходом генератора 1 случайных чисел, второй вход - с вторым вьЕходом блока 7 управлени , а первый выход - с первым входом регистра 6 адреса. Регистр 6 адреса служит дл  управлени  блоком 5 пам ти и разделен на две части - младшую и старшую. Младша  часть указывает место расположени  отдельных  чеек блока пам ти. Старша  часть регистра указывает место расположени  массива  чеек. Первый вход регистра 6 адреса, соединенный с первым выходом блока 2 сравнени ,  вл етс  входом младшей части. Второй вход регистра 6 адреса соединен с третьим выходом блока 7 управлени  и вторым входом блока 8. Этот вход  вл етс  входом синхронизации. Третий вход регистра 6 адреса соединен с выходом блока 8 изменени  глубины св зи состо ний цепи и  вл етс  информационным входом старшей части регистра 6. Блок 5 пам ти служит дл  хранени  кода функции распределени  и ее аргументов. Вход блока 5 пгии ти соединен с выходом регистра 6 адреса . Регистр 4 числа служит дл  приема содержимого блока 5 Пс1м ти и его хранени  на врем  операции сравнени . Первый вход регистра 4 числа соединен с выходом блока 5 пам ти, а второй вход - с четвертым выходом блока 7 управлени . Регистр 3 маски служит дл  маскировани  разр дов регистра 4 числа. Цель маскировани  - в заданный такт работы устройства снимать информацию только с определенной части разр дов  чейки блока 5 пам ти. Первый вход регистра 3 маски соединен с п тым выходом блока 7 управлени , второй вход с вторым выходом блока 2 сравнени , а третий вход - с выходом регистра 4 числа. Первый выхрд регистра.3 маски соединен с третьим входом блока 2 сравнени , а второй выход - с первым входом блока 8 изменени  глубины св зи состо ний цепи. Блок содержит коммутатор 9, группу 10 элементов, сумматор 11- по модулю два, элемент ИЛИНЕ 12, счетчик 13 и элемент И 14, причем первый вход коммутатора 9 и первый вход элементов 10 соединены между собой и образуют первый вход блока 8. Второй вход элементов 10, первый вход элемента И 14 и вход счетчика 13 также соединены между собой и образуют второй вход блока 8 Выходом блока 8 служит выход комг татора 9-. Второй вход коммутатора 9 соединен с вторым входом элемента И 1.4 и выходом элемента -ИЛИ-НЕ 12, вход которого соединен с выходом счетчика 13. Выход элемента И 14 соединен с первым Ёходом.сумматора 11 по модулю два, второй вход которого соединен с выходом элементов 10, а выход - с третьим входом коммутатора 9. Принцип работы устройства состоит в следующем. Получение случайных чисел XJ (1-1,2,. . ..,п) с заданным законом распределени  F(xj ) основано на срав нении равномерно распределенных чисе со значени ми Р(х|), отыскании интер вала, где выполн етс  условие F(xi)(x;, )(1) и выдачи соответствующего данному ин тервалу значени  х. . Дл  реализации соотношени  (1) . все значени  Г(х|) разбиты на группы Группы выбираютс  из блока пам ти ло гарифмическим перебором и кажда , гру па сравниваетс  с числом ё, параллель но. Логарифмический перебор осуществл етс  упор доченным расположением значений F(xj) и xj по группам. При формировании простых и многосв зных цепей Маркова алгоритмы полу чени  Х| служат дл  реализации одной строки стохастической матрицы. Выбор следующей строки определ етс  полученными значени ми Х|. Функционирование устройства рассмотрим на следующем примере. Пусть (,б4) и основание логарифма равно 4. .Кроме того, дл  определенности предположим, что генератор 1 случайных чисел  вл етс  псевдослучайным . Соответствующа  этому примеру схема блока 7 управлени  приведена на фиг.2. Устройство работает следующим образом . По внешнему сигналу Пуск, который поступает в блок 7 управлени  по шине Пуск (см.фиг.2), триггер, обр зованный элементами ИЛИ-НЕ 16 и 17, устанавливаетс  в единичное состо ние . При этом на информационный, вхо сдвигающего регистра 18 поступает уровень логической . Передним фронтом очередного импульса тактовой частоты, которые поступают на синхровход регистра 18 с выхода генератора 15 тактовой частоты, в первый разр д регистра 18 (верхний по схеме) записываетс  1. Эта 1 устанавливает в исходное нулевое состо  ние триггер, образованный элементами ИЛИ-НЕ 16 и 17, и через элемент ИЛИ 19 открывает элемент И 20 дл  прохождени  импульсов генератора 15 тактовой частоты. При поступлении следующего импульса тактовой частоты 1 из первого разр да регистра 18 переписываетс  во второй, а в первый разр д записываетс  О. Шестой импульс тактовой частоты вызывает по вление 1 на выходе шестого, последнего разр да регистра 18, который через элемент ИЛИ 21 соединен с Dвходом сдвигающего регистра 22. При |поступлении седьмого импульса такто;вой частоты регистр 18 оказываетс  в нулевом состо нии, элемент И 20 запи-. раетс , а в первый разр д регистра 22 (верхний по схеме, образует шину 32) записываетс  1. В результате на шине.31, св зывающей блок -управлени  с генератором 1 случайных чисел, формируютс  шесть импульсов, кото .рые необходимы дл  генерации исходJHoro случайного 6-разр дного двоичного числа. Полученное случайное чиело поступает с выхода генератора 1 на первый вход блока 2 сравнени . Импульс на шине 32, котора  образована выходом первого разр да регистра 22 и св зывает блок управлени  с регистром 4 -числа, осугчествл ет запись в регистр 4 числа содержимого  чейки блока 5 пам ти, адрес которой определ етс  регистром 6 адреса. При этом старша  часть.регистра б определ ет адрес массива  чеек, а младша  часть - адрес  чейки в массиве. Записанное в регистр 4 числа содержимое  чейки блока 5 пам ти через регистр 3 маски поступает на другой вход блока 2 сравнени . В рассматриваемом примере дл  реализации соотношени  (1) необходимо три такта. В первый такт провер ютс  услови  F (х, )« S,F (х JJ ) , F(x,6)4.F(Xii) , F (xjjk ,F (х це) F (Хц«) 5.F (х бм) . Пусть S попало в интервал F(XI), F()l, тогда во второй такт провер ютс  услови  F(x, )(xц), F(K4)(x8) , ,F(x«)5,F(xa), F(Xiz)(xis) , Пусть J попало в интервал FCxtt ) , F(x.,6 ) , тогда в третий такт провер ютс  услови  F( ),F(xii ) , F(x., )«5.F(x ) , F(x,ц )6.F (хч5) , F(xis )6,F(x,6 ) . В эти три такта из блока 5 пам ти выбираютс  три  чейки, в которых содержатс  следующие группы значений Ffx,6) , F(x ъг) , F(xue) ; F(x 1, ) , F(x s ). f F(x ii) ; F(Xi , F(x,u ), ) . Эти группы сравниваютс  в блоке 2 сравнени  со случайным числом ,. При надлежность числа одному из четырех интервалов указываетс  в виде ло гической единицы на одном иэ четырех выходов, образующих выходную шину бл ка 2, Результат сравнени  поступает в младшую часть регистра б адреса, котора  представл ет собой сдвигающий регистр, и служит дл  формировани  адреса, по которому из блока 5 пам ти выбираетс  нова  группа,значений F(xj), Перва  группа F(xi), котора  сравниваетс  в первом такте сравнени , не зависит от с,, пбэтому {адрес  чейки, в которой хранитс  пер ва  группа F(xj),  вл етс  посто нным . Это достигаетс  путем установ1КИ младааей части регистра б адреса в нулевое состо ние перед каждым циклом сравнени . Процесс сравнени  обеспечиваетс  следующим образом. Сдвигающий регист 22 выполн ет функцию распределител  импульсов, а регистр 26 в сочетаний с элементом -И 27 - функцию счетчика тактов сравнени . При этом первый импульс, поступающий на шину 32, служит дл  записи в регистр 4 числа очередной группы F(x;). Второй имдульс , который с второго выхода регистра 22 через открытый элемент И 29 поступает на шину 34, служит дл  записи в регистр, содержащийс  в блоке 2 сравнени , результата сравнени . Запоминание результата сравнени  необходимо дл  правильной работы регистра 3 маски, так как в про тивном случае при маскировании разр дов регистра 4 числа измен етс  результат предыдущего сравнени , которьай управл ет регистром 3 маски, что приводит к изменению результата маскировани . Третий импульс, который с третьего выхода регистра 22 через открытый элемент И 30 поступает на шину 35, служит дл  записи результата сравнени  в младшую часть регистра б адреса.После окончани  цикла сравнени  из блока 5 пам ти в регистр 4 числа считываетс  группа значений к/, одно из которых  вл етс  текущим состо нием цепи. Выбор Xj обеспечиваетс  регистром 3 маски. Те части регистра маски, в которые по выходам из блока 2 сравнени  поступили логические нули , закрываютс . Открытой остаетс  только одна часть, на вход которой поступила 1. Число xj снимаетс  с тех разр дов регистра 4 числа, которые -соответствуют этой открытой части . Считьшание xf и переход к следующей строке стохастической матрицы обеспечиваютс  изменением режима работы блока управлени . Если перва , втора  и треть  серии импульсов, сформированных реги ;тром 22, обеспечйвают реализацию цикла сравнени , то последн   четверта - сери  импульсов обеспечивает формирование текущего значени  цепи и подготовку к новому циклу работы устройства. Элемент И 27 при этом открываетс , так как после каждой серии импульсов в регистр 26 записываетс  1, и после третьей серии на всех входах элемента И 27 присутствует 1. Это приводит к запиранию элементов И 29 и 30 и отпиранию элементов И 23 и 25. В результате, второй импульс с регистра 22 поступает не в блок 2 сравнени , а через элемент И 23 на шину 33, св зывающую блок управлени  с регистром 3 маски. Одновременно этот им- . рульс поступает на шины 36 и 35. По шине 35 этот импульс поступает в младшую часть регистра б адреса и устанавливает ее в исходное нулевое состо ние, осуществл   тем самым подготовку к новому циклу работы, а по шине 36 он поступает на вход счетчика 13 и второй вход элементов 10. Третий импульс с регистра 22 через элемент И 25 поступает на шины 36 и 35, причем по шине 36 он поступает на первый вход элемента И 14, а по шине 35 - на старшую часть регистра 6 адреса и служит дл  записи информации в старшую часть регистра 6. Полученное значение х,, представл ющее собой текущее состо ние цепи, с выхода регистра 4 через регистр 3 маски поступает на первые входы коммутатора 9 и элементов И 10. Импульс блока 7 управлени , поступающий с выхода элемента И 23 и устанавливающий в исходное состо ние младшую часть регистра б адреса, одновременно поступает на второй, вход элементов И 10, открывает их, и на вход сумматора 11 по модулю два поступает число xj . Сумматор 11 представл ет собой набор Т-триггеров, входы которых соединены с соответствующими выходами элементов И 10, и служит дл  поразр дного суммировани  по модулю два Чисел xj. Исходным состо нием сумматора 11  вл етс  нулевое. Импульсы, поступ,ающие на второй вход группы 10 элементов, одновременно поступшот на вход счетчика 13, который подсчитывает количество суммированных чисел xi . После сложени  га чисел (число m определ ет згшанную глубину св зности цепи и представл ет собой число возможных состо ний счетчика 13, включа  нулевое) счетчик 13 переполн етс  и переходит в нулевое состо ние , что вызывает по вление 1 на выходе элемента ИЛИ-НЕ 12, входы которого соединены с выходг1ми триггеров счетчика 13. При этом результат суммкрованн  чисел х, с выхода сумматора 11 через коммутатор 9 поступает на вход старшей части регистра б iадреса. Запись этой информации в регистр б осуществл етс  импульсом блока 7 управлени , поступающим с выхода элемента И 25. Записанный в регистр б адреса результат суммировани  служит адресом массива  чеек в блоке 5 пам ти, по которому записана очередна  строка стохастической матрицы цепи.После каждого такого цикла формировани  го-св зного значени  цепи сумматор 11 по модулю два устанавливаетс  в нулевое состо ние импульсом записи информации в старшую часть регистра 6. Этот импульс на первый вход элемента И 14, на в.торой вход которого с выхода элемента ИЛИ-НЕ 12 поступает 1. Возникающий на выходе элемента И 14 импульс поступает на вход установки нул  сумматора-11 по модулю два. 30 whose input is connected to the fourth output of the control unit, the fifth output of which is connected to the first input of the mask register, the second input of which is connected to the second output of the comparison unit, the third input to the output of the number register, and the first output to the third output of the comparison unit , additionally entered the counter, the element OR NOT, the element And, the modulo adder two, the switch and the group of elements AND, the first inputs of which are combined with the first input of the switch and connected to the second output of the mask register, the second inputs of the elements AND of the group are combined with per th input of the AND element, with the counting input of the counter and with the second input of the address register, the third input of which is connected to the output of the switch, the second input of which is combined with the second input of the AND element and connected to the output of the OR-NOT element, whose inputs are connected to the meter outputs, the third input of the switch is connected to the output of the modulo-adder two, the first and second inputs of which are connected respectively to the outputs of the elements of the And group and the element I. Figure 1 shows the block diagram of the device; 2 is a control block diagram. ; Fig. 3 shows diagrams of operation of the control unit. The device comprises a random number generator 1, a comparison block 2, a mask register 3, a register 4 numbers, a memory block 5, an address register 6, a control block 7, a block 8 for changing the communication depth of circuit states, a switch 9, a group of 10 elements And Modulo two adder 11, element ILINE 12, counter 13, element And 14. Blocks 1-7 relate to the main device, nodes 9-14 contained in block 8 are optional. Control unit 7 contains a clock frequency generator 15, elements OR NOT 16 and 17, shift register 18, elements OR 19 and 21, item AND 20, shift register 22, uh Elements 23-25, shifting register 26, element 27, element 28, elements 28 and 30, bus 31, communication with random number generator 1, bus 32, communication with register 4 numbers. Bus 33 communication with the mask register 3, bus 34 communication with the unit 2 comparison, bus 35 communication with the address register B, part 36 of the bus 35 used to synchronize the block B. In this case, R is the input of the zero setting C - synchronous input ;. D -. Information entry; 1 - the level of logical units. The power supply and initial settings of the initial state are not shown. Fig. 3 shows the timing diagrams of the control unit at the outputs defined ((nx of the circuit nodes. Random number generator 1 is pre-assigned for generating the original, uniformly distributed random binary numbers. The input of the random number generator 1 is connected to the first output of the control unit 7. Block 2 Comparison serves for parallel comparison of the group of boundary values of the partition intervals of the domain B formed of the random function with the initial random number. The first input of the comparator unit 2 is connected to the output of the generator 1 random numbers, the second input with the second input of the control unit 7, and the first output with the first input of the address register 6. The address register 6 serves to control the memory block 5 and is divided into two parts, the youngest and the most significant. cells of the memory block. The older part of the register indicates the location of the array of cells. The first input of the register 6 address, connected to the first output of the comparison unit 2, is the input of the younger part. The second input of register 6 of the address is connected to the third output of control unit 7 and the second input of unit 8. This input is a synchronization input. The third input of the register 6 of the address is connected to the output of the block 8 for changing the communication depth of the states of the circuit and is the information input of the upper part of the register 6. The memory 5 serves for storing the code of the distribution function and its arguments. The input of block 5 is connected to the output of register 6 of the address. Register 4 of a number is used to receive the contents of the 5 Ps1mti block and to store it for the duration of the comparison operation. The first input of register 4 is connected to the output of memory block 5, and the second input is connected to the fourth output of control block 7. Mask register 3 serves to mask the register bits of 4 numbers. The purpose of masking is to remove information only from a certain part of the bits of the cell of the memory 5 at a given device operation time. The first input of the mask register 3 is connected to the fifth output of the control unit 7, the second input to the second output of the comparison unit 2, and the third input to the output of the register 4 numbers. The first mask output register 3 is connected to the third input of the comparator unit 2, and the second output to the first input of the unit 8 for changing the communication depth of the states of the circuit. The block contains a switch 9, a group of 10 elements, an adder 11 modulo two, an ILINE 12 element, a counter 13 and an AND 14 element, the first input of the switch 9 and the first input of elements 10 are interconnected and form the first input of the block 8. The second input of elements 10, the first input element And 14 and the input of the counter 13 are also interconnected and form the second input of the block 8 The output of the block 8 is the output of the combator 9-. The second input of the switch 9 is connected to the second input of the element AND 1.4 and the output of the element —OR — NO 12, the input of which is connected to the output of the counter 13. The output of the element 14 and 14 is connected to the first Modular output of modulator 11 modulo two, the second input of which is connected to the output of the elements 10, and the output - with the third input of the switch 9. The principle of operation of the device is as follows. Obtaining random numbers XJ (1-1,2, ..., ..., p) with a given distribution law F (xj) is based on a comparison of uniformly distributed numbers with values of P (x |), finding the interval where the condition F (xi) (x ;,) (1) and issuing values corresponding to this interval. . To implement the relation (1). All values of T (x |) are divided into groups. Groups are selected from a memory block by a logarithmic search and each group is compared with the number e, in parallel. The logarithmic search is carried out in an orderly arrangement of the values of F (xj) and xj in groups. In the formation of simple and multifaceted Markov chains, the algorithms for obtaining X | serve to implement a single row of a stochastic matrix. The choice of the next line is determined by the obtained values of X |. The operation of the device consider the following example. Let (, b4) and the base of the logarithm be 4. Also, for definiteness, we assume that the generator 1 of random numbers is pseudo-random. The circuit of the control unit 7 corresponding to this example is shown in FIG. The device works as follows. By an external Start signal, which enters the control unit 7 via the Start bus (see Fig. 2), the trigger, formed by the OR-NOT elements 16 and 17, is set to one. At the same time on the information, the input shift register 18 receives the logic level. The leading edge of the next clock frequency pulse, which is fed to the synchronous input of the register 18 from the generator output 15 clock frequency, is recorded in the first digit of the register 18 (the upper one) 1. This 1 sets the initial zero state of the trigger formed by the elements of OR-NOT 16 and 17, and through the element OR 19 opens the element AND 20 for the passage of pulses of the clock frequency generator 15. When the next pulse of clock frequency 1 arrives from the first bit, register 18 is rewritten into the second, and O is recorded for the first bit. The sixth clock pulse causes the appearance of 1 at the output of the sixth, last bit of register 18, which is connected through OR 21 to D the input of the shift register 22. When | the seventh pulse arrives at the clock; the frequency of the register 18 is in the zero state, the AND 20 entry is recorded. The first bit of register 22 (the upper one forms bus 32) is recorded as a result. As a result, six pulses are formed on bus 31 linking the control unit with random number generator 1, which are necessary to generate the output. random 6-bit binary number. The resulting random number comes from the output of generator 1 to the first input of block 2 of comparison. The impulse on the bus 32, which is formed by the output of the first bit of register 22 and connects the control unit with the register 4 numbers, denies writing to register 4 the number of cell contents of memory block 5 whose address is determined by address register 6. In this case, the highest part of the register b defines the address of the array of cells, and the younger part - the address of the cell in the array. The contents of the memory block 5 in the register of 4 numbers, through the mask register 3, is fed to another input of the comparison block 2. In the example under consideration, three cycles are necessary to implement relation (1). In the first cycle, the conditions F (x,) "S, F (x, JJ), F (x, 6) 4.F (Xii), F (xjjk, F (xcе) F (Xc") 5.F (x bm). Let S fall into the interval F (XI), F () l, then in the second cycle the conditions F (x,) (x c), F (K4) (x8),, F (x) 5, F (xa), F (Xiz) (xis), Let J fall into the interval FCxtt), F (x., 6), then the conditions F (), F (xii), F (x .,) "5.F (x), F (x, c) 6.F (hch5), F (xis) 6, F (x, 6). During these three clocks, from the memory block 5, three cells are selected in which the following groups of values Ffx, 6), F (x), F (xue) are contained; F (x 1,), F (x s). f F (x ii); F (Xi, F (x, u),). These groups are compared in block 2 comparisons with a random number,. The relevance of the number to one of the four intervals is indicated as a logical unit on one or four outputs that make up the output bus of block 2. The result of the comparison goes to the lower part of the address register, which is a shift register, and is used to form the address which, from block 5 of memory, selects a new group, the values F (xj), the First group F (xi), which is compared in the first comparison cycle, does not depend on, that is, the cell address in which the first group F is stored (xj ) Is constant. This is achieved by setting the lower part of the address register B to the zero state before each comparison cycle. The comparison process is provided as follows. The shift register 22 performs the function of the pulse distributor, and the register 26 in combination with the AND-27 element functions as the counter clock counter. In this case, the first pulse arriving at the bus 32 is used to write to the register 4 the numbers of the next group F (x;). The second impulse, which from the second output of the register 22 through the open element I 29 enters the bus 34, is used to write to the register contained in the unit 2 of the comparison, the result of the comparison. Memorization of the comparison result is necessary for the mask register 3 to work properly, because otherwise, when masking the digits of register 4, the result of the previous comparison that controls the mask register 3 changes, which leads to a change in the result of masking. The third pulse, which from the third output of the register 22 through the open element I 30 enters the bus 35, serves to write the comparison result to the lower part of the address register b. After the completion of the comparison cycle, the group of values k /, is read into the register 4, one of which is the current state of the circuit. The selection of Xj is provided by mask register 3. Those parts of the mask register into which logical zeros have arrived at the outputs of block 2 of the comparison are closed. Only one part remains open, to which input is received 1. The number xj is removed from those bits of the register 4 numbers that correspond to this open part. Reading xf and going to the next row of the stochastic matrix is provided by changing the mode of operation of the control unit. If the first, second and third series of pulses generated by the register 22, provide the realization of the comparison cycle, then the last fourth - a series of pulses ensures the formation of the current value of the circuit and preparation for a new cycle of the device operation. Element And 27 is then opened, since after each pulse train, register 26 is recorded 1, and after the third series, And 27 is present at all inputs of element I. This leads to locking And 29 and 30 elements and unlocking And 23 and 25 elements. As a result, the second pulse from the register 22 does not go to the comparison unit 2, but through the element 23 to the bus 33 connecting the control unit with the mask register 3. At the same time this im-. the wheel enters the tires 36 and 35. Bus 35 takes this impulse to the lower part of register b of the address and sets it to the initial zero state, thus preparing for the new work cycle, and through bus 36 it goes to the input of the counter 13 and the second the input elements 10. The third pulse from the register 22 through the element And 25 enters the bus 36 and 35, and through the bus 36 it arrives at the first input element And 14, and through the bus 35 - on the older part of the register 6 address and serves to record information in the upper part of the register is 6. The resulting value of x, which represents the The second current state of the circuit, from the output of register 4 through the register 3 of the mask, goes to the first inputs of the switch 9 and elements 10. The impulse of the control unit 7 coming from the output of element 23 and setting the initial part of the lower part of the register b of the address simultaneously arrives the second, the input elements And 10, opens them, and the input xj modulo two arrives at the input of the module. The adder 11 is a set of T-flip-flops, the inputs of which are connected to the corresponding outputs of the elements And 10, and serves for a bit-wise modulo two Numbers xj. The initial state of the adder 11 is zero. The pulses coming in at the second input of a group of 10 elements are simultaneously received at the input of counter 13, which counts the number of summed numbers xi. After adding a number of numbers (the number m determines the increased depth of the circuit and represents the number of possible states of the counter 13, including zero), the counter 13 overflows and goes into the zero state, which causes the appearance of 1 at the output of the element OR NOT 12, the inputs of which are connected to the outputs of the triggers of the counter 13. In this case, the result is summed by the numbers x, from the output of the adder 11 through the switch 9 enters the input of the higher part of the register b i address. This information is written to register B by the pulse of control block 7, coming from the output of AND 25. The summation result recorded in address register B serves as the address of the array of cells in memory block 5, on which the next row of the stochastic matrix of the circuit is written. After each such cycle the modulo two adder is formed in the zero state by a pulse of recording information in the upper part of register 6. This pulse to the first input of the And 14 element, to the second input of which from the output of the el of the element OR-NOT 12 enters 1. The pulse arising at the output of the element 14 is fed to the input of the zero setting of the adder-11 modulo two.

Цикл работы блока 7 управлени  завершаетс  после окончани  импульса записи информации в старшую часть регистра 6. При этом очередной тактовый импульс генератора 15 тактовой частоты вызывает по вление Ч на последнем выходе регистра 22, что прводит к по влении) 1 на последнем выходе регистра 26. В результате на выходе элемента И 24 по вл етс  1, котора  устанавливает в нулевое соето ние регистры 18, 22 и 26 и одновременно устанавливает в единичное состо ние триггер, образованный элементами ИЛИ-НЕ 16 и 17, осуществл   тем сгилам новый пуск блока 7 управлени . На этом цикл работы устройства завершаетс .The operation cycle of the control unit 7 is completed after the end of the impulse to write information to the older part of the register 6. At the same time, the next clock pulse of the clock frequency generator 15 causes the occurrence of H at the last output of register 22, which leads to occurrence) 1 at the last output of register 26. V As a result, at the output of the AND 24 element appears 1, which sets the registers 18, 22 and 26 to the zero connection and simultaneously sets the trigger formed by the OR-NOT 16 and 17 elements to the single state, making a new start of the unit 7 pack ION. This completes the cycle of operation of the device.

В предлагаемом устройстве нар ду с формированием простых цепей Маркова , что достигаетс  путем установки счетчика 13 в нулевое состо ние.In the proposed device, along with the formation of simple Markov chains, which is achieved by setting the counter 13 to the zero state.

можно получить более сложные цепи, i.B которых веро тность по влени  текущего состо ни  цепи зависит от заданной комбинации предыдущих состо ний или от заданного числа состо ний . По своим функциональным возможност м предлагаемое устройство может при небольших аппаратурных затратах по сравнению с известным устройством заменить одновременно два устройства одно из которых предназначено дл  генерации простых цепей Маркова, а второе - дл  генерации многосв зных цепей Маркова. .more complex circuits can be obtained, i.B whose probability of occurrence of the current state of the circuit depends on a given combination of previous states or on a given number of states. In terms of functionality, the proposed device can, at low hardware costs as compared with the known device, simultaneously replace two devices, one of which is designed to generate simple Markov circuits and the second to generate multiple Markov circuits. .

Claims (1)

Формула изобретени Invention Formula Устройство дл  веро тностного моделировани  по авт.св. № 488212, отличающеес  тем,-что, с целью расширени  функциональных возможностей устройства за счет формировани  многосв зных цепей Маркова , оно содержит счетчик, элемент ИЛИ-НЕ, элемент И, сумматор по модулю два, коммутатор и группу элементов И, первые входы которых объединены с первым входом коммутатора и подключены к второму выходурегистра маски, вторые входы элементов И группы объединены с первым входом элемента И, со счетным, входом счетчика и с вторым входом регистра адреса, третий вход которого соединен с выходом элемента И и подключен к выходу элемента ИЛИ-НЕ, входы которого соединены с разр дными выходами счетчика , третий вход коммутатора подключен к выходу сумматора по модулю два, первый и второй входы которого соединены соответственно с выходами элементов И группы и элемента И.Device for probabilistic modeling auth.St. No. 488212, characterized in that, in order to expand the functionality of the device by forming multiple Markov circuits, it contains a counter, an element OR — NOT, an element AND, a modulo two, the switch and a group of elements AND, the first inputs of which are combined with the first input of the switch and connected to the second output of the mask register, the second inputs of the elements AND of the group are combined with the first input of the AND element, with the counting input of the counter and with the second input of the address register, the third input of which is connected to the output of the AND element and connect ene to the output of OR-NO element, whose inputs are connected to the discharge dnymi counter outputs, the third input switch connected to the output of the modulo two adder, the first and second inputs connected respectively to the outputs of the AND elements and group VI
SU802980775A 1980-09-10 1980-09-10 Device for probabilistic simulation SU922707A2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU802980775A SU922707A2 (en) 1980-09-10 1980-09-10 Device for probabilistic simulation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU802980775A SU922707A2 (en) 1980-09-10 1980-09-10 Device for probabilistic simulation

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
SU488212 Addition

Publications (1)

Publication Number Publication Date
SU922707A2 true SU922707A2 (en) 1982-04-23

Family

ID=20917258

Family Applications (1)

Application Number Title Priority Date Filing Date
SU802980775A SU922707A2 (en) 1980-09-10 1980-09-10 Device for probabilistic simulation

Country Status (1)

Country Link
SU (1) SU922707A2 (en)

Similar Documents

Publication Publication Date Title
SU922707A2 (en) Device for probabilistic simulation
JPS6094525A (en) Time division pulse pattern generator
SU1315993A1 (en) Device for simulating graphs
SU708367A1 (en) Device for simulating network diagrams
SU1695289A1 (en) Device for computing continuously-logical functions
SU488212A1 (en) Device for probabilistic modeling
SU1746373A1 (en) Function system generator
SU1213524A1 (en) Pseudorandom sequence generator
SU1377853A1 (en) Random semi-markovian process generator
SU1049903A1 (en) Markovian chain generator
RU1817106C (en) Device for determining difference of sets
SU951668A1 (en) Device for forming pulse trains
SU1660004A1 (en) Microprocessor testing device
SU940165A1 (en) Device for functional conversion of ordered number file
SU1378023A2 (en) Device for shaping pulse trains
SU1539774A1 (en) Pseudorandom series generator
SU1144103A1 (en) Device for ordering numbers
SU1309021A1 (en) Random process generator
SU1298766A1 (en) Device for generating addresses of fast fourier transform processor
SU1659986A1 (en) Linear interpolator
RU1795471C (en) Fast transform processor
SU1675890A1 (en) Test sequencer
SU1405110A1 (en) Reversible pulse counter
SU1499335A1 (en) Adder-accumulator
SU1238068A1 (en) Generator of multidimensional random variables