SU1298753A1 - Device for checking execution time of program - Google Patents
Device for checking execution time of program Download PDFInfo
- Publication number
- SU1298753A1 SU1298753A1 SU853960712A SU3960712A SU1298753A1 SU 1298753 A1 SU1298753 A1 SU 1298753A1 SU 853960712 A SU853960712 A SU 853960712A SU 3960712 A SU3960712 A SU 3960712A SU 1298753 A1 SU1298753 A1 SU 1298753A1
- Authority
- SU
- USSR - Soviet Union
- Prior art keywords
- input
- program
- flop
- flip
- output
- Prior art date
Links
Landscapes
- Debugging And Monitoring (AREA)
Abstract
Изобретение относитс к вычислительной технике и может найти применение в микропроцессорных вычислительных и управл ющих системах. Цель, изобретени - упрощение устройства. Устройство содержит два счетчика 1, 2 импульсов, генератор 3 тактовых импульсов , триггер А, D-триггер 5, элемент ИЛИ 6 и элемент 7 задержки. Данное изобретение позвол ет защитить выполн ение функций управлени объектами от неуправл емых состо ний ЦВМ, в том числе от зацикливани и остановов , и автоматизировать перезапуск ЦВМ. 4 ил. 11 (ЛThe invention relates to computing and can be used in microprocessor computing and control systems. The purpose of the invention is to simplify the device. The device contains two counters of 1, 2 pulses, a generator of 3 clock pulses, trigger A, D-trigger 5, the element OR 6 and the element 7 of the delay. This invention allows to protect the performance of object management functions from uncontrolled states of a digital computer, including looping and shutdowns, and to automate the restarting of a digital computer. 4 il. 11 (L
Description
11eleven
Изобретение относитс к вычисли- тельной технике и может найти применение в микропроцессорных измерительных и управл ющих системах.The invention relates to computing technology and can be used in microprocessor-based measuring and control systems.
Цель изобретени - упрощение устройства .The purpose of the invention is to simplify the device.
На фиг,1 представлена функциональна схема устройства дл контрол времени выполнени программы} на фиг,2 - временна диаграмма работы устройства при нормальной последовательности вьшолнени программ; на фиг.З - то же, при отсутствии контрольных импульсов на шинах портов вывода; на фиг.4 - то же, при зацикливании микропроцессорной системы на командах выдачи контрольных импульсов FIG. 1 is a functional diagram of the device for monitoring the program execution time} in FIG. 2 is a time diagram of the operation of the device with a normal sequence of program execution; on fig.Z - the same, in the absence of control pulses on the tires of the output ports; figure 4 is the same, when the microprocessor system loops on the commands issuing control pulses
Устройство содержит счетчики 1 и импульсов, генератор 3 тактовых импульсов , RS-триггер 4, D-триггер 5, элемент ИЛИ 6, элемент 7 задержки, выход 8 триггера 4, вьгход 9 D-триг- гера 5, вход 10 кода максимального времени выполнени программы, вход 11 кода максимального времени выполнени программы, вход 12 признака работы программы, выход 13 сбо работы программы, выход 14 генератора импульсов , выход 15 переноса первого счетчика, выход 16 переноса второго счетчика, выход 17 элемента 7 задержки,The device contains counters 1 and pulses, a generator of 3 clock pulses, RS-flip-flop 4, D-flip-flop 5, element OR 6, delay element 7, output 8 of flip-flop 4, start 9 of D-flip-flop 5, input 10 of the maximum execution time code program, input 11 of the maximum program execution time code, input 12 of the program operation flag, output 13 of the program operation failure, pulse generator output 14, transfer output 15 of the first counter, transfer output 16 of the second counter, output 17 of delay element 7,
В измерительных приборах, предназначенных дл непрерьшного контрол за параметрами технологическою процесса, программа измерени этих параметров обычно циклически повтор етс . Например, при измерении влажности , зольности и т.д. сыпучих материалов с помощью радиоизотопных ме- тодовОвходной информацией микропроцессорной системы вл етс частота по влени импульсов с детекторов излучени , представленна в цифровом коде.In instrumentation designed to continuously monitor the parameters of the technological process, the program for measuring these parameters is usually cyclically repeated. For example, when measuring moisture, ash, etc. bulk materials using radioisotope methods The input information of a microprocessor system is the frequency of occurrence of pulses from radiation detectors, presented in a digital code.
Цифровой код обрабатываетс в микропроцессорной системе по определенной программе, при этом выходной информацией системы вл ютс The digital code is processed in the microprocessor system according to a specific program, with the output information of the system being
ности и т.д. в каждом новом цикле измерени происходит выполнение программы с новыми входными данными. Врем на выполнение программы измерени в таких микропроцессорных системах находитс в некотором диапазоне , ограниченном максимальным и минимальным временем. Это объ сetc. in each new measurement cycle, the program is executed with new inputs. The time taken to execute the measurement program in such microprocessor systems is in a certain range, limited by the maximum and minimum time. This is about
5five
77
00
5five
00
5five
00
5five
00
5five
532532
н етс тем, что врем на выполнение таких команд программы, как умножение , деление определ етс величиной значений, участвующих в этих действи х операндов. Например, при больших по величине значени х сомножителей врем на выполнение умножени больше , чем при меньших. Задава сь допустимыми минимальными и максимальными входными значени ми можно всегда с необходимой точностью определить минимальное и максимальное врем на вьтолнение определенной программы.This is because the time for executing program instructions such as multiplication, division is determined by the magnitude of the values involved in these actions of the operands. For example, with larger values of factors, the time to perform multiplication is longer than with smaller ones. By specifying permissible minimum and maximum input values, you can always determine the minimum and maximum times for executing a certain program with the necessary accuracy.
Устройство работает следующим образом ,The device works as follows
В начальный момент сигналами Общий сброс или Включение питани (не показаны) производитс общий сброс системы, и она переходит на выполнение соответствующей программы. Микропроцессорна система формирует на входе 12 контрольньй импульс. Команды программы,формирующие данный импульс, могут, например, размещатьс в самом конце программы. При циклическом выполнении этой программы на входе 12 будет периодически по вл тьс контрольньй импульс. Коды макси- мальноРо и минимального времени выполнени программы соответственно на вход 10 и вход 11 могут поступать, например, от специальных задатчиков кодов, либо из микропроцессорной сис- темь1. При нормальном выполнении программы запись кода происходит до того , как по витс импульс переноса с выхода 15 счетчика 1 (фиг,2), Импульс переноса со счетчика 2 по вл етс на выходе 16 через врем t, которое незначительно меньше минимального времени, необходимого дл вьшолнени соответствующей программы . Этот импульс переноса устанавливает триггер в единичное состо ние , следовательно на инверсном выходе триггера будет нулевое состо ние . При .поступлении контрольного импульса на тактовый вход D-тригге- ра сбсто ние выходов D-триггера не измен етс , следовательно, на выходе 13 элемента ИЛИ 6 не по вл етс импульс, указьтающий на сбой программы ,At the initial moment, a general reset or a power-up (not shown) signals a general system reset, and it proceeds to the execution of the corresponding program. The microprocessor system forms a control pulse at the input 12. Program instructions that form a given pulse can, for example, be placed at the very end of the program. When executing this program cyclically, a test pulse will appear periodically at the input 12. Codes of maximally Po and minimum program execution time, respectively, to input 10 and input 11 can come, for example, from special setters of codes, or from a microprocessor system1. During normal program execution, code recording occurs before the transfer pulse from output 15 of counter 1 (FIG. 2) appears. The transfer pulse from counter 2 appears at output 16 after time t, which is slightly less than the minimum time required to execute appropriate program. This transfer impulse sets the trigger to one state, hence the zero state at the inverse output of the trigger. When a control pulse arrives at the clock input of the D-flip-flop, the D-flip-flop outputs do not change, therefore, at the output 13 of the OR 6 element, there is no pulse indicating that the program has failed,
В случае сбо программы, вызванного остановом или зацикливанием на участке программы, в который не вход т команды, формирующие контрольньй импульс на входе 12, контрольный им312In the case of a program crash caused by stopping or looping in a program section that does not include commands that form a control pulse at input 12, the control im312
пульс ке по вл етс , т.е. в этом случае не происходит перезаписи кода максимального времени выполнени программы в счетчик 1, Поэтому через врем tJ, равное максимальному вре- мени выполнени программы, на выходе 15 счетчика 1 по вл етс импульс переноса . Этот импульс через элемент ИЛИ 6 поступает на выход 13, сигнализиру о сбое. Этот же импульс обес печивает (фиг.З) перезапуск микропроцессорной системы.a pulse appears, i.e. in this case, the program does not overwrite the maximum program execution time in counter 1, therefore, after a time tJ equal to the maximum program execution time, a transfer impulse appears at the output 15 of counter 1. This pulse through the element OR 6 goes to output 13, signaling a failure. The same impulse ensures the restarting of the microprocessor system (Fig. 3).
В том случае, если имеет место зацикливание программы на каком-либо участке программы, в состав которого вход т команды посылки контрольного импульса, то врем между по влени ми контрольного импульса будет меньше минимального времени выполнени программы . Следовательно, импульс пере- носа, со счетчика 2 еще не по витс на выходе 16, когда на тактовый вход D-триггера поступит контрольный импульс . Так как инверсный выход триггера находитс в единичном состо нии то при поступлении контрольного импульса происходит установка D-триггера , Через врем , равное времени задержки , происходит сброс D-триггера с помощью контрольного импульса, за- держанного за счет элемента 7 задержки . Таким образом, на выходе 9 формируетс импульс, который поступает на вход элемента ИЛИ 6 и далее на выход 13 устройства. При этом элемент 7 задержки служит дл формировани необходимой длительности импульса , поступающего на выходе 13 (фиг.4),In the event that a program loops in any part of the program that includes commands to send a control pulse, then the time between occurrences of the control pulse will be less than the minimum program execution time. Consequently, the transfer pulse from counter 2 has not yet reached output 16, when a control pulse arrives at the clock input of the D-flip-flop. Since the inverse output of the trigger is in the unit state, when the control pulse arrives, the D-flip-flop is set. After a time equal to the delay time, the D-flip-flop is reset using the control pulse held by the delay element 7. Thus, at the output 9 a pulse is formed, which is fed to the input of the element OR 6 and further to the output 13 of the device. In this case, the delay element 7 serves to form the required pulse duration at the output 13 (FIG. 4),
Необходимо отметить, что в началь ный момент времени при запуске системы коды в счетчиках 1 и 2 устанавливаютс случайным образом, В том случае , если этот код в счетчике 1 соответствует времени, которое меньше максимального времени выполнени программы, то во врем выполнени программы на выходе переноса счетчика 1 может по витьс сигнал переноса . В результате произойдет вновь сброс микропроцессорной системы, а счетчик 1 будет обнулен (так как по витс сигнал переноса), В следующем цикле программа пройдет до конца, и контрольный импульс произведет за- пись необходимых кодов в счетчики 1 и 2, Б том случае, если в счетчике 2 в начальный момент времени устанав34It should be noted that at the initial moment of time when the system is started, the codes in counters 1 and 2 are set randomly. If this code in counter 1 corresponds to a time that is less than the maximum program execution time, then during program execution at the transfer output counter 1 may cause a carry signal. As a result, the microprocessor system will again be reset, and counter 1 will be reset to zero (as the transfer signal is received). In the next cycle, the program will pass to the end, and the control pulse will record the necessary codes in counters 1 and 2, B in counter 2 at the initial moment of time setting34
ливаетс код, соответствующий времени , которое больше максимального времени выполнени программы, то на выходе переноса счетчика сигнал переноса не по витс и не произойдет сброса триггера 4, Следовательно, при по влении контрольного импульса формируетс сигнал на выходе 13 устройства , по которому осуществл етс перезапуск системы и происходит запись необходимых кодов в. счетчики 1 и 2, Программа начинает выполн тьс сначала, но соответствующие коды будут уже записаны в счетчики 1 и 2.If the code corresponds to the time that is longer than the maximum program execution time, the transfer signal does not work at the transfer output of the counter and the trigger 4 will not be reset. Therefore, when the control pulse appears, the output 13 of the device is generated and the system is restarted. and the necessary codes are written in. counters 1 and 2, the program starts to run from the beginning, but the corresponding codes will already be written to counters 1 and 2.
Таким образом, устройство дл контрол хода программы в микропро- . цессорной системе позвол ет определить программный сбой в системе, вызванный остановом или зацикливанием программы, и устранить его, произвед повторный запуск системы.Thus, a device for monitoring the progress of a program in microprobe. The system allows the system to identify a software failure in the system caused by stopping or looping the program and eliminate it by restarting the system.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU853960712A SU1298753A1 (en) | 1985-10-05 | 1985-10-05 | Device for checking execution time of program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU853960712A SU1298753A1 (en) | 1985-10-05 | 1985-10-05 | Device for checking execution time of program |
Publications (1)
Publication Number | Publication Date |
---|---|
SU1298753A1 true SU1298753A1 (en) | 1987-03-23 |
Family
ID=21199858
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
SU853960712A SU1298753A1 (en) | 1985-10-05 | 1985-10-05 | Device for checking execution time of program |
Country Status (1)
Country | Link |
---|---|
SU (1) | SU1298753A1 (en) |
-
1985
- 1985-10-05 SU SU853960712A patent/SU1298753A1/en active
Non-Patent Citations (1)
Title |
---|
Авторское свидетельство СССР W 894713, кл. G 06 F 11/28, 1980. Авторское свидетельство СССР 1101831, кл. G 06 F 11/28, 1983. * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
GB2065939A (en) | Arrangement having a programmabel electrical circuit and monitoring menas | |
JPH0341853B2 (en) | ||
US3936745A (en) | Method of measuring the duration of a discontinuous signal | |
SU1298753A1 (en) | Device for checking execution time of program | |
JPH05189403A (en) | Virtual time measuring method for simulation | |
SU813432A1 (en) | Device for testing microprogramme automatic apparatus | |
SU1223235A1 (en) | Device for checking program execution time | |
SU1474655A2 (en) | Program execution time monitor | |
SU881678A1 (en) | Device for testing terminals | |
JPS62152048A (en) | Monitor circuit for runaway | |
SU1279063A1 (en) | Device for automatic checking of shaft turn angle-to-digital converter | |
RU1837294C (en) | Device for testing shift register | |
SU1195409A1 (en) | Frequency multiplier | |
SU949672A2 (en) | Device for monitoring machine operating time | |
SU1302298A1 (en) | Analyzer of parametric failures | |
JPS63241622A (en) | Data processor | |
SU728134A1 (en) | Logic circuit testing device | |
SU903886A1 (en) | Device for detecting errors in processor testing units | |
SU1335933A1 (en) | Programmed-control device | |
US4488221A (en) | Data processing system | |
JPS5846451A (en) | Detection processing system for runaway of program | |
SU546888A1 (en) | Device for controlling digital objects | |
SU1190383A2 (en) | Device for checking digital units | |
SU1425634A1 (en) | Device for input of discrete information | |
SU842886A1 (en) | Device for monitoring and registering equipment operation |