SU1462327A1 - Program debugging arrangement - Google Patents
Program debugging arrangement Download PDFInfo
- Publication number
- SU1462327A1 SU1462327A1 SU874292002A SU4292002A SU1462327A1 SU 1462327 A1 SU1462327 A1 SU 1462327A1 SU 874292002 A SU874292002 A SU 874292002A SU 4292002 A SU4292002 A SU 4292002A SU 1462327 A1 SU1462327 A1 SU 1462327A1
- Authority
- SU
- USSR - Soviet Union
- Prior art keywords
- input
- register
- address
- output
- computer
- Prior art date
Links
Abstract
Устройство относитс к вычислительной технике, в частности к устройствам , обеспечиваюним отладку аппаратуры и программ в реальном масштабе временц, и может найти широкое применение при отладке и эксплуатации микропроцессорных систем и устррйств (как однопроцессорных, так и многопроцессорных). С целью повышени производительности в устройство , содержащее регистр 3 адреса и состо ний, регистр 6 циклов, счетчик 10 циклов, схему сравнени 9 адресов , введены регистр 13 режимов, селектор 2 адреса, дешифратор 4 записи , дешифратор 3 считывани , элементы И 7, 12, 14, элементы ИЛИ 8,11, триггер 17 блокировки, триггер 15 запроса прерываний, триггер 19 запроса прерываний, триггер 20 готовности , триггер 18 сброса, блок ключей 16, Предлагаемое устройство совместно с отладочной микроЭВМ позвол ет разработать цикл программного обеспечени : составлени , исправлени программ, отладки их на микропроцессорных системах и микроЭВМ. 3 ил., 1 табл. с /)The device relates to computing, in particular, to devices that provide real-time hardware and software debugging, and can be widely used in debugging and operating microprocessor systems and devices (both single-processor and multi-processor). In order to improve performance, a device containing a register of 3 addresses and states, a register of 6 cycles, a counter of 10 cycles, a comparison circuit of 9 addresses, a register of 13 modes, a selector of 2 addresses, a decoder 4 entries, a decoder 3 readings, And 7, 12 elements are entered , 14, OR elements 8,11, interlock trigger 17, interrupt request trigger 15, interrupt request trigger 19, ready trigger 20, reset trigger 18, key block 16, The proposed device, in conjunction with a debugging microcomputer, allows developing a software cycle: and help programs, debugging them on microprocessor systems and microcomputers. 3 ill., 1 tab. with /)
Description
.роЭВМ переходит в состо ние ожидани g ША2, Пам ть разблокируетс в резульи пам ть ее блокируетс .The computer goes into the standby state g SHA2, the memory is unlocked as a result of which its memory is locked.
Затем в порт В регистра 13 загружаетс значение байта данных команды MVTA, ДАННЫЕ, которое через блок 16 ключей поступает на шину данных ШД2, Сигнал 31 сбрасьгеает триггер 20 готовности, вследствие чего микроЭВМ выходит из состо ни ОЖИДАНИЕ, принимает значение байта данных и обрабатывает его в соответствии с кодом команды. Таким образом, в аккумул торе отлаживаемой микроЭВМ будет записана требуема информаци , значение которой определ етс вторым бай50Then the port B of the register 13 loads the data byte of the MVTA command, DATA, which through the key block 16 enters the data bus SD2, Signal 31 resets the ready trigger 20, as a result of which the microcomputer goes out of the STANDBY state, accepts the value of the data byte and processes it to according to the command code. Thus, in the accumulator of the microcomputer being debugged, the required information will be recorded, the value of which is determined by the second byte50.
тате установки триггером 17 сигнала 49 Блокировка пам ти за счет подачи на D-вход триггера 17 через порт С регистра 13 сигнала 36 Блокировка пам ти с уровнем О, Таким образом , реализуетс этап загрузки отлаживаемых программ в пам ть.At the same time, the signal is set by the trigger 17 of the signal 49 Memory lock due to the supply to the D input of the trigger 17 via port C of the register 13 of the signal 36 Memory lock with the O level. Thus, the step of loading the programs being debugged into the memory is realized.
Следующий этап прогона программ осуществл етс либо в непрерывном ре- g жиме, либо по шагам. Требуемый режим работы определ етс состо нием порта С регистра 13 данных и задани режимов , запись информации в который производитс по сигналу 32 записи данША2 , Пам ть разблокируетс в резульThe next stage of the program run is carried out either in continuous mode or in steps. The required mode of operation is determined by the state of port C of the data register 13 and the setting of modes, the recording of information in which is effected by the data signal 32 of the data record DAS2, the memory is unlocked in
тате установки триггером 17 сигнала 49 Блокировка пам ти за счет подачи на D-вход триггера 17 через порт С регистра 13 сигнала 36 Блокировка пам ти с уровнем О, Таким образом , реализуетс этап загрузки отлаживаемых программ в пам ть.At the same time, the signal is set by the trigger 17 of the signal 49 Memory lock due to the supply to the D input of the trigger 17 via port C of the register 13 of the signal 36 Memory lock with the O level. Thus, the step of loading the programs being debugged into the memory is realized.
Следующий этап прогона программ осуществл етс либо в непрерывном ре- жиме, либо по шагам. Требуемый режим работы определ етс состо нием порта С регистра 13 данных и задани режимов , запись информации в который производитс по сигналу 32 записи данHbix в регистр 13, Во всех перечисленных режимах внутренний управл ющий сигнал 36, поступаютоий на D-вход триггера 17 блокировки пам ти и сигнал 39, поступающий на D-вход триггера 18 сброса обеспечивают сигналы Блокировка пам ти 49 и Сброс 50 уровн О. В случае непрерьтно- го режима работы в порте С регистра 13 устанавливаетс в состо ние О Оигналы 38,40,42 и 43 в результате ч(его с выхода элемента ИЛИ 11 на li-вход триггера 20 готовности посту10The next stage of the program run is carried out either continuously or in steps. The required mode of operation is determined by the state of port C of the data register 13 and the setting of modes, information is written to by the write signal 32 of the data Hbix to the register 13. In all the listed modes, the internal control signal 36 is received at the D input of the memory lock trigger 17 and a signal 39 arriving at the D-input of the flip-flop 18 provides the signals Blocking of the memory 49 and Reset 50 of the level O. In the case of a continuous operation in the port C of the register 13 is set to the state O Signals 38,40,42 and 43 in the result of h (its output from the element IL And 11 to the li-input trigger 20 readiness post10
входов элемента ИЛИ им выходом соединен гера 20 готовности. пает управл ющий си начала такта. Таким личии в щестом или де Щ 2 1,по пере нала 44 триггер- 30 52 Готовность, На дитьс адрес внешне на гад2 данные ВВОДА ние ШУ2 осуществл е В и С регистра 3 поthe inputs of the element OR the output is connected to the ready mode 20. Controller B starts tact. Such a difference in the scheduling or de SCH 2 1, on the transfer 44 trigger 30 52 Readiness, Repetition of the address externally on data 2 INTRODUCTION SHU2 carried out B and C of the register 3 on
порт А регистра 11 ние регистра 13,port A of the register 11 register of the register 13,
2020
2525
3535
г|ает О информируетс единичный сиг- is сигнала 33, ПЩ2 Нал 52 ШУ2 Готовность,r | s O is informed of a single signal-is signal 33, PS2 Nal 52 ShU2 Ready,
При работе в режиме выполнени отваживаемой программы по шагам уста- йавливаетс в единичное состо ние Сигнал 40, который через элемент ИЛИ 11 поступает на D-вход триггера 20, На С-вход поступает сигнал 44 Начало команды, В результате фop fиpyeтc сигнал 52 Готовность j. Йосле чего по сигналу 32 Чтение регистра 1 производитс считывание байта состо ни микроЭВМ, записанного в регистр 1, затем кода команды, наход щегос на ПЩ2, через порт А регистра 13 и чтение адреса ОМУ через порты В и С регистра 3, Выборка указанных регистров осуществл етс ; управл ющими сигналами 35 и 33,When operating in the execution mode of a bold program, the steps are set to one state. Signal 40, which through the OR 11 element arrives at the D input of the trigger 20, The C signal enters the 44 Start of the command, As a result, the front output signal 52 Ready j . After that, the signal 32 Read register 1 reads the byte of the state of the microcomputer recorded in register 1, then the command code located on PS2 through the port A of register 13 and read the address of the WMD through ports B and C of the register 3, sampling the specified registers carried out is; control signals 35 and 33,
Функционирование устройства в режиме прогона рабочих программ с остановом определ етс установкой в единичное состо ние следующих сиг- ; налов: -38 - задание режима Останов по адресу, 42 - задание режима Ос- танов по прерьгаани м и 43 - задание режима Останов по командам ВВОД и ВЫВОД,The operation of the device in the run mode of the working programs with a stop is determined by setting the next sig in one state; inquiries: -38 - setting the Stop mode at the address, 42 - setting the Stop mode according to the presets, and 43 - setting the stop mode using the ENTER and DISPLAY commands,
При отладке рабочих программ с остановом по командам ВВОД и ВЫВОД управл ющий сигнал 43 поступает на первьй вход элемента И 12, Второй вход элемента И 12 соединен с выходом элемента ИЛИ 8, на два входа которого подаютс соответственно шестой и четвертый разр ды ШД2, Прив зка к данным разр дам необходима дл определени машинных циклов ВВОД и ВЫВОД, Единичное состо ние шестого разр да ШУ2, при наличии стробирую- щего сигнала-44 - Начало команды, определ ет цикл ВВОД, аналогичным образом четвертый разр д ШД2 определ ет цикл ВЫВОД, Выход элемента И 12 поступает на один из четьфехWhen debugging work programs with a stop at the INPUT and OUTPUT commands, the control signal 43 is fed to the first input of an AND 12 element. The second input of an AND 12 element is connected to the output of an OR 8 element, to the two inputs of which are respectively the sixth and fourth bits of SD2, Attach to these bits is necessary for determining the INPUT and OUTPUT machine cycles, the sixth bit single state of the CG2, in the presence of a 44 gating signal — The start of the command determines the IN block, similarly the 4th bit of the CID 2 determines the OUTPUT cycle element And 12 enters one of the teams
При отладке рабо танов по прерьгаани стра 13 устанавлива единичное состо ние нал 42i, который пос вход элемента И7, Н поступает нулевой р ным состо нием кото стробирующего сигна манды и определ ем НИЕ ПРЕРЫВАНИЯ, Вы св зан с одним из ч 30 мента ИЛИ 11, котор соединен с D-входом товности. На тактов 20 поступает сигнал ды. Таким образом тавит сигнал 52 Го в случае по влени ПОДТВЕРЖДЕНИЕ ПРЕР будет находитьс ад лаживаемую программ обработки прерьюани команды EST, опред прерываний, Считьге производитс так ж ВВОД и ВЫВОД,When debugging the workings of the preregaganista 13, the unit state is set to 42i, which after the input of the element I7, H comes in the zero-zero state, which has a strobe signal and the definition of the interruption, you are connected to one of the hr 30 or 11, Connected to the D-input of the product. At cycles 20, a signal is received. Thus, the 52Go signal in the case of the occurrence of a CONFIRMATION PREP will be assigned by the EST command interrupt processing program, the interrupt will be detected.
При отладке раб жиме Останов по а переходит в состо отлаживаема прогр рез заданный адрес мое количество цик 29 - запись в реги и В регистра 6 зап танова, в порт С р чество циклов повт данного режима осу новкой в порте С р ничное состо ние у ла 38, который пос вход элемента И 13When debugging the Stop operation, the transition goes to the debugging state of the program, the specified address, the number of cycles 29, is written to the register and register 6 of the register, to the port, because of the cycles, this mode is fixed in the port. 38, which is the input element and 13
4040
4545
5050
5555
входов элемента ИЛИ 11, который своим выходом соединен с В-входом триггера 20 готовности. На С-вход поступает управл ющий сигнал 44 - признак начала такта. Таким образом, при наличии в щестом или четвертом разр де Щ 2 1,по переднему фронту сигнала 44 триггер- 30 выставл ет сигнал 52 Готовность, На Ш2 будет находитьс адрес внешнего устройства, на гад2 данные ВВОДА или ВЫВОДА, Чтение ШУ2 осуществл етс через порты В и С регистра 3 подачей управл ющепорт А регистра 11 ние регистра 13,the inputs of the element OR 11, which its output is connected to the input of the trigger 20 is ready. A control signal 44 is received at the C input - a sign of the start of the clock. Thus, if there is a scatter or a fourth bit of 2 2 1, on the leading edge of the signal 44 the trigger 30 sets the signal 52 Ready, On W2, the address of the external device will be found, on the gad2 the data of the INPUT or OUTPUT, the SCH2 is read through the ports B and C of the register 3 submission of the control port A of register 11 to the register 13,
сигнала 33, ПЩ2 signal 33, ПЩ2
считываетс через по сигналу 35 чте0read via signal 35
5five
5five
При отладке рабочих программ Останов по прерьгаани м в порте С регистра 13 устанавливаетс в активное единичное состо ние управл ющий сигнал 42i, который поступает на первый вход элемента И7, На второй вход поступает нулевой разр д ЩЦ2, единичным состо нием которого при наличии стробирующего сигнала 44 Начало ко- манды и определ ем цикл ПОДТВЕРЖДЕНИЕ ПРЕРЫВАНИЯ, Выход элемента И., св зан с одним из четырех входов эле- 0 мента ИЛИ 11, который своим выходом соединен с D-входом триггера 20 готовности . На тактовый вход триггера 20 поступает сигнал 44 Начало команды . Таким образом, триггер 20 выставит сигнал 52 Готовность только в случае по влени машинного цикла ПОДТВЕРЖДЕНИЕ ПРЕРЫВАНИЯ, На 1ЧУ2 будет находитьс адрес возврата в отлаживаемую программу по завершению обработки прерьюаний, на иЩ2 - код команды EST, определ ющий вектор прерываний, Считьгеание шин микроЭВМ производитс так же как и в цикле ВВОД и ВЫВОД,When debugging the working programs, the Stop by the preregang in port C of the register 13 is set to the active single state, the control signal 42i, which is fed to the first input of the I7 element. The second input receives the zero bit of the ShchTs2, the single state of which, in the presence of the gate signal 44 The beginning of the command and define the cycle CONFIRMATION OF INTERRUPT, the output of element I., is connected to one of the four inputs of the element OR 11, which is connected to the D input of the ready trigger 20 by its output. At the clock input of the trigger 20 receives a signal 44 Start command. Thus, the trigger 20 will set the 52 readiness signal only in the event of a computer cycle occurrence CONFIRMATION OF INTERRUPTION, 1CU2 will find the return address in the program being debugged to complete the processing of interrupts, and the EST command defining the interrupt microcomputer vector is generated same as in the INPUT and OUTPUT loop,
При отладке рабочих программ в режиме Останов по адресу, микроЭВМ переходит в состо ние ожидани ,когда отлаживаема программа проходит че- рез заданный адрес останова требуемое количество циклов. По сигналу 29 - запись в регистр 6, в порты А и В регистра 6 записываетс адрес останова , в порт С регистра 6 - количество циклов повторений. Задание данного режима осуществл етс --установкой в порте С регистра 5 3 в единичное состо ние управл ющего сигнала 38, который поступает на первый вход элемента И 13, Запись числа цик0When debugging work programs in the Stop mode at the address, the microcomputer goes into the standby state when the program being debugged passes the specified number of cycles through the specified stop address. On signal 29, a record in register 6, a stop address is written to ports A and B of register 6, and the number of cycles of repetitions is written to port C of register 6. The setting of this mode is accomplished by installing in port C a register 5 3 into one state of the control signal 38, which is fed to the first input of the element AND 13, Record number cyc0
5five
00
5555
лов повторений в счетчик 10, работающий в режиме вычитани , осуществл етс путем установки в состо ние 1 сигнала 37, формируемого портом С регистра 13. При работе в данном режиме, схема 9 сравнени осуществл ет сравнение адреса останова, записанного в портах А и В регистра 6 с текзпцим значением ЦА2. В случае совпадени этих адресов схема 9 вырабатывает сигнал равенства. Выход схемы 9 соединен со счетным входом вычитани счетчика 10, Когда значение счетчика 10 станет нулевым, т,е, программа пройдет заданное количество циклов , формируетс сигнал переноса, который поступает на второй вход элемента И 14, Выход элемента И 14 соединен с одним из четырех входов элемента ИЛИ 11, а выход элемента ИЛИ 11 св зан с D-входом триггера 20 готовности . Таким образом, на О входе триггера 20 по витс 1 при условии нулевого значени счетчика 10 повторений . Триггер 20 готовности формирует сигнал 52 Готовность по переднему фронту сигнала 44, идущего на С-вход. Процессор отлаживаемого устройства перейдет в состо ние ожидани . На D1A2 будет находитьс адрес останова на 1ЦД2, соответствующие этому адресу данные. Считывание шин мйк- роЭВМ производитс так же, как и в ,предьщущих режимах работы с остановом . Кроме того, работа устройства по шагам или с остановом организована с формирсгванием запроса прерывани в отладочную микроЭВМ, Дл этой цели введен триггер 15 прерьюаний. Установка триггера в активное состо ние производитс сигналом 52 Готовность , поступающим на. С-вход,Запрос прерьдаани снимаетс по сигналу 34, поступающего на Е-вход триггера 15, Работа по прерьгаани м необходима дл организации оптимального использовани программного обеспечени отладочной микроэвм. Помимо формировани запроса прерывани на выполнение программы управл ющей мик- роЭВМ устройство может формировать сигнал 51 Запрос прерывани , поступающий в отлаживаемую микроЭВМ, Дл этой цели служит триггер 19.На1 -вход поступает управл ющий сигнал 41, который устанавливаетс в состо ние 1 через соответствующий разр д порта С регистра 13. На С-вход триггераRepeating in counter 10, operating in the subtraction mode, is performed by setting the state 37 of the signal 37 generated by the port C of the register 13. When operating in this mode, the comparison circuit 9 compares the stop address recorded in the ports A and B of the register 6 with the value of CA2. If these addresses match, circuit 9 generates an equality signal. The output of the circuit 9 is connected to the counting input of the subtraction of the counter 10. When the value of the counter 10 becomes zero, t, e, the program will go through a specified number of cycles, a transfer signal is generated, which is fed to the second input of the element 14, the output of the element 14 is connected to one of four the inputs of the element OR 11, and the output of the element OR 11 is connected to the D input of the ready trigger 20. Thus, on the input of the trigger 20 in Wits 1 under the condition of zero value of the counter 10 repetitions. Readiness trigger 20 generates a Readiness signal on the rising edge of the signal 44, which goes to the C input. The processor of the device being debugged will transition to the idle state. On D1A2 there will be a stop address on 1CD2, the data corresponding to this address. Mycomputer tire readout is performed in the same way as in the previous shutdown modes. In addition, the operation of the device in steps or with a stop is organized with the formation of an interrupt request in the debugging microcomputer. For this purpose, a trigger 15 interrupts are introduced. Setting the trigger to the active state is performed by the 52 Ready signal arriving at. C-input, Preamble request is removed by a signal 34 arriving at the E-input of the trigger 15, the work on the interference is necessary for organizing the optimal use of the debugging microcomputer software. In addition to generating an interrupt request to execute a microcomputer control program, the device can generate an interrupt signal 51 Interrupt request arriving at the microcomputer being debugged. A trigger 19 serves for this purpose. The control signal 41 arrives at the input 1, which is set to 1 d port C of the register 13. At the C-input trigger
19 принимаетс тактова частота 47. Снимаетс запрос прерывани подачей на П-вход триггера 19 нулевого сигнала 41 по переднему фронту тактовой частоты 47, Применение триггера 19 в схеме формировани сигнала 51 Запроса прерьгоани необходимо дл того , чтобы асинхронный сигнал 41,сфор10 мированный в порте С регистра 13,был приведен к временной диаграмме работы отлаживаемой микроЭВМ. Дл этой же цели используетс триггер 18,который позвол ет синхронизировать сиг15 нал 50 - Сброс,19, a clock frequency of 47 is received. An interrupt request is removed by applying a zero signal to the P input 19 of a zero signal 41 on the leading edge of the clock frequency 47, Applying a trigger 19 in the formation circuit of the 51 Interrogation Signal 51 is necessary for the asynchronous signal 41 generated in Port C register 13, was given to the timing diagram of the debugged microcomputer. For the same purpose, a trigger 18 is used, which allows synchronization of the signal 50 50 - Reset,
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU874292002A SU1462327A1 (en) | 1987-07-30 | 1987-07-30 | Program debugging arrangement |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU874292002A SU1462327A1 (en) | 1987-07-30 | 1987-07-30 | Program debugging arrangement |
Publications (1)
Publication Number | Publication Date |
---|---|
SU1462327A1 true SU1462327A1 (en) | 1989-02-28 |
Family
ID=21322377
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
SU874292002A SU1462327A1 (en) | 1987-07-30 | 1987-07-30 | Program debugging arrangement |
Country Status (1)
Country | Link |
---|---|
SU (1) | SU1462327A1 (en) |
-
1987
- 1987-07-30 SU SU874292002A patent/SU1462327A1/en active
Non-Patent Citations (1)
Title |
---|
Авторское свидетельство СССР № 1223236, кл. G 06 F.11/28, 1986. Авторское свидетельство СССР № 1213482,, кл. Гт 06 F 11/28, 1986. * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4763296A (en) | Watchdog timer | |
CA1121068A (en) | Microcontroller for disk files | |
EP0528585B1 (en) | Data processing system with internal instruction cache | |
US3539996A (en) | Data processing machine function indicator | |
SU1541619A1 (en) | Device for shaping address | |
SU1462327A1 (en) | Program debugging arrangement | |
US4339795A (en) | Microcontroller for controlling byte transfers between two external interfaces | |
US5761482A (en) | Emulation apparatus | |
US4339797A (en) | Microcontroller with auxiliary register for duplicating storage of data in one memory location | |
EP0462622B1 (en) | Microprocessor capable of ensuring flexible recovery time for I/O device | |
SU1339569A1 (en) | Device for forming interruption signal in program debugging | |
SU1513455A1 (en) | Device for monitoring properness of execution of commands by microprocessor system | |
SU1322290A2 (en) | Device for debugging programs | |
SU1365082A1 (en) | Multiprogram self-monitoring control device | |
JP2536103B2 (en) | Data processing device | |
SU1517031A1 (en) | Processor to online memory interface | |
KR920003909B1 (en) | Debugging supporting circuit | |
SU1195364A1 (en) | Microprocessor | |
SU1070557A1 (en) | Firmware processor | |
SU1282139A1 (en) | Device for debugging software-hardware units | |
SU1697083A2 (en) | Data exchange device | |
SU1290334A1 (en) | Device for debugging programs | |
SU1280378A1 (en) | Processor | |
SU1397908A1 (en) | Microprogram control device | |
SU1476465A1 (en) | Microprogram control unit |