SU886000A1 - Device for interrupt processing - Google Patents
Device for interrupt processing Download PDFInfo
- Publication number
- SU886000A1 SU886000A1 SU792837250A SU2837250A SU886000A1 SU 886000 A1 SU886000 A1 SU 886000A1 SU 792837250 A SU792837250 A SU 792837250A SU 2837250 A SU2837250 A SU 2837250A SU 886000 A1 SU886000 A1 SU 886000A1
- Authority
- SU
- USSR - Soviet Union
- Prior art keywords
- register
- input
- output
- information
- switch
- Prior art date
Links
Landscapes
- Debugging And Monitoring (AREA)
Description
(54) УСТРОЙСТВО ДЛЯ ОБРАБОТКИ ПРЕРЫВАНИЙ(54) DEVICE FOR TREATMENT INTERRUPTIONS
Изобретение относитс к построе- нию обработки прерываний в мультипрограммных ЭВМ и может быть использовано в универсальных и специализированных вычислительных машинах. Известно гстройство дл обработки прерываний, содержащее регистры,блоки пам ти, блок управлени , коммутатор 1 . Недостаток известного устройства состоит в больших затратах оборудовани . Наиболее близким по технической сущности и достигаемому результату к предлагаемому вл етс устройство дл обработки прерываний, содержащее регистр фиксации прерываний, регистры слова состо ни программы, блок управлеьш , оперативную и местную па м ти 2. Однако в указанном устройстве дл некоторых типов прерываний нет возможности вы вить команды, предшес вующие команде, вызвавшей прерывание Цель изобретени - расширение функционсшьных возможностей устройства за счет определени команд, предшествующих той, на которой произошло прерывание. Поставленна цель достигаетс тем, что в устройство дп обработки прерываний, содержащее регистр фиксации прерывавши, блок управлени , коммутатор, два регистра слова состо ни программы, блок оперативной пам ти, регистр адреса оперативной пам ти, регистр информации оперативной пам ти, блок местной пам ти регистр адреса местной пам ти, регистр информации местной пам ти, причем группа входов устройства соединена с группой информационных входов регистра фиксации прерываний, первый разр дный выход регистра фиксации прерываний соединен с первым входом блока управлени , первый выход блока управлени соединен со входом блока оперативной пам ти и с информационным входом регистра адреса оперативной пам ти, второй выход блока управлени соединен с первым входом коммутатора, третий вы ход блока управлени соединен с перBbJM входом блока местной пам ти и с первым информационным входом регистра адреса местной пам ти, четвертый выход блока управлени соединен с первыми информационными входами первого и второго регистров слова состо ни программы, разр дный выход регистра информации оперативной пам ти соединен со вторым входом коммутатора , первый выход коммутатора соедине с информационным входом регистра информации оперативной пам ти, третий вход коммутатора соединен с разр дньж выходом регистра информации мест ной пам ти, второй выход коммутатора соединен со вторым информационным входом первого регистра слова состо ни программы, первый разр дный выкод первого.регистра слова состо ни программы соединен с четвертым входо коммутатора, первый разр дный выход второго регистра слова состо ни программы соединен с п тым вхрдом коммутатора, второй информационный вход второго регистра слова состо ни программы соединен с третьим выходом коммутатора, второй разр дный выход первого регистра слова состо ни программы соединен со вторым входом блока управлени , группа входов устройства соединена с группой информационных входов первого регистра слова состо ни программы, введены буферный регистр, регистр сдвига, счет чик номера слова, регистр признака перехода, три элемента задержки, два элемента И и два элемента ИЛИ, причем группа входов устройства соедане на е группой входов первого элемента ИЛИ, выход первого элемента ИЛИ соединен с первым информационным входом регистра признака перехода, второй разр дный выход регистра фиксации прерываний соединен с первым информационным входом регистра сдвига, пе вый выход блока управлени соединен с первым входом первого элемента И и со входом первого элемента задержки , четвертый выход блока управлени соединен со вторым информационным входом регистра признака перехода, второй разр дный выход второго регис ра слова состо ни программы соединен со вторым информационным входом 4 регистра сдвига, третий разр дный выход второго регистра слова состо ни программы соединен с первым информационным входом буферного регистра , разр дный выход буферного регистра соединен с информационным входом регистра информации местной пам ти, группа разр дных выходов регистра признака перехода соединена с группой входов второго элемента ИЛИ,разр дный выход регистра признака перехода соединен с третьим информационным входом регистра сдвига, разр дный вьпсод регистра сдвига соединен с шестым входом коммутатора, выход второго элемента ИЛИ соединен со вторым входом первого элемента И и с первым входом второго элемента И, выход первого элемента И соединен со вторьм входом блока местной пам ти, выход первого элемента задержки соединен со входом второго элемента задежки и со вторым входом второго элемента И, выход второго элемента И соединен со входом счетчика номера слова, выход счетчика номера слова соединен со вторым информациониьм входом регистра адреса местной пам ти и с седьмым входом коммутатора, выход второго элемента задержки соединен с управл ющим входом регистра сдвига, со вторым информационммм входом буферного регистра и со входом третьего элемента задержки, выход третьего элемента задержки соединен с третьим информационным входом регистра признака перехода, первый разр дный выход регистра фиксации прерываний соединен с третьим информационным входом буферного регистра. Структурна схема устройства приведена на чертеже. Устройство содержит группу входов 1 устройства, регистр 2 фиксации прерываний , блок 3 управлени , коммутатор 4, регистр 5 слова состо ни программы , регистр 6 слова состо ни программы, блок 7 оперативной пам ти, регистр 8 адреса оперативной пам ти, регистр 9 информации оперативной па ти , блок 10 местной пам ти, регистр 11информации местной пам ти, регистр 12адреса местной пам ти, регистр 13 признака перехода, регистр 14 сдвига, буферный регистр 15, элементы ИЛИ 16 и 17, элемент И 18, счетчик 19 ноера слова, элементы 20 и 21.задержки, элемент И 22, элемент 23 задержки.The invention relates to the construction of interrupt processing in multiprogram computers and can be used in general-purpose and specialized computers. An interrupt handling device is known, which contains registers, memory blocks, control block, switch 1. A disadvantage of the known device is the high cost of the equipment. The closest in technical essence and the achieved result to the proposed is an interrupt handling device containing an interrupt latch register, program state word registers, control unit, operational and local memory 2. However, in this device for some types of interrupts you cannot To create commands that precede the command that caused the interruption. The purpose of the invention is to expand the functional capabilities of the device by defining the commands preceding the one on which the interruption occurred. sting. The goal is achieved by the fact that the interrupt handling device in DP contains the interrupted latching register, control unit, switch, two program state word registers, main memory unit, main memory address register, main memory information register, local memory unit local memory address register, local memory information register, the device input group is connected to the interrupt latch register information inputs group, the first bit output of the interrupt latch register is It is connected to the first input of the control unit, the first output of the control unit is connected to the input of the main memory unit and the information input of the main memory address register, the second output of the control unit is connected to the first input of the switch, the third output of the control unit is connected to the front side of the internal memory block and with the first information input of the local memory address register, the fourth output of the control unit is connected to the first information inputs of the first and second registers of the program status word, the bit output register The RAM information is connected to the second input of the switch, the first output of the switch is connected to the information input of the RAM information register, the third input of the switch is connected to the discharge output of the local memory information register, the second output of the switch is connected to the second information input of the first word register the state of the program, the first bit of the first register of the word of the state of the program is connected to the fourth input of the switch, the first bit output of the second register of the word of the state of The diagrams are connected to the fifth switch of the switch, the second information input of the second register of the state word of the program is connected to the third output of the switch, the second bit output of the first register of the program state word is connected to the second input of the control unit, the group of inputs of the device is connected to the group of information inputs of the first register program state words, a buffer register, a shift register, a word number counter, a transition flag register, three delay elements, two AND elements and two OR elements, with a group The device inputs are connected to a group of inputs of the first element OR, the output of the first element OR is connected to the first information input of the transition indication register, the second bit output of the register of interrupt latch is connected to the first information input of the shift register, the first output of the control unit is connected to the first input of the first And with the input of the first delay element; the fourth output of the control unit is connected to the second information input of the transition flag register; the second bit output of the second register of the word with one program is connected to the second information input 4 of the shift register, the third bit output of the second register of the program state word is connected to the first information input of the buffer register, the bit output of the buffer register is connected to the information input of the local memory information register, the group of the bit outputs of the register the transition flag is connected to the input group of the second OR element, the bit output of the transition flag register is connected to the third information input of the shift register, the bit output of the register The shift region is connected to the sixth input of the switch, the output of the second element OR is connected to the second input of the first element AND and the first input of the second element AND, the output of the first element AND is connected to the second input of the local memory block, the output of the first delay element is connected to the input of the second element of the delay and with the second input of the second element I, the output of the second element I connected with the input of the counter of the word number, the output of the counter of the number of the word connected with the second information input of the register of the local memory address and with the seventh input of the comm ator, the output of the second delay element is connected to the control input of the shift register, to the second information input of the buffer register and to the input of the third delay element, the output of the third delay element is connected to the third information input of the transition flag register, the first bit output of the register of interruption latch is connected to the third information input buffer register. The block diagram of the device shown in the drawing. The device contains a group of device inputs 1, interrupt latch register 2, control block 3, switch 4, program state word register 5, program state word register 6, main memory block 7, main memory address register 8, operational information register 9 data, local memory block 10, local memory information register 11, local memory register 12 addresses, transition flag register 13, shift register 14, buffer register 15, OR elements 16 and 17, AND 18 element, word 19 counter, elements 20 and 21. delay, the element And 22, the element 23 h Derzhko.
Группа входов 1 представл ет собой логические схемы, фиксирующие факт возникновени того или иного услови прерывани и вырабатывающие сигнал на установку в единицу соответствующего разр да регистра 2. Регистр 2 хранит признак прерывани в той или иной группе в течение времени обработки прерывани . Состо ние этого регистра анализируетс блоком 3. По его состо нию определ етс адрес оперативкой (СП) дл старого и нового слова состо ни программы. Блок 3 реализуетс микропрограммным образом и содержит посто нную пам ть, регистр адреса посто нной пам ти, t erHCTp информации посто нной пам ти, дополнительный регистр информации посто нвой пам ти, де|ш|4фаторы микроопераций .A group of inputs 1 is a logic circuit that detects the occurrence of an interruption condition and generates a signal to set the unit to the corresponding register bit 2. Register 2 stores an interrupt indication in one group or another during the interrupt processing time. The state of this register is analyzed by block 3. By its state, the address is determined by the RAM (SP) for the old and new words of the program state. Block 3 is implemented in firmware and contains a permanent memory, a constant memory address register, constant memory information t erHCTp, an additional permanent memory information register, and microcontrollers.
Устройство работает следующим обрддом .The device works as follows.
Пи выборке команд сигнал Чтение И9 on с первого выхода блока 3 поетупает нл ttepBM вход элемента И 18. Если в Teuetdie н|1толнени предыдущей 1п№|а1здьг возникает прерывание turn это 6vot& команда перехода, то в регистре 13 первый разр д, равен единице, тогда уа. выходе элемента ИЛИ 17 формируетс лзф&аУювд й сигнал, в результате на выходе элемента И 18 возникает сигнал который шлзывает копирование регистра 15 на регистр 11 и запись в блок 10.In the selection of commands, the signal Read I9 on from the first output of block 3 pushes nl ttepBM input of the element 18. If the Teuetdie takes the interruption of the previous 1p # | ajzdg to interrupt, turn it is 6vot & the transition command, then in register 13, the first bit is equal to one, then yy. the output of the element OR 17 forms a lsf & a signal, as a result, at the output of the element 18, a signal appears that sends a copy of register 15 to register 11 and writes to block 10.
В это врем на регистре 15 хранитс адаес предапущей команды а на счетчике 19 - адрес выбираемой команды Таким образом, если исполненна команда вызывает нарушение естественной последовательности комацд, то ёе адрес записываетс в блок 10 в против«см4 случае записи в блок 10 нетAt this time, the register 15 stores the address of the preceding command and the counter 19 contains the address of the command to be selected. Thus, if the executed command causes a violation of the natural sequence of komatsd, then its address is recorded in block 10 in versus cm4 if there is no entry in block 10
Затем задержанный сигнал с выхода элемента 20 задержки постзтает на вход элемента И 22 и при соответствующих услови х увеличивает значение счетчика 19 на едииицу. Сигнал с выхода элемента 20 задержки поступает на вход элемента 21 задержки. Задержанный на элементе 21 задержки сигнал производит копирование состо ни счетчика регистра 6 на регистр 15, а также сдвиг регистра 14. В регистре 14 сдвиг выполн етс на четыре разр да, при этом в младшие разр ды вдвигаютс код длины команды с регистра 6 признак перехода с peгистра 13 и признак прерывани с регистра 2.Then the delayed signal from the output of the delay element 20 is passed to the input of the element And 22 and, under appropriate conditions, increases the value of the counter 19 by the unit. The signal from the output of the delay element 20 is fed to the input of the delay element 21. The signal delayed by delay element 21 copies the state of the register counter 6 onto register 15, and also registers the register 14. In register 14, the shift is performed by four bits, while the code of the length of the command from register 6 is shifted to the lower bits; register 13 and a sign of interruption from the register 2.
При выборке команды, получившей управление после нарушени естественной последовательности команд, запоминание адреса команды происходит аналогично описанному выше.When selecting a command that received control after a violation of the natural sequence of commands, the command address is memorized as described above.
При исполнении команд, нарушающих естественную последовательность команд, происходит установка в единицу первого разр да регистра 13. При выполнении команд перехода, а также комавд, св занных и изменением регистров 5 и 6, установку реS гистра 13 производ т сигналы, управл к дие работой регистра 6. Такое построение устройства позвол ет избежать записи адресов команд условных переходов в тех случа х, когда Q перехода не возникает. При прерывани х регистр 13 устанавливаетс с выхода элемента ШШ 16.When executing commands that violate the natural sequence of commands, the unit is set to one unit of the first bit of register 13. When executing transfer commands, as well as teams connected and changing registers 5 and 6, the setting of peS 13 produces signals that are controlled by the register operation 6. Such a construction of the device makes it possible to avoid writing addresses of instruction commands of conditional jumps in cases when the Q jump does not occur. When interrupted, the register 13 is set to the output of the SHSh 16 element.
При возникновении сигнала запроса на обработку прерывани на входе в устройство блок управлени формирую ет в регистре 8 фиксированные адреса в соответствии с типом прерывани , пересылает содержимое регистров 5 и 6 на коммутатор 4 и производит запись 0 информации в оперативиую пам ть. После завершени записи старого слова состо ни программы блок управлени организует последовательное считывание и запись, содержимого чеек местной пам ти (Ш) в фиксированS ные чейки ОП. Затем выполн етс запись в регистр 14 и счетчик 19. В конце из фиксированных чеек считываетс новое слово программы и через коммутатор передаетс на регистры 5 и 6When the interrupt request signal arrives at the device input, the control unit generates fixed addresses in register 8 according to the type of interrupt, sends the contents of registers 5 and 6 to switch 4, and records 0 information to the RAM memory. After completion of writing the old word of the program state, the control unit organizes sequential reading and writing of the contents of the local memory cells (W) into the fixed OP cells. Then, the register 14 and the counter 19 are written. Finally, a new program word is read from the fixed cells and transferred to the registers 5 and 6 through the switch.
Как уже отмечалось, при выполнении команды, вызывающей прерывание , сигналы прерываний через элемент ИЛИ 16 устанавливают в единицу первый разр д регистра 13 В течеS ние всего времени обработки прерывани состо ние регистра 15 остаетс неизменным, на нем хранитс адрес команды, на которой возникло прерывание . Поэтому когда начинаетс выборка команды по адресу, установленному в регистре 6, происходит запись адреса команды, вызвавшей прерывание , в блок 10. После выполнени записи на регистре 15 заполн етс As already noted, when the interrupt command is executed, the interrupt signals through the OR element 16 are set to 1 for the first digit of the register 13. During the entire processing time for the interrupt, the state of the register 15 remains unchanged, the address of the command on which the interrupt occurred is stored. Therefore, when a command is started to be sampled at the address set in register 6, the address of the command that caused the interrupt is written to block 10. After the recording is done, register 15 is filled
Claims (2)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU792837250A SU886000A1 (en) | 1979-11-22 | 1979-11-22 | Device for interrupt processing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU792837250A SU886000A1 (en) | 1979-11-22 | 1979-11-22 | Device for interrupt processing |
Publications (1)
Publication Number | Publication Date |
---|---|
SU886000A1 true SU886000A1 (en) | 1981-11-30 |
Family
ID=20858196
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
SU792837250A SU886000A1 (en) | 1979-11-22 | 1979-11-22 | Device for interrupt processing |
Country Status (1)
Country | Link |
---|---|
SU (1) | SU886000A1 (en) |
-
1979
- 1979-11-22 SU SU792837250A patent/SU886000A1/en active
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4841436A (en) | Tag Data processing apparatus for a data flow computer | |
US4176394A (en) | Apparatus for maintaining a history of the most recently executed instructions in a digital computer | |
CA1121068A (en) | Microcontroller for disk files | |
US4222103A (en) | Real time capture registers for data processor | |
US4199810A (en) | Radiation hardened register file | |
GB1495793A (en) | Peripheral controller in a data processing system | |
US4348721A (en) | System for selectively addressing nested link return addresses in a microcontroller | |
US4047245A (en) | Indirect memory addressing | |
JPS607812B2 (en) | Data buffering device | |
SU886000A1 (en) | Device for interrupt processing | |
US4339796A (en) | System for generating a plurality of different addresses for a working memory of a microcontroller during execution of certain instructions | |
US4339797A (en) | Microcontroller with auxiliary register for duplicating storage of data in one memory location | |
US4888685A (en) | Data conflict prevention for processor with input/output device | |
US6397272B1 (en) | Interruption processing circuit for receiving and storing data associated with an event | |
US3359542A (en) | Variable length address compouter | |
SU1541617A1 (en) | Device for debugging microprogram units | |
SU752318A1 (en) | Multiplexor channel | |
JPS633392B2 (en) | ||
SU696454A1 (en) | Asynchronous control device | |
SU1196865A1 (en) | Device for unpacking instructions | |
US5542092A (en) | Method and system for setting bus addresses in order to resolve or prevent bus address conflicts between interface cards of a personal computer | |
SU983712A1 (en) | Program run checking device | |
SU1275457A1 (en) | Microprogram processor | |
SU1667068A1 (en) | Microprogram control device | |
SU745388A3 (en) | Memory control device |