SU1348840A1 - Program debugging device - Google Patents
Program debugging device Download PDFInfo
- Publication number
- SU1348840A1 SU1348840A1 SU853945558A SU3945558A SU1348840A1 SU 1348840 A1 SU1348840 A1 SU 1348840A1 SU 853945558 A SU853945558 A SU 853945558A SU 3945558 A SU3945558 A SU 3945558A SU 1348840 A1 SU1348840 A1 SU 1348840A1
- Authority
- SU
- USSR - Soviet Union
- Prior art keywords
- inputs
- input
- group
- output
- elements
- Prior art date
Links
Landscapes
- Complex Calculations (AREA)
Description
мального внутреннего зыка проектируемой ЭВМ, Целью изобретени вл етс расширение функциональных возможностей за счет запоминани команды начала, адреса команды конца, количества повторений цикла и времени выполнени цикла. Устройство содержит блок 1 буферной пам ти, блок 2 ассоциативной пам ти, регистр 3 клю-, ча защиты, регистр 4 кода команды.Minimal internal language of the computer being designed. The aim of the invention is to expand the functionality by memorizing the start command, the end command address, the number of repetitions of the cycle, and the cycle time. The device contains the block 1 of the buffer memory, the block 2 of the associative memory, the register 3 of the key, the protection circuit, the register 4 of the command code.
1one
Изобретение относитс к вычислительной технике, в частности к устройствам регистрации результатов испытаний программ в цифровых системах обработки данных.The invention relates to computing, in particular, to devices for recording the results of program tests in digital data processing systems.
Целью изобретени вл етс расширение функциональных возможностей за счет запоминани команды начала, адреса команды начала количества повторений цикла и времени выполне- ни цикла.The aim of the invention is to extend the functionality by storing the start command, the address of the start command of the number of repetitions of the cycle, and the cycle time.
Яа фиг. 1 показана блок-схема устройства; на фиг. 2 - схема блока буферной пам ти; на фиг. 3 - схема блока ассоциатив}юй пам ти.Yah FIG. 1 shows a block diagram of the device; in fig. 2 is a block buffer circuit diagram; in fig. 3 is a block diagram of an associative memory unit.
Устройство дл отладки программ содержит (фиг. 1) блок 1 буферной пам ти (БП), блок 2 ассоциативной пам ти, регистр 3 ключа защиты, регистр 4gfcoAa команды, регистр 5 ад- реса команды, группы 6-8, элементов счетчик 9 адреса, дешифратор 10 команд , схемы 11 и 12 сравнени , элемент И 13, элементы ИЛИ 14-16, элементы 17-19 задержки, группы 20 - 23 информационных входов устройства, управл ющие входы 24 и 25 устройства, группу 26 информационных выходов устройства , выходы 27-29 устройства.The device for debugging programs contains (Fig. 1) block 1 of buffer memory (PSU), block 2 of associative memory, register 3 of the protection key, register 4gfcoAa commands, register 5 of the command address, groups 6-8, elements counter 9 of the address , decoder 10 commands, comparison circuits 11 and 12, element AND 13, elements OR 14-16, delay elements 17-19, groups 20 - 23 information inputs of the device, control inputs 24 and 25 of the device, group 26 of information outputs of the device, outputs 27-29 devices.
Блок 1 буферной пам ти содержит (фиг. 2) группы 30 и 31 информационных входов, группу 32 адресных входов , входы 33-36 блока, группу 37 информационных выходов, выход 38,дешифратор 39 адреса, элемент И 40, группу 41 элементов ШШ и N запоминающих чеек (N - количество циклов, регистрируемых устройством), кажда из которых включает регистр 42 цикла , счетчик 43 цикла, счетчик 44 вре мен , схемы 45 - 47 сравнени , груп48840The buffer memory unit 1 contains (Fig. 2) groups 30 and 31 of information inputs, a group of 32 address inputs, inputs 33-36 of a block, a group of 37 information outputs, an output 38, a decoder 39 of the address, an AND 40 element, a group of 41 SHS and N memory cells (N is the number of cycles recorded by the device), each of which includes a register of 42 cycles, a counter of 43 cycles, a counter of 44 times, circuits 45 - 47 comparisons, groups 48840
регистр 5 адреса команды, группы элементов И 6, 7 и 8, счегтчик 9 адреса , дешифратор 10 команд, схемы 11 и 12 сравнени , элемент И 13, элементы ИЛИ 14, 15 и 16, элементы задержки 17, 18 и 19. Устройство обеспечивает фиксацию в пам ти количества выполнени циклов, кода команды начала цикла и врем его выполнени . 1 3.п. ф-лы, 3 ил.register 5 command addresses, groups of elements AND 6, 7 and 8, address scanner 9, 10 commands decoder, comparison circuits 11 and 12, AND element 13, OR elements 14, 15 and 16, delay elements 17, 18 and 19. The device provides fixing in memory the number of cycles executed, the code of the command to start the cycle and its execution time. 1 3.p. f-ly, 3 ill.
пы 48 и 49 элементов И элементы И 50 53, элемент ШШ 54 и триггер 55,Py 48 and 49 elements And elements And 50 53, element ШШ 54 and trigger 55,
Блок 2 ассоциат Ивной пам ти содержит (фиг, 3) входы 56 и 57 блока, группу 58 информационных входов вход 59 блока, выход 60, элемент ИЛИ- НЕ 61 , элемент И 62 и М чеек (М - максимально допустимое количество вложенных друг в друга модулей программы),кажда из которых включает счетчик 63 адреса возврата, схему 64 сравнени , группу 65 элементов И, элемент И 66, триггер 67 и элемент 68 задержки.Unit 2 associate Eva memory contains (FIG. 3) inputs 56 and 57 of the block, group 58 of information inputs input 59 of the block, output 60, the element ILI– NOT 61, the element I 62 and M cells (M is the maximum allowable number of nested in other program modules), each of which includes a return address counter 63, a comparison circuit 64, a group of AND elements, an AND element, 66 trigger 67 and a delay element 68.
Устройство работает следующим образом .The device works as follows.
В исходном состо нии регистры 4 и 5, счетчик 9 адреса, а в каждой запоминающей чейке блока 1 БП - ре- 1-истр 42, счетчики 43 и 44 и триггер 55, а в каждой чейке блока 2 ФВ - счетчик 63 и триггер 67, наход тс в нулевом состо нии.In the initial state, registers 4 and 5, the address counter 9, and in each storage cell of the BP unit 1 - re-1-ister 42, counters 43 and 44 and trigger 55, and in each cell of the PV block 2 - counter 63 and trigger 67 are in the zero state.
Перед началом работы по группе 20 входов устройства в регистр 3 ключа защиты заноситс код ключа защиты анализируем ой программы, параметры циклов которой регистрируютс в БП. Устройство готово к работе.Before starting work on the group of 20 device inputs, the protection key code of the analyzed program is written into the protection key register 3, the cycle parameters of which are recorded in the PD. The device is ready for operation.
При работе устройства в первом режиме по группе 21 входов устройства с регистра слова состо ни программы ЭВМ на первую г-руппу информационных входов схемы 12 сравнени поступает код ключа защиты выполн емой программы, высокий потенциальный сигнал с выхода схемы 12 сравнени подаетс на разрешающие входы группы 6 элементов-И и элемента И 13 до тех пор, пока значение кода ключа защиты выполн емой программы будет равно значению кода, поступающему с регист31348840When the device operates in the first mode, the group 21 of the device's inputs from the computer program state word register to the first group of information inputs of the comparison circuit 12 receives the key code of the executed program, a high potential signal from the output of the comparison circuit 12 is fed to the enabling inputs of group 6 AND elements and AND 13 elements as long as the code value of the protection key of the program being executed is equal to the code value received from register31348840
pa 3 ключа защиты на вторую группу информационных входов схемы 12 сравнени .pa 3 protection keys for the second group of information inputs of the comparison circuit 12.
Коды команд анализируемой программы (по г руппе 22 входов устройства поступают коды выполн емых ЭВМ команд ) через группу 6 элементов И поступают на первый вход группы 7 элеуправлени не вл етс адресом возврата (а в начале работы так и будет ) , то на выходе несовпадени схемы 6А сравнени каждой чейки блока 2 присутствует низкий потендиал (ситуаци несовпадени кодов на входах схемы сравнени ), а на выходе элемента ИЛН-НР 61 - высокий (разрешаюментов И и группу информационных вхо- Ю ,тий) потенциал, подаваемый на первыйThe codes of the commands of the program being analyzed (according to the group of 22 inputs of the device, the codes of the commands executed by the computer are received) through the group of 6 elements I arrive at the first input of the group 7; the control is not the return address (and at the beginning of work it will be), then 6A, the comparison of each cell of block 2 is low potential (the situation of mismatch of codes at the inputs of the comparison circuit), and the output of the LII-HP 61 element is high (permitting AND and a group of information inputs), supplied to the first
доз дешифратора 10 команд. Адреса команд на группе 23 входов устройства поступают на первый вход группы 8 элементов И, первую группу информационных входов схемы 11 сравнени , группу 58 входов блока 2, соответст- вуюЕцие входы группы 30 информационных входов БП и группу 31 информационных входов БП.doses of the decoder 10 teams. The command addresses on the group of 23 inputs of the device arrive at the first input of the group of 8 elements I, the first group of information inputs of the comparison circuit 11, the group 58 of the inputs of block 2, the corresponding EI inputs of the group 30 of information inputs of the PSU and the group 31 of information inputs of the PSU.
Если очередна команда вл етс командой условной или безусловной передачи управлени , то соответственно с первого или второго выхода дешифратора 10 команд выдаетс импульсныйIf the next command is a command of conditional or unconditional transfer of control, then, respectively, from the first or second output of the decoder 10 commands a pulse is issued.
вход элемента Н 62. Этот сигнал поступает через второй вход 57, элемент И 62, выход 60, вход 33 БП на управл юпцп вход всех схем 45 срав15 нени БП,input element H 62. This signal is received through the second input 57, element AND 62, output 60, input 33 BP to control the input of all circuits 45 comparing the BP,
В случае, если ни в одном регистр 42 цикла не содержитс кода (поступа ет на вторую группу информационных входов соответствующих схем 45 срав20 нени ), равного коду, поступающему в данный момент на первую группу информационных входов схем 45 сравнени (состоит из кода команды передачи управлени , кода адреса конца цикIn case none of the cycle register 42 contains a code (supplied to the second group of information inputs of the respective comparison circuits 45) equal to the code currently received on the first group of information inputs of the comparison circuits 45 (consists of the control command transfer code code address end cyc
сигнал, который через элемент ПЛИ 14 25 д j кода адреса начала цикла), тоthe signal that is through the element PLI 14 25 d j code of the address of the beginning of the cycle), then
поступает на разрешающие входы группы 7 и 8 элементов И, в результате чего код команды фиксируетс в регистре 4 кода команды, а адреса этой команды - в регистре 5 адреса команды . Код с регистра 4 поступает на соответствующие входы группы 30 информационных входов БП, а код с регистра 5 - на соответствующие входы группы 30 входов БП и на вторую группу информационных входов схемы 11 сравнени , на выходе которой при отсутствии сигнала на управл ющем входе присутствует низкий потенциал. Сигнал, по вившийс на первом или втором выходе дешифратора 10,через соответственно элемент 18 задержки или элемент 19 задержки и элемент ИЛ 16 поступает на управл ющий вход схемы 1 1 сравнени в тот момент, когда на группе 23 входов устройства по вл етс код адреса команды, на который в данный момент передано управление . Если код, поступающий на вторую группу информационных входов, больше кода, поступающего на первую группу информационных входов (призна наличи цикла), то по сигналу на управл ющем входе схема 11 сравнени выдает импульсный сигнал, признак вы влени цикла. При этом, если в блоке 2 не было ранее зафиксировано ни одной передачи управлени с возвратом или текущий адрес передачиenters the enable inputs of groups 7 and 8 of the AND elements, with the result that the command code is recorded in register 4 of the command code, and the addresses of this command are recorded in register 5 of the command address. The code from register 4 goes to the corresponding inputs of group 30 of information inputs of the PSU, and the code from register 5 goes to the corresponding inputs of group 30 of inputs of the PSU and to the second group of information inputs of the comparison circuit 11, which has a low potential at the control input at the output . The signal that appeared on the first or second output of the decoder 10, respectively, the delay element 18 or the delay element 19 and the IL element 16 is fed to the control input of the comparison circuit 1 1 at the moment when the command address code appears on the device input group 23 that is currently being managed. If the code arriving at the second group of information inputs is greater than the code arriving at the first group of information inputs (recognizing the presence of a cycle), then the comparison circuit 11 produces a pulse signal by the signal at the control input, a sign of the detection of the cycle. In this case, if in block 2 there was not previously recorded a single transfer of control with a return or the current address of the transfer
управлени не вл етс адресом возврата (а в начале работы так и будет ) , то на выходе несовпадени схемы 6А сравнени каждой чейки блока 2 присутствует низкий потендиал (ситуаци несовпадени кодов на входах схемы сравнени ), а на выходе элемента ИЛН-НР 61 - высокий (разрешаювход элемента Н 62. Этот сигнал поступает через второй вход 57, элемент И 62, выход 60, вход 33 БП на управл юпцп вход всех схем 45 сравнени БП,control is not a return address (and at the beginning of work it will be), then the output of the mismatch of the comparison circuit 6A of each cell of block 2 is low (the mismatch situation of the codes at the inputs of the comparison circuit), and the output of the ILN-HP 61 is high (I allow the input of the element H 62. This signal comes through the second input 57, element 62, output 60, input 33 BP to the control input of all circuits 45 comparison BP,
В случае, если ни в одном регистре 42 цикла не содержитс кода (поступает на вторую группу информационных входов соответствующих схем 45 сравнени ), равного коду, поступающему в данный момент на первую группу информационных входов схем 45 сравнени (состоит из кода команды передачи управлени , кода адреса конца j кода адреса начала цикла), тоIn case none of the cycle register 42 contains a code (enters the second group of information inputs of the respective comparison circuits 45) equal to the code currently being transmitted to the first group of information inputs of the comparison circuits 45 (consists of the control command transfer code, code addresses of the end j code of the address of the beginning of the cycle
00
5five
при поступлении сигнала на управл ю- вход все схемы 45 сравнени вырабатывают сигнал на первом выходе (в начале работы так и будет). Эти сигналы поступают на соответствующие входы элемента И 40 БП, на выходе которого тогда формируетс сигнал . (сигнал занесени ), поступающий на выход 38 БП и второй вход группы 48 элементов И каждой чейки. Сигнал занесени обеспечивает занесение кода цикла (кода команды передачи управлени , кода адреса конца цикла, кода адреса начала цикла) в соответствую- 0 разр ды регистра 42 цикла соответствующей чейки БП, адрес которой определ етс разрешающим потенциалом на соответствующем номеру этой чейки БП выходе дешифратора 39 адреса (в начале работы это перва чейка).When a signal arrives at the control, all the comparison circuits 45 produce a signal at the first output (this will be the case at the beginning of the operation). These signals are fed to the corresponding inputs of the element AND 40 BP, the output of which then forms a signal. (entry signal), arriving at the output of the PSU 38 and the second input of the group of 48 elements AND of each cell. The entry signal provides entry of the cycle code (control command code, cycle end address code, cycle start address code) into the corresponding 0 bits of the cycle register 42 of the corresponding BP cell whose address is determined by the resolving potential on the corresponding number of this BP cell of the decoder 39 output. addresses (at the beginning of work it is the first cell).
После занесени кода цикла в регистр 42 соответствующей чейки БП с второй группы информационных выходов этого регистра на вторую группу информационных входов схемы 47 сравнени данной чейки поступает код адреса конца цикла, а с третьей группы информационных выходов этого регистра на вторую 1 руг1пу информационных входов схемы 45 сравнени данной чейки поступает код адреса начала данного цикла. На первые группы информационных входов схем 46 и 47 сравнени каждой чемки Ы1 с груп5After entering the cycle code into the register 42 of the corresponding BP cell, the second group of information outputs of this register is fed to the second group of information inputs of the circuit 47 comparing this cell, and the code of the address of the end of the cycle comes from the third group of information outputs of this register to the second 1 information input of the circuit 45 This cell receives the address code of the beginning of this cycle. For the first groups of information inputs of circuits 46 and 47, comparisons of each 1 school with group 5
00
5five
пы 31 входов БП поступает код адреса текущей команды программы.At 31 inputs, the power unit receives the address code of the current program command.
Схема 46 сравнени каждой чейки БП выдает разрешающий потенциал с выхода, если этот код больше, а схема 47 сравнени каждой чейки БП - если меньше значений кодов, поступающих на их вторые группы информационных входов. Эти разрешающие потен- циалы обеспечивают формирование разрешающего потенциала на выходе соответствующего элемента И 50, который поступает на вторые входы элементов И 52 и 53 соответствующей чейки БП и через соответствующий элемент ИЛИ 54 на второй вход соответствующего элемента И 51, разреша тем самым поступление счетных импульсов на ЭВМ (через упрапл юшпй вход 24 устройства , вход 35 БП и открытый элемент И 51) на счетный вход соответствующего счетчика 44 времени, на котором формируетс код, соответствующий суммарному времени реализации данного цикла.The comparison circuit 46 of each BP cell provides the output potential from the output, if this code is greater, and the 47 comparison circuit of each BP cell, if it is less than the code values supplied to their second groups of information inputs. These permitting potentials provide the formation of the permitting potential at the output of the corresponding element AND 50, which is fed to the second inputs of the elements AND 52 and 53 of the corresponding cell BP and through the corresponding element OR 54 to the second input of the corresponding element AND 51, thereby allowing the input of counting pulses to A computer (via the control input 24 of the device, the input 35 of the PSU and the open element I 51) to the counting input of the corresponding time counter 44, in which the code corresponding to the total realization time yes is generated this cycle.
Сиг нал с выхода 38 БП через элемент 17 задержки и элемент ИЛИ 15 поступает на счетный вход счед чика 9 адреса, увеличива его содержимое на единицу. Код с группы выходов счетчика 9 через группу 32 адресных входов БП поступает на вход дешифратора 39, на соответствующем выходе которого по вл етс разрешающий потенциал, обеспечивающий запись информации в следующую чейку БП при возникновении описанной ситуации.The signal from the output of the PSU 38 through the delay element 17 and the element OR 15 enters the counting input of the scheduling address 9, increasing its content by one. The code from the group of outputs of the counter 9 through the group 32 of the address inputs of the PSU enters the input of the decoder 39, at the corresponding output of which a resolving potential appears that ensures the recording of information into the next BP cell when the described situation occurs.
В случае, если в регистре 42 цикла одной из чеек БП хранитс код, равный коду цикла, поступающему в данный момент на первую группу информационных входов схемы 45 сравнени всех чеек БП, то при поступлении сигнала на управл ющий вход с ее второго выхода выдаетс сигнал, посту- паю1днй на счетный вход соответствующего счетчика 43 цикла и увеличиваю- п;ий его содержимое на единицу (счетчик содержит количество реализаций цикла, уменьшенное на единицу, нулевой код данного счетчика при ненулевом значении кода соответствующего регистра 42 цикла после окончани работы устройства в первом режиме свидетельствует о выделении вырож- / денного, однократно реализуемого цикла).If in the loop register 42 of one of the BP cells there is stored a code equal to the loop code currently being transmitted to the first group of information inputs of the comparison circuit 45 of all the BP cells, then when a signal arrives at the control input, a signal is output from its second output I go to the counting input of the corresponding cycle counter 43 and increment; its content is one (the counter contains the number of realizations of the cycle, reduced by one, the zero code of this counter with a nonzero code value of the corresponding cycle register 42 After completion of the operation of the device in the first mode degeneracy indicates allocation / dennogo, once implemented cycle).
00
5five
В случае, если код (адрес текущей команды), поступающий по группе 31 входов БП на первые группы информационных входов схем 46 и 47 сравнени каждой чейки, не удовлетвор ет описанным услови м выдачи разрешающих потенциалов с выхода этих схем (что соответствует выходу из цикла, зафиксированного в данной чейке), то запрещающий потенциал с выхода элемента И 50 соответствующей чейки (при отсутствии разрешающего потенциала на единичном выходеIn the event that the code (address of the current command), which enters the group of PSU inputs 31 to the first groups of information inputs of the comparison circuits 46 and 47 of each cell, does not satisfy the described conditions for issuing resolution potentials from the output of these circuits (which corresponds to the exit from the cycle, fixed in this cell), then the inhibitory potential from the output of the element And 50 of the corresponding cell (in the absence of a resolving potential at a single output
5 соответствующего триггера 55) запрещает поступление счетных импульсов на вход соответствующего счетчика 44 времени.5 of the corresponding trigger 55) prohibits the arrival of counting pulses at the input of the corresponding time counter 44.
В процессе выполнени анализируемой программы возможна передача уп- равлени в другую часть программы (модуль) по команде безусловной передачи управлени с возвратом. Если така ситуаци возникает в процессе реализации цикла, то врем выполнени команд модул , к которому передаетс управление, должно учитыватьс в суммарном времени реализации цикла. Поэтому, если очередна команда анализируемой программы вл етс командой безусловной передачи управлени с возвратом, что с третьего выхода дешифратора 10 команд выдаетс импульсный сигнал, который поступает на взсод 36 БП (работа БП в этом случае описана ниже) и вход 59. При этом блок 2 работает следующим образом.In the process of executing the analyzed program, it is possible to transfer control to another part of the program (module) on the command of unconditional transfer of control with return. If such a situation arises during the implementation of the cycle, then the execution time of the commands of the module to which control is transferred must be taken into account in the total cycle implementation time. Therefore, if the next command of the program being analyzed is an unconditional control transfer command with the return that a pulse signal is output from the third output of the command decoder 10, which is fed to BP unit 36 (BP operation in this case is described below) and input 59. In this case, block 2 works as follows.
Сигнал, поступающий с входа 59, через открытый элемент И 66 соответствующей чейки (первоначально первой ) устанавливает соответствующий триггер 67 в единичное состо ние и поступает на вторые входы элементовThe signal from input 59 through the open cell AND 66 of the corresponding cell (initially the first) sets the corresponding trigger 67 to the one state and enters the second inputs of the elements.
5 группы 65 данной чейки (высокий потенциал на единичном выходе триггера 67 данной чейки открывает элемент И 66 последующей чейки), Этот сигнал обеспечивает занесение кода5 groups 65 of the given cell (high potential at the single output of the trigger 67 of this cell opens the element And 66 of the subsequent cell), This signal ensures that the code is entered
Q адреса команды безусловной передачи управлени с возвратом в соответст- счетчик 63 адреса возврата. Этот лее сигнал, пройд через соответствующий элемент 68 задержки, поg ступает на счетный вход соответствующего счетчика 63 адреса возврата и увеличивает его содержимое на единицу , тем самым в счетчике формируетс значение адреса возврата в вы0The Q addresses of the unconditional transfer control command return to the counter 63 of the return address. This signal, after passing through the corresponding delay element 68, reaches the counting input of the corresponding return address counter 63 and increases its content by one, thereby forming the return address value in the counter.
5five
00
зывающую часть (модуль) программы из вызываемой. Код с группы выходов счетчика 63 адреса возврата каждой чейки поступает на вторую группу информационных входов соответствующих схем 64 сравнени , на первые группы информационных входов которых поступает значение текущего адреса выполн емой программы с группы 58 информационных входов.the calling part (module) of the program from the called one. The code from the output group of the counter 63 of the return address of each cell arrives at the second group of information inputs of the respective comparison circuits 64, the first groups of information inputs of which receive the value of the current address of the program being executed from the group 58 of information inputs.
При поступлении сигнала с третьего выхода дещифратора 10 команд на вход 36 БП блок 1 буферной пам ти работает следующим образом. Этот сигнал поступает на первый вход элемента И 53 каждой чейки. На выходе элементов И 53 чеек БП, имеющих разрешающие потенциалы на втором входе (дл чеек, в которых подсчитываетс суммарное врем реализации соответствующих им циклов), формируетс сигнал установки триггера 55 соответствующих чеек в единичное состо ние, чем обеспечиваетс наличие разрешающего потенциала на выходе соответствующего элемента ИЛИ 54. В результате обеспечиваетс подсчет суммарного времени реализации данного цикла несмотр на по вление признака окончани цикла после выполнени команды безусловной передачи управлени с возвратом. Возврат из вызываемой части программы (модул ) в вызывающую осуществл етс по команде безусловно передачи управлени , при этом импульсный сигнал с второго выхода дешифратора 10 команд через элемент 19 задержки и вход 56 поступает на управ - л ющие входы схем 64 сравнени . Импульсный сигнал по вл етс на втором выходе только той схемы 64 сравнени чейки, дл которой сравниваемые в данный момент времени коды равны (т.е. передаетс управление по адресу , зафиксированному в счетчике 63 адреса возврата данной чейки). Этим сигналом сбрасываетс соответствующий триггер 67. В данньш момент времени (при равенстве кодов) на первом выходе схемы 64 сравнени будет высокий потенциал, а на выходе элемента ИЛИ-НЕ 61 - низкий (запрещающий), который запрещает прохождение через элементы И 62 сигнала вьщелени цикла в блок БП (возврат из одного модул в другой не будет восприн т как признак цикла).When a signal arrives from the third output of the descrambler 10 commands to the input 36 of the PSU, the block 1 of the buffer memory works as follows. This signal is fed to the first input element And 53 of each cell. At the output of the 53 And BP cells having the resolving potentials at the second input (for the cells in which the total time of realization of the corresponding cycles is counted), a trigger 55 signal is generated to set the corresponding cells to one, which ensures the presence of the resolving potential at the output of the corresponding element OR 54. As a result, the cumulative time of the implementation of this cycle is calculated despite the appearance of a sign of the end of the cycle after the execution of the unconditional transfer control command and with the return. The return from the called part of the program (module) to the caller is carried out by an unconditional command to transfer control, with the pulse signal from the second output of the decoder 10 commands through delay element 19 and input 56 to the control inputs of the comparison circuits 64. A pulse signal appears at the second output only of the cell comparison circuit 64, for which the codes being compared at a given time are equal (i.e. control is transferred to the address recorded in the counter 63 of the cell's return address). The corresponding trigger 67 is reset by this signal. At this point in time (if the codes are equal), the first output of the comparison circuit 64 will be high, and the output of the OR-NOT 61 element will be low (prohibiting), which prohibits the loop signal from passing through the 62 elements. to the power supply unit (the return from one module to another will not be perceived as a sign of the cycle).
348840348840
Сигнал, выработанный с второго выхода дешифратора 10 команд, через элемент 19 задержки поступает также на вход 34 БП, при этом БП работает следующим образом. Этот сигнал поступает на элемент И 52 каждой чейки .The signal generated from the second output of the decoder 10 commands through the delay element 19 is also fed to the input 34 of the PSU, while the BP works as follows. This signal goes to the element And 52 of each cell.
но сбрасывает триггер 55 толькоbut flushes trigger 55 only
00
тех чеек БП, дл которых текущий адрес передачи управлени находитс внутри соответствующих им циклов, т.е. в которых осуществл етс подсчет суммарного времени.those BP cells for which the current address of the transfer control is within their respective cycles, i.e. in which the total time is calculated.
После расшифровки команды концаAfter deciphering the command end
5 работы анализируемой программы импульсный сигнал с четвертого выхода дешифратора 10 команд сбрасывает содержимое счетчика 9 адреса и по управл ющему выходу 27 устройства сигQ нализирует в ЭВМ об окончании работы устройства в первом режиме. В случае, если при работе устройства в первом режиме количество обнаруженных в программе циклов превышает емкость5, the operation of the analyzed program pulse signal from the fourth output of the decoder 10 commands resets the contents of the counter 9 of the address and sigQ on the control output 27 of the device sig the computer about the end of operation of the device in the first mode. In case, when operating in the first mode, the number of cycles detected in the program exceeds the capacity
5 БП, то сигнал переполнени с выхода счетчика 9 адреса через элемент И 13 выдаетс через управл ющий выход 28 устройства в ЭВМ, сигнализиру об аварийной ситуации. При работе устройства во втором режиме по управл ющему входу 25 устройства через элемент ИЛИ 15 из ЭВМ на счетный вход счетчика 9 адреса поступают сигналы выдачи, каждый из которых выдаетс после считывани содержимого очередной чейки БП с группы 26 информационных выходов устройства. В зависимости от кода, наход щегос на счетчике 9 адреса, возбуждаетс соответствующа выходна шина дешифратора 39 адреса БП, соединенна с разрешающим входом группы 49 элементов И соответствующей чейки. Этим обеспечиваетс поочередна (от 1 до N) передача содержимого регистра 42, счетчика 43, счетчика 44 времени очередной чейки БП через группу 41 элементов ИЛИ на группу 37 информационных выходов БП и далее на группу 26 информационных выходов устройства .5, the overflow signal from the output of the address 9 through the element And 13 is outputted via the control output 28 of the device in the computer, signaling an emergency situation. When the device is operating in the second mode, the control input 25 of the device through the element OR 15 from the computer sends the output signals to the counting input of the address counter 9, each of which is output after reading the contents of the next BP cell from the group 26 of the device's information outputs. Depending on the code located on the counter 9 addresses, the corresponding output bus of the address decoder 39 is excited, connected to the permissive input of the group 49 of the elements AND of the corresponding cell. This ensures alternately (from 1 to N) transferring the contents of register 42, counter 43, counter 44 of the time of the next BP cell through group 41 of the OR elements to group 37 of the information outputs of the BP and then to group 26 of the information outputs of the device.
Сигнал выдачи поступает на счетный вход счетчика 9 адреса до тех пор, пока сигнал его переполнени не будет выдан на управл ющий выход 29 устройства, сигнализиру об окончании работы устройства во втором режиме .The output signal is fed to the counting input of the counter 9 address until the signal of its overflow is given to the control output 29 of the device, signaling the end of operation of the device in the second mode.
5five
00
5five
00
Claims (2)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU853945558A SU1348840A1 (en) | 1985-08-19 | 1985-08-19 | Program debugging device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU853945558A SU1348840A1 (en) | 1985-08-19 | 1985-08-19 | Program debugging device |
Publications (1)
Publication Number | Publication Date |
---|---|
SU1348840A1 true SU1348840A1 (en) | 1987-10-30 |
Family
ID=21194664
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
SU853945558A SU1348840A1 (en) | 1985-08-19 | 1985-08-19 | Program debugging device |
Country Status (1)
Country | Link |
---|---|
SU (1) | SU1348840A1 (en) |
-
1985
- 1985-08-19 SU SU853945558A patent/SU1348840A1/en active
Non-Patent Citations (1)
Title |
---|
Авторское свидетельство СССР № 980096, кл. G. 06 F 11/26, 1982. Авторское свидетельство СССР № 1295294, кл. С 06 F 11/28, 1986. (ЗА) УСТРОЙСТВО ДЛЯ ОТЛАДКИ ПРОГРАММ * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
SU1348840A1 (en) | Program debugging device | |
SU1080131A1 (en) | Information input device | |
SU1397908A1 (en) | Microprogram control device | |
SU615514A1 (en) | Apparatus for monitoring employee coming-in and coming-out | |
SU1695319A1 (en) | Matrix computing device | |
SU1552190A2 (en) | Device for check-out of program | |
SU1096651A1 (en) | Device for detecting errors in parallel n-unit code | |
SU1183979A1 (en) | Device for gathering information on processor operation | |
SU974367A2 (en) | Data input device | |
RU1789993C (en) | Device for editing table elements | |
SU1264174A1 (en) | Device for servicing interrogations | |
SU955093A1 (en) | Device for processing pickup data | |
SU1723661A1 (en) | Device for checking pulse trains | |
SU1476434A1 (en) | Program control device for process equipment | |
SU1425632A1 (en) | Device for delaying multiplexed digital information | |
SU1130865A1 (en) | Firmware control device | |
SU1481712A1 (en) | Asynchronous program-control unit | |
SU1251077A1 (en) | Device for loading groups of uniform data | |
SU1418699A1 (en) | Device for retrieving information from punched tape | |
SU1381565A1 (en) | Multichannel commutator | |
SU1249521A1 (en) | Device for checking order of running program modules | |
SU1291994A1 (en) | Interface for linking computer with communication channel | |
SU1254467A1 (en) | Device for sorting numbers | |
SU1339562A1 (en) | Data associative loading device | |
SU1267415A1 (en) | Microprogram control device |