SU1137472A1 - Debugging device - Google Patents

Debugging device Download PDF

Info

Publication number
SU1137472A1
SU1137472A1 SU833618204A SU3618204A SU1137472A1 SU 1137472 A1 SU1137472 A1 SU 1137472A1 SU 833618204 A SU833618204 A SU 833618204A SU 3618204 A SU3618204 A SU 3618204A SU 1137472 A1 SU1137472 A1 SU 1137472A1
Authority
SU
USSR - Soviet Union
Prior art keywords
input
elements
inputs
group
output
Prior art date
Application number
SU833618204A
Other languages
Russian (ru)
Inventor
Леонид Олегович Беспалов
Владимир Яковлевич Зельченко
Михаил Николаевич Рахманин
Вячеслав Васильевич Савуткин
Таймураз Касполатович Цогоев
Владилен Иванович Шагулин
Original Assignee
Предприятие П/Я Г-4152
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 Предприятие П/Я Г-4152 filed Critical Предприятие П/Я Г-4152
Priority to SU833618204A priority Critical patent/SU1137472A1/en
Application granted granted Critical
Publication of SU1137472A1 publication Critical patent/SU1137472A1/en

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

УСТРОЙСТВО ДЛЯ ОТЛАДКИ ПРОГРАММ, содержащее блок пам ти, первый элемент задержки и триггер, . причем адресный, информационный входы и .вход считывани  устройства соединены соответственно с адресным, информационным входами и входом считывани  блока пам ти, о т л и ч а ю щ е е с  тем, что, с целью повьшени  быстродействи  при отладке программ , в устройство введены шифратор команды Останов, группа элементов И, группа элементов ИЛИ, второй элемент задержки, а в блок пам ти введен дополнительный разр д, причем информационные вьЬсоды блока пам ти и выход дополнительного разр да блока пам ти соединены соответственно с первыми входами элементов И группы и с единичным входом триггера, единичный и нулевой выходы которого соединены с первыми входами первого и второго элементов И соответственно, выход первого элемента И соединен со вторыми входами элементов И группы, выходы которых соединены с первь ми входами элементов ИЛИ группы, выход второго элемента И соединен со входом шифратора команды Останов, выходы которого соединены со вторыми входами соответствующих элементов ИЛИ группы, вход считывани  устройстСП ва через первый элемент задержки соединен со вторыми входами первого и второго элементов И, выход второго элемента задержки соединен с нулевым входом триггера, вход второго элемента задержки подкщ)чен ко входу второго элемента И, выходы элементов ИЛИ оо ю группы образуют группу информационных выходов устройства.DEVICE FOR DEBUGGING PROGRAMS containing the memory block, the first delay element and the trigger,. Moreover, the address, information inputs and the read input of the device are connected respectively to the address, information inputs and read input of the memory block, so that, in order to improve the speed when debugging programs, the device is entered the encoder of the Stop command, the group of elements AND, the group of elements OR, the second delay element, and an additional bit are entered into the memory block, the information bits of the memory block and the output of the additional bit of the memory block are connected respectively to the first input And group of elements and with a single trigger input, single and zero outputs of which are connected to the first inputs of the first and second elements AND, respectively, the output of the first element AND are connected to the second inputs of elements AND of a group, the outputs of which are connected to the first inputs of the elements of the OR group, output the second element I is connected to the input of the encoder of the Stop command, the outputs of which are connected to the second inputs of the corresponding OR elements of the group, the read input of the device is connected to the second through the first delay element E inputs of said first and second AND gates, the output of the second delay element connected to the zero input of the trigger input of the second delay element podksch) chen to an input of second AND, OR element outputs oo th group form a group of information outputs of the device.

Description

Изобретение относитс  к цифровой вычислительной технике и может быть использовано пр отладке программ задач специализированньрс ЦВМ, содержащих в своем составе штатные блоки пам ти (ВП) с рабочими программами.The invention relates to digital computing and can be used for debugging task programs of specialized computers that contain regular memory blocks (HVs) with work programs.

Известило устройство дл  отладки программ, содержащее генератор тактовых импульсов, рабочие регистры, счетчик командj блок пам ти программ блок формировани  адресов, блок коьт мутации и блок управлени , который после исполнени  каждой вьшолн емой команды основной программы с помощью блока коммутации осуществл ет вставку и исполнение нескольких вспомога- тельных служебньк команд, распечатывающих содержимое основных регистров и счетчика команд ЦВМ. После распечатки блоком управлени  производитс  формирование адреса следующей команды l.A device for debugging programs has been notified that contains a clock pulse generator, operating registers, a command counter, a program memory block, an address generation block, a mutation block and a control block, which, after executing each executed main program command using a switching unit, inserts and executes several ancillary service commands that print the contents of the main registers and the computer counter for commands. After printing, the control unit generates the address of the following command l.

Недостатком этого устройства  вл етс  отсутствие оперативного контрол правильности прохождени  программы по намеченной трассе адресов и в реальном масштабе времени.A disadvantage of this device is the lack of operational control of the correctness of the program passing along the intended path of addresses and in real time.

Наиболее близким к предлагаемому по технической сущности  вл етс  устройство, содержащее блок пам ти программ, адресный, информационный входы и вход считывани  которого соединены соответственно с адресным, информационным входами и входом считывани  устройства, оперативный запоминающий блок, блок анализа, кода команды, вход которого подключен к выходу блока пам ти программ, блок организации переписи информации, входы которого св заны соответствен .но с адресным входом блока пам ти программ и с выходом блока анализа кода команды. Выход блока организации переписи соединен с входом оперативного запоминающего блока. The closest to the proposed technical entity is a device containing a program memory block, an address, information inputs and a read input of which are connected respectively to an address, information inputs and a device read input, an operational storage block, an analysis block, command code whose input is connected to the output of the program memory block, the information census organization block whose inputs are associated respectively with the address input of the program memory block and with the output of the instruction code analysis block. The output of the census organization unit is connected to the input of the operational storage unit.

Известное устройство, при наличии в коде команды условного перехода, осуществл ет запись адреса этой команды в соответствукнцую  чейку 6пера тивного запоминающего, блока. По завершении прохождени  программы или ее части производитс  отображение хода вычислительного процесса, зафиксированного в оперативном зйпомкнающем блоке 2J .The known device, if there is a conditional branch in the command code, records the address of this command in the corresponding cell 6 of the operative storage unit. Upon completion of the passage of the program or its part, the course of the computational process recorded in the operational unit 2J is displayed.

Недостатком устройства-прототипа  вл етс  невозможность оперативно/The disadvantage of the prototype device is the inability to operatively /

контролировать правильность прохождени  программы.monitor the correctness of the passage of the program.

Цель изобретени  - повышение быстродействи  при Отладке программ.The purpose of the invention is to increase speed when debugging programs.

Поставленна  цель достигаетс  тем что в устройство дл  отладки программ , содержащее блок пам ти, первый элемент задержки и триггер, причем информационный, адресный входы и вход считывани  устройства, соединены соответственно с адресным, информационным входами и входом считывани  блока пам ти, введены шифратор команды Останов, группа элементов И, группа элементов НИИ, второй элемент задержки, а в блок пам ти введен дополнительный разр д, причем информационные выходы блока пам ти и выход дополнительного разр да блока пам ти соединены соответственно с первыми входами элементов И группы и с единичным входом триггера, единичный и нулевой выходы которого соединены с первыми входами первого и второго элементов И соответственно, выход первого элемента И соединен с вторыми входами элементов И группы, выходы которых соединены с первыми входами элементов ИЛИ группы, выход-второго элемента И соединен с входом шифратора команды Останов , выходы которого соединены с вторыми входами соответствующих элементов ИЛИ группы, вход считывани  устройства через первый элемент задержки соединен с вто .рыми входами первого и второго элементов И, выход второго элемента задержки соединен с нулевым входом триггера, вход второго элемента задержки подключен ко входу второго элемента И, выходы элементов ИЛИ группы образуют группу информационных выходов устройства. .This goal is achieved by the fact that the Stop command is entered into the device for debugging programs containing the memory block, the first delay element and the trigger, the information, address inputs and the read input of the device corresponding to the address, information inputs and read input of the memory block. , a group of elements And, a group of elements of scientific research institutes, a second delay element, and an additional bit is inserted into the memory block, the information outputs of the memory block and the output of the additional bit of the memory block are connected respectively, with the first inputs of the elements of the AND group and with the single input of the trigger, the unit and zero outputs of which are connected to the first inputs of the first and second elements AND, respectively, the output of the first element AND is connected to the second inputs of the elements AND of the group whose outputs are connected to the first inputs of the elements of the OR group , the output of the second element I is connected to the input of the encoder of the Stop command, the outputs of which are connected to the second inputs of the corresponding elements of the OR group, the read input of the device through the first element of the output ki is connected to the WTO .rymi inputs of the first and second AND gates, the output of the second delay element connected to the zero input of the flip-flop, a second input of the delay element is connected to the input of the second AND gate, outputs of OR group elements form a group of information outputs of the device. .

На чертеже приведена структурна  схема устройства.The drawing shows a block diagram of the device.

Устройство содержит блок 1 пам ти цервый элемент 2 задержки, триггер 3, единичный вход которого -соединен с выходом дополнительного разр да блока 1 пам ти, первый и второй элементы И 4 и 5, первые входы которых подключены соответственно к нулевому и единичному выходам триггера 3, вторые входы объединены и св заны с выходом элемента 2 задержки, второй элемент 6 задержки, выход которого подключен к нулевому входу тг иггера 3, группу элементов И 7, шифра- The device contains a memory block 1, a cervical delay element 2, a trigger 3, whose single input is connected to the output of an additional bit of memory 1, the first and second elements 4 and 5, the first inputs of which are connected respectively to the zero and single outputs of trigger 3 , the second inputs are combined and connected with the output of delay element 2, the second delay element 6, the output of which is connected to the zero input of the igger 3, the group of elements And 7, the cipher

тор 8 команды Останов и группу элементов ИЛИ, выход которой  вл етс  выходом устройства, причем адресный , информационный входы и вход считывани  устройства соединены соответственно с адресным, информационным входами и входом считывани  блока 1 пам ти. Вход считывани  блока 1 пам ти св зан с входом первого элемента 2 задержки. Вход второго элемента 6 задержки объединен с входом шифратора 8 и подключен к выходу элемента И 5.Torus of the Stop command and the group of OR elements, the output of which is the output of the device, the address, information inputs and the read input of the device, respectively, are connected to the address, information inputs and the read input of memory 1. The read input of memory block 1 is associated with the input of the first delay element 2. The input of the second element 6 delay combined with the input of the encoder 8 and connected to the output element And 5.

Информационные выходы блока 1 пам ти и выход элемента И 4 соединены соответственно с первыми и вторым входами группы элементов И 7. Выход группы элементов И 7 подключен к первому входу группыэлементов ИЛИ .9, второй вход которого св зан с выхо- .дом шифратора 8 команды Останов.The information outputs of the memory block 1 and the output of the AND 4 element are connected respectively to the first and second inputs of the group of elements AND 7. The output of the group of elements AND 7 is connected to the first input of the group of elements OR .9, the second input of which is connected to the output of the encoder 8 Stop.

Устройство работает следующим образом .The device works as follows.

Через информационный вход устройства производитс  загрузка блока 1 пам ти исходным вариантом программы, подлежащей отладке. Одновременно по . этим же адресам осуществл етс  запись информации в дополнительный разр д блока 1 пам ти. Значение информации , записанной в дополнительном разр де, определ етс  трассой ориентированным графом) адресов, используемых в процессе отладки. При этом под вершинами трассы понимаютс  адреса условных переходов. Затем, в процессе считывани  на адресный вход устройства подаетс  код адреса выбираемой  чейки блока 1 пам ти, а на вход считывани  - сигнал опроса. Through the information input of the device, the memory 1 is loaded with the initial version of the program to be debugged. Simultaneously by. these addresses are also recorded information in the additional bits of the memory 1. The value of the information recorded in the extra bit is determined by a trace oriented graph of the addresses used in the debugging process. In this case, the vertices of the route are understood as addresses of conditional jumps. Then, in the process of reading, the address code of the selected cell of memory 1 is fed to the address input of the device, and the interrogation signal is sent to the read input.

При наличии на входах блока 1 пам ти кода адреса и сигнала опроса из блока производитс  считывание информации , котора  поступает на первые входы группы элементов И 7 информационна  часть) и на единичный вход триггера 3 (информационна  считанна  из дополнительного разр да).If the memory of the address code and the polling signal from the block is present at the inputs of block 1, information is read that goes to the first inputs of the group of elements And 7 information part) and to the single input of trigger 3 (information read from the additional bit).

Сигнал опроса, поступающий на соответствующий вход блока 1 пам ти, одновременно подаетс  на вход первого элемента 2 задержки. Далее, этот сигнал , задержанный элементом 2 задержки на врем  работы блока 1 пам ти и установки триггера 3, поступает на второй вход элементов И 4 и 5.The interrogation signal, which arrives at the corresponding input of the memory block 1, is simultaneously applied to the input of the first delay element 2. Further, this signal, delayed by the delay element 2 at the time of the operation of the memory block 1 and the installation of the trigger 3, is fed to the second input of the AND 4 and 5 elements.

В зависимости от состо ни  триггера 3 сигнал пройдет через элемент И 4 или 5.Depending on the state of the trigger 3, the signal will pass through the element 4 or 5.

Первый случай соответствует ходу программы по намеченному пути выбираемых адресов. Bq втором случае оперативно устанавливаетс  факт несоответстви  в ходе трассы программыThe first case corresponds to the course of the program along the intended path of the selected addresses. Bq second case promptly establishes the fact of inconsistency during the course of the program

С выхода элемента И 4 сигнал пост тупает на второй вход группы элементов И 7 и подсвечивает информацию, наход щуюс  на первом входе этой группы. В результате информационное слово, считанное из блока 1 пам ти, по вл етс  на выходе группы элементов И 7 и проходит ,через группу элементов ИЛИ 9 на выход устройства. Если сигнал по вл етс  .на выходе элемента И 5, то он, во-первых, пройд  через второй элемент 6 задержки, устанавливает триггер 3 в исходное сос то ние, во-вторых, поступает на вход шифратора 8 команды Останов, котора  передаетс  через группу элементов ШШ 9 на выход устройства.From the output of the element And 4, the signal post goes to the second input of the group of elements And 7 and highlights the information located on the first input of this group. As a result, an information word read from memory block 1 appears at the output of the group of elements AND 7 and passes through the group of elements OR 9 to the output of the device. If a signal appears. At the output of the AND 5 element, then, firstly, after passing through the second delay element 6, sets the trigger 3 to the initial state, secondly, it enters the input of the stop command 8 encoder, which is transmitted through group of elements ШШ 9 on the device output.

Техническим преимуществом предлагаемого устройстйа  вл етс  простота осуществлени  кбнтрол  правильности прохождени  программы в процессе ее отладки.The technical advantage of the proposed device is the ease of implementation of the correctness of the passage of the program in the process of debugging it.

Claims (1)

УСТРОЙСТВО ДЛЯ ОТЛАДКИ ПРОГРАММ, содержащее блок памяти, первый элемент задержки и триггер, причем адресный, информационный входы и вход считывания устройства соединены соответственно с адресным, информационным входами и входом считывания блока памяти, о т л и ч а ю щ е е с'я тем, что, с целью повышения быстродействия при отладке программ, в устройство введены шифратор команды ’’Останов, группа элементов И, группа элементов ИЛИ, второй элемент задержки, а в блок памяти введен дополнительный разряд, причем информа ционные выходы блока памяти и выход дополнительного разряда блока памяти соединены соответственно с первыми входами элементов И группы и с единичным входом триггера, единичный и нулевой выходы которого соединены с первыми входами первого и второго элементов И соответственно, выход первого элемента И соединен со вторыми входами элементов И группы, выходы которых соединены с первыми входами элементов ИЛИ группы, выход второго элемента И соединен со входом шифратора команды Останов, выходы которого соединены со вторыми входами соответствующих элементов $ ИЛИ группы, вход считывания устройства через первый элемент задержки соединен со вторыми входами первого и второго элементов И, выход второго элемента задержки соединен с нулевым £ входом триггера, вход второго элемента задержки подключен ко входу второго элемента И, выходы элементов ИЛИ группы образуют группу информационных выходов’ устройства.DEVICE FOR DEBUGGING PROGRAMS, containing a memory unit, a first delay element and a trigger, and the address, information inputs and read input of the device are connected respectively to the address, information inputs and read input of the memory unit, as a whole the fact that, in order to improve performance when debugging programs, the command encoder 'Stop', a group of AND elements, a group of OR elements, a second delay element are introduced into the device, and an additional bit is inserted into the memory block, and the information outputs of the memory block and the output of the additional discharge of the memory block is connected respectively to the first inputs of the elements of the And group and to the single input of the trigger, the unit and zero outputs of which are connected to the first inputs of the first and second elements And, accordingly, the output of the first element And is connected to the second inputs of the elements And groups, the outputs of which connected to the first inputs of the elements of the OR group, the output of the second element AND connected to the input of the encoder of the Stop command, the outputs of which are connected to the second inputs of the corresponding elements of $ OR groups s, the readout input of the device through the first delay element is connected to the second inputs of the first and second elements AND, the output of the second delay element is connected to the zero £ input of the trigger, the input of the second delay element is connected to the input of the second element AND, the outputs of the OR elements of the group form a group of information outputs' devices. >> 1 1137472 21 1137472 2
SU833618204A 1983-07-11 1983-07-11 Debugging device SU1137472A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU833618204A SU1137472A1 (en) 1983-07-11 1983-07-11 Debugging device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU833618204A SU1137472A1 (en) 1983-07-11 1983-07-11 Debugging device

Publications (1)

Publication Number Publication Date
SU1137472A1 true SU1137472A1 (en) 1985-01-30

Family

ID=21073109

Family Applications (1)

Application Number Title Priority Date Filing Date
SU833618204A SU1137472A1 (en) 1983-07-11 1983-07-11 Debugging device

Country Status (1)

Country Link
SU (1) SU1137472A1 (en)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
1. Патент US № 3935563, кл. 340-172.5, 1975. 2. Авторское свидетельство СССР 754419, кл. G 06 F 13/06, 1979. *

Similar Documents

Publication Publication Date Title
GB936695A (en) Stored programme digital computer
SU1137472A1 (en) Debugging device
SU741269A1 (en) Microprogramme processor
SU1405062A1 (en) Device for measuring frequencies of arrival of comand groupes
SU1737454A1 (en) Device for storing route of interprocessor exchanges in multiprocessor systems
SU943731A1 (en) Device for code sequence analysis
SU1695319A1 (en) Matrix computing device
SU1578717A1 (en) Device for measuring frequencies of command groups
SU951991A1 (en) Computer
SU1161944A1 (en) Device for modifying memory area address when debugging programs
SU1327112A1 (en) Apparatus for debugging programs
SU802963A1 (en) Microprogramme-control device
SU1633414A1 (en) Device for program interfacing and debugging
SU1418732A1 (en) Device for simulating process of inspection of computer software
SU1083194A1 (en) Device for debugging programs
SU826351A1 (en) Asynchronous control device
SU1418719A1 (en) Device for checking programs
SU1357963A1 (en) Device for determining programm access frequency
SU1596390A1 (en) Buffer memory device
SU1298752A1 (en) Device for debugging programs
SU686033A1 (en) Device for simulating network diagram
SU1347097A1 (en) Memory with program correction
SU1513457A1 (en) Program debugging device
SU1109752A1 (en) Firmware control unit
SU1410053A1 (en) Device for asynchronous associative loading of multiprocessor computing system