SU1267424A1 - Device for checking microprocessor program units - Google Patents

Device for checking microprocessor program units Download PDF

Info

Publication number
SU1267424A1
SU1267424A1 SU833569506A SU3569506A SU1267424A1 SU 1267424 A1 SU1267424 A1 SU 1267424A1 SU 833569506 A SU833569506 A SU 833569506A SU 3569506 A SU3569506 A SU 3569506A SU 1267424 A1 SU1267424 A1 SU 1267424A1
Authority
SU
USSR - Soviet Union
Prior art keywords
block
output
address
input
program
Prior art date
Application number
SU833569506A
Other languages
Russian (ru)
Inventor
Алексей Сергеевич Галуза
Татьяна Васильевна Стальнова
Борис Иванович Донских
Валентина Павловна Лисинецкая
Original Assignee
Предприятие П/Я А-3327
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Предприятие П/Я А-3327 filed Critical Предприятие П/Я А-3327
Priority to SU833569506A priority Critical patent/SU1267424A1/en
Application granted granted Critical
Publication of SU1267424A1 publication Critical patent/SU1267424A1/en

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

Изобретение относитс  к вычислительной технике, в частности к устройствам тестового контрол  логических блоков. Целью изобретени   вл етс  поввшение быстродействи .Устройство содержит генератор тактовых импульсов 1, делитель 2 частоты, селектор-мультиплексор 3, эталонный блок 4, провер емый блок 5, блок 6 пам ти контрольной прюграммы, первый блок 7 сравнени , второй блок 8сравнени , селектор 9 сигналов по длительности , блок 10 управлени  индикацией , блок 11 индикации, блок 12 контрол  хода программы, регистр 13 адреса подпрограммы, блок 14 задани  режимов, два селектора-мультиплексора 15,16, элемент ИЛИ 17.4 ил. (Л сThe invention relates to computing, in particular, to test logic block devices. The aim of the invention is to increase the speed. The device contains a clock pulse generator 1, a divider 2 frequencies, a selector-multiplexer 3, a reference block 4, a test block 5, a memory block 6 of the control program, the first comparison block 7, the second comparison block 8, the selector 9 signals by duration, the display control unit 10, the display unit 11, the program progress control unit 12, the subprogram address register 13, the mode setting unit 14, two selector-multiplexer 15.16, the OR element 17.4 Il. (L with

Description

1 Изобретение относитс  к вычислительной технике, в частности к устройствам тестового контрол  логических блоков. Целью изобретени   вл етс  повышение быстродействи . На фиг.1 приведена структурна  схема устройства; на Лиг. 2 - вариант селектора 9 дл  положительных сигналов; на фиг. 3 - вариант построени  блока 12 контрол  хода программы; на фиг. 4 - вариант схемы блока 10 управлени  индикацией. Устройство содержит генератор 1 тактовых импульсов, делитель 2 частоты , селектор-мультиплексор 3, эталонный блок 4, провер емый блок 5, блок 6 пам ти контрольной програм1 1 , первый блок 7 и второй 8 блоки сравнени , селектор 9 сигналов по дпительности, блок 10 управлени  ин дика:цией, блок 11 индикации, блок 12контрол  хода программы, регистр 13адреса подпрограммы, блок 14 за . Дани  режим ов, селекторы-мультиплек соры 15 и 16, элемент ШШ 17, выход Синхронизаци . Селектор 9 сигналов по длительнос ти (фиг.2) содержит вход 18 Свлекто ра, диод 19, резистор 20, конденсатор 21, пороговый элемент 22, выход 23. Блок 12 контрол  хода программы (фиг.З) содержит выход 24 прерывани вход 25 сигнала ошибки, адресный вход 26 провер емого блока, адресный вход 27 эталонного блока, входа 28 и 29 начала работы блока задани  ре жима5, коммутатор 30, элемент И 31, д шифратор 32, триггеры 33 - 35, инди катор 36 первой ошибки, индикатор 3 второй ошибки, индикатор 38 годности . Блок 10 управлени  индикацией (фиг,4) содержит элементы И 39, 40 элемент ИЛИ 41. Генератор 1 импульсов , делитель 2 частоты и селектормультиплексор 3 обеспечивают тактирование эталонного и провер емого блоков на низкой-высокой частотах. Управление селектором-мультиплексором 3 осуществл етс  блоком 14 зада ни  режимов работы. Эталонный и провер емый блоки 4, 5 представл ют собой программные ус ройства типа процессора или микропр цессора. Входы и выходы блоков 4 и 5 имеют следукндее назначение: вход такто 4: вых сигналов, соединенный с выходом селектора-мультиплексора 3; вход первой магистрали данных, соединен- . ный с выходом блока 14 задани  режимов работы (в данном устройстве используетс  дл  приема разр дов начального адреса программы с блока 14, в реальных устройствах обработки данных используетс  дл  приема данных от абонентов); вход второй магистрали данных, соединенный с выходом регистра 13 адреса подпрограммы (в устройствах обработки данных используетс  дл  приема данных с оперативного запоминающего устройства);вход разр дов команд, соединенный с блоком 6 пам ти контрольной программы; вход прерывани , соединенный с блоком 12; выход магистрали, включающей группы информационных выходов, импульсных и потенциальных .сигналов, соединенный с селекторами-мультиплексорами 15 и 16; выход адресной магистрали , соединенной с блоком 12 контрол  хода программы с селектороммультиплексором- . Блок 6 пам ти контрольной програм ы предназначен дл  хранени  програм№1 контрол , Дл  считывани  содержимого определенной  чейки блока 6 на его вход подаетс  с блока 4 адрес  чейки. Блок 7 сравнени  совместно с элементом ШШ 1 7 выполн ет функцию схеМЫ сравнени  одноименнь1х выходных сигналов блоков 4,5. котооа  вьщает общий сигнал при несравнении любой пары сигна.пов. Кроме того, результат поразр дного сложени  выдаетс  с блока 7 на блок 11 индикации. Блок 8 сравнени  осуществл ет сравнение текущего адреса контрольной программы с заданным на блоке 14 задани  режимов адресом сиЯхронизацни и выдачу сигнала сравнени  на блок 10 управлени  индикацией. Селектор 9 сигналов по длительности пропускает на выход только те сигналы, дх1ительность которых превышает заданную. При сигналах короткой дпительности конденсатор 21 не успевает зар дитьс  до уровн , достаточного дл  срабатывани  порогового элемента 22. Диод 19 обеспечивает ускоренный разр д конденсатора 21 после окончани  сигнала. Блок 11 индикации осуществл ет индикацию адреса ошибки, а также результата поразр дного сложени  одно3 выходных сигналов 4 и 5 по адресу ошибки или заданному адресу синхронна ации. Блок 42 контрол  хода программы реагирует на сигнал ошибки с селектора 9 и фиксированные адреса программы: адрес подпрограммы ошибки и конечный адрес программы. Возможный вариант построени  блока 12 приведен на фиг,3. При поступлении по входу 25 сигнала ошибки включаетс  триггер 33 через элемент И 31. С выхода триг гера 33 сигнал поступает на индикатор первой ошибки дл  индикации неправильной работы провер емого блока 5, С элемента 31 (выход 24) выдаетс  также сигнал прерывани  дл  блоков 4 и 5, по которому запускаетс  программа прерывани . Если по входу 29 с блока 14 сигнал отсутствует, то сигнал ошибки через элемент И 31 не про ходит, что дает возможность анализировать отработку участков контрольной программы после ошибки. Дешифратор 32 опознает адрес подпрограммы ошибки и адрес конца контрольной программы по содержимому адресной ма гистрали 26 или 27 (в зависимости от состо ни  входа 28, который управл ет выбором направлени  коммутации). При обнаружении адреса подпрограммы ошибки сигналом с дешифратора 32 включаетс  триггер 34, выход которого индицируетс  индикатором второй ошибки. При обнаружении адреса конца программы с дешифратора 32 включаетс  триггер 35, что приводит к тому, что индикатор 38 годности индицирует годность провер емого блока. Блок 10 в зависимости от заданного на блоке 14 режима работы UOOMWрует сигнал ввода информации на блок 11 индикации либо по сигналу .несравнени  с блока 8. Регистр 13 адреса подпрограммы. хранит начальный адрес текущей подпрограммы . Блок 14 режимов работы представл ет собой набор тумблеров, задающих режим работы устройства. Выходы блока 14 имеют следующие функциональные назначени : первьй выход, св занный с входами блоков 4 и 5, предназначен дп  задани  начального адреса контрольной программы; второй выход,св занный с входом селектора-мультиплек сора 3, предназначен дл  разрешени  тактировани  блоков 4 и 5 на высокой и низкой частоте; третий выход,св 24 занный с входом блока 12 контрол  хода программы, предназначен дл  задани  режима контрол ; четвертый и п тый выходы, св занные с селекторами 15 и 16 соответственно, задают коды направлени  коммутации; шестой , выход предназначен дл  задани  адре-. са синхронизации на вход блока 8; седьмой выход задает блоку 10 режим индикации. Селекторы-мультиплексоры 15 и 16 осуществл ют коммутацию группы выходных сигналов соответственно провер емого и эталонного блоков на блок 7 поразр дного сложени . Устройство работает следующим образом . Принцип контрол  провер емого блока основан на сравнении его выходных сигналов с выходными сигналами эталонного блока в процессе синхронной обработки обоими блоками контрольной программы. Контрольна  программа представл ет собой совокупность подпрограмм, кажда  из которых провер ет правильное выполнение определенной группы команд (операций). Правильность результата провер етс  сравнением фак- тического результата с предварительно заданным (эталонным) результатом. При сравнении результатов выполн етс  очередна  подпрограмма, при несравнении осуществл етс  переход на подпрограмму Ошибка. В начале подпрограммы производитс  засылка начального адреса подпрограммы в регистр 13, после чего выполн етс  группа провер емых команд и провер етс  правильность результата. Затем в один из оперативных регистров контролируемого процессора засылаетс  программный адрес блока команд проверки правильности результата, что в дальнейшем потребуетс  дл  индикации адреса программы обнаружени  ошибки. Подпрограммы Ошибка и Прерывание представл ют собой последовательность . операций пересылок содержимого внутренних (оперативных) регистров контролируемого процессора. В конце подпрограмьы производитс  занесение содержимого регистра 13 адреса подпрограммы в счетчик команд, что обеспечивает возврат на подпрограмму, обнаружившую ошибку. Как будет пока- ; зано ниже, аппаратна  часть устройства обеспечивает возможность индикации результата выполнени  операции по любому адресу программы, поэтому введенные пересылки в подпрограмму Ошибка дают возможность индикации содержимого внутренних регистров процессора на момент ошибки.1 The invention relates to computing, in particular, to test logic block devices. The aim of the invention is to increase speed. Figure 1 shows the block diagram of the device; on league. 2 - a variant of the selector 9 for positive signals; in fig. 3 - a variant of building the program control unit 12; in fig. 4 is a variant of the display control unit 10. The device contains a clock pulse generator 1, a frequency divider 2, a selector-multiplexer 3, a reference block 4, a test block 5, a memory block 6 of the control program 1 1, the first block 7 and the second 8 comparison blocks, the selector 9 of signals according to the frequency range 10 control unit: display unit, display unit 11, program progress control block 12, subprogram register 13 addresses, block 14 for. Dani regime s, selectors-multiplexes 15 and 16, element SH-17, output Synchronization. The selector 9 of the signals in duration (Fig. 2) contains the input 18 of the Glitter, the diode 19, the resistor 20, the capacitor 21, the threshold element 22, the output 23. The program progress control unit 12 (Fig. 3) contains the output 24 of the interrupt 25 input signal 25 errors, address input 26 of the block to be tested, address input 27 of the reference block, input 28 and 29 of the start of the operation of the mode setting block 5, switch 30, element I 31, d encoder 32, triggers 33 - 35, indicator 36 of the first error, indicator 3 second error, 38 expiration indicator. The display control unit 10 (FIG. 4) contains elements AND 39, 40 of element OR 41. Pulse generator 1, frequency divider 2 and selector multiplexer 3 provide clocking of the reference and test blocks at low-high frequencies. The selector-multiplexer 3 is controlled by the operation mode setting unit 14. The reference and verifiable blocks 4, 5 are software devices such as a processor or microprocessor. The inputs and outputs of blocks 4 and 5 have the following purpose: tact input 4: output signals connected to the output of the selector-multiplexer 3; input of the first data line, connected with the output of the block 14 setting the operation modes (in this device it is used to receive bits of the initial address of the program from block 14, in real data processing devices it is used to receive data from subscribers); the input of the second data line connected to the output of the register 13 of the address of the subroutine (in data processing devices it is used to receive data from random access memory); the input of instruction bits connected to block 6 of the memory of the control program; interrupt input connected to block 12; the output of the trunk, which includes groups of information outputs, pulsed and potential signals, connected to multiplexer selectors 15 and 16; output of the address line connected to the program control unit 12 of the program progress with the multiplexer selector-. Block 6 of the memory of the control program is designed to store the program number 1 of the control. To read the contents of a particular cell of block 6, the address of the cell is sent from block 4 to its input. The comparison unit 7, together with the SHS 1 7 element, performs the function of the comparison scheme of the same output signals of the blocks 4.5. which is a common signal when a pair of sig.par is not compared. In addition, the result of one-by-one addition is output from block 7 to display block 11. Comparison unit 8 compares the current address of the control program with the synchronization address specified on the mode setting unit 14 and outputs a comparison signal to the display control unit 10. The selector 9 of signals, by duration, allows only those signals to exit, the dx1 of which exceeds the specified one. With short-duration signals, the capacitor 21 does not have time to charge to a level sufficient to trigger the threshold element 22. The diode 19 provides an accelerated discharge of the capacitor 21 after the end of the signal. The display unit 11 displays the error address, as well as the result of a stepwise addition of one3 output signals 4 and 5, to the error address or the specified synchronization address. The program control unit 42 responds to the error signal from the selector 9 and the fixed program addresses: the address of the error routine and the final address of the program. A possible construction of block 12 is shown in FIG. 3. When an error signal is received at input 25, trigger 33 is triggered via element 31. From output trigger 33, the signal goes to the first error indicator to indicate that the tested block 5 does not work, element 31 (output 24) is also given an interrupt signal for blocks 4 and 5, on which the interrupt program is started. If there is no signal at input 29 from block 14, then an error signal does not pass through the E 31 element, which makes it possible to analyze the testing of sections of the control program after an error. The decoder 32 identifies the address of the error subroutine and the address of the end of the control program by the contents of the address mains 26 or 27 (depending on the state of input 28, which controls the selection of the switching direction). When an error subroutine address is detected, the signal from decoder 32 turns on trigger 34, the output of which is indicated by a second error indicator. When an end-of-program address is detected from the decoder 32, a trigger 35 is turned on, which causes the validity indicator 38 to indicate the validity of the block being tested. Unit 10, depending on the operating mode specified on unit 14, UOOMWells an information input signal to the display unit 11 or on a signal not compared with unit 8. Subprogram address register 13. stores the starting address of the current subroutine. The operation mode block 14 is a set of toggle switches defining the operation mode of the device. The outputs of block 14 have the following functional purposes: the first output associated with the inputs of blocks 4 and 5 is for setting the initial address of the control program; a second output connected to the input of the selector-multiplex 3, is designed to enable clocking of blocks 4 and 5 at high and low frequency; the third output 24 connected to the input of the program control unit 12 is for setting the monitoring mode; the fourth and fifth outputs associated with the selectors 15 and 16, respectively, set the switching direction codes; sixth, the output is intended to set the address-. Sa synchronization to the input of block 8; the seventh output sets the block 10 display mode. The selectors-multiplexers 15 and 16 switch the group of output signals of the checked and reference blocks, respectively, into block 7 of sequential addition. The device works as follows. The principle of control of the tested block is based on comparing its output signals with the output signals of the reference block in the process of simultaneous processing by both blocks of the control program. A control program is a set of subroutines, each of which checks the correct execution of a certain group of commands (operations). The correctness of the result is verified by comparing the actual result with the predefined (reference) result. When comparing the results, the next subroutine is executed; in case of non-comparison, the transition is made to the Error subroutine. At the beginning of the subroutine, the starting address of the subroutine is sent to register 13, after which a group of checked instructions is executed and the correctness of the result is checked. Then, one of the operational registers of the monitored processor is sent the program address of the block of commands for checking the correctness of the result, which will be required later to indicate the address of the error detection program. The Error and Interrupt subroutines are a sequence. operations of transferring the contents of the internal (operational) registers of the controlled processor. At the end of the subroutine, the contents of the register 13 of the subroutine address are entered into the instruction counter, which provides a return to the subroutine that detected the error. As it will be; Below, the hardware part of the device provides the ability to indicate the result of the operation at any program address, therefore, the entered transfers to the Error subroutine enable the contents of the internal registers of the processor to be indicated at the time of the error.

Запись адреса подпрограмгЫ в регистр 13 осуществл етс  по шине данных блока 4 одной из операций пересыпки информации из состава операций блоков 4 и 5 (например, операцией пересылки константы, значение которой соответствует адресу начала подпрограммы ). Пересылка информации в регистр 13 сопровождаетс  нгшичием сигнала на одной из адресных цепей блока 4. Только при наличии этого сигнала, информаи 1  вводитс  в регистр 13.The address of the subroutine is written to register 13 via the data bus of block 4 of one of the operations of transferring information from the set of operations of blocks 4 and 5 (for example, by sending a constant whose value corresponds to the address of the beginning of the subroutine). The transfer of information to the register 13 is accompanied by a signal on one of the address circuits of block 4. Only with this signal, information 1 is entered into the register 13.

Проверка работоспособности объекта производитс  на двух частотах: высокой (рабочей) и более низкой,кратной рабочей. Это обусловлено тем,что на высокой частоте тактировани  на селекторе 9 сигналов по длительности неразличимы достоверные и ложные сигналы несоответстви  из-за малой длительности выходных сигналов.The performance check of an object is performed at two frequencies: high (working) and lower, multiple to working. This is due to the fact that at a high clocking frequency on the selector 9 of the signals, reliable and false signals of inconsistency are indistinguishable due to the short duration of the output signals.

На первом этапе проверка объекта производитс  на низкой частоте.At the first stage, the object is checked at a low frequency.

Перед началом испытаний на блокеBefore starting the test on the block

14задани  режимов устанавливаютс  коды.начального адреса контрольной программы и разрешени  селекторов14 modes of tasks are set codes. The initial address of the control program and the resolution of the selectors.

15и 16 дл  первой группы одноименных сигналов испытуемого и эталонного блоков. По нажатию кнопки Пуск (не показано) блоки 4 и 5 начинают выполнение контрольной программы с адреса, установленного на шине блока 14 режимов.15 and 16 for the first group of the same signals of the test and reference blocks. By pressing the Start button (not shown), blocks 4 and 5 begin the execution of the control program from the address set on the bus of the 14 modes block.

Блок 7 сравнени , выполн   поразр дное сложение по модулю два, выдает по каждому из разр дов единичный сигнал при несовпадении значений входньпс сигналов соответствующих разр дов , т.е. в моменты несравнени  пар входных сигналов. Элемент 17 ИЛИ объедин к ций выходы всех разр дов блока 7 сформирует общий сигнал несравнени  при несравнении любой пары входных сигналов блока 7, Общий сигнал несравнени , если его длительность превьшает допустимую диительность ложных несравнений, проходит через селектор 9 сигналов по длительности на блоки 10 и 12 в качестве сигнала ошибки. Если длительность общего сигнала несравнени  меньше допустимой , то он не пропускаетс  се , лектором 9 сигналов по длительности.. Блок 10 по сигналу ошибки формирует сигнал ввода результата поразр дного сравнени  и текущего адреса программы в блок 11.Comparison unit 7, performing modulo two bitwise addition, produces a single signal for each of the bits if the values of the input signals of the corresponding bits do not match, i.e. at the moments of noncomparison of pairs of input signals. Element 17 OR combining outputs of all bits of block 7 will form a common noncomparison signal with noncomparison of any pair of input signals of block 7. The general noncomparison signal, if its duration exceeds the allowable dummy of false noncomparisons, passes through the selector 9 of signals in duration to blocks 10 and 12 as an error signal. If the duration of the general signal of incomparison is less than permissible, then it is not passed by the signal generator 9 by the duration. Block 10, by an error signal, generates a signal to input the result of bit comparison and the current address of the program in block 11.

Блок 12 контрол  хода программы по сигналу ошибки включает индикатор первой ошибки и выдает сигнал Block 12 of monitoring the progress of the program by an error signal turns on the first error indicator and issues a signal

0 прерывани  на блоки 4 и 5, по которому запускаетс  программа, где производитс  занесение содержимого регистра 13 (начальный адрес текущей подпрограммы ) в счетчик команд, за счет 0 interrupts for blocks 4 and 5, according to which the program is started, where the contents of register 13 (the starting address of the current subroutine) is recorded in the command counter, at the expense of

5 чего происходит зацикливание на подпрограмме , котора  порождает сигнал ошибки.5 of which there is a looping on the subroutine, which generates an error signal.

Если ни в одной из подпрограмм не сформируетс  сигнал ошибки, то If no error signal is generated in any of the subroutines, then

0 контрольна  программа доходит до конечного а,дреса, который опознаетс  блоком 12 контрол  хода программы и формирует сигнал годности. При зацикливании (в случае обнаружени  ошибки) выполнение остальной части контрольной программы можно проверить, установив на блоке 14 начальный адрес, следующий после зациклившейс  подпрограммы . После проверки первой группы сигналов блоков 4 и 5 провер етс  аналогично выполнение контрольной программы дл  остальных групп сравниваемых сигналов, которые подключаютс  через селекторы 15 и 16 к блоку 7 по сигн;шам разрешени  с блока 14 режимов„0, the control program reaches the final a, the address, which is recognized by the program control unit 12 and generates a validity signal. When looping (if an error is detected), the execution of the rest of the control program can be checked by setting in block 14 the starting address following the looped subroutine. After checking the first group of signals of blocks 4 and 5, the control program for the remaining groups of compared signals that are connected via selectors 15 and 16 to block 7 is checked in a similar way;

Место неисправности определ етс  по диагностическому словарю в соответствии с информацией, отображаемой блоком 1I индикации. Кроме того, зацикливание программы на небольшом участке дает возможность контрол  в динамическом режкие выходных сигналов отдельных элементов провер емого блока 5 с помощью осциллографа или другого прибора дл  более точной локализации неисправности.The location of the malfunction is determined by the diagnostic dictionary in accordance with the information displayed by the display unit 1I. In addition, looping the program in a small area allows controlling the dynamic sharply output signals of individual elements of the tested block 5 using an oscilloscope or other device to more accurately locate the fault.

Claims (1)

Часто бывает, что причина неисправности возникает раньше момента обнаружени  неисправности, и имеетс  необходимость в определении состо ни  эталонного и провер емого блоков в предшествующие ошибке моменты времени . Дл  этого в блоке 14 задани  режимов включаетс  тумблер, задающий блоку 10 режим индикации по сигналу сравнени  с блока 8. В этом случае на блоке 14, выбрав необходимый ад7 pec программы в качестве адреса синх ронизации и отключив один из селекторов 15 или 16, можно вывести на индикацию в блоке 11 по набранному адресу группы сигналов этапонного (при отключении селектора 15) или провер емого (отключен селектор 16) блоков. Так, если на блоке 14 задани  режимов включить разрешение первой группы сигналов, только дл  селектора-мультиплексора 15 (дл  селек тора 16 разрешение не включать), то на выход блока 7 будет транслировать с  перва  группа сигналов блока 5, поскольку на вход блока 7 поступает информаци  только с селектора 15 и результат поразр дного сложени  б.удет равен входному коду, В момент формировани  импульса блоком 8 сравнени , т.е. в момент сравнени  текущего адреса программы и набранного на блоке 14 задани  режимов, с блока 10 выдаетс  сигнал, по которому информаци  с блока 7 (в данном случае группа из сигналов блока 5) вводитс  в блок I1 индика1щи. Сигнал сравнени  с блока 8 может использоватьс  также дл  синхронизации-осциллографа , с помопгью которого можно исследовать сигналы элементов провер е мого блока 5 в любом месте программы . Г . .. Второй этап проверки объекта проводитс  на высокой рабочей частоте. В этом режиме работа объекта контролируетс  блоком 12 без учета сигнала ошибки с селектора 9 путем анализа адресных выходов 26 блока 5; При этом запрещение ошибки и подключение адресных входов 26 дл  анализа в блоке 12 проводитс  по сигналам 29 и 28 соответственно с блока 14 режимов . При неправильном вьтолнении отдельных операций провер емым блоком что обнаруживаетс  программным сравнением в блоке 5 получаемых результатов с заранее заданными, блок пере ходит на выполнение подпрограммы оши бок. Блок 12 контрол  хода программы обознает адрес подпрограммы ошибки и индицирует вторую ошибку. Подпрограмма Ошибка организует зацикливание программы также, как и программа Прерывание, При правильной работе провер емого блока 5 программа доходит до конечного адреса и включает индикатор годности. Остальные блоки устройства на втором этапе ра248 ботают идентично первому этапу. Дл  повьш1ени  достоверности контрол  можно , задав на блоке 14 дл  блока 10 условие индикации по сигналу сравне- ни  с блока 8 и набира  в качестве адреса синхронизации адреса контрольных точек программы, убедитьс  по показани м блока 11 индикации в прохождении программы в этих контрольных точках. На первом этапе проверки (на низкой частоте) блок 12 также опознает адрес подпрограммы ошибки и за счет этого могут вы вл тьс  неисправности , которые не про вл ютс  на выходных сигналах, что повышает достоверность контрол . С помощью блока I2 контрол  хода программы и блока 11 индикации возможна проверка работоспособности предлагаемого устройства (самопроверка ) без провер емого блока 5, что необходимо после изготовлени  устройства , при ремонте и периодических проверках. Проверка производитс  аналогично описанной проверке на высокой частоте с тем отличием, что производитс  анализ выходов 27 блока 4; При этом блок 12 контролирует ход программы, за счет чего провер етс  большинство операций, св занных с преобразованием инфо15мации. и внутренними пересылками. Проверка выходных сигналов осуществл етс  визуально на блоке 11 индикации в определенных адресах программы, которые задаютс  блоком 14 задани  режимов. Формула изобретени  Устройство дл  контрол  микропроцессорных программных блоков, содержащее генератор тактовых импульсов, эталонный блок, первый блок сравнени , блок индикации, причем выхода блока сравнени  соединены с группой . информационных входов блока индикации , отличающеес  тем, что, с целью повьшени  быстродействи , в устройство введены делитель частоты, первый, второй и третий селекторы-мультиплексоры , блок пам ти контрольной программы, второй блок сравнени , селектор сигналов по длительности , блок управлени  индикацией , содержащий первый и второй элементы И и элемент ИЛИ, регистр адре- са подпрограммы, элемент ИЛИ, блок задани  режимов и блок контрол  хода программы, причем выход генератора тактовых импульсов соединен с первым Ш1формационным входом и через делитель частоты - с вторым информационным входом первого селектора-мультиплексора , выход которого соединен с тактовыми входами эталонного и прове р емого блоков, выход начгшьного адреса программы блока задани  режимов соединен с входами установки начального адреса эталонного и провер емого блоков, выход начала работы блока задани  режимов соединен с управл ющим входом первого селектора-1чультиплексора , информапионный и адресный выходы провер емого блока соединены соответственно с первым и вторым информационными входами второго селектора-мультиплексора , выход которого соединен с первым входом первого бло ка сравнени , адресный и информацион ный выходы эталонного блока соединеш . соответственно с первым и вторым информационными входами третьего селектора-мультиплексора , выход которо го соединен с вторым входом первого блока сравнени , адресный выход эталонного блока соединен с входом записи регистра адреса подпрограммы, с первым входом второго блока сравнени , с первым ин формационным входом блоко индикации и с адресным входом блока пам ти контрольной программы, выход которого соединен с входами команд эталонного и провер емого блоков,, информационный выход эталонного блока соединен с информационным входом регист ра адреса подпрограммы, информационный выход которого соединен с адресными входами эталонного и проЕ1ер емо г6 блоков, первый и второй вых.оды оп ределени  направлени  коммутац;ии блока задани  режимов соединены с первыми управл ющими входами второго и третьего селекторов-мультиплексоров соответственно, адресный выход и выход разрешени  индикации блока заданий режимов соединень соответственно с вторым входом второго блока сравнени  и с первым входом первого элемента И и с инверсным входом второго элемента И блока управлени  индикацией , выход элемента ИЛИ блока управлени  индикацией соединен с управл ющим входом блока индикации, выход второго блока сравнени  соединен с вторым входом первого элемента И блока управлени  индикацией и  вл етс  выходом ошибки устройства,выт ходы первого блока сравнени  соединены с входами элемента ШШ, выход которого через сепектор сигналов по длительности соединен с пр мым входом второго элемента И блока управлени  индшсацией, выходы первого и второго элементов И блока управлени  индикацией соединены с входами элемента ШШ, блок контрол  хода програм содержит коммутатор, элемент И, дешифратор, первый, второй и третий триггеры, индикатор первой ошибки, индикатор второй ошибки и индикатор годности, причем выход начала работы блока задани  режимов соединен с первым входом элемента И и с управл ющим входом коммутатора, выход которого соединен с входом дешифратора , первый и второй выходы которого соединены с единичными входами соответственно первого и второго триггеровэ выход элемента И соеди нен с единичным входом третьего триггера блока контрол  хода програмт г, входами прерывани  эталонного и провер емого блоков, адресные выходы эталонного и провер емого блоков соединены соответственно с первьм и вторым информационными входами коммутатора блока контрол  хода программы , выхо,цы первого, второго и третьего триггеров блока контрол  кода программы соединены соответственно с индикатором годности, входом индикатора первой ошибки, входом индикатора второй ошибки, выход селектора сигналов по длительности соединен с вторым входом: элемента И блока контрол  хода программы.It often happens that the cause of the malfunction arises before the moment of malfunction detection, and there is a need to determine the state of the reference and verifiable blocks at the preceding error points in time. To do this, in the mode setting unit 14, a toggle switch is set to set the display mode to the unit 10 according to the comparison signal from unit 8. In this case, in block 14, you can select the required program adc as the sync address and disable one of the selectors 15 or 16 for indication in block 11 by the dialed address of the group of signals of the stadium (if the selector 15 is turned off) or the block being checked (the selector 16 is turned off). So, if at the mode setting unit 14 the resolution of the first group of signals is turned on, only for the selector-multiplexer 15 (for the selector 16, the resolution is not included), then the output of block 7 will be transmitted from the first group of signals of block 5, since the input of block 7 is received information only from the selector 15 and the result of one-by-one addition will be equal to the input code. At the time of formation of a pulse by the comparison unit 8, i.e. at the moment of comparing the current address of the program and typed in the mode setting block 14, from block 10, a signal is output by which information from block 7 (in this case, a group of signals from block 5) is entered into the display unit I1. The comparison signal from block 8 can also be used to synchronize an oscilloscope, with the help of which it is possible to examine the signals of the elements of the checked block 5 at any place in the program. G. .. The second stage of the inspection of the object is carried out at a high operating frequency. In this mode, the operation of the object is controlled by block 12 without taking into account the error signal from the selector 9 by analyzing the address outputs 26 of block 5; In this case, the prohibition of the error and the connection of the address inputs 26 for analysis in block 12 is carried out by signals 29 and 28, respectively, from a block of 14 modes. In case of improper fulfillment of individual operations by the checked block, which is detected by software comparison in block 5 of the obtained results with predetermined ones, the block switches to execution of the subroutine error. The program control unit 12 designates the address of the error subroutine and indicates the second error. The Error subroutine organizes the program looping in the same way as the Interrupt program. When the tested block 5 is working correctly, the program reaches the final address and turns on the expiration indicator. The remaining units of the device in the second stage are working identical to the first stage. To increase the reliability of the control, you can specify on display 14 for block 10 the indication condition by the signal from block 8 and dial as the synchronization address of the address of the program checkpoints, verify by the indications of the display 11 that the program passes through these checkpoints. At the first stage of testing (at a low frequency), block 12 also recognizes the address of the error subroutine and, as a result, malfunctions that are not displayed on the output signals can be detected, which increases the reliability of the control. Using the program control unit I2 and the display unit 11, it is possible to verify the operability of the proposed device (self-test) without the checked unit 5, which is necessary after the device has been manufactured, during repair and periodic checks. The test is carried out similarly to the described high frequency test with the difference that the output 27 of unit 4 is analyzed; At the same time, unit 12 controls the program run, thereby checking most of the operations associated with the transformation of information. and internal shipments. The output signals are checked visually on the display unit 11 at certain program addresses, which are specified by the mode setting unit 14. Claims An apparatus for monitoring microprocessor-based software blocks, comprising a clock pulse generator, a reference block, a first comparison block, a display unit, the output of the comparison block connected to the group. information inputs of the display unit, characterized in that, in order to improve speed, a frequency divider, first, second and third selector-multiplexers, a control program memory block, a second comparison unit, a signal selector by duration, an indication control unit containing the first and second elements AND and the OR element, the subroutine address register, the OR element, the mode setting block and the program progress control block, the output of the clock generator connected to the first W1 information input and through the frequency divider - with the second information input of the first selector-multiplexer, the output of which is connected to the clock inputs of the reference and checked blocks, the output of the start address of the program of the mode setting block is connected to the inputs of the initial address of the reference and checked blocks, the start of the work of the task block modes are connected to the control input of the first selector-1 multiplexer, information and address outputs of the tested block are connected respectively to the first and second information inputs second selector-multiplexer whose output is connected to a first input of the first comparator blo ka, address and information yield of the reference block soedinesh. respectively, the first and second information inputs of the third selector-multiplexer, the output of which is connected to the second input of the first comparison unit, the address output of the reference unit, is connected to the input of the record register of the subroutine's address, the first input of the second comparison unit, and the first information input of the display unit and with the address input of the memory of the control program, the output of which is connected to the inputs of commands of the reference and verifiable blocks, the information output of the reference block is connected to the information input The subprogram address register, whose information output is connected to the address inputs of the reference and programmable G6 blocks, the first and second outputs for determining the direction of the switch, and the mode setting block are connected to the first control inputs of the second and third selectors-multiplexers, respectively, address the output and output of the resolution of the indication of the mode setting block are connected respectively with the second input of the second comparison unit and with the first input of the first element And with the inverse input of the second element And the control unit and indication, the output of the OR element of the indication control unit is connected to the control input of the display unit, the output of the second comparator unit is connected to the second input of the first element AND of the indication control unit and is the error output of the device, the outputs of the first comparator unit are connected to the inputs of the NL element, output which, through the signal separator, is connected to the direct input of the second element AND of the automation control unit through the duration of the separator, the outputs of the first and second elements AND of the display control unit are connected to the inputs of the element ШШ, program control unit contains a switch, an And element, a decoder, the first, second and third triggers, the first error indicator, the second error indicator and the validity indicator, the output of the beginning of operation of the mode setting unit is connected to the first input of the And element and to the control input the switch, the output of which is connected to the input of the decoder, the first and second outputs of which are connected to the single inputs of the first and second trigger, respectively, of the output element And connected to the single input of the third trigger of the progress control unit n RGT, interrupt inputs of the reference and the checked blocks, the address outputs of the reference and the checked blocks are connected respectively to the first and second information inputs of the switch of the program’s progress control block, the outputs of the first, second and third triggers of the program code control block , the input of the indicator of the first error, the input of the indicator of the second error, the output of the signal selector is connected to the second input: the element AND of the program control unit. J8J8 2626 30thirty 3232 2727 2J2J 2222 2/ 2 / (риг. 2(rig 2 Ошибка 2 |J7Error 2 | J7 J " ГоденFit 3535 3838 фи.Зfi.Z От djfPKO§From djfPKO§ 3333 От блока ifyFrom the ify block О т блока 9O t block 9 4G4G Н а блок f гH a block f g 1one (put. 4(put. 4
SU833569506A 1983-03-30 1983-03-30 Device for checking microprocessor program units SU1267424A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU833569506A SU1267424A1 (en) 1983-03-30 1983-03-30 Device for checking microprocessor program units

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU833569506A SU1267424A1 (en) 1983-03-30 1983-03-30 Device for checking microprocessor program units

Publications (1)

Publication Number Publication Date
SU1267424A1 true SU1267424A1 (en) 1986-10-30

Family

ID=21055570

Family Applications (1)

Application Number Title Priority Date Filing Date
SU833569506A SU1267424A1 (en) 1983-03-30 1983-03-30 Device for checking microprocessor program units

Country Status (1)

Country Link
SU (1) SU1267424A1 (en)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Авторское свидетельство СССР № 605216, кл. G 06 F 11/00, 1975. Авторское свидетельство СССР № 661552, кл. G Р6 F 11/00, 1976. Авторское свидетельство СССР № 633019, кл. G 06 F 11/00, 1975. *

Similar Documents

Publication Publication Date Title
US5051996A (en) Built-in-test by signature inspection (bitsi)
US4195770A (en) Test generator for random access memories
US4752928A (en) Transaction analyzer
US4620302A (en) Programmable digital signal testing system
US4441074A (en) Apparatus for signature and/or direct analysis of digital signals used in testing digital electronic circuits
US5610925A (en) Failure analyzer for semiconductor tester
US5325365A (en) In a memory emulation test apparatus, a method of and system for fast functional testing of memories in microprocessor-based units
SU1267424A1 (en) Device for checking microprocessor program units
SU1161991A1 (en) Device for diagnostic checking of memory
SU1432528A2 (en) Apparatus for monitoring the functioning of logical modules
SU1262504A1 (en) Device for checking digital units
SU1265859A1 (en) Device for checking blocks of internal memory
SU1278855A1 (en) Device for checking and diagnostic testing of digital units
RU2099777C1 (en) Device which searches for alternating fails in microprocessor systems
SU1184015A1 (en) Device for checking internal memory
SU1013956A2 (en) Logic circuit checking device
SU563697A1 (en) Device for monitoring long-time memories
RU2050588C1 (en) Method for control and debug of real-time programs and device for its implementation
SU911531A1 (en) System for testing and diagnosis of digital units
SU526832A1 (en) Adaptive diode test device
SU1071979A1 (en) Device for digital assembly diagnostics
SU1223233A1 (en) Device for checking uniform logic units
SU1705875A1 (en) Device for checking read/write memory
SU970283A1 (en) Device for locating malfunctions in logic assemblies
SU955072A1 (en) Logic circuit functioning checking device