[go: up one dir, main page]

SU1615726A1 - Device for monitoring running of programs - Google Patents

Device for monitoring running of programs Download PDF

Info

Publication number
SU1615726A1
SU1615726A1 SU894641878A SU4641878A SU1615726A1 SU 1615726 A1 SU1615726 A1 SU 1615726A1 SU 894641878 A SU894641878 A SU 894641878A SU 4641878 A SU4641878 A SU 4641878A SU 1615726 A1 SU1615726 A1 SU 1615726A1
Authority
SU
USSR - Soviet Union
Prior art keywords
input
output
group
counter
address
Prior art date
Application number
SU894641878A
Other languages
Russian (ru)
Inventor
Владимир Антонович Ткаченко
Вячеслав Сергеевич Харченко
Сергей Николаевич Ткаченко
Григорий Николаевич Тимонькин
Сергей Юрьевич Петунин
Сергей Семенович Мощицкий
Original Assignee
Предприятие П/Я А-1874
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 Предприятие П/Я А-1874 filed Critical Предприятие П/Я А-1874
Priority to SU894641878A priority Critical patent/SU1615726A1/en
Application granted granted Critical
Publication of SU1615726A1 publication Critical patent/SU1615726A1/en

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

Изобретение относитс  к автоматике и вычислительной технике и может быть использовано при построении средств контрол  и отладки программных средств. Цель изобретени  - увеличение глубины контрол  хода программы. Цель достигаетс  за счет введени  двух блоков оперативной пам ти, регистра кодов признаков, регистра значений признаков, мультиплексора, группы счетчиков закольцовки, двух счетчиков адреса, счетчика управлени , дешифратора, группы элементов И, второго элемента И, группы элементов ИЛИ, второго, третьего и четвертого элементов ИЛИ. Устройство позвол ет контролировать траекторию выполнени  программы, а также идентифицировать причину локального зацикливани . 2 ил.The invention relates to automation and computing and can be used in the construction of means of control and debugging software. The purpose of the invention is to increase the depth of control of the program. The goal is achieved by introducing two blocks of RAM, a register of feature codes, a register of feature values, a multiplexer, a group of loopback counters, two address counters, a control counter, a decoder, a group of elements And, a second element And, a group of elements OR, second, third and fourth element OR. The device allows you to control the trajectory of the program, as well as to identify the cause of the local loop. 2 Il.

Description

Изобретение относитс  к автоматике и вычислительной технике и может быть использовано при построении средств контрол  и отладки программных средств.The invention relates to automation and computing and can be used in the construction of means of control and debugging software.

Цель изобретени  - увеличение глубины контрол  хода выполнени  программы.The purpose of the invention is to increase the depth of monitoring the progress of the program.

На фиг. 1 представлена функциональна  схема предлагаемого устройства; на фиг. 2 - временна  диаграмма формировани  тактовых импульсов.FIG. 1 shows a functional diagram of the proposed device; in fig. 2 is a timing diagram of the formation of clock pulses.

Устройство (фиг. 1) содержит первый 1 и второй 2 блоки оперативной пам ти, ре- гистр3 кодов признаков, регистр 4значений признаков, мультиплексор 5, группу счетчиков 6 закольцовки, первый 1 счетчик адреса, счетчик 8 управлени , второй 9 счетчик адреса , счетчик 10.закольцовки, дешифратор 11, группу элементов И 12, первый 13 и второй 14 элементы И, группу элементов ИЛИ 15, второй 16, четвертый 17, третий 1.8 и первый 19 элементы ИЛИ, вход 20 кода признака, вход 21 значени  признака устройства , второй 22 тактовый вход устройства , первый 23 и второй 24 входы формировани  адреса, первый 25 и третий 26 тактовые входы устройства, вход 27 начальной установки устройства, первый информационный выход 28 устройства, первый выход 29 адреса устройства, второй информационный выход 30 устройства, второй выход 31 адреса устройства, третий информационный выход 32 устройства, второй 33 и первый 34 выходы признака зацикливани  устройства.The device (Fig. 1) contains the first 1 and second 2 blocks of RAM, a register of feature codes, a register of 4 values of features, a multiplexer 5, a group of counters 6 of a loop, a first 1 address counter, a control counter 8, a second 9 address counter, a counter 10. Circles, decoder 11, group of elements AND 12, first 13 and second 14 elements AND, group of elements OR 15, second 16, fourth 17, third 1.8 and first 19 elements OR, input 20 of the code of the feature, input 21 of the value of the device feature, the second 22 clock input of the device, the first 23 and second 24 inputs of the formation addresses, first 25 and third 26 clock inputs of the device, input 27 of the initial installation of the device, first information output 28 of the device, first output 29 of the device address, second information output 30 of the device, second output 31 of the device address, third information output 32 of the device, second 33 and the first 34 outputs of a looping device.

Устройство работает в двух режимах: в режиме контрол  хода выполнени  программы и в режиме индикации результатов контрол .The device operates in two modes: in the mode of monitoring the progress of the program and in the mode of displaying the results of the control.

Режим контрол  хода выполнени  программы . Перед началом работы устройства вс.е элементы пам ти устанавливаютс  в исходное (нулевое) состо ние (цепи установки в исходное не показаны). После этого, использу  вход 27 начальной установки, производитс  (при необходимости) начальнай установка группы счетчиков закольцовки иThe mode of monitoring the progress of the program. Before operation of the device, all memory elements are set to the initial (zero) state (the installation circuits to the initial state are not shown). After that, using the initial installation input 27, the installation of a group of locking-in counters and

СWITH

ел чate h

ЮYU

((

четчика 10 закольцовки. Это необходимо дл  ого, чтобы в каждый из счетчиков записать акую уставку, чтобы оставша с  емкость четчика определ ла возможное число по вени  соответствующего признака в ходе вы- олнени  программы. Окончание редварительной установки характеризует готовность устройства к контролю хода выполнени  программы,the 10 is a loopback. It is necessary for each of the counters to record a given setpoint so that the remaining capacity of the caterer determines the possible number of occurrences of the corresponding sign during program execution. The end of the pre-installation indicates the device’s readiness to monitor the progress of the program

В ходе выполнени  контролируемой программы по вление очередного признака сопровождаетс  меткой, в соответствии с которой формируютс  синхроимпульсы TI, Т2 и г 3 (фиг. 2). Кроме того, на вход 20 устройства подаетс  код признака, а на вход 21 устройства - значение признака.During the execution of the monitored program, the appearance of the next feature is accompanied by a tag, in accordance with which the sync pulses TI, T2 and g 3 are formed (Fig. 2). In addition, an attribute code is supplied to the device input 20, and a characteristic value is supplied to the device input 21.

С приходом тактового импульса TI на вход 22 устройства осуществл етс  запись i-ro кода признака в регистр 3 кодов призна-. ка. Информаци  (код признака) с выхода регистра 3 кодов признака поступает на информационные входы первого блока 1 one-, ративной пам ти, мультиплексора 5 и дешифратора 11. В соответствии с полученным кодом признака на выходе мультиплексора 5 формируетс  значение i-ro признака, которое подаетс  на информационный вход регистра 4 значений признаков. Кроме этого , на i-M выходе дешифратора 11 (соответствующем коду признака) формируетс  управл ющий сигнал. Данный сигнал лодго- тавливает к работе i-й элемент И из группы элементов И 12, а также через элемент ИЛИ 17 подготавливает к работе элемент И 13.With the arrival of the clock pulse TI at the input 22 of the device, the i-code of the feature code is written to the register 3 of the acknowledged codes. ka Information (feature code) from the output of the register 3 of the feature code is fed to the information inputs of the first block 1 of the one-, ram storage, multiplexer 5 and decoder 11. In accordance with the obtained feature code, the output of the i-ro feature is supplied on the information input of the register 4 values of attributes. In addition, at the i-M output of the decoder 11 (corresponding to the feature code) a control signal is generated. This signal is allocated to the i-th element of AND from the group of elements AND 12, and also through the element OR 17 prepares for operation the element AND 13.

Следующим поступает на вход 25 устройства тактовый импульсТ2. Благодар  ему осуществл ютс  запись в первый блок 1 оперативной пам ти кода признака из регистра 3 кодов признака; через открытый элемент И 13 запись в регистр 4 значений признаков значени  признака из мультиплексора 5; увеличение на единицу числа, записанного в i-й счетчик группы счетчиков 6 закольцовки (через i-й элемент блока 12 элементов И, открытый управл ющим сигналом с 1-го выхода дешифратора 11); увеличение на единицу числа, записанного в счетчик 8 управлени .Next comes the input pulse 25 of the device 25. Thanks to it, writing into the first block 1 of the operating memory of the code of the feature from register 3 of the feature codes is carried out; through the open element AND 13, writing to the register 4 attribute values of the value of the attribute from multiplexer 5; increasing by one the number recorded in the i-th counter of the group of counters 6 of the loop (through the i-th element of the block 12 elements I, opened by the control signal from the 1st output of the decoder 11); increasing by one the number recorded in the control counter 8.

Работа устройства по фиксации одного признака программы оканчиваетс  с приходом третьего тактового импульса тз (на вход 26 устройства). С приходом г з в первом счетчике 7 адреса формируетс  очередной ад- рес (через элемент ИЛИ 16), а также открываетс  (опрашиваетс ) элемент И 14. На выходе элемента И 14 единичный сигнал формируетс  только в том случае, еСли в каждом из п счетчиков группы будет записана хоть одна единица, т.е. на выходе всех пThe operation of the device for fixing one feature of the program ends with the arrival of the third clock pulse TZ (to the input 26 of the device). With the arrival of rz, the next address (via the element OR 16) is formed in the first counter 7 of the address, and the element 14 is opened (polled). At the output of the element 14, a single signal is formed only in that case, in each of the n counters groups will be recorded at least one unit, i.e. at the exit of all n

элементов ИЛИ 15 группы будет сформирован единичный сигнал.elements of the OR 15 group will form a single signal.

Аналогично происходит обработка всех признаков программы. Однако с приходом каждого восьмого тактового импульса t2 происходит переполнение счетчика 8 управлени . Импульс переполнени , поступа  на управл ющий вхбд второго блока 2 опера- тивной пам ти, обеспечивает запись байта значений признаков с выхода регистра 4 значений признаков во второй блок 2 оперативной пам ти, Кроме этого, по заднему фронту импульса переполнени  счетчика 8 управлени  через элемент ИЛИ 18 во вто- ром счетчике 9 адреса формируетс  адрес очередного байта значений признаков.Similarly, the processing of all signs of the program. However, with the arrival of every eighth clock pulse t2, the control counter 8 overflows. The overflow pulse received by the control memory of the second block 2 of the operational memory records the byte of the values of the signs from the register 4 register of the values of the signs to the second block 2 of the RAM, In addition, the trailing edge of the overflow pulse of the counter 8 controls through the OR element 18, in the second address counter 9, the address of the next byte of the attribute values is generated.

Если к моменту прихода очередного импульса Тз во всех п счетчиках 6 группы будет записано хот  бы по одной единице (т,е. в ходе выполнени  программы выполн ютс  все ее участки - про вл ютс  все признаки), то на выходе элемента И 14 формируетс  единичный сигнал, который фиксируетс  в счетчике 10, а также обеспечиваетуменьше- ние на единицу содержимого каждого из счетчиков 6 группы, В ходе выполнени  контрол  программы обеспечиваетс  возможность доступа к содержимому всех счетчиков закольцовки. Это позвол ет оце- нивать, к какой последовательности и какое число раз по вл етс  каждый из признаков в ходе выполнени  программы. Переполнение любого из п счетчиков группы свидетельствует о зацикливании участка программы, а переполнение счетчика 10 - программы в целом.If by the time of arrival of the next pulse Tz in all n counters of group 6 will be recorded at least one unit (i.e., during the execution of the program all its sections are executed, all the signs appear), at the output of the And 14 element a single the signal that is recorded in the counter 10, as well as provides for the reduction of the contents of each of the group 6 counters per unit. During the monitoring of the program, it is possible to access the contents of all the loopback counters. This allows one to estimate to which sequence and how many times each of the symptoms appear during the execution of the program. The overflow of any of the n counters of the group indicates that the program section is looping, and the overflow of counter 10 - the program as a whole.

Окончание работы устройства характеризуетс  окончанием выполнени  программы. В случае зацикливани  предусматриваетс  возможность прекращени  выполнени  программы по командам зацикливани , формируемым на первом 34 и втором 33 выходах устройства.The end of the operation of the device is characterized by the end of the execution of the program. In the case of looping, it is envisaged that the program can be terminated by looping instructions generated on the first 34 and second 33 outputs of the device.

Режим индикации результатов контро- л . В данном режиме, использу  первый 23 и второй 24 входы формировани  адреса, можно вывести на индикацию информацию, содержащуюс  в первом 1 и втором 2 блоках оперативной пам ти. Поскольку коды при- знаков и их значени  фиксируютс  последовательно , по мере их формировани  в программе, можно проследить весь маршрут ее выполнени ,. Увеличение глубины контрол  хода вы- полнени  программ при отладке осуществл етс  за счет реализации возможности контрол  траектории выполнени  программы , а также за счет идентификации причин локального зацикливани  Mode display results control. In this mode, using the first 23 and second 24 inputs of the address formation, it is possible to display the information contained in the first 1 and second 2 blocks of RAM. Since the codes of characters and their values are recorded sequentially, as they are formed in the program, the whole route of its execution can be followed. Increasing the monitoring depth of the program execution during debugging is done by implementing the ability to control the program execution trajectory, as well as by identifying the causes of local looping.

Claims (1)

Формула изобретени Invention Formula Устройство дл  контрол  хода программ, содержащее счетчик закольцовки, первый элемент И, первый элемент ИЛИ, выход которого  вл етс  первым выходом признака заклинивани  устройства, первый тактовый вход .устройства соединен с первым входом первого элемента И, отличаю - щ е е с   тем, что, с целью увеличени  глубины контрол  хода выполнени  программы , устройство дополнительно содержит первый и второй блоки оперативной пам ти, регистр кодов признаков, регистр значений признаков, мультиплексор, группу счетчиков закольцовки, первый и второй счетчики адреса, суетчик управлени , дешифратор , группу элементов И, второй элемент И, группу элементов ИЛИ, второй, третий и четвертый элементы ИЛИ, причем вход задани  кода признака устройства со.- единен с информационным входом регистра кодов признаков, выход которого соединен с информационным входом первого .блока оперативной пам ти, входом адреса мультиплексора и входом дешифратора, вход задани  значени  признака устройства соединен с информацион- ным входом мультиплексора, выход которого соединен с информационным входом регистра значений признаков, первый тактовый вход устройства соединен с входом чтени /записи первого блока оперативной пам ти и управл ющими входами элементов И группы, выходы которых соединены с суммирующими входами счетчиков закольцовки группы, второй тактовый вход устройства соединен с синхровходом регистра кодов признаков, третий тактовый вход устройства соединен с первым входом второго элемента ИЛИ и стробирующим входом второго элемента И, выход которого соединен с суммирующим входом счетчика закольцовки и вычитающими входами счетчиков закольцовки группы, выходы переполнени  счетчиков закольцовки группы соединены с входами первого элемента ИЛИ, - первый вход формировани  адреса устройства соединен с вторым входом второго элемента ИЛИ, выход которого соединен со счетн ым входом первого счетчика адреса, второй вход формировани  адреса устройства соединен с первым входом третьего элемента ИЛИ, выход которого соединен соA device for monitoring the progress of programs, containing a loopback counter, the first element AND, the first element OR, the output of which is the first output of the device jamming feature, the first clock input of the device connected to the first input of the first element AND, which differs from , in order to increase the depth of monitoring the progress of the program, the device additionally contains the first and second blocks of RAM, a register of feature codes, a register of feature values, a multiplexer, a group of spacing counters, the first and second the address counters, the control bustle, the decoder, the group of elements AND, the second element AND, the group of elements OR, the second, third and fourth elements OR, and the input of setting the device code of the device co. is connected to the information input of the register of the codes of the signs, the output of which is connected to the information input of the first RAM block, the multiplexer address input and the decoder input, the input parameter setting value of the device is connected to the multiplexer information input, the output of which is connected to the information input The trait of values of attributes, the first clock input of the device is connected to the read / write input of the first block of RAM, and the control inputs of the AND elements of the group, the outputs of which are connected to the summing inputs of the group's loop counter counters; the device input is connected to the first input of the second OR element and the gate input of the second element AND, the output of which is connected to the summing input of the loopback counter and the subtractive inputs with the group's loopbacks, the overflow outputs of the group's loopback counters are connected to the inputs of the first OR element — the first input of the device address is connected to the second input of the second OR element, the output of which is connected to the counting input of the first address counter, the second input of the device address formation is connected to the first input the third element OR, the output of which is connected to счетным входом второго счетчика адреса,, выход первого счетчика адреса  вл етс  первым выходом адреса устройства и соединен с входом адреса первого блока оперативной пам ти, выход которого  вл етс the counter input of the second address counter, the output of the first address counter, is the first output of the device address and is connected to the address input of the first RAM block whose output is перЪым информационным выходом устройства , выход второго счетчика адреса  вл етс  вторым выходом адреса устройства и соединен с входом адреса второго блока оперативной пам ти, выход которого  вл етс  вторым информационным выходом устройства , вход начальной установки устройства соединен с синхронизирующими и информационными входами счетчиков закольцовки группы и счетчика закольцовки , информационные выходы которь1Х образуют третий информационный выход устройства, информационные выходы счетчиков закольцовки группы соединены с входами соответствующих элементов ИЛИThe first information output of the device, the output of the second address counter is the second output of the address of the device and connected to the address input of the second RAM memory block, the output of which is the second information output of the device, the input of the initial installation of the device is connected to the synchronization and information inputs of the group return counter counters and the counter the loopbacks, the information outputs of which form the third information output of the device, the information outputs of the counters of the loop connection of the group are connected to the input The codes of the corresponding elements OR группы, выходы которых соединены с группой информационных входов второго элемента И, выходы дешифратора соединены с информационными входами элементов И группы и входами четвертого элементаthe groups whose outputs are connected to the group of information inputs of the second element I, the outputs of the decoder are connected to the information inputs of the elements AND group and the inputs of the fourth element ИЛИ, выход которого соединен с вторым входом первого элемента И, выход первого элемента И соединен с счетным входом счетчика управлени  и синхровходом регистра значений признаков, выход которогоOR, the output of which is connected to the second input of the first element AND, the output of the first element AND is connected to the counting input of the control counter and the synchronous input of the register of characteristic values, the output of which соединен с информационным входом второго блока оперативной пам ти, выход переполнени  счетчика управлени  соединен с вторым входом третьего элемента ИЛИ и входом чтени /записи второго блокаоперативной пам ти.connected to the information input of the second memory unit; the overflow output of the control counter is connected to the second input of the third OR element and the read / write input of the second block operative memory.
SU894641878A 1989-01-25 1989-01-25 Device for monitoring running of programs SU1615726A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU894641878A SU1615726A1 (en) 1989-01-25 1989-01-25 Device for monitoring running of programs

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU894641878A SU1615726A1 (en) 1989-01-25 1989-01-25 Device for monitoring running of programs

Publications (1)

Publication Number Publication Date
SU1615726A1 true SU1615726A1 (en) 1990-12-23

Family

ID=21424856

Family Applications (1)

Application Number Title Priority Date Filing Date
SU894641878A SU1615726A1 (en) 1989-01-25 1989-01-25 Device for monitoring running of programs

Country Status (1)

Country Link
SU (1) SU1615726A1 (en)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Авторское свидетельство СССР NJ 1213480, кл. G 06 F , 1986. Патент GB № 2065939 кл. G 06 F 11/26, опублик. 1984. *

Similar Documents

Publication Publication Date Title
US4315313A (en) Diagnostic circuitry in a data processor
SU1615726A1 (en) Device for monitoring running of programs
JPS5939783B2 (en) logical state tracker
SU1280636A1 (en) Device for debugging programs
SU1305771A1 (en) Buffer memory driver
SU1589288A1 (en) Device for executing logic operations
SU1430959A1 (en) Device for monitoring microprogram run
SU1663612A1 (en) Device for program run checking
SU1711166A1 (en) Computer system throughput evaluator
SU1348839A1 (en) Device for debugging program hardware-controlled units
SU1608675A1 (en) Device for monitoring running of programs in computer
SU1755284A1 (en) Device for checking information
SU1193641A1 (en) Device for checking and controlling production processes
SU1383372A1 (en) Program debugging device
JPH0282334A (en) Bus cycle trace circuit
SU1287237A1 (en) Buffer storage
SU1108511A1 (en) Storage with selfcheck
SU1511750A1 (en) Program debugging device
SU1642472A1 (en) Device for checking the sequence of operatorъs actions
SU1689955A1 (en) Device for debugging programs
SU1300478A1 (en) Device for debugging programs
SU576588A1 (en) Magnetic digital recording apparatus
SU1291988A1 (en) Information input device
SU1083194A1 (en) Device for debugging programs
SU1589264A1 (en) Device for information input