SU1483457A1 - Microcomputer debugging unit - Google Patents
Microcomputer debugging unit Download PDFInfo
- Publication number
- SU1483457A1 SU1483457A1 SU874226313A SU4226313A SU1483457A1 SU 1483457 A1 SU1483457 A1 SU 1483457A1 SU 874226313 A SU874226313 A SU 874226313A SU 4226313 A SU4226313 A SU 4226313A SU 1483457 A1 SU1483457 A1 SU 1483457A1
- Authority
- SU
- USSR - Soviet Union
- Prior art keywords
- input
- output
- register
- inputs
- microcomputer
- Prior art date
Links
Landscapes
- Debugging And Monitoring (AREA)
Abstract
Изобретение относитс к вычислительной технике и может быть применено дл контрол и отладки аппаратной части микроЭВМ и отладки программ. Цель изобретени - увеличение производительности при отладке путем контрол аппаратной части микроЭВМ-достигаетс за счет зацикливани программы при неисправной аппаратуре и за счет анализа ретроспективных адресов и данных и подсчета времени выполнени программы. 1 ил.The invention relates to computing and can be applied to control and debug the hardware of a microcomputer and debug programs. The purpose of the invention is to increase the performance when debugging by controlling the hardware of the microcomputer is achieved by looping the program with faulty hardware and by analyzing the retrospective addresses and data and counting the execution time of the program. 1 il.
Description
Изобретение относитс к вычислительной технике и может быть применено дл контрол и отладки аппаратной части микроЭВМ и отладки программ .The invention relates to computing and can be applied to control and debug the hardware of a microcomputer and debug programs.
Цель изобретени - увеличение производительности при отладке путем обеспечени контрол аппаратной части микроЭВМ за счет возможности зацикливани программы при неисправной аппаратуре и за счет возможности анализа ретроспективных адресов и данных и подсчета времени выполнени программы .The purpose of the invention is to increase the performance during debugging by ensuring the control of the microcomputer hardware due to the possibility of looping the program with faulty hardware and due to the possibility of analyzing the retrospective addresses and data and counting the execution time of the program.
На чертеже приведена структурна схема устройства дл отладки микро- ЭВМ.The drawing shows a block diagram of a device for debugging a micro-computer.
Устройство содержит первый регистр 1, первую 2 и вторую 3 схемы сравнени , второй регистр 4, регистр 5 задани режима, первый 6 и второй 7 регистры индикации, блок 8 стековой пам ти, регистр 9 адреса, счетчикThe device contains the first register 1, the first 2 and the second 3 comparison circuits, the second register 4, the mode setting register 5, the first 6 and the second 7 indication registers, the stack memory unit 8, the address register 9, the counter
10 импульсов, третий элемент ИЛИ 11, триггер 12, первый 13, второй 14, третий 15, четвертый 16, п тый 17, шестой 18, седьмой 19, восьмой 20, дев тый 21 и дес тый 22 элементы И, первый 23, второй 24 и четвертый 25 элементы ИЛИ, адресный вход 26, вход 27 признака адреса, вход 28 признака данных, группу входов 29 управл ющих сигналов, включающую в себ входы 27 и 28 сопровождени адреса и данных , выход 30 сигнала останова устройства , выход 31 сигнала прерывани устройства, вход 32 пуска устройства, тактовый вход 33 устройства, выход 34 синхронизации устройства, вход 35 чтени устройства, выход 36 начального пуска устройства.10 pulses, the third element OR 11, the trigger 12, the first 13, the second 14, the third 15, the fourth 16, the fifth 17, the sixth 18, the seventh 19, the eighth 20, the ninth 21 and the tenth 22 And, the first 23, the second 24 and fourth 25 OR elements, address input 26, address sign input 27, data sign input 28, control signal input group 29, which includes address and data tracking inputs 27 and 28, device stop signal output 30, interrupt signal output 31 devices, device start 32 input, device clock input 33, device sync output 34, reading input 35 Realty, device start up 36.
Регистры 1 и 2. 5 и 9 вл ютс тумблерными ре истрами устройства..Registers 1 and 2. 5 and 9 are device toggle switches.
Устройство имеет режимы начального пуска, останова и прерывани и режим период, который используетс толькоThe device has initial start, stop and interrupt modes and a period mode that is used only
(Я(I
4Ь4b
0000
соwith
4ъ4b
сл 1sl 1
в комбинации с режимом начального пуска.in combination with the initial start mode.
В режиме начального пуска устройство работает следующим образом. На выходе режима начального пуска регистра 5 присутствует 1. При по влении импульсного сигнала на входе 32 пуска устройства триггер 12 устанавливаетс в О, при этом на выходе 30 сигнала останова присутствует О, а на выходе 36 сигнала начального пуска через эл ементы И 15 и ИЛИ 23 по вл етс сигнал и микроЭВМ начинает выполн ть программу началь- ного пуска. Кроме того, сигнал с входа 32 через элемент И 22 устанавливает в О счетчик 10, после чего, если на выходе признака отсчета времени регистра 5 присутствует 1, то на вход инкрементировани счетчика 10 через элементы И 17, ИЛИ 24 и И 18 поступает тактова частота с тактового входа 33 и счетчик ведет отсчет времени выполнени программы. Если же ча выходе признака отсчета времени О, то на вход элемента ИЛИ 24 через элемент И 16 поступают сигналы признака адреса. 27 и счетчик 10 ведет отсчет количества циклов обмена на магистрали микроЭВМ. Содержимое счетчика 10 индицируетс на регистре 7 индикации. Единичные сигналы с входов 27, 28 через элемент ИЛИ 11 поступает на вход 8 записи стековой пам ти, записыва состо ни входов 26 адрес-данные устройства.In the initial start-up mode, the device operates as follows. At the output of the initial start-up of register 5 there is 1. When a pulse signal appears at the input 32 of the device start, the trigger 12 is set to O, while the output 30 of the stop signal is O, and the output 36 of the initial start signal through the elements AND 15 and OR 23 a signal appears and the microcomputer starts the initial start up program. In addition, the signal from input 32 through AND 22 sets counter 0 to O, then, if 1 is present at the output of the countdown indicator of register 5, then the clock frequency is input to the increment input of counter 10 through AND 17, OR 24, and 18 elements from the clock input 33 and the counter counts the program execution time. If, however, the output of the sign of time counting is O, then the signals of the address feature are sent to the input of the element OR 24 through the element 16. 27 and the counter 10 counts the number of exchange cycles on the backbone of the microcomputer. The contents of the counter 10 are indicated on the display register 7. Single signals from the inputs 27, 28 through the element OR 11 are fed to the input 8 of the stack storage record, recording the state of the inputs 26 address-data of the device.
В режиме останова устройство работает следующим образом.In stop mode, the device operates as follows.
Перед началом работы в регистр 4 заноситс комбинаци признаков состо ни входов 26 и входов 29. На выходе режима останова регистра 5 1. При по влении на входах 26 и 29 за- данной на регистре 4 комбинации сигналов (пуск микроЭВМ может быть выполнен , например, в режиме начального пуска) на выходе схемы 3 срав- % нени по вл етс единичный сигнал, который через элемент ИЛИ 11 устанав- ливает в 1 триггер 12. На выходе 30 сигнала останова по вл етс единичный сигнал, вызывающий останов микро- ЭВМ. Нулевой сигнал с инверсного выхода триггера 12 запирает элемент И 18, прекраща работу счетчика 10.Before starting operation, register 4 records the status indications of inputs 26 and inputs 29. At the output of the register 5 stop mode 1. When a signal combination is set at register 4 and input 29 (the microcomputer can be started, for example, in the initial start-up mode, a single signal appears at the output of the comparison circuit 3, which through the element OR 11 sets to 1 trigger 12. At the output 30 of the stop signal, a single signal appears that causes the microcomputer to stop. The zero signal from the inverse output of the trigger 12 blocks the element And 18, stopping the operation of the counter 10.
После останова микроЭВМ трасса .программы может быть просмотрена пу- ,After the shutdown of the microcomputer, the trace of the program can be viewed by
JQ $ 5 5 JQ $ 5 5
00
00
4040
5 five
тем лодачи единичных сигналов на вход 35 чтени устройства.the single block signals to the input 35 of the reading device.
Далее контроль микроЭВМ может быть продолжен, т.е. назначена нова точка останова. При по влении единичного импульса на входе 32 устройства счетчик 10 обнул етс через элемент И 22, а триггер 12 устанавливаетс в О, снима сигнал останова 30 и тем самым разреша микроЭВМ продолжить работу, а единичный сигнал с инверсного выхода триггера 12 поступает на элемент И 18, разреша работу счетчика 10.Further control of the microcomputer can be continued, i.e. A new breakpoint has been set. When a single pulse appears at the input 32 of the device, the counter 10 is zeroed through the AND 22 element, and the trigger 12 is set to O, removing the stop signal 30 and thus allowing the microcomputer to continue to work, and the single signal from the inverse output of the trigger 12 goes to the AND 18 element , allowing the counter to work 10.
В режиме прерывани на выходе режима останова присутствует О, в регистр 4 заноситс информаци о точке прерывани программы. Прерывающа программа должна быть предварительно занесена в пам ть микроЭВМ.In the interrupt mode, the output of the stop mode is present O, in register 4 the information about the program interruption point is entered. The interrupt program must be pre-stored in the microcomputer memory.
При по влении сигнала пуска на входе 32 обнул ютс счетчик 10 и триггер 12, снима сигнал останова на выходе 30.When a start signal appears at input 32, counter 10 and trigger 12 are zeroed out, removing a stop signal at output 30.
При достижении микроЭВМ заданного на регистре 4 состо ни на выходе 31 элемент И 14 по вл етс сигнал, вызывающий прерывание микроЭВМ.When the microcomputer reaches the register 4, the state at output 31 of the element And 14 appears to be a signal causing the interruption of the microcomputer.
Возможна работа устройства со следующими совместными признаками отладки Начальный пуск-останов, Начальный пуск-прерывание, Начальный пуск-период, Начальный пуск-прерывание-период.The device can work with the following joint signs of debugging Start-up / Stop, Start-up-interrupt, Start-up-period, Start-up-interrupt-period.
При работе устройства в режиме Начальный пуск-останов единичные сигналы присутствуют на выходах режима останова и режима начального пуска регистра 5. После пуска устройства микроЭВМ отрабатывает процедуру начального пуска и продолжает работу до по влени условий, заданных на регистре 4, после чего оператор считывает содержимое стековой пам ти 8. Работа устройства в этом режиме может производитьс при задании на выходе признака отсчета времени регистра 5 как нулевого, так и единичного сигнала. При этом после по влени сигнала останова на выходе 30 на регистре 7 индикации индицируетс количество циклов обмена на магистрали микроЭВМ или врем от момента пуска до момента останова соответственно . . СWhen the device operates in the Initial start-stop mode, single signals are present at the outputs of the stop mode and the initial start mode of the register 5. After starting the device, the microcomputer processes the initial start-up and continues to work until the conditions specified on register 4 appear, after which the operator reads the stack memory 8. The operation of the device in this mode can be performed by setting the output of the time register register 5 as a zero and a single signal. In this case, after the appearance of the stop signal at the output 30, the number of exchange cycles on the microcomputer main line or the time from the moment of start to the moment of stop, respectively, is indicated on the display 7. . WITH
В режиме Начальный пуск-прерывание на выходе режима останова задаетс нулевой сигнал, на выходе режимаIn the Initial start-interrupt mode, a zero signal is set at the output of the stop mode, at the output of the mode
начального пуска регистра 5 - единичный . При пуске микроэвм отрабатываетс процедура начального пуска и при по влении на магистрали состо ни , аданного на регистре 4, устройство выдает в микроЭВМ сигнал прерывани на выходе 31, который вызывает заданную оператором программу, котора может быть, например, первичной или программой подвод щей микроЭВМ к какой-либо программе, прошитой в ПЗУ микроЭВМ.initial start-up of register 5 - single. When the microcomputer is started, the initial start-up procedure is worked out and when a state appears on register 4, the device generates an interrupt signal at the microcomputer at the output 31, which causes the operator-defined program, which can be, for example, the primary or the microcomputer supply program Any program, stitched in the ROM of the microcomputer.
В режиме Начальный пуск-период устройство работает следующим образом . На выходах режима начального пуска и режима период регистра 5 присутствуют 1 в регистр 9 заноситс код времени выполнени программы или код количества циклов обмена на магистрали микроЭВМ (при наличии 1 или О соответственно на выходе признака отсчета времени регистра 5) В регистр 1 заноситс код выдачи сигнала синхронизации.In the mode Start-up-period, the device operates as follows. At the outputs of the initial start-up mode and the period of the register 5 there are 1 in the register 9, the program execution time code or the code of the number of exchange cycles on the microcomputer main line (if there is 1 or 0, respectively, the output of the register time indicator 5) is entered in the register 1 sync.
При по влении сигнала Пуск на входе 32 на выходе элемента ИЛИ 25 через элемент И 20 по вл етс котора производит запись содержимог регистра 9 в счетчик 10. На выходе 36 устройства по вл етс сигнал, вызывающий пуск микроЭВМ. На вход декрементировани счетчика 10 через элемент И 19 с выхода элемента ИЛИ 2 поступают импульсы, которые представл ют собой или сигналы сопровождени адреса с входа 27 (через элемент И 16) или тактовые сигналы с входа 33 (через элемент И 17) в зависимости от сигнала на выходе признака отсчета времени регистра 5.При выполнении микроЭВМ заданного числа циклов обмена или по истечении заданного времени на нулевом выходе счетчика 10 по вл етс единичный сигнал, который через элемент И 21 и элемент ИЛИ 25 вновь заносит в счетчик 10 содержимое регистра 9 и через элемен ИЛИ 23 производит перезапуск микро- ЭВМ. Далее процесс повтор етс .When a signal appears, the Start at the input 32 at the output of the element OR 25 through the element AND 20 appears which records the contents of register 9 in the counter 10. At the output 36 of the device, a signal appears causing the microcomputer to start. The decrementing input of counter 10 through the element AND 19 from the output of the element OR 2 receives pulses, which are either the signals accompanying the address from input 27 (through element 16) or the clock signals from input 33 (through element 17) depending on the signal at the output of the register count time indicator 5. When the microcomputer performs a specified number of exchange cycles or after a predetermined time has elapsed, a single signal appears at the zero output of the counter 10, which through the AND 21 element and the OR 25 element again puts the contents of the register 10 into the counter 10 and 9 and through the element OR 23 restarts the microcomputer. The process then repeats.
Предложенное устройство позвол ет 45 вести отладку как программной, так и аппаратной части микроЭВМ, так как позвол ет зациклировать работу устройства при неисправной аппаратной части и наблюдать ход функционирова- 5о ни в различных контрольных точках на экране осциллографа с необходимой разрешающей способностью. Необходимо отметить, что преобладающее количест- . во неисправностей аппаратной частиThe proposed device allows 45 to debug both the software and hardware of the microcomputer, as it allows cycling the operation of the device with the defective hardware and observing the operation of the device at the various control points on the oscilloscope screen with the required resolution. It should be noted that the prevailing amount. in hardware faults
Кроме того, при по влении на входах 26 адреса данных устройства и входах 29 управл ющих сигналов комбинации сигналов, заданной на регист- гс микроЭВМ про вл етс при начальном ре 1, на выходе схемы 2 сравнени пуске, что не позвол ет правильно вы- образуетс единичный сигнал, кото- полн ть команды, а значит не позво- рый поступает на выход 34 синхрониза- л ет зацикливать работу устройства ции устройства и может использовать- программным путем.In addition, when the device data addresses appear on inputs 26 and control signals inputs 29, a combination of signals set to the microcomputer register appears at initial re 1, the output of the comparison circuit 2 does not allow a correct generation. A single signal, which is a command, and therefore not allowed to enter output 34, synchronizes the operation of the device and can be used programmatically.
00
с , например, дл синхронизации осциллографа .with, for example, to synchronize an oscilloscope.
Информаци о коде, заносимом в регистре 9 (точка возврата), и о коде , заносимом в регистр 1 (точка синхронизации ) , выбираетс оператором в результате анализа работы микроЭВМ (анализа стековый пам ти 8) в режимеInformation about the code stored in register 9 (the return point) and the code stored in register 1 (the synchronization point) is selected by the operator as a result of the analysis of the operation of the microcomputer (analysis of the stack memory 8) in
0 Начальный пуск-останов. При этом точка возврата должна обеспечивать выход микроЭВМ на неверно выполн емую часть программы, а точка синхронизации может представл ть собой,0 Initial start-stop. In this case, the return point must provide the output of the microcomputer to the incorrectly executed part of the program, and the synchronization point may be
5 например, код адреса последней правильно СЧИТАННОЙ команды.5 for example, the address code of the last correctly read command.
Таким образом, на осциллографе могут быть просмотрены все внутренние сигналы микроЭВМ и вы влена причина, вызывающа неправильное функционирование .Thus, on the oscilloscope, all internal signals of the microcomputer can be viewed and the cause of the malfunction detected.
Режим Начальный пуск-прерывание- период отличаетс от предыдущего режима тем, что в регистр 4 предварительно заноситс код прерывани и при по влении на магистрали микро- ЭВМ комбинации сигналов, соответствующих коду в регистре 4, на выходе 31 прерывани устройства по вл етс единичный сигнал, вызывающий переход к программе, предварительно занесенной в ОЗУ. Эта прерывающа программа вл етс подвод щей к неправильно выполн емой части программы.The initial start-interrupt-period mode differs from the previous mode in that the interrupt code is preliminarily entered in register 4 and when a combination of signals corresponding to the code in register 4 appears on the main line of the microcomputer, a single signal appears at the interrupt output 31 calling transition to the program previously stored in the RAM. This interrupt program is directed to the wrongly executed part of the program.
Этот режим примен етс в том случае , если сбои фиксируютс в той части программы, переход к которой совершаетс по каким-либо сложным устройствам , или если сбойна часть гфо- 0 граммы не располагаетс непосредственно за программой начального пуска микроЭВМ.This mode is used if failures are fixed in that part of the program, the transition to which is accomplished on any complex devices, or if the faulty part of the photon is not located directly behind the program of the initial start-up of the microcomputer.
5five
00
5five
Предложенное устройство позвол ет вести отладку как программной, так и аппаратной части микроЭВМ, так как позвол ет зациклировать работу устройства при неисправной аппаратной части и наблюдать ход функционирова- ни в различных контрольных точках на экране осциллографа с необходимой разрешающей способностью. Необходимо отметить, что преобладающее количест- во неисправностей аппаратной частиThe proposed device allows debugging of both the software and hardware of the microcomputer, as it allows cycling the operation of the device with the defective hardware and observing the operation progress at various test points on the oscilloscope screen with the required resolution. It should be noted that the prevailing number of hardware malfunctions
микроЭВМ про вл етс при начальном пуске, что не позвол ет правильно вы- полн ть команды, а значит не позво- л ет зацикливать работу устройства программным путем.The microcomputer appears during the initial start-up, which does not allow the command to be executed correctly, and therefore does not allow the device to loop around programmatically.
Кроме того, устройство позвол ет по заданному событию определить ретроспективные- адреса и данные на магистрали микроЭВМ и производить конт- роль длительности выполнени заданной части программы, что увеличивает производительность при отладке.In addition, the device allows determining the retrospective addresses and data on the microcomputer backbone on a given event and controlling the duration of the execution of a given part of the program, which increases debugging performance.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU874226313A SU1483457A1 (en) | 1987-04-08 | 1987-04-08 | Microcomputer debugging unit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU874226313A SU1483457A1 (en) | 1987-04-08 | 1987-04-08 | Microcomputer debugging unit |
Publications (1)
Publication Number | Publication Date |
---|---|
SU1483457A1 true SU1483457A1 (en) | 1989-05-30 |
Family
ID=21296956
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
SU874226313A SU1483457A1 (en) | 1987-04-08 | 1987-04-08 | Microcomputer debugging unit |
Country Status (1)
Country | Link |
---|---|
SU (1) | SU1483457A1 (en) |
-
1987
- 1987-04-08 SU SU874226313A patent/SU1483457A1/en active
Non-Patent Citations (1)
Title |
---|
Авторское свидетельство СССР fr 962945, кл. G 06 F 11/28, 1980. Авторское свидетельство СССР № 1138804,- кл. G 06 F 11/28, 1983. * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP0113393B1 (en) | A self-clocked signature analyser | |
SU1483457A1 (en) | Microcomputer debugging unit | |
US6425102B1 (en) | Digital signal processor with halt state checking during self-test | |
JPS5840772B2 (en) | Data comparison match display method | |
SU1363218A1 (en) | Program-debugging device | |
JP2698346B2 (en) | Camera and debug device | |
SU1339569A1 (en) | Device for forming interruption signal in program debugging | |
SU934478A1 (en) | Device for detecting errors in debugging programmes | |
SU1571552A1 (en) | Device for checking program automatic machines | |
RU2050588C1 (en) | Method for control and debug of real-time programs and device for its implementation | |
SU1608673A1 (en) | Device for debugging programs | |
SU736100A1 (en) | Peripheral control device | |
SU1509929A1 (en) | Graphic display with check | |
SU1529227A1 (en) | Device for debugging and monitoring program runs | |
SU1746385A1 (en) | Device for checking program execution time | |
SU1541615A1 (en) | Device for debugging microcomputer | |
SU1446624A1 (en) | Arrangement for debugging multiprocessor system | |
SU1437867A1 (en) | Apparatus for generating interrupt signals in debugging of programs in microcomputer | |
SU1536388A1 (en) | Device for simulation of faults | |
JPH0816426A (en) | Device and method for fault diagnosis | |
SU446060A1 (en) | Computer control unit | |
SU1649539A1 (en) | Device of microprogramm control | |
SU1550515A2 (en) | Programmed controller processor | |
SU1280636A1 (en) | Device for debugging programs | |
SU1741135A1 (en) | Device for debugging dedicated microcomputers |