SU1357964A1 - Device for checking execution of programs - Google Patents
Device for checking execution of programs Download PDFInfo
- Publication number
- SU1357964A1 SU1357964A1 SU853942420A SU3942420A SU1357964A1 SU 1357964 A1 SU1357964 A1 SU 1357964A1 SU 853942420 A SU853942420 A SU 853942420A SU 3942420 A SU3942420 A SU 3942420A SU 1357964 A1 SU1357964 A1 SU 1357964A1
- Authority
- SU
- USSR - Soviet Union
- Prior art keywords
- group
- elements
- inputs
- input
- output
- Prior art date
Links
Landscapes
- Debugging And Monitoring (AREA)
Abstract
.Изобретение относитс к вычислительной технике и может быть использовано дл контрол хода в 1числений в ЭВМ. Целью изобретени вл етс повышение достоверности контрол . Устройство содержит группы регистров ,11, группы блоков элементов И 2, 12, блоки элементов ИЛИ 3,14, дешифраторы 4, 5, группы элементов И 7, 20, вторую группу элементов ШШ 8, группы элементов 9, 13 задержки, группу блоков элементов ШШ 10, блок 15 сравнени , элементы ИЛИ 16-18, элементы 19,23 задержки, элемент ШШ- НЕ 21 .. Устройство реализует аппаратно-программный способ контрол хода программ, основанный на проверке допустимости изменени контролируемых переменных. Нарушение условий допустимости изменений контролируемых переменных говорит о том, что в программе произошла ошибка.и ее вьшолне- ние приведет к неверным результатам. В этом случае должен быть сформирован сигнал ошибки, который необходимо переслать в систему прерывани . .1 ил. i (Л С со 01 со а The invention relates to computing and can be used to monitor the progress of a computer in a charge. The aim of the invention is to increase the reliability of the control. The device contains groups of registers, 11, groups of blocks of elements AND 2, 12, blocks of elements OR 3.14, decoders 4, 5, groups of elements И 7, 20, second group of elements ШШ 8, groups of elements 9, 13 delays, groups of blocks of elements ШШ 10, block 15 comparisons, elements OR 16-18, elements 19,23 of delay, element ШШ- НЕ 21 .. The device implements a hardware-software method of controlling the course of programs based on checking the admissibility of change of controlled variables. Violation of the conditions for the admissibility of changes to monitored variables indicates that an error has occurred in the program. And its implementation will lead to incorrect results. In this case, an error signal must be generated, which must be sent to the interrupt system. .1 il. i (Л С со 01 со а
Description
11351135
Изобретение относитс к вычисли- тельнй технике и может быть использовано дл контрол хода вычислен в ЭВМ.The invention relates to a computational technique and can be used to control the course calculated in a computer.
Целью изобретени вл етс повышение Достоверности контрол .The aim of the invention is to increase the Reliability of the control.
Устройство дл контрол выполнени программ реализует аппаратно- программный способ контрол Хода программ, основанный на проверке допустимости изменени контролируемых переменных. Вьщеленные контролируем мые переменные вс кий раз при изменеНИИ своего текущего значени провер ютс на правильность выполнени одного из следующих условий:A device for controlling the execution of programs implements a hardware-software method of controlling the course of programs based on checking the permissibility of a change of controlled variables. Allocated controlled variables, each time when their current value changes, are checked for the correctness of one of the following conditions:
I . Pi Рд6.Р рI. Pi Rd6. R p
2.р р-7. р Рд2.r p-7. r Rd
3.Р : . р р (1)3.R: p p (1)
А..BUT..
5.р Рд . 10 р р , где р - текущее значение контролируемой переменной;5. p Rd. 10 р р, where р is the current value of the controlled variable;
р - допустимое значение контролируемой переменной; р - предьщущее значение контролируемой переменной.p is a valid value of the controlled variable; p - the previous value of the controlled variable.
Услови (1) позвол ют провер ть правильность хода программы путем сравнени текущего значени контролируемой переменной с допустимым либо с предьщущим значением.Conditions (1) allow you to check the correctness of the program's progress by comparing the current value of the monitored variable with a valid or with a previous value.
Нарушение условий допустимости изменений контролируемых переменных говорит о том, что в программе про-г изошла ошибка , и ее вьшолнение соот- ветственно приведет к . неверным результатам . В зтом случае должен быть сфо1)мирован сигнал ошибки, который необходимо переслать в систему пре- рьшани .Violation of the conditions for the admissibility of changes in the controlled variables indicates that an error has occurred in the prog program, and its execution will accordingly lead to. incorrect results. In this case, an error signal must be detected, which must be sent to the interruption system.
На чертеже приведена функциональна схема предлагаемого устройства.The drawing shows a functional diagram of the proposed device.
Устройство дл контрол выполнени программ содержит первую группу регистров 1, первую группу блоков элементов И 2, первый блок элементов ИЛИ 3, второй 4 и первый 5 дешифраторы , первую группу элементов ИЛИThe device for monitoring the execution of programs contains the first group of registers 1, the first group of blocks of elements AND 2, the first block of elements OR 3, the second 4 and the first 5 decoders, the first group of elements OR
6,первую группу элементов И 7, вторую группу элементов ИЛИ 8, первую группу элементов 9 задержки, группу блоков элементов ИЛИ 10, вторую груп пу регистров 11, вторую группу блоков элементов И 12, вторую группу элементов 13 задержки, второй блок элементов ИЛИ 14, блок 15 сравнени , второй 16, третий 17 и первый 18 эле56, the first group of elements AND 7, the second group of elements OR 8, the first group of elements 9 delay, a group of blocks of elements OR 10, the second group of registers 11, the second group of blocks of elements AND 12, the second group of elements 13 delay, the second block of elements OR 14 , block 15 comparison, second 16, third 17 and first 18 ele5
00
Менты ИЛИ, первый элемент 19 задержки , вторую группу элементов И 20, элемент ШШ-КЕ 21, элемент И 22 иCops OR, the first delay element 19, the second group of elements AND 20, the element SH-KE 21, the element And 22 and
второй элемент 23 задержки.the second element 23 of the delay.
Устройство работает следующим образом.The device works as follows.
При каждом исполнении программы в первую группу регистров 1 из пер0 вой группы информационных входов программно занос тс коды вида проверки контролируемых переменных, соответствующих номеру выражени в (1), а во вторую группу регистровEach time the program is executed, codes of the type of controlled variables that correspond to the number of expression in (1) are programmatically entered into the first group of registers 1 from the first group of information inputs, and the second group of registers
5 11 из второй группы информационных входов устройства через грзшпу блоков элементов ИЛИ 10 по управл ющему сигналу, поступающему через вход записи устройства и группу элементов ,5 11 from the second group of information inputs of the device through the group of blocks of elements OR 10 via the control signal received through the recording entry of the device and the group of elements,
0 ИЛИ 8 на управл ющие входы второй группы регистров 11, программно записываютс допустимые значени контролируемых переменных. При проверке правильности изменени контролируемых переменных в соответствующие регист ры 11 второй группы запйсьшаютс на- чал ьные значени переменных. Б процессе выполнени программы на первую информационную группу входов устройства поступает сигналj соответствующий текущему значению контролируемой переменной.0 OR 8 to the control inputs of the second group of registers 11, the permissible values of the monitored variables are programmatically recorded. When checking the correctness of the change of controlled variables into the corresponding registers 11 of the second group, the initial values of the variables are recorded. In the process of program execution, the first information group of device inputs receives a signal j corresponding to the current value of the controlled variable.
При этом на вторую информационную группу входов устройства поступаетIn this case, the second information group of inputs of the device enters
5 сигнал, соответствующий номеру контролируемой переменной, а на второй управл ющий вход - сигнал опроса, который соответствует сигналу, вырабатываемому в ЭВМ при изменении со-(.5, the signal corresponding to the number of the variable to be monitored, and to the second control input, the interrogation signal, which corresponds to the signal generated in the computer upon a change in ω (.
0 держимого регистра, в котором запйсьшаютс значени контролируемой переменной . Код, соответствующий значению i-му номеру контролируемой переменной (,К), поступает на0 of the register in which the values of the controlled variable are recorded. The code corresponding to the value of the i-th number of the variable being monitored (, K) goes to
5 группу входов дешифратора 5 с тре-t тьей группы входов устройства. При этом на i-M выходе по вл етс сигнал , поступающий в i-ю группу элементов И 2 первого блока и в i-ю5 group of inputs of the decoder 5 with the third group of inputs of the device. In this case, at the i-M output, a signal appears that enters the i-th group of elements And 2 of the first block and the i-th
0 группу элементов И 12 второго блока, разреша прохождени сигнала с i-x регистров первой 1 и второй 11 групп на группы входов первого 3 и второго 14 блоков элементов ИЛИ соответст5 венно.0 group of elements AND 12 of the second block, allowing the signal to pass from the i-x registers of the first 1 and second 11 groups to the input groups of the first 3 and second 14 blocks of the elements OR, respectively.
Сигнал, соответствующий коду проверки i-й контролируемой переменной, с группы выходов первого блока элементов ИЛИ 3 поступает на группу входов депгафратора 4. При этом выходе, где 1 - код проверки (1 . 1,10),.дешифратора 4 по вл етс сигнал. Каждый выход дешифратора соответствует одному из возможных вариантов проверки контролируемых переменных . Каждый четный выход дешифратора 4 соответствует услови м- проверки правильности изменени контролируемых переменных, а кажда пара выходов соответствует одинаковым логическим операци м проверки контролируемых переменных.The signal corresponding to the verification code of the i-th controlled variable from the output group of the first block of elements OR 3 goes to the input group of depragafrator 4. At this output, where 1 is the verification code (1. 1.10), decoder 4 appears . Each output of the decoder corresponds to one of the possible options for checking the monitored variables. Each even output of the decoder 4 corresponds to the condition of checking the correctness of the monitored variables, and each pair of outputs corresponds to the same logical operation checking the monitored variables.
В случае, если код проверки контролируемых переменных равен 2, 4, 6, 8, 10, то с соответствующего выхода дешифратора 4 сигнал через элемент ИЛИ 18 и первый элемент 19 задержки поступает на первые входы элементов И первой группы 7. На второй вход i-ro элемента И 7 первой группы через i-й элемент 9 задержки первой группы с i-ro выхода дешифратора 5 поступает сигнал. При этом на выходе i-ro элемента И 7 первой группы по вл етс сигнал, который через одноименный элемент ИЛИ 8 группы поступает на управл ющий вход соответствующего регистра 11 второй группы, разреша запись сигнала, соответствующего текущему значению i-й контролируемой переменной, который поступает на информационную группу входов i-ro регистра через одноименную группу элементов ИЛИ 10 блока с четвертой информационной группы входов устройства.If the test code of monitored variables is 2, 4, 6, 8, 10, then from the corresponding output of the decoder 4 a signal through the element OR 18 and the first delay element 19 is fed to the first inputs of elements AND of the first group 7. To the second input i- ro element And 7 of the first group through the i-th element 9 of the delay of the first group from the i-ro output of the decoder 5 signal. At the same time, at the output of the i-ro element And 7 of the first group, a signal appears which, through the element of the same name OR 8 of the group, arrives at the control input of the corresponding register 11 of the second group, allowing recording of the signal corresponding to the current value of the i-th controlled variable, which on the information group of inputs of the i-ro register through the same name group of elements OR 10 blocks from the fourth information group of device inputs.
С дешифратора 4 сигнал, соответствующий коду вида проверки, поступает на один из входов первой группы элементов ИЛИ 6, на J-M выходе, где j -.номер услови проверки (,5), по вл етс сигнал, которьй поступает на второй вход одноименного элемента И 20 второй группы.From the decoder 4, the signal corresponding to the check type code is sent to one of the inputs of the first group of elements OR 6, at the JM output, where j is the number of the checking condition (, 5), a signal appears that goes to the second input of the corresponding element AND 20 second group.
С блока элементов ИЛИ 14 сигнал, соответствзпощий в зависимости от кода вида проверки либо допустимому, . ;либо предьщущему значению контролируемой переменной, поступает на первую группу входов блока 15 сравнени на вторую группу входов которого через вторую группу элементов 13 задержки ,- необходимых дл синхронизации проверки, с группы входов устройства поступает сигнал, соответствующий текущему значению контролируемой переменной. В результате сравнени From the block of elements OR 14 the signal is conformable depending on the code of the type of verification or permissible,. ; or the previous value of the monitored variable is fed to the first group of inputs of the comparison unit 15 to the second group of inputs of which, via the second group of delay elements 13, necessary for verification synchronization, a signal corresponding to the current value of the monitored variable is received from the group of device inputs. As a result of comparison
на одном из трех выходов блока 15 сравнени формируетс сигнал. При этом на первом выходе формировател сигнал в случае, если текущее значе- - ние контролируемой переменной больше допустимого (предыдущего) значени , на втором - в случае равенства сигналов , а на третьем - в случае, если текущее значение переменной меньше допустимого. Так как первый и второй выходы блока 15 сравнени подключены к входам элемента ИЛИ 16, а третий и второй выходы блока сравнени подключены к входам элемента ИЛИ 17, то на выходах элементов ИЛИ 16 и 17 сигнал по вл етс в случае, если текущее значение контролируемой переменной не меньше допустимого (предыдущего ) значени либо не больше.A signal is generated at one of the three outputs of the comparison unit 15. In this case, at the first output of the signal generator, if the current value of the controlled variable is more than the allowable (previous) value, on the second, if the signals are equal, and on the third, if the current value of the variable is less than the allowable one. Since the first and second outputs of comparison unit 15 are connected to the inputs of the OR 16 element, and the third and second outputs of the comparison unit are connected to the inputs of the OR 17 element, the outputs of the OR 16 and 17 elements of the signal appear if the current value of the controlled variable not less than the acceptable (previous) value or not more.
Таким образом, на первые входы каждого элемента И 20 второй группы поступают сигналы, соответствующие выполнен1те) условий проверки. Если услови проверки, задаваемые кодом вида проверки, не выполн ютс , то ни на одном из выходов группы элементов И 20 не формируетс сигнал, и на выходе элемента ИЛИ-НЕ 21 формируетс сигнал ошибки, который поступает на первый вход элемента И 22, на второй вход которого через второй элемент 23 задержки (необходим дл синхронизации прихода сигнала с второго управл ющего входа устройства) поступает сигнал опроса, и на выходе элемента И 22 по вл етс сигнал ошибки , который через управл ющий выход устройства поступает в систему прерывани .Thus, the first inputs of each element And 20 of the second group receive signals corresponding to the 1 st) test conditions. If the verification conditions specified by the verification type code are not met, no signal is generated at any of the outputs of the element group AND 20, and an error signal is generated at the output of the OR-NO 21 element, which arrives at the first input of the element 22, at the second the input of which through the second delay element 23 (necessary to synchronize the arrival of the signal from the second control input of the device) receives the interrogation signal, and at the output of the element 22 there appears an error signal, which through the control output of the device enters the interrupt system.
Предлагаемое устройство обеспечивает проверку значений либо правильности изменени значений К контролируемых переменных, а это значит, чтоThe proposed device provides verification of the values or correctness of changes in the values of K of monitored variables, which means that
оно может быть использовано дл кон трол правильности хода программы.It can be used to control the correctness of the program.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU853942420A SU1357964A1 (en) | 1985-06-28 | 1985-06-28 | Device for checking execution of programs |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU853942420A SU1357964A1 (en) | 1985-06-28 | 1985-06-28 | Device for checking execution of programs |
Publications (1)
Publication Number | Publication Date |
---|---|
SU1357964A1 true SU1357964A1 (en) | 1987-12-07 |
Family
ID=21193617
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
SU853942420A SU1357964A1 (en) | 1985-06-28 | 1985-06-28 | Device for checking execution of programs |
Country Status (1)
Country | Link |
---|---|
SU (1) | SU1357964A1 (en) |
-
1985
- 1985-06-28 SU SU853942420A patent/SU1357964A1/en active
Non-Patent Citations (1)
Title |
---|
Авторское свидетельство СССР № 892446, кл. Н 03 М 13/02, 1981. Авторское свидетельство СССР № 894713, кл. G 06 F 11/28, 1981. * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4683532A (en) | Real-time software monitor and write protect controller | |
US5222065A (en) | Device for generating measuring signals with a plurality of redundantly provided sensors | |
JPH05147477A (en) | Vehicular control device | |
SU1357964A1 (en) | Device for checking execution of programs | |
US5327362A (en) | System for detecting a runaway of a microcomputer | |
SU1522215A2 (en) | Device for checking flufilment of programs | |
SU1474662A1 (en) | Input/output controller | |
SU978151A2 (en) | Electric device checking system | |
SU1088001A1 (en) | Device for checking operation control circuits | |
SU1132280A1 (en) | Device for monitoring parameters | |
SU1264182A2 (en) | Multichannel device for automatic checking of microprocessors | |
SU752470A2 (en) | Coder | |
SU1226455A1 (en) | Microprogram control device | |
SU930274A1 (en) | Device for programme-control of actuators | |
SU980027A1 (en) | Automatic testing of electronic systems | |
SU955072A1 (en) | Logic circuit functioning checking device | |
SU1252783A1 (en) | Device for checking decoder | |
SU830586A2 (en) | Storage device testing arrangement | |
RU2054796C1 (en) | Pulse signal sequence monitoring device | |
SU1019617A1 (en) | Device for pulses | |
JPS63192117A (en) | System for detecting omission of system clock pulse | |
SU1203526A1 (en) | Device for checking microprogram control unit | |
SU1644169A1 (en) | Interruptions processing system controller | |
RU2001509C1 (en) | Device for monitoring sequence of asynchronous pulse signals | |
SU1084805A1 (en) | Device for checking input/output blocks |