SU1453408A1 - Apparatus for debugging a microprocessor system - Google Patents
Apparatus for debugging a microprocessor system Download PDFInfo
- Publication number
- SU1453408A1 SU1453408A1 SU874181364A SU4181364A SU1453408A1 SU 1453408 A1 SU1453408 A1 SU 1453408A1 SU 874181364 A SU874181364 A SU 874181364A SU 4181364 A SU4181364 A SU 4181364A SU 1453408 A1 SU1453408 A1 SU 1453408A1
- Authority
- SU
- USSR - Soviet Union
- Prior art keywords
- input
- output
- block
- inputs
- elements
- Prior art date
Links
Abstract
Изобретение относитс к технике автоматизации разработки микропроц ес- сорных систем и предназначено дл использовани во внутрисхемных эмул торах . Целью изобретени вл етс упрощение устройства и св занного с ним эмул тора. Устройство содержит дешифратор обращений 9, регистры 8 и 20, мультиплексор 12, блок 13 сравнени кодов, элементы ЗАПРЕТ 23 и ИЛИ 21, , блок 18 регистровой пам ти, формирователь 22 кода рестарта, три группы элементов НЕ и блок 7 определени состо ний. 1 з.п. ф-лы, 5 Ш1. § (Л сThe invention relates to an automation technology for developing microprocessor systems and is intended for use in in-circuit emulators. The aim of the invention is to simplify the device and the associated emulator. The device contains a call decoder 9, registers 8 and 20, multiplexer 12, block 13 of code comparison, BAN elements 23 and OR 21, register register block 18, restart code generator 22, three groups of NOT elements and state definition block 7. 1 hp F-ly, 5 Sh1. § (L s
Description
10ten
1453408 1453408
Изобретение относитс к технике автоматизации разработки микропроцессорных систем и предназначено длч использовани во внутрисхемныхэмул торах , замещающих в отхшживаемой системе микропроцессор неконвейерной архитектуры с открытой системой шин.This invention relates to a microprocessor development automation technology and is intended for use in in-circuit emulators replacing a microprocessor-based non-conveyor architecture with an open bus system in an exhaust system.
Цель изобретени - упрощение устройства .The purpose of the invention is to simplify the device.
На фиг, 1 представлена функциональна схема устройства дл отладки микропроцессорной системы; на фиг.2 - функциональна схема блока определени состо ний на фиг. 3 - функциональна схема блока сравнени кодов; на фиг, 4 - функциональна схема блока регистровой пам тиJ на фиг. 5 - схема алгоритма работы устройства.Fig. 1 shows a functional diagram of a device for debugging a microprocessor system; 2 is a functional diagram of the state determination unit in FIG. 3 is a functional block comparison code diagram; FIG. 4 is a functional block diagram of the register memory of FIG. 5 - diagram of the algorithm of the device.
На схеме устройства (фиг. 1) обоз- 2о начены: вход 1 инициализации устройства , лини 2 чтени ввода-вывода управл ющей вычислительной системы (УВС), треть лини 3 запрета УВС,In the diagram of the device (Fig. 1), the following two are shown: input 1, initialization of the device, line 2 of the I / O reading of the control computer system (CID), third line 3 of the BAC ban,
лини 4 записи ввода-вьшода УВС, ад- 25 ищем устройстве (ПЗУ) ЭВм ресна шина 5 УВС, лини 6 чтени па-рии1.1ве JBM.Line 4 records the input of the UVS, ad- 25 are looking for a device (ROM) EVM resna bus 5 UVS, line 6 of reading par-rii1.1ve JBM.
м ти УВС, блок 7 опредех1ени состо - первьй регистр 8, дещифратор ,9mi UVS, block 7 definitions of the state - the first register 8, decyfrator, 9
5five
Блок сравнени кодов ( держит ключ 52, схему 53 кодов, элемент ИЛИ 54, элCode Comparison Unit (holds key 52, 53 code scheme, element OR 54, el
Блок регистровой пам т содержит регистры 56.1 и ти нижних границ зон заем 57.1 и 57.2 пам ти верхни заема, сумматоры 58.1, 58 59.2, элементы ИЛИ 60.1 и элементы И 61.1 и 61.2, эл 62,The register memory block contains the registers 56.1 and the lower boundaries of the loan zones 57.1 and 57.2 of the upper loan memory, adders 58.1, 58 59.2, elements OR 60.1, and elements 61.1 and 61.2, electric 62,
В качестве управл ющей льной системы используетс As a control system is used
Функциональное назначен турных компонент следующее инициализации устройства п на лини инициализации ЭВМ навливает ЭВМ в состо ние, тором ее системный монитор начинает свою работу , т.е. инициализации процессор ЭВ щаетс к началу програ мы записанной в посто нном заThe functional assigned components of the next device initialization on the computer initialization line pour the computer into a state, the system monitor starts its operation with a torus, i.e. initialization processor is delivered to the beginning of the program written in constant
3535
4040
НИИ,Research institute
обращений, шина 10 данньзх отлаживаемой системы,, адресна шина 11отлаживаемой системы, мультиплексор 12, блок 13 сравнен и кодов, лини 14 записи пам ти УВС, первый выход 15 бло- -. ка определени состо ний, второй выход 16 блока определени состо ний, лини 17 признака первого цикла ко- i манды yBCs блок 18 регистровой пам - THj второй выход 19 устройства, второй регистр 20, элемент ИЛИ 21, формирователь 22 кода .рестарта, элемент ЗАПРЕТ 23, перва группа 24 элементов НЕ, первый 25, второй 26 и третиз 27 элементы НЕ первой группы, треть группа 28 элементов НЕ,, первьй 29 и второй 30 элементы НЕ третьей группы, втора группа 31 элементов НЕ, первый 32 и второй 33 элементы НЕ второй группы, перва лини 34 запрета УВС, втора лини 35 запрета УВС, первьй выход 36 устройства, первьй .37 и второй 38 управл кщие входы блока состо ний, шина 39 данных УВС.calls, bus 10 of the system being debugged ,, address bus 11 of the system being debugged, multiplexer 12, block 13 compared and codes, line 14 of the HCS memory record, first output 15 of the block. state determination, the second output 16 of the state definition unit, the line 17 of the sign of the first cycle of the command yBCs block 18 of the register memory - THj the second output 19 of the device, the second register 20, the OR element 21, the shaper 22 of the restart code, the BAN element 23, the first group of 24 elements is NOT, the first is 25, the second is 26 and tertiary is 27 elements are NOT the first group, the third is group 28 elements are NOT ,, first 29 and the second 30 elements are NOT the third group, the second group is 31 elements NOT, the first is 32 and the second is 33 elements Not the second group, the first line 34 of the ban on hydrocarbons, the second line 35 of the ban on hydrocarbons, vy output device 36, the first and second 38 .37 kschie control unit inputs conditions, the tire 39 UCS data.
Блок определени состо ний (фиг.2) содержит первый 40, второй 41 и тий 42 элементы И, первый 43 и второй 44 дешифраторы переходов, первый 45, второй 46, третий 47 и чет- вертьй 48 элементы ИЛИ,, первьй 49, второй-50 и третий 51 триггеры.The state determination unit (Fig. 2) contains the first 40, the second 41 and the Tium 42 And elements, the first 43 and the second 44 transition decoders, the first 45, the second 46, the third 47 and the fourth 48 elements OR, the first 49, the second -50 and third 51 triggers.
Лини 2 чтени устройст вывода (УВВ) активна, если адресов установлен стабиль УВВ, который читаетс или татьс процессором ЭВМ.Line 2 reading output device (UVV) is active, if the address is set to stabilize UVV, which is read or computed by the computer processor.
Лини 3 залрета УВЗ акт требуетс запретить обраще принадлежащим ЭВМ, поэтому и второй 20 регистры, блок вл ютс УВВ, принадлежащи как выбираемые ее мониторомThe line 3 is blocked by the UVZ act and it is required to prohibit the circulation belonging to the computer, therefore the second 20 registers, block, are UVV, belonging as chosen by its monitor
Лини 4 записи УВВ актив на шине 5 адресов установле бильньй адрес УВВ, в которо письюает или будет записьша мацию.Line 4 of the UVV asset record on the 5 address bus sets the address of the UVV to which the entry is written or to be written.
Адресна шина 5 служит д чи адреса запоминакнцего уст ( ЗУ) иди УВВ по магистрали Д2 блокам, в том числе к эмул устройству управлени эмул Address bus 5 serves as the address of the memorized mouth (RAM) or air-blast on the D2 highway, including to the emulsion control unit emul
Лини 6 чтени активна, шине 5 адресов находитс ст адрес чейки ЗУ, котора чи или будет читатьс процессоThe read line 6 is active, the 5 address bus is located the address of the memory cell, which will be read or
Блок 7 определени состо л етс основной структурной той устройства, дискриминир запоминающе.й состо ни ЭВМ: ОБМЕН, РАБОТА.The determination unit 7 consists of the main structural structure of the device that discriminates the memorized state of the computer: EXCHANGE, OPERATION.
Первьй регистр 8 запомин раммируемые в нем монитором прерывани отладки, наприме са точек разрыва, коды комаThe first register 8 memorizes in it the debug interrupt monitor, for example break points, coma codes
5050
5555
10ten
о about
5 ищем устройстве (ПЗУ) ЭВм рии1.1ве JBM.5 We are looking for a device (ROM) EVM RI1.1ve JBM.
5five
Блок сравнени кодов (фиг. 3) содержит ключ 52, схему 53 совпадени кодов, элемент ИЛИ 54, элемент И 55.The code comparison block (Fig. 3) contains a key 52, a code matching circuit 53, an OR element 54, an AND 55 element.
Блок регистровой пам ти (фиг. 4) содержит регистры 56.1 и 56.2 пам - ти нижних границ зон заема, регистры 57.1 и 57.2 пам ти верхних границ зон заема, сумматоры 58.1, 58.2, 59.1 и 59.2, элементы ИЛИ 60.1 и 60.2, элементы И 61.1 и 61.2, элемент ИЛИ 62,The register memory block (Fig. 4) contains memory registers 56.1 and 56.2 of the lower boundaries of the loan zones, registers 57.1 and 57.2 of the memory of the upper boundaries of the loan zones, adders 58.1, 58.2, 59.1 and 59.2, the elements OR 60.1 and 60.2, the AND elements 61.1 and 61.2, element OR 62,
В качестве управл ющей вычислительной системы используетс ЭВМ.A computer is used as a control computer system.
Функциональное назначение структурных компонент следующее. К входу инициализации устройства подключена лини инициализации ЭВМ, она устанавливает ЭВМ в состо ние, при котором ее системный монитор-отладчик начинает свою работу , т.е. после инициализации процессор ЭВМ обращаетс к началу програ мы монитора, записанной в посто нном запомина25 ищем устройстве (ПЗУ) ЭВм рии1.1ве JBM.The functional purpose of the structural components is the following. The device initialization line is connected to the device initialization input; it sets the computer to the state when its system monitor debugger starts its operation, i.e. After initialization, the processor of the computer refers to the beginning of the monitor program recorded in the permanent memory 25 looking for a computer device (ROM) 1.1Me JBM.
3535
4040
- . -.
Лини 2 чтени устройства ввода- вывода (УВВ) активна, если на шине У адресов установлен стабильньй адрес УВВ, который читаетс или будет читатьс процессором ЭВМ.Line 2 of the I / O device readout is active if the addresses of the addresses have a stable UVV address that is read or will be read by the computer processor.
Лини 3 залрета УВЗ активна, если требуетс запретить обращение к УВВ, принадлежащим ЭВМ, поэтому первый 8 и второй 20 регистры, блоки 13 и 18 вл ютс УВВ, принадлежащими ЭВМ, как выбираемые ее монитором.The grenade line 3 is UVZ active if it is required to prohibit access to computer-controlled UVV, so the first 8 and second 20 registers, blocks 13 and 18 are computer-owned UVV, as selected by its monitor.
Лини 4 записи УВВ активна, если на шине 5 адресов установлен стабильньй адрес УВВ, в которое ЭВМ за- письюает или будет записьшать информацию .Line 4 of the UVV record is active if the stable address of the UVV is set on the 5 address bus, in which the computer records or will write information.
Адресна шина 5 служит дл передачи адреса запоминакнцего устройства (ЗУ) иди УВВ по магистрали ЭВМ к ее Д2 блокам, в том числе к эмул тору и к устройству управлени эмул торе.Address bus 5 serves to transfer the address of the memorizing device (memory) or the air-blast device along the main line of the computer to its D2 blocks, including the emulator and to the control device of the emulator.
Лини 6 чтени активна, если на шине 5 адресов находитс стабильный адрес чейки ЗУ, котора читаетс или будет читатьс процессором ЭВМ.The read line 6 is active if on the 5 address bus there is a stable address of the memory cell that is read or will be read by the computer processor.
Блок 7 определени состо ний вл етс основной структурной компонентой устройства, дискриминирующей и за- запоминающе.й состо ни ЭВМ: МОНИТОР ОБМЕН, РАБОТА.The state determination unit 7 is the main structural component of the device discriminating and storing the computer state: MONITOR EXCHANGE, OPERATION.
Первьй регистр 8 запоминает программируемые в нем монитором услови прерывани отладки, например, адреса точек разрыва, коды команд, до вы50The first register 8 memorizes the debugging interrupt conditions programmed in it by the monitor, for example, addresses of break points, command codes, up to 50
5555
полнени которых необходимо узнать состо ние отлаживаемой программы или системы и т.д. Разр дность, первого регистра 8 может превьшать разр дность шины данных ЭШ, поэтому он может программироватьс в несколько приемов.the completeness of which you need to know the state of the program or system being debugged, etc. The width of the first register 8 can exceed the width of the ES data bus, so it can be programmed in several stages.
Шина 10 данных отлаживаемой систетрактрватьс процессором ЭВМ как первый байт команды.Bus 10 of the data being debugged by the computer processor as the first byte of the command.
Блок 18 регистровой пам ти заломи- нает области адресного пространства ЗУ, которые будут зан ты отлаживаемой системой. Выход блока 18 может в течение цикла ЭВМ находитьс в состо нии логической единицы при условии,Register memory block 18 enters the memory addressable areas that will be occupied by the system being debugged. The output of block 18 may, during a computer cycle, be in the state of a logical unit, provided
мы вл етс шиной данных эмулируемого ю текущий адрес ЗУ или УЕВ не при- микропроцессора либо подключена к надлежит ЭВМ и на п тый разрешающий . ней через буфер.вход блока 18 поступает логическа We are the data bus of the emulated current address of the memory or the UEV without a microprocessor, or it is connected to the appropriate computer and is resolving to the fifth. it through the buffer. the input of block 18 enters the logical
Шина 11 адресов отлаживаемой системы вл етс шиной адресов эмулируемого микропроцессора либо подключена к ней через буфер.Bus 11 of the addresses of the system being debugged is a bus of addresses of the emulated microprocessor or is connected to it via a buffer.
Шины 1О и 11, если отлаживаема система физически отсутствует, могут быть подключены к шинам 39 и 5 ЭВМ. При этом работоспособность уст- ройства полностью сохран етс .Tires 1O and 11, if the system being debugged is physically absent, can be connected to tires 39 and 5 computers. In this case, the operability of the device is fully preserved.
Мультиплексор 12 подключает к второму информационному входу блока 13 либо шину 10 данных, либо шину 11 адресов отлаживаемой системы.The multiplexer 12 connects to the second information input of the block 13 or the data bus 10, or the bus 11 addresses of the system being debugged.
Блок 13 сравнивает коды на втором информационном входе и части первого информационного входа; друга часть первого информационного входа определ ет типы циклов ЭВМ, в которых может произойти совпадение кодов. Если в текущем цикле заданного типа обнаружено совпадение кодов, то в te- чение такого цикла на выход блока 13 поступает логическа единица. Например , если задана точка разрыва, то, если адрес точки разрыва установлен на шине 5 адресов, причем адрес будет стробироватьс в этом случае конъюнкцией сигналов чтени ЗУ и признака первого цикла команды, то блок 13 сработает.Unit 13 compares the codes on the second information input and the part of the first information input; the other part of the first information input determines the types of computer cycles in which the codes may coincide. If in the current cycle of a given type a coincidence of codes is detected, then during such a cycle, the output of block 13 receives a logical unit. For example, if a break point is set, then if the address of the break point is set on the address bus 5, the address will be gated in this case by combining the read memory signals and the sign of the first command cycle, then block 13 will work.
Лини 14 записи ЗУ активна, если на шине 5 адресов находитс стабильный адрес чейки ЗУ, котора читаетс или будет читатьс процессором.The memory write line 14 is active if there is a stable memory cell address on the 5 address bus that is read or will be read by the processor.
Первый выход 15 блока определени состо ний активен, если монитору доступна чейка ЗУ, маскируема либо ресурсами монитора, либо ресурсами отлаживаемой системы.The first output 15 of the state definition block is active if the memory cell is available to the monitor, masked either by monitor resources or resources of the system being debugged.
Второй выход 16 блока определени состо ний активен, если ЭВМ выполн ет программу пользовател .The second output 16 of the state definition unit is active if the computer is running a user program.
Лини 17 признака первого цикла команды активна, если на шине 5 адресов находитс стабильный адрес г чейки ЗУ, содержимое которой будетThe line 17 of the sign of the first cycle of the command is active if on the bus of 5 addresses there is a stable address g of the memory cell, the contents of which will be
5five
5 five
0 0
00
5five
00
5five
5five
единица.unit.
Выход 19 устройства активен, если выполн етс программа пользовател . К выходу 19 устройства может быть подключен таймер дл пр мых замеров быстродействи программ поль- зовател . При этом прерывани отлад- ки не будут вли ть на результаты за меров, так как при прерьшании отлад- ки логическа единица с выхода 19 устройства будет автоматически сниматьс . Кроме того, выход 19 устрой- ства может использоватьс дл управН лени трассирукщим ЗУ, вход щим в , состав эмул тора или ЭВМ и запоминающим предысторию отладки до ее прерывани с помощью блсука 13.Device output 19 is active if a user program is being executed. A timer can be connected to the output 19 of the device to directly measure the speed of the user programs. In this case, debugging interrupts will not affect the results of the measures, since if you terminate the debugging, the logical unit from the output 19 of the device will be automatically removed. In addition, the output 19 of the device can be used to control the tracer of the charger, which is included in the emulator or computer, and store the debugging history before it is interrupted using the BLSUK 13.
Второй регистр 20 вл етс регистром управлени устройством со сторо-j ны ЭШ. В зависимости от состо ни первого выхода второго регистра 20 к второму информационному входу бло- ка 13 подключаетс либо шина 10 данных , либо шина 11 адресов отлаживаег мой системы. Логической единицей, поступающей с второго выхода регистра 20, блок 7 может быть переведен в состо ние ОБМЕН с отключением ресур-| сов монитора. Логической единицей на третьем выходе второго регистра 20 программно разрешаетс через элемент ИЛИ 21 срабатывание блока 18, если это не разрешено по другим двум входам элемента ИЛИ 21 от выходов 15 и 16 блока 7.The second register 20 is an ES control device register. Depending on the state of the first output of the second register 20, either the data bus 10 or the address bus 11 of the debugging system is connected to the second information input of the block 13. By a logical unit coming from the second output of register 20, block 7 can be transferred to the EXCHANGE state with the resource disabled | sov monitor. The logical unit at the third output of the second register 20 is resolved by software through the OR 21 element, triggering the block 18, if this is not permitted via the other two inputs of the OR 21 element from the outputs 15 and 16 of block 7.
Элемент PfflH 21 собирает сигналы, разрешающие по п тому входу разрешени срабатывание блока 18 регистровой пам ти.The element PfflH 21 collects the signals allowing the register memory 18 to be activated by the fifth resolution input.
Формиров.атель 22 кода рестарта i на шину 39 данных один из кодов рестарта, зарезервированных в ЭВМ дл обработки прерываний отладки программы, если на вход формировател 22 поступает логическа единица.The shaper 22 of the restart code i on the data bus 39 is one of the restart codes reserved in the computer for processing program debugging interrupts if the logical unit enters the input of the shaper 22.
10ten
1453408 1453408
Элемент ЗАПРЕТ 23 запрещает активность первого выхода 36 устройства . при прерьшании отладки независимо от адреса, при котором происходит прерывание .The element BAN 23 prohibits the activity of the first output 36 of the device. abort debugging regardless of the address at which the interrupt occurs.
Перва группа 24 элементов НЕ 25- 27 запрещает ресурсы монитора, если хот бы на одном из входов инверторов имеетс логическа единица. Последнее возможно если выполн етс челночное обращение по адресу, маскируемому ресурсами монитора, при котором логическа единица поступает с первого выхода 15 блока 7 на вход элемента НЕ 25, или выполн етс программа пользовател , при котора логическа единица поступает с выхода 16 блока 7 на вход элемент НЕ 26, или генерируетс код рестарта фор- мирователем 22, цри котором логвдес- ка единица поступает с выхода блока 13 на вход элемента НЕ 27.The first group of 24 elements, HE 25-27, inhibits the resources of the monitor, if at least one of the inputs of the inverters contains a logical unit. The latter is possible if a shuttle call is performed at an address masked by monitor resources, at which the logical unit comes from the first output 15 of block 7 to the input of the NOT element 25, or a user program is executed, at which the logical unit comes from the output 16 of block 7 to the input of the element NOT 26, or a restart code is generated by the formatter 22, the log of which is the log of the unit coming from the output of block 13 to the input of the element HE 27.
Треть группа 28 элементов НЕ заThird group of 28 elements NOT for
ппрш рт VRK -эта/; wiuRa и и КОД рестартаpprsh rt VRK -this /; wiuRa and and rest code
прещает УВВ ЭШ, если хот бы на од- 25 емый формирователем 22prevents UVV ESh, if at least one by shaper 22
ном из ВХОЛОВ чгтрмоитг.п Ни- OQ „ ол i woai слей д .Mr. from VHOLOV chgtrmoitg.p Ni-OQ „ol i woai slay d.
Первый выход 36 уст дитс в состо нии логи цы, если в текущем цик g процессор обращаетс п надлежащему отлаживаемThe first output 36 is terminated in a state of logic, if in the current cycle g the processor is turning on the proper debugging
На первый вход 37 б чим фрагментом монитор етс логическа единиц ет активность выхода 15 то ний и отключение рес тора (его ПЗУ и рабочегAt the first input 37, the logical unit of the activity of the output of 15 current units and the disconnection of the receiver (its ROM and
На второй вход 38 бл ний при обнаружении бло 15 ВИЯ прерывани отладки гическа единица, возвр 7 в исходное состо ние.At the second input, 38 blanks, upon detecting a block of the VIY, a debugging interrupt unit, returning 7 to the initial state.
По шине 39 данных из стве поступают данные, 20 дл программировани мо держимого первого 8 и в гистров, блока 18. По ш ЭВМ считывает из устрой блока 13 и код рестартаThe data bus comes from the data bus 39, 20 for programming the power of the first 8 and into the gistra, block 18. On the w computer reads from the device of the block 13 and the restart code
ном из входов элементов НЕ 29 и 30 имеетс логическа единица. Последнее возможно, если выполн етс челночное обращение по адресу, маскируемому ресурсами монитора, при котором логическа единица поступает с первого выхода 15 блока 7 на вход элемента НЕ 30, либо выполн етс программа. пользовател . Логическа единица вThere is a logical one among the inputs of the elements HE 29 and 30. The latter is possible if a shuttle call is performed at an address masked by monitor resources, at which the logical unit comes from the first output 15 of block 7 to the input of the element HE 30, or the program is executed. user Logical unit in
rzr/-n :/«vs°- 3. О -;;«. Гзтrzr / -n: / "vs ° - 3. O - ;;". Gzt
16 блока 7 на вход элемента НЕ 29.16 block 7 to the input element NOT 29.
Втора группа 31 элементов НЕ 32 и 33 запрещает ОЗУ ЭШ, если хот бы на одном из входов элементов НЕ 32 и 33 имеетс логическа единица. Это возможно, если блок пам ти трактует текущий адрес ЗУ, как не принадлежащий Эт, но код рестарта формирователем 22 не генерируетс , при этом от вькода элемента ЗАПРЕТ 23 логическа единица поступает на вход элемента НЕ 33, либо генерируетс iформирователем 22 код рестарта, при этом логическа единица поступает с в ыхода блока 13 на вход элемента НЕ 32.The second group of 31 elements, HE 32 and 33, prohibits the RAM of the EL, if at least one of the inputs of the elements 32 and 33 has a logical one. This is possible if the memory block treats the current memory address as not belonging to ET, but the restart code is not generated by shaper 22, and the logical unit from the code of the BAN 23 is input to the input of the HE element 33, or the restart code is generated by the 22 shader code, and a logical unit arrives from the output of block 13 to the input element HE 32.
Лини 34 запрещает ресурсы монито-; ра в текущем цикле работы процессора ЭВМ, если на линии 34 имеетс активный низкий потенциал.Line 34 disables monitor resources; Pa in the current cycle of the computer processor if there is an active low potential on line 34.
Лини 35 запрещает ОЗУ ЭВМ в текущем цикле работы процессора ЭВМ, если на линии 35 имеетс актг-шный низкий потенциал.Line 35 prohibits computer RAM in the current cycle of the computer processor if line 35 has an actual low potential.
Элемент И 40 в цикле разрешает дешифрацию де 43 перехода состо ни а 5 ЭШ, если предварител 30 первьй триггер 49.The AND 40 element in the loop permits decoding of a de 43 state transition, a 5 ESH, if the preliminary 30 first trigger 49.
Элемент И 41 в цикле разрешает дешифрацию деш перехода состо ни адрес ЭВМ, если предварительноElement And 41 in the loop permits decoding the desh transition state of the address of the computer, if previously
Элемент И 42 разрешае первого триггера 49 и сб го триггера 50, если пре но установлен второй триElement And 42 resolves the first trigger 49 and the first trigger 50, if the second three
40 Первый дешифратор 43 батывает, если процессор ледний байт адреса перех монитора. Адрес перехода тельно генерируетс мони40 The first decoder 43 bats, if the processor is an ice byte of the address of the monitor peer. The address of the transition is generated moni
45 ЭВМ по фиксированному ад45 computers at a fixed hell
Второй дешифратор 44 срабатьшает, если процес дит к вьшолнению програм тел , прочт последний б 50 регистра программный сч рабочего ЗУ монитора.The second decoder 44 will work if the process is to execute the programs, read the last b of the 50 registers of the operating memory of the monitor's memory.
Элемент ИЖ 45 собира с выхода первого дешифра gg реходов (первьй сигнал) инициализации ЭВМ (второй сброса первого триггера The element IL 45 is assembled from the output of the first decryption of the gg transitions (the first signal) of the computer initialization (the second reset of the first trigger
Элемент ИЛИ 46 собирае от линии 1 инициализации Element OR 46 is collected from initialization line 1
00
wiuRa и и КОД рестартаwiuRa and and rest code
5 емый формирователем 225 by shaper 22
Первый выход 36 устройства находитс в состо нии логической единицы , если в текущем цикле работы ЭВМ g процессор обращаетс по адресу, принадлежащему отлаживаемой системе.The first device output 36 is in the state of a logical unit if in the current cycle of operation of the computer g the processor is accessing the address belonging to the system being debugged.
На первый вход 37 блока 7 рабочим фрагментом монитора ЭШ помещаетс логическа единица, что вызьша- ет активность выхода 15 блока 7 состо ний и отключение ресурсов монитора (его ПЗУ и рабочего ЗУ).A logical unit is placed at the first input 37 of block 7 with a working fragment of the ES monitor, which causes the output 15 of block 7 of the state to be active and the monitor's resources (its ROM and working memory) are disconnected.
На второй вход 38 блока 7 состо ний при обнаружении блоком 13 усло- 5 ВИЯ прерывани отладки помещаетс логическа единица, возвращающа блок 7 в исходное состо ние.At the second input 38 of the block of 7 states, when the block 13 detects the condition of the VIA 5 debugging interrupt, a logical unit is placed returning the block 7 to the initial state.
По шине 39 данных из ЭВМ в устройстве поступают данные, необходимые 0 дл программировани монитором содержимого первого 8 и второго 20 регистров , блока 18. По шине 39 данных ЭВМ считывает из устройства состо ние блока 13 и код рестарта, генериру 25 емый формирователем 22The data bus 39 from the computer in the device receives the data required by 0 for the monitor to program the contents of the first 8 and second 20 registers, block 18. The computer data bus 39 reads from the device the state of block 13 and the restart code generated by the shaper 22
i woai слей д .i woai slay d.
3. О -;;«. Гзт3. O - ;; ". Gzt
Элемент И 40 в цикле чтени ЗУ разрешает дешифрацию дешифратором 43 перехода состо ни адресной шины 5 ЭШ, если предварительно установлен 30 первьй триггер 49.Element I 40 in the read cycle of the memory device allows decoding by the decoder 43 a state transition of the address bus 5 of the ECH, if the 30 first trigger 49 is previously set.
Элемент И 41 в цикле чтени ЗУ разрешает дешифрацию дешифратором 44 перехода состо ни адресной шины 5 ЭВМ, если предварительно установленElement And 41 in the read cycle of the memory device allows decoding by the decoder 44 a state transition of the address bus 5 of the computer, if previously installed
О -;;«. ГзтABOUT -;;". Gzt
Элемент И 42 разрешает установку первого триггера 49 и сброс второ- го триггера 50, если предварительно установлен второй триггер 50.Element And 42 allows the installation of the first trigger 49 and the reset of the second trigger 50, if the second trigger 50 is previously set.
Первый дешифратор 43 перехода срабатывает , если процессор читает последний байт адреса перехода к ПЗУ монитора. Адрес перехода предварительно генерируетс монитором в ОЗУThe first transition decoder 43 is triggered if the processor reads the last byte of the address of the transition to the monitor's ROM. The transition address is pre-generated by the monitor in RAM.
ЭВМ по фиксированному адресу.Computer at a fixed address.
Второй дешифратор 44 перехода срабатьшает, если процессор переходит к вьшолнению программы пользова- тел , прочт последний байт псевдо- регистра программный счетчик из рабочего ЗУ монитора.The second descrambler of the 44 transition triggers, if the processor goes to the user program execution, read the last byte of the pseudo-register program counter from the monitor's working memory.
Элемент ИЖ 45 собирает сигналы с выхода первого дешифратора 43 пе- реходов (первьй сигнал) и от линии 1 инициализации ЭВМ (второй сигнал) дл сброса первого триггера 49.The IL 45 element collects signals from the output of the first decoder 43 transitions (the first signal) and from the computer initialization line 1 (the second signal) to reset the first trigger 49.
Элемент ИЛИ 46 собирает сигналы т линии 1 инициализации ЭВМ. (первыйElement OR 46 collects the signals m of the computer initialization line 1. (the first
7 ,7,
сигнал) и от второго разрешающего входа 38 блока 7 дл установки втог рого триггера 50 и одновременного сброса третьего триггера 51.signal) and from the second permitting input 38 of block 7 for setting up the second trigger 50 and simultaneously resetting the third trigger 51.
Элемент ИЛИ 47 собирает сигналы от второго дешифратора 44 перехода (первьй сигнал) и от первого разрешающего входа 37 блока 7 (второй сигнал) дл сброса второго триггера 50. Второй сигнал на - сброс второго триггера 50 при условии , что последний предварительно установлен , что обеспечиваетс третьим элементом И 42.The OR 47 element collects signals from the second transition decoder 44 (first signal) and from the first enable input 37 of block 7 (second signal) to reset the second trigger 50. The second signal to — reset the second trigger 50, provided that the latter is preset, which is provided the third element and 42.
Элемент ИЛИ 48 собирает сигналы: инициализации ЭШ (первый сигнал, который проходит еще и через третий элемент ИЛИ 47, поступающий от линии 1), управлени по второму входу 38 блока 7 (второй сигнал, который также проходит еще и через третий элемент ИЛИ 47), срабатывани первого дешифратора 43 переходов (тре- Т1-1Й сигнал) . Во всех этих случа х устанавливаетс второй триггер 50.The OR 48 element collects the signals: the ES initialization (the first signal, which also passes through the third element OR 47, coming from line 1), control via the second input 38 of block 7 (the second signal, which also passes through the third element OR 47) , the operation of the first decoder 43 transitions (the third signal). In all these cases, a second trigger 50 is set.
Первьй триггер 49 устанавливаетс программно через первьш разрешающий вход 37 блока 7, если предварительно бып установлен второй триггер 50. Логическа единица, поступающа на первьй выход 15 блока 7, индицирует тот факт, что монитор посредством своего рабочего фрагмента может иметь доступ к чейке ЗУ, адрес которой . маскируетс ресурсами монитора. Сброс триггера 49 вьшолн етс автоматически , если рабочим фрагментом монитора читаетс последний байт адреса возврата путем перехода к нужному адресу ПЗУ монитора. Сброс первого триггера 49 также происходит при инициализации ЭВМ (но не отлажн- ва емой системы).The first trigger 49 is installed programmatically via the first enable input 37 of block 7, if the second trigger 50 is pre-installed. The logical unit coming to the first output 15 of block 7 indicates that the monitor can access the memory cell, address which masked by monitor resources. The flip-flop trigger 49 is automatically performed if the working byte of the monitor reads the last byte of the return address by moving to the desired address of the monitor's ROM. The reset of the first trigger 49 also occurs during the initialization of the computer (but not the system being debugged).
Второй триггер 50 устанавливаетс , если рабочий фрагмент монитора закончил свою работу, что будет об- , наружено срабатыванием первого дешифратора 43 перехода,если поступит. логическа единица по второму раз-The second trigger 50 is set, if the work fragment of the monitor has finished its work, which will be detected by the operation of the first decoder 43 of the transition, if it arrives. logical unit of the second
10ten
1515
2020
1453408 . 1453408.
сгенерирован рабочий фрагмент и запреща отс ресурсы монитора. Дл это го на первьй разрешающий вход 37 блока 7 программно подаетс логичес ка единица. Второй триггер 50 также сбрасываетс , если второй дешифр тор 44 перехода обнаружил чтение из рабочего ЗУ монитора последнего 6afi адреса перехода на программу пользо вател .generated a working snippet and denying monitor resources. For this purpose, a logical unit is programmatically supplied to the first permitting input 37 of block 7. The second trigger 50 is also reset if the second decryptor of the 44 transition detects a reading from the working memory of the monitor of the last 6afi transition address to the user program.
Третий триггер 51 устанавливаетс , если второй дешифратор 44 перех да обнаружил чтение из рабочего ЗУ монитора последнего байта адреса пе рехода на программу пользовател . Третий триггер 51 сбрасьшаетс , есл блоком 13 обнаружены услови прерьш ни отладки программы, дл чего бло 13 подает логическую единицу на вто рой разрешающий вход 38 блока 7.The third trigger 51 is set if the second decoder of the 44 transition detects a reading from the working memory of the monitor of the last byte of the transition address to the user program. The third trigger 51 is reset, if block 13 detects no longer debugging conditions for the program, for which block 13 supplies a logical unit to the second enable input 38 of block 7.
Ключ 52, если на входе чтени бл ка 13 установлена лог гческа единица , подключает состо ние информационного выхода схемы 53 совпадени к дов на шину 39 данных ЭВМ. Это позво л ет узнать причину совпадени кодов (совпал младший байт, совпали о байта) с помощью только одного кода рестарта, генерируемого блоком 22.The key 52, if a log unit is set at the input of the block 13, connects the state of the information output of the coincidence circuit 53 to the drives on the computer data bus 39. This allows you to find out the reason for the coincidence of the codes (matched the low byte, matched about the byte) using only one restart code generated by block 22.
Схема 53 совпадени кодов вьтол- н ет пара;л:пельное поразр дно-побайтное сравнение, например, путем каскадной свертки по модулю 2. На выход схемы 53 совпадени кодов поступает логическа единица, если на ее информационных входах есть поразр дное совпадение в одном байте (операнд - стоп) или в двух байтах (адрес - стоп). Условие совпадени (один или два байта) программируетс в регистре 8 и вл етс условием прерьшани отладки.The code matching circuit 53 isolates a pair; l: bitwise bitwise byte-by-byte comparison, for example, by modulating modulo 2 convolutionally. The output of the code matching circuit 53 receives a logical unit if its information inputs have a bit match in one byte. (operand - stop) or in two bytes (address - stop). The match condition (one or two bytes) is programmed in register 8 and is the condition for terminating debugging.
Элемент И 55 исключает срабатывание компаратора во врем , когда адрес нестабилен, когда текущий адрес не вл етс адресом первого байта кода команды и когда пользователь ска программа не работает. Исключение срабатьшани компаратора при не25The element 55 excludes the operation of the comparator at the time when the address is unstable, when the current address is not the address of the first byte of the command code and when the user ska program does not work. The exception srabatshani comparator when not 25
30thirty
3535
4040
4545
решающему входу 38 блока 7, что воз- стабильном адресе достигаетс подаможно при попытке записи в заданную зону ЗУ и обнаруживаетс блоком 13, и если инициализируетс ЭВМ. Единичное состо ние второго триггера 50 от- ражает то, что ресурсы монитора нор- мально маскируют ОЗУ ЭШ, а программа пользовател не выполн етс . Вто-; рой триггер 50 сбрасываетс , еслиthe decisive input 38 of block 7, which is achieved pre-cleverly to the recoverable address when attempting to write to the specified storage zone and is detected by block 13, and if the computer is initialized. The single state of the second flip-flop 50 reflects that the resources of the monitor normally mask the RAM of the ESH, and the user program is not executed. Wto-; the swarm trigger 50 is reset if
10ten
1515
2020
453408 . 453408.
сгенерирован рабочий фрагмент и за- преща отс ресурсы монитора. Дл этого на первьй разрешающий вход 37 блока 7 программно подаетс логичес- ка единица. Второй триггер 50 также сбрасываетс , если второй дешифратор 44 перехода обнаружил чтение из рабочего ЗУ монитора последнего 6afiTa адреса перехода на программу пользовател .a work fragment was generated and the monitor resources were banned. For this, a logic unit is programmatically supplied to the first permitting input 37 of block 7. The second trigger 50 is also reset if the second transition decoder 44 detects reading from the working memory of the monitor of the last 6afiTa transition address to the user program.
Третий триггер 51 устанавливаетс , если второй дешифратор 44 перехода обнаружил чтение из рабочего ЗУ монитора последнего байта адреса перехода на программу пользовател . Третий триггер 51 сбрасьшаетс , если блоком 13 обнаружены услови прерьша- ни отладки программы, дл чего блок 13 подает логическую единицу на второй разрешающий вход 38 блока 7.The third trigger 51 is set if the second transition decoder 44 detects reading from the working memory of the monitor of the last byte of the transition address to the user program. The third trigger 51 is reset if block 13 detects interrupted debugging conditions, for which block 13 supplies a logical unit to the second enable input 38 of block 7.
Ключ 52, если на входе чтени блока 13 установлена лог гческа единица , подключает состо ние информационного выхода схемы 53 совпадени кодов на шину 39 данных ЭВМ. Это позвол ет узнать причину совпадени кодов (совпал младший байт, совпали оба байта) с помощью только одного кода рестарта, генерируемого блоком 22.The key 52, if the log unit is set at the read input of the block 13, connects the status of the information output of the code match circuit 53 to the computer data bus 39. This allows one to find out the reason for the coincidence of the codes (the low byte coincided, both bytes coincided) using only one restart code generated by block 22.
Схема 53 совпадени кодов вьтол- н ет пара;л:пельное поразр дно-побайтное сравнение, например, путем каскадной свертки по модулю 2. На выход схемы 53 совпадени кодов поступает логическа единица, если на ее информационных входах есть поразр дное совпадение в одном байте (операнд - стоп) или в двух байтах (адрес - стоп). Условие совпадени (один или два байта) программируетс в регистре 8 и вл етс условием прерьшани отладки.The code matching circuit 53 isolates a pair; l: bitwise bitwise byte-by-byte comparison, for example, by modulating modulo 2 convolutionally. The output of the code matching circuit 53 receives a logical unit if its information inputs have a bit match in one byte. (operand - stop) or in two bytes (address - stop). The match condition (one or two bytes) is programmed in register 8 and is the condition for terminating debugging.
Элемент И 55 исключает срабатывание компаратора во врем , когда адрес нестабилен, когда текущий адрес не вл етс адресом первого байта кода команды и когда пользовательска программа не работает. Исключение срабатьшани компаратора при не25The element 55 excludes the operation of the comparator at the time when the address is unstable, when the current address is not the address of the first byte of the command code, and when the user program does not work. The exception srabatshani comparator when not 25
30thirty
3535
4040
4545
чей на вход элемента И 55 признака выборки ЗУ, образованного дизъюнкцией сигналов на лини х чтени 6 и записи 14 ЗУ. Исключение прерыван1с отладки, когда текущий адрес не вл етс адресом первого байта кода команды, необходимо, чтобы исключить подачу кода рестарта при неза 145340810whose input element AND 55 is the sign of the memory sample formed by the disjunction of signals on the reading lines 6 and writing 14 memory. The exception is interrupted by debugging, when the current address is not the address of the first byte of the command code, it is necessary to exclude the supply of the restart code when 145340810
чение сп 5° ° / Г адресов таковой действителен и,Cn 5 ° ° / G addresses such valid and,
работаюшей ДополнительнейWorking More
необхоЗ пользовател вход разрешени блока 18 пам ти. ЭтоA user needs a resolution input of the memory block 18. it
необходимо дл исключени случайногосправедливо и дл адреса УВВ, но осурываГ пп -«--ПС условий пре- ществл етс вторым подблоков пам ти.ного мон:;тооГ Блок-схема алгоритма работы yetп г ройства совместно с ЭВМ представле .ра г-н е зоГзГ::™™. ,„ :г„л:™ ; - -ваетс старший байт а оеса Гипи г мATit is necessary to exclude randomly and for the address of the air-blast, but the CGP - “–––––––––––––––––––––––––––––––––––––––––––––––––––––– zoGsG :: ™. , „: G„ l: ™; - - it turns out the high byte of the Hyipi GTAT
цессором ЭВМ. последней не принадле-, в заеме наход щемужат . В регистре 57.1 хранени верх-(./, R,Cessor computer. The latter is not owned by the loan. In register 57.1 storage upper - (./, R,
ней границы занимаемой зоны ЗУ за-,„ выполн тьс обмен поboundaries of the occupied memory zone for,
писываетс старший байт адреса (или который не маскируетс ресур:Г .: . i™ s ,.the high byte of the address is written (or which is not masked by the resource: G.:. i ™ s,.
торого адреса, генерируемые микропро- димости измен ет содержимое блокаaddress generated by the microdigits changes the contents of the block
цессором ЭВМ, последней не принадле-пам ти так, чтобы исключить такоеthe computer processor, the latter does not belong to the memory so as to exclude such
жат. В регистре 57.1 хранени верх-попадание, затем на третьем входе ней границы занимаемой зону ЗУ за-элемента ИЛИ 21 монитор устанавливаетreaped In the storage register 57.1, the top hit, then at the third input of the upper boundary of the occupied memory zone of the OR element 21, the monitor sets
письшаетс така же информаци об25 логическую единицу, чем разрешаетс The same information is written about the logical unit, which resolves
адресе, начинал с которого адреса,работа блока 18 пам ти без участи address, starting at which address, operation of memory block 18 without a fate
генерируемые микропроцессором ЭВМ,блока 7; принадпежат последней.65 - изменение границ;generated by a microprocessor computer, unit 7; belong to the last. 65 - change of borders;
Вькоды сумматоров 58.1, 59.1, 58.266 - вьтолнение директивы, неThe codes of adders 58.1, 59.1, 58.266 - the implementation of the directive, not
и 39.2 вл ютс выходами переносазо содержащей обмена, либо содержащейand 39.2 are exits of a transparative exchange containing, or containing
и имеют один разр д. На выход сум.а-обмен с незамаскированным адресом;and have one bit. On the output of a sum.a-exchange with an unmasked address;
тора Ь8.1 поступает логическа еди-67 - на ЭВМ нажимают кнопку ница, если на шине 5 .адресов установ- сброс, при этом активизируетс лилен адрес ЗУ, величина которого рав-ни 1 инициализации устройства тригна или превышает нижнюю границу за-геры 49 и 51 сбрасываютс , а триггерtorus b8.1 receives a logical one-67 - a button is pressed to the computer if the bus 5 .Address is set-reset, this activates the lilane memory address, the value of which is equal to 1 initialization of the device trigna or exceeds the lower limit of the trigger 49 and 51 is reset, and the trigger
ема. Аналогично на выход сумматора 50 устанавливаетс в единицу;ema Similarly, the output of the adder 50 is set to one;
59.1 поступает логическа единица, .68 - монитор вьшолн ет инициалиесли на шине 5 адресов установлен ад-зацию ЭВМ и очищает регистры 8 и 2059.1 a logical unit arrives, .68 - the monitor is initialized, and the computer is installed on the 5 address bus and clears registers 8 and 20
рес ЗУ, величина которого равна илиустройства и переходит к ожиданиюres memory, the value of which is equal to or device and proceeds to waiting
меньше верхней границы заема. Чтобыдиректив. В этом состо нии на вькожГ пГги соответствую-дах .15 и 16 блока 7 наход тс нули,less than the upper limit of the loan. To direct. In this state, the IPGs of the corresponding 15 and 16 block 7 are zero,
щих регистрах программируетс зна-„а третьем входе элемента ИЛИ 21 начение границ в дополнительных кодах.ходитс логический нуль, следовательПоскольку выходы пары сумматоров сое-но, работа блока 18 пам ти запрещементГи бГГ н f ° ° разрешающем входе.Registers are programmed using the third input of the OR 21, setting the boundaries in the additional codes. A logical zero is found, the investigator Since the outputs of a pair of adders are connected, the operation of memory block 18 is prohibited by the permissive input.
мента И 61.1, необходимым условиемРабота блока 13 запрещена нулём наment And 61.1, the necessary conditionWorking block 13 is prohibited by zero
ло™Г™- элемента И 61.1вьосоде 16 блока 7. Заемы пам ти у отлогическои единицы вл етс попа-лаживаемой системы невозможны;Lo ™ G ™ - element And 61.1 Vysode 16 of block 7. Memories of memory from such a unit is a populated system impossible;
дание текущего адреса чейки ЗУ меж-69 - диспетчер монитора скйнируДУ запрограммированными границами ли-ет консоль и ждет полного ввода ди- бо равенство одной из границ. рективы. Пока последн не введена,the current address of the memory cell is inter-69 — the monitor dispatcher controls the programmed boundaries of the console and waits for full input of the equality of one of the boundaries. rektivy. Until the last one is entered,
Элемент Ш1И 60.1 исключает слу-переход к .блоку 70 невозможен;Element Ш1И 60.1 excludes the case-transition to the .block 70 is impossible;
чайную генерацию услови заема зоны70 - провер етс , вл етс ли ввеЗУ , если установленный на шине ад-денна директива передачей управлерес ЗУ нестабилен, либо на шине 5 на-ни программе пользовател ; ходитс адрес УВВ. Следовательно, на 55 71 - директива не передает управвыходе элемента И 61.1 по витс сиг-лени программе пользовател , пронал заема адресного пространства ЗУвер етс , содержит ли введенна диу отлаживаемой системы, если на шинеректива обмен с чейкой ЗУ или УВВ72- диерктива содержит обмен, например, необходимо заменить содержимое чейки или порта, провер етс , не замаскрфован ли адрес ресурсами монитора;tea generation of zone borrowing condition 70 — checks whether the input is stored if the ad-directive directive installed on the bus transfers control to the memory unstable or on bus 5 in the user program; The address is UVV. Therefore, at 55 71 - the directive does not transfer the output of the element And 61.1 through the user’s program to the user's program, get the address space borrowed. Zaverts whether the entered diu of the system being debugged contains an exchange, for example, with the cell or UVB72; , the contents of the cell or port must be replaced, it is checked that the address is not masked by the resources of the monitor;
73- адрес, по которому будет обмен , замаскирован ресурсами монитора , следовательно, необходимо генерировать рабочий фрагмент (РФ), провер етс , не будет ли находитьс участок ОЗУ с РФ в заеме во врем выполнени РФ;73- the address to which the exchange will be, masked by the monitor resources, therefore, it is necessary to generate a working fragment (RF), check if the portion of the RAM from the RF will be in the loan during the RF execution;
7Д - участок, где будет генерироватьс РФ, находитс в заеме у отла- 15 Предварительно в псевдорегистр программный счетчик, наход щийс в рабочем ОЗУ монитора, загружаетс стартовый адрес программы пользовател , который может быть любым. Адрес7D - the area where the RF will be generated is in a loan from a debugger. Beforehand, the program counter, which can be any, is loaded into the pseudo register of the program counter in the working RAM of the monitor. Address
живаемой системы, необходимо исключить этот заем, поскольку не известно , что в этом участке отлаживаема система имеет (и имеет ли вообще) исправное ОЗУ. Блок 18 пам ти перепрограммируетс так, чтобы исключить заем участка РФ, дл этого верхн или нижн граница в блоке 18 пам ти сдвигаетс соответствующим образом;living system, it is necessary to exclude this loan, since it is not known that in this section the system being debugged has (and does it even have) good RAM. The memory block 18 is reprogrammed so as to exclude a loan for the RF segment; for this, the upper or lower limit in the memory block 18 is shifted accordingly;
75- генерируетс РФ и передаетс ему управление;75 is generated by the RF and is transferred to it;
76- выполн етс РФ. Выполнение РФ начинаетс с подачи логической единицы на линии 37 устройства путем соответствующего программировани - второго регистра 20. Триггер 51 устанавливаетс , а триггер 50 сбрасываетс . Возникает состо ние ОБМЕН. Работа блока 13 запрещена, а работа блока 18 пам ти разрешена. При обмене с чейкой ЗУ, веди адрес ее находитс в заеме, блок 18 пам ти срабатывает . Поскольку элемент ЗАПРЕТ 2376- performed by the RF. The execution of the RF begins with the filing of a logical unit on line 37 of the device by appropriate programming — a second register 20. A flip-flop 51 is set, and a flip-flop 50 is reset. There is a state of EXCHANGE. The operation of block 13 is prohibited, and the operation of memory block 18 is permitted. When exchanging with a memory cell, enter its address in the loan, memory block 18 is activated. Since the item is banned 23
не блокирует линию 36, то происходит 40 прерывани отладки, так как срабо- обмен по адресу, который относитс тает элемент ЗАПРЕТ 23. Одновремен- к отлаживаемой системе. Одновремен- но вместо очередного первого байта но по адресу, относ щемус к ЭВМ, ни- команды пользовательской программы чего не измен етс , так как он бло- ка шину 39 данных блок 22 поместит кирован через элемент 33 и линию зап- g код рестарта, а в конце цикла посред- рета ЗУ. Если адрес не находитс в ством линии 38 триггер 50 установит- заеме, то наоборот, процессор ЭВМ по- с , а триггер 51 сброситс . Процеслучает доступ не к ЗУ отлаживаемой системы, а к ЗУ ЭВМ. Выполнение РФ j кончаетс чтением адреса возврата к некоторому адресу монитора. Последний посто нен и не зависит от директивы , содержащей обмен. При чтении последнего байта адреса возврата срабатывает дешифратор 43 блока 7, чем сбрасьшаетс триггер 49 и устанавливаетс триггер 50, т.е. возвращаетс состо ние МОНИТОР к моменту чтени .кода команды из ПЗУ монитора;does not block line 36, then 40 debug interrupts occur, since the exchange is at the address that relates to the element BAN 23. 23. At the same time, the system being debugged. At the same time, instead of the next first byte, at the address relating to the computer, none of the user program commands changes, since it blocks the data bus 39, the block 22 is placed through the element 33 and the restart code is restarted, and at the end of the cycle is an intermediary memory. If the address is not located on line 38, the trigger 50 sets a switch, then on the contrary, the processor of the computer is absent, and the trigger 51 is reset. The process of access not to the memory of the system being debugged, but to the computer's memory. The execution of RF j ends with the reading of the return address to a certain monitor address. The latter is fixed and does not depend on the directive containing the exchange. When reading the last byte of the return address, the decoder 43 of block 7 is triggered, which triggers trigger 49 and sets trigger 50, i.e. the MONITOR status is returned by the time the command code is read from the monitor's ROM;
77- провер етс , был ли перепрограммирован блок 18 пам ти. Если да, то исходное содержимое восстанавливаетс и управление передаетс диспетчеру 69 монитора;77- checks whether the memory block 18 has been reprogrammed. If so, the original content is restored and control is transferred to the monitor dispatcher 69;
78- директива содержит передачу управлени программе пользовател , провер етс , задавались ли в директиве услови прерывани отладки;78- the directive contains the transfer of control to the user program, it is checked whether the conditions of the debug interrupt have been specified in the directive;
79- будет прерывание отладки, загружаютс услови в регистр 8 устройства;79- debug interrupt, conditions are loaded into device register 8;
80- пуск прог раммы пользовател .80 start user prog ramme.
Предварительно в псевдорегистр программный счетчик, наход щийс в рабочем ОЗУ монитора, загружаетс стартовый адрес программы пользовател , который может быть любым. АдресPreviously, the program counter in the working RAM of the monitor is loaded into the pseudo register with the start address of the user program, which can be any number. Address
псевдорегистра и программный счетчик посто нен. При чтении последнего байта этого псевдорегистра сра- батьшает дешифратор 44, трип ер 50 сбрасываетс , а триггер 51 устанавливаетс . К моменту обращени процессора к стартовому адресу устанавли- ваетс состо ние РАБОТА, на линию 16 поступает логическа единица, на линии 15 сохран етс логический нуль. Это разрешает piiDoTy блока 13 и блока 18 пам ти.pseudo-register and program counter is constant. When the last byte of this pseudo-register is read, the decoder 44 is fired, the trip er 50 is reset, and the trigger 51 is set. By the time the processor accesses the start address, the RUNNING state is set, a logical unit arrives on line 16, and a logical zero is stored on line 15. This allows piiDoTy of block 13 and block 18 of memory.
В- тех циклах, где текущий адрес принадлежит не ЭВМ, а отлаживаемой системе, контакты разъема эмул тора будут подключатьс к соответствующим шинам ЭВМ при незапрещенных сра батывани х блока 18 пам ти. Такого подключени не произойдет, если блок 13 в текущем цикле обнаружит услови In those cycles where the current address does not belong to the computer, but to the system being debugged, the contacts of the emulator connector will be connected to the corresponding computer buses during unauthorized operation of the memory block 18. Such a connection will not occur if block 13 in the current cycle detects the conditions
5050
5555
сор прочтет этот код рестарта и передаст согласно ему управление монитору . Вьшолнение программы 81 прекратитс ;Litter will read this restart code and transfer control to the monitor according to it. The implementation of program 81 will cease;
82 - обработчик прерьшани отладки , на который по коду рестарта перейдет монитор. При выполнении рестарта из микропроцессора ЭВМ содержимое рестарта программного счетчика извлекаетс и помещаетс в упом нутый псевдорегистр программный счетчик . Далее извлекаютс все регист1382 - debug terminator handler to which the monitor goes to the restart code. When performing a restart from the microprocessor of the computer, the contents of the restart of the program counter are retrieved and placed in the said pseudo register of the program counter. Next, all registries are retrieved.
ры общего назначени . Обработка пррывани отладки завершаетс : переходом к диспетчеру монитора. Если бы установлен таг трассировки, то цепочка 69..,72 повтор етс , ка консли отображаетс трасса с состо ние регистров микропроцессора, а устроство управлени эмул тором поддер-- жквает этот процесс.general purpose. Debug debug processing is completed: by going to the monitor dispatcher. If the trace tag was set, the chain 69 .., 72 is repeated, the trace with the state of the microprocessor registers is displayed on the console, and the emulator control device supports this process.
Такш образом,, блок 76 вьтоли е в состо нии ОБМЕН, блок 81 выполн етс в состо нии РАБОТА, остальные блоки выполн ютс в состо нии МОЧИ ТОР. Thus, block 76 is in the EXCHANGE state, block 81 is executed in the OPERATION state, the remaining blocks are executed in the URINE state TOR.
Устройство работает следующиг- об ; разом.The device works as follows; at once.
Дл того, чтобы текулдш ра боты ЭВМ стал циклом работы ваемой системы, необход лмо, чтобы дл цреса, -ззыставл емого ЭВМ, ресу ; сы ЭВМ бьши бы запрещены, а на ход 36 устройства поступила бы ло- ; гическа единица, разрешающа подк,л чение шин ЭВМ к разъему микропроцес ;сора отлаживаемой системы, : В то же врем , с точки зрени г i пользовател ,, система - эмул - ргор может находитьс в трех упом ну :тых состо ни х: МОНИТОР, ОБМЕН РА-БОТА . In order for the current work of the computer to become the cycle of the operation of the system, it is necessary that the cres, the replaced computer, resu; The computers of the computer would have been banned, and on the course of 36 the device would go lo; A physical unit that permits the connection of computer busses to the microprocessor connector; a debug system is litter: At the same time, from the user's point of view, the system — emul - sor can be in the three mentioned states: MONITOR , EXCHANGE OF RA-BOTA.
Б состо нии МОНИТОР ггроцессор работает с ПЗЗ или рабочк ЗУ монитор и ему доступнЕ. немаскируемые расур-- cpi-M могнп ора или отл.ажклзаемой сие- а емсй пользовательские ресурсы ЗБМ,. 11оследние представл ют собой ОЗУ ЭйМ. перакрываюгдее все пр моадресуе мое :н:,остранство,. и р д УВВ адреса ксторьпс могут измен тьс 5 например, К -1кропереключател ми. В состо нии. МОНИТОР ресурсы монитора мг скиру- ют ОЗУ УВМ с помоццэю сист :мной линии ЭВМ ЗАПРЕТ ОЗУ, а пользовательские УВВ (но не УВВ монитора) запре- пассивностью системной линии ЗАШЛЕТ УВВ, Пользовательские УВВ, таким образомJ могут соваздтдть по адресам с УВВ ЭВМ. В частном случае пользовательские УВВ могут отсутствовать , но то;гда отлаживаема систе- а догокна их иметь. В состо нии МОНИТОР ЭВМ выполн ет сервисные функции, например, считълзает сектор диска в рабочее ЗУ. монитора, скггни- рует клавиатуру консоли,, выводит снч вол на дисплей, ждет инструкций и т,д„ В состо нии МОНИТОР ЭВМ может также выполн ть обмен по адресу ееIn the MONITOR state, the processor operates with a PZZ or a monitoring monitor and is accessible to it. nonmaskable rauru-cpi-M mogun ora or otl.zhklzuemoy si-em em user resources MBA ,. The last 11 are AMA RAM. Perakryvayugdee all pr my address: n:, ostranstvo ,. and the number of UVB addresses of thornpoints may vary 5, for example, K-1 switch. In the state. MONITOR mg monitor resources will erase the RAM of the UVM with the help of the system: the computer line is banned from RAM, and the user UVB (but not the UVV of the monitor) prohibits the passiveness of the system line of the ZHLET UVV, User UVV, thus, the address can be shared with the UVB address of the UVV and the UVV, user UVB, thus, can be shared with the addresses of the UVB and UVV In the particular case, user air-blast may be absent, but then, when a system is being debugged, it is necessary to have them. In the MONITOR state, the computer performs service functions, for example, it reads a disk sector in the working memory. the monitor, knocks the console keyboard, displays the snc vol on the display, waits for instructions, and so on. In the MONITOR state, the computer can also exchange at its address
ресурсов, который не маскируетс ресурсами монитора или отлаживаемой .: системой.resources that are not masked by monitor resources or are debugged.: system.
g В состо нии ОБМЕН ЭВМ получает доступ к адресу, которьй не доступен в состо нии МОНИТОР, например, этот адрес маскируетс ресурса1 1и монитора. Доступ обеспечиваетс следующим об10 разом. Если адрес, к которому необходим доступ, маскируетс ресур- Ьами монитора, что монитор определ ет самосто тельно, то в некоторой, зоне ОЗУ ЭВМ монитором генерируетс g In the EXCHANGE state, a computer accesses an address that is not available in the MONITOR state, for example, this address is masked by the resource 1 1 and the monitor. Access is provided as follows. If the address to which access is necessary is masked by the resources of the monitor, which the monitor determines itself, then in some, computer RAM area, the monitor generates
15 собственный рабочий фрагмен-т. Предварительно исходное содерхимое зоны рабочего фрагмента копируетс монитором в свое рабочее ЗУ, Если зона рабочего фрагмента зан та ЗУ отлажи20 ваемой системы, то монитором так измен етс содержимое блока 18 пам ти, чтобы исключить заем отла;киваемой системой зоны рабочего фрагмента у ЭВМ, Дапее-упра) передаетс ра35 бочему фрагменту, которьш содержит необходим1з1е команды дл подачи логической едини1№1 на первьш вход 37 блока 7, Поскольку в состо нии МОНИТОР триггер 50 был установлен,15 own working fragment. Previously, the initial content zone of the working fragment is copied by the monitor to its working storage device. If the area of the working fragment is occupied by the memory of the system being debugged, the contents of memory block 18 in the monitor are changed in such a way as to exclude a loan from the computer, Dapee control is transmitted to the working fragment, which contains the necessary commands to issue a logical unit 1 to the first input 37 of block 7, since in the MONITOR state the trigger 50 was set,
тоthat
0 логическа единица, пройд через0 logical unit, pass through
элемент И 42, установит первьй триггер 49 и сбросит второй триггер 50„ Вьтолнив необход4|мьй обмен, процессор читает из рабочего фрагмента ад- . рее возврата к ПЗУ монитора что восстанавливает состо ние МОНИТОР,element 42, will install the first trigger 49 and reset the second trigger 50 “By executing the necessary exchange, the processor reads from the working fragment ad-. Returns to the monitor ROM, which restores the state of the MONITOR,
В состо нии ОБМЕН перзьй триггер : 49 установлен, на первьпл выход 15 блока 7 поступает логг-иескэл едини- 0 ца, котора через элемент НЕ 25 запрещает ресурсы монитора активностью линии 34 запрета ресурсов монитора Одновременно эта. же логическа единица разрешает через элемент ЕЛИ 21 5 выдачу решени блоком 18 ,In the status EXCHANGE perl trigger: 49 is set, the output 15 of block 7 enters the logging unit, which, through the NOT 25 element, inhibits the monitor's resources by the activity of the monitor-inhibiting line 34. At the same time. the same logical unit resolves, through the element ELI 21 5, the issuance of the decision by block 18,
принадлежит илк нет адрес, к которому производитс доступ в состо нии ОБМЕН, отлаживаемой сш;те;ч1е, Еслк нрннад/1ежит,, то через элзмент ЗАПРЕТ 23 блок 18 на выход 36 устройства вьщает логическую едкниыуз разрешающую доступ к разъему ьшкропро- цессора отлалсивавлмой системьи Если не принадлел ит то в течение всегй работы фрагмента на 36 устройства не поступит логическа единица, так как блоком 18 пам ти рабочий ; фрагмент исключен из зоны ЗУ, занимаемой у отлаживаемой системы.belongs to no address, which is accessed in the state of EXCHANGE, debugged by the us; those; esl, Esn nrnnad / 1zhit, then through the prohibit 23, the block 18 to the output 36 of the device allows logical access to the socket of the processor of the processor or the remote control system If it does not belong to it, then during the entire operation of the fragment, a logical unit will not arrive at 36 devices, since memory unit 18 is working; the fragment is excluded from the memory zone occupied by the system being debugged.
00
5five
В состо нии РАБОТА выполн етс программа пользовател . В состо нии РАБОТА система ЭВМ - эмул тор переходит из состо ни МОНИТОР, когда на входе элемента И 41 имеетс логическа единица, поступающа с выхода второго триггера 50. При чтении процессором из рабочего ЗУ монитора поеледнего байта адреса перехода к прог- ю запрет ОЗУ ЭВМ, но теперь не черезIn the RUNNING state, the user program is executed. In the OPERATION state, the computer system - the emulator goes from the MONITOR state, when the input element I 41 has a logical unit coming from the output of the second trigger 50. When the processor reads from the working memory of the monitor, the byte of the transition address of the computer prohibits the RAM of the computer but now not through
2020
2525
рамме пользовател срабатывает второй дешифратор 44 перехода, срезом импульса с его выхода триггер 50 сбрасываетс , а триггер 51 устанавт- ливаетс . С этого момента состо ние РАБОТА вл етс активным, а все -три элемента И 40-42 запрещены логическими нул ми на вторых входах. Поэтому программа пользова тел не вли ет на состо ние блока 7 состо ний. До входа в состо ние РАБОТА монитором по данным своего рабочего ЗУ программируетс блок 18 пам ти. До входа в состо ние РАБОТА, т.е. в состо нии МОНИТОР, работа блока 18 пам ти запрещена по разрешающему входу. При входе в состо ние РАБОТА, так . как устанавливаетс третий триггер 51, на первый выход 16 блока 7 начинает поступать логическа единица, сохран юща с в течение состо ни РАБОТА, втора через элемент ИЛИ 21 разрешает работу блока 18 пам ти. Поэтому в тех циклах, когда адреса, с которыми работает программа пользовател , принадлежит отлаживаемой системе, на выходе блока 18 пам ти и соответственно выходе элемента ЗАПРЕТ 23 и выходе 36 устройства будет возникать логическа единица. Пос- 0 ледн периодически подключает отлаживаемую систему к эмул тору с одновременным запретом ОЗУ ЭВМ через элемент НЕ 33 по линии 35 запрета ОЗУ, а также запретом ресурсов монитора через элемент НЕ 26 по линии 34. В течение всего состо ни РАБОТА УВВ . ЭВМ запрещаетс по линии через элемент НЕ 30 от второго выхода 16 блока 7. Пользовательские УВВ, если ониIn the user's frame, the second transition decoder 44 is triggered, the trigger 50 is reset by a cut-off pulse from its output, and the trigger 51 is set. From this point on, the OPERATION state is active, and all three AND 40-42 elements are prohibited by logical zeros at the second inputs. Therefore, the user program does not affect the state of the state block 7. Before entering the OPERATION state by the monitor, the memory block 18 is programmed according to the data of its working memory. Before entering the OPERATION state, i.e. in the MONITOR state, the operation of the memory block 18 is prohibited by permissive input. When entering the OPERATION state, so. as the third trigger 51 is set, the first output 16 of block 7 begins to receive a logical unit, which is maintained during the OPERATION state, the second through the OR 21 element enables the operation of memory block 18. Therefore, in those cycles when the addresses the user program works with belong to the system being debugged, a logical unit will occur at the output of the memory block 18 and, accordingly, the output of the BAN 23 and the device output 36. The latter periodically connects the system being debugged to the emulator with the simultaneous banning of computer RAM through the HE element 33 via the RAM ban line 35, and the monitor resources banned through the HE element 26 through the line 34. During the entire state of the UVB. The computer is prohibited along the line through the element NOT 30 from the second output 16 of block 7. Custom air-blast, if
элемент НЕ 33, а через элемент НЕ 3 третий триггер 51 сбрасьшаетс , пре ращаетс состо ние логической едини на второй выходе 16 блока 7 и вт 15 ром выходе 19 устройства, прекращае с запрет ресурсов монитора по лини 34 через элемент НЕ 26, удерживаетс в течение данного цикла запрет ресу сов монитора через элемент НЕ 27, формирователем 22 генерируетс код рестарта. Очевидно, что шинных конфликтов при этом не возникает. Начало генерировани кода рестарта в л етс окончанием состо ни РАБОТА и возвратом к -состо нию МОНИТОР. Код рестарта читаетс процессором и в последующих циклах работы в состо ни МОНИТОР из микропроцессора ЭШ программно извлекаетс вс интересующа оператора информаци о состо нии процесса отладки.the HE element 33, and through the HE element 3 the third trigger 51 is reset, the state of the logical unit at the second output 16 of the block 7 and the output 15 of the device 19 stops, the monitor resources are denied on the line 34 through the HE element 26, and held for of this cycle, the prohibition of monitor resuses through the NOT element 27, the shaper 22 generates a restart code. Obviously, the bus conflict does not occur. The start of the generation of the restart code is the end of the OPERATION state and the return to the - MONITOR state. The restart code is read by the processor and, in subsequent cycles of operation in the MONITOR state, the operator’s information on the status of the debugging process is retrieved from the microprocessor ECH.
Таковы особенности состо ний системы ЭШ - устройство - эмул тор. Рассмотрим динамику состо ний устройства .These are the features of the states of the ES system — the device is an emulator. Consider the dynamics of device states.
30thirty
3535
4545
5050
Инициализаци устройства производитс подачей логической единицы на вход 1 инициализации устройства одновременно с инициализацией ЭВМ. При подаче импульса инищсализации выходы 15 и 16 блока 7 принимают нулевое состо ние, одновременно очищаетс . второй регистр 20, поэтому ни на одном из вх одов элемента ИЛИ 21 нет логической единицы и, следовательно, работа блока 18 пам ти, независимо от его содержимого, запрещена. Работ блока 13 при этом также запрещена нулем на втором выходе 16 блока 7. Следовательно, ни одна из линий 3, 34 и 35 соответственно запрета УВВ ЭВМ, запрета ресурсов монитора, запрета ОЗУ не вл етс активной со сто роны устройства, а выход 36 устройст ва также пассивен. Поэтому сразу пос ле инициализации отлаживаема система отключена от шин ЭВМ, а ресурсы . монитора нормально маскируют ОЗУ ЭВМThe initialization of the device is performed by feeding a logical unit to the input 1 of the device initialization simultaneously with the initialization of the computer. When the initialization pulse is applied, the outputs 15 and 16 of the unit 7 assume the zero state, and is simultaneously cleared. the second register is 20; therefore, none of the inputs of the OR element 21 have a logical unit and, therefore, the operation of memory block 18, regardless of its contents, is prohibited. The operation of block 13 is also prohibited by zero on the second output 16 of block 7. Therefore, none of the lines 3, 34 and 35, respectively, prohibits the UVV computer, prohibits monitor resources, prohibits RAM, is not active from the device side, and output 36 va is also passive. Therefore, immediately after initialization, the system being debugged is disconnected from the computer buses and resources. the monitor is normally masked by computer RAM
есть, при этом разрешены. При отсутствии пользовательских УВВ работают УВВ отлаживаемой системы, УВВ ЭВМ при этом также запрещены. Выход , из состо ни РАБОТА возможен при инициализации ЭВМ, а также при обнаружении блоком 13 услови прерывани -отладки, так как работа блока 13 в состо нии РАБОТА разрешена по п тому входу от второго выхода 16 блока 7.there are, while allowed. In the absence of user air-blast, the air-blast system of the system being debugged is working, and the air-blast computer is also prohibited. The exit from the OPERATION state is possible when the computer is initialized, as well as when the block 13 detects an interrupt-debug condition, since the operation of block 13 in the OPERATION state is allowed by the fifth input from the second output 16 of block 7.
Если блок 13 в текущем цикле обнаруживает прерьшание отладки, например точку разрыва, то в течение этого цикла элементом ЗАПРЕТ 23 запрещаетс присоединение шин отлаживаемой системы к ЭВМ, продолжаетс If block 13 in the current cycle detects a debugging failure, for example, a break point, then during this cycle, the element BANGE 23 prohibits the connection of the buses of the system being debugged to the computer, continues
запрет ОЗУ ЭВМ, но теперь не черезban on computer RAM, but now not through
элемент НЕ 33, а через элемент НЕ 32, третий триггер 51 сбрасьшаетс , прекращаетс состо ние логической едини- на второй выходе 16 блока 7 и вто- ром выходе 19 устройства, прекращаетс запрет ресурсов монитора по линии 34 через элемент НЕ 26, удерживаетс в течение данного цикла запрет ресурсов монитора через элемент НЕ 27, формирователем 22 генерируетс код рестарта. Очевидно, что шинных конфликтов при этом не возникает. Начало генерировани кода рестарта вл етс окончанием состо ни РАБОТА и возвратом к -состо нию МОНИТОР. Код рестарта читаетс процессором и в последующих циклах работы в состо нии МОНИТОР из микропроцессора ЭШ программно извлекаетс вс интересующа оператора информаци о состо нии процесса отладки.the HE element 33, and through the HE element 32, the third trigger 51 is reset, the state of logical one is stopped at the second output 16 of block 7 and the second output 19 of the device, the prohibition of monitor resources on line 34 through the HE element 26 is stopped, held for this cycle, the prohibition of monitor resources through the element 27, the shaper 22 generates a restart code. Obviously, the bus conflict does not occur. The commencement of the generation of the restart code is the end of the OPERATION state and the return to the - MONITOR state. The restart code is read by the processor and in subsequent cycles of operation in the MONITOR state from the microprocessor ESh, the operator’s information on the state of the debugging process is retrieved programmatically.
Таковы особенности состо ний системы ЭШ - устройство - эмул тор. Рассмотрим динамику состо ний устройства .These are the features of the states of the ES system — the device is an emulator. Consider the dynamics of device states.
0 0
5five
00
5five
Инициализаци устройства производитс подачей логической единицы на вход 1 инициализации устройства одновременно с инициализацией ЭВМ. При подаче импульса инищсализации выходы 15 и 16 блока 7 принимают нулевое состо ние, одновременно очищаетс . второй регистр 20, поэтому ни на одном из вх одов элемента ИЛИ 21 нет логической единицы и, следовательно, работа блока 18 пам ти, независимо от его содержимого, запрещена. Работа блока 13 при этом также запрещена нулем на втором выходе 16 блока 7. Следовательно, ни одна из линий 3, 34 и 35 соответственно запрета УВВ ЭВМ, запрета ресурсов монитора, запрета ОЗУ не вл етс активной со стороны устройства, а выход 36 устройства также пассивен. Поэтому сразу после инициализации отлаживаема система отключена от шин ЭВМ, а ресурсы . , монитора нормально маскируют ОЗУ ЭВМ.The initialization of the device is performed by feeding a logical unit to the input 1 of the device initialization simultaneously with the initialization of the computer. When the initialization pulse is applied, the outputs 15 and 16 of the unit 7 assume the zero state, and is simultaneously cleared. the second register is 20; therefore, none of the inputs of the OR element 21 have a logical unit and, therefore, the operation of memory block 18, regardless of its contents, is prohibited. The operation of block 13 is also prohibited by zero on the second output 16 of block 7. Therefore, none of the lines 3, 34 and 35, respectively, prohibits the ACU of the computer, prohibits monitor resources, prohibits RAM, is not active on the device side, and device output 36 passive. Therefore, immediately after initialization, the system being debugged is disconnected from the computer buses and resources. , monitors normally mask computer RAM.
1 71 7
Устройство нормсшьио функционирует даже тогда, когда все адресное пространство ЗУ принадлежит не ЭВМ, а отлаживаемой системе. Зоны ЗУ, принадлежащие отлаживаемой системе„ ука- .зываютс оператором специальным инструкци ми монитора и записываютс в рабочее ЗУ монитора.The device normally works even when the entire address space of the memory belongs not to the computer, but to the system being debugged. The memory zones belonging to the system being debugged are indicated by the operator by special monitor instructions and recorded in the working memory of the monitor.
Пусть оператором задана инструкци монитора, содержаща доступ к адресу, который, не маскируетс ресурсами монитора, но не принадлежит ЭВМ. Перед действи ми по доступу к такому адресу монитор программирует блок 18 пам ти так, чтобы исключить заем зон ЗУ у отлаживаемой системы, совпадающих по адресам с ресурсами монитора. Непосредственно перед доступом монитора программно устанавливаетс логическа единица на третьем выходе второго регистра 20, что через элемент РШИ 21 разрешает работу блока 18 пам ти. В цикле досту1453408Let the operator specify a monitor instruction containing access to an address that is not masked by monitor resources, but does not belong to a computer. Before actions to access such an address, the monitor programs memory block 18 so as to exclude the borrowing of memory zones from the system being debugged that match the addresses to the monitor resources. Immediately before the monitor accesses, a logical unit is programmatically installed at the third output of the second register 20, which, through the RShI 21 element, allows operation of the memory block 18. In the loop access 1453408
а логическа единица из выходе 36 устройства, как и в предыдущем слу чае, подключает разъем эмулируемого .g микропроцессора к шинам ЭВМ.and the logical unit from the output 36 of the device, as in the previous case, connects the connector of the emulated .g microprocessor to the computer buses.
ff
Таким образом, монитор имеет доступ к любой чейке ЗУ как ЭШ, так и отлаживаемой системы, Следова 10 тельно, с помощью предлагаемого уст ройства может быть исследовано все адресное пространство ЗУ эмулируемо го микропроцессора.Thus, the monitor has access to any cell of the memory of both the ES and the system being debugged. Consequently, using the proposed device, the entire address space of the memory of the emulated microprocessor can be investigated.
15 Пусть оператор задал инструкцию монитора, содержащую доступ к УВЕ отлаживаемой системы. В этом случае монитор также освобождает место под свой рабочий фрагмент в ОЗУ ЭВМ,15 Let the operator set a monitor instruction containing access to the UVE of the system being debugged. In this case, the monitor also frees up space for your work piece in computer RAM,
20 генерирует рабочий фрагмент и передает ему управление. Рабочий фрагмент в, этом случае содержит необходимые команды ввода-вьшода, а не об мена с ЗУ. Возникает состо ние ОБМЕ20 generates a work fragment and transfers control to it. The work fragment in this case contains the necessary input-output commands, and not exchange with the memory. There is a status of OMDE
гт-, Кг, -to1-.V- V- . иилпилает состо ние иьин,gt-, kg, -to1-.v-v-. or sawn state
па блок 18 пам ти срабатывает, на его 25 на выход 15 блока 7 начинает постуRfilV П ТТ ТТ T Tm -ij mTT.-i-.... PA memory unit 18 is triggered, on its 25 to output 15, unit 7 starts the post RfilV P TT TT T Tm -ij mTT.-i -....
выход поступает логическа единица, котора через элемент ЗАПРЕТ 23 поступает на выход 36 устройства, что подключит разъем эмулируемого микропроцессора к шинам с одновременным запретом доступа к ОЗУ ЭВМ через элемент НЕ 33. По окончании цикла доступа третий,выход регистра 20 : программируетс в нуль, что запрещает работу блока 18 пам ти. В течение описанных действий блок 7 оставалс в состо нии МОНИТОР.аthe output enters a logical unit, which through the BANNER element 23 enters the device output 36, which connects the connector of the emulated microprocessor to the buses while simultaneously blocking access to the computer's RAM through the HE element 33. At the end of the access cycle, the third output of the register 20: is programmed to zero, which Prohibits the operation of memory block 18. During the described actions, block 7 remained in the MONITOR state.
Пусть теперь оператором задана инструкци монитора, содержаща доступ к адресу, маскируема ресурсшчи монитора и не пpинaд.лe) ЭВМ. Г Перед генерированием рабочего фрагмента монитором блок 18 пам ти программируетс так, чтобы исключить заем зоны рабочего фрагмента В отличие от предыдущего случа третий выход второго регистра 20 не программируетс в единицу. После передачи управлени рабочему фрагменту возникает, как это описано, состо ние ОБМЕН, на первьй выход 15 блока 7 поступает логическа единица и через первьй элемент ИЛИ 21 разрешает срабатывание блока 18 пам ти во врем цикла доступа к заданному адресу . При этом ресурсы монитора предварительно запрещены через элемент НЕ 25 по линии 34, ОЗУ ЭВМ запрещено через элемент НЕ 33 по линии 35,Suppose now that the operator has set the monitor instructions, containing access to the address, the masked resource of the monitor and not the receipt of the computer. • Before generating the working fragment by the monitor, the memory block 18 is programmed so as to exclude the borrowing of the working fragment zone. In contrast to the previous case, the third output of the second register 20 is not programmed to one. After transferring control to the working fragment, as it is described, the EXCHANGE state, a logical unit enters the first output 15 of block 7 and through the first element OR 21 enables the operation of the memory block 18 during the access cycle to the specified address. At the same time, the resources of the monitor are previously prohibited through the element NOT 25 through line 34, the computer RAM is prohibited through the element NOT 33 through line 35,
пать логическа единица, котора раз решит работу блока 18 пам ти и через элемент НЕ 30 запретит УЕВ ЭВМ независимо от адреса обмена и раз- 30 решит УВВ пользовател , если таковые р еютс . Если УВВ пользовател нет, то блок 18 пам ти предварительно про граммируетс так, что любой цикл, содержащий ввод-вывод, вызывает сра- 35 батывание блока 18 пам ти ,.что подключает к ЭШ разъем эмулируемого микропроцессора. Если УВВ пользовате л в ЭВМ есть, то блок 18 пам ти -- программируетс так, чтобы исключить 40 срабатывание блока 18 пам ти по адресу , по которому выбираетс УВВ ЭВМ Таким образом, независимо от адреса УВВ, монитором исследуютс как любые УВВ отлаживаемой системы, так и 45 пользовательские УВВ, если они установлены в ЭШ.This is a logical unit that solves the operation of the memory block 18 and, through the element NOT 30, will prohibit the UEV of the computer, regardless of the address of the exchange, and will resolve the user UHV, if any. If there is no user UVB, then memory block 18 is pre-programmed so that any cycle containing I / O causes the memory block 18 to wake up, which connects the emulated microprocessor to the ESH connector. If there is a user UVV in a computer, then memory block 18 is programmed so as to exclude 40 operation of memory block 18 at the address to which the UVV computer is selected. and 45 custom air-blast, if they are installed in the ES.
Программа пользовател может со- держать любые коды рестарта, в том числе и код, совпадающий с кодом, gQ генерируемым формирователем 22. Действительно , если в программе встретитс данный код рестарта, то, если в блоке 13 не указан данный адрес как адрес прерьшани отладки, блок gg 13 не сработает и состо ние ЮНИТОР не восстановитс . Следовательно, по данному коду рестарта будут вьтолне- ны действи , определ емые программой пользовател , но не монитора.The user program may contain any restart codes, including the code that matches the code, gQ generated by shaper 22. Indeed, if this restart code is encountered in the program, then in block 13 this address is not specified as the debugging address, The gg 13 block does not work and the state of the UNITOR is not restored. Consequently, under this restart code, the actions determined by the user program, but not the monitor, will be executed.
14534081453408
а логическа единица из выходе 36 устройства, как и в предыдущем случае , подключает разъем эмулируемого микропроцессора к шинам ЭВМ.and the logical unit from the output 36 of the device, as in the previous case, connects the connector of the emulated microprocessor to the computer buses.
ff
Таким образом, монитор имеет доступ к любой чейке ЗУ как ЭШ, так и отлаживаемой системы, Следова- тельно, с помощью предлагаемого устройства может быть исследовано все адресное пространство ЗУ эмулируемого микропроцессора.Thus, the monitor has access to any cell of the memory of both the ES and the system being debugged. Therefore, using the proposed device, the entire address space of the memory of the emulated microprocessor can be investigated.
Пусть оператор задал инструкцию монитора, содержащую доступ к УВЕ отлаживаемой системы. В этом случае монитор также освобождает место под свой рабочий фрагмент в ОЗУ ЭВМ,Let the operator set a monitor instruction containing access to the UVE of the system being debugged. In this case, the monitor also frees up space for your work piece in computer RAM,
генерирует рабочий фрагмент и передает ему управление. Рабочий фрагмент в, этом случае содержит необходимые команды ввода-вьшода, а не обена с ЗУ. Возникает состо ние ОБМЕН,generates a work fragment and passes control to it. The work fragment in this case contains the necessary input-output commands, and not the charger from the charger. There is a state of EXCHANGE,
-.V- V- . иилпилает состо ние иьин,-.V- V-. or sawn state
на выход 15 блока 7 начинает посту on exit 15, block 7 begins fasting
пать логическа единица, котора разрешит работу блока 18 пам ти и через элемент НЕ 30 запретит УЕВ ЭВМ независимо от адреса обмена и раз- 30 решит УВВ пользовател , если таковые р еютс . Если УВВ пользовател нет, то блок 18 пам ти предварительно программируетс так, что любой цикл, содержащий ввод-вывод, вызывает сра- 5 батывание блока 18 пам ти ,.что подключает к ЭШ разъем эмулируемого микропроцессора. Если УВВ пользовател в ЭВМ есть, то блок 18 пам ти -- программируетс так, чтобы исключить 0 срабатывание блока 18 пам ти по адресу , по которому выбираетс УВВ ЭВМ. Таким образом, независимо от адреса УВВ, монитором исследуютс как любые УВВ отлаживаемой системы, так и 5 пользовательские УВВ, если они установлены в ЭШ.This is a logical unit that will allow operation of the memory block 18 and, through the element NOT 30, will prohibit the UEV of the computer, regardless of the address of the exchange, and will decide the user's UVB, if any. If there is no user UVB, then memory block 18 is pre-programmed so that any cycle containing I / O causes a memory block 18 to trigger, which connects the emulated microprocessor to the ESH connector. If the user has an ACU in the computer, then the memory block 18 is programmed so as to exclude 0 the operation of the memory block 18 at the address to which the computer UVB is selected. Thus, irrespective of the air-blast address, the monitor examines both any air-blast system of the system being debugged and 5 user air-blast systems, if they are installed in the ES.
Программа пользовател может со- держать любые коды рестарта, в том числе и код, совпадающий с кодом, Q генерируемым формирователем 22. Действительно , если в программе встретитс данный код рестарта, то, если в блоке 13 не указан данный адрес как адрес прерьшани отладки, блок g 13 не сработает и состо ние ЮНИТОР не восстановитс . Следовательно, по данному коду рестарта будут вьтолне- ны действи , определ емые программой пользовател , но не монитора.The user program may contain any restart codes, including the code that matches the code Q generated by the shaper 22. Indeed, if the program finds this restart code, then in block 13 this address is not specified as the debugging address, g 13 does not work and the UNITOR state is not restored. Consequently, under this restart code, the actions determined by the user program, but not the monitor, will be executed.
Claims (2)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU874181364A SU1453408A1 (en) | 1987-01-12 | 1987-01-12 | Apparatus for debugging a microprocessor system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU874181364A SU1453408A1 (en) | 1987-01-12 | 1987-01-12 | Apparatus for debugging a microprocessor system |
Publications (1)
Publication Number | Publication Date |
---|---|
SU1453408A1 true SU1453408A1 (en) | 1989-01-23 |
Family
ID=21280456
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
SU874181364A SU1453408A1 (en) | 1987-01-12 | 1987-01-12 | Apparatus for debugging a microprocessor system |
Country Status (1)
Country | Link |
---|---|
SU (1) | SU1453408A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB2395583A (en) * | 2002-11-18 | 2004-05-26 | Advanced Risc Mach Ltd | Diagnostic data capture control for multi-domain processors |
-
1987
- 1987-01-12 SU SU874181364A patent/SU1453408A1/en active
Non-Patent Citations (1)
Title |
---|
Патент US № 4231087, кл. G 06 F 11/00, 1980. Алексеенко А.Г., Галицын А.А., Иванников А.Д. Проектирование радиоэлектронной аппаратуры на микропроцессорах. - М.: Радио и св зь, 1984, с. 226, рис. 4.4. * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB2395583A (en) * | 2002-11-18 | 2004-05-26 | Advanced Risc Mach Ltd | Diagnostic data capture control for multi-domain processors |
GB2395583B (en) * | 2002-11-18 | 2005-11-30 | Advanced Risc Mach Ltd | Diagnostic data capture control for multi-domain processors |
US8082589B2 (en) | 2002-11-18 | 2011-12-20 | Arm Limited | Diagnostic data capture control for multi-domain processors |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5953502A (en) | Method and apparatus for enhancing computer system security | |
US6564326B2 (en) | Method and apparatus for enhancing computer system security | |
US5396609A (en) | Method of protecting programs and data in a computer against unauthorized access and modification by monitoring address regions | |
US5012514A (en) | Hard drive security system | |
CA2044522C (en) | Apparatus and method for loading a system reference diskette image from a system partition in a personal computer system | |
AU635551B2 (en) | An apparatus and method for preventing unauthorized access to bios in personal computer system | |
US5214695A (en) | Apparatus and method for loading a system reference diskette image from a system partition in a personal computer system | |
US5305460A (en) | Data processor | |
EP1013023B1 (en) | Security coprocessor for enhancing computer system security | |
EP0382468A2 (en) | Power-on password functions for computer system | |
CA2194215A1 (en) | Personal computer security system | |
KR19980071365A (en) | Memory access control circuit | |
JP2001256460A (en) | One-chip microcomputer and ic card using the same | |
US5155829A (en) | Memory system and method for protecting the contents of a ROM type memory | |
WO2005116842A1 (en) | Digital signal controller secure memory partitioning | |
JPS6133218B2 (en) | ||
EP0602867A1 (en) | An apparatus for securing a system platform | |
JPS5837587B2 (en) | memory lock device | |
JP2003504740A (en) | Method of securing sensitive information processing in a monolithic security module and related security module | |
SU1453408A1 (en) | Apparatus for debugging a microprocessor system | |
CN112947861A (en) | Data reading method of storage device and electronic device system | |
JP2003263421A (en) | Microcomputer | |
JP2859048B2 (en) | Microcomputer | |
JPH0934795A (en) | Copy protection method for cpu program | |
JPH0822419A (en) | Miswriting prevention system |