SU1223235A1 - Device for checking program execution time - Google Patents
Device for checking program execution time Download PDFInfo
- Publication number
- SU1223235A1 SU1223235A1 SU843802278A SU3802278A SU1223235A1 SU 1223235 A1 SU1223235 A1 SU 1223235A1 SU 843802278 A SU843802278 A SU 843802278A SU 3802278 A SU3802278 A SU 3802278A SU 1223235 A1 SU1223235 A1 SU 1223235A1
- Authority
- SU
- USSR - Soviet Union
- Prior art keywords
- input
- output
- elements
- mode
- block
- Prior art date
Links
Abstract
Изобрете ие относитс к цифровой вычислительной технике и может быть использовано в ЦВМ дл временного контрол программ. Пель изобретени - расширение функциональных возможностей устройства за счет обеспечени измерени времени вьшолне- ни программ. Устройство содержит последовательно соединенные счетчик, триггер, элемент И, второй вход которого вл етс первым входом устройства , элемент ИЛИ, вторым входом подключенный к выходу счетчика, и блок з равлени , первым выходом подключенный к первому входу счетчика . Новьм вл етс введение в устройство блока анализа режимов, блока задани режимов и блока индикации, соединенных с известными блоками. 2 ил.The invention relates to digital computing and can be used in a digital computer for temporal control of programs. The invention is an extension of the functionality of the device due to the provision of measurement of program execution time. The device contains a serially connected counter, a trigger, an AND element, the second input of which is the first input of the device, an OR element, a second input connected to the output of the counter, and a control unit, the first output connected to the first input of the counter. The device is an introduction to the device of a mode analysis unit, a mode setting unit and a display unit connected to known units. 2 Il.
Description
Изобретение относитс к цифровой вычислительной технике и может быть использовано дл временного контрол программ, работающих в реальном масштабе времени.The invention relates to digital computing and can be used to temporarily monitor real-time programs.
Цель изобретени - расширение функциональных возможностей устройства за счет обеспечени измерени времени выполнени программ.The purpose of the invention is to expand the functionality of the device by providing measurement of the program execution time.
На фиг. 1 представлена структур- на схема предлагаемого устройства; на фиг. 2 - функциональна схема блока управлени и блока анализа режимов.FIG. 1 shows the structure of the proposed device; in fig. 2 is a functional diagram of a control unit and a mode analysis unit.
Устройство содержит блок 1 управлени , счетчик 2, триггер 3, элементы И А и ИЛИ 5, первьй вход 6, блок 7 анализа режимов, блок 8 задани режимов, блок 9 индикации, второй 10, третий 11, четвертой 12 и п тый 13 входы, первый 14 и второй 15 выходы.The device contains a control block 1, a counter 2, a trigger 3, elements AND A and OR 5, the first input 6, the mode analysis block 7, the mode setting block 8, the display block 9, the second 10, the third 11, the fourth 12 and the fifth 13 inputs , the first 14 and the second 15 outputs.
Блок 8 состоит из задатчиков: режима работы 16, команды измерени 17, конечного 18 и начального 19 адреса.Block 8 consists of set points: operation mode 16, measurement command 17, end 18 and initial 19 addresses.
Блок 1 управлени (фиг. 2) содержит элементы ИЛИ 20 и 21, элементы И 22-25 и счетчик 26 прерываний.The control unit 1 (Fig. 2) contains elements OR 20 and 21, elements AND 22-25 and an interrupt counter 26.
Блок 7 анализа режимов (фиг. 2) содержит схемы 27 и 28 сравнени , элементы ИЛИ 29-31, элемент НЕ 32, элементы И 33 - 36 и триггеры 37 и 38.The mode analysis block 7 (Fig. 2) contains comparison circuits 27 and 28, elements OR 29-31, element NO 32, elements AND 33-36, and triggers 37 and 38.
Устройство работает следующим образом .The device works as follows.
В режиме контрол времени выполнени программ с задатчика 16 режима работы, представл ющего собой переключатель , на третий вход блока 7 анализа режимов поступает сигнал логической 1. Этот сигнал поступает через элемент ИЛИ 29 на вход триггера 37 и устанавливает его в нулевое состо ние, запреща выдачу через элементы И 33 и 34 в счетчик 2 сигналов со схем 27 и 28 сравнени . Кроме того, этот сигнал поступает через элемент ИЛИ 31 на элемент И 36, pasреша передачу в счетчик 2 импульсов пересчета с первого входа 6 устройства . Одновременно сигнал логической 1 поступает в блок 1 управлени на элементы И 22, 24 и 25 и группу элементов И 23, разреша передачу через них соответствующих команд и параметров , описанных ниже.In the mode of monitoring the execution time of programs from the setpoint adjuster 16 operating mode, which is a switch, the third input of the mode analysis unit 7 receives a logical signal 1. This signal goes through the OR 29 element to the trigger input 37 and sets it to the zero state, prohibiting issue through elements 33 and 34 into the counter 2 signals from circuits 27 and 28 of the comparison. In addition, this signal goes through the element OR 31 to the element AND 36, interrupting the transfer of 2 counting pulses from the first input 6 of the device to the counter. At the same time, the signal of logical 1 enters control unit 1 on AND 22, 24, and 25 elements and AND 23 group of elements, allowing the transmission through them of the corresponding commands and parameters described below.
При нормальном ходе вьтолнени программ через группу элементов И 23 0лока 1 управлени из ЦВМ периодически заноситс в счетчик 2 код допустимого времени выполнени очередной программы. Запись кода в счетчик 2 осуществл етс при выдаче из ЦВМ на третий вход 11 устройства команды Запись, поступающей на третий входIn the normal course of program execution, through the group of elements AND 23 0 of control block 1 from the digital computer, the code of the permissible time for the execution of the next program is periodically entered into counter 2. The code is recorded in counter 2 when a Record command is output from the digital computer to the third input 11 of the device.
счетчика 2 через элементы И 22 иcounter 2 through elements And 22 and
ИЛИ 20 блока 1. Перед записью очередного кода времени из ЦВМ на п тый вход 13 устройства вьщаетс команда Установка О, по которой триггерOR 20 block 1. Before writing the next time code from the digital computer to the fifth input 13 of the device, the command Set O, on which the trigger
3 и счетчик 26 прерываний устанавливаютс в исходное состо ние. Пересчетные импульсы (метки времени ) поступают из ЦВМ на первый вход 6 устройства и через элемент И 363 and the interrupt counter 26 are reset. The recalculated pulses (time stamps) come from the digital computer to the first input 6 of the device and through the AND 36 element
блока 7 анализа режимов выдаютс на второй (счетный) вход .счетчика 2 и заполн ют его до поступлени нового кода времени из ЦВМ.The mode analysis unit 7 is output to the second (counting) input of counter 2 and is filled in before a new time code is received from the digital computer.
Если происходит нарушение в работе программы, в результате которого обновление кода времени не происходит , то счетчик 2 переполн етс . Через элементы ИЛИ 5 и И 25 сигнал nepet выполнени с первого выхода счетчика 2 поступает по второму выходу 15 устройства на прерывание в ЦВМ.If a malfunction occurs in the program, as a result of which the time code is not updated, then counter 2 overflows. Through the elements of OR 5 and 25, the nepet signal from the first output of counter 2 is fed to the second output of the device 15 via an interrupt in the digital computer.
Если ЦВМ правильно отреагировала на сигнал .прерывани , то через блок 1 в счетчик 2 заноситс код времениIf the digital computer correctly responded to the interrupt signal, then through block 1 the time code is entered into counter 2
выполнени программы обработкиexecuting the processing program
прерываний и работа устройства повтор етс уже с данной программой. Если ЦВМ неверно отреагировала на сигнал прерывани , то каждьй последующий после переполнени счетчика 2 пересчетный импульс с первого входа 6 начинает пропускатьс через элементы И 4, ИЛИ 5 и И 25 на второй выход 15 устройства, пыта сьinterrupts and device operation is repeated with this program. If the digital computer has incorrectly responded to the interrupt signal, then each subsequent counting counter 2 overflows, the counting pulse from the first input 6 begins to pass through the AND 4, OR 5 and And 25 elements to the second output 15 of the device, trying
вызвать срабатывание ЦВМ и запуск программь обработки прерываний. Если такие попытки оказываютс безуспешными , то счетчик 26 прерываний переполн етс и сигнал переполнени в качестве команды отказа выдаетс в ЦВМ по выходу 14 устройства .trigger the digital computers and launch interrupt programs. If such attempts fail, then the interrupt counter 26 overflows and the overflow signal as a fault command is output to the digital computer via the output 14 of the device.
В режиме измерени времени выпол нени программы с задатчика 16 режина работы в блок 7 анализа режимов выдаетс сигнал логического О, который запрещает передачу в блок 1 управлени соответствующих сигналов чеIn the mode of measuring the program execution time from the setpoint adjuster 16 of operation, the mode analysis signal 7 is given a logical signal O, which prohibits the transmission to the control unit 1 of the corresponding signals
рез группу элементов И 23 и элементы и И 22, 24 и 25. В блоке 7 анализа режимов этот сигнал после инвертировани на элементе НЕ 32 разрешает передачу через элемент И 35 команды Измерение с задатчика 17 блока 8. С П1эмощью задатчиков 19 и 18 блока 8, представл ющих собой клавишные регистры, устанавливаютс начальный и конечный адреса измер е- мо й программы, которые поступают на первые входы соответств.ующих схем 27 и 28 сравнени блока 7, На вторые , входы схем 27 и 28 сравнени с второго входа 10 устройства поступает текущий адрес исполн емой ко .манды ЦВМ. cutting a group of elements And 23 and elements And 22, 24 and 25. In block 7 of mode analysis, this signal, after inverting on element 32, permits the transmission through command And 35 of the command Measurement from unit 17 of unit 8. With control unit 19 and 18 of unit 8 , representing the key registers, set the starting and ending addresses of the measured e-th program, which are received at the first inputs of the corresponding circuits 27 and 28 of the block 7, At the second, the inputs of the circuits 27 and 28 of the comparison with the second input 10 of the device The current address of the executable computer command.
Работа устройства в данном режиме начинаетс по импульсной команде Измерение, выдаваемое с задатчика 17 блока 8, представл ющего собой кнопку. .Данна команда через элемент И 35 блока 7 устанавливаетOperation of the device in this mode starts with a pulse command. Measurement issued from the setpoint 17 of block 8, which is a button. .This command through the element And 35 block 7 sets
.триггер 37 в единичное состо ние, а также через элемент ИЛИ, 20 блока 1 выдаетс на записывающий вход счетчика 2, обеспечива запись в него нулевого кода с выхода группы элементов И 23 и подготавлива счетчик 2 дл измерени времени. При совпадении текущего адреса с задан-- ным начальным адресом измер емой программь на выходе схемы 27 сравнени по вл етс сигнал логической 1, который через элемент И 33 устанавливает триггер 38 в едини - ное состо ние. Сигнал с выхода триггера 38 через элемент ИЛИ 31 поступает на элемент И 36 и разрешает выдачу на счетный вход счетчика 2 импульсов пересчета, которые начинают заполн ть его. В момент совпадени текущего адреса с заданным конечным адресом измер емой программы на выходе схемы 28 сравнени по вл етс сигнал логической 1, ко- торьй через ь-лемент И 34 и ИЛИ 30 устанавливает триггер 38 в нулевое состо ние, запреща выдачу через элемент И 36 пересчетных импульсов в счетчик 2. Содержимое счет чика 2, вл ющеес кодом измеренного времени вьшолнени программы, вьщает с на индикатор 9.A trigger 37 in the unit state as well as through the OR element 20 of unit 1 is output to the recording input of counter 2, ensuring that a zero code is output from the output of the AND 23 group of elements and preparing the counter 2 for measuring time. When the current address coincides with the specified starting address of the program being measured, the output of the comparison circuit 27 will be a logical 1 signal, which through the AND 33 element sets the trigger 38 to the single state. The signal from the output of the trigger 38 through the OR element 31 arrives at the AND 36 element and allows 2 counts pulses to be output to the counting input of the counter, which begin to fill it. At the moment of coincidence of the current address with the specified end address of the program being measured, a logical 1 signal appears at the output of the comparison circuit 28, which through triggering the AND 34 and OR 30 sets the trigger 38 to the zero state, prohibiting the output through AND 36 recalculated pulses into the counter 2. The contents of the counter 2, which is the code of the measured program execution time, indicate on indicator 9.
Таким образом, по сравнению с известным предложенное устройство дл временного контрол программ обеспечивает возможность измерени времени выполнени программ, что сущест- Thus, in comparison with the known, the proposed device for time control of programs provides the ability to measure the time of program execution, which is
10ten
232334232334
венно увеличивает функциональные возможности и расшир ет области его применени , позвол использовать его не только в режимах штатного функционировани ЦВМ, но также дл оценки временной эффективности пр ограмм в услови х эксплуатации и при отладке .. программ.enlarges the functionality and expands its areas of application, allowing it to be used not only in the normal operation modes of a digital computer, but also to evaluate the temporal efficiency of programs under operating conditions and during debugging of programs.
Преимуществом предлагаемого уст- , ройства вл етс также исключение необходимости внесени изменений в программу при измерении времени ее выполнени , требуемое при использо- вании программных методов измерени - времени программ.The advantage of the proposed device is the elimination of the need to make changes to the program when measuring its execution time, which is required when using software measurement methods — program time.
Кроме того, предлагаемое устройство позвол ет получить высокую точность измерени времени, завис щую только от периода следовани пересчетных импульсов, а также проводить измерение не только всей программы, но и отдельных ее участков, вплоть до одной команды.In addition, the proposed device allows to obtain a high accuracy of time measurement, depending only on the period of the recalculated pulses, as well as to measure not only the entire program, but also its individual sections, up to a single command.
1515
2020
2525
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU843802278A SU1223235A1 (en) | 1984-10-09 | 1984-10-09 | Device for checking program execution time |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU843802278A SU1223235A1 (en) | 1984-10-09 | 1984-10-09 | Device for checking program execution time |
Publications (1)
Publication Number | Publication Date |
---|---|
SU1223235A1 true SU1223235A1 (en) | 1986-04-07 |
Family
ID=21142935
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
SU843802278A SU1223235A1 (en) | 1984-10-09 | 1984-10-09 | Device for checking program execution time |
Country Status (1)
Country | Link |
---|---|
SU (1) | SU1223235A1 (en) |
-
1984
- 1984-10-09 SU SU843802278A patent/SU1223235A1/en active
Non-Patent Citations (1)
Title |
---|
Авторское свидетельство СССР 439813, кл. G 06 F 11/00, 1975. Авторское свидетельство СССР 619919, кл. G 06 F П/00, 1978. * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5103394A (en) | Software performance analyzer | |
EP0067324B1 (en) | Software correlating hardware monitor system | |
US4845615A (en) | Software performance analyzer | |
JPH0341853B2 (en) | ||
SU1223235A1 (en) | Device for checking program execution time | |
SU813432A1 (en) | Device for testing microprogramme automatic apparatus | |
SU1128266A1 (en) | Device for collecting statistical data concerning operation of computer programs | |
SU1262502A1 (en) | Device for searching intermittent failures | |
SU1160417A1 (en) | Device for checking digital units | |
SU720444A2 (en) | Arrangement for life testing machines | |
SU1013956A2 (en) | Logic circuit checking device | |
SU840817A1 (en) | Device for diagnosis of automatic control system | |
SU1711209A1 (en) | Device for determining product maintenance parameters | |
SU1365087A2 (en) | Device for checking logic circuits | |
SU1383217A2 (en) | Device for measuring frequency ratio of two signals | |
SU1474681A2 (en) | Failure detector | |
SU1032457A1 (en) | Logic analyser | |
SU1665344A1 (en) | Adaptive testing device | |
SU1670688A1 (en) | Device for checking programs | |
SU955073A1 (en) | Digital system checking device | |
SU1275452A1 (en) | Device for debugging programs | |
SU762014A1 (en) | Apparatus for diagnosing faults of digital units | |
SU1481768A1 (en) | Signature analyser | |
SU1377829A1 (en) | Device for checking parameters | |
SU1483456A1 (en) | Digital unit check circuit |