SU1247877A1 - Device for debugging microcomputers - Google Patents
Device for debugging microcomputers Download PDFInfo
- Publication number
- SU1247877A1 SU1247877A1 SU853844836A SU3844836A SU1247877A1 SU 1247877 A1 SU1247877 A1 SU 1247877A1 SU 853844836 A SU853844836 A SU 853844836A SU 3844836 A SU3844836 A SU 3844836A SU 1247877 A1 SU1247877 A1 SU 1247877A1
- Authority
- SU
- USSR - Soviet Union
- Prior art keywords
- input
- output
- block
- microcomputer
- inputs
- Prior art date
Links
- 230000015572 biosynthetic process Effects 0.000 claims 3
- 238000012360 testing method Methods 0.000 abstract description 4
- 238000010586 diagram Methods 0.000 description 4
- 125000004122 cyclic group Chemical group 0.000 description 2
- 238000012790 confirmation Methods 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
Landscapes
- Debugging And Monitoring (AREA)
Abstract
Изобретение относитс к области вычислительной техники и может быть использовано дл настройки, отладки и проверки работы специализированных микроэвм. Целью изобретени вл ет- ,с расширение функциональных возможностей за счет возможности производить останов по адресу в зависимости от типа выполненного httiKpo3BM цикла. Устройство содержит коммутатор управлени шиной данных, блок пр мого доступа к пам ти, магистральный усилитель , блок индикации, коммутатор, регистр ввода, блок готовности, два элемента И, два элемента ИЛИ, схему сравнени , регистр останова, группу элементов И, блок режимов адресации, посто нное запоминающее устройство, тумблерное запрминающее устройство. 2 З.П..Ф-ЛЫ, 5 ил., 1 табл. с S сл to 4ib vj 00 aThe invention relates to the field of computer technology and can be used to configure, debug, and test the operation of specialized microcomputers. The aim of the invention is to expand the functionality due to the ability to make a shutdown at the address depending on the type of httiKpo3BM cycle performed. The device contains a data bus control switch, a direct memory access unit, a trunk amplifier, a display unit, a switch, an input register, a readiness block, two AND elements, two OR elements, a comparison circuit, a stop register, a group of AND elements, and a block of addressing modes , read only memory, toggle switching device. 2 З.П.Ф-ЛЫ, 5 Il., 1 tab. from S to to 4ib vj 00 a
Description
Изобретение относитс к вычислительной технике и может быть использовано дл настройки отладки и проверки работы специализированных мик- роЭВМ,The invention relates to computing and can be used to set up debugging and test the performance of specialized microcomputers,
Цель изобретени - расширение функциональных возможностей за счет обесп ечени останова по адресу в зависимости от типа выполненного мик- роЭВМ цикла.The purpose of the invention is to expand the functionality by providing a shutdown at an address depending on the type of microcomputer performed.
На фиг. 1 представлена функциональна схема устройства дл отладки микроэвм, на фиг. 2 и 3 - схемы блок готовности и блока режимов адресации соответственно; на фиг. 4 - схема алгоритма работы устройства в различных режимах остановов; на фиг. 5 схема алгоритма работы устройства в шаговом режиме.FIG. 1 shows a functional diagram of a device for debugging a microcomputer, FIG. 2 and 3 are diagrams of a readiness block and a block of addressing modes, respectively; in fig. 4 is a diagram of the algorithm of operation of the device in various shutdown modes; in fig. 5 diagram of the algorithm of the device in step mode.
Устройство дл о тладки микроЭВМ (фиг. 1) содержит коммутатор управлени шиной данных 1, выход разрешени доступа к пам ти отлаживаемой микроэвм 2, блок пр мого доступа к пам ти 3, -вход зах-вата -отлаживаемой микроэвм 4, магистральньй усилитель 5, шину данных 6 отлаживаемой микро- ЭВМ, блок индикации 7, шину адреса 8 отлаживаемой микроЭВМ, шину управлени 9 отлаживаемой микроЭВМ, выход подтверждени захвата отлаживаемой микроэвм 10J выходы разрешени ввода t1 и вывода 12 отлаживаемой микроэвм, коммутатор 13, регистр ввода 14, блок готовности 15-, вход готовности отлаживаемой микро- ЭВМ 16, первый вход задани режима устройства 17, вход пуска устройства 18, первый элемент И 195 вход управлени остановом по адресу устройства 20, схему сравнени 21, регистр останова 22, группу элементов И 23, второй элемент И 24, блок режимов адресации 25, вход разрешени обращени к пам ти отлаживаемой мик- роЭВМ 26, ПЗУ 27, ТЗУ 28, первьй элемент ИЛИ 29, второй элемент ИЛИ 30, выход разрешени записи отлаживаемой микроэвм 31., выход синхронизации микропроцессора отлаживаемой микроэвм 32, второй вход задани режима устройства 33, выход тактового генератора отлаживаемой микро- ЭВМ 34, выход признака начала команды отлаживаемой микроЭВМ 35, блок сопр жени с внешними устройствами 36, шину сопр жени с внешними устройствами 37 отлаживаемой микроЭВМ,The microcomputer device (Fig. 1) contains a data bus control switch 1, a memory access enable output for the microcomputer 2 being debugged, a memory direct access access unit 3, a capture input-output microcomputer 4, a trunk amplifier 5, data bus 6 to be debugged microcomputer, display unit 7, address bus 8 to be debugged microcomputer, control bus 9 to be debugged microcomputer, output confirming capture of microprogram to be debugged microcomputer 10J output resolution inputs t1 and output 12 to be debugged microcomputer, switch 13, input register 14, readiness unit 15 -, entrance of debugging microcomputer 16, first input of device 17 mode setting, device 18 start input, first element AND 195 stop control input at device address 20, comparison circuit 21, stop register 22, AND 23 element group, second element 24, block addressing modes 25, memory access address for the debugging microcomputer 26, ROM 27, RAM 28, the first element OR 29, the second element OR 30, the output resolution of the record of the debugging microev 31, the synchronization output of the microprocessor being debugged by the microevm 32, the second task input device mode and 33, the output of the clock generator of the microcomputer being debugged 34, the output of the sign of the beginning of the command of the microcomputer being debugged 35, the interface unit with external devices 36, the interface bus with the external devices 37 of the microcomputer being debugged,
Блок готовности (фиг. 2) соде р- жит блок формировани единичного импульса 38, триггер готовности 39, первый элемент И 40, элемент ИЛИ 41,The readiness block (Fig. 2) contains the unit for forming a single impulse 38, the readiness trigger 39, the first element AND 40, the element OR 41,
второй элемент И 42, элемент НЕ 43, элемент ИЛИ-НЕ 44.the second element is AND 42, the element is NOT 43, the element is OR-NOT 44.
Блок режимов адресации (фиг. 3) содержит первый элемент И 45, второй элемент НЕ 46, третий элемент И 47, первый элемент ИЛИ 48, седьмой элемент И 49, второй элемент И 50, первый элемент НЕ 51, п тый элемент И 52, шестой элемент И 53, второй элемент ИЛИ 54, третий элемент НЕThe block of addressing modes (Fig. 3) contains the first element And 45, the second element NOT 46, the third element And 47, the first element OR 48, the seventh element And 49, the second element And 50, the first element NOT 51, the fifth element And 52, the sixth element And 53, the second element OR 54, the third element is NOT
55, восьмой элемент И 56, четвертьш элемент НЕ 57, четвертый элемент И 58, п тый элемент НЕ 59.55, the eighth element And 56, the quarter element is NOT 57, the fourth element is And 58, the fifth element is NOT 59.
В качес-тве ПЗУ могут быть использованы микросхемы ПЗУ, врем выборк и которых не превышает длительности такта работы микропроцессора в отлаживаемой микроэвм. Структурна ор-- ганизаци ТЗУ аналогична ПЗУ. Ячейки пам ти в ТЗУ представл ют собой тумблерные регистры.In the quality of ROM, ROM chips can be used, the sampling time and which does not exceed the duration of the microprocessor operation cycle in the microcomputer being debugged. The structural organization of the RAM is similar to the ROM. The memory cells in the RAM are toggle registers.
Устройство дл отладки микроЭВМ обеспечивает следующие аппаратные режимы отладки: останов по адресу . общий, останов по адресу при за-писиThe microcomputer debugging device provides the following hardware debug modes: shutdown by address. General, stop at the recording address
в ОЗУ микроэвм, останов по адресу при чтении из ОЗУ, останов по адресу при вводе информации из внешнего устройства, останов по адресу при выводе информации во внешнее устройin the microcomputer RAM, stop at the address when reading from the RAM, stop at the address when entering information from an external device, stop at the address when outputting information to an external device
хождени программы, щаговьи режим кекомандного прохождени программы, режим пр мого доступа к пам ти,индикацию состо ни микропроцессорной системы.program walk, smart command mode, direct memory access, microprocessor status indication.
5five
Останов по адресу общий происходит при включенном тумблере останова по адресу 20, при совпадении адресов , поступающих на схему сравнени 21 с шины адреса 8 и ТЗУ 28, и выключенных тумблерах на регистре останова 22. При этом сигнал высокого уровн со второго элемента И 24 выдаетс на второй элемент ИЛИ 30 и с его выхода поступает на вход первого элемента И 19, н-а который также поступают сигналы высокого уровн со схемы сравнени и от тумблера останова по адресу 20. С выхода первого элемента И 19 сигн ал поступает на блок готовности 15, после чего на выхсде готовности 16 по вл етс сиг- кал низкого уровн . Остановы по ад0Shutdown at the common address occurs when the shutdown toggle breaker at address 20 is turned on, if the addresses supplied to the comparison circuit 21 from the address bus 8 and the RAM 28 and the toggle switches on the stop register 22 match. In this case, the high level signal from the second element 24 is output to the second element OR 30 and from its output enters the input of the first element AND 19, n-but which also receives high-level signals from the comparison circuit and from the stop switch to address 20. From the output of the first element AND 19, the signal goes to the readiness unit 15, then on to hsde readiness 16 cal The signal is low level. Ad0 stops
pecy при записи и чтении из , вводе и выводе информации во внешнее устройство производитс при по влении соответствующего одноименного сигнала на одном из четырех управл ющих входов 31,2., 12,11 и включенном соответствующем режиму останова тумблера на-регистре останова 22. В этих режимах потенциал высокого уров н поступает на второй элемент ИЖ 30 с одного из элементов И группы элементов И 23.pecy, when writing and reading from, inputting and outputting information to an external device, occurs when a corresponding signal of the same name appears on one of four control inputs 31.2., 12.11 and the corresponding toggle-stop mode is turned on in the stop-register 22. In these In these modes, the high-level potential is supplied to the second element of the IL 30 from one of the elements And the group of elements And 23
Работа в шаговом режиме отладки программы становитс возможной при высоком потенциале на первом входе задани режима 17. Причем при высоко потенциале на втором входе задани режима 33 останов производитс в начале каждого цикла выполн емой команды по сигналам, поступающим с выхода 32 микроэвм, а при низком только в начале команды .по сигналам,поступающим с выхода признака начала команды 35 микроэвм. Переход к выполнению нового цикла или команды обеспечиваетс нажатием кнопки пуска 18.Work in a step-by-step debugging mode of the program becomes possible at high potential at the first input of mode setting 17. Moreover, at high potential at the second input of task 33, a stop is made at the beginning of each cycle of the command being executed using signals from the output of 32 micro computers, and at low only at the beginning of the command. According to the signals coming from the output of the sign of the beginning of the command, 35 micro computers. The transition to the execution of a new cycle or command is provided by pressing the start button 18.
В режиме пр мого доступа к пам ти можно производить запись, чтение информации из п ам ти микроэвм без учас ти микропрессора. Адрес чейки пам ти, куда записываетс или считываетс информаци , набираетс на тумблерных регистрах ТЗУ 28. Информаци вводитс с регистра ввода 14. Блок пр мого доступа к пам ти 3 выдает На шину запроса прерывани 4 сигнал высокого уровн , который, поступа также на коммутатор управлени шиной данных 1, разрешает вьщачу информации на шину данных б через магистральный усилитель 5с регистра ввоIn the mode of direct access to the memory, it is possible to record and read information from the first microcomputer without the participation of the micropressor. The address of the memory location where information is written or read is dialed in the toggle registers of the RAM 28. Information is entered from input register 14. The direct memory access unit 3 issues a high level signal to interrupt request 4 bus, which also goes to the control switch data bus 1, allows information on the data bus b through the main amplifier 5c register in
О О X XAbout About X X
110 111110 111
О ОOh oh
1 о1 o
1one
оabout
00
SS
00
о about
5five
5five
да 14. После получени сигнала подтверждени прерывани с выхода 10 микроэвм блок пр мого доступа к пам ти 3 управл ет записью, чтением информации из пам ти, вьщава на шину управлени 9 сигналы записи или чтени . При вьШоде информации из пам ти на регистр 14 производитс только, ее индикаци с помощью блока индикации 7. Блок индикации 7, кроме шины данных, по звол ет .индицировать . сигналы на адресной. 8 и управл ющей 9 шинах.Yes 14. After receiving the confirmation signal from the output of the 10 micro computers, the direct access memory unit 3 controls writing, reading information from the memory, and writing or reading signals to the control bus 9. When data is transferred from the memory to the register 14, it is produced only, its indication with the help of the display unit 7. The display unit 7, besides the data bus, allows to indicate. signals on the address. 8 and control 9 tires.
Кроме того, предусмотрены режимы отладки с помощью различных программ , записанных в ПЗУ 27 или набираемых на ТЗУ 28. При этом можно обращатьс как ко всему полю пам ти, адресуемого микропроцессором, так и только к отдельным его зонам. Блок режимов адресации 24 позвол ет обращатьс к пам ти микроэвм только к ТЗУ 38; к ПЗУ 27 и пам ти макроЭВМ к ПЗУ 27, ТЗУ 28 и пам ти микроЭВМ. Режимы, адресации задаютс тумблерами Т1 и Т2 в блоке адресации 25, котй- рьй работает в соответствии с таблицей .In addition, debugging modes are provided using various programs recorded in ROM 27 or dialed onto ROM 28. In this case, one can refer both to the entire memory field addressed by the microprocessor and only to its individual zones. The block of addressing modes 24 allows accessing the microcomputer memory only to the RAM 38; to ROM 27 and macro memory; to ROM 27; TZU 28 and microcomputer memory. The addressing modes are set by the toggle switches T1 and T2 in addressing unit 25, which operates according to the table.
1 - It- В таблице А « А. и А.. А. -1 - It- In table A “A. and A. .. A. -
6 i-d 2 t ;.р 1 6 i-d 2 t; .р 1
сигналы, формируемые соответственно первым 45 и вторым 50 элементами И в блоке режимов адресации 25. Как видно из этих выражений, ТЗУ 28 и ПЗУ 27 занимают начальную зону в адресуемом микроэвм norte пам ти, поэтому при одновременном об)ащении к ТЗУ 28, ПЗУ 27 и пам ти микроЭВМ обращение к чейкам с начальными адресами последней не производитс .the signals generated by the first 45 and second 50 elements, respectively. And in the block of addressing modes 25. As can be seen from these expressions, the RAM 28 and ROM 27 occupy the initial zone in the addressed microteute norte memory, therefore with simultaneous reading to ROM 28, ROM 27 and the memory of the microcomputer is not addressed to the cells with the start addresses of the latter.
о 1about 1
о 1about 1
о оoh oh
Пам ть микроэвмMemory microcomputer
Только ТЗУTZU only
ПЗУ и пам ть мик- роЭ.ВМROM and MicroMB memory
То жеAlso
ТЗУ, ПЗУ и пам ть микроэвмRAM, ROM and microcomputer memory
То жеAlso
В таблице X означает, что сигнал может принимать значение как О, так и 1.In Table X, it means that the signal can take the value of both O and 1.
Программные средства устройства дл отладки микроЭВМ обеспечивают следующие режимы отладки: ручной побайтный ввод информации в пам ть системы, тестовую проверку узлов микроэвм, циклическое выполнение команды , ввод - вывод информации с внешних устройств.The microcomputer debugging software provides the following debugging modes: manual byte entry of information into the system memory, testing of microcomputer nodes, cyclic command execution, input - output of information from external devices.
Ручной побайтной ввод информации может производитьс либо с регистра ввода 14, либо с ТЗУ 28, при этом программа ввода набираетс на ТЗУ 28, либо используетс та, котора имеетс в ПЗУ 27. В этом режиме блок режимов адресации 25 разрешает о бра- щение к ТЗУ 28, ПЗУ 27 и пам ть мик- роЭВМ. Выбор регистра ввода вывода 14 производит коммутатор 13. Сиг-налы разрешени обращени с блока адресации 25 поступают также на элемент ИЛИ 29, с его выхода один из них выдаетс в коммутатор управлени шиной данных 1, котора управл ет подключением к шине данных 6 ТЗУ 29 или ПЗУ 27 или регистра ввода 14.Manual byte entry of information can be made either from input register 14, or from RAM 28, the input program is typed in ROM 28, or the one used in ROM 27. In this mode, the block of addressing modes 25 allows access to RAM 28, ROM 27 and microcomputer memory. The selection of I / O register 14 produces a switch 13. Signals for allowing access from addressing unit 25 also go to element OR 29, from its output one of them is output to data bus switch 1, which controls connection to data bus 6 of RAM 29 or ROM 27 or input register 14.
Тестова проверка узлов производитс с помощью специализированных программ, написанных в соответствии со спецификой тестируемых узлов мик- роЭВМ. и записанных в ПЗУ 27.The test check of the nodes is performed using specialized programs written in accordance with the specifics of the tested microcomputer nodes. and recorded in ROM 27.
Циклическое выполнение какой-либо команды микропроцессора производитс , когда блок режимов адресации 25 разрешает обращение только к ТЗУ 28. При этом на всех тумблерных регистрах ТЗУ 28 должен быть набран код провер емой команды.Cyclic execution of any command of the microprocessor is performed when the block of addressing modes 25 allows accessing only the RAM 25. In this case, the code of the command being checked must be entered on all toggle registers of the RAM 28.
Ввод - вывод информации с внешних устройств производитс с помощью блока сопр жени с внешними устройствами 36 через шину сопр жени с внешними устройствами 37. Обращение к внешним устройствам происходит при по влении сигналов на 11 или 12 выходах микроэвм и адреса внешнего устройства на шине адреса 8. При этом коммутатор 13 выдает на схему сопр жени с внешними устройствами 36 сигнал разрешени обращени к соответ- ствукщему внешнему устройству, В качестве внешних устройств могут выступать перфоратор и фотосчитывательInput - output of information from external devices is carried out using the interface unit with external devices 36 via the interface bus with external devices 37. External devices are accessed when signals appear at 11 or 12 micro-computers and the address of an external device on the address bus 8. In this case, the switch 13 outputs to the interface with external devices 36 a permission signal for accessing the corresponding external device. As an external device, a perforator and a photo reader can act.
Алгоритм работы устройства в различных режимах остановов приведен на фиг. 4. Здесь используютс следукйдиеThe algorithm of operation of the device in various shutdown modes is shown in FIG. 4. Sled is used here.
5five
обозначени : (ША) - содержимое шины адреса 8; (А(ТЗУ) - содержимое регистров ТЗУ 28, на которых набираетс адрес останова; Т. ост.адр. - тумблер останова по адресу (вход управ- -лени останова по адресу 20), (Т.Рг. ост.) - содержимое тумблерного ре-- гистра останова 22, ДО, Д1, Д2, ДЗ - Q нулевой, первый, второй и третий раз- р ды тумблерного регистра останова 22 .designations: (ША) - the contents of the address bus 8; (A (OZU) - the contents of the registers of the OZU 28, where the stop address is set; T. stop. - stop switch to the address (control input - stop address at 20), (T.Rg. Stop) - contents toggle register - stop register 22, DO, D1, D2, DZ - Q zero, first, second and third bits of the toggle stop register 22.
Алгоритм работы .устройства в шаговом режиме приведен на фиг. 5. Здесь символ & обозначает конъюнкцию сигналов на соответствующих выходах устройства (указаны в скобках).The operation algorithm of the device in the step mode is shown in FIG. 5. Here, the & denotes the conjunction of signals at the corresponding outputs of the device (indicated in parentheses).
Claims (3)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU853844836A SU1247877A1 (en) | 1985-01-17 | 1985-01-17 | Device for debugging microcomputers |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU853844836A SU1247877A1 (en) | 1985-01-17 | 1985-01-17 | Device for debugging microcomputers |
Publications (1)
Publication Number | Publication Date |
---|---|
SU1247877A1 true SU1247877A1 (en) | 1986-07-30 |
Family
ID=21158960
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
SU853844836A SU1247877A1 (en) | 1985-01-17 | 1985-01-17 | Device for debugging microcomputers |
Country Status (1)
Country | Link |
---|---|
SU (1) | SU1247877A1 (en) |
-
1985
- 1985-01-17 SU SU853844836A patent/SU1247877A1/en active
Non-Patent Citations (1)
Title |
---|
Патент US № 4308581, кл. G 06 F 11/00, опублик. 1981. Зеленко Г., Панов В., Попов С. Отладочный модуль микроЭВМ. - Радио, 1983, №. 4. * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
SU1247877A1 (en) | Device for debugging microcomputers | |
JPS6142186Y2 (en) | ||
SU1583744A1 (en) | Apparatus for debugging programs | |
SU1297118A1 (en) | Device for writing and checking programmable read-only memory | |
SU1490676A1 (en) | Microprogram control unit | |
SU1218387A1 (en) | Device for checking logic units | |
SU1608675A1 (en) | Device for monitoring running of programs in computer | |
SU890442A1 (en) | Device for testing rapid-access storage units | |
SU1608673A1 (en) | Device for debugging programs | |
SU1339569A1 (en) | Device for forming interruption signal in program debugging | |
SU1446624A1 (en) | Arrangement for debugging multiprocessor system | |
SU1539782A2 (en) | Device for test checks of digital units | |
SU1501065A1 (en) | Device for monitoring program run | |
SU1564626A1 (en) | Device for checking troubles | |
RU1803916C (en) | Device for mating with object to be monitored | |
SU1312591A1 (en) | Interface for linking electronic computer with peripheral unit | |
SU1322332A1 (en) | Device for tracing around nodes of net model | |
SU1168952A1 (en) | Device for monitoring digital equipment with block structure | |
SU1442990A1 (en) | Memory addressing device | |
SU1527639A1 (en) | Device for interfacing peripheral units and computer main line | |
SU834704A1 (en) | Storage control device | |
SU1471195A1 (en) | Program debugger | |
SU1298758A2 (en) | Interface for linking processor with arithmetic expander | |
SU1269139A1 (en) | Device for checking digital units | |
SU1124275A1 (en) | Microprocessor communication device |