SU1336003A1 - Program interruption device - Google Patents
Program interruption device Download PDFInfo
- Publication number
- SU1336003A1 SU1336003A1 SU864053265A SU4053265A SU1336003A1 SU 1336003 A1 SU1336003 A1 SU 1336003A1 SU 864053265 A SU864053265 A SU 864053265A SU 4053265 A SU4053265 A SU 4053265A SU 1336003 A1 SU1336003 A1 SU 1336003A1
- Authority
- SU
- USSR - Soviet Union
- Prior art keywords
- input
- group
- output
- elements
- inputs
- Prior art date
Links
Landscapes
- Bus Control (AREA)
Abstract
Изобретение относитс к вычислительной технике и может быть использовано в системах контрол и управлени дл прерывани основной программной последовательности . Цель изобретени - расширение области применени устройства за счет фиксации замаскированных запросов и обслуживани запросов в ограниченный промежуток времени. Устройство содержит регистр прерываний, два регистра маски, шифратор , две группы элементов И, элемент ИЛИ, триггер управлени , три группы элементов И-НЕ, вспомогательный регистр, группу элементов ИЛИ, группу элементов задержки, группу элементов НЕ, элемент ИЛИ-НЕ, два элемента И, элемент задержки и группу последовательных регистров, причем каждый последовательный регистр содержит группу триггеров, группу элементов И-НЕ, группу элементов задержки. Запросы в устройство проход т в зависимости от состо ни первого регистра масок и накапливаютс в последовательных регистрах. Запрос на обслуживание любого запроса может быть временно блокирован вторым регистром маски. В зависимости от режима работы все размаскированные запросы могут быть обслужены либо в соответствии с их приоритетом , либо в течение гарантированного интервала времени. 1 з.п. ф-лы, 3 ил. (Л оо со О5 ОО The invention relates to computing and can be used in monitoring and control systems to interrupt the main program sequence. The purpose of the invention is to expand the field of application of the device by fixing the masked requests and serving the requests for a limited period of time. The device contains an interrupt register, two mask registers, an encoder, two groups of AND elements, an OR element, a control trigger, three groups of AND-NOT elements, an auxiliary register, a group of OR elements, a group of delay elements, a group of NOT elements, an OR-NOT element, two an AND element, a delay element and a group of consecutive registers, each successive register contains a group of triggers, a group of NAND elements, a group of delay elements. Requests to the device are made based on the state of the first register of masks and are accumulated in successive registers. A request to service any request may be temporarily blocked by the second mask register. Depending on the mode of operation, all unmasked requests can be served either in accordance with their priority, or during the guaranteed time interval. 1 hp f-ly, 3 ill. (L oo with O5 OO
Description
Изобретение относитс к вычислительной технике и может быть использовано в системах контрол и управлени дл прерывани основной программной последовательности .The invention relates to computing and can be used in monitoring and control systems to interrupt the main program sequence.
Цель изобретени - расширение области применени устройства за счет фиксации замаскированных запросов и обслуживани запросов в течение ограниченного промежутка времени.The purpose of the invention is to expand the field of application of the device by fixing the masked requests and serving the requests for a limited period of time.
На фиг. 1 изображена функциональна схема устройства дл прерывани программ; на фиг. 2 - функциональна схема последовательного регистра; на фиг. 3 - временные диаграммы сигналов «Требование прерывани , «Чтение и «Предоставление прерывани (диаграммы а, б и в соответственно).FIG. 1 is a functional block diagram of an apparatus for interrupting programs; in fig. 2 - sequential register is functional; in fig. 3 shows timing diagrams of the signals of the Interrupt Request, the Read and the Interrupt Provision (diagrams a, b and c, respectively).
Устройство содержит первый 1 и второй 2 регистры маски группы последовательных регистров 3, группу элементов И-НЕ 4, группу элементов И 5, регистр 6 прерываний , группу элементов 7 задержки, группу элементов И-НЕ 8, группу элементов И 9, группу элементов НЕ 10, группу элементов И-НЕ 11, вспомогательный регистр 12, группу элементов ИЛИ 13, шифратор 14, элементы ИЛИ 15, И 16 и 17 и НЕ 18, элемент 19 задержки, триггер 20 управлени , элемент ИЛИ-НЕ 21, группу 22 информационных входов устройства, первый 23 и второй 24 входы записи устройства, группу запросных входов 25 устройства, группу информационных выходов 26 устройства, выход 27. «Требование прерывани устройства, вход 28 «Представление прерывани устройства, вход 29 «Чтение устройства, входы гарантированного доступа 30 и обслуживани срочных запросов 31 устройства.The device contains the first 1 and second 2 mask registers of the group of consecutive registers 3, the group of elements AND-NOT 4, the group of elements AND 5, the register 6 of interrupts, the group of elements 7 delay, the group of elements AND-NOT 8, the group of elements AND 9, the group of elements NOT 10, group of elements AND-NOT 11, auxiliary register 12, group of elements OR 13, encoder 14, elements OR 15, AND 16 and 17 and NOT 18, delay element 19, control trigger 20, element OR-NOT 21, information group 22 device inputs, the first 23 and second 24 device recording inputs, the group of request inputs 25 mouth oystva, group of information outputs of devices 26, 27. The output "requirement interrupting device, input 28" Presentation of an interrupt apparatus, input 29 "Reading devices, inputs guaranteed access 30 and service 31 query term devices.
Последовательный регистр содержит группу триггеров 32, группу элементов И 33, группу элементов 34 задержки, группу элементов И-НЕ 35, информационный вход 36 последовательного регистра, выход 37 после довательного регистра, вход 38 режима последовательного регистра.The serial register contains the group of triggers 32, the group of elements AND 33, the group of elements 34 of delay, the group of elements AND-NOT 35, the information input 36 of the serial register, the output 37 of the sequential register, the input 38 of the mode of the serial register.
Устройство работает следуюш,им образом.The device works in the following way.
Перед началом работы все триггеры последовательных регистров и разр ды регистра прерывани устанавливаютс в ноль (цепи установки в ноль не показаны). В регистры 1 и 2 масок заноситс соответ- ствуюш,а информаци , причем единичное состо ние какого-либо разр да регистра 1 маски запреш,ает прохождение соответствующего запроса на выход устройства, при этом соответствующие запросы накапливаютс и будут обслужены после размас- кировани соответствующего разр да регистра 1 маски. Единичное состо ние какого-либо разр да регистра 2 маски запрещает прохождение запросов на вход устройства и после размаскировани этого разр даBefore starting, all triggers of consecutive registers and bits of the interrupt register are set to zero (setting chains to zero are not shown). Registers 1 and 2 of the masks are recorded accordingly, and the information, the unit state of any bit of register 1 of the mask prohibits the passage of the corresponding request to the output of the device, while the corresponding requests are accumulated and will be served after unmasking yes register 1 mask. The unit state of any bit of register 2 masks prohibits the passage of requests for device input even after unmasking this bit
10ten
1515
2020
2525
30thirty
3535
4040
4545
5050
5555
ранее прищедшие запросы обслуживатьс не будут.previously received requests will not be serviced.
Запрос на прерывание приходит на соответствующий вход 25 высоким потенциалом и (если в данном разр де регистра 2 маски записан 0), на выходе соответствующего элемента И-НЕ 4 по вл етс ноль и первый триггер 32 соответствующего последовательного регистра 3 устанавливаетс в единичное состо ние. После сн ти сигнала данного запроса на выходе элемента И-НЕ 4 по вл етс единица и на выходе первого элемента И 33 последовательного регистра образуетс единичный сигнал , передний фронт которого устанавливает второй триггер 32 последовательного регистра в единичное состо ние.The interrupt request arrives at the corresponding input 25 with a high potential and (if the mask in this register register 2 is 0), the output of the corresponding AND-NOT 4 element is zero and the first trigger 32 of the corresponding sequential register 3 is set to one. After the removal of the signal of the given request, a unit appears at the output of the NAND 4 element and at the output of the first element I 33 of the sequential register a single signal is formed, the leading edge of which sets the second trigger 32 of the sequential register to the 1 state.
По вление единицы на пр мом выходе второго триггера 32 последовательного регистра вызывает по вление единичного сигнала на выходе второго элемента И 33 последовательного регистра, что вызывает установку в единицу второго триггера 32 последовательного регистра. Кроме того, единичный сигнал на пр мом выходе второго триггера 32 последовательного регистра вызывает по вление нул на выходе первого элемента И-НЕ 35 последовательного регистра , который устанавливает в ноль первый триггер 32 последовательного регистра. Далее процесс повтор етс и запрос записываетс в соответствующий разр д регистра 6 прерываний. Если второй запрос по этому же входу устройства придет до того, как будет обслужен первый запрос, он будет занесен в последний триггер 32 регистра 3, третий запрос - в предпоследний триггер 32 и т.д.The occurrence of a unit at the direct output of the second trigger 32 of the sequential register causes the appearance of a single signal at the output of the second element And 33 of the sequential register, which causes the second trigger 32 of the sequential register to be set to the unit. In addition, a single signal at the forward output of the second flip-flop 32 of the sequential register causes the appearance of a zero at the output of the first AND-NO element 35 of the sequential register, which sets to zero the first flip-flop 32 of the sequential register. The process is then repeated and the request is written to the corresponding register register 6 of the interrupts. If the second request for the same input of the device comes before the first request is served, it will be recorded in the last trigger 32 of register 3, the third request in the penultimate trigger 32, and so on.
Если этот запрос не замаскирован (в соответствующем разр де регистра 1 маски хранитс ноль), на выходе соответствующего элемента И 9 по вл етс единичный сигнал, который через элементы ИЛИ 15 и И 17 вызывает по вление на выходе 27 устройства сигнала «Требование прерывани .If this request is not masked (zero is stored in the corresponding mask register register 1), a single signal appears at the output of the corresponding element AND 9, which, through the elements OR 15 and AND 17, causes the signal "Interruption request."
Рассмотрим работу устройства в режиме обслуживани срочных запросов, когда триггер 20 управлени предварительно установлен в единичное состо ние.Consider the operation of the device in the service mode of urgent requests when the control trigger 20 is pre-set to one.
В этом режиме после выдачи устройством сигнала «Требование прерывани запросы по другим каналам продолжают поступать в регистр 6 прерывани .In this mode, after the device issues a signal "Interruption request, requests on other channels continue to enter the interrupt register 6.
В ответ на сигнал «Требование прерывани ЭВМ последовательно выставл ет сигналы «Чтение и «Предоставление прерывани , которые поступают соответственно на входы 29 и 28 устройства. По вление сигнала «Чтение вызывает по вление нул на выходе элемента ИЛИ-НЕ 21, который запрещает дальнейшее прохождение запросов в регистр 6 прерывани с целью предотвратить возможное изменение кода прерывани на группе выходов 26 устройства в момент выдачи.In response to the signal, the Computer Interrupt Requirement sequentially exposes the Read and Provide Interrupt signals, which are received respectively at the inputs 29 and 28 of the device. The occurrence of the read signal causes the appearance of a zero at the output of the OR-NO 21 element, which prohibits further passage of requests to the interrupt register 6 in order to prevent a possible change of the interrupt code on the group of outputs 26 of the device at the time of issue.
По вление сигнала «Предоставление прерывани на входе 28 устройства через элемент НЕ 18 и элемент И 17 вызывает сн тие с выхода 27 устройства сигнала «Требование прерывани . Кроме того, по влен-ие единичного сигнала «Предоставление прерывани на соответствующих входах элементов И-НЕ 11 группы вызывает по вление нул на выходе того из элементов И-НЕ 11 группы, который соответствует наиболее приоритетному запросу из числа хран щихс в регистре б прерываний. Нулевой сигнал с выхода элемента И-НЕ 11 вызывает установку в единицу соответствующего разр да вспомогательного регистра 12 и по вление кода прерывани на группе информационных выходов 26 устройства.The appearance of the signal "Provision of an interrupt at the input 28 of the device through the element HE 18 and the element AND 17 causes the output of the signal 27 Demand Interrupt from the device 27 to be removed. In addition, the occurrence of a single signal. The provision of an interrupt at the corresponding inputs of the elements of the AND-NO 11 group causes the appearance of a zero at the output of that of the elements of the IS-NO 11 group, which corresponds to the highest priority request from the number of interrupts stored in register b. A zero signal from the output of the NANDI element 11 causes the corresponding bit of the auxiliary register 12 to be set to a unit and the interrupt code to appear on the information output group 26 of the device.
Управл юща ЭВМ, прин в код прерывани , снимает сигнал «Чтение, а затем сигнал «Предоставление прерывани .The control computer, having received the interrupt code, removes the read signal and then the interrupt grant signal.
По вление нулевого сигнала на входе 28 устройства «Предоставление прерывани вызывает сн тие кода прерывани с группы информационных выходов 26 устройства и вызывает по вление нулевого сигнала на выходе соответствующего элемента ИЛИ 13 группы.The appearance of a zero signal at the device input 28 "Providing an interrupt causes the interrupt code to be removed from the group of information outputs 26 of the device and causes the appearance of a zero signal at the output of the corresponding element OR 13 of the group.
Нулевой сигнал с выхода элемента ИЛИ 13 группы вызывает сброс соответствующего разр да регистра 6 прерываний и обеспечивает по вление нулевого сигнала на выходе соответствующего элемента И 5 группы , обеспечива тем самым подготовку соответствующего разр да регистра 6 прерываний к приему следующего запроса.A zero signal from the output of an element OR 13 of a group causes a reset of the corresponding register register 6 of interrupts and ensures the appearance of a zero signal at the output of the corresponding element AND 5 of the group, thereby preparing the corresponding register register 6 of interruptions to receive the next request.
Нулевой сигнал с пр мого выхода обслуженного разр да регистра 6 прерываний вызывает установку в ноль соответствующего разр да вспомогательного регистра 12, что приводит к по влению единицы на выходе соответствующего элемента ИЛИ 13 группы. При наличии необслуженных запросов в данном последовательном регистре 3 на выходе соответствующего элемента И 5 группы по вл етс единичный сигнал, передний фронт которого устанавливает соответствующий разр д регистра 6 прерываний .The zero signal from the direct output of the serviced bit of the register 6 interrupts causes the corresponding bit of the auxiliary register 12 to be set to zero, which leads to the appearance of a unit at the output of the corresponding element OR 13 of the group. If there are unserved requests in this sequential register 3, a single signal appears at the output of the corresponding element AND 5 of the group, the leading edge of which sets the corresponding register bit 6 of the interrupts.
Переход в единицу разр да регистра 6 прерываний вызывает по вление нулевого сигнала на выходе соответствующего элемента И-НЕ 8 группы, который устанавливает в ноль последний триггер 32 последовательного р егистра и вызывает по вление нул на выходе последнего элемента И 33 последовательного регистра, подготавлива тем самым последний триггер 32 регистра 3 к записи следующего запроса . После перехода элемента И-НЕ 8 группы в единичное состо ние (длительность импульса определ етс параметрами элемента 7 задержки) последний триггер 32 последовательного регистра переходит в единичное состо ние (при наличии единицы в предпоследнем триггере 32 регистра 3) и на выходе последнего элемента И-НЕ 35 регистра 3 по вл етс ноль. Далее процесс повтор етс аналогичным образом. В результате все запросы, запи- санные в регистр 3, сдвигаютс вправо.The transition to the unit of the register register 6 interrupts causes the appearance of a zero signal at the output of the corresponding element of the IS-NO 8 group, which sets to zero the last trigger 32 of the sequential register and causes the appearance of a zero at the output of the last element AND 33 of the sequential register, thus preparing The last trigger 32 registers 3 to write the next request. After a group IS-NE element 8 transitions to the one state (the pulse duration is determined by the parameters of the delay element 7), the last trigger 32 of the sequential register goes to the one state (if there is one in the penultimate trigger 32 of the register 3) and at the output of the last I- element NOT 35 register 3 appears zero. The process is then repeated in the same way. As a result, all requests written to register 3 are shifted to the right.
Запись в остальные регистры 3 происходит аналогично. В результате в регистре 6 прерывани по в тс единицы н на выходе 27Writing to the other registers 3 is similar. As a result, in register 6, the interrupts are in cc units n at output 27
Q устройства вновь по витс сигнал «Требование прерывани . Элемент 19 задержки служит дл предотвращени выдачи сигнала «Требование прерывани прежде, чем будет установлен в ноль разр д регистра 6 прерывани , соответствующий обслуженному зап5 росу.The Q device again receives the interrupt request signal. Delay element 19 serves to prevent the "Interrupt request" signal from being issued before the bit of the interrupt register register 6 is set to zero, corresponding to the serviced demand.
В новом цикле обслуживани на информационных выходах 26 устройства будет выдан код прерывани , соответствующий наиболее приоритетному запросу, прищедшему на вход регистра 6 прерываний до по вле ни нового сигнала «Чтение.In the new service cycle, at the information outputs 26 of the device, an interrupt code will be issued, corresponding to the most priority request that has been detected at the input of the interrupt register 6 before receiving a new read signal.
Таким образом, в режиме обслуживани срочных запросов в каждом цикле обслуживани будет выдаватьс код прерывани наиболее приоритетного запроса, т.е.Thus, in the service mode of urgent requests, in each service cycle, the highest priority request interrupt code will be issued, i.e.
5 запросы с меньщим приоритетом не будут обслуживатьс , пока не будут обслужены все запросы с более высоким приоритетом.5, requests with lower priority will not be serviced until all requests with higher priority have been served.
В режиме предоставлени гарантированного доступа триггер 20 управлени In the mode of providing guaranteed access control trigger 20
0 устанавливаетс в ноль. Работа устройства до момента записи информации в регистр 6 прерываний происходит аналогично работе устройства в режиме гарантированного доступа . При по влении в регистре прерывани какого-либо незамаскированного запро5 са на выходе элемента И 16 по вл етс единица , котора вызывает по вление нул на выходе элемента ИЛИ-НЕ 21. Нулевой сигнал с выхода элемента ИЛИ-НЕ 21 запирает группу элементов И 5, запреща даль- нейщую запись в регистр 6 прерываний.0 is set to zero. The operation of the device until the recording of information in the register 6 interrupts occurs similarly to the operation of the device in the mode of guaranteed access. When an unmasked request appears in the interrupt register at the output of the AND 16 element, a unit appears that causes the appearance of a zero at the output of the OR-NOT 21 element. A zero signal from the output of the OR-NOT 21 element locks the group of AND 5 elements prohibiting a further entry in the register of 6 interrupts.
0 После обслуживани данного запроса соответствующий разр д регистра 6 прерываний обнул етс , на выходах элементов ИЛИ 15 и И 16 по вл ютс нули, на выходе элемента ИЛИ-НЕ 21 - единица, котора разрещает запись в регистр 6 прерываний. При этом в единичное состо ние перейдут те разр ды регистра 6 прерываний, в каналах которых присутствуют запросы на прерывание .0 After servicing this request, the corresponding register bit 6 of the interrupts is zeroed, the outputs of the OR 15 and AND 16 elements appear zero, the output of the OR-NE 21 element is the unit that allows writing to the interrupt register 6. In this case, those bits in the register 6 of the interrupts, in the channels of which there are interrupt requests, will go to the unit state.
Если среди прин тых запросов есть неQ замаскированные, на выходах элементов ИЛИ 15 и И 16 снова по вл ютс единицы, на выходе элемента ИЛИ-НЕ 21 - ноль и дальнейша запись в регистр 6 прерываний будет запрещена до тех пор, пока не будет обслужен последний незамаскирован5 ный запрос в регистре 6 прерываний. После этого цикл повторитс и в регистр 6 прерываний запищетс нова сери запросов .If among the received requests there are not Q masked ones, units appear at the outputs of the OR 15 and AND 16 elements, the output of the OR-NOT element 21 is zero, and further writing to the interrupt register 6 will be prohibited until the last unmasked 5 request in register 6 interrupts. After that, the cycle is repeated and a new series of requests is stored in the interrupt register 6.
Таким образом, при работе устройства в режиме гарантированного доступа любой незамаскированный запрос через определенное врем вызовет прерывание программ независимо от интенсивности потока за вок с более высоким приоритетом.Thus, when the device operates in the guaranteed access mode, any unguarded request after a certain time will cause the programs to be interrupted regardless of the flow rate of applications with a higher priority.
Claims (2)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU864053265A SU1336003A1 (en) | 1986-04-08 | 1986-04-08 | Program interruption device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU864053265A SU1336003A1 (en) | 1986-04-08 | 1986-04-08 | Program interruption device |
Publications (1)
Publication Number | Publication Date |
---|---|
SU1336003A1 true SU1336003A1 (en) | 1987-09-07 |
Family
ID=21232452
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
SU864053265A SU1336003A1 (en) | 1986-04-08 | 1986-04-08 | Program interruption device |
Country Status (1)
Country | Link |
---|---|
SU (1) | SU1336003A1 (en) |
-
1986
- 1986-04-08 SU SU864053265A patent/SU1336003A1/en active
Non-Patent Citations (1)
Title |
---|
Авторское свидетельство СССР № 525094, кл. G 06 F 9/46, 1974. Авторское свидетельство СССР № 855665, кл. G 06 F 9/46, 1979. * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
SU1336003A1 (en) | Program interruption device | |
SU1084794A1 (en) | Device for servicing requests according to arrival order | |
SU1425636A1 (en) | Data input device | |
SU1096645A1 (en) | Multichannel device for priority pulse selection | |
SU1361552A1 (en) | Multichannel priority device | |
SU1251055A1 (en) | Synchronizing device | |
SU1288698A1 (en) | Dynamic priority device | |
SU1174919A1 (en) | Device for comparing numbers | |
SU1684794A1 (en) | Communication channel input device | |
SU1260956A1 (en) | Priority device | |
SU1260958A1 (en) | Multichannel device for priority control | |
SU1310802A1 (en) | Device for comparing numbers | |
SU1257646A1 (en) | Multichannel device for connecting the using equipment with common bus | |
SU1288697A1 (en) | Device for controlling in response to time intervals | |
SU1325462A1 (en) | Device for sorting binary numbers | |
SU1200269A2 (en) | Multichannel program-time device | |
SU1319034A1 (en) | Multichannel device for servicing interrogations | |
SU1213494A1 (en) | Device for reception of code information | |
SU1357939A1 (en) | Timer | |
SU1367163A1 (en) | Binary serial code to unit-counting code converter | |
SU970367A1 (en) | Microprogram control device | |
SU1249517A1 (en) | Interrupting device | |
SU1274126A1 (en) | Variable pulse sequence generator | |
SU1377843A1 (en) | Code ring oscillator | |
SU1709293A2 (en) | Device for information input |