[go: up one dir, main page]

SU1485265A1 - Queueing system simulator - Google Patents

Queueing system simulator Download PDF

Info

Publication number
SU1485265A1
SU1485265A1 SU874336938A SU4336938A SU1485265A1 SU 1485265 A1 SU1485265 A1 SU 1485265A1 SU 874336938 A SU874336938 A SU 874336938A SU 4336938 A SU4336938 A SU 4336938A SU 1485265 A1 SU1485265 A1 SU 1485265A1
Authority
SU
USSR - Soviet Union
Prior art keywords
input
output
block
service
generator
Prior art date
Application number
SU874336938A
Other languages
Russian (ru)
Inventor
Leonid F Puchkov
Grigorij A Chernomorov
Aleksej E Shishikin
Original Assignee
Leonid F Puchkov
Grigorij A Chernomorov
Aleksej E Shishikin
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 Leonid F Puchkov, Grigorij A Chernomorov, Aleksej E Shishikin filed Critical Leonid F Puchkov
Priority to SU874336938A priority Critical patent/SU1485265A1/en
Application granted granted Critical
Publication of SU1485265A1 publication Critical patent/SU1485265A1/en

Links

Landscapes

  • Bus Control (AREA)

Description

Изобретение относится к области вычислительной техники. Цель изобрете2The invention relates to the field of computing. Purpose of the invention2

* ния — расширение функциональных возможностей устройства за счет моделирования режима группового поступления заявок в очередь на обслуживание. Устройство содержит блок сдвига, генератор тактовых импульсов, реверсивный счетчик, блок опроса, блок вывода, управляемый генератор заявок, формирователь сигналов разрешения обслуживания, блок элементов запрета, блок прерываний, блок пакетирования. Устройство позволяет моделировать работу систем массового обслуживания с очередями с групповой дисциплиной заявок в очередь и прерывания обслуживания на время поступления заявок в очередь. 4 ил.* Niya - expanding the functionality of the device by simulating the mode of group receipt of applications in the queue for maintenance. The device contains a shift unit, a clock generator, a reversible counter, a polling unit, an output unit, a controlled request generator, a service enable signal generator, a block of bar elements, an interrupt unit, a packetization unit. The device allows you to simulate the work of queuing systems with queues with group discipline of requests to the queue and service interruptions at the time of receipt of applications in the queue. 4 il.

<o

Изобретение относится к вычислительной технике и' может быть использовано для моделирования процессов в системах массового обслуживания (СМО).The invention relates to computing and can be used to simulate processes in queuing systems (QS).

Целью изобретения является расширение функциональных возможностей устройства за счет моделирования режима группового поступления заявок в очередь на обслуживание.The aim of the invention is to expand the functionality of the device due to the simulation of the mode of group receipt of applications in the queue for service.

На фиг. 1 представлена структурная схема устройства; на фиг. 2 — схема блока сдвига; на фиг. 3 — схема блока пакетирования; на фиг. 4 — схема блока прерываний.FIG. 1 shows a block diagram of the device; in fig. 2 - diagram of the shift block; in fig. 3 is a blocking unit diagram; in fig. 4 - block diagram interrupt.

Устройство (фиг. 1) содержит блок 1 сдвига, генератор 2 тактов импульсов, реверсивный счетчик 3, блок 4 опроса, вход 5 предварительной записи, управляемый генератор 6 заявок, формирователь 7 сигналов разрешения обслуживания, блок 8 элементов запрета, блок 9 прерываний, блок 10 пакетирования, вход 11 запуска и установочный вход 12.The device (Fig. 1) contains a shift unit 1, a generator of 2 pulse cycles, a reversible counter 3, a polling block 4, a pre-entry input 5, a controlled generator 6 of applications, a generator of 7 service enable signals, a prohibition block 8, an interrupt block 9, a block 10 palletizing, launch input 11 and setup input 12.

Блок 1 сдвига представляет собой нестандартный вариант регистра сдвига.Block 1 shift is a non-standard version of the shift register.

Регистр 1 сдвига состоит из узла 13 гашения приоритетного разряда, двунаправленного регистра 14 сдвига с последовательным и параллельным занесением, узла 15 определения приоритетного разряда и элемента НЕ 16. Регистр 14 имеет входы последовательного занесения Ώ+ при сдвиге вправо, тактовый счетный вход С, управляющие входы Ει и Ез для выбора режима работы, вход /? — установкиShift register 1 consists of a priority discharge blanking unit 13, a bi-directional shift register 14 with sequential and parallel insertion, a priority discharge determining unit 15 and a NOT element 16. Register 14 has serial input inputs сд + when shifted to the right, clock counter input C, control inputs Ει and Ез to select the mode of operation, input /? - installation

В зависимости от состояния установочных входов Ει, Ег и Ц регистр может работать в различных режимах: последовательного занесения со сдвигом вправо; последовательного занесения со сдвигом влево; параллельного занесения; хранения; установки в «0».Depending on the state of the setup inputs Ει, Ег and Ц, the register can operate in various modes: sequential insertion with a shift to the right; sequential entry with a shift to the left; parallel entry; storage; set to "0".

В режиме последовательного занесения со сдвигом информации вправо на вход Е, подается уровень логического «0», на вход Ег — уровень логической «1». Параллельное занесение информации осуществляется, когда установочные входы находятся в состоянии логической «1».In the sequential-entry mode with a shift of information to the right, to the input E, the logical level “0” is applied, to the input Еg - the logical level “1”. Parallel recording of information is carried out when the installation inputs are in a logical "1" state.

5Ц ,,,.14852655C ,,,. 1485265

14852651485265

Узел 13 гашения приорительного разряда содержит элементы 17 задержки и схемы 18 гашения.The priority discharge blanking unit 13 contains delay elements 17 and blanking circuits 18.

В состав блока сдвига входят элементы ИЛИ 19, элементы И 20 и 21, элементы НЕ 22, элементы И 23, элементы ИЛИ 24, элементы НЕ 25 и элементы И 26.The structure of the shift block includes the elements OR 19, the elements AND 20 and 21, the elements NOT 22, the elements AND 23, the elements OR 24, the elements NOT 25 and the elements AND 26.

Функциональное назначение входов и выходов ' блока 1 сдвига следующее: вход приема тактовых импульсов от генератора 2 (вход С стандартного регистра сдвига); входы приема сигналов опроса от блока 4 опроса; вход приема заявок от блока пакетирования (вход Ώ+ стандартного регистра сдвига); выход сигнала об отсутствии заявок в очереди (выход элемента НЕ 16); выход заявок, подаваемых на обслуживание (выход элемента ИЛИ 19); выход заявок, поступивших на обслуживание, но ввиду наличия очереди заявок либо отсутствия сигнала об окончании обслуживания ранее поступившей заявки, поставленных в очередь на обслуживание (выход Ι-γο разряда регистра сдвига); выход сигнала о превышении фиксированного предела времени пребывания заявки в очереди, т. е. по этому выходу происходит удаление заявок из очереди, ввиду того, что их время ожидания обслуживания превысило предельное значение (выход последнего разряда стандартного регистра сдвига).The functional purpose of the inputs and outputs' of the shift unit 1 is the following: input of clock pulses from generator 2 (input C of the standard shift register); inputs for receiving polling signals from polling unit 4; input of bids from the packetizing unit (input Ώ + standard shift register); the output signal of the absence of applications in the queue (the output of the element is NOT 16); the output of applications submitted for service (the output of the element OR 19); the output of applications received for service, but due to the presence of a queue of requests or the absence of a signal that the service has been completed for a previously received application that have been queued for service (exit shift register discharge Ι-γο); the output signal of exceeding the fixed time limit of the application in the queue, i.e., this output removes requests from the queue, due to the fact that their waiting time for service has exceeded the limit value (output of the last digit of the standard shift register).

Блок 10 пакетирования (фиг. 3) предназначен для обеспечения функционирования устройства в режиме группового поступления заявок в очередь на обслуживание и содержит первый 27 и второй 28 элементы И, триггер 29, датчик 30 кода, первый 31 и второй 32 реверсивные счетчики, первый 33 и второй 34 элементы ИЛИ, выход 35.The packetization unit 10 (FIG. 3) is designed to ensure the operation of the device in the mode of group receipt of requests in the service queue and contains the first 27 and second 28 elements And, the trigger 29, the sensor 30, the first 31 and the second 32 reversing counters, the first 33 and second 34 elements OR, exit 35.

Счетчик 31 служит для объединения заявок в группу. Количество заявок, собираемых в группу, равно двоичному числу, записываемому с датчика кода в реверсивный счетчик.Counter 31 is used to combine the applications in the group. The number of applications collected in the group is equal to the binary number recorded from the code sensor in the reversible counter.

Счетчик 32 служит для подсчета количества тактовых импульсов, необходимых для последовательной постановки в очередь блока сдвига группы заявок.The counter 32 is used to count the number of clock pulses required for sequential queuing of a block of a shift group of requests.

Триггер 29 служит для управления постановкой в очередь блока сдвига группы заявок.The trigger 29 is used to control the queuing of the block shift groups of applications.

Датчик кода 30 в простейшем случае может представлять собой группу клавиш, в зависимости от положения которых на выходах датчика кода может быть уровень логического «0» или логической «1».Sensor code 30 in the simplest case can be a group of keys, depending on the position of which at the outputs of the code sensor there can be a logic level “0” or a logic “1”.

Блок 9 прерываний (фиг. 4) предназначен для обеспечения функционирования устройства в режиме прерывания обслуживания заявок и содержит элемент И—НЕ 36, элемент 37 задержки, реверсивный счетчик 38, элемент ИЛИ 39, элемент НЕ 40, элемент ИЛИ 41, элемент И 42, реверсивный счетчик 43, элемент ИЛИ 44, элемент И 45, переключатель 46, элемент И 47, триггер 48 и датчик 49 кода.Interrupt block 9 (Fig. 4) is designed to ensure the operation of the device in the service interruption mode of requests and contains an AND-HE element 36, a delay element 37, a reversible counter 38, an OR element 39, a NO element 40, an OR element 41, an AND element 42, the reversible counter 43, the element OR 44, the element And 45, the switch 46, the element And 47, the trigger 48 and the sensor 49 code.

Реверсивный счетчик 38 предназначен для подсчета числа неробработанных прерываний, счетчик 43 — для задания времени одного прерывания.Reversible counter 38 is designed to count the number of non-processed interrupts, counter 43 - to set the time for one interrupt.

Датчик 49 кода в простейшем случае может представлять собой группу клавиш, в зависимости от положения которых на выходах датчика кода может быть уровень логического «0» или логической «1».The sensor 49 of the code in the simplest case may be a group of keys, depending on the position of which at the outputs of the code sensor there may be a logic level "0" or a logic level "1".

Устройство работает следующим образом.The device works as follows.

При моделировании разомкнутых СМО с установочного входа 12 устройства на вход блока 8 элементов запрета поступает сигнал, запрещающий прохождение с разрядных выходов реверсивного счетчика 3 на вход управления частотой запуска генератора 6 заявок.When simulating open SMO from the installation input 12 of the device to the input of the block 8 of the elements of the prohibition receives a signal prohibiting the passage from the discharge outputs of the reversible counter 3 to the input of the control frequency of the generator start 6 applications.

При моделировании замкнутых СМО разрешается прохождение сигналов с разрядных выходов реверсивного счетчика 3 на вход управления частотой запуска генератора 6 заявок.When simulating closed QS, the passage of signals from the bit outputs of the reversible counter 3 to the input of the generator start frequency control of 6 applications is permitted.

С выхода генератора 6 заявок поступает поток импульсов, имитирующих поток заявок в СМО. Интенсивность этого потока в процессе моделирования разомкнутых СМО остается постоянной. При моделировании замкнутых СМО интенсивность потока импульсов меняется в зависимости от количества заявок.With the output of the generator 6 applications receives a stream of pulses that simulate the flow of applications in the QS. The intensity of this flow in the process of modeling open QS remains constant. In the simulation of closed QS, the intensity of the flow of pulses varies depending on the number of applications.

Информация о количестве заявок, находящихся в текущий момент времени в системе, хранится в реверсивном счетчике 3.Information on the number of orders currently in the system is stored in the reversible counter 3.

На основе информации, хранящейся в реверсивном счетчике 3 и поступающей через блок элементов запрета на вход управления частотой запуска генератора 6, производится его настройка.On the basis of the information stored in the reversible counter 3 and coming through the block of elements of the prohibition on the input of the frequency control of the generator 6, it is configured.

При моделировании разомкнутых и замкнутых СМО без прерывания обслуживания заявок переключатель 46 блока 9 прерываний находится в положении I. На второй вход элемента И 45 блока прерываний подан уровень логической единицы. Элемент открыт. Импульсы от генератора 2 поступают на блок 7 формирования сигналов разрешения обслуживания.When simulating open and closed QS without interrupting service applications, the switch 46 of the block 9 interrupt is in position I. The level of the logical unit is fed to the second input of the element 45 of the block interrupt. The item is open. The pulses from the generator 2 are received at block 7 of the formation of the signals of the resolution of service.

При моделировании разомкнутых и замкнутых СМО с прерыванием обслуживания заявок переключатель 46 блока 9 прерываний находится в положении ΊΙ. Триггер 48 управляет потоком импульсов от генератора 2 к блоку 7 формирования сигналов разрешения обслуживания.When simulating open and closed QS with the interruption of service applications, the switch 46 of block 9 interrupt is in position. The trigger 48 controls the flow of pulses from the generator 2 to the block 7 of the formation of the signals allow service.

Перед началом работы в этом режиме на датчике 49 кода набирается двоичное число, задающее величину времени одного прерывания. На вход 5 предварительной записи информации подается импульс, по спаду которого по разрядным входам происходит запись двоичной информации с датчика 49 кода в счетчик 43, по фронту им5Before starting work in this mode, a binary number is entered on the code sensor 49, which specifies the amount of time for one interrupt. At the input 5 of the pre-recording of information, an impulse is given, by the decay of which the binary information from the sensor 49 of the code is written to the counter 43, the front of the im5

14852651485265

66

пульса, задержанному с помощью элемента 37 задержки на время срабатывания счетчика 43, элемента ИЛИ 44 и счетчика 38, происходит обнуление последнего. В дальнейшем на входе 5 поддерживается уровень логического нуля. На выходах счетчика 38 и элемента ИЛИ 39 уровень логического нуля, на единичный вход триггера 48 с выхода элемента ИЛИ—НЕ 39 подается уровень логической единицы. Триггер в единичном состоянии. Тактовые импульсы от генератора 2 проходят на блок 7 формирования сигналов разрешения обслуживания.pulse delayed by the delay element 37 at the response time of the counter 43, the element OR 44 and the counter 38, the latter is reset. In the future, at input 5, the level of logic zero is maintained. At the outputs of the counter 38 and the element OR 39, the logic level is zero, the level of the logical unit is supplied to the single input of the trigger 48 from the output of the element OR — NOT 39. The trigger in a single state. The clock pulses from the generator 2 are passed to the block 7 of the formation of the signals allow service.

При моделировании разомкнутых и замкнутых СМО с прерыванием обслуживания заявок в режиме одиночного поступления заявок в очередь на обслуживание на датчике 30 кода блока 10 пакетирования устанавливается двоичный код «0001», что соответствует единице, т. е. количество заявок, сообщаемых в группу, равно единице.When modeling open and closed QS with interruption of service of requests in the mode of single receipt of requests in the service queue, the binary code “0001” is set on sensor 30 of the packetizing unit code 10, which corresponds to one, i.e. the number of applications reported to the group is equal to one .

При моделировании разомкнутых и замкнутых СМО с прерыванием обслуживания заявок в режиме группового поступления заявок в очередь на обслуживание на датчике 30 кода устанавливается двоичный код, равный числу группируемых заявок.When modeling open and closed QS with interruption of service of applications in the mode of group receipt of applications in the service queue, a binary code equal to the number of grouped applications is set on the code sensor 30.

Перед началом работы в этом режиме триггер блока 10 пакетирования (фиг.7) должен быть установлен в нулевое состояние, в счетчики 31 и 32 с датчика кода 30 должно быть записано двоичное число, задающее количество заявок, собираемых в группу (например К).Before starting work in this mode, the trigger of the packetizing unit 10 (FIG. 7) must be set to the zero state; a binary number must be written to the counters 31 and 32 from the sensor code 30, specifying the number of applications collected in the group (for example, K).

Функционирование устройства начинается с того, что на запускающий вход 11 приходит поток импульсов, имитирующих окончание обслуживание очередной заявки и Возможность начала обслуживания следующей. Этот сигнал запоминается в формирователе 7. Также выдается импульс заявки на вход блока 10 пакетирования. По положительному перепаду тактового импульса с генератора 2 (он имитирует текущее время) импульс заявки проходит элемент И 27 и поступает на вычитающий вход счетчика 37, уменьшая его содержимое на единицу. Когда оно станет равным нулю (это означает, что группа из К заявок сформирована), с выхода элемента ИЛИ 33 на вход блока 9 прерываний подается сигнал прерывания в виде отрицательного перепада потенциала. Также этот сигнал подается на вход синхронизации счетчика 31 и по его информационным входам с датчика 30 вновь записывается двоичное число, задающее число группируемых заявок — К. Счетчик 31 готов к приему следующей группы заявок. Одновременно импульс прерывания устанавливает триггер 29 в единичное состояние. На вход ϋ блока I сдвига подается положительный потенциал, по которому в регистр сдвига, моделирующий очередь на обслуживание, с каждым тактовым импульсом будут записываться единицы (заявки). Через К тактовых импульсов в регистр сдвига блока 1 будет записано К заявок, а счетчик 32 блока 10 пакетирования обнулится и отрицательный перепад потенциала с выхода элемента ИЛИ 34 установит триггер 29 в нулевое состояние.The operation of the device begins with the fact that the starting input 11 comes a stream of pulses simulating the end of the maintenance of the next application and the possibility of starting the next service. This signal is stored in the imaging unit 7. An impulse of the application to the input of the packaging unit 10 is also issued. On a positive differential clock pulse from the generator 2 (it simulates the current time) the application pulse passes the element And 27 and enters the subtracting input of the counter 37, reducing its content by one. When it becomes zero (this means that a group of K applications is formed), from the output of the element OR 33 to the input of block 9 interrupt, an interrupt signal is sent in the form of a negative potential difference. Also, this signal is sent to the synchronization input of the counter 31 and, from its information inputs from the sensor 30, a binary number is again recorded indicating the number of applications to be grouped - K. The counter 31 is ready to receive the next group of applications. At the same time, the interrupt pulse sets the trigger 29 to one state. A positive potential is supplied to the input ϋ of the I shift block, by which units (requests) will be written to the shift register, which simulates the service queue, with each clock pulse. Through K clock pulses in the shift register of block 1 will be written To applications, and the counter 32 of the packaging unit 10 will reset and the negative potential drop from the output of the element OR 34 sets the trigger 29 to the zero state.

Постановка заявок в очередь на обслуживание прекратится, пока вновь не будет сформирована следующая группа заявок на К штук. Причем на группу заявок приходится одно прерывание.The submission of applications to the service queue will cease until the next group of applications for K pieces is formed again. And the group of applications has one interruption.

По положительному перепаду тактового импульса с генератора 2 сигнал окончания обслуживания очередной заявки, который был запомнен в формирователе 7, подает ся в реверсивный счетчик 3. Одновременно этот же сигнал запускает блок 4 опроса, который выдает на вход стандартного регистра сдвига (фиг. 2) уровень логического нуля, а с информационных выходов — сигналы опроса (логические «1»),By a positive clock pulse difference from generator 2, the end-of-service signal of the next application, which was stored in shaper 7, is fed to reversible counter 3. Simultaneously, the same signal is triggered by polling unit 4, which provides a level to the input of the standard shift register (Fig. 2) logical zero, and from the information outputs - polling signals (logical "1"),

При наличии сигнала прерывания от блока 10 пакетирования по положительному перепаду тактового импульса от генератора 2 в реверсивный счетчик 38 блока прерываний записывается единица. Триггер 48 находится в единичном состоянии, элемент И 45 открыт, тактовые импульсы с блока 2 проходят на блок 7.In the presence of an interrupt signal from the packetization unit 10, a unit is recorded in the reversing counter 38 of the interrupt block by a positive clock pulse difference from the generator 2. The trigger 48 is in a single state, the element And 45 is open, the clock pulses from block 2 pass to block 7.

При наличии импульса заявки от блока 10 пакетирования по положительному перепаду тактового импульса от генератора 2 регистра сдвига (фиг. 2) осуществляется режим последовательного занесения «1» со сдвигом вправо, а с разрядных выходов в узел 15 поступает двоичная информация в параллельном коде для определения приоритетного разряда стандартного регистра сдвига (это будет первый по порядку, начиная со старшего разряда, содержащий логическую единицу).If there is an application pulse from the packetization unit 10, a positive offset of the clock pulse from the shift register generator 2 (FIG. 2) is followed by a sequential entry mode “1” with a shift to the right, and binary information in the parallel code is sent to the node 15 to determine the priority discharge standard shift register (this will be the first in order, starting with the most significant digit containing the logical unit).

С установленного приоритетного разряда импульс (заявка) через элемент ИЛИ 19 выдается на обслуживание. Таким образом, на обслуживание выбирается требование с наибольшим временем ожидания (дисциплина «Первый пришел — первый обслужен»). Также импульсы поступают соответственно с первого младшего разряда стандартноно регистра к реверсивному счетчику 3 и с выхода элемента НЕ 16 к блоку 7 формирования.From the established priority discharge, an impulse (application) through the element OR 19 is issued for servicing. Thus, the service with the longest waiting time is selected for service (the discipline “First come - first served”). Also, the pulses come respectively from the first low-order digit of the standard register to the reversing counter 3 and from the output of the element NOT 16 to the block 7 of formation.

После обслуживания заявки на запускающий вход 11 поступает сигнал, имитирующий возможность начала обслуживания очёредной заявки, который устанавливает блок формирования в единичное состояние, а триггер 48 блока прерываний в нулевое состояние. Элемент И 45 закрывается, поступление тактовых импульсов на блок 7 прекра7After servicing the application for triggering input 11, a signal is received, imitating the possibility of starting service of the next application, which sets the formation unit to one state, and the trigger 48 of the interrupt unit is in the zero state. Element And 45 is closed, the arrival of the clock pulses on block 7 termination 7

14852651485265

8eight

щается, сигнал разрешения обслуживания очередной заявки на блок опроса не поступает. На вход элемента И 42 с инверсного выхода триггера 48 поступает уровень логической «1», тактовые импульсы списывают содержимое счетчика 43.It appears that the service permission signal of the next request for the polling unit is not received. The input element And 42 with the inverse output of the trigger 48 receives the logical level of "1", the clock pulses write off the contents of the counter 43.

Когда содержимое счетчика 43 станет равным нулю, отрицательный перепад потенциала на выходе элемента ИЛИ 44 подается на вычитающий вход счетчика 38, уменьшая его содержимое на единицу, а также на вход синхронизации счетчика 43 и по его разрядным входам с датчика кода вновь записывается двоичное число, задающее время прерывания.When the contents of counter 43 become zero, the negative potential drop at the output of the element OR 44 is fed to the subtracting input of counter 38, reducing its content by one, as well as to the synchronization input of counter 43 and, using its bit inputs, a binary number is written from the code sensor interruption time.

Таким образом, время одного прерывания составитThus, the time of one interruption will be

Т2 = Ь‘>(,T2 = L ‘> (,

где — время одного прерывания;where is the time of one interruption;

Ζ?2 — двоичное число, подаваемое с датчика кода на входы счетчика 43;Ζ? 2 - a binary number supplied from the sensor code to the inputs of the counter 43;

( — период тактовых импульсов, подаваемых с генератора 2 на вычитающий вход счетчика 43.(- period of clock pulses supplied from the generator 2 to the subtracting input of the counter 43.

Если за время обслуживания текущей заявки в систему поступило несколько заявок или сигналов прерывания (для режима пакетирования), то время обслуживания текущей заявки увеличивается на суммарное время прерываний от всех поступивших заявок или сигналов прерывания следующим образом.If, during the service time of the current request, the system received several requests or interrupt signals (for packaging mode), the service time of the current request is increased by the total time of interruption from all incoming requests or interrupt signals as follows.

При записи числа в счетчик 43 с датчика 49 кода на выходе элемента ИЛИ 44 появляется логическая «1», которая через элемент ИЛИ 41 поступает на вход синхронизации со счетчика 43.When writing the number to the counter 43 from the sensor 49 of the code at the output of the element OR 44, a logical “1” appears, which through the element OR 41 enters the synchronization input from the counter 43.

Процесс списывания информации возобновляется и т. д., пока содержимое счетчика 38 не станет равным нулю, что означает окончание прерываний. На выходе элемента ИЛИ—НЕ 40 появляется уровень логической единицы. Триггер 48 переходит в единичное состояние и прохождение тактовых импульсов на блок 7 возобновляется. Сигнал разрешения обслуживания очередной заявки поступает на блок опроса.The process of writing off information resumes, and so on, until the contents of the counter 38 reaches zero, which means the end of the interrupts. At the output of the element OR — NOT 40, a level of logical units appears. The trigger 48 goes into one state and the passage of clock pulses to block 7 is resumed. Signal permission service next application enters the polling unit.

Таким образом, блок прерываний осуществляет увеличение времени обслуживания текущей заявки на время прерываний.Thus, the interrupt block provides an increase in the service time of the current request for the time of interruption.

После опроса блок 4 подает на вход V) стандартного регистра (фиг. 2) уровень логической единицы (на входе Ег постоянно поддерживается уровень логической «1»).After polling, block 4 supplies the input V) of the standard register (FIG. 2) with the level of a logical unit (the logical level “1” is constantly maintained at the input Er).

В узле 13 регистра 1 сдвига происходит следущее.At node 13 of shift register 1, the following occurs.

На входы 1—8 узла 3 поступает соответственно двоичная информация с выходов регистра 14 и выходов узла 15. В результате работы элементов узла X на входы стандартного регистра 14 в режиме параллельного занесения вносится во всех разрядах информация без изменения за исключением приоритетного разряда, в котором логическая единица обнуляется, т. е. происходит ее гашение.The inputs 1–8 of node 3 receive, respectively, binary information from the outputs of register 14 and the outputs of node 15. As a result of the operation of the elements of node X, the inputs of the standard register 14 in parallel input mode enter information in all bits without change except for the priority digit, in which the logical the unit is reset, i.e. it is extinguished.

Если в момент опроса регистр 1 сдвига пуст, сигнал об этом поступает через элемент НЕ 16 на формирователь 7 с целью повторения опроса в следующем цикле. При наличии положительного перепада тактового импульса этот сигнал проходит через выход устройства и одновременно запускает блок 4 опроса.If at the moment of polling the shift register 1 is empty, a signal about this goes through the element NOT 16 to the driver 7 in order to repeat the poll in the next cycle. If there is a positive difference in the clock pulse, this signal passes through the output of the device and simultaneously starts the polling unit 4.

Таким образом, в процессе работы устройства на реверсивный счетчик 3 постоянно подаются импульсы: на суммирующий вход — с младшего разряда стандартного регистра сдвига (количество заявок, поступивших на обслуживание), на вычитающий вход — от формирователя 7 (количество обслуженных заявок). Поэтому в любой момент времени в реверсивном счетчике 3 содержится инфомация о количестве заявок, находящихся в системе.Thus, in the course of device operation, the reversing counter 3 is constantly fed pulses: to the summing input — from the lower digit of the standard shift register (the number of applications received for service), to the subtracting input — from the former 7 (number of applications served). Therefore, at any time in the reverse counter 3 contains information on the number of applications in the system.

Устройство позволяет моделировать функционирование замкнутых и разомкнутых СМО с прерыванием или без прерывания обслуживания заявок в режиме одиночного или группового поступления заявок на очередь на обслуживание.The device allows you to simulate the operation of closed and open QS with interruption or without interruption of service requests in the mode of single or group receipt of applications for the queue for service.

Claims (1)

Формула изобретенияClaim Устройство для моделирования систем массового обслуживания, содержащее блок сдвига, генератор тактовых импульсов, управляемый генератор заявок, реверсивный счетчик, блок элементов запрета, блок опроса, блок прерываний, формирователь сигналов разрешения обслуживания, информационный вход которого соединен с выходом сигнализации об отсутствии заявок в очереди блока сдвига, тактовый вход которого подключен к первому выходу генератора тактовых импульсов, вход управления сдвигом и группа инфомационных входов блока сдвига соединены с выходами блока опроса, информационный вход которого подключен к первому выходу разрешения опроса формирователя сигналов разрешения обслуживания, выход окончания обслуживания которого соединен с вычитающим входом реверсивного счетчика и является выходом окончания обслуживания заявки устройства, выход первого разряда блока сдвига является выходом заявок, поступивших на обслуживание устройства, и соединен с суммирующим входом реверсивного счетчика, разрядные выходы которого подключены соответственно к информационным входам блока элементов запроса, управляющий вход которого является входом установки режи1485265A device for simulating queuing systems containing a shift unit, a clock pulse generator, a controlled order generator, a reversible counter, an interdiction block, a polling block, an interrupt block, a service resolution driver, the information input of which is connected to the no-call alarm output in the block queue shift, the clock input of which is connected to the first output of the clock pulse generator, the shift control input and the group of information inputs of the shift block are connected to the output Dami polling unit, information input of which is connected to the first output of the polling permission resolution of the driver of the service enable signals, the output of the service exit of which is connected to the subtractive input of the reversible counter and is the output of the service end of the device application, the output of the first digit of the shift unit is and connected to the summing input of the reversible counter, the bit outputs of which are connected respectively to the information inputs of the element comrade query, managing the input of which is the input setting rezhi1485265 10ten ма работы устройства, а выходы блока элементов запрета соединены соответственно с управляющими входами генератора заявок, выход последнего разряда блока сдвига является выходом заявок, исключенных из очереди устройства, входом запуску устройства является вход запуска блока прерываний и формирователя сигналов разрешения обслуживания, выход сигнализации об отсутствии заявок в очереди которого является выходом отсутствия заявок в очереди устройства, информационный выход блока сдвига является выходом подачи заявки на обслуживание устройства, тактовый вход формирователя сигналов разрешения обслуживания соединен с информационным входом блока прерываний, вход предварительной записи информации которого является входом предварительной записи информации устройства, а тактовый вход подключен к второму выходу генератора тактовых импульсов, отличающееся тем, что, с целью расширения функциональных возможностей устройства за счет моделирования режима группового поступления заявок в очередь на обслуживание, оно дополнительно содержит блок пакетирования, состоящий из двух реверсивных счетчиков, двух элементов ИЛИ, датчика кода, триггера и двух элементов И, первый вход первого элемента И соединен с выходом управляемого генератора заявок, второйthe device’s operation, and the outputs of the prohibition block are connected respectively to the control inputs of the request generator, the output of the last digit of the shift block is the output of requests excluded from the device queue, the input to the device start is the start input of the interrupt block and the service permission shaper, the output of the request for no requests the queue of which is the output of the absence of requests in the device queue, the information output of the shift unit is the output of the application for service The clock input of the service resolution driver is connected to the information input of the interrupt unit, the pre-recording input of which is the pre-recording information of the device, and the clock input is connected to the second output of the clock generator, characterized in that the account of the simulation of the mode of group receipt of applications in the service queue, it additionally contains a packetization block consisting of two x reversible counters, two elements OR, code sensor, trigger and two elements AND, the first input of the first element AND is connected to the output of the controlled generator of requests, the second вход подключен к третьему выходу генератора тактовых импульсов и первому входу второго элемента .И, а выход соединен с вычитающим входом первого ревер5 сивного счетчика, суммирующий вход которого подключен к шине единичного потенциала, разрядные входы первого реверсивного счетчика соединены с соответствующими выходами датчика кода и разряд10 ными входами второго реверсивного счетчика, причем установочный вход первого реверсивного счетчика соединен с шиной нулевого потенциала, а разрядные выходы подключены к соответствующим входам первого элемента ИЛИ, выход которогоthe input is connected to the third output of the clock pulse generator and the first input of the second element. And the output is connected to the subtractive input of the first reversing counter, the summing input of which is connected to the potential potential bus, the discharge inputs of the first reversible counter are connected to the corresponding outputs of the code sensor and the discharge 10 the inputs of the second reversible counter, and the installation input of the first reversible counter is connected to the zero potential bus, and the discharge outputs are connected to the corresponding inputs of the transducer Vågå OR gate, the output of which 15 соединен с входом приема заявок блока прерываний, входом синхронизации первого реверсивного счетчика и единичным входом триггера, нулевой вход которого подключен к выходу второго элемента ИЛИ и входу синхронизации второго реверсивного счетчика, а прямой выход триггера соединен с входом приема заявок блока сдвига и вторым входом второго элемента И, выход которого подключен к вычитающему входу второго реверсивного счетчика, суммирую25 щий вход которого соединен с шиной единичного потенциала, установочный вход второго реверсивного счетчика подключен к шине нулевого потенциала, а разрядные выходы соединены с соответствующими входами второго элемента ИЛИ.15 is connected to the input of the receipt of requests of the interrupt unit, the synchronization input of the first reversible counter and the single trigger input, the zero input of which is connected to the output of the second OR element and the synchronization input of the second reversible counter, and the direct output of the trigger block and the second input of the second element And, the output of which is connected to the subtractive input of the second reversible counter, the summing input of which is connected to the single potential bus, the installation input of the second reversible account snip is connected to zero potential bus and the bit outputs are connected to respective inputs of a second OR gate. фцг.1fzg.1 14852651485265 К блоку 3To block 3 Фи г. 2Phi 2 От генератора^From the generator ^ т-1^t-1 ^ От генератFrom the general 2727 30thirty Г*ГG * G 2828 > с> with >*7> * 7 Р1 Ώ2 2Н Ζ» ЯР1 Ώ2 2Н Ζ »ME 3131 Г*G * 3<блоку93 <block9 > & т[л/$еры8ани<1 (К-Н£36)> & t [l / $ ers8ani <1 (K-H £ 36) 8 блоку 18 block 1 сд8иго!О^sd8igo! Oh ^ 3535 3232 1one Я*I* 3939 Фиг.ЗFig.Z 14852651485265
SU874336938A 1987-11-30 1987-11-30 Queueing system simulator SU1485265A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU874336938A SU1485265A1 (en) 1987-11-30 1987-11-30 Queueing system simulator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU874336938A SU1485265A1 (en) 1987-11-30 1987-11-30 Queueing system simulator

Publications (1)

Publication Number Publication Date
SU1485265A1 true SU1485265A1 (en) 1989-06-07

Family

ID=21339625

Family Applications (1)

Application Number Title Priority Date Filing Date
SU874336938A SU1485265A1 (en) 1987-11-30 1987-11-30 Queueing system simulator

Country Status (1)

Country Link
SU (1) SU1485265A1 (en)

Similar Documents

Publication Publication Date Title
SU1485265A1 (en) Queueing system simulator
SU1418740A1 (en) Device for simulating mass service systems
SU1300490A1 (en) Device for simulating the queueing systems
RU1786492C (en) Computer system simulating device
SU1343422A1 (en) Device for simulating the queueing systems
SU974367A2 (en) Data input device
SU1388886A1 (en) Device for simulating queueing systems
SU1644156A1 (en) Multiuser servicing system simulator
SU1488828A1 (en) Computer system simulator
SU1550530A1 (en) Device for modeling queuing systems
SU1223244A1 (en) Device for simulating queueing systems
SU907553A1 (en) Device for simulating process of control of reserves
SU1312599A1 (en) Device for simulating the queueing systems
SU1608791A1 (en) Device for dividing pulse stream into recurring pulse trains
SU1319043A1 (en) Device for simulating the queueing systems
SU1716535A1 (en) Queue system simulator
SU1322246A1 (en) Timer
SU1368887A1 (en) Device for simulating queueing systems
SU1124285A1 (en) Random arrival generator
SU1730643A1 (en) Device for simulation of queueing systems
SU1151982A1 (en) Device for simulating data processing system
SU1485268A1 (en) Computer system simulator
SU1223245A1 (en) Device for simulating queueing systems
RU1783539C (en) Device for modelling of queueing systems
SU1064441A1 (en) Pulse duration former