1 Изобретение относитс к вычислительной технике и может быть исполь зовано в вычислительных системах. Цель изобретени - расширение функциональных возможностей устройства за счет обслуживани запросов , с относительным приоритетом. На чертеже изображена схема устройства . Устройство содержит тактовый вхо 1, дешифратор 2, счетчик 3, элемент ИЛИ 4, элемент 5 задержки, формирователь 6 импульсов, триггер 7, элементы И 8 - 10, элемент НЕ 11, элементы ИЛИ 12 и 13, регистр 14, гру пу 15 запросных входов устройства, группу 16 ответных входов устройства , группу -17 кодовых входов устройства , установочный вход 18,вход 19 запуска устройства, сигнальный выход 20 устройства и группу 21 выходов устройства, регистр. 22, элемент ИЛИ 23, группу элементов И 24 Устройство работает следующим образом. По.сле включени питани дл работы в режиме циклического опроса регистр 14 обнул етс путем подачи соответствующего кода на группу 17 входов. Если же необходимо обслу- . живать запросы с относительным прио ритетом, то в регистр 14 заноситс код номера источника запросов (абонента ) , имеющего наивысший приоритет Пусть абонент с наивысшим приоритетом имеет номер К, тогда по убыванию приоритета абоненты распредел ютс следующим образом: К, К + 1-, К + 2,. . ., 1 ,2,. ,. , К - 1 . Если в регистр 14-записан нулевой код, то по вл етс сигнал на выходе элемента ИЛИ 12, вследствие чего элемент И 9 открываетс , а. элемент И 10 закрываетс . В исходное состо ние устройство .устанавливаетс импульсом по входу 18. При этом триггер 7 и регистр 22 обнул ютс . Кроме того, этот импуль проходит навыход элемента ИЛИ 13, в результауге чего содержимое регист ра 14 переписываетс в счетчик 3. Содержимое счетчика 3 после установки устройства в исходное -сосI тонкие определ ет номер абонента, с которого начнетс поиск запросов. По входам группы 15 в регистр 24 записываютс запросы на обслуживани На вход 1 поступают тактовые импуль сы. Обслуживающее устройство в слу02 чае готовкости к приему запроса на обслуживание подает импульс на вход 19, устанавлива триггер 7 в единичное состо ние, и ждет по влени сигнала на выходе 20,чтобы прочитать номер абонента с группы 21 выходов и начать отработку запроса от этого абонента. В результате установки триггера 7 в единичное состо ние открываетс элемент И 8 и тактовые импульсы начинают проходить через элементы И 8 и ИЛИ 4 на счетный вход счетчика , увеличива его содержимое. Сигналами с выхода дешифратора 2 последовательно опрашиваютс абоненты, запросы от которых хран тс в ре-гистре 22.При нахождении запроса по вл тс сигнал на выходе соответствующего элемента И 24, который через элемент ИЛИ 23 проходит на выход 20. Двоичный код номера абонента, запрос от которого обнаружен, подаетс в обслуживающее устройство через группу 21 выходов. Сигнал с выходд элемента ИЛИ 23 устанавливает триггер 7 в нулевое состо ние, запреща изменение содержимого счетчика 3. По положительному фронту этого же сигнала формирователь 6 выдает импульс, который с задержкой, необходимой дл закрыти элемента И 8, по вл етс на выходе элемента 5. Дальнейша работа устройства определ етс заданным режимом обслуживани абонентов. В случае режима циклического опроса импульс с выхода элемента 5 задержки проходит через элементы И ИЛИ 4, увеличива содержимое счетчика 3 на единицу. В случае обслуживани с относительным приоритетом лмпульс с выхода элемента 5. задержки проходит через элементы И 9 и ИЛИ 13 на управл ющий вход счетчика 3, в результате чего в него из регистра 14 переписываетс код номера наиболее приоритетного абонента.. Обслуженный запрос снимаетс им- . пульсом на соответствующем входе группы 16. Путем подачи импульса на вход 19 новый цикл- опроса начинаетс с опроса абонента, номер которого на единицу больше номера абонента , обслуженного в предьщущем цикле опроса (в случае циклического опроса абонентов), или с опроса абонента , имеющего наивысший приоритет (в случае обслуживани с относительным приоритетом).1 The invention relates to computing and can be used in computing systems. The purpose of the invention is to expand the functionality of the device by servicing requests with relative priority. The drawing shows a diagram of the device. The device contains a clock input 1, a decoder 2, a counter 3, an element OR 4, a delay element 5, a pulse shaper 6, a trigger 7, elements AND 8-10, a element NOT 11, elements OR 12 and 13, a register 14, a group of 15 queries device inputs, a group of 16 device response inputs, a group of 17 device code inputs, a setup input 18, a device start input 19, a device signal output 20 and a device output group 21, a register. 22, the element OR 23, a group of elements AND 24 The device operates as follows. After turning on the power for cyclic polling, register 14 is zeroed by applying the appropriate code to a group of 17 inputs. If you need maintenance. live requests with relative priority, then in register 14 the code of the source of requests (subscriber) with the highest priority is entered. Let the subscriber with the highest priority be number K, then in descending order of priority the subscribers are distributed as follows: K, K + 1-, K + 2 ,. . ., 12,. , , K - 1. If a zero code is written to register 14, a signal appears at the output of the element OR 12, as a result of which the element 9 opens, as well. element 10 is closed. The device is reset to the initial state by a pulse on the input 18. At this, the trigger 7 and the register 22 are zeroed. In addition, this pulse passes through the output of the OR 13 element, as a result of which the contents of register 14 are copied to counter 3. The contents of counter 3 after installing the device into the original A-I channel determine the number of the subscriber from which the search will be started. At the inputs of group 15 to register 24, service requests are recorded. At input 1, clock pulses are received. The servicing device, when ready to receive a service request, sends a pulse to input 19, sets trigger 7 to one, and waits for a signal at output 20 to read the subscriber number from output group 21 and begin processing the request from that subscriber. As a result of the installation of the trigger 7, the element AND 8 opens in a single state and the clock pulses begin to pass through the elements AND 8 and OR 4 to the counting input of the counter, increasing its contents. Signals from the output of the decoder 2 are sequentially polled by subscribers, requests from which are stored in the register 22. When a request is found, a signal appears at the output of the corresponding element AND 24, which passes through the element OR 23 to output 20. The binary code of the subscriber number, the request from which it is detected, is fed into the serving device through a group of 21 outputs. The signal from the output of the element OR 23 sets the trigger 7 to the zero state, prohibiting the contents of the counter 3 from changing. On the positive front of the same signal, the driver 6 generates a pulse, which, with the delay necessary to close the element 8, appears at the output of the element 5. Further operation of the device is determined by the specified mode of customer service. In the case of the cyclic polling mode, the pulse from the output of the delay element 5 passes through the elements AND OR 4, increasing the contents of counter 3 by one. In the case of relative priority service, the impulse from the output of the element 5. The delay passes through the AND 9 and OR 13 elements to the control input of the counter 3, as a result of which the code of the highest priority subscriber number is rewritten from register 14. The served request is removed. pulse on the corresponding input of group 16. By applying a pulse to the input 19, a new polling cycle begins with polling a subscriber whose number is one more than the subscriber number served in the previous polling cycle (in the case of cyclic polling of subscribers), or polling a subscriber with the highest priority (in case of service with relative priority).