SU1341640A1 - Interruption signal forming device - Google Patents
Interruption signal forming device Download PDFInfo
- Publication number
- SU1341640A1 SU1341640A1 SU864068258A SU4068258A SU1341640A1 SU 1341640 A1 SU1341640 A1 SU 1341640A1 SU 864068258 A SU864068258 A SU 864068258A SU 4068258 A SU4068258 A SU 4068258A SU 1341640 A1 SU1341640 A1 SU 1341640A1
- Authority
- SU
- USSR - Soviet Union
- Prior art keywords
- output
- input
- group
- register
- inputs
- Prior art date
Links
Landscapes
- Bus Control (AREA)
Abstract
Изобретение относитс к автома-, тике и вычислительной технике и может быть использовано при проектировании вычислительных систем. Цель изобретени - повьшение быстродействи путем уменьшени времени реакции на запрос более низкого приоритета после обслуживани прерьшани более -o20 с (Л 00 4 05 4The invention relates to automatics, computing and computing, and can be used in the design of computing systems. The purpose of the invention is to increase the speed by reducing the response time to a request of lower priority after servicing a shutdown over-o20 s (L 00 4 05 4
Description
высокого приоритета. Устройство-дл формировани сигналов прерываний содержит регистр 1 прерьюаний, регистр 2 кода периферийного устройства, п элементов 3 запрета (п - число запросных входов устройства), п-1 элементов ИЛИ 4, мультиплексор 5, генератор 6 импульсов, первый - третий триггеры 7-9, дешифратор tO, приори1high priority. The device for generating interrupt signals contains a register of 1 interruption, a register 2 of a peripheral device, n prohibition elements 3 (n is the number of device request inputs), n-1 elements OR 4, multiplexer 5, a generator of 6 pulses, the first - third triggers 7- 9, tO decoder, prior1
Изобретение относитс к автоматике и вычислительной технике и может быть использовано при проектировании вычислительных систем.The invention relates to automation and computing and can be used in the design of computing systems.
Цель изобретени - повышение быстродействи устройства.The purpose of the invention is to increase the speed of the device.
На чертеже приведена функционгшь- на схема устройства.The drawing shows the functional scheme of the device.
Устройство содержит регистр 1 прерываний с выходами 1.1-1.п, регистр 2 кода прерывающего устройства, группу запрета 3.1-З.п, элементы ИЛИ 4.1- 4.(п-1), мультиплексор 5, генератор 6 импульсов с первым - третьим выходами 6..3, первый - третий триггеры 7-9, дешифратор 10 с первым - п-м выходами 10.1-IO.n, приоритетный шифратор 11, первый - третий элементы И 12-14, элемент ИЛИ-НЕ 15, вход 16 циклического опроса устройства, вход 17 готовности устройства, входы 18 прерьшаний устройства, выход 19 кода периферийного устройства, выход 20 сигнала прерывани устройства .The device contains the interrupt register 1 with outputs 1.1-1.p, register 2 of the interrupter device code, prohibition group 3.1-З.п, OR elements 4.1-4. (P-1), multiplexer 5, generator of 6 pulses with the first - third outputs 6..3, the first - the third trigger 7-9, the decoder 10 with the first - nth outputs 10.1-IO.n, the priority encoder 11, the first - the third elements And 12-14, the element OR-NOT 15, the input 16 of the cyclic device polling, device readiness input 17, device fault 18 inputs, peripheral device code output 19, device interrupt signal output 20.
Приоритетньш шифратор 11 служит дл формировани кода периферийного устройства, требующего прерьшаний, имеющего в текущий момент времени наивысший приоритет, и может быть выполнен, например, на базе микросхемы К 580 ИВ 165. Например, дл таблица соответстви , описывающа функционирование шифратора 11 имеет следующий вид.The priority encoder 11 is used to form the peripheral device code requiring interruptions, which currently has the highest priority, and can be performed, for example, on the basis of the K 580 IV 165 chip. For example, the correspondence table describing the operation of the encoder 11 has the following form.
Входные сигналы О 001Input Signals O 001
1. Выходные сигналы1. Output signals
О 1About 1
ОABOUT
О 1About 1
ОABOUT
1 О1 o
тетный шифратор 11, первый - третий элементы И 12-14, элемент ИЛИ-НЕ 15, Устройство позвол ет уменьшить врем реакции на запрос более низкого приоритета после обслуживани прерывани более высокого приоритета и может работать как в режиме приоритета опроса, так и в режиме циклического опроса, 1 ил., 1 табл.the tether encoder 11, the first is the third element AND 12-14, the element OR NOT 15, the device allows to reduce the response time to a request of a lower priority after serving a higher priority interrupt and can operate both in the polling priority mode and in the cyclic mode survey, 1 Il., 1 tab.
Продолжение таблицыTable continuation
д q .q q.
Входные сигналы Выходные сигналыInput Signals Output Signals
Устройство дл обработки прерьшаний может работать в режимах: приоритетный опрос; циклический опрос. В режиме приоритетного опроса наThe device for treating crashes can operate in the following modes: priority polling; cyclical survey. In the priority poll mode on
входе 16 сигнал отсутствует. Генератор 6 формирует на выходах 6.1-6.3 последовательности импульсов Т 1, Т 2 и Т 3. По первому импульсу последовательности Т1 подтверждаетс нулевое состо ние триггера 8, а триггер 7 переходит в единичное состо ние, такinput 16 no signal. The generator 6 generates at the outputs 6.1-6.3 a sequence of pulses T 1, T 2 and T 3. The first pulse of the sequence T1 confirms the zero state of the trigger 8, and the trigger 7 goes into the single state, so
как на D-вход последнего с входа 17 поступает сигнал. Кроме того, в регистр 1 с входов 18 записываютс сигналы прерываний, которые поступают н информационные входы мультиплексора 5 и на первые входы элементов запрета 3.1-З.п (сигнал с выхода 1.1. регистра 1 поступает на первьш вход элемента запрета 3.1 и т.д.).as the D input last from input 17 receives a signal. In addition, the register 1 from the inputs 18 records the interrupt signals that go to the information inputs of the multiplexer 5 and to the first inputs of the prohibition elements 3.1-Z.p (the signal from the output 1.1. Of the register 1 goes to the first input of the prohibition element 3.1, etc. .).
Так как после включени устройства все его элементы пам ти (триггеры 7, 8 и 9 и регистры 1 и 2) наход тс в нулевом состо нии, то после первого импульса последовательности Т1 (при наличии сигнала на входе 17) триггер 7 переходит в единичное состо ние и в регистр 1 записываютс запросы на прерывание. Сигналы с выходов регистра 1, соответствующих периферийным устройствам, требующим в текущий момент времени прерьша- ни процессора, через открытые по второму входу соответствующие элементы запрета 3.1-З.п поступают на приоритетный шифратор 11. Например, если требуют обслуживани третье и п тое периферийные устройства, то в 3 и 5 разр дах регистра 1 записаны единичные сигналы, которые через элементыSince after switching on the device all its memory elements (triggers 7, 8, and 9 and registers 1 and 2) are in the zero state, after the first pulse of the T1 sequence (if there is a signal at input 17), the trigger 7 goes to the single state and in register 1 interrupt requests are written. The signals from the outputs of register 1 corresponding to peripheral devices requiring processor faults at the current time, through open on the second input, the corresponding prohibition elements 3.1-З.п are fed to the priority encoder 11. For example, if third and fifth peripheral devices require service , then in the 3rd and 5th bits of register 1 are recorded single signals, which, through the elements
запрета 3.3 и 3.5 поступают на шифра-30 отсутствуют). Так как триггер 7 тор 11. Шифратор 11 на своих выходах формирует код периферийного устройства с наивысшим приоритетом, требующего в текущий момент прерьшани проВ процессе обработки прерывани устройство функционирует следующим образом. Прерывающее устройство, к обслз иванию которого приступает процессор, снимает сигнал прерывани с входов 18 устройства. При поступлении импульсов последовательности Т 1 в регистр 1 записываютс сигналы прерываний от периферийных устройств и триггеры 7 и 8 переход т в нулевое состо ние (сигналы на входах 16 и 17prohibitions 3.3 and 3.5 are received on cipher-30 are absent). Since the trigger 7 is a torus 11. The encoder 11 at its outputs generates the code of the peripheral device with the highest priority, which requires that the device be interrupted at the current moment. During the interrupt processing process, the device operates as follows. The interrupting device, which the processor starts servicing, removes the interrupt signal from the device inputs 18. When pulses of the T 1 sequence are received, register 1 records interrupt signals from peripheral devices and triggers 7 and 8 go to the zero state (signals at inputs 16 and 17
находитс в нулевом состо нии, то импульсы последовательностей Т 2, ТЗ на выходы элементов И 12 и 13 не поступают. На выходе 20 сигнал отцессора (дл рассматриваемого приме- 35 выходе 19 информаци is in the zero state, then the pulses of the sequences T 2, TZ are not received at the outputs of the elements 12 and 13. At the output 20, the signal of the processor (for the considered application 35 output 19 information
ра в соответствии с таблицей на выходе шифратора 11 формируетс код 011). С выхода шифратора 11 код поступает на D-входы регистра 2 и на входы элемента ИЛИ-НЕ 15.40In accordance with the table at the output of the encoder 11, a code 011 is formed). From the output of the encoder 11, the code goes to the D-inputs of the register 2 and to the inputs of the element OR NOT 15.40
При поступлении с выхода 6.2 генератора 6 первого импульса последовательности Т2 на выходе элемента И 12 по вл етс импульс. Этот им- 5 пульс поступает на вход синхронизации триггера 9 и подтверждает нулевое состо ние последнего (на D-вход триггера 9 поступает нулевой сигнал).Upon receipt from output 6.2 of the generator 6 of the first pulse of the sequence T2, an pulse appears at the output of the element 12. This pulse is fed to the trigger synchronization input of trigger 9 and confirms the zero state of the latter (the zero signal arrives at the D input of trigger 9).
При цоступлении с выхода 6.3 гене- о ратора 6 первого импульса последовательности ТЗ на выходе элемента И 13 по вл етс импульс, открьшающий по заднему фронту регистр 2. При этом в регистр 2 с выходов шифратора 11 за- письшаетс код периферийного устройства с наивысшим приоритетом, требующего прерьшани . С выходов регистра 2 код поступает на выход 19 устройст55Upon receipt of output 6.3 of the generator 6 of the first pulse of the sequence of the TZ, a pulse opens at the falling edge of the T3 output element. At the same time, the code of the peripheral device with the highest priority is written to register 2 from the outputs of the encoder 11 requiring perryshan. From the outputs of register 2, the code goes to output 19 of the device
OO
0 отсутствуют). Так как триггер 7 0 are missing). Since trigger 7
ва, на управл ющий вход мультиплексора 5 и на дешифратор 10. При этом сигнал запроса прерывани от периферийного устройства с наивысшим приоритетом с соответствующего выхода 1.i регистра 1 через мультиплексор 5 поступает на выход 20 устройства.va, to the control input of the multiplexer 5 and to the decoder 10. At the same time, the interrupt request signal from the peripheral device with the highest priority from the corresponding output 1.i of register 1 through the multiplexer 5 enters the output 20 of the device.
Дл рассмотренного вьш1е примера в регистр 2 записьгоаетс код 011, а сигнал с выхода 1.3 регистра 1 поступает через мультиплексор 5 на выход 20 устройства. Получив с выхода 20 устройства сигнал прерывани , а с выхода 19 код прерывающего пери- 5 ферийного устройства, процессор снимает сигнал готовности с входа 17 устройства и приступает к обработке прерьшани .For the example considered above, the register 2 records the code 011, and the signal from the output 1.3 of the register 1 enters through the multiplexer 5 to the output 20 of the device. After receiving the interrupt signal from the device output 20, and the code of the interrupting peripheral device from output 19, the processor removes the ready signal from the device input 17 and proceeds to processing the signal.
В процессе обработки прерывани устройство функционирует следующим образом. Прерывающее устройство, к обслз иванию которого приступает процессор, снимает сигнал прерывани с входов 18 устройства. При поступлении импульсов последовательности Т 1 в регистр 1 записываютс сигналы прерываний от периферийных устройств и триггеры 7 и 8 переход т в нулевое состо ние (сигналы на входах 16 и 17During interrupt processing, the device operates as follows. The interrupting device, which the processor starts servicing, removes the interrupt signal from the device inputs 18. When pulses of the T 1 sequence are received, register 1 records interrupt signals from peripheral devices and triggers 7 and 8 go to the zero state (signals at inputs 16 and 17
находитс в нулевом состо нии, то импульсы последовательностей Т 2, ТЗ на выходы элементов И 12 и 13 не поступают. На выходе 20 сигнал от0is in the zero state, then the pulses of the sequences T 2, TZ are not received at the outputs of the elements 12 and 13. At output 20, a signal from 0
5five
00
5 five
о about
5five
не измен етс .does not change.
После обработки прерывани процессор выдает на вход 17 сигнал готовности к обработке очередных прерываний . При поступлении очередного импульса- последовательности Т1 триггер 7 переходит в единичное состо ние и устройство приступает к обработке следующего прерывани от периферийного устройства, имеющего в текущий момент времени наивысший приоритет .After the interrupt processing, the processor issues a ready signal to the processing of the next interrupts to the input 17. Upon receipt of the next pulse sequence T1, the trigger 7 goes into one state and the device proceeds to process the next interrupt from the peripheral device having the highest priority at the current time.
При отсутствии сигналов прерывани от периферийных устройств на выходе шифратора 11, а следовательно, и на выходах 19 и 20 устройства сигналы отсутствуют.In the absence of interrupt signals from peripheral devices at the output of the encoder 11, and consequently, at the outputs 19 and 20 of the device, there are no signals.
В режиме циклического опроса устройство функционирует следующим образом . При готовности процессора к обслуживанию прерьшаний на входы 16 и 17 поступают сигналы готовности процессора к обслуживанию прерываний.In the cyclic polling mode, the device operates as follows. When the processor is ready for servicing breaks, inputs 16 and 17 receive signals of processor readiness for servicing interrupts.
При поступлении первого импульса последовательности Т1 с генератора 6 триггеры 7 и 8 переход т в единичное состо ние, триггер 9 - в нулевое состо ние , а в регистр 1 записываютс сигналы прерываний от периферийных устройств (например, от первого, п того и седьмого устройств).When the first pulse of the T1 sequence arrives, the generator 6 triggers 7 and 8 go to one state, flip-flop 9 goes to the zero state, and register 1 records interrupt signals from peripheral devices (for example, from the first, fifth and seventh devices) .
Так как перед началом работы в этом режиме триггер 9 находитс в нулевом состо нии, то на выходе элемента И 14 по вл етс единичный сигнал. При этом дешифратор 10 открываетс п управл нмцему входу. Сигналы с выхода дешифратора 10 закрывают по второму входу элементы запрета 3.J-3.1 (j код периферийного устройства, записанный в регистре 2). Сигналы с выходов 1.1-1..П регистра 1 через элементы запрета 3 (j + 1) - З.п поступают на входы шифратора 11. На выходе шифратора 11 формируетс код периферийного устройства с наивысшим приоритетом (дл рассматриваемого примера это первое устройство, в регистре 2 записан нулевой код) и код 001. Далее устройство при обслуживании запроса функционирует аналогично указанному Bbmie алгоритму. При поступлении очередного импульса последовательности ТЗ код 001 записьшаетс в регистр 2.-Далее устройство функционирует аналогично указанному алгоритму дл режима приоритетного опроса . При поступлении от процессора Сигнала готовности на вход 17 устройство приступает к обслуживанию -следующего периферийного устройства (дл рассматриваемого примера п того Аналогично указанному алгоритму на выходе 19 устройства формируетс код 101.Since the trigger 9 is in the zero state before starting this mode, a single signal appears at the output of AND 14. In this case, the decoder 10 opens the control input control. The signals from the output of the decoder 10 are closed on the second input of the elements of the ban 3.J-3.1 (j peripheral device code recorded in register 2). The signals from the outputs 1.1-1..P of the register 1 through the elements of the prohibition 3 (j + 1) - Z.p arrive at the inputs of the encoder 11. At the output of the encoder 11, the code of the peripheral device with the highest priority is generated (for the considered example it is the first device, Register 2 is recorded with a zero code) and code 001. Next, the device, when servicing the request, functions similarly to the algorithm specified by Bbmie. Upon receipt of the next pulse of the TZ sequence, code 001 is written to register 2. -The device then functions similarly to the indicated algorithm for the priority polling mode. Upon receipt from the processor of the Readiness Signal at input 17, the device proceeds with the maintenance of the next peripheral device (for the example under consideration, code 101 is generated similarly to the indicated algorithm at the output 19 of the device).
После обслуживани процессором прерьшани от п того периферийного устройства предлагаемое устройство может обслуживать прерьшани от устройств , приоритет которых ниже, так как сигналы прерываний от первого - п того устройств в режиме циклического опроса маскируютс элементами запрета 3.1-3.5 и на шифратор 11 не поступают.After servicing the processor from the peripheral device by the processor, the proposed device can serve the alarm from devices whose priority is lower, since the interrupt signals from the first to the fifth device in the cyclic polling mode are masked by prohibition elements 3.1-3.5 and are not received by the encoder 11.
Дл рассматриваемого примера следующим обслуживаетс прерывание от седьмого устройства.For the example in question, the interrupt from the seventh device is serviced as follows.
После обслуживани периферийного устройства с наименьшим приоритетом сигналы на входе шифратора 11 отсуттвуют . При этом по очередному имульсу последовательности Т2 триггер 9 переходит в единичное состо ние . При этом сигнал на выходе элеента И 14 исчезает и на выходах деифратора 10 сигналы отсутствуют. Элементы запрета 3.1-З.п открьшают- с по вторым входам. На шифратор 11 при этом поступают сигналы с выходов 1.1-1.П регистра 1. По очередному импульсу последовательности Т 3 в регистр 2 записываетс код периферийного устройства, требующего прерывани и имеющего в текущий моментAfter servicing the peripheral device with the lowest priority, signals at the input of the encoder 11 are absent. At the same time, the sequential impulse of the sequence T2 triggers 9 to a single state. In this case, the signal at the output of the element I 14 disappears and there are no signals at the outputs of the deflector 10. Elements of the prohibition 3.1-Z.p otkryshayut- with the second inputs. In this case, the encoder 11 receives signals from outputs 1.1-1.P of register 1. On the next pulse of the sequence T 3, register 2 records the code of the peripheral device, which needs to be interrupted and has
времени наивысший приоритет. Далее в этом режиме устройство функционирует аналогично указанному алгоритму .time is the highest priority. Further in this mode, the device functions in the same way as the specified algorithm.
Если необходимо обработать несколько прерываний подр д от одного периферийного устройства, то на выход 20 устройства с регистра 1 посто нно поступает сигнал прерываНИН до тех пор, пока оно не будет обслужено. Процессор вьщает на вход 17 устройства сигнал готовности только при отсутствии сигнала на выходе 20 устройства.If it is necessary to process several interrupts from the same peripheral device, then the output 20 of the device from register 1 constantly receives an interrupt signal until it is serviced. The processor sends a ready signal to the device input 17 only in the absence of a signal at the device output 20.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU864068258A SU1341640A1 (en) | 1986-03-03 | 1986-03-03 | Interruption signal forming device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU864068258A SU1341640A1 (en) | 1986-03-03 | 1986-03-03 | Interruption signal forming device |
Publications (1)
Publication Number | Publication Date |
---|---|
SU1341640A1 true SU1341640A1 (en) | 1987-09-30 |
Family
ID=21237974
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
SU864068258A SU1341640A1 (en) | 1986-03-03 | 1986-03-03 | Interruption signal forming device |
Country Status (1)
Country | Link |
---|---|
SU (1) | SU1341640A1 (en) |
-
1986
- 1986-03-03 SU SU864068258A patent/SU1341640A1/en active
Non-Patent Citations (1)
Title |
---|
За вка JP № 55-3735, кл. G 06 F 3/00, опублик. 1980. Авторское свидетельство СССР № 1142836, кл. G 06 F 9/46, 1983. * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
SU1341640A1 (en) | Interruption signal forming device | |
US3719930A (en) | One-bit data transmission system | |
SU1606975A1 (en) | Device for executing interruptions | |
RU2013804C1 (en) | Multichannel priority device | |
SU1524051A2 (en) | Dynamic priority device | |
SU1737449A1 (en) | Priority device | |
SU745020A1 (en) | Scanning device | |
SU1416964A1 (en) | Device for initiating the input of address | |
SU1119020A1 (en) | Memory control unit | |
SU1756888A1 (en) | Dynamic priority device | |
SU1728975A1 (en) | Channel selector | |
SU1377855A1 (en) | Priority device | |
SU1406588A1 (en) | Device for input of information from users | |
SU1278811A1 (en) | Situation control device | |
RU1824637C (en) | Device for control of request processing | |
SU1336004A1 (en) | Inquiry service device | |
SU1120328A1 (en) | Device for priority processing of requests | |
RU1805467C (en) | Device for request servicing | |
SU1741133A1 (en) | Priority device | |
SU419947A1 (en) | DEVICE FOR REGISTRATION OF TELEMECHANICAL INFORMATION | |
SU1141412A1 (en) | Device for servicing requests | |
SU1148116A1 (en) | Polyinput counting device | |
SU1495792A1 (en) | Subscriber request servicing unit | |
SU1282088A1 (en) | Device for checking digital units | |
RU1837288C (en) | Device for dynamic priority |