SU1425687A1 - Program debugging device - Google Patents
Program debugging device Download PDFInfo
- Publication number
- SU1425687A1 SU1425687A1 SU874230684A SU4230684A SU1425687A1 SU 1425687 A1 SU1425687 A1 SU 1425687A1 SU 874230684 A SU874230684 A SU 874230684A SU 4230684 A SU4230684 A SU 4230684A SU 1425687 A1 SU1425687 A1 SU 1425687A1
- Authority
- SU
- USSR - Soviet Union
- Prior art keywords
- input
- register
- address
- output
- block
- Prior art date
Links
Abstract
Изобретение относитс к автоматике и вычислительной технике-и может быть использовано при отладке программ микропроцессорных систем. Целью изобретени вл етс расширение функциональных возможностей устройства за счет обеспечени отладки программ в реальных услови х. Устройство содержит блок 1 управлени , регистры 2 и 11 данных, блоки 3 и 8 индикатдии данных, регистр 4 адреса, блок 5 индикации адреса, блоки 6 и 10 сравнени - соответственно адресов и данных, регистр 12 адреса останова, дешифратор 13 старших разр дов адреса, элементы И-НЕ 14-17. Устройство обеспечивает различные режимы обмена информацией между блоками устройства и между устройством и отлаживаемой микропроцессорной системой, дополнительные возможности запоминани и индикации информации адресации к отладочной пам ти. 1 з.п. ф-лы, 1 нл. (ЛThe invention relates to automation and computing, and can be used when debugging programs of microprocessor systems. The aim of the invention is to expand the functionality of the device by providing debugging programs in real conditions. The device contains a control unit 1, data registers 2 and 11, data indication units 3 and 8, address 4 register 5, address indication block 5, comparison blocks 6 and 10, respectively, addresses and data, stop address register 12, decoder 13 high-order address bits , elements AND NOT 14-17. The device provides various modes of information exchange between the device blocks and between the device and the microprocessor system being debugged, additional possibilities for storing and displaying addressing information to the debug memory. 1 hp f-ly, 1 nl. (L
Description
8S8S8S8S
4:аь Ю СП4: ai yu sp
Oi 00Oi 00
Изобретение относитс к вычислительной технике и может,быть использовано дл отладки программных и аппаратных средств и тестировани микропроцессорных систем (МПС).The invention relates to computing and can be used to debug software and hardware and test microprocessor systems (MPS).
Целью изобретени вл етс расширение функциональных возможностей устройства за счет отладки программ в реальных услови х.The aim of the invention is to expand the functionality of the device by debugging programs in real conditions.
На чертеже изображена структурна схема устройства дл отладки программ . Схема .содержит блок 1 управлени , первый регистр 2 данных, первый блок 3 индикации данных, регистр 4 адреса, блок 5 индикации адреса, блок 6 сравнени адресов, регистр 7 данных, второй блок 8 индикации данных , блок 9 отладочной па.м ти, блокThe drawing shows a block diagram of a device for debugging programs. The circuit contains a control unit 1, a first data register 2, a first data indication block 3, an address register 4, an address indication block 5, an address comparison block 6, a data register 7, a second data indication block 8, a debugging parameter block 9, block
10сравнени данных, второй регистр10 data comparisons, second register
11данных, регистр 12 адреса остано ва, дешифратор 13 ста1)й1их разр дов адреса, элементы И-НЕ lA-l, регистр 18 режимов, дешифратор 19 команд блока управлени , элементы И 20 и 21, элементы ИЛИ 22 и 23, блоки 2411data, address address register 12, decoder 13 st1, thirteen address bits, AND-NOT lA-l elements, register of 18 modes, decoder 19 control unit commands, AND elements 20 and 21, OR elements 22 and 23, blocks 24
и 25 задержки.and 25 delays.
Кроме того, на чертеже показаны входы-выходы 26-124.In addition, the drawing shows the inputs-outputs 26-124.
Устройство работает следуюЕр1м образом .The device works in the following way.
: При записи информации в блок 9 отладочной пам ти в регистр 2 данных и регистр 4 адреса предваритель- I но занос тс данные и адрес, причем : на первый вход данных регистра. 2 Сданных от устройства ввода поступают Сданные по сигналу, приход щему на вход записи регистра 2 данных, а I на первый адресньш вход регистра 4 адреса поступает адрес от устройства ввода по сигналу на вход записи регистра 4 адреса с выхода дешифратора 19 команд. Управл юи(ие сигналы вырабатываютс блоком 1 управлени при поступлении от устройства ввода информации на вход, данных и признак команды на входах дешифратора 19 команд. С выходовфегистра 2 данных на информационный вход блока 9 отладочной пам ти поступает код и записываетс по сигналу, поступающему на вход записи блока 9 отладочной пам ти, по адресу, поступившему на адресный -вход блока 9 с выхода регистра 4 адреса. Обращение с целью записи или чтени производитс к 8- разр дной чейке блока 9, если на входы элементов И-НЕ соответственно: When writing information to block 9 of debugging memory in data register 2 and address register 4, the data and the address are preliminarily entered, and: at the first input of the register data. 2 Sdanny from the input device arrive Sdanny on the signal arriving at the input of the data register 2 register, and I to the first address input of the register 4 address receives the address from the input device on the signal at the input of the register 4 address from the output of the decoder 19 commands. Controls (the signals are generated by the control unit 1 upon receipt of information from the input device, data and the command sign at the inputs of the command decoder 19. From the output of the data recorder 2, the code is inputted to the information input of the debugging memory unit 9 and recorded on the input signal recordings of debug memory block 9 at the address received at the address input of block 9 from the output of address register 4. Address for writing or reading is made to the 8-bit cell of block 9, if the inputs of the AND-NOT elements are respectively
00
5five
00
5five
00
5five
00
5five
00
5five
14-17 поступает сигнал уровн логической единицы. В случае при поступлении с одного из выходов дешифратора 13 старших разр дов сигнала уровн логической нул на вход одного из элементов И-НЕ 14, 15, 16 и 17, на выходе соответствующего элемента по витс сигнал логической единицы. Обращение производитс к 24-разр дной чейке пам ти. Если на входы элементов И-НЕ 14-17 поступают нулевые потенциалы, при чтении из блока 9 по команде, поступающей от устройства ввода, запись адреса в регистр 4 адреса производитс таким же образом, как и при записи в блок 9 отладочной пам ти. Считьшание из блока 9 отладочной пам ти производитс по сигналу, поступившему на вход чтени с выхода элемента ИЛИ 23. Сигнал на выходе элемента ИЛИ 23 по вл етс при поступлении сигнала на его вход с выхода дешифратора 19 команд..14–17 a logic unit level signal is received. In the case of the arrival at one of the outputs of the decoder of the 13 most significant bits of the signal of the logical zero level at the input of one of the elements AND 14, 15, 16 and 17, the signal of the logical unit is output at the output of the corresponding element. The call is made to a 24-bit memory cell. If zero potentials arrive at the inputs of the AND-14-14 elements, when reading from block 9 by a command from the input device, the address is written to the address register 4 in the same way as when writing to the debug memory block 9. Reading from debug memory block 9 is performed by a signal received at the read input from the output of the element OR 23. The signal at the output of the element OR 23 appears when a signal arrives at its input from the output of the decoder 19 commands.
Информаци с выхода блока 9 отладочной пам ти поступает на информационный вход регистра 2 данных и : заноситс в него по сигналу, поступившему на его вход записи- с выхода блока 2 задержки. Блок 2 задержки служит дл задержки на врем чтени из блока 9 отладочной пам ти, поэтому сигнал записи в регистр 2 данных поступает на его вход записи после того, как данные в блоке 9 отладочной пам ти по вл ютс на выходе . Информаци с выхода регистра- 2 данных поступает дл индикации на вход данных блока 3 индикации данньк Сигнал, поступающий на управл ющий вход этого блока индикации , запрещает или разрешает индикацию в зависимости от его уровн . При каждом обмене информацией между блоками устройства дл отладки программ с отлаживаемой микропроцессорной системы юте с устройством ввода-вывода в регистр 18 режимов предварительно загружаетс код, который интерпретируетс блоком 1 управлени и определ ет направление и режим обмена. Код поступает на информационный вход регистра 18 ре- iMOB от устройства ввода-вьгоода по сигналу, поступающему на вход записи регистра режимов 18 от устройства ввода-вывода. -Данные из блока 9 отладочной пам ти могут быть переданы через регистр L данных к устройству ввода-вывода и от него, например в ЭВМ с целью их анализа и контрол Адрес с выхода регистра 4 адреса также может быть передан через устройство ввода-вывода во внешнюю среду . Кроме того, адрес может индицироватьс в блоке ,5 индикации.The information from the output of block 9 of the debugging memory arrives at the information input of the data register 2 and: is entered into it by a signal received at its record input from the output of the delay block 2. The delay unit 2 serves to delay the read time from the debug memory block 9, therefore the write signal to the data register 2 arrives at its write input after the data in the debug memory block 9 appears at the output. The information from the output of the register-2 data is fed to the data input of the data indication unit 3. The signal to the control input of this display unit prohibits or enables the display, depending on its level. Each time information is exchanged between blocks of a device for debugging programs from a debugging microprocessor system with an I / O device, the mode register 18 is preloaded with a code that is interpreted by control unit 1 and determines the direction and mode of exchange. The code arrives at the information input of the register 18 of the iMOB from the input-output device by a signal that comes to the input of the record of the register of modes 18 from the input-output device. - The data from debug memory block 9 can be transferred through the L data register to the I / O device and from it, for example, to a computer for analysis and control. The address from the register 4 address output can also be transmitted through the I / O device to an external Wednesday In addition, the address can be displayed in the display unit 5.
Возможны различные режимы отладки . В режиме непрерывного выполнени программы МПС по сигналу, поступающему от МПС на вход записи регистра 4 адреса 5 на его информационный вход поступает адрес, а с его выхода поступает на адресньй вход блока 9 отладочной пам ти. Управл ю- ощй сигнал от МПС поступает на вход элемента ИЛИ 23, с выхода которого сигнал чтени поступает на вход блока 9 отладочной пам ти. После задержки на врем чтени , осуществл емой блоком 25 задержки, данные по сигналу , поступающему с выхода блока 25 задержки, занос тс в регистр 2 данных . Блок 24 задержки осуществл ет временную задержку выдачи сигнала готовности данных на врем записи данных в регистр 2 данных. С выхода регистра 2 данных данные передаютс к МПС по управл ющему сигналу , поступающему к МПС с выхода элемента ИЛИ 22. Если эти данные вл ютс командой, то она вьшолн етс процессором МПС. Управл ющий сигнал с выхода элемента ИЛИ 22 вьфабаты- ваетс с учетом состо ни регистра 18 режимов. При положительном уровне сигнала, поступающего на вход элемента И 21, на второй вход этого элемента поступает также сигнал положительного уровн с выхода блока 24 задержки. При этом с выхода элемента И 21 поступает сигнал на вход элемента ИЛИ 22, В шаговом режиме отладки на вход элемента И 21 с выхода регистра 18 режимов поступает сигнал низкого уровн , который запрещает прохождение сигнала с выхода элемента И 21 на вход элемента ИЛИ 2 Управл ющий сигнал на выходе элемента ИЛИ 22 формируетс при поступле- 1ии сигнала с выхода дешифратора 19 команд на вход элемента.ИЛИ 22. Сигнал на выходе дешифратора 19 команд формируетс при поступлении на его вход соответствующего кода от устройства ввода-вывода по сигналу, поступающему на вход признака команVarious debugging modes are possible. In the mode of continuous execution of the MPS program, the signal from the MPS to the input of the record of register 4 of address 5 receives the address on its information input, and from its output it goes to the address input of block 9 of debugging memory. The control signal from MPS is fed to the input of the element OR 23, from the output of which the reading signal is fed to the input of block 9 of the debugging memory. After a delay in the read time carried out by the delay unit 25, the data on the signal from the output of the delay unit 25 is entered into data register 2. The delay unit 24 performs a time delay for the data readiness signal to be output at the time data is written to the data register 2. From the output of data register 2, the data is transmitted to the IPM via a control signal received by the IPM from the output of the element OR 22. If this data is a command, then it is executed by the IPN processor. The control signal from the output of the element OR 22 is outputted, taking into account the state of the register of 18 modes. With a positive level of the input signal of the element And 21, the second input of this element also receives a positive level signal from the output of the delay block 24. At the same time, from the output of the AND 21 element, a signal is fed to the input of the OR 22 element. the signal at the output of the element OR 22 is formed when a signal is received from the output of the decoder 19 commands to the input of the element. OR 22. The signal at the output of the decoder 19 commands is formed when the corresponding code arrives at its input from the input / output device present on the input feature Koman
5five
00
5five
00
5five
ды дешифратора 19 команд от устройства ввода-вывода. Таким образом, управление шаговым режимом -отладки осуществл етс оператором с помощью устройства ввода информации.decoder d 19 commands from an I / O device. Thus, the stepping mode-debug control is performed by the operator using an input device.
При непрерывном выполнении программы МПС устройством анализируютс адреса выполн емых команд и информации , вл юща с командой или операндом , или содержимым регистра состо ни . Эта информаци сравниваетс в блоках 6 и 10 соответственно с содержимым регистра 12 адреса останова и регистра 1 1 данньгх. При совпадении с выходов блоков 6 или 10 на входы регистра 18 режимов поступают сигналы , которые перевод т устройство в режим отладки по щагам. Информаци в регистры 11, 12 заноситс с их информационных входов от устройства ввода-вывода при поступлении на их входы записи управл ющих сигналов .During continuous execution of the MPS program, the device analyzes the addresses of the executed commands and information, which is a command or operand, or the contents of the status register. This information is compared in blocks 6 and 10 respectively with the contents of the stop address register 12 and the register 1 1 danh. When coinciding with the outputs of blocks 6 or 10, the inputs of the register 18 of the modes receive signals that put the device in debug mode along the slots. Information in registers 11, 12 is recorded from their information inputs from an input / output device when control signals are written to their inputs.
При выполнении прог раммы МПС промежуточные результаты вычислений, дл контрол правильности вьшолнени программы .МПС, могут быть занесены в регистр 7 данных от МПС (по сигналу записи), содержимое которого поступает на блок 8 индикации . Индикаци может быть разрешена или запрещена по сигналу, поступающему на вход блока 8.When executing the MPS program, the intermediate results of the calculations, to check the correctness of the execution of the MPS program, can be entered into the data register 7 from the MPS (according to the recording signal), the contents of which are fed to the display unit 8. Indications can be enabled or disabled by the signal received at the input of block 8.
Claims (2)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU874230684A SU1425687A1 (en) | 1987-02-26 | 1987-02-26 | Program debugging device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU874230684A SU1425687A1 (en) | 1987-02-26 | 1987-02-26 | Program debugging device |
Publications (1)
Publication Number | Publication Date |
---|---|
SU1425687A1 true SU1425687A1 (en) | 1988-09-23 |
Family
ID=21298646
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
SU874230684A SU1425687A1 (en) | 1987-02-26 | 1987-02-26 | Program debugging device |
Country Status (1)
Country | Link |
---|---|
SU (1) | SU1425687A1 (en) |
-
1987
- 1987-02-26 SU SU874230684A patent/SU1425687A1/en active
Non-Patent Citations (1)
Title |
---|
Патент US № 4231087, кл. G 06 F 11/00, 1980. Патент DD № 159914, кп. G 06 F 11/28, 1981. * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR0168656B1 (en) | Data processing system | |
US5751942A (en) | Trace event detection during trace enable transitions | |
US4675646A (en) | RAM based multiple breakpoint logic | |
US4780819A (en) | Emulator system utilizing a program counter and a latch coupled to an emulator memory for reducing fletch line of instructions stored in the emulator memory | |
US4056847A (en) | Priority vector interrupt system | |
JPH02133834A (en) | In-circuit emulator | |
US4047245A (en) | Indirect memory addressing | |
SU1425687A1 (en) | Program debugging device | |
US4814977A (en) | Apparatus and method for direct memory to peripheral and peripheral to memory data transfers | |
EP0059758A1 (en) | Numerical control unit | |
EP0436211B1 (en) | Apparatus enabling observation of internal memory-mapped registers | |
US4574347A (en) | Data processing apparatus for performing high-speed arithmetic operations | |
JPH0581087A (en) | Processor monitoring system | |
JPH02281341A (en) | Write data confirming method for debugging | |
SU1345240A1 (en) | Graphic information output device | |
JPH0250495B2 (en) | ||
JP2940000B2 (en) | Single chip microcomputer | |
SU1605273A1 (en) | Multichannel data acquisition device | |
JPH05143718A (en) | Image processor | |
JPS6391756A (en) | Partial write instruction processing system for storage device | |
SU1399750A1 (en) | Device for interfacing two digital computers with common storage | |
SU1619290A1 (en) | Data exchange device | |
JP2729126B2 (en) | Address trace circuit of debug system | |
SU1298752A1 (en) | Device for debugging programs | |
SU1737454A1 (en) | Device for storing route of interprocessor exchanges in multiprocessor systems |