SU1608673A1 - Device for debugging programs - Google Patents
Device for debugging programs Download PDFInfo
- Publication number
- SU1608673A1 SU1608673A1 SU884438636A SU4438636A SU1608673A1 SU 1608673 A1 SU1608673 A1 SU 1608673A1 SU 884438636 A SU884438636 A SU 884438636A SU 4438636 A SU4438636 A SU 4438636A SU 1608673 A1 SU1608673 A1 SU 1608673A1
- Authority
- SU
- USSR - Soviet Union
- Prior art keywords
- input
- output
- block
- address
- trigger
- Prior art date
Links
Landscapes
- Debugging And Monitoring (AREA)
Abstract
Изобретение относитс к вычислительной технике и может использоватьс дл отладки программ и тестировани микропроцессорных систем. Цель изобретени - повышение быстродействи процесса отладки за счет использовани синтаксической информации и ускорени исполнени отладочных процедур. Устройство содержит наладочный блок 1 пам ти, регистр 2 адреса возврата, блок 3 элементов И, блок вычитани 4, триггеры 6 и 7, три элемента И 8 - 10, элемент НЕ 11 с соответствующими св з ми, которые обеспечивают подстановку команд отладочной процедуры в заданном месте вычислительного процесса. 2 ил.The invention relates to computing and can be used to debug programs and test microprocessor systems. The purpose of the invention is to increase the speed of the debugging process by using syntax information and speeding up debugging procedures. The device contains a setup memory block 1, a return address register 2, an AND block 3, a subtraction block 4, triggers 6 and 7, three AND elements 8-10, an NOT element 11 with corresponding connections that ensure the substitution of debugging procedure commands into given place of the computational process. 2 Il.
Description
Изобретение относитс к вычислительной технике и может быть использовано дл отладки программ и тестировани микропроцессорньге систем (МПС).The invention relates to computing and can be used for debugging programs and testing microprocessor systems (MPS).
Цель изобретени - повьшение быстродействи процесса отладки программ за счет ускорени исполнени отладочных процедур.The purpose of the invention is to increase the speed of the debugging process by accelerating the execution of debugging procedures.
На фиг.1 приведена функциональна схема устройства; на фиг.2 - временные диаграммы.Figure 1 shows the functional diagram of the device; figure 2 - timing diagrams.
Устройство содержит наладочный блок 1 пам ти, регистр 2 адреса воз- врата, блок 3 элементов И,блок 4 вычитани , селектор 5 адреса, первый 6 и второй 7 триггеры, первый 8, второй 9 и третий 10 элементы И, элемент НЕ 11, входную шину 12 адреса, входную и выходную шины 13 данных, входную шину 14 управлени , вход 15 запуска устройства, выход 16 разрешени выборки основной пам ти, вход 17 признака команды, вход 18 синхроим- пульса, вход 19 призна:ка чтени , входThe device contains a setup memory block 1, a return address register 2, an AND block 3, a subtraction block 4, an address selector 5, the first 6 and second 7 triggers, the first 8, the second 9 and the third 10 And elements, the HE element 11, input address bus 12, data input and output bus 13, control input bus 14, device startup input 15, main memory access enable output 16, command feature input 17, sync pulse input 18, input 19 acknowledgment: read, input
20разрешени выборки блока 1, вход20 block sample 1 input
21записи регистра 2.21 registry entries 2.
Через шины 12-14 устройство под- ключаетс к соответствующим шинам отлаживаемой МПС,Through tires 12-14, the device is connected to the corresponding tires of the MPS being debugged,
В наладочном блоке 1 пам ти хран тс коды команд и данных отладочной процедуры. В кйнал отлаживаемой МПС блок 1 пам ти подключаетс толь- ко на врем исполнени отладочной процедуры сигналом на входе 20. , Setup memory 1 contains codes for commands and data for the debugging procedure. In the channel of the debugged MPS, the memory unit 1 is connected only for the duration of the debugging procedure by a signal at the input 20.
. Гт. Rm
1 one
Регистр 2 адреса возврата предназначен дл запоминани адреса из ка- нала МПС по сигналу на входе 21. Register 2 of the return address is designed to memorize the address from the channel of the IPU according to the signal at input 21.
Блок 4 вычитани служит дл преобразовани текущих адресов Aj в канале МПС в адрес А V наладочного блока 1 пам ти, вычисленный относитель- Block 4 subtraction serves to convert the current addresses Aj in the channel IPM to the address A V of the setup memory block 1, calculated relative to
но адреса А. возврата по формуле оbut addresses A. return on the formula of
А;- А.A; - A.
Устройство работает в одном изThe device works in one of
двух режимов: ожидани и отладки.two modes: standby and debug.
В режиме ожидани триггеры 6 и 7 обнулены (цепи начальной установки не показаны), первый элемент И 8 заперт нулевым уровнем сигнала на входе 15.In standby mode, the triggers 6 and 7 are cleared (the initial installation circuit is not shown), the first element And 8 is locked with a zero signal level at the input 15.
Каждый синхроимпульс на входе 18 адресного цикла МПС, проход через ; элемент НЕ 11 и третий элемент И 10, . своим передним фронтом фиксирует теEach sync pulse at the input 18 of the address cycle of the IPU, pass through; the element is NOT 11 and the third element is AND 10,. its frontline captures those
5 five
о about
5five
00
5five
кущий адрес МПС в регистре 2 адреса возврата. На оба входа блока 4 вычитани при этом поступает один и тот же адресный код, поэтому с его выхода на адресный вход наладочного блока 1 пам ти в каждом машинном цикле поступает код адреса, равный О, однако выборка этого блока в режиме ожидани запрещена нулевым уровнем сигнала на пр мом выходе 20 первого триггера 6.The address of the IPU in the register 2 return address. Both inputs of subtraction unit 4 are supplied with the same address code, therefore, from its output, the address input of setup memory 1 in each machine cycle receives an address code equal to 0, however, the sample of this block in standby mode is prohibited by zero signal level on the direct output 20 of the first trigger 6.
Дл перевода в режим отладки на вход 15 запуска устройства подаетс разрешающий сигнал. Очередным признаком на входе 17 команды, поступаюш им по первому разр ду шины управлени из МПС, устанавливаетс первый триггер 6. Сигнал с пр мого выхода 20 этого триггера разрешает выборку наладочного блока 1 пам ти, а сигнал с инверсного выхода 16 запрещает выборку основной пам ти МПС. Очередной адрес, сформированный процессором МПС на шине 12, преобразуетс в нулевой физический адрес на адресном входе наладочного блока 1 пам ти.To switch to debug mode, a enable signal is applied to the device start input 15. Another sign at the input 17 of the command received by the first discharge of the control bus from the MPS is the first trigger 6. The signal from the direct output 20 of this trigger allows sampling of the setup memory block 1, and the signal from the inverse output 16 prohibits sampling of the main memory MPS. The next address formed by the MPS processor on the bus 12 is converted to a zero physical address at the address input of the memory setup unit 1.
По переднему фронту синхроимпульса на входе 18 адресного цикла (второй разр д шины 14 управлени ) проис г ходит установка второго триггера 7, . сигнал с инверсного выхода которого запирает третий элемент И 10, в ре- : зультате чего блокируетс изменение j адреса, прин того в регистр 2. Этот адрес возврата А хранитс в регистре 2 все врем , пока Устройство находитс в режиме отладки. . On the leading edge of the clock at the input 18 of the address cycle (the second bit of the control bus 14), the second trigger 7 is set,. the signal from the inverse output of which locks the third element AND 10, as a result of which, the change in j of the address received in register 2 is blocked. This return address A is stored in register 2 all the time while the device is in debug mode. .
Так как выборка наладочного блока, 1 пам ти .разрешена, содержимое его нулевой чейки вьщаетс в шину 13 данных МПС и воспринимаетс процессором как код очередной команды. ,С этого момента управление МПС осуществл етс программой, хранищейо в наладочном блоке пам ти, котора и организует исполнение отладочных процедур. При этом в процессоре МПС сохран етс естественный пор до из- i менени счетчика команд, т.е. адресации , так как преобразование текущих адресов на шине 12 в адреса наладочного блока 1 пам ти выполн етс автсжатически блоком 4 вычитани .Since the sampling of the setup block, 1 of the memory is allowed, the contents of its zero cell are inserted into the bus 13 of the MPS data and are perceived by the processor as the code of the next instruction. From this point on, the control of the MMS is carried out by the program stored in the setup memory block, which organizes the execution of debugging procedures. At the same time, in the MPS processor, the natural time remains until the i change of the command counter, i.e. addressing, since the conversion of current addresses on bus 12 to addresses of setup memory 1 is performed automatically by subtraction unit 4.
Следовательно, переход на-отладочную программу не требует специальной команды передачи управлени . Каких- либо ограничений на команды, используемые дп отладки, в том числе и, ;Consequently, the transition to a debugging program does not require a special command to transfer control. Any restrictions on the commands used by debugging dp, including,;
на тип первой команды, при этом не на шадываетс .on the type of the first team, while not shuffling.
Выход из режима- отладки осуществл етс в результате исполнени комады передачи управлени по адресу во вр1та, которой должна заканчиватьс оттадочна программа.В качестве источника адреса возврата в этой команде указываетс адрес регистра 2, приев эенный последнему в адресном пространстве МПС. При обращении процессора МПС по этому адресу срабатывает селектор 5, его выходной сигнал раз- ре иает прохождение сигнала - признака на входе 19 чтени (3-й разр д шиЩ) 14 управлени ) через второй эле меiT И 9 на вход блока 3 элементов ИThe exit from the debugging mode is carried out as a result of the execution of the transfer control command at the address in which the reprogramming program must end. The source of the return address in this command is the address of the register 2, which passed to the latter in the address space of the IPM. When the MPS processor addresses this address, the selector 5 is triggered, its output signal triggers the passage of a signal — a sign at the input 19 of the reading (3rd bit of the control) 14 of the control) through the second element IT 9 to the input of the block 3 elements AND
Блок 3 открываетс , содержимое рег-истра 2 (код адреса возврата) пост щает на шину 13 данных и считываетс процессором МПС.Block 3 is opened, the contents of register 2 (return address code) is sent to the data bus 13 and is read by the processor IPU.
Задним фронтом сигнала с выхода втэрого элемента И 9 сбрасываетс пеэвый триггер 6, отключа наладочный блок 1 пам ти и включа основную пам ть МПС.The falling edge of the signal from the output of the first element And 9 is reset by the first trigger 6, turning off the memory 1 and turning on the main memory of the MMS.
Процессор обращаетс по адресу возврата за командой, продолжа исполнение отлаживаемой программы.The processor addresses the return address of the command, continuing the execution of the program being debugged.
Фзрмула изо-бретени Frzmula from-bren
Устройство дл отладки программ, содержащее наладочный блок пам ти, регистр адреса возврата, блок эле- MeiTOB И, первый и второй триггеры, первый и второй элементы И, причем выход блока элементов И через шину цдлиых. соединен с входом-выходом наладочного блока пам ти и с входом-вы хоцом устройства, входы запуска и 1ризнака команды устройства соединены соответственно с первым и вторы ч входами первого элемента И, вы- хоц которого соединен с единичнымA device for debugging programs containing a setup memory block, a return address register, a block of MeiTOB AND, the first and second triggers, the first and second elements of AND, and the output of the block of AND elements via the bus. connected to the input-output of the memory setup block and to the input-you device, the start and input inputs of the device command are connected respectively to the first and second inputs of the first element I, the output of which is connected to the unit
5five
00
5five
00
5five
00
5five
входом первого , информа- циорплш вход первого триггера соединен с огиной нулевого потенциала устройства , пр мой выход первого триггера соединен с входом разрешени выборки наладочного блока пам ти, с первым входом второго элемента И и с информационным входом второго триггера , информационный выход регистра адреса соединен с информационным входом блока элементов И, вход признака чтени устройства соединен с вторым входом второго элемента И, выход которого соединен с управл ющим входом блока элементов И и с тактовым входом первого триггера,инверсный выход которого вл етс выходом разрешени выборки основной пам ти устройства, отличающеес тем, что, с целью повышени быстродействи , в устройство введены блок вычитани , третий элемент И, элемент НЕ и селектор адреса, причем вход синхронизации устройства соединен с тактовым входом селектора адреса и через элемент НЕ - с тактовым входом второго триггера и с первым входом третьего эле-, мента И, выход которого соединен с входом записи регистра адреса возврата , выход которого соединен с входом вычитаемого блока вычитани , адресный вход устройства соединен с входом уменьшаемого блока вычитани , выход которого соединен с адресным входом наладочного блока пам ти, вход признака записи устройства соединен с входом записи наладочного блока пам ти , адресный вход устройства соединен с информационным входом селектора адреса, выход которого соединен с третьим входом второго элемента И, , инверсный выход второго триггера со-; единен с вторым входом третьего элемента И.the first input, the information input of the first trigger is connected to the zero potential of the device, the direct output of the first trigger is connected to the sample enable input of the setup memory block, to the first input of the second element I, and the information output of the second register is connected to the information input of the block of elements And, the input of the sign of reading the device is connected to the second input of the second element And, the output of which is connected to the control input of the block of elements And and to the clock input of the first trigger, the inverse output of which is the output of the sampling resolution of the main memory of the device, characterized in that, in order to improve speed, a subtraction unit, a third AND element, an NOT element and an address selector are inserted into the device, and the device clock input is connected to the clock selector input addresses and through the NOT element - with the clock input of the second trigger and with the first input of the third element, And, the output of which is connected to the input of the register of the return address, the output of which is connected to the input of the subtracted block The device address input is connected to the input of the decremented subtraction unit, the output of which is connected to the address input of the memory setup unit, the device record sign input is connected to the recording input of the setup memory block, the device address input is connected to the information input of the address selector, the output of which is connected to the third input of the second element, And, the inverse output of the second trigger co; united with the second input of the third element I.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU884438636A SU1608673A1 (en) | 1988-06-08 | 1988-06-08 | Device for debugging programs |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU884438636A SU1608673A1 (en) | 1988-06-08 | 1988-06-08 | Device for debugging programs |
Publications (1)
Publication Number | Publication Date |
---|---|
SU1608673A1 true SU1608673A1 (en) | 1990-11-23 |
Family
ID=21380525
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
SU884438636A SU1608673A1 (en) | 1988-06-08 | 1988-06-08 | Device for debugging programs |
Country Status (1)
Country | Link |
---|---|
SU (1) | SU1608673A1 (en) |
-
1988
- 1988-06-08 SU SU884438636A patent/SU1608673A1/en active
Non-Patent Citations (1)
Title |
---|
Зепенко Г.В. и др. Проектирование и отладка микропроцессорных -М.: Машиностроение, 1982. систем. Авто ское свидетельство СССР пек Р 1100627, кл. G 06 F 11/26, 1982. * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPS6120145A (en) | Operation analyzer of microprocessor | |
SU1608673A1 (en) | Device for debugging programs | |
SU1100627A1 (en) | Device for debugging programs | |
US5218692A (en) | Digital pulse timing parameter measuring device | |
SU1282139A1 (en) | Device for debugging software-hardware units | |
SU1456996A1 (en) | Device for monitoring memory units | |
SU1553981A1 (en) | Device for checkout of microcomputer | |
SU1247877A1 (en) | Device for debugging microcomputers | |
JPS6142186Y2 (en) | ||
SU1608675A1 (en) | Device for monitoring running of programs in computer | |
SU1642472A1 (en) | Device for checking the sequence of operatorъs actions | |
SU1550515A2 (en) | Programmed controller processor | |
SU1182526A1 (en) | System for checking and testing memory blocks of airborne computers | |
SU1661770A1 (en) | Test generator | |
SU1410040A1 (en) | Data input/output device | |
SU1339569A1 (en) | Device for forming interruption signal in program debugging | |
SU1552189A1 (en) | Device for monitoring programs | |
SU1583744A1 (en) | Apparatus for debugging programs | |
SU1501065A1 (en) | Device for monitoring program run | |
SU1363223A1 (en) | Computer storage dispatcher | |
SU1695266A1 (en) | Multichannel device for program-simulated control | |
SU1008745A1 (en) | Function unit checking device | |
SU1386995A1 (en) | Signature analyzer | |
SU1108453A1 (en) | Device for function-dynamic checking of logic circuits | |
SU1075247A1 (en) | Device for holding computer bus |