SU1397922A1 - Device for shaping interrupt signal in program debugging - Google Patents
Device for shaping interrupt signal in program debugging Download PDFInfo
- Publication number
- SU1397922A1 SU1397922A1 SU864086314A SU4086314A SU1397922A1 SU 1397922 A1 SU1397922 A1 SU 1397922A1 SU 864086314 A SU864086314 A SU 864086314A SU 4086314 A SU4086314 A SU 4086314A SU 1397922 A1 SU1397922 A1 SU 1397922A1
- Authority
- SU
- USSR - Soviet Union
- Prior art keywords
- register
- input
- information
- inputs
- output
- Prior art date
Links
Abstract
Изобретение относитс к вычислительной технике и. может быть использовано в устройстве управлени специализированной ЭВМ дл обеспечени отладки программ. Цель - повышение быстродействи . Устройство содержит триггер 1 прерываний, фиксирующий наличие в провер емой программе заданных признаков согласно выбранному режиму работы, первый - четвертый 31лементы И 2,4,8 и 9, триггер 3 услови , фиксирующий информацию 06условии нахождени адреса в заданной области, коммутатор 5, временной селектор 6 (второй коммутатор), блок 7буферных регистров, предназначенный дл хранени шестнадцати последних адресов выполненных команд до момента прерывани , блок 10 маскировани , ограничивающий количество участг (ОThe invention relates to computing and. can be used in a specialized computer control device to provide debugging programs. The goal is to increase speed. The device contains an interrupt trigger 1, which fixes the presence in the checked program of specified signs according to the selected mode of operation, the first - fourth elements are 2,4,8 and 9, the trigger 3 conditions fixing information 06 on the address finding condition in the specified area, switch 5, time selector 6 (second switch), a buffer register unit 7 for storing the sixteen last addresses of the commands executed until the moment of interruption, a masking unit 10 limiting the number of participants (O
Description
0000
со со to towith with to to
вующих в сравнении информационных разр дов в соответствии с заданной информацией маски, регистр 11 режима работы, первый и второй регистры 12 и 13 маски, блок 14 сравнени , регистр 15 начального адреса, регистр 16 информации. По сравнению с известным предлагаемое устройство обеспечивает повышение производительности процесса отладки программ, работай- щих в системах реального времени, заin comparison of the information bits in accordance with the given mask information, the mode register 11, the first and second mask registers 12 and 13, the comparison block 14, the initial address register 15, the information register 16. In comparison with the known, the proposed device provides an increase in the performance of the debugging process of programs operating in real-time systems, for
79227922
счет введени первого и второго регистров маски, регистра информации, блока маскировани , временного селектора , триггера условий, что обеспечивает возможность выделить провер емую программу, котора вл етс небольшим фрагментом в сложном комплексе программ, работающих в режиме реального времени, и проверить ход процессов по заданным признакам, 1 ил.by introducing the first and second registers of the mask, information register, masking unit, time selector, trigger conditions, which provides the ability to select a test program, which is a small fragment in a complex set of programs running in real time, and check the progress of the processes according to specified featured, 1 Il.
Изобретение относитс к вычислите Тьной технике и может быть исполь- -jGEiano в устройстве управлени спе- 1 1ализкрованной ЭВМ дл обеспечени отладки программ. The invention relates to computing techniques and can be used -jGEiano in a control unit of a single computer to enable debugging of programs.
Цель изобретени - повышение быстродействи .The purpose of the invention is to increase speed.
На чертеже представлена схема устройства.The drawing shows a diagram of the device.
Устройство дл формировани сигна па прерывани при отладке программ содержит триггер 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 и второй 32 вхбды признака выбора обращени .The device for generating an interrupt signal during the debugging of programs contains a trigger 1 interrupt, the first element AND 2, the trigger 3 conditions, the second element AND 4, the first 5 and second 6 switches, block 7 of the buffer registers, the third 8 and fourth 9 elements AND, block 10 masking, operating mode register 11, first 12 and second mask register 13, comparison block 14, starting address register 15, information register 16, clock 17 and setting 18 inputs, output of interruption 19, blocking input input 20, information output 21, input 22 sign of reading, input 23 of circulation B, inlet 24 signs conditional or unconditional jump, the input selector 25 of the operand address input 26 of feature command address, the first 27 and second 28 selection conditions input, input 29 of feature records information input 30 devices, the first 31 and second 32 vhbdy feature handling choice.
Устройство работает следующим образом .The device works as follows.
Возможны четыре режима работы устройства. Номер режима хранитс в четырехразр дном регистре 11 режимаFour modes of operation are possible. The mode number is stored in a four-bit mode register 11.
5five
0 0
00
5five
00
5five
работы, имеющем как пр мые, так и инверсные информационные выходы. Каждому разр ду регистра соответствует определенный режим работы устройства . Выбранный режим работы определ етс наличием единицы в соответствующем разр де регистра.work, having both direct and inverse information outputs. Each register bit corresponds to a specific mode of the device. The selected mode of operation is determined by the presence of a unit in the corresponding register register.
В режиме I устройство обеспечивает формирование сигнала прерывани при попадании на заданный адрес команды или в заданную область адресов программы (единица в нулевом разр де регистра).In mode I, the device provides the formation of an interrupt signal when it hits a specified command address or a specified program address area (one in zero de reg).
В режиме II устройство обеспечивает формирование сигнала прерывани при выполнении в заданной дблас- ти программы команд условного или безусловного переходов в заданную, (запрещенную) область адресов (единица 6 первом разр де регистра) .In mode II, the device provides for the formation of an interrupt signal when executing, in a given program, commands for conditional or unconditional jumps to a given (forbidden) address range (unit 6 of the first digit of the register).
Б режиме III устройство обеспечивает формирование сигнала прерывани при выполнении в заданной области программы команд, производ щих обращение (чтение или запись) в задаваемую (запрещенную) область адресов пам ти (единица во втором разр де регистра).In mode III, the device provides for the formation of an interrupt signal when commands are executed in a given area of a program that circulate (read or write) to the specified (forbidden) region of memory addresses (a unit in the second decimal register).
В режиме IV устройство обеспечивает формирование сигнала прерывани при выполнении команд, производ щих запись заданной информации или ее части в определенную область адресов чеек пам ти (единица в третьем разр де регистра).In IV mode, the device generates an interrupt signal when executing commands that write the specified information or a part of it to a certain area of addresses of memory cells (one in the third bit of the register).
Таким образом, устройство формирует сигнал прерывани в режимах II, III и IV . npH совпадении двух признаков , в режиме I - одного. В режиме IThus, the device generates an interrupt signal in modes II, III and IV. npH coincidence of two signs, in mode I - one. In mode I
313313
признаком вл етс заданна область программы. В режимах II и III первым признаком вл етс заданна область программы, вторым признаком - соответственно заданна (запрещенна ) область адресов переходов или заданна область адресов обращений. В режиме IV первым признаком вл етс заданна область адресов пам ти, вторым - заданна область записываемой информации. Область адресов или область информации задаетс с помощью одной пары регистров. В первом регистре указываетс начальный адрес или информаци области, во втором - информаци маски, котора определ ет какие разр ды результата сравнени заблокировать, а какие разрешить. Таким образом, первый признак опреде- л етс информацией пары регистров 12 и 15, а второй признак - информацией пары регистров 13 и 16. Регистры 12, 13, 15 и 16 реализованы наThe feature is the specified program area. In modes II and III, the first sign is the specified area of the program, the second sign is the specified (forbidden) area of jump addresses or the specified area of addresses of calls. In mode IV, the first sign is the specified area of memory addresses, the second is the specified area of recorded information. The address area or information area is specified using one pair of registers. In the first register, the starting address or information of the region is indicated, in the second - the mask information, which determines which bits of the comparison result to block and which to allow. Thus, the first sign is determined by the information of a pair of registers 12 and 15, and the second sign is determined by the information of a pair of registers 13 and 16. Registers 12, 13, 15 and 16 are implemented on
схемах, имеющих тристабильное состо - 25 входы четвертого элемента И 9, а нание информационных выходов или выходы с открытьм коллектором, с целью обеспечени возможности поразр дного объединени дл реализации функции ИЛИ.circuits with a tristable state - 25 inputs of the fourth element And 9, and knowledge of information outputs or outputs with an open collector, with the aim of providing the possibility of bitwise combining to implement the OR function.
Блок 14 сравнени предназначен дп пор зр дного сравнени двух информационных потоков, поступающих соответственно с информационных входов 30 устройства и с объединенных выходов регистра начального адреса и регистра информации. Результат сравнени проходит через блок 10 маскировани , в котором согласно информации маски регистра 12 или регистра 13 может быть заблокирована определенна часть разр дов. Далее четвертым элементом И 9 производитс формирование оценочного сигнала результата сравнени по всем разр дам сравниваемых потоков информации. Данный сигнал может быть записан в качестве первого признака в триггере 3 услови или в качестве второго признака зафиксирован в триггере 1 прерываний при наличии первого, что обеспечиваетс первым элементом И 2, Управление первым 5 и вторым 6 коммутаторами, которые обеспечивают подключение необ- ходимьк информационных и управл ющих сигналов к триггерам, осуществл етс сигналами с выходов регистра И режима, причем к первому коммутатору 5 подключены пр мой и инверсныйComparison unit 14 is designed for dp of comparison of two information streams, arriving respectively from information inputs 30 of the device and from the combined outputs of the register of the initial address and the information register. The result of the comparison passes through a masking unit 10, in which, according to the mask information of the register 12 or register 13, a certain part of the bits can be blocked. Further, the fourth element And 9 produces the formation of the evaluation signal of the result of the comparison over all bits of the compared information flows. This signal can be recorded as the first sign in the trigger 3 conditions or as the second sign fixed in the trigger 1 interrupt when the first is present, which is provided by the first element AND 2, the control of the first 5 and second 6 switches, which provide connection of the necessary information and control signals to the flip-flops, carried out by signals from the outputs of the register I mode, with direct and inverse connected to the first switch 5
00
0 0
выходы третьего разр да, а к второму коммутатору 6 - пр мые выходы нулевого , первого, второго и третьего разр дов регистра.the outputs of the third bit, and to the second switch 6, the direct outputs of the zero, first, second, and third bits of the register.
Таким образом, в режиме I адрес команды или начальный адрес области программы записываетс в регистр 15 начального адреса. Запись в регистр начального адреса, так же как в первый , второй регистры маски, или регистр информации производитс при помощи подачи информации на информационный вход 30 устройства, соответ- 5 ствую(цего сигнала на вход 32 илиThus, in mode I, the instruction address or the starting address of the program area is recorded in the starting address register 15. Record in the register of the start address, as well as in the first, second mask registers, or the information register is made by submitting information to the information input 30 of the device, corresponding to (the signal of the input to input 32 or
27, 31 или 28 и сигнала записи в регистры на вход 29 устройства. В пер-и вый регистр 12 маски записываетс информаци о маске. Каждому разр ду регистра начального адреса соответствует разр д первого рег истра маски так, что наличие едиииць в последнем не маскирует блоком 10 результатов сравнени по данному рачр ду на27, 31 or 28 and the signal recording in the registers at the input 29 of the device. In the first mask register 12, the mask information is recorded. Each bit of the register of the initial address corresponds to the bit of the first mask register so that the presence of units in the last one does not mask by block 10 the results of the comparison in the given frame rate.
5five
00
личие нул - запрещает. Таким образом , записыва нули в младшие разр ды первого регистра 12 маски, можно задавать область адресов, равную Q 2, где п - количество записанных нулей, начина с младшего разр да. В предельном случае, при п О, задаетс конкретный адрес кома ИДЕ,;, т.е. этап программы, по достижении которого формируетс сигнал прерывани . Выход нулевого разр да регистра 11 режима работы блокирует выходной сигнал второго коммутатора 6, устанавлива его значение в единицу, при этом единица на И{версном выходе третьего разр да коммутирует информацию с входа 26 признака адреса команды устройства на выход первого коммутатора 5. По вление на информационных входах 30 устройства информации адреса команды сопровождаетс по влением сигнала на входе 26 устройства , который, поступа с выхода первого коммутатора 5 на входы выборки регистров 12, 13, 15 и 16, вызывает подключение информации с выходов регистра 15 начального адреса и с выходов первого регистра 12 маски к вторым входам соответственно блока 14 сравнени и блока 10 маскировани .Zero is forbidden. Thus, by writing zeros to the lower bits of the first register of the 12 mask, you can set the address area equal to Q 2, where n is the number of written zeros, starting with the lowest bit. In the limiting case, when p 0, a specific address is given, the coma IDE,; a program stage at which the interrupt signal is generated. The zero-bit output of register 11 of the operating mode blocks the output signal of the second switch 6, setting its value to one, and the unit on the I {top output of the third bit switches the information from the input 26 of the device command address sign to the output of the first switch 5. information inputs 30 of the command address information device is accompanied by the appearance of a signal at the device input 26, which, coming from the output of the first switch 5 to the sample inputs of registers 12, 13, 15 and 16, causes the connection of information from the outputs of the register 15 of the starting address and from the outputs of the first register 12 of the mask to the second inputs, respectively, of the comparator unit 14 and the masking unit 10.
Сигнал с выхода четвертого элемента И 9, отражающий результат сравнени информации адреса выполн емойThe signal from the output of the fourth element And 9, reflecting the result of a comparison of the address information performed
5five
00
5five
кимлнды с заданной областью лдресо., полключаетс через второй элемент И 4 и записываетс в тригп р 3 услови . Информаци с пр мого выхода триггера 3 услови , проход через первый элемент И 2, переписываетс в триггер 1 прерывании. В случае сравнени триггер 1 прерываний переходит в единичное состо ние и защел-10 ного адреса и первом регистре 12kimlndy with a given area of the world., switches through the second element AND 4 and is recorded in the trig p 3 conditions. The information from the forward exit of trigger 3 conditions, the passage through the first element I 2, is rewritten into trigger 1 interrupt. In the case of a comparison, the trigger 1 interrupt goes into one state and the latch-10 address and the first register 12
киваетс , фиксиру сигнал прерывани на выходе 19 устройства. Одновременно сигнал прерывани поступает на первый вход третьего элемента И 8, блокиру запись адресов выполн емых команд в блок 7 буферных регистров. Таким образом, обеспечиваетс хранение последних адресов выполн емых команд до момента прерывани . Содер- jfaiMoe блока 7 буферных регистров может гыть перезаписано в основную пам ть р.ьг.влнной программой обработки преры- наний дл последуюшег о анализа хода исследуемой программы программистом. Выборка информации и зафиксированных последних шестнадцати адресов выполненных команд из блока 7 буферных регистров на информационный выход 21 устройства производитс последо- мателъно путем подачи сигнала чтени на вход 22 устройства.replies, fixing the interrupt signal at the output 19 of the device. At the same time, the interrupt signal arrives at the first input of the third element AND 8, blocking the recording of the addresses of the commands being executed in block 7 of the buffer registers. Thus, the storage of the last addresses of the executed commands is provided until the moment of interruption. The soder-jfaiMoe of block 7 buffer registers can be overwritten into the main memory of the interrupt processing program for the subsequent program analysis by the programmer. Selection of information and recorded the last sixteen addresses of commands executed from block 7 of the buffer registers to the information output 21 of the device is performed sequentially by applying a read signal to the input 22 of the device.
В II в регистре 15 начального адреса и в первом регистре 12 маски задаетс область адресов провер емой програг мы, а в регистре 16 ин- формации и во втором регистре 13 маски - запрещенна область адресов дл условных или безусловных переходов.In II, in the register 15 of the starting address and in the first register 12 of the mask, the address area of the program to be checked is specified, and in the information register 16 and in the second register 13 of the mask, the forbidden address area for conditional or unconditional jumps is specified.
В режиме IV в регистре 15 начального адреса и в первом регистре 12 маски задаетс область адресов чеек пам ти, а в регистре 16 информации и во втором регистре 13 маски - информаци , запись которой запрещена 30 в указанной области. Работа устройства в режиме IV аналогична его работе в режимах II и III,исключение составл ет работа первого 5 и второго 6 коммутаторов. Первьй ког-1мута- тор 5 в этом режиме обеспечивает коммутацию сигнала с входа 25 устройств на вход второго элемента И 4. Таким образом, триггер 3 услови фиксИру- ет результат сравнени текущегоIn mode IV, in the register 15 of the start address and in the first register 12 of the mask, the addresses of the memory cells are specified, and in register 16 of the information and in the second register 13 of the mask, the information whose entry is prohibited to 30 in the specified area is specified. The operation of the device in mode IV is similar to its operation in modes II and III, with the exception of the operation of the first 5 and second 6 switches. The first switch 1 in this mode switches the signal from the input 25 of the devices to the input of the second element AND 4. Thus, the trigger 3 conditions fixes the result of the comparison of the current
4545
Аналогичным образом, как и в режиме, триггер 3 услови фиксирует резуль- п адреса, по которому производитс об- тат сравнени информации адреса вы- ращение, с заданной областью адре- полн емой команды с заданной областью адресов программы. Однако при этом информаци с пр мого выхода триггера 3 услови , поступающа на второй вход первого элемента И 2, выступает как необходимое условие записи информации с выхода второго коммутатора 6 в триггер 1 прерываний, а не безусловно перезаписываетс в последний . Второй коммутатор 6 коммутирует на свой выход сигнал с выхода четвертого элемента И 9, отражающий результат сравнени сформированного адреса условного или безусловного переходаSimilarly, as in the mode, the trigger 3 conditions captures the result of the address at which the growth of the address information is processed, with the specified address area of the command with the specified address area of the program. However, the information from the direct output of the trigger 3 conditions to the second input of the first element I 2 acts as a necessary condition for recording information from the output of the second switch 6 to the trigger 1 interrupt, and not unconditionally overwrites the last one. The second switch 6 commutes to its output a signal from the output of the fourth element And 9, reflecting the result of comparing the formed address of the conditional or unconditional transition
сов. Второй коммутатор 6 обеспечийа- ет коммутацию сигнала результата сравнени с выхода четвертого элемента И 9 на вход первого элемента И 2 при наличии сигнала на входе 23 устройства.owls The second switch 6 provides the switching of the comparison result signal from the output of the fourth element AND 9 to the input of the first element AND 2 in the presence of a signal at the input 23 of the device.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU864086314A SU1397922A1 (en) | 1986-07-07 | 1986-07-07 | Device for shaping interrupt signal in program debugging |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU864086314A SU1397922A1 (en) | 1986-07-07 | 1986-07-07 | Device for shaping interrupt signal in program debugging |
Publications (1)
Publication Number | Publication Date |
---|---|
SU1397922A1 true SU1397922A1 (en) | 1988-06-15 |
Family
ID=21244721
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
SU864086314A SU1397922A1 (en) | 1986-07-07 | 1986-07-07 | Device for shaping interrupt signal in program debugging |
Country Status (1)
Country | Link |
---|---|
SU (1) | SU1397922A1 (en) |
-
1986
- 1986-07-07 SU SU864086314A patent/SU1397922A1/en active
Non-Patent Citations (1)
Title |
---|
Авторское свидетельство СССР № 962945, кл. G 06 F 11/28, 1980. Авторское свидетельство СССР № 1083194, кл. G 06 F 11/22, 1982. * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP0241946B1 (en) | Information processing system | |
US5313551A (en) | Multiport memory bypass under software control | |
EP0042422B1 (en) | Diagnostic circuitry in a data processor | |
US4430706A (en) | Branch prediction apparatus and method for a data processing system | |
US5511207A (en) | Program control circuit determining the designated number of times a sequence of instructions is repetitively executed to prevent further execution of a jump instruction | |
EP0155211A2 (en) | System for by-pass control in pipeline operation of computer | |
US4780819A (en) | Emulator system utilizing a program counter and a latch coupled to an emulator memory for reducing fletch line of instructions stored in the emulator memory | |
US4054945A (en) | Electronic computer capable of searching a queue in response to a single instruction | |
SU1541619A1 (en) | Device for shaping address | |
US4047245A (en) | Indirect memory addressing | |
SU1397922A1 (en) | Device for shaping interrupt signal in program debugging | |
US5218692A (en) | Digital pulse timing parameter measuring device | |
JPS62279438A (en) | Tracking circuit | |
SU1511750A1 (en) | Program debugging device | |
SU1092514A1 (en) | Device for correcting programs | |
SU983712A1 (en) | Program run checking device | |
SU1205142A1 (en) | Device for controlling access to scratch-pad memory | |
SU1339559A2 (en) | Control device | |
JP2504974B2 (en) | Sequencer high-speed processing method | |
SU1737454A1 (en) | Device for storing route of interprocessor exchanges in multiprocessor systems | |
SU1529228A1 (en) | Device for debugging program/unit modules | |
SU1282139A1 (en) | Device for debugging software-hardware units | |
SU1298752A1 (en) | Device for debugging programs | |
SU879563A1 (en) | Device for checking programs | |
SU1251087A1 (en) | Device for debugging programs |