SU1608675A1 - Device for monitoring running of programs in computer - Google Patents
Device for monitoring running of programs in computer Download PDFInfo
- Publication number
- SU1608675A1 SU1608675A1 SU884646465A SU4646465A SU1608675A1 SU 1608675 A1 SU1608675 A1 SU 1608675A1 SU 884646465 A SU884646465 A SU 884646465A SU 4646465 A SU4646465 A SU 4646465A SU 1608675 A1 SU1608675 A1 SU 1608675A1
- Authority
- SU
- USSR - Soviet Union
- Prior art keywords
- input
- output
- counter
- block
- inputs
- Prior art date
Links
Landscapes
- Debugging And Monitoring (AREA)
Abstract
Изобретение относитс к вычислительной технике, в частности к встраиваемым в ЭВМ устройствам контрол правильности выполнени программ. Цель изобретени - расширение функциональных возможностей устройства за счет возможности изменени интервала выполнени программы. Дл этого в известное устройство введены дешифратор адреса, регистр контрольных точек, второй элемент задержки, второй и третий элементы И, блок регистров масок, блок счетчиков, перва и втора схемы сравнени и таймер. Устройство обеспечивает непрерывный контроль за выполнением ветвей программы с количеством контрольных точек, ограничиваемым только разр дностью счетчиков контрольных точек блока счетчиков, алгоритмический контроль правильности переходов с текущей контролируемой ветви на следующую, контроль длительности выполнени всей программы. 1 ил.The invention relates to computing, in particular, computer-controlled devices for monitoring the correctness of program execution. The purpose of the invention is to expand the functionality of the device due to the possibility of changing the interval of program execution. For this, the address decoder, the checkpoint register, the second delay element, the second and third AND elements, the mask register block, the counter block, the first and second comparison circuits, and the timer are entered into the known device. The device provides continuous monitoring of the execution of program branches with the number of control points limited only by the size of the counters of control points of the block of counters, algorithmic control of the correctness of transitions from the current controlled branch to the next one, control of the duration of the entire program. 1 il.
Description
тельнойbody
счетscore
изменени change
заbehind
нени и програNeni and progr
На нальна ства.In the country.
Уст; емую ; ре ГНС Т довой : И 5, В Mouth; eem re GNS T preva: And 5, In
Изс|бретение относитс к вычислитехнике , в частности к ветра- иваемь|м в ЭВМ устройствам контрол правильности выполнени программ.The issue is related to computer technology, in particular, to wind-driven computer devices for monitoring the correctness of program execution.
Цель изобретени - расширение фун- кционапьных возможностей устройства возможности контрол выпол- отдельных ветвей программы интервала выполнени чмы.The purpose of the invention is the expansion of the functional capabilities of the device, the ability to control the execution of individual branches of the time interval program.
чертеже представлена функцио схема предлагаемого устройзойство содержит контролиру- ВМ 1, дешифратор 2 адреса, ) 3 контрольных точек, трехвхо- шемент ИЛИ 4, первый элемент орой элемент И 6, первый элемент 7 задержки, третий элемент И 8, второй элемент 9 задержки, счетчик 10, дelш фpaтop 11, блок 12 регистров масок, первую схему 13 сравнени , блок 14 счетчиков, вторую схему 15 сравнени , тактовый генератор 16 и таймер 17.The drawing shows the functional scheme of the proposed device, contains a control VM 1, a decoder 2 addresses,) 3 control points, a triaxial OR 4, the first element is the AND 6 element, the first delay element 7, the third And 8 element, the second delay element 9, the counter 10, the processor 11, the mask register register 12, the first comparison circuit 13, the counter block 14, the second comparison circuit 15, the clock generator 16 and the timer 17.
Устройство работает следующим образом .The device works as follows.
Контролируема программа естественным образом делитс на ветви с последовательной адресацией команд. Переход из одной ветви программы в другую происходит по командам условного и безусловного перехода, обращени к подпрограмме, т.е. программно, или,если в процессе вьтолнени возникает прерывание от внешнего устройО5The program being monitored is naturally divided into branches with sequential addressing of commands. The transition from one branch of the program to another takes place by the commands of conditional and unconditional transition, referring to a subprogram, i.e. programmatically, or if an interrupt from an external device occurs in the process of execution
оabout
0000
о: vj елabout: vj ate
ства. Подпрограммы и программы обработки прерьтаний также естественно дел тс на ветви, как и основна программа , В начале выполнени програм- мы в целом командой пересыпки в таймер 17 заноситс временна уставка, равгга максимальному времени выполнени программы. В начале каждой ветви программы в выбранный дешифрато- ром 11 регистр маски контролируемой ветви блока 12 регистров масок командой пересылки по шине 18 данных контролируемой ЭВМ заноситс эталон маски контролируемой ветви - двоичный: код, идентифицирующий контролируемую ветвь, а в соответствующий счетчик контрольных .точек блока 14 счетчиков (контрольных.точек) - количество контрольных точек на контролируемой ветви. Поскольку блок 12 регистров масок и блок 14 счетчиков имеют на - шине 18 один.и тот же адрес, маска . .передаетс в старших разр дах машинного слова, количество контрольньт точек - в младших.properties. Subroutines and programs for handling interruptions are also naturally divided into branches, as is the main program. At the beginning of the program execution, as a whole, the transfer command sets timer 17 to the timer 17, ravgg for the maximum program execution time. At the beginning of each program branch, the mask register of the controlled branch of block 12 of the mask registers selected by the decoder 11 sends the standard of the mask of the controlled branch — the code that identifies the controlled branch — to the corresponding counter of the control points of block 14. counters (control points) - the number of control points on the controlled branch. Since the block 12 of the mask registers and the block of 14 counters have on the bus 18 one. And the same address, the mask. . is transmitted in the higher bits of the machine word, the number of control points in the younger ones.
Контрольна точка представл ет собой команду записи Б регистр 3 контрольных точек. Максимальное количе-: ство контрольных точек в ветви опре-; дел етс только разр дностью счетчиков контрольных точек блока 14 счетчиков и при разр дности этих счетчиков N равно 2. При программном входе в контроли- руемую ветвь программы после занесени эталона маски ветви и количества контрольных точек на ветви в соответствующие блоки устройства каждьй раз при достижении очередной контрольной точки сравниваетс текущее значение маски контролируемой ветви программы с эталоном, хран щимс в регистре текущего уровн контрол . Таким образом, непрерывно контролируетс исполнение текущей ветви программы. В конце вьтолнени ветви в устройстве выпол етс процедура контрол про хождени всех контрольных точек ветви , т.е правильность перевода на следующую ветвь. Эта процедура инициируетс двум командами ЭВМ - командой записи в фиктивный внешний регистр , инициирующей операцию сравнени оставшегос количества контрольных точек с О, и следующей за йей операцией чтени из фиктивного регистра Последн команда необходима в св зи с тем, что сигнал разрешени сравнеA checkpoint is a write command B register of 3 checkpoints. The maximum number of: control points in the branch is defined; it is done only by the size of the counter points checkpoint counter 14 counters and when these counters are N, the programmed program branch after the standard of the branch mask and the number of control points on the branch is entered into the corresponding blocks of the device each time the control point compares the current mask value of the monitored program branch with the reference stored in the current control level register. Thus, the execution of the current program branch is continuously monitored. At the end of the branch execution in the device, the procedure of controlling the passage of all control points of the branch, that is, the correctness of the transfer to the next branch, is performed. This procedure is initiated by two computer commands — a command to write to a dummy external register, which initiates the operation of comparing the remaining number of control points with O, and the next read operation from the dummy register. The last command is necessary because the enable signal is equal to
д . Q д d. Q d
00
ни оставшегос количества контрольных точек с О с выхода первого элемента И 5 одновременно формирует через второй элемент 9 задержки сигнал обратного переключени уровн контрол , и дл правильного перехода на следующую контролируемую ветвь необходимо его восстановление.Neither the remaining number of control points from the output of the first element I 5 simultaneously generates, through the second element 9, a signal for the reverse switching of the control level, and for a correct transition to the next controlled branch, its restoration is necessary.
При возникновении прерывани программы от внешнего устройства командой чтени из фиктивного внешнего регистра вторым элементом И 6 формируетс сигнал на инкрементный вход счетчика 10, его содержимое увеличиваетс на 1 и происходит переключение текущего регистра маски контролируемой ветви блока 12 регистров масок и счетчика контрольных точек блока 14 счетчиков на следующие по пор дку свободные регистр и счетчик. Содержимое текущего регистра маски контролируемой ветви и счетчика (контрольных точек) при этом сохран етс дл возврата из программы обработки прерываний, а выбранные регистр и счетчик обеспечивают контроль на следующем уровне. Глубина вложени контролируемых, программ обработки прерываний, т.е. количество уровней контрол , равна количеству К регистров масок контролируемых ветвей программы блока 12 регистров масок и счетчиков контролируемых точек блока 14 счетчиков. При вькоде из программы обработки прерьшани командой записи в фиктивный внешний регистр первым элементом И 5 формируетс сигнал на декрементный вход счетчика 10 (уровн контрол ), его содержимое уменьшаетс на 1, и происходит восстановление уровн контрол ветви программы, из которой произошел переход на программы обработки прерываний .When a program is interrupted from an external device by the reading command, a signal is generated from the fictitious external register And 6 to the incremental input of counter 10, its content is increased by 1 and the current mask register of the monitored branch of the mask register 12 and the counter of control points of the meter counter 14 is switched next order free register and counter. The contents of the current register of the mask of the monitored branch and the counter (checkpoints) are saved to return from the interrupt handling program, and the selected register and counter provide control at the next level. The depth of attachment of monitored, interrupt handling programs, i.e. the number of control levels is equal to the number K of the register of masks of the monitored branches of the program of the block 12 of the registers of masks and counters of the controlled points of the block of 14 counters. In the code from the processing program of the command to write to the dummy external register, the first element 5 generates a signal to the decrement input of the counter 10 (control level), its content decreases by 1, and the control level of the program branch is restored. .
Параллельно с выполнением программ с помощью тактового генератора 16 и таймера 17 происходит контроль длительности ее вьтолнени .In parallel with the execution of programs using the clock generator 16 and timer 17, the duration of its execution is monitored.
Устройство в целом имеет, по сравнению с известным, расширенные функциональные возможности и может обеспечивать непрерывный контроль за выполнением ветвей программы с количеством контрольных точек, ограничиваемым только разр дностью счетчиков блока счетчиков (контрольных точек), алгоритмический контроль правильности переходов с текущей контролируемойThe device as a whole has, in comparison with the known, expanded functionality and can provide continuous monitoring of the execution of program branches with the number of control points limited only by the counter size of the block of counters (control points), the algorithmic control of the correctness of transitions from the current controlled
ветви на следующую, контроль длительности вьтолнени всей программы. При непр 1вильном исполнении может быть произведен программный анализ причин, и программа nepesanynjeHa с любой точки , а не только сначала. Кроме того , преимуществом устройства вл етс возможность программного отключени контрол путем маскировани прерывани от устройства, что необходимо в отладочных режимах.branches to the next, control the duration of the entire program. In the case of a wrong execution, a programmatic analysis of the causes can be made, and the nepesanynjeHa program from any point, and not just from the beginning. In addition, the advantage of the device is the ability to programmatically disable monitoring by masking interrupts from the device, which is necessary in debug modes.
Ф оF o
рмула изобретени rmula of invention
Устройство дл контрол выполнени программ ЭВМ, содержащее тактовый ге- нерг тор./счё чик, первый элемент за- , дешифратор, первый элемент И .и э; емент ИЛИ, отличающе- е с тем, что, с целью расширени функциональных.возможностей устрой- ствг за счет возможности контрол BBI- полиенн отдельных ветвей программы и и-менени интервала выполнени про- граимы, в устройство введены второй элемент задержки, второй и третий элементы И, дешифратор адреса, ре- контрольных точек, две схемы сраинени , блок регистров масок, блок счетчиков, таймер, причем информаци- вход устройства дл подключени к т we данных контролируемой ЭВМ сое,1инен с информационными входами дешифратора адреса и регистра конт- poniHbK , выходы дешифратора адр гса с первого по п тый соединены соогветственно с входом записи регистра контрольных точек, с первым входом первого элемента И, с входом записи счетчика, с первым входом второго элемента И, с входом выборки таймера , первый выход дешифратора адреса через первый элемент задержки соединен с входом разрешени первой схемы сравнени , первый и второй информа ционные входы которой соединены соответственно с выходом регистра конт8675A device for monitoring the execution of computer programs containing a clock generator. / Counter, the first element is a decoder, the first element is E. And e; OR, which differs from the fact that, in order to expand the functional capabilities of devices due to the possibility of monitoring BBI-polienn of separate branches of the program and changing the execution interval, the second delay element, the second and third And elements, address decoder, test points, two control circuits, mask register block, counter block, timer, the device information for connecting to the data of the controlled computer soy, 1 with the information inputs of the address decoder and the register m-poniHbK, the first to fifth address decoder outputs are connected to the checkpoint register entry input, the first input of the first element, And, the counter recording input, the first input of the second element, And, the sampling input of the timer, the first output of the address decoder through the first delay element is connected to the resolution input of the first comparison circuit, the first and second information inputs of which are connected respectively to the register register output
10ten
1515
еа- . . 20ea. . 20
рольных точек н выходом блока регистров масок, информационный вход которого вл етс входом устройства дл подключени к игине данных контролируемой ЭВМ, группа входов выборки и вход записи блока регистров масок подключены соответственно к группе выходов дешифратора и выходу второго элемента И, второй вход которого объединен с вторым входом первого элемента И и подключен к соответствующему разр ду входа устройства дл подключени к шине данных контролируемой ЭВМ, выход первого элемента И через второй элемент задержки соединен с , декрементным входом счетчика, инкре- , ментный вход которого соединен с выходом третьего элемента И, первый и второй входы третьего элемента И соединены соответственно с вторым выходом дешифратора адреса и соответствующим разр дом входа устройства дл подключени к шине данных контролируемой ЭВМ, выход первого элемента И соединен с входом разрешени второй схемы сравнени , первый и второй информационные входы которой подключены соответственно к выходу блока счетчиков и шине логического нул устройства , выходы неравенства первой и второй схем сравнени и выход таймера соединены с соответствующи « входами, элемента ИЛИ, выход которого вл ет- ; с -выходом устройства дл подключени к входу прерывани .контролируемой ЭВМ, информационше выходы счетчика соединены с входами дешифратора, выходы которого соединены с входами выборки блока счетчикой, декрементный вход и вход записи которого соединены соответственно с выходом равенства первой схемы сравнени и выходом второго элемента И, информационные входы счетчика, блока счетчиков, таймера . подключены к входу устройства дл подключени к шине данных контролируе- мой ЭВМ, выход тактового генератора соединен с синхровходом таймера.hotspots n output of the mask register unit whose information input is the device input for connecting the controlled computer to the data source, the sample input group and the mask register block recording input are connected to the decoder output group and the output of the second element, respectively, the second input of which is combined with the second the input of the first element And is connected to the corresponding unit of the input of the device for connection to the data bus of the controlled computer, the output of the first element And through the second delay element is connected to, The incremental input of the counter, the incremental input of which is connected to the output of the third element AND, the first and second inputs of the third element AND are connected respectively to the second output of the address decoder and the corresponding input input of the device for connection to the data bus of the controlled computer, the output of the first element AND is connected with the resolution input of the second comparison circuit, the first and second information inputs of which are connected respectively to the output of the counter block and the logical zero bus of the device, the inequality outputs of the first and the second comparison circuit and the timer output are connected to the corresponding "inputs" of the OR element, the output of which is -; with the output of the device for connecting to the interrupt input of the controlled computer, the information outputs of the counter are connected to the inputs of the decoder, the outputs of which are connected to the sample inputs of the block by the counter, the decrement input and input of the record are connected respectively to the equality output of the first comparison circuit and the output of the second element I, information inputs of the counter, block counters, timer. connected to the input of the device for connection to the data bus of the controlled computer, the output of the clock generator is connected to the synchronous input of the timer.
2525
30thirty
4040
4545
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU884646465A SU1608675A1 (en) | 1988-12-27 | 1988-12-27 | Device for monitoring running of programs in computer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU884646465A SU1608675A1 (en) | 1988-12-27 | 1988-12-27 | Device for monitoring running of programs in computer |
Publications (1)
Publication Number | Publication Date |
---|---|
SU1608675A1 true SU1608675A1 (en) | 1990-11-23 |
Family
ID=21426922
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
SU884646465A SU1608675A1 (en) | 1988-12-27 | 1988-12-27 | Device for monitoring running of programs in computer |
Country Status (1)
Country | Link |
---|---|
SU (1) | SU1608675A1 (en) |
-
1988
- 1988-12-27 SU SU884646465A patent/SU1608675A1/en active
Non-Patent Citations (1)
Title |
---|
Руковрдство к пользованию микpo-эв М1сга1,ф.Рх2Е, Франци . Патент GB № 2065939, кл. G 06 F 11/30, опублик. 1981. * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
SU1541619A1 (en) | Device for shaping address | |
SU1608675A1 (en) | Device for monitoring running of programs in computer | |
FI98665C (en) | Signal program | |
SU1348839A1 (en) | Device for debugging program hardware-controlled units | |
SU1583744A1 (en) | Apparatus for debugging programs | |
SU1247877A1 (en) | Device for debugging microcomputers | |
SU1439600A1 (en) | Device for determining electronic computer capacity | |
SU1683019A2 (en) | Program debugger | |
SU1280636A1 (en) | Device for debugging programs | |
SU1513457A1 (en) | Program debugging device | |
SU1166122A1 (en) | Device for debugging programs | |
SU1660007A1 (en) | Device for jump checking | |
SU1307460A1 (en) | Device for monitoring program execution | |
SU1471195A1 (en) | Program debugger | |
SU1501065A1 (en) | Device for monitoring program run | |
SU1642472A1 (en) | Device for checking the sequence of operatorъs actions | |
SU1275452A1 (en) | Device for debugging programs | |
SU1667082A1 (en) | Majority gate | |
SU1619290A1 (en) | Data exchange device | |
SU1347097A1 (en) | Memory with program correction | |
SU1711166A1 (en) | Computer system throughput evaluator | |
SU1291988A1 (en) | Information input device | |
SU943747A1 (en) | Device for checking digital integrated circuits | |
SU1260954A1 (en) | Microprogram control device with dynamic memory | |
SU1527639A1 (en) | Device for interfacing peripheral units and computer main line |