SU1223235A1 - Device for checking program execution time - Google Patents

Device for checking program execution time Download PDF

Info

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
Application number
SU843802278A
Other languages
Russian (ru)
Inventor
Валерий Михайлович Бойцов
Владимир Александрович Максимов
Кронид Леонидович Рыженькин
Сергей Валентинович Смирнов
Original Assignee
Предприятие П/Я А-7357
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Предприятие П/Я А-7357 filed Critical Предприятие П/Я А-7357
Priority to SU843802278A priority Critical patent/SU1223235A1/en
Application granted granted Critical
Publication of SU1223235A1 publication Critical patent/SU1223235A1/en

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)

Формула из-обретени Formula of gain 30thirty 5050 Устройство дл  контрол  времени выполнени  программ, содержащее счетчик , триггер, элемент И, элемент ИЛИ и блок управлени , причем выход переполнени  счетчика соединен с пер- вьш входом элемента ИЛИ, с единичным входом триггера, выход .которого соединен с первым входом элемента И, вход времени устройства соеди11ен с35 вторым входом элемента И, блок управлени  содержит первый элемент И, вы- .ход которого соединен с информационным входом счетчика, отличающеес  тем, что, с целью расши рени  функциональных возможностей устройства за счет обеспечени  из- мерени  времени выполнени  программы , в него введены блок индикации, блок задани  режимов и блок анали-A device for monitoring the execution time of programs, containing a counter, a trigger, an AND element, an OR element and a control unit, the counter overflow output is connected to the first input of the OR element, with a single trigger input whose output is connected to the first input of the AND element, input time of the device is connected with the second input of the element I, the control unit contains the first element I, the output of which is connected to the information input of the counter, characterized in that, in order to expand the functional capabilities of the device by providing Measurements echeni time the program is executed, it introduced a display unit, and the mode setting unit block anali- за режимов, а в блок управлени  введены первый и второй элементы ИЛИ, второй, третий и четвертьой элементы И и счетчик прерываний, блок анализа режимов содержит первую и вто55 for the modes, and the first and second elements OR, the second, third and fourth elements AND and the interrupt counter are entered into the control block, the mode analysis block contains the first and second 55 рую схемы сравнени , первый, второй, третий и четвертьй элементы-И, первый , второй, третий элементы ИЛИ, элемент НЕ, первый и второ.й триггеры , причем выходы начального адреса, конечного адреса и режима измерени  блока задани  режимов соединены соответственно с входом первого сравниваемого числа первой схемыThe first, second, third and fourth elements AND, the first, second, third OR elements, the NOT element, the first and second triggers, the outputs of the start address, the end address and the measurement mode of the mode setting block are connected respectively to the input the first to compare the number of the first scheme сравнени  блока анашиза режимов, с входом первого сравниваемого числа второй схемы сравнени  блока анализа режимов, с первым входом первого элемента И блока анализа режимов , выход задани  режима работы устройства соединен с первыми входами первого, второго и третьего элементов ИЛИ и через элемент НЕ - с вторым взводом первого элемента И блока-анализа режимов, с первыми входами первого, второго, третьего и четвертого элементов И блока уп- равлени , адресный вход устройства соединен с входами второго сравниваемого числа первой и второй схем сравнени  блока анализа режимов, выходы которых соединены с первыми входами второго и третьего элементов И соответственно, выход второго элемента И блока анализа режимов соединен с единичным входом первого триггера, выход которого соединен с вторым входом второго элемента ИЛИ бло}са анализа режимов, выход третьего элемента И блока анализа режимов соединен с вторыми входами первого и второго элементов ИЛИ, выходы которых соединены с нулевыми входами соответственно второго и первого триггеров блока анализа режимов, выход первого триггера блока анализа режимов соединен с вторым входом третьего элемента ИЛИ, выход которого соединен с первым входом четвертого элемента И блока анализа режимов, выход первого элемента И блока анализа режимов соединен с первыми входами первого и второго элементов ИЛИ блока управлени  и единичным входом второго триг- - гера блока анализа режимов, выход второго триггера блока анализа режимов соединен с вторыми входами второго и третьего элементов И блока анализа режимов, вход метки времени , устройства соединен с вторым входом четвертого элемента И блока анаg ЛИЗа режимов, выход четвертого элемента И блока анализа режимов соединен со счетным входом счетчика, информационный выход которого соединен с информационным входом блока инди5 кации, входы признака записи, кода времени выполнени  программ и начальной установки устройства соединены с вторыми входами соответственно второго , первого и третьего элементовcomparison of the anashiz mode block, with the input of the first comparative number of the second comparison circuit of the mode analysis block, with the first input of the first element AND mode analysis block, the output setting of the device operation mode is connected to the first inputs of the first, second and third OR elements and through the NOT element to the second by cocking the first element AND mode-analysis block, with the first inputs of the first, second, third and fourth elements AND the control block, the address input of the device is connected to the inputs of the second compared number of the first and second Chemical comparison of the mode analysis block whose outputs are connected to the first inputs of the second and third elements AND, respectively, the output of the second element AND the mode analysis block is connected to the single input of the first trigger, the output of which is connected to the second input of the second element OR mode analysis unit element And block analysis modes connected with the second inputs of the first and second elements OR, the outputs of which are connected to zero inputs, respectively, of the second and first triggers of the analysis mode, the output of the first t The rigger of the mode analysis block is connected to the second input of the third element OR, the output of which is connected to the first input of the fourth element AND mode analysis block, the output of the first element AND mode analysis block is connected to the first inputs of the first and second OR elements of the control unit and the single input of the second trig- gera of the mode analysis block, the output of the second trigger of the mode analysis block is connected to the second inputs of the second and third elements AND the mode analysis block, the time stamp input of the device is connected to the second input a quarter Element And block of LIZ modes, the output of the fourth element And mode analysis block is connected to the counting input of the counter, the information output of which is connected to the information input of the indication unit, the inputs of the recording feature, the program execution time code and the initial installation of the device are connected to the second inputs of the second first and third elements 0 И блока управлени , выходы второго и третьего элементов И блока управлени  соединены с вто1и 1ми входами0 And the control unit, the outputs of the second and third elements And the control unit is connected to the first 1 inputs соответственно первого и второго элементов ИЛИ блока управлени , вы5 ход первого и второго элементов ИЛИ блока управлени  соединены соответственно с входом записи счетчика и с нулевым входом триггера, выход элемента И соединен с вторым входом respectively, the first and second elements OR of the control unit, the output of the first and second elements OR of the control unit are connected respectively to the write input of the counter and to the zero input of the trigger, the output of the AND element is connected to the second input Q элемента ИЛИ, выход которого соединен с вторым входом четвертого элемента И и счетиым входом счетчика прерываний блока управлени , вход начальной установки устройства соединен с установочшда входом счетчика прерываний блока управлени , выходы счетчика прерываний и четвертого элемента И блока управлени   вл ютс  соответственно выходами отказа и окончани  измерени  усГрой5The Q element OR, whose output is connected to the second input of the fourth element AND and the counting input of the interrupt counter of the control unit, the input of the initial installation of the device is connected to the set input of the interrupt counter of the control unit, the outputs of the interrupt counter and the fourth element And the control unit are respectively the output of the failure and the end measurement ства.properties. ll // 74  74 // /7/ 7 16sixteen 1212 1313 /4/four 1515 Фиг.11 МеткиTags Редактор А. ШандорEditor A. Shandor Заказ 1715/52 Тираж 671 Подписное ВНИИПИ Государственного комитета СССРOrder 1715/52 Circulation 671 Subscription VNIIPI USSR State Committee по делам изобретений и открытий 113035, Москва, Ж-35, Раушска  наб., д. 4/5for inventions and discoveries 113035, Moscow, Zh-35, Raushsk nab., 4/5 Филиал ППП Патент, г. Ужгород, ул. Проектна , Branch PPP Patent, Uzhgorod, st. Design, Составитель И. СигаловCompiled by I. Sigalov Техред Л.Олейник Корректор А.ФеренцTehred L.Oleynik Proofreader A.Ferents
SU843802278A 1984-10-09 1984-10-09 Device for checking program execution time SU1223235A1 (en)

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)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
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