SU1425685A1 - Program debugging device - Google Patents

Program debugging device Download PDF

Info

Publication number
SU1425685A1
SU1425685A1 SU874200860A SU4200860A SU1425685A1 SU 1425685 A1 SU1425685 A1 SU 1425685A1 SU 874200860 A SU874200860 A SU 874200860A SU 4200860 A SU4200860 A SU 4200860A SU 1425685 A1 SU1425685 A1 SU 1425685A1
Authority
SU
USSR - Soviet Union
Prior art keywords
node
bus
control
output
address
Prior art date
Application number
SU874200860A
Other languages
Russian (ru)
Inventor
Александр Николаевич Тетенькин
Original Assignee
Предприятие П/Я М-5687
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 Предприятие П/Я М-5687 filed Critical Предприятие П/Я М-5687
Priority to SU874200860A priority Critical patent/SU1425685A1/en
Application granted granted Critical
Publication of SU1425685A1 publication Critical patent/SU1425685A1/en

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

Изобретение относитс  к вычислительной технике и предназначено дл  ввода и отладки программ в цифровой вычислительной системе. Цель изобретени  - расширение области применени  устройства. Устройство содержит дешифратор 1 адреса, узел 2 ввода-вывода, узел 3 захвата, узел 4 согласовани  шин, узел 5 останова. Использование управл ющей микроЭВМ позвол ет пользователю расшир ть набор отладочнЬ1Х функций, задава  в формате одного командного слова несколько отладочных режимов. 8 ил. (СThe invention relates to computing and is intended to enter and debug programs in a digital computer system. The purpose of the invention is to expand the field of application of the device. The device comprises an address decoder 1, an I / O node 2, a capture node 3, a bus matching node 4, a stop node 5. The use of the control microcomputer allows the user to extend the set of debugging functions by setting several debug modes in the format of one command word. 8 il. (WITH

Description

(Л С(Ls

}9 21} 9 21

2020

Изобретение относитс  к вычислительной технике и предназначено дл  ввода и отладки программ в цифровой вычислительной системе, реализованной на базе микропроцессоров (МП) и имеющей магистральную структуру.The invention relates to computing and is intended to enter and debug programs in a digital computer system implemented on the basis of microprocessors (MP) and having a main structure.

Цель изобретени  - расширение области применени  устройства.The purpose of the invention is to expand the field of application of the device.

Запуск отлаживаемой программы с определенного адреса, а также чтени и модификаци  содержимого внутренних регистров МП-процессора отлаживаемой вычислительной системы (ОВС) осуществл ютс  в предлагаемом устройстве методом имитации пам ти, пр этом в шину управлени  интерфейса процессора ОВС из узла программируемого ввода-вывода (ПВВ) формируютс  управл ющие сигналы, осуществл ющие логическое отклЕОчение Пам ти и портов ввода-вывода процессора ОВС от внутреннего интерфейса, кроме того, осуществл етс  подмена их портом ввода-вывода данных узла ПВБ, Управ л юща  микроэвм вводит в порт ввода вывода данных узла ПВВ коды команд и операндов и, формиру  из узла сог ласовани  шин сигнал приемопередачи (ППД), имитирует работу пам ти и портов ввода-вывода процессора ОВС, при этом МП-процессора ОВС, выполн  эти команды, осуществл ет различные отладочные процедуры: переход к от- лаживйемой программе по определенному адресу, ввод или вывод содержиг- мого своих внутренних регистров и т.п. Трансл ци  данных между портом ввода-вывода данных узла ПВВ и шиной данных интерфейса процессора ОВС в данном режиме осуществл етс  через узел согласовани  шин при наличии сигналов ВВ, ВЫВ, СЧТ, ЗПС шины управлени  интерфейса процессора ОВС. Окончание трансл ции данных через узел согласовани  шин определ етс  моментом.окончани  сигналов ВВ, ВЫВ, СЧТ, ЗПС шины управлени  процессора ОВС, а не моментом окончани  определенного временного интевала от начала трансл ции данных,чт обеспечивает более надёжную работу МП-процессора ОВС. Таким образом, введение дополнительных признаков позвол ет Получить положительный эффект и удовлетвор ет критерию существенных отличий.The program being debugged from a specific address, as well as reading and modifying the contents of the internal registers of the MP processor of the computer system being debugged (ICS), is carried out in the proposed device by means of memory simulation, sent to the interface bus of the interface processor interface from the programmable input-output node (UIP ) control signals are generated that logically disconnect the memory and I / O ports of the processor from the internal interface; in addition, they are replaced by an I / O port with The PVB node, the Controller of the microcomputer, enters the codes of the commands and operands into the data input port of the PVV node and, from the bus latching node, generates a transmit and receive signal (PDM), simulates the memory and I / O ports of the OVS processor, while MP The OBC processor, executing these commands, performs various debugging procedures: a transition to a delayed program at a certain address, input or output of its internal registers, etc. Data transfer between the data input / output port of the PVV node and the data bus interface of the processor OVS in this mode is carried out through the bus matching node in the presence of signals BB, VYV, SChT, CPD bus of the interface interface processor interface. The end of data broadcasting through the bus matching node is determined by the moment of the BB, TIP, CST, LPS signals of the control bus of the OVS processor, and not at the end of a certain time interval from the start of data broadcasting, Thu ensures more reliable operation of the OVS MP processor. Thus, the introduction of additional features allows to obtain a positive effect and satisfies the criterion of significant differences.

На фиг. 1 представлена структурна  схема устройства дл  отладкиFIG. 1 shows a block diagram of a device for debugging.

5five

00

5 five

00

5five

00

5five

00

5five

программJ на фиг. 2 - функциональна  схема дешифратора адресаj на фиг, 3- функциональна  схема узла ввода-вывода ,- на фиг. 4 - функциональна  схема узла захвата на фиг. 5 - временна  диаграмма работы узла захвата- , на фиг. 6 - функциональна  схе- ма узла согласовани  шин;на фиг.7 - функциональна  схема узла останова; на фиг, 8 - структурна  схема отладочного комплекса.programJ in FIG. 2 is a functional diagram of an address decoder j in FIG. 3; a functional diagram of an I / O node; in FIG. 4 is a functional diagram of the gripping unit in FIG. 5 is a timing diagram of the operation of the gripping node; FIG. 6 is a functional diagram of the bus matching unit; FIG. 7 is a functional diagram of the stop unit; FIG. 8 is a block diagram of a debugging complex.

Устройство дл  отладки программ (фиг. 1) содержит дешифратор 1 адреса , узел 2 ввода-вывода, -узел 3 захвата , узел 4 согласовани  шин, узел 5 останова, шины адреса 6 и управлени  7, входную шину 8 данных, третью группу входов 9 узла ввода-вывода, шины адреса 10, данных 11, управлени  12 узла согласовани  шин, вход 13 режима захвата, вход 14 выбора шинного формировател , вход 15 режима останова, выход 16 подтверждени  режима захвата узла захвата, выход 17 подтверждени  передачи данных узла согласовани  шин, выход 18 подтверждени  останова узла останова, выходные шины адреса 19, данных 20, управлени  21 устройства.The device for debugging programs (Fig. 1) contains address decoder 1, I / O node 2, capture node 3, bus matching node 4, stop node 5, address bus 6 and control 7, data input bus 8, third group of inputs 9 node I / o, address bus 10, data 11, bus node 12 control, capture mode input 13, bus driver select input 14, stop mode input 15, capture node pickup mode output 16, capture bus assignment node output 17 , output 18 of the stop unit stop acknowledgment, output address bus 19, data 20, the control device 21.

Дешифратор 1 адреса предназначен дл  идентификации портов ввода-вывода устройства дл  отладки программ в адресном пространстве управл ющей микроэвм и содержит (фиг. 2) элемент 22 посто нной пам ти и элемент 23 задержки. Элемент 22 осутцествл ет дешифрацию сигналов адреса шины 6 при наличии сигналов ВВ или ВЫВ шины 7 управлени  и формирует индивидуальные сигналы выборок (ВБ1-ВБЗ) на вход 9 и сигнал ППД который, проход  через элемент 23 задержки, поступает в шину 7 управлени .The address decoder 1 is designed to identify the I / O ports of the device for debugging programs in the address space of the control microcomputer and contains (Fig. 2) a permanent memory element 22 and a delay element 23. Element 22 senses the decryption of bus address address signals 6 in the presence of explosive signals of control bus 7 and generates individual sampling signals (VB1-VBZ) at input 9 and the sms signal which passes through delay element 23 to control bus 7.

Узел 2 ввода-вывода предназначен дл  хранени  информации, управл ющей функционированием узлов захвата 3, согласовани  шин 4, и останова.5 при реализации отладочных режимов, а также дл  формировани  сигналов запрета ОЗУ (ЗАПР1), запрета ПЗУ (ЗАПР2), сброса (СВР) шины 21 управлени . Узел 2 содержит (фиг. 3) элементы 24- 26 параллельного интерфейса, каждый из которых содержит два восьмиразр дных и два четьфехразр дных порта ввода-вывода, каждый из которых может быть запрограммирован либо на ввод, либо на вывод информации.The I / O node 2 is designed to store information that controls the operation of the pickup node 3, bus 4 alignment and stop.5 when implementing debugging modes, as well as generating RAM prohibition signals (ZAPR1), prohibiting ROM (ZAPR2), and resetting (SVR a) bus 21 control. Node 2 contains (Fig. 3) parallel interface elements 24-26, each of which contains two eight-bit and two four-bit I / O ports, each of which can be programmed either for input or for output of information.

Узел 3 захвата предназначен дл  реализации процедуры передачи управлени  шинами адреса 19, данных 20, управлени  21 от процессора ОВС устройству дл  отладки программ. Узел 3 захвата (фиг. 4) содержит триггер 27 запроса захвата, триггер 28 подтверждени  захвата, генератор 29, элемент И 30, выход 31 запроса захвата, вход 32 подтвержлени  захвата (ПДТ) шины 21 управлени , выход 16 подтверждени  режима захвата.Capture node 3 is designed to implement the procedure for transferring control of address buses 19, data 20, control 21 from an all-purpose processor to a device for debugging programs. Capture node 3 (FIG. 4) contains a capture request trigger 27, a capture confirmation trigger 28, generator 29, AND 30, a capture request output 31, a capture acknowledgment input (PDT) 32 of the control bus 21, a capture mode confirmation output 16.

Узел 4 согласовани  шин предназначен дл  коммутации сигналов двунаправленных внутренних шин адреса 10, данных 11, управлени  12 и соответствующих сигналов двунаправленных шин адреса 19, данных 20, управлени  21, а .также дл  формировани  сигнала ПГЩ в режиме имитации. Узел 4 (фиг. 6) содержит двунаправленные шинные формирователи (ШФ) данных 33, адреса 34, управлени  35, триггер 36 подтверждени  передачи данных,триггер 37 выбора ШФ 33 данных, элемент ИЛИ 38, входы 39-41 направлени  передачи данных, вход 42 выбора ШФ 34 и 35, вход 43 выбора ШФ 33, 44 стробировани  триггеров 36 и 37.The bus matching unit 4 is designed for switching signals from bidirectional internal buses of address 10, data 11, control 12 and corresponding signals of bidirectional buses of address 19, data 20, control 21, and also for generating a PGHS signal in simulation mode. Node 4 (Fig. 6) contains bi-directional bus drivers (PF) data 33, addresses 34, control 35, data transfer confirmation trigger 36, PF selection trigger 37, data OR 38, data transfer inputs 39-41, input 42 Selection of ShF 34 and 35, input 43 of Selection ShF 33, 44 gating triggers 36 and 37.

Узел 5 останова предна значен дл  останова работы процессора ОВС по одному из предварительно заданных адресов останова и условию обмена иNode 5 stop is designed to stop the operation of the processor OVS one of the predefined stop addresses and the condition of the exchange and

роЭВМ 60. НГМД 65 может быть исполь-, зован также дл  хранени  отлаживаемых программ и промежуточных результатов отладки. Консоль 64 предназна-- чена дл  ввода пользователем командных слов, управл ющих работой микро- ЭВМ 60 и устройства 59 дл  отладки программ, а также дл  ввода сообще10 НИИ, формируемых в процессе отладки. Протокол отладки может быть выведен на печать 66.roEV 60. floppy disk 65 can also be used to store programs being debugged and intermediate debug results. The console 64 is intended for the user to enter command words that control the operation of the microcomputer 60 and the device 59 for debugging programs, as well as for entering a message to the research institutes formed during the debugging process. The debug protocol can be printed out 66.

Устройство дл  отладки программ имеет режимы автонома, управлени ,The device for debugging programs has autonomous, control,

15 захвата, останова, имитации.15 capture, stop, imitation.

В режиме автонома управл юща  мик- роЭВМ, настраива  порты узла 2, устанавливает узлы захвата 3, согласовани  шин 4 и останова 5 в исходноеIn autonomous mode, the control microcomputer, by configuring the ports of node 2, sets the nodes of the capture 3, matching the buses 4, and stops 5 to the original

20 состо ние, при этом отмен ютс  все ранее введенные отладочные режимы, устройство дл  отладки программ ло- гичебки отключаетс  от шин адреса 19, данных 20, управлени  21 и не вли ет20 state, in this case all previously entered debug modes are canceled, the device for debugging the logic program programs is disconnected from address buses 19, data 20, control 21 and does not affect

25 на работу процессора ОВС.25 to work processor OVS.

В режиме управлени  управл юща , микроэвм, осуществл   ввод информации в порт D5 узла 2 имеет возможность 30 формировать в шину 21 управлени  сигналы СВР, ЗАПР1, ЗАПР2, которые осуществл ют начальную установку узлов процессора ОВС (СВР), логическое отк-In the control mode, the control microcomputer, having entered information into port D5 of node 2, has the ability 30 to generate on the control bus 21 control signals CBP, ZAPR1, ZAPR2, which carry out the initial installation of the nodes of the OBC processor (CBP)

лючение от интерфейса процессораCPU interface connection

содержит (фиг. 7) элемент ОЗУ 45 сравне- компонентов ОЗУ (ЗАПР1), компони ,мультиплексор 46 условий обмена,нентов ПЗУ (ЗАПР2), вход щих в состриггер 47 режима, триггер 48 остано-тав пам ти 68 процессора ОВС (фиг.8),contains (FIG. 7) an element of RAM 45 compared with components of RAM (ZAPR1), components, multiplexer 46 of exchange conditions, ROMs (ZAPR2) included in mode co-driver 47, trigger 48 of memory processor 68 (FIG. eight),

ва, формирователь 49 короткого им-логическое отключение от интерфейсаva, shaper 49 short interface disconnect

пульса, элемент И 50, вход 51 запи-процессора ОВС портов 69 ввода-вывоси и вход 52 выбора ОЗУ 45 сравнени , 40Д (ЗАПР2) .pulse, element 50, input 51 of the OVS recording processor of the input-output ports 69 and input 52 of the comparison RAM 45, 40D (ZAPR2).

вход 53 выбора мультиплексора 46, группу входов 54 выбора информационного входа мультиплексора 46, входы 55 и 56 задани  режима, вход 57 отмены режима останова, выход 58 останова работы процессора ОВС. На фиг.8 отмечены устройство 59 дл  отладки программ, микроэвм 60, ОВС 61, МП 62, пам ть 63, консоль 64, накопитель 65 на гибких магнитных дисках (НЩД) , 66, МП 67 ОВС, пам ть 68 ОВС, порты 69 .ввода-вывода.input 53 for selecting multiplexer 46, group of inputs 54 for selecting information input for multiplexer 46, inputs 55 and 56 for setting the mode, input 57 for canceling the stop mode, output 58 for stopping the operation of the OBC processor. 8 shows a device 59 for debugging programs, microcomputer 60, OVS 61, MP 62, memory 63, console 64, floppy disk drive 65, 66, MP 67 OVS, memory 68 OVS, ports 69 input-output.

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

Все отладочные процедуры, реализуемые устройством 59 дл  отладки программ, осуществл ют под управлением программы, загружаемой в пам ть 63 с НГЩ 65 и выполн емой МП 62 микВ режиме захвата устройство 59 дл  отладки программ (фиг. 8) представл ет пользователю возможность обмена данными между пам тью 63 универсаль- 45 ной микроэвм 60 с одной стороны, пам тью 68 и портами 69 ввода-вывода процессора ОВС с другой стороны, а также осуществл ть чтение и модификацию пам ти 68 и портов ввода-вывода 69 в режиме пр мого доступа. Ввод режима захвата инициируетс  сигналом порта D7 на выходе 13 узла 2 ПВВ (фиг. 3). Вход в режим захвата подтверждаетс  сигналом на выходе 16 узла 3 захвата, после чего микроэвм настраивает ШФ 34 и 35 узла 4 согласовани  щин (фиг. 6) и порты D1, D2 ПВВ (фиг. 3) на вывод адреса и вводит в них информацию адресаAll debugging procedures implemented by the device 59 for debugging programs are carried out under the control of the program loaded into memory 63 of the NSG 65 and executed by the MP 62 micV capture mode; the device 59 for debugging programs (Fig. 8) presents the user with the ability to exchange data memory 63 universal microcomputer 60 on the one hand, memory 68 and I / O ports 69 on the processor, on the other hand, and also read and modify memory 68 and I / O ports 69 in direct access mode. Entry of the capture mode is triggered by the port D7 signal at the output 13 of the PVB node 2 (FIG. 3). Entrance to the capture mode is confirmed by a signal at the output 16 of the capture unit 3, after which the microelectric computer adjusts the PFs 34 and 35 of the node 4 matching (Fig. 6) and the ports D1, D2 PWB (Fig. 3) to the output of the address and enters address information into them

5050

5555

роЭВМ 60. НГМД 65 может быть исполь-, зован также дл  хранени  отлаживаемых программ и промежуточных результатов отладки. Консоль 64 предназна-- чена дл  ввода пользователем командных слов, управл ющих работой микро- ЭВМ 60 и устройства 59 дл  отладки программ, а также дл  ввода сообще0 НИИ, формируемых в процессе отладки. Протокол отладки может быть выведен на печать 66.roEV 60. floppy disk 65 can also be used to store programs being debugged and intermediate debug results. The console 64 is intended for the user to enter command words that control the operation of the microcomputer 60 and the device 59 for debugging programs, as well as for entering a message to the research institutes formed during the debugging process. The debug protocol can be printed out 66.

Устройство дл  отладки программ имеет режимы автонома, управлени ,The device for debugging programs has autonomous, control,

5 захвата, останова, имитации.5 capture, stop, imitation.

В режиме автонома управл юща  мик- роЭВМ, настраива  порты узла 2, устанавливает узлы захвата 3, согласовани  шин 4 и останова 5 в исходноеIn autonomous mode, the control microcomputer, by configuring the ports of node 2, sets the nodes of the capture 3, matching the buses 4, and stops 5 to the original

0 состо ние, при этом отмен ютс  все ранее введенные отладочные режимы, устройство дл  отладки программ ло- гичебки отключаетс  от шин адреса 19, данных 20, управлени  21 и не вли ет0 state, at that all previously entered debug modes are canceled, the device for debugging the logic program programs is disconnected from address buses 19, data 20, control 21 and does not affect

5 на работу процессора ОВС.5 for the operation of the processor OVS.

В режиме управлени  управл юща , микроэвм, осуществл   ввод информации в порт D5 узла 2 имеет возможность 0 формировать в шину 21 управлени  сигналы СВР, ЗАПР1, ЗАПР2, которые осуществл ют начальную установку узлов процессора ОВС (СВР), логическое отк-In the control mode, the control, microcomputer, having entered information into port D5 of node 2, has the ability to 0 to generate on the control bus 21 control signals CBP, ZAPR1, ZAPR2, which carry out the initial installation of the nodes of the OBC processor (CBP)

В режиме захвата устройство 59 дл  отладки программ (фиг. 8) представл ет пользователю возможность обмена данными между пам тью 63 универсаль- 5 ной микроэвм 60 с одной стороны, пам тью 68 и портами 69 ввода-вывода процессора ОВС с другой стороны, а также осуществл ть чтение и модификацию пам ти 68 и портов ввода-вывода 69 в режиме пр мого доступа. Ввод режима захвата инициируетс  сигналом порта D7 на выходе 13 узла 2 ПВВ (фиг. 3). Вход в режим захвата подтверждаетс  сигналом на выходе 16 узла 3 захвата, после чего микроэвм настраивает ШФ 34 и 35 узла 4 согласовани  щин (фиг. 6) и порты D1, D2 ПВВ (фиг. 3) на вывод адреса и вводит в них информацию адресаIn the capture mode, the device 59 for debugging programs (FIG. 8) provides the user with the ability to exchange data between the memory 63 of the universal microelev 60 on the one hand, the memory 68 and the I / O ports 69 of the processor on the other side, as well as read and modify memory 68 and I / O ports 69 in direct access mode. Entry of the capture mode is triggered by the port D7 signal at the output 13 of the PVB node 2 (FIG. 3). Entrance to the capture mode is confirmed by a signal at the output 16 of the capture unit 3, after which the microelectric computer adjusts the PFs 34 and 35 of the node 4 matching (Fig. 6) and the ports D1, D2 PWB (Fig. 3) to the output of the address and enters address information into them

00

5five

управлени , котора  поступает соответственно на шины адреса 10 и 19 и , управлени  12 и 21 ,В зависимости от направлени  передачи данных ШФ 33 узла 4 согласовани  шин и порт 1)3 данных узла 2 ПВВ настраиваютс  либо на ввод, либо на вывод информации. Пам ть 68 или порты 69 ввода-вывода процессора ОВС в ответ на обращение формируют Q сигнал ППД которьш с шины 21 управлени  через узел 4 согласовани  шин поступает на вход 17 порта D4 узла 2. В ответ на сигнал ППД управл юща  микроэвм отмен ет управл ющую инфор- мацию в порте D2 узла 2, что вызывает отмену сигнала ППД и завершает цикл обмена. При. отмене режима захвата сначала осуществл етс  отключение ШФ 33-35 узла 4 согласовани  шин а 20 затем отмен етс  сигнал ввода режима захвата на выходе 13 узла 2.control, which goes respectively to address buses 10 and 19, and controls 12 and 21, Depending on the direction of data transfer, the FF 33 of the bus matching unit 4 and port 1) 3 of the data of the PWV node 2 are configured for either input or output. The memory 68 or ports 69 of the I / O processor processor in response to the call generate a QAP signal from the control bus 21 via the bus matching node 4 to the input 17 of the D4 port of No.2. In response to the PPD signal, the control microcomputer cancels the control information in port D2 of node 2, which causes the cancellation of the PDP signal and completes the exchange cycle. At. Cancellation of the capture mode is first carried out by turning off the FF 33-35 of node 4 bus alignment and 20 then the input signal of the capture mode at output 13 of node 2 is canceled.

В режим останова устройство дл  отладки программ предоставл ет пользователю осуществл ть останов работы 25 процессора ОВС по условию обмена и адресам останова, а также по совпадению услови  и адреса останова, указанных в формате командного слова, вводимого с консоли 64 управл ющей 0 микроэвм (фиг. 8), Число задаваемых адресов останова не ограничиваетс .В качестве услови  обмена могут быт ь использованы следующие сигналы шины 21 управлени  интерфейса процессора ОВС: ВВ, ВЫВ, СЧТ, ЗПС, формируемые МП 67 при обращении к пам ти 68 и портам 69 ввода-вывода- ШАГ, формируемый в каждом цикле выбора инструкции команды; ПДТ, формируемый приIn the shutdown mode, the program debugging device provides the user with a shutdown of 25 of the HOS processor based on the exchange condition and stop addresses, as well as on the coincidence of the condition and stop address specified in the command word format entered from the control console 64 of the microcomputer level (FIG. 8) The number of set stop addresses is not limited. The following bus signals 21 of the interface interface interface processor can be used as the exchange condition: BB, VYV, SCT, RFS, generated by MP 67 when accessing memory 68 and input ports 69 output — STEP generated in each cycle of command instruction selection; PDT formed by

4040

реализации процедур пр мого доступа в интерфейсе процессора ОВС, Реализаци  режима начинаетс  с настройки управл ющей микроэвм 60, узла 5 останова через узел 2, дл  этого предварительно отключаютс  ШФ 33-35 узла 4 согласовани  шин. Если в формате командного слова, вводимого с консоли .64 микроэвм, указаны адреса точек оста- .нова, то порты D1 и D3 узла 3 настраиваютс  на вывод и микроэвм, ввод  в них информацию об адресах, данных и использу  порт D6 узла 2, осуществл ет запись в ОЗУ 45 сравнени  сначала логических нулей по всем адресам , а затем по адресам, указанным в формате командного слова - логических единиц, после чего ОЗУ, порт D6 узла 2 мультиплексор 46 настраи Q 0 the implementation of direct access procedures in the interface of the processor, the implementation of the mode begins with the setup of the control microcomputer 60, stop node 5 through node 2, for this purpose the SchF 33-35 of the bus alignment node 4 are previously disabled. If in the command word format entered from the console .64 micro computers, the addresses of the points are restarted, then the ports D1 and D3 of node 3 are configured for output and micro computers, input of information about addresses, data and using port D6 of node 2, There is no entry in RAM 45 comparing first logical zeroes to all addresses, and then to addresses specified in the command word format - logical ones, then RAM, port D6 of node 2 multiplexer 46, adjust Q 0

5 0 50

00

5five

00

5five

ваютс  на выбор услови  обмена, указанного в формате командного слова. Затем порты D1-D3 узла 2 и ШФ 33-35 узла 4 согласовани  шин настраиваютс  на ввод, при этом в шины адреса 10, данных 11, управлени  12 транс- . лируютс  соответствующие сигналы шин адреса 19, данных 20, управлени  21, Далее управл юща  микроЭВМ 60 через порт D6 узла 2, устанавлива  в соответствующее состо ние триггеры 47 режима узла 5 останова, осуществл ет ввод режима останова и приступает к анализу сигнала подтверждени  режима останова на выходе 18 узла 5 останова, формируемого при совпадении кода адреса на шине 19 адреса и услови  обмена на шине 21 управлени  с заданными в формате командного слова. При подтверждении режима останова на консоль 64 микроЭВМ вы- водитс  сообщение, содержащее информацию о состо нии шин адреса 19, данных 20, управлени  21 и интерфейса ОВС. Далее пользователь с консоли 64 микроэвм вводит командное слово , управл ющее либо переходом к новой , следзтощей точке останова в режиме останова, либо завершением режима останова. Дл  перехода к следующей точке останова микроЭВМ через порт D6 узла 2 осуществл ет либо отключение, либо выбор ОЗУ 45 сравнени , настраивает мультиплексор 46 на выбор УСЛОВИЯ обмена в соответствии с параметрами командного слова, устанавливает триггер 38 останова в состо ние О, при этом возобновл етс  работа процессора ОВС по выполн емой программе. При отмене ре- жима останова микроЭВМ через порт D7 узла 2 отключает ШФ 33-35 узла 4 сотласовани  шин, а через порт D6 узла 2 устанавливает триггеры 48 и 47 в состо ние О,There is a choice of terms for the exchange specified in the command word format. Then, the ports D1-D3 of node 2 and PF 33-35 of node 4 of bus alignment are configured to input, in addition to address 10 bus, data 11, trans 12 control. the corresponding signals of the address bus 19, data 20, control 21, next, the control microcomputer 60 through the port D6 of node 2 are set, the triggers 47 of the node 5 stop are set to the appropriate state, it enters the stop mode and proceeds to analyze the stop mode confirmation signal the output 18 of the stop node 5 formed when the address code on the address bus 19 matches and the exchange conditions on the control bus 21 with those specified in the command word format. When confirming the stop mode, a message is displayed on the console 64 of the microcomputer, containing information on the status of the bus address 19, data 20, control 21 and the interface of the SIS. Then the user from the 64 microelec console enters a control word that controls either the transition to the new, next stop point in the stop mode, or the end of the stop mode. To go to the next microcomputer breakpoint via port D6 of node 2, it either disconnects or selects the comparison RAM 45, sets up the multiplexer 46 to choose the CONDITIONS of exchange in accordance with the parameters of the control word, sets the stop trigger 38 to the O state, and operation of the processor OVS according to the executed program. When canceling the stop mode of the microcomputer through the port D7 of node 2, turns off the SchF 33-35 of the node 4 for tire scaling, and through the port D6 of node 2 sets the triggers 48 and 47 to the state O,

В режиме имитации устройство дл  отладки программ предоставл ет пользователю возможность осуществл ть запуск работы процессора ОВС с любо- го адреса, а также производить чтение и модификацию содержимого внутренних регистров МП 67 процессора ОВС, При реализации данного режима пам ть 68 I и порты 69 ввода-вывода процессора ОВС подмен ютс  портом ввода-вывода D3 узла 2 устройства дл  отладки программ, через который управл юща  микроэвм 60 обеспечивает выполнениеIn the simulation mode, the device for debugging programs allows the user to start the operation of the processor from any address, and also to read and modify the contents of the internal registers MP 67 of the processor of the interface, when implementing this mode, memory 68 I and ports 69 the output of the SIS processor is replaced by the I / O port D3 of the node 2 of the device for debugging programs, through which the control micro-computer 60 provides the execution

МП 67 процессора ОВС команд и программ , записанных в пам ти 63 микроЭБ которыми могут быть, например,команда безусловного перехода по адресу, программа вывода содержимого внутренних регистров МП 67 и т.п. Дл  реализации режима имитации управл юща  микроэвм сначала вводит режим останова с остановом работы процессо ра ОВС в цикле считывани  инструкции очередной команды. Далее через порт D5 узла 2 (фиг. 3) в шину 21 управлени  формируютс  сигналы ЗАПР1 и ЗАПР2, при этом пам ть 68 и порты 69 ввода-вывода процессора ОВС логически отключаютс  от интерфейса процессора ОВС и не формируют при обращении к ним сигнал ППД в шину 21 управлени .The MP 67 of the processor of the OVS of commands and programs recorded in the memory of 63 micro-EB can be, for example, an unconditional jump command to an address, a program for outputting the contents of the internal registers MP 67, etc. In order to implement the simulation mode, the control microcomputer first enters a stop mode with stopping the operation of the OVS processor in the read cycle of the instruction of the next command. Then, the ZAPR1 and ZAPR2 signals are formed through the port D5 of node 2 (Fig. 3) to the control bus 21, and the memory 68 and the I / O ports 69 of the OVS processor are logically disconnected from the interface of the OVS processor and do not generate an FPA signal when they are accessed. bus 21 control.

Затем порты D1 и D2 узла 2 и ШФ 34 и 35 узла 4 согласовани  шин настраиваютс  на ввод информации в порт D3 узла 2 и ШФ 33 узла 4, в зависимости от управл ющего сигнала ВВ, ВЫВ, СЧТ, ЗПС щины 21 управлени  настраиваютс  либо-на ввод, либо на вывод информации. Далее через порт D7 узла 2 триггеры 36 и 37 узла 4 согласовани  шин устанавливаютс  по входу 44 в состо ние О, при этом выбираетс  ШФ 33, а в шину 21 управлени  интерфейса процессора ОВС формируетс  сигнал ППД. Затем узел 5 останова настраиваетс  на останов работы процессора ОВС в следующем цикле и осуществл ет пуск работы процессора ОВС сигналом Пуск по входу 57 узла 5 останова (фиг. 7). МП 67 процессора ОВС, получив сигнал ППД, завершает данный цикл работы, прекраща  формирование сигналов ВВ, ВЬВ, СЧТ, ЗПС в шину 21 управлени , при этом триггеры 36 и 37 узла 4 согласовани  шин устанавливаютс  в состо - ние 1, отключаетс  DIO 33 и прекращаетс  формирование сиглала ППД. В следующем -цикле узел 5 останова вновь останавливает работу процессора , ОВС и, если выполнение имитируемой команды или программы не завершено , осуществл етс  переход к очередной настройке порта D3 узла 2 и ШФ 33 узла 4 согласовани  шин. При отмене режима имитации микроЭВМ снимает сигналы ЗАПР1, ЗАПР2 шины 21 управлени , отключает ШФ 33-35 узла 4 согласовани  шин, отмен ет режимThen, the ports D1 and D2 of node 2 and ShF 34 and 35 of node 4 of bus alignment are configured to enter information into port D3 of node 2 and ShF 33 of node 4, depending on the control signal of the BB, OUV, CST, BPS control 21 or input or output information. Next, through port D7 of node 2, triggers 36 and 37 of node 4 of bus alignment are set at input 44 to state O, the FF 33 is selected, and an FP signal is generated to the control bus 21 of the interface of the OVS processor. Then, the stop unit 5 is configured to stop the operation of the SIS processor in the next cycle and starts the operation of the SIS processor with the Start signal at input 57 of the stop unit 5 (Fig. 7). The MP 67 of the OVS processor, having received the RPM signal, terminates this cycle of operation, stopping the formation of the signals BB, VBV, CST, BPS to the control bus 21, while the triggers 36 and 37 of the bus alignment unit 4 are set to state 1, the DIO 33 is turned off and the formation of the PDM signal ceases. In the next cycle, the node 5 stop again stops the processor, the SIS, and if the execution of the simulated command or program is not completed, the transition to the next setting of the port D3 of node 2 and PF 33 of the node 4 bus alignment is made. When canceling the imitation mode, the microcomputer removes the ZAPR1, ZAPR2 signals of the control bus 21, disables the FF 33-35 of the bus alignment node 4, cancels the

1515

2020

2525

ю Yu

дд dd

30thirty

3535

4040

00

5five

останова, а процессор ОВС переходит к выполнению отлаживаемой программы, наход щейс  в пам ти 68 процессора ОВС.stop, and the processor OVS proceeds to the execution of the program being debugged, located in memory 68 of the processor OVS.

Claims (1)

Формула изобретени Invention Formula Устройство дл  отладки программ, содержащее дешифратор адреса и узел ввода-вывода, причем первые и вторые группы информационных входов дешифратора адреса и узла ввода-вывода подключены соответственно к шинам адреса и управлени  устройства дл  подключени  к одноименным шинам управл ющей ЭВМ, треть  группа информационных входов-выходов узла ввода- вывода подключена к шине данных устройства дл  подключени  к шине данных управл ющей ЭВМ, четверта  групп а информационных входов узла ввог.а-вывода подключена к группе выходов дешифратора адреса, отличающеес  тем, что, с целью расширени  области применени , устройство содержит узел захвата, узел согласовани  шин и узел останова, причем выход задани  режима захвата узла ввода-вывода подключен к входу задани  режима захвата, выход подтверждени  захвата которого соединен с соответствующим входом узла ввода- вывода, шины а дреса данных и управлени  узла ввода-вывода подключены к соответствующим шинам узлов согласовани  шин и останова, выход подтверждени  передачи данных узла согласовани  шин соединен с одноименным входом узла ввода-вывода, шина выбо- ра шинного формировател  узла согласовани  шин подключена к одноименной шине узла ввода-вывода, группа входов задани  режима останова узла останова подключена к группе выходов задани  режима узла ввода-вывода, выход подтверждени  останова узла останова подключе;н к соответствующему входу .узла ввода-вывода, шины адреса и данных узла согласовани  шин  вл ютс  двунаправленными шинами устройства дл  подключени  к соответствующим шинам отладочной системы, шины управлени  узла захвата, узла согласовани  шин, узла останова и узла ввода-вывода образуют двунаправленную шину устройства дл  подключени  к шине управлени  отладочной системы.A device for debugging programs containing an address decoder and an I / O node, with the first and second groups of information inputs of the address decoder and I / O node respectively connected to the address and control buses of the device for connecting to the control computer of the same name, the third group of information inputs the outputs of the I / O node are connected to the data bus of the device for connecting to the data bus of the control computer, a fourth group and the information inputs of the node of the input and output link are connected to the output group of the decoder address, characterized in that, in order to expand the scope of application, the device comprises a gripping node, a bus matching node and a halting node, the output of the capture mode of the I / O node is connected to the input of the capture mode, the capture confirmation output of which is connected to the corresponding input I / O, bus and data address and control of the I / O node are connected to the corresponding buses of the bus matching and stopping nodes, the output of the data transfer confirmation of the bus matching node is connected to the input of the same name I / O bus, bus selector bus selector bus node connected to the I / O node bus of the same name, input stop command set group of the stop node is connected to the I / O node mode setting output group, connection stop stop confirmation output; the corresponding input I / O node, address bus and data of the bus matching node are bi-directional device buses for connecting to the corresponding buses of the debugging system, the control bus of the gripping node, the bus matching node, the stop node and the I / O node form a bi-directional device bus for connecting to the control bus of the debugging system. nnflnfinnnnnnnnn ,nnflnfinnnnnnnnn, rr J-AJ-A 77 //////////////////////// Редактор И.ШуллаEditor I. Shulla Фиа.8Fia.8 Составитель И.СафроноваCompiled by I.Safronova Техред А.Кравчук Корректор В.Бут гаTehred A. Kravchuk Proofreader V. But ha
SU874200860A 1987-02-24 1987-02-24 Program debugging device SU1425685A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU874200860A SU1425685A1 (en) 1987-02-24 1987-02-24 Program debugging device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU874200860A SU1425685A1 (en) 1987-02-24 1987-02-24 Program debugging device

Publications (1)

Publication Number Publication Date
SU1425685A1 true SU1425685A1 (en) 1988-09-23

Family

ID=21288012

Family Applications (1)

Application Number Title Priority Date Filing Date
SU874200860A SU1425685A1 (en) 1987-02-24 1987-02-24 Program debugging device

Country Status (1)

Country Link
SU (1) SU1425685A1 (en)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Авторское свидетельство СССР № 1100627, кл. G 06 F 11/26, 1984. Авторское свидетельство СССР № 1223236, кл. G 06 F 11/28, 1986. *

Similar Documents

Publication Publication Date Title
US4093998A (en) Programming module for programmable controller using a microprocessor
JPH06314213A (en) Debugging device
KR950012051B1 (en) Timer system
EP0694828A2 (en) Data processor with secure communication
US5768563A (en) System and method for ROM program development
US5740199A (en) High speed wire-or communication system and method therefor
JPH0628528A (en) Interface circuit for ic card
SU1425685A1 (en) Program debugging device
Sutter Embedded systems firmware demystified
JP2005284557A (en) Microcomputer whose internal memory can be monitored
Bogdanov Multiple microcontroller programming using the swd interface
JP2004013289A (en) On-chip debugging method of microcontroller
CN218450079U (en) STM32 one-key downloading circuit based on CH340G
JP2634896B2 (en) Debug device memory circuit
SU1529228A1 (en) Device for debugging program/unit modules
JPH06103106A (en) Program debug device
JPH0285934A (en) Emulator
SU1425683A1 (en) Device for debugging software/hardware blocks
SU1100627A1 (en) Device for debugging programs
SU1247877A1 (en) Device for debugging microcomputers
JP3087481B2 (en) In-circuit emulator
SU1553981A1 (en) Device for checkout of microcomputer
SU560226A1 (en) Device for controlling a digital control system
SU1552189A1 (en) Device for monitoring programs
SU1410708A1 (en) Device for debugging microcomputers