SU1315981A1 - Versions of device for monitoring program execution - Google Patents

Versions of device for monitoring program execution Download PDF

Info

Publication number
SU1315981A1
SU1315981A1 SU853888708A SU3888708A SU1315981A1 SU 1315981 A1 SU1315981 A1 SU 1315981A1 SU 853888708 A SU853888708 A SU 853888708A SU 3888708 A SU3888708 A SU 3888708A SU 1315981 A1 SU1315981 A1 SU 1315981A1
Authority
SU
USSR - Soviet Union
Prior art keywords
input
block
output
register
address
Prior art date
Application number
SU853888708A
Other languages
Russian (ru)
Inventor
Валерий Васильевич Антосик
Леонид Викторович Дербунович
Эдуард Николаевич Ковалев
Александр Николаевич Мызь
Игорь Степанович Шандрин
Original Assignee
Харьковский политехнический институт им.В.И.Ленина
Харьковское Опытно-Конструкторское Бюро "Теплоавтомат"
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 Харьковский политехнический институт им.В.И.Ленина, Харьковское Опытно-Конструкторское Бюро "Теплоавтомат" filed Critical Харьковский политехнический институт им.В.И.Ленина
Priority to SU853888708A priority Critical patent/SU1315981A1/en
Application granted granted Critical
Publication of SU1315981A1 publication Critical patent/SU1315981A1/en

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

Изобретение относитс  к цифровой вычислительной технике и может быть использовано дл  контрол  выполнени  программ в цифровых вычист литвльных машинах. Цель изобретени повьшение достоверности контрол  за в лтг .15 . . .. . ходом выполнени  программ. Устройство (1 вариант) содержит блок 23 регистров, схему 24 сравнени , блок 25выделени  максимального и минимального количеств импульсов,блок 26микропрограммного управлени , регистр 27, блок 28 посто нной пам ти , элемент И 29, элемент ИЛИ 30, триггер 31. Устройство (II в риант) содержит регистры, схвму сравнени , блок счетчиков. блок микропрограммного управлени , блок посто нной пам ти элемент И-НЕ, элементы ИЛИ, триггеры, элементы И, элемент И-НЕ, формирователи импульсов, коммутатор. Использование изобретени  позвол ет контролировать шины управлени  мик- роЭВМ или программируемого контроллера , а также информационно-адресные шины, обеспечивать быструю реакцию на возникшую ошибку, предотвращать возможность аварии управл емого объекта. 2 с.п. ф-лы, 18 ил,. 4 табл. (Л с: 4WThe invention relates to digital computing and can be used to monitor the execution of programs in digital cleaning machines. The purpose of the invention is to increase the reliability of controls in ltg .15. . .. the progress of the programs. The device (variant 1) contains a block 23 of registers, a comparison circuit 24, a block 25 for extracting maximum and minimum number of pulses, a microprogram control block 26, a register 27, a fixed memory block 28, an AND 29 element, an OR 30 element, a trigger 31. Device (II c) contains registers, comparisons, block counters. microprogram control unit, permanent memory block, NAND element, OR elements, triggers, AND elements, NAND element, pulse formers, switch. The use of the invention makes it possible to control the control buses of a microcomputer or a programmable controller, as well as information and address buses, to provide a quick response to the error that has occurred, to prevent the possibility of an accident of the controlled object. 2 sec. f-ly, 18 silt. 4 tab. (L with: 4W

Description

Изобретение относитс  к цифровой вычислительной т.ехнике и может быть использовано дл  контрол  выполнени  программ в цифровых вычислительных машинах и программируемых контрол- лерах, построенных по принципу общей магистрали.The invention relates to digital computing technology and can be used to control the execution of programs in digital computers and programmable controllers, built on the principle of a common highway.

Цель изобретени  - повьшение достоверности контрол  за ходом вьтол- нени  программ.The purpose of the invention is to increase the reliability of control over the execution of programs.

На фиг.1 представлена функциональна  схема микроэвм,по сн юща  место предлагаемого устрййства в структуре микроэвм; на фиг.2 и 3 функциональные схемы устройства дл  контрол  вы полнени .программ по первому и второму вариантам соответственно; на фиг.4-6 - функциональные схемы блоков соответственно регистров, микропрограммного управлени  и выделе- ни  максимального и минимального количеств импульсов предлагаемого устройства (вариант 1); на фиг.7-9 функциональные схемы блоков соответственно микропрограммного управлени  счетчиков и коммутатора устройства дл  контрол  выполнени  программ (вариант 2); на фиг.10 - функциональна  схема блока сопр жени  микроЭВМ; на фиг,11- пример выделени  линей- ных участков программы; на фиг.12 - временна  диаграмма, по сн юща  работу известного устройства при отсут Ьтвии сбоев; на фиг.13 - временна  диаграмма, по сн юща  работу из.вест- ного устройства при возникновении сбоев программного счетчика микро- ЭВМ; на фиг.14 - фрагмент программы, иллюстрирующий процедуру формировани  массивов служебной информации; на фиг.15-18 - временные диаграммы, по сн ющие работу предлагаемого устройства .Fig. 1 shows a functional diagram of the microcomputer, explaining the position of the proposed device in the structure of the microcomputer; 2 and 3, functional diagrams of the device for monitoring the execution of the programs in the first and second variants, respectively; Figures 4-6 are functional diagrams of blocks, respectively, of registers, firmware control, and allocation of the maximum and minimum number of pulses of the proposed device (option 1); Figures 7–9 are functional diagrams of blocks, respectively, of the firmware control of the counters and the switch of the device for monitoring the execution of programs (option 2); Fig. 10 is a functional diagram of the interface of the microcomputer; FIG. 11 is an example of the allocation of linear program sections; Fig. 12 is a timing diagram explaining the operation of a known device in the absence of failure; Fig. 13 is a timing diagram explaining the operation of a known device in the event of a malfunction of the microcomputer program counter; Fig. 14 is a fragment of a program illustrating a procedure for forming arrays of service information; 15-18 are timing diagrams explaining the operation of the proposed device.

Микроэвм (фиг,1) содержит процессор 1, устройство 2 дл  контрол , блок 3 сопр жени , блок 4 пам ти, включающий в себ  пам ть 5 данных и пам ть 6 программы. Блоки 3 и 4 объединены посредством группы пгин 7, включающих в себ  адресную .8, информационную 9 и управл ющую 10 шины. Процессор 1 соединен с блоком 3 сопр жени  посредством группы 11 шин, включающих в себ  адресную 12, информационную 13 и управл ющую 14 юины, а также с устройством 2 дл  контрол  выполнени  программ посредством адресной 12 и управл ющей 14The microcomputer (FIG. 1) contains a processor 1, a monitoring device 2, an interface unit 3, a memory unit 4 including memory data 5 and program memory 6. Blocks 3 and 4 are combined by the ping 7 group, which includes address .8, information 9, and control 10 tires. The processor 1 is connected to the interface 3 via a group of 11 buses, including address 12, information 13 and control 14, and also with device 2 for monitoring program execution through address 12 and control 14

5five

0 5 0 5

5 five

шин, причем адресна  шина 12 подключена к информационному входу 15 устройства, а управл юща  шина 14 включает линии управлени  записью и начальной установкой, подключенные соответственно к входам записи и начальной установки 17 устройства 2 дл  контрол  выполнени  программ, а также линию синхронизации, подключенную к входу 18 синхронизации устройства 2 (по первому варианту), линию подтверждени  прерывани , подключенную к входу 19 признака перехода, группу линий задани  режима,подключенную к группе входов 20 задани  режима устройства 2 (по второму варианту ) дл  контрол  выполнени  программ , выход 21 ошибки которого соединен с входом прерывани  процессора 1, а тактовьй вход 22 устройства 2 подключен к выходу тактовых сигналов процессора 1.bus, the address bus 12 is connected to the information input 15 of the device, and the control bus 14 includes recording and setup control lines connected respectively to the recording and setup 17 inputs of the device 2 to monitor the execution of programs, as well as the synchronization line connected to the input 18 of the device 2 synchronization (in the first embodiment), an interrupt acknowledgment line connected to the transition sign input 19, a group of mode setting lines connected to the group 20 of the settings of the mode 2 device 2 ( th embodiment) for controlling the execution of the program 21 whose output is connected to the input error interrupt processor 1 and the clock input 22 of the device 2 connected to the output clock signal of the processor 1.

Устройство 2 дл  контрол  выполнени  программ по первому варианту (фиг.2) содержит блок 23 регистров, схему 24 сравнени , Блок 25 выделени  максимсшьного и минимального количеств импульсов, блок 26 микропрограммного управлени , регистр 27, блок 28 посто нной пам ти, элемент И 29, элемент ШШ 30 и триггер 31. Выход 32 блока 23 регистров соединен с первым информационным входом схе- 24 сравнени , выход равенства которой соединен с первым 33 адресным входом блока 26 микропрограммного управлени , вход 16 записи устройства 2 соединен с первым входом 34 записи блока 23 регистров, информационный вход 15 устройства 2 соединен с информационным входом 35 блока 23 регистров , вход 17 начальной установки устройства 2 соединен с входом начальной установки регистра 27, блока 28 посто нной пам ти, входом 36 обращени  блока 26 микропрограммного управлени , входом 37 начальной установки блока 25 выделени  максимального и минимального количеств импульсов и входом установки в О триггера 31, инверсный выход которого  вл етс  выходом 21 ошибки устройства 2, синхровход 18 устройства 2 соединен с входом синхронизации триггера 31, информационный вход которого соединен с шиной нулевого потенциала , выход блока 28 посто нной пам ти соединен с информационным вхо3The device 2 for monitoring the execution of programs in the first embodiment (FIG. 2) comprises a register unit 23, a comparison circuit 24, a maximum and a minimum number of pulses allocation unit 25, a firmware control unit 26, a register 27, a fixed memory unit 28, AND 29 , element ШШ 30 and trigger 31. The output 32 of the register unit 23 is connected to the first information input of the comparison circuit 24, the equality output of which is connected to the first 33 address input of the microprogram control unit 26, the input 16 of the device 2 is connected to the first input 34 of the block and 23 registers, information input 15 of device 2 is connected to information input 35 of register block 23, input 17 of initial installation of device 2 is connected to input of initial setting of register 27, block 28 of permanent memory, access input 36 of block 26 of microprogram control, input 37 of initial installation unit 25 of the allocation of the maximum and minimum number of pulses and the installation input to the O trigger 31, the inverse output of which is the output 21 of the error device 2, the synchronous input 18 of the device 2 is connected to the trigger synchronization input and 31, an information input of which is connected to zero potential bus, the output unit 28, the ROM connected to data vho3

дом регистра 27, информационным входом 38 блока 25 выделени  максимального и минимального количеств импуль сов и вторым информационным входом схемы 24 сравнени , группы выходов минимального 39 и.максимального 40 количеств тактовых импульсов блокаregister house 27, information input 38 of the block 25 for allocating the maximum and minimum number of pulses and the second information input of the comparison circuit 24, the output group of the minimum 39 and the maximum 40 number of clock pulses of the block

25вьщелени  максимального и минимального количеств импульсов соедине ны соответственно с группами входов элемента ИЛИ 30 и элемента И 29, выходы которых соединены соответственно с вторым адресным входом 41 блока 26 микропрограммного управлени 25 of the maximum and minimum number of pulses are connected respectively to the input groups of the element OR 30 and the element AND 29, the outputs of which are connected respectively to the second address input 41 of the program control block 26

и единичным входом триггера 31, выход элемента ИЛИ 30 соединен с входом 42 запрета блока 25 выделени  максимального и минимального количеств импульсов, тактовый вход 22 устройства 2 соединен с тактовым вхо дом 43 и 44 соответственно блокаand a single input of the trigger 31, the output of the OR element 30 is connected to the inlet 42 of the prohibition of the block 25 for allocating the maximum and minimum number of pulses, the clock input 22 of the device 2 is connected to the clock input 43 and 44 respectively of the block

26микропрограммного управлени  и блока 25 выделени  максимального и минимального количеств импульсов, выход регистра 27 соединен с входом старших разр дов адреса блока 28 посто нной пам ти, первый 45, второй 46, третий 47 и четвертьш 48 выходы блока 26 микропрограммного управлени  соединены соответственно с первым 49 и вторым 50 входами записи блока 25 вьщелени  максимального и минимального количеств импульсов, входом записи регистр а 27 и входом младших разр дов адреса блока 28 посто нной пйм ти, второй вход 51 записи блока 23 регистров соединен с младшим разр дом информационного выхода 48 блока 26 микропрограммного управлени .26 microprogram control and block 25 for allocating maximum and minimum pulses, the output of register 27 is connected to the input of the higher bits of the address of block 28 of the permanent memory, the first 45, second 46, third 47 and quarter 48 of the microprogram control block 26 are connected respectively to the first 49 and the second 50 inputs of the record of block 25 for the maximum and minimum number of pulses, the record input for register a 27 and the low-order bit for the address of block 28 constant, the second record input 51 of register 23 is connected to m adshim discharge data output 48 the control unit 26 firmware.

Устройство 2 дл  контрол  выполнени  программ по второму варианту (фиг.З) содержит регистры 52-54, схему 55 сравнени , блок 56 счетчиков , блок 57 микропрограммного управлени , блок 58 посто нной пам ти элемент ИЛИ-НЕ 59, элементы ИЛИ 60-62, триггеры 63-65, элементы И 66-68, элемент И-НЕ 69, формирователи 70 и 71 импульсов и коммутатор 72. Группы выходов регистров 52 и 54 соединены соответственно с первыми и вторыми группами информационных входов схемы 55 сравнени , вход 16 записи устройства 2 соединен с входом записи регистра 52, информационный вход 15 устройства 2 соединен с информационным входом регистThe device 2 for monitoring the execution of programs in the second embodiment (FIG. 3) contains registers 52-54, a comparison circuit 55, a counter block 56, a firmware control block 57, a fixed memory block 58, an OR-NOT 59 element, OR elements 60-62 , triggers 63-65, elements AND 66-68, element I-HE 69, drivers 70 and 71 pulses and switch 72. Groups of outputs of registers 52 and 54 are connected respectively with the first and second groups of information inputs of the comparison circuit 55, input 16 of the device record 2 is connected to the input of the register entry 52, the information input 15 of the device 2 with single with information entry register

159814159814

ра 52, группа входов 20 задани  ре- жима устройства 2 соединен с группой счетных входов 73.блока 56 счетчиков , вход 17 начальной установки уст5 ройства 2 соединен с входом установки в О первого триггера 64, первым входом первого элемента ИЛИ 61, входом 74 обращени  блока 57 микропро- граммного управлени  и входом начальfO ной установки регистра 53, выход первого триггера 64 соединен с первым входом первого элемента И 66 выход которого соединен с тактовым входом второго триггера 63, выход первого52, the group of inputs 20 of the device mode 2 is connected to the group of counting inputs 73. block 56 meters, the input 17 of the initial installation of the device 2 is connected to the input of the installation O of the first trigger 64, the first input of the first element OR 61, the input 74 of the address unit 57 of the microprogram control and the input of the initial setting of register 53, the output of the first trigger 64 is connected to the first input of the first element AND 66 whose output is connected to the clock input of the second trigger 63, the output of the first

15 формировател  70 импульсов соединен с входом 75 записи блока 56 счетчиков , выход элемента И-НЕ 68  вл етс  выходом 21 опшбки устройства 2, инверсный и пр мой выходы второго 63 20 и третьего 65 триггеров соединены15 pulse generator 70 is connected to the record input 75 of the counter block 56, the output of the NAND element 68 is the output 21 of the device 2, the inverse and the direct outputs of the second 63 20 and the third 65 flip-flops are connected

соответственно с первым и вторым входами элемента И-НЕ 69, выход первого элемента ИЛИ 61 соединен с нулевым входом второго 63 и единичным входомrespectively, the first and second inputs of the element AND-NOT 69, the output of the first element OR 61 is connected to the zero input of the second 63 and the single input

25 третьего 65 триггеров, первый 76,второй 77, третий 78, четвертый 79, п тый 80 и шестой 81 выходы блока 57 микропрограммного управлени  соединены соответственно с входом первого25 of the third 65 flip-flops, the first 76, the second 77, the third 78, the fourth 79, the fifth 80 and the sixth 81 outputs of the microprogram control block 57 are connected respectively to the input of the first

30 формировател  импульсов 70, информа- ционньм входом второго триггера 63, входом записи второго регистра 54, первым входом второго элемента И 67, управл ющим входом 82 коммутатора30 pulse generator 70, the information input of the second trigger 63, the record input of the second register 54, the first input of the second element AND 67, the control input 82 of the switch

35 72 и входом младших разр дов адреса блока 58 посто нной пам ти, выход второго элемента ИЛИ 60 соединен с , информационным входом первого 64 триггера, входом 83 запрета счета35 72 and the input of the least significant bits of the address of the block 58 of the permanent memory, the output of the second element OR 60 is connected to the information input of the first 64 trigger, the input 83 of the prohibition of the account

40 блока 56 счетчиков и первым адресным входом 84 блока 57 мипрограммного управлени , выход равенства схемы 55 сравнени  соединен с вторым адресным входом 85 блока 57 микропро45 граммного управлени  и через второй формирователь импульсов 71 с вторым входом первого элемента И 66, такто- . вый вход 22 устройства 2 соединен с тактовыми входами 86 и 87 соответст50 венно блока 56 счетчиков и блока 57 микропрограммного управлени , выход третьего регистра 53 соединен с входом старших разр дов адреса блока 58 посто нной пам ти, группа выходов40 of the counter block 56 and the first address input 84 of the microprogram control unit 57, the equality output of the comparison circuit 55 is connected to the second address input 85 of the microprogram 57 microprogram 45 and via the second pulse shaper 71 to the second input of the first And 66 element, clock. The input input 22 of the device 2 is connected to clock inputs 86 and 87, respectively, of the counter block 56 and the microprogram control block 57, the output of the third register 53 is connected to the input of the higher bits of the address of the fixed memory block 58, the output group

55 которого соединена с группой информационных входов 88 блока 56 счетчиков, группой информационных входов второго регистра 54,первой 89 и второй 90 группа51355 of which is connected to the group of information inputs 88 of the block 56 meters, the group of information inputs of the second register 54, the first 89 and the second 90 group 513

ми информационных входов коммутатора 7 выход 91 которого соединен с информационным входом третьего регистра 53, четвертый выход 79 блока 57 микропрограммного управлени  соединен с входом записи третьего регистра 53, инверсный выход третьего триггера 65 и выход первого формировател  70 импульсов соединены соответственно с первым и вторым входами третьего элемента И 68, выход которого соединен с вторым входом первого элемента ИЛИ 61, вход 19 признака перехода устройства 2 соединен с нулевьм входом третьего триггера 65, группа выходов 92 минимального количества тактовых импульсов, группа выходов 93 разности максимального и минимального количеств тактовых импульсов и группа информационньш выходов 94 блока 56 счетчиков соединены соответственно с группами входов элемента ШТИ-НЕ 59, второго 60 и третьего 62 элементов ИЛИ, выход элемента ИЛИ-НЕ 59 соединен с тактовым входом первого 64 триггера, выход второго элемента И 67 соединен с единичным входом второго триггера 63.The information inputs of the switch 7, the output 91 of which is connected to the information input of the third register 53, the fourth output 79 of the microprogram control unit 57 is connected to the recording input of the third register 53, the inverse output of the third trigger 65 and the output of the first driver 70 of the pulses are connected respectively to the first and second inputs of the third element AND 68, the output of which is connected to the second input of the first element OR 61, input 19 of the transition flag of device 2 is connected to the zero input of the third trigger 65, the group of outputs 92 is minimal of the number of clock pulses, the group of outputs 93 of the difference between the maximum and minimum numbers of clock pulses and the group of informational outputs 94 of the block 56 of meters are connected respectively to the groups of inputs of the element WIT-NOT 59, the second 60 and third 62 elements OR, the output of the OR-NOT 59 is connected to clock input of the first 64 trigger, the output of the second element And 67 is connected to the single input of the second trigger 63.

Блок 23 регистров (фиг.4) устройства 2 дл  контрол  выполнени  программ по первому варианту (фиг.2) содержит регистры 95 и 96, информационные входы которых объединены и Явл ютс  информационным входом 35 блока 23 регистров, входы запис.и регистров 95 и 96 соединены и  вл ютс  первым входом 34 записи блока 23 регистров, выходы регистров 95 и 96 объединены и  вл ютс  информационным выходом 32 блока 23 регистров, а инверсный вход обращени  регистра 95 соединен с пр мым входом обращени  регистра 96 и  вл етс  вторым входом 51 записи блока 23 регистров.The register block 23 (FIG. 4) of the device 2 for monitoring the execution of programs in the first embodiment (FIG. 2) contains registers 95 and 96, the information inputs of which are combined and are information input 35 of register 23, the recording entries of registers 95 and 96 are connected and are the first input 34 of the register 23, the outputs of registers 95 and 96 are combined and are the information output 32 of the register 23, and the inverse of the input of the register 95 is connected to the forward input of the register 96 and is the second input 51 of the block 23 registers.

Блок 26 микропрограммного управлени  (фиг.5) устройства 2 по первому варианту дл  контрол  вьтолнени  программ (фиг.2) содержит регистр 97 и блок 98 посто нной пам ти, первый, второй и третий выходы которого соединены соответственно с первым,вторым и третьим информационными входами регистра 97, а также объединены и  вл ютс  четвертым выходом 48 блока 26 управлени  контролем, четвертый информационный вход и синхровход регистра 97  вл ютс  соответственно первым адресным входом 33 и тактовымThe firmware control unit 26 (FIG. 5) of the device 2 in the first embodiment for monitoring the execution of the programs (FIG. 2) contains a register 97 and a permanent memory unit 98, the first, second and third outputs of which are connected respectively to the first, second and third information the inputs of the register 97, as well as are combined and are the fourth output 48 of the control control unit 26, the fourth information input and the synchronous input of the register 97 are the first address input 33 and the clock, respectively

16sixteen

входом 43 блока 26 микропрограммного управлени , первый, второй, третий и четвертый выходы регистра. 97 подключены соответственно к первому , второму, третьему и четвертому адресным входам блока 98 посто нной пам ти, п тый адресный вход и вход обращени  которого  вл ютс  соответственно вторым адресным входомthe input 43 of the firmware control block 26, the first, second, third and fourth outputs of the register. 97 are connected respectively to the first, second, third and fourth address inputs of the storage unit 98, the fifth address input and the access input of which are the second address input respectively.

:41 и входом 36 обращени  блока 26 микропрограммного управлени , а чет- вертьш, п тый и шестой выходы блока 98 посто нной пам ти  вл ютс  соответственно первым 45, вторым 46 и: 41 and the inversion input 36 of the firmware control unit 26, and the fourth, fifth and sixth outputs of the storage unit 98 are respectively the first 45, the second 46 and

третьим 47 выходами блока 26 микропрограммного управлени .the third 47 outputs of the firmware control block 26.

Блок 25 выделени  максимального и минимального количеств импульсовBlock 25 selection of the maximum and minimum number of pulses

(фиг.6) устройства 2 (вариант 1) дл  контрол  выполнени  программ (фиг.2) содержит первый 99 и второй 100 счетчики , первый 101 и второй 102 элементы И и инвертор 103. Первые вхо(Fig. 6) devices 2 (option 1) for monitoring the execution of programs (Fig. 2) contain the first 99 and second 100 counters, the first 101 and the second 102 And elements, and the inverter 103. The first inputs

ды элементов И 101 и 102 соединеныdy elements And 101 and 102 are connected

и  вл ютс  тактовьм входом 44 блока 25 вьщелени  максимального и минимального количеств импульсов, второй вход первого элемента И 101  вл етс  входом 42 запрета блока 25 выделени  максимального и минимального количеств импульсов и соединен через инвертор 103 с вторым входом второго элемента И 102, выходы первогоand are the clock input 44 of the block 25 for allocating the maximum and minimum number of pulses, the second input of the first element AND 101 is the input 42 of the prohibition of the block 25 for allocating the maximum and minimum number of pulses and connected through the inverter 103 to the second input of the second element AND 102, the outputs of the first

101 и второго 102 элементов И соединены со счетными входами соответственно первого 99 и второго 100 счетчиков , информационные входы которых объединены и  вл ютс  группой информационных входов 38 блока 25 вьщелени  максимального и минимального количеств импульсов, входы управлени  параллельной записью первого 99 и второго 100 счетчиков  вл ютс  соответственно первым 49 и вторым 50 входами записи блока 25 выделени  максимального и минимального количеств импульсов, входы установки в О первого 99 и второго 100 счетчиков со- единены и  вл ютс  входом 37 начальной установки блока 25 выделени  макт симального и минимального количеств импульсов, а выходы первого 99 и второго 100 счетчиков  вл ютс  соот- ветственно группой выходов 39 минимального количества тактовых импульсов и группой выходов 40 максимального количества тактовых импульсов101 and second 102 elements And are connected to the counting inputs of the first 99 and second 100 counters, respectively, the information inputs of which are combined and are a group of information inputs 38 of the maximum and minimum pulses block 25, the control inputs of the parallel recording of the first 99 and second 100 counters respectively, the first 49 and second 50 inputs of the recording block 25 for allocating the maximum and minimum number of pulses, the installation inputs in the first 99 and second 100 counters are connected and are the input 37 of the initial installation of the allocation unit 25 of the maximum and minimum number of pulses, and the outputs of the first 99 and second 100 counters are respectively the output group 39 of the minimum number of clock pulses and the output group 40 of the maximum number of clock pulses

.7. 13.7. 13

блока 25 выделени  максимального и минимального количеств импульсов.a maximum and minimum pulse allocation unit 25.

Блок 57 микропрограммного управлени  (фиг.7) устройства 2 дл  контрол  вьтолнени  программ по второму варианту (фиг.З) содержит регистр 104, блок 105 посто нной пам ти и элемент И 106. Тактовый вход 87 блока 57 микропрограммного управлени  соединен с синхровходом регистра 104 и первым входом элемента И 106,- Первый, второй и третий информационные входы регистра 104 соединены соответственно с первым, вторым и четвертым выходами блока 105 посто нной пам ти, третий, п тый и седьмой выходы которого подключены соответственно к третьему 78, второму 77 и четвертому 79 выходам блока 57 микропрограммного управлени . Шестой выход блока 105 посто нной пам ти подключен к второму входу элемента И 106, выход которого соединен с первым выходом 76 блока 57 микропрограммного управлени . Первый и второй выходы регистра 104 объединены и подключены к шестому выходу 81 блока 57 микропрограммного управлени  и, соответственно, первому и второму адресным входам блока 105 посто нной пам ти, третий и четвертый адресные входы и вход обращени  которого подключены соответственно к второму адресному входу 85 блока 57 микропрограммного управлени , четвертому выходу регист ра 104 и входу обращени  блока 57 микропрограммного управлени . Четвертый информационный вход. и третий выход регистра 104 подключены соответственно к первому адресному входу 84 и п тому выходу 80 блока 57 микропрограммного управлени .The firmware control block 57 (Fig. 7) of the device 2 for monitoring the execution of the programs in the second embodiment (Fig. 3) contains a register 104, a fixed memory block 105 and an AND element 106. The clock input 87 of the firmware control block 57 is connected to the synchronous input of the register 104 and the first input element And 106, - The first, second and third information inputs of the register 104 are connected respectively to the first, second and fourth outputs of the fixed memory unit 105, the third, fifth and seventh outputs of which are connected respectively to the third 78, second 77 and four volume 79 of the block 57 of the firmware control. The sixth output of the fixed memory unit 105 is connected to the second input of the AND element 106, the output of which is connected to the first output 76 of the microprogram control unit 57. The first and second outputs of register 104 are combined and connected to the sixth output 81 of the firmware control unit 57 and, respectively, the first and second address inputs of the permanent memory unit 105, the third and fourth address inputs and the access input of which are connected respectively to the second address input 85 of the block 57 of the firmware control, the fourth output of the register 104 and the access input of the firmware control block 57. The fourth information entry. and the third output of register 104 is connected respectively to the first address input 84 and to the fifth output 80 of the firmware control unit 57.

Блок 56 счетчиков (фиг.8) устройства 2 дл  контрол  выполнени  программ по второму варианту (фиг.З) содержит группу счетчиков 107, элементы И 108 и 109 и инвертор 110. Первый вход первого и второго элементов И 108 и 109 соединены с тактовьм входом 86 блока 56 счетчиков, второй вход элемента И 108 соединен с входом 83 запрета счета блока 56 счетчиков и через инвертор 110 с вторым входом элемента И 109. Выходы элементов И 108 и 109 соединены со счетными входами соответственно первого и второго счетчиков 107, счётные входы третьего и последующих счетчиков 107 объединены и  вл ютс The counter block 56 (Fig. 8) of the device 2 for monitoring the execution of programs in the second embodiment (Fig. 3) contains a group of counters 107, elements 108 and 109 and inverter 110. first inputs of the first and second elements 108 and 109 are connected to a clock input 86 of the block 56 counters, the second input element And 108 is connected to the input 83 prohibiting the counting of the block 56 meters and through an inverter 110 with a second input element And 109. The outputs of the elements 108 and 109 are connected to the counting inputs of the first and second counters 107, the counting inputs of the third and subsequent counters 107 combined s and are

1818

группой счетных входов 73 блока 56 счетчиков, информационные входы счетчиков 107 объединены и  вл ютс  группой информационных входов 88 блокаa group of counting inputs 73 of a block 56 counters; information inputs of counters 107 are combined and are a group of information inputs 88 of a block

56 счетчиков. Вход 75 записи блока 56 счетчиков соединен с входами записи счетчиков 107. Выходы первого и второго счетчиков 107  вл ютс  соответственно группами выходов разности максимального и минимального количеств тактовых импульсов 93 и минимального количества тактовых импульсов 92 блока 56 счетчиков, а выходы третьего и последующих счетчиков 107 объединены и  вл ютс  группой информационных выходов 94 блока 56 счетчиков.56 counters. Recording input 75 of block 56 counters is connected to counter recording inputs 107. The outputs of the first and second counters 107 are, respectively, output groups of the difference between the maximum and minimum number of clock pulses 93 and the minimum number of clock pulses 92 of counter block 56, and the outputs of the third and subsequent counters 107 are combined and are a group of information outputs 94 of a block 56 of counters.

Коммутатор 72 (фиг.9) устройства 2 дл  контрол  выполнени  программSwitch 72 (FIG. 9) of device 2 for monitoring program execution

по второму варианту (фиг.З) содержит первую 111 и вторую 112 группы элементов И, элемент И-НЕ (инвертор) 113 и группу элементов ИЛИ 114. Первые входы элементов И 111 первойaccording to the second variant (fig. 3) it contains the first 111 and second 112 groups of elements AND, the element NAND (inverter) 113 and the group of elements OR 114. The first inputs of the elements 111 and 111 first

группы объединены и  вл ютс -первой группой 89 информационных входов коммутатор 72, вторые входы элементов И 111 первой группы соединены с управл ющим входом 82 коммутатораthe groups are combined and are the first group 89 of information inputs switch 72, the second inputs of the elements 111 of the first group are connected to the control input 82 of the switch

72 и через инвертор 113 с первыми входами элементов И 112 второй группы , вторые входы которых объединены и  вл ютс  второй группой информационных входов 90 коммутатора 72.72 and through an inverter 113 with the first inputs of elements AND 112 of the second group, the second inputs of which are combined and are the second group of information inputs 90 of the switch 72.

Выходы элементов И 112 соединены соответственно с первыми, входами группы элементов ИЛИ 114, вторые входы которых подключены соответственно к выходам элементов И 111 первой группы . Выходы элементов ИЛИ 114 объединены и  вл ютс  выходом 91 коммутатора 72.The outputs of the elements And 112 are connected respectively to the first, the inputs of the group of elements OR 114, the second inputs of which are connected respectively to the outputs of the elements And 111 of the first group. The outputs of the OR elements 114 are combined and are the output 91 of the switch 72.

Блок 3 сопр жени  (фиг.10) микро- ЭВМ содержит приемопередающие.эле-The interface unit 3 (FIG. 10) of the microcomputer comprises transceivers.

.менты. Д1ТЯ передачи адреса с шины.ments. D1THa bus address transfer

12на шину В используютс  элементы 115, управл ющие входы которых объединены и соединены с линией 116, вход щей в состав шины 14. В зависимости от значени  сигнала на управл ющем входе элемента 115 он либо закрыт (высокоимпедансное состо ние выхода), либо тра11слирует сигнал с входа на выход. Дл  двунаправленной12 to bus B, elements 115 are used, the control inputs of which are combined and connected to line 116, which is part of bus 14. Depending on the value of the signal at the control input of element 115, it is either closed (high-impedance output state) or transmits a signal from the entrance to the exit. For bidirectional

передачи данных между шинами 9 иdata transfer between tires 9 and

13используютс  попарно объединенные элементы 115, управл ющие входы которых соединены с входами 117 и 118, вход щими в состав шины 14.13 are used in pairs the combined elements 115, the control inputs of which are connected to the inputs 117 and 118, which are part of the bus 14.

913913

В зависимости от значений сигналов на входах 117 и 118 выбираетс  то или иное направление передачи данных . Дл  сопр жени  шины 10 с шиной 14 используютс  элементы разных ти-- нов: кабельные усилители 119 (без управлени ), элементы 115, управление которыми производитс  по лини м 120 и 121, а также асинхронные самоуправл емые двунаправленные элементы 122, выполненные на стандартных логических элементах.Depending on the values of the signals at inputs 117 and 118, one direction of data transfer is chosen. For interfacing bus 10 with bus 14, elements of different types are used: cable amplifiers 119 (without control), elements 115, which are controlled via lines 120 and 121, as well as asynchronous self-controlled bidirectional elements 122, made on standard logic elements.

Любую программу, записанную в машинных кодах в пам ти микроЭВМ, можно представить в виде набора линей- ных участков, св занных между собой командами передачи управлени  по условию . Команда перехода по условию  вл етс  завершающей командой линейного участка, если это не последний линейный участок программы - в этом случае линейный участок может завершатьс , например, командой Останов Начальной командой линейного участка может быть либо команда,  вл ю- ща с  внешним входом программы, либо команда, на которую производитс  передача управлени  одной из команд перехода по условию. Если некоторый фрагмент программы (фиг.11 а) содержи линейный участок (t - I,, , где 1 - команды перехода по условрпо; t - прочие команды микроЭВМ) с несколькими точками вхождени  (А и В), он может быть представлен в виде линей- ных участков, каждый иэ которых имеет одну начальную команду (t , t., t), включает общие команды ветвей фрагмента (t,,, t.) и общую конечнуюAny program recorded in machine codes in the microcomputer memory can be represented as a set of linear sections interconnected by conditional control transfer commands. The transition command is the terminating command of the linear section if it is not the last linear section of the program — in this case, the linear section can be completed, for example, the Stop command The initial command of the linear section can be either the command that is the external input of the program or the command to which control transfer of one of the transition command is performed by condition. If some program fragment (Fig. 11a) contains a linear section (t - I ,,, where 1 is conditional transition commands; t is other microcomputer commands) with several entry points (A and B), it can be represented as linear plots, each of which has one initial command (t, t., t), includes common fragment branch commands (t ,,, t.) and a common final

/ /

команду условного перехода (Ij) (фиг.116).conditional jump command (Ij) (Fig.116).

Таким образом, любую программу можно разбить на отдельные линейные участки, на которых поведение ЭВМ строго детерминировано в том смысле, что при правильном прохождении микроэвм через данный линейный учас- ток программы должно быть зарегистрировано определенное число (в заданном интервале Т - Т) тактовых импульсов и строго определенное число Tj, импульсов на интерфейсных управл ющих лини х, которое известно дл  каждого линейного участка еще до начала работы микроЭВМ по про- грамме.Thus, any program can be divided into separate linear sections where the behavior of a computer is strictly determined in the sense that when the microcomputer is correctly passed through a given linear section of the program, a certain number (in a given interval T - T) of clock pulses and a strictly defined number of Tj, pulses on the interface control lines, which is known for each linear section even before the microcomputer begins its work on the program.

Наличие интервала Т - Т, объ сн етс  широким использованием в управл ющих микроэвм режима Ожидание 110The presence of the interval T - T is explained by the wide use of the Waiting 110 mode in control micro computers.

Совокупность интерфейсных управл ку- щих сигналов, которыми сопровождаетс  выполнение команд условных переходов , не зависит от того, вьтолне- но ли провер емое условие или нет.The combination of interface control signals that accompany the execution of conditional jump instructions does not depend on whether the condition being checked is fulfilled or not.

Любому линейному участку программы соответствует свой вектор перехода В { А|, А- J - пара адресов Aj, А: начальных команд линейных участков , на которые передаетс  управление конечной командой условного перехода данного линейного участка.Each linear section of the program has its own transition vector B {A |, A-J - a pair of addresses Aj, A: the initial commands of the linear sections to which control of the final command of the conditional transition of the linear section is transferred.

Основную идею работы устройства дл  контрол  выполнени  программ микроэвм или программируемого контроллера можно выразить следующим образом.The basic idea of the operation of the device for monitoring the execution of microcomputer programs or a programmable controller can be expressed as follows.

После (или в процессе) трансл ции исходной программы на  зык машинных команд рабочую программу анализируют с целью вы влени  всех линейных участков. Список адресов начальных команд линейных участков запоминают . After (or in the process of) translating the source program into machine command language, the work program is analyzed to identify all linear sections. The list of addresses of the initial commands of the linear sections is memorized.

Дл  каждого линейного участка предсказывают): минимальное Т и максимальное Т числа тактовых импульсов , характеризующих прохождение данного линейного участка программы; число TO импульсов на тех или иных управл ющих лини х, которое наход т путем последовательного арифметического сложени  некоторых констант , кажда  из которых соответствует своей команде и зависит от конструктивных особенностей конкретной микроэвм (дл  второго варианта); вектор перехода данного участка, определ ющий пару адресов А,, А-, по вление которых ожидаетс  в момент окончани  прохождени  данного линейного участка Программы.For each linear section, the following is predicted): minimum T and maximum T numbers of clock pulses characterizing the passage of a given linear program section; the number of TO pulses on one or another control line, which is found by successively arithmetically adding some constants, each of which corresponds to its own command and depends on the design features of a particular microcomputer (for the second variant); the transition vector of this section, defining a pair of addresses A ,, A-, the appearance of which is expected at the moment of termination of the passage of this linear section of the Program.

Эту информацию занос т в блок посто нной пам ти и в дальнейшем в процессе функплонировани  устройства она используетс  дл  контрол  прохождени  линейного участка при выходе на его начало.This information is entered into a block of permanent memory, and later in the process of operation of the device, it is used to control the passage of the linear section upon reaching its beginning.

Кроме того, производ т пуск рабочей программ1з1. Правильность ее выполнени  контролируетс  специальными аппаратными средствами. Одновременно с выбором из основной пам ти начальной- команды некоторого линейного участка программы из блока посто нной пам ти устройства контрол  выполнени  прог рамм микроэвм извлекаетс  служебна  информаци , определ юща  ожидаемые минимальное число Т,In addition, the work program was launched. The correctness of its implementation is controlled by special hardware. Simultaneously with the selection from the main memory of the initial command of a certain linear portion of the program, the service information is retrieved from the block of the permanent memory of the control unit for execution of the microcomputer program, which determines the expected minimum number T,

11131113

тактовьрс импульсов, разность jT Т. Т между максимальным и минимальным числами тактовых импульсов, число 1д импульсов на интерфейсных лини х управлени  (дл  второго варианта ) и вектор В {A,,A-Z перехода этого линейного участка. Множество Т {т,, 4Т ; (Т Т, ЛТ, Тр) будем называть характеристическим множеством линейного участка . Эта информаци  помещаетс  в счетчики, содержимое которых в дальнейшем уменьшаетс  по мере прохождени  данного участка программы, т.е. по мере передачи импульсных сигналов тактовой и интерфейсными лини - ,ми. По приходу Т тактовых импуль- сов устройство контрол  начинает отсчет лТ и проверку на равенствоpulses of pulses, the difference jT T of T between the maximum and minimum numbers of clock pulses, the number of 1d pulses on the interface control lines (for the second variant) and the vector B {A, AZ transition of this linear segment. Set T {t ,, 4Т; (T T, LT, Tr) will be called the characteristic set of the linear segment. This information is placed in counters, the contents of which are further reduced as you progress through this section of the program, i.e. as the transmission of pulse signals of clock and interface lines, mi. Upon the arrival of T clock pulses, the control device starts counting LT and checking for equality

нулю содержимого счетчиков Т. Если это условие вьшолнено, т.е. микроЭВМ достигла начальной команды нового линейного участка, происходит сравнение вектора перехода и текущего адреса А программы, и если текущий адрес AI оказалс  равным одному из ожидаемых адресов А. или А- вектора В, счетчики загружаютс  новой информацией , соответствующей новому линейному участку программы..the contents of the counters are zero. If this condition is fulfilled, i.e. the microcomputer reached the initial command of the new linear section, the transition vector and the current address A of the program are compared, and if the current address of the AI is equal to one of the expected addresses of A. or A, the vector B, the counters are loaded with new information corresponding to the new linear section of the program.

Затем устройство 2 дл  контрол  выполнени  программ по первому варианту (фиг.2) посылает сигнал прерывани  в процессор если при получении Tj тактовых импульсов процессор не перешел к вьшолнению одного из линейных участков, начальные адреса которых указаны в векторе перехода этого участка. Сигнал прерывани  анализируетс  процессором и вызывает переход на заранее запланированный режим управлени  объектом, подключенным к микроэвм, после чего устройство 2 устанавливаетс  в исходное состо ние и микроЭВМ начинает выполнение программы с нулевого адреса .Then, the device 2 for monitoring the execution of the programs in the first embodiment (FIG. 2) sends an interrupt signal to the processor if, when receiving Tj clock pulses, the processor did not proceed to the execution of one of the linear sections whose starting addresses are specified in the transition vector of this section. The interrupt signal is analyzed by the processor and causes the transition to the previously scheduled control mode of the object connected to the microcomputer, after which the device 2 is reset and the microcomputer starts the program from the zero address.

При этом устройство 2 дл  контрол  вьшолнени  программ (второй вариант , фиг.З) посыпает сигнал прерывани  в процессор при вьшолнении следующих условий: если в результате сбо  или неисправности процессор переходит к вьшолнению команды, адрес которой указан в векторе перехода данного линейного участка, до получени  Т импульсов; если при получении Т. тактовых импульсов процессорIn this case, the device 2 for monitoring the execution of programs (second variant, FIG. 3) sprinkles the interrupt signal into the processor if the following conditions are fulfilled: if, as a result of a failure or malfunction, the processor proceeds to the execution of the command whose address is specified in the transition vector of the linear section before receiving T pulses; if when receiving T. clock pulses processor

598112598112

не перешел к выполнению очередного линейного участка программы; если в интервале между Т. и Т импульсов получен адрес начальной команды сле- 5 дующего линейного участка программы и не произошло обнуление содержимого счетчиков Тд.did not proceed to the implementation of the next linear program section; if in the interval between T. and T pulses, the address of the initial command of the next linear program section was received and the contents of the counters TD did not reset.

Сигнал прерывани  анализируетс  процессором и либо вызывает переходThe interrupt signal is analyzed by the processor and either causes a transition.

10 на заранее запланированный режим управлени  объектом, подключенным к микроэвм, либо процессор разрешает дальнейшую работу и происходит самосинхронизаци  устройства контрол  и10 to a previously scheduled control mode of an object connected to the microcomputer, or the processor allows further operation and the self-synchronization of the monitoring device and

15 микроэвм.15 micro computers.

образом, существенно уменьшаетс  веро тность по влени  аварий- ньк ситуаций, которые могут возникнуть в управл емом объекте в резуль0 тате беспор дочного блуждани  микроЭВМ по рабочей программе, мину  операторы условной передачи управлени  (выполн   ошибочные переходы) вследствие сбо  или отказа, Thus, the probability of emergency situations that may arise in the controlled object as a result of a random microcomputer wandering through the work program is significantly reduced, and conditional transfer control operators (erroneous transitions) may fail due to a crash,

5 Работа известного устройства в отсутствие и при возникновении указанных сбоев по сн етс  временными диаграммами (соответственно фиг.12 и 13).,5 The operation of the known device in the absence and with the occurrence of the indicated failures is explained by the timing diagrams (Figs 12 and 13, respectively).

0 Эпюры 123-125 (фиг.12) отображают процесс загрузки (момент 126 времени) и постепенного уменьшени  содержимого трех счетчиков. ИмпуЛьс 127 формируетс  в момент несовпа5 дени  содержимого  чейки пам ти программ и  чейки дополнительного блока пам ти.0 Plots 123-125 (Fig. 12) show the loading process (time 126) and the gradual reduction of the contents of the three counters. The impulse 127 is formed at the time when the contents of the program memory cell and the additional memory unit cell are not coincidental.

При обнаружении ошибки сигнал на выходе устройства принимает нулевоеWhen an error is detected, the signal at the output of the device takes a zero

0 значение (эпюра 128).0 value (plot 128).

Эпюры 123-125 (фиг.13) также отображают процесс загрузки (момент 126 времени) и постепенного уменьшени  содержимого трех счетчиков.Пред5 положим, что в моменты 129 времени программа непредвиденного дважды изменила свой ход и выполнила ошибочные Переходы к последующим линейным участкам, мину  начальные коман0 ды этих участков вследствие воздействи  помехи (эпюра 130). При этом в известном устройстве не формируютс  импульсы 127 (показаны пунктиром) в моменты 131 ожидаемого завершени  ли5 нейных участков. На отрезке времени 126-132 один из счетчиков (эпюра 123) переполн етс  три раза, а два другие (эпюры 124 и 125) - дважды.Plots 123-125 (Fig. 13) also show the loading process (time 126) and the gradual reduction of the contents of the three counters. Before Pred5, we assume that at times 129, the unexpected program changed its course twice and performed erroneous Transitions to the subsequent linear sections, the initial mine the commands of these sections due to interference (plot 130). In this case, no pulses 127 are formed in the known device (shown by dotted lines) at times 131 of the expected completion of the linear sections. During the time interval 126-132, one of the counters (plot 123) overflows three times, and the other two (schedules 124 and 125) twice.

131131

Импульс 127 несовпадени  и сигнал прерывани  (эпюра 133) формируютс  только в момент 132 времени при выходе ЭВМ на начало четвертого (с момента 126 времени) линейного участка . Из этого .следует, что врем  между возникновением сбо , привод щего к обходу начальной вершины очередного линейного участка, и его обнаружением в известном устройстве может превысить врем  прохождени  линейного участка в случае накоплени  подобных сбоев, св занных с производственными помеха-ми, может оказатьс  достаточно большим (соизмеримым с временем срабатьшани  исполнительного механизма управлени  объектом).A mismatch pulse 127 and an interrupt signal (plot 133) are generated only at time 132 when the computer arrives at the beginning of the fourth (since time 126) line segment. From this. It follows that the time between the occurrence of a fault leading to the initial vertex of the next linear section and its detection in a known device may exceed the time of the linear section in the event of the accumulation of such faults associated with industrial disturbances. large (commensurate with the time of the operation of the executive mechanism for controlling an object).

В результате сбоев в программном счетчике, линии св зи, согласующем блоке и т.п. процессор вместо очередной команды линейного участка программы может перейти к выполнению команды ошибочного останова. При этом в известном устройстве формирование импульсов 127 прекращаетс  и сигнал прерывани  в процессор в дальнейшем не поступает, что в р де случаев недопустимо.As a result of failures in the software counter, the communication line, the matching unit, etc. the processor instead of the next command of the linear section of the program can proceed to the execution of the erroneous stop command. In this case, in the known device, the formation of pulses 127 is stopped and the interrupt signal is not received by the processor in the future, which is unacceptable in a number of cases.

Врем  между возникновением сбо  и его обнаружением в предлагаемом ус тройстве не превышает длительности прохождени  линейного участка про- граммы, что позвол ет организовать с воевременную реакцию устройства управлени  в случае аварийной ситуации .The time between the occurrence of a fault and its detection in the proposed device does not exceed the duration of the passage of the linear section of the program, which allows you to organize a timely response of the control device in case of an emergency.

Пам ть 6 программ микроЭВМ, как правило, вьтолн етс  в виде посто нного или полупосто нного запоминающего устройства. Вводима  в пам ть 6 программа представлена в виде последовательности машинных кодов. Ее ввод в пам ть 6 должен сопровождатьс  вводом заранее подготовленного массива вспомогательной информации в блок 28 (58) посто нной пам ти устройства 2 дл  контрол  выполнени  программ микроэвм.Memory 6 of a microcomputer program is usually executed in the form of a permanent or semi-permanent memory device. The program entered into memory 6 is represented as a sequence of machine codes. Its entry into the memory 6 must be accompanied by the input of a previously prepared array of auxiliary information in block 28 (58) of the permanent memory of the device 2 to monitor the execution of micro-computer programs.

Процедура подготовки массива вспомогательной информации выполн етс  следуюпщм образом.The procedure for preparing the auxiliary information array is performed as follows.

Преобразовывают рабочую программу занесенную в пам ть 6 микроЭВМ, выдел   линейные участки, как показано на фиг.11 а, б и определ ют характеристические множества Т fT, ЛТ , (Т Т, ЛТ, Т) дл  каждого полученного линейного участка. На фиг. 14 показан пример фрагмента про598114The work program listed in memory 6 of the microcomputer is converted, the linear sections are selected, as shown in Fig. 11 a, b, and the characteristic sets T fT, LT, (T T, LT, T) are determined for each linear section obtained. FIG. 14 shows an example of a fragment of pro598114

граммы, разделенного на линейные участки L..grams divided into linear sections of L ..

При этом необходимо ввести в блок 28 посто нной пам ти устройства 2 дл In this case, it is necessary to enter in the block 28 of the permanent memory of the device 2 for

5 контрол  выполнени  программ (первый вариант, фиг.2) вспомогательную информацию о линейном участке рабочей программы, информацию о любом линейном участке L. разместить в восьми  чейках блока 28 посто нной пам ти (табл.1), а в  чейки с адресами в и в + 1 ввести первый адрес А,- вектора перехода, т.е. соответственно младщую AJ „ и старшую части5, the program execution control (the first version, FIG. 2) auxiliary information about the linear section of the work program, information about any linear section L. to be placed in eight cells of the permanent memory block 28 (Table 1), and in the cells with addresses in and in + 1 enter the first address A, - the transition vector, i.e. respectively junior AJ and senior

15 адреса А; начальной команды первого из двух линейных участков, на которые передаетс  управление завершающей командой J данного линейного участка . В  чейки с адресами в + 2 и15 addresses A; the initial command of the first of the two linear sections to which control of the final command J of the linear section is transferred. In cells with addresses in + 2 and

0 В + 3 ввод т второй адрес А. вектора перехода., т.е. соответственно младшую А , и старшую А j части адреса А; начальной команды второго из двух линейных участков, на которые0 B + 3 introduces the second address A. of the transition vector, i.e. respectively, the younger A and the older A j of address A; the initial command of the second of the two linear sections to which

5 передаетс  управление завершающей командой J данного линейного участка . В  чейки с адресами В + 3 и В° + 5 ввод т соответственно адреса двух  чеек блока 28 посто нной пам 0 ти, в которых хран тс  первые элементы массивов вспомогательной информации линейных: участков, на которые передаетс  управление командой J (В 5, control of the terminating command J of the linear portion is transferred. The cells with addresses B + 3 and B ° + 5 are entered, respectively, with the addresses of two cells of the fixed memory block 28, in which the first elements of the auxiliary information of the linear information are stored: the sections to which command J is transmitted (B

В-г В°; В; В°; В  Cd B °; AT; In °; AT

ВAT

ff

35 В В-, ; В° и т.д.). В  чейку с адресом В + 6 ввод т ожидаемое минимальное число Т тактовых импуЛь- сов, а в  чейку с адресом В + 7 - разность 4Т Т - Т между макси0 мальным и минимальным числами тактовых импульсов дл  данного линейного участка Lj. 35 V B-,; °, etc.). The expected minimum number T of clock impulses is entered into the cell with address B + 6, and the difference between 4T T - T between the maximum and minimum numbers of clock pulses for a given linear section Lj is entered into the cell with address B + 7.

В первые восемь  чеек блока 28 посто нной пам ти ввод т служебнуюIn the first eight cells of the block 28 of the permanent memory, the service

5 информацию, служащую дл  установки в исходное состо ние устройства 2 дл  контрол  выполнени  программ. В первую и вторую пары  чеек ввод т начальный адрес А программы так,5 information serving to reset the device 2 to monitor the execution of programs. In the first and second pairs of cells, the starting address A of the program is entered so that

0 что в первой  чейке каждой пары мож- но расположить младшую часть А , а во второй - старшую часть А . начального адреса А программы. В п тую и шестую  чейки ввод т адрес0 that in the first cell of each pair it is possible to arrange the younger part of A, and in the second - the older part of A. starting address A of the program. In the fifth and sixth cells enter the address

5 В  чейки 28 посто нной пам ти,хран щей первый элемент массива вспомогательной информации начального линейного участка программы. В седьмую и восьмую  чейки блока 28 по151315 The cells 28 of the permanent memory storing the first element of the auxiliary information array of the initial linear portion of the program. In the seventh and eighth cells of the block 28 to 15131

сто нно.й пам ти ввод т соответственно установочные числа импульсов Т,р 0 и 4Тр О, Это необходимо дл  обеспечени  начальной синхронизации устройства 2 контрол  с работой микроэвм.The storable memory is inputted respectively by the set numbers of the pulses T, p 0 and 4 Tr O. This is necessary to ensure the initial synchronization of the control device 2 with the operation of the microcomputer.

Блок 98 посто нной пам ти блока 26 микропрограммного управлени  запрограммирован в соответствии с табл.2.The block 98 of the permanent memory of the microprogram control unit 26 is programmed in accordance with Table 2.

Кроме того, ввод т в блок 58 посто нной пам ти устройства 2 дл  контрол  микроэвм (второй вариант, фиг.З) вспомогательную информацию о линейных участках рабочей программы. Информаци  о любом линейном участке размещаетс  в четырех  чейках блока 58 посто нной пам ти (табл.3), при этом в  чейки с адресами В° и в + 1 ввод т вектор перехода, т.е. соответственно адреса двух начальных команд линейных участков, на которые передаетс  управление завершающей командой J данного линейного участка. В  чейку с адресом В° + 2 ввод т адреса двух  чеек блока 58 посто нной пам ти, в которых хран тс  первые элементы массивов вспомогательной информации линейных участков , на которые передаетс  управление командой J (Вр , В в|Вз и т.д.). В  чейку с адресом В + 3 ввод т характеристическое множество Т {Т, ЛТ, Те J данного линейного участка L..In addition, auxiliary information about linear sections of the work program is inputted into block 58 of the permanent memory of device 2 for monitoring microcomputers (second variant, FIG. 3). Information about any linear section is located in the four cells of the fixed memory block 58 (Table 3), while the transition vector is entered into the cells with the addresses B ° and in + 1, i.e. respectively, the addresses of the two initial commands of the linear sections to which control of the terminating command J of the linear section is transferred. In the cell with the address B ° + 2, the addresses of the two cells of the fixed memory block 58 are inserted, in which the first elements of the auxiliary information arrays of the linear sections to which the command J is transmitted are stored (BP, B in | B, etc.) ). In the cell with the address B + 3, the characteristic set T {T, LT, Te J of this linear section L is entered.

В первые четьфе  чейки блока 58 посто нной пам ти ввод т служебную информацию, служащую дл  установки в исходное состо ние устройства 2 дл  контрол  вьшолнени  программ микроэвм. В первую и вторую  чейки ввод т начальный адрес программы А, в третью  чейку - двойной адрес  чейки (Bj, ), хран щей первый элемент массива вспомогательной информации начального линейного участка LJ программы, в четвертую  чейку - установочное характеристическое множество Т {Т, 0; ЛТ, Ф 0; Tgj, 0} Это необходимо дл  обеспечени  начальной синхронизации устройства 2 контрол  выполнени  программ с работой микроэвм.In the first cells of the cell of the fixed memory unit 58, the service information is entered, which serves to reset the device 2 to monitor the execution of the micro-computer programs. The first and second cells are entered with the start address of program A, the third cell is the double address of the cell (Bj,) that stores the first element of the auxiliary information array of the initial linear section LJ of the program, and the fourth cell is the installation characteristic set T {T, 0; LT, F 0; Tgj, 0} This is necessary to ensure the initial synchronization of the device 2 of the control of program execution with the operation of the microcomputer.

Блок 105 посто нной пам ти блока 57 микропрограммного управлени  за- программирован в соответствии с табл.4.The block 105 of the permanent memory of the block 57 of the firmware control is programmed in accordance with Table 4.

1 6sixteen

Устройство 2 дл  контрол  выполнени  программ по первому варианту (фиг.2) работает следующим образом. Микроэвм приводитс  в исходноеThe device 2 for monitoring the execution of the programs in the first embodiment (FIG. 2) works as follows. Microcomputer is given in the original

состо ние путем подачи логической . 1 в линию Общий сброс, вход щую в состав шин 10 и 14. Сигнал на этой линии формируетс  автоматически после включени  питани  или, например,state by filing a logic. 1 in line A general reset included in tires 10 and 14. A signal on this line is generated automatically after power is turned on or, for example,

по вл етс  в результате нажати  соответствующей кнопки на пульте управлени .appears as a result of pressing the corresponding button on the control panel.

Сигнал Общий сброс приводит в исходное состо ние процессор 1 и управл ющую часть пам ти 5 и 6, аSignal master reset returns to the initial state the processor 1 and the control part of the memory 5 and 6, and

также поступает на вход 17 начальной установки устройства 2, подготавливает вьщачу сигнала прерывани  из устройства 2 в процессор 1 по линииalso arrives at the input 17 of the initial installation of the device 2, prepares the interrupt signal from the device 2 to the processor 1 via the line

21 в случае обнаружени  сбо  и настраивает устройство 2 так, что первому адресу первого линейного участка программы соответствует адрес  чейки блока 28 посто нной пам ти,21 in the event of a failure, sets up device 2 so that the first address of the first linear section of the program corresponds to the cell address of the fixed memory unit 28,

хран щей служебную информацию о первом линейном участке.storing service information about the first linear segment.

Подготовка выдачи сигнала прерывани  производитс  следующим образом. Сигнал Общий сброс поступаетAn interrupt signal is prepared as follows. Signal General Reset Received

с шины 14 (фиг.2) на вход 17 начальной установки устройства 2 и далее на вход установки в О триггера 31. Сигнал на инверсном выходе триггера 31 принимает значение логической 1 и поступает на выход 21bus 14 (figure 2) to the input 17 of the initial installation of the device 2 and further to the input of the installation in the On trigger 31. The signal at the inverse output of the trigger 31 takes the value of logic 1 and arrives at the output 21

устройства 2 дл  контрол  выполнени  программ. Это состо ние соответствует отсутствию прерывани .device 2 for monitoring program execution. This state corresponds to no interrupt.

Настройка устройства 2 дл  контрол  выполнени  программ на соответствие адресов пам ти 6 микроЭВМ и бло- ;ка 28 посто нной пам ти производит- с  при поступлении сигнала Общий сброс с шины 14 на вход 17 начапь ,ной установки устройства 2 и далее на вход начальной установки регистра 27, в результате чего сигналы на выходах этого регистра принимают нулевые значени . Эти сигналы поступают на вход старших разр дов адреса блока 28 посто нной пам ти. Одновременно сигнал Общий сброс поступает с входа 17 устройства 2 на вход 36 начальной установки блока 26 микропрограммного управлени  и далее на вход обращени  блока 98 посто нной пам ти (фиг.5) В результате воздействи  сигнала Общий сброс на всех выходах блока 98 посто нной пам ти устанавливаетс  высокоимпеданс- ное состо ние. Это состо ние на выходных лини х блока 98 воспринимаетс  на входах св занных с ними элементов как сигнал логической 1. Configuring device 2 to monitor the execution of programs for matching the addresses of memory 6 of the microcomputer and block 28 of the permanent memory is performed when a signal is received General reset from bus 14 to input 17 to start the installation of device 2 and then to the input of the initial installation register 27, as a result of which the signals at the outputs of this register take on zero values. These signals are input to the higher bits of the address of block 28 of the permanent memory. At the same time, the signal General reset goes from input 17 of device 2 to input 36 of the initial installation of the firmware control block 26 and then to the input of the access of the permanent memory block 98 (Fig. 5) As a result of the signal of a general reset on all the outputs of the permanent memory block 98 set to high impedance state. This condition on the output lines of block 98 is perceived at the inputs of the associated elements as a logical 1 signal.

На информационном входе 15 устройства 2 процессор 1 устанавливает начальный адрес рабочей программы. При наличии сигнала сопровождени  по цепи 16-ЗА на сихровходы регистров 95 и 96 младший А. и старший А части текущего адреса запоминаютс  соответственно в этих регистрах. Высо- коимпедансное .состо ние управл ющего входа 51 блока 23 регистров восприни- маетс  на пр мом входе обращени  регистра 96 как сигнал логической 1 (фиг.4), и старша  часть А ос началь- ого адреса программы поступает с информационного выхода 32 блока 23 ре- гистров на первый вход схемь 24 сравнени .On the information input 15 of device 2, processor 1 sets the starting address of the work program. If there is a tracking signal along the 16-ZA circuit to the synchronous inputs of registers 95 and 96, the younger A. and the older A parts of the current address are stored in these registers, respectively. The high impedance state of the control input 51 of register register 23 is perceived at the forward input of register 96 as a logical 1 signal (Fig. 4), and the older part A of the initial address of the program comes from information output 32 of block 23 registers to the first input of the comparison circuit 24.

Сигнал Общий сброс поступает с шины 14 на вход 17 начальной установки устройства 2 и .далее на вход на- чальной установки блока 28 посто нной пам ти, и на его выходах устанавливаетс  высокоимпедансное состо ние, к которое воспринимаетс  на втором входе схемы 24 сравнени  как число все единицы. При этом сигнал на выходе схемы 24 сравнени  принимает значение логической 1, так как коды на входах схемы 24 сравнени  не совпадают . Этот сигнал поступает на вход 33 блока 26 микропрограммного управлени  и далее на четвертый вход регистра 97 Запись в регистр 97 исходного состо ни  (1111) производитс  тактовым сигналом процессора .1 по цепи 22-43-26 (фиг.2) и далее на синхровход регистра 97 (фиг.5), в результате чего сигналы на первом, втором, третьем и четвертом выходах этого регистра при- .нимают единичное значение и поступа- гют соответственно на первый, второй, третий и четвертый адресные входы блока 98 посто нной пам ти. Одновременно высокоимпедансное состо ние первого, второго и третьего выходов блока 98 посто нной пам ти (выход 48 блока 26 микропрограммного управлени ) воспринимаетс  на входе младших разр дов адреса блока 28 посто нной пам ти как сигналы логической 1. Сигнал Общий сброс поступает с входа 17 начальной установки устройства 2 на вход обращени  блока 28 посто нной пам ти и запрещает поступление содержимого  чейки блока 28 посто нной пам ти с адресом 00-0111 (БО + 7) (табл.1) на его выход до завершени  сигнала Общий сброс.Signal General reset comes from bus 14 to input 17 of the initial installation of device 2 and further to the input of the initial installation of the fixed memory unit 28, and at its outputs a high-impedance state is set, which is perceived at the second input of the comparison circuit 24 as a number all units. In this case, the signal at the output of the comparison circuit 24 assumes the value of logical 1, since the codes at the inputs of the comparison circuit 24 do not match. This signal is fed to the input 33 of the firmware control unit 26 and then to the fourth input of the register 97. The initial state (1111) registers 97 with a processor .1 clock signal through circuit 22-43-26 (FIG. 2) and then register synchronous input 97 (FIG. 5), as a result of which the signals at the first, second, third and fourth outputs of this register accept a single value and arrive at the first, second, third and fourth address inputs of the permanent memory unit 98, respectively. At the same time, the high-impedance state of the first, second, and third outputs of the storage unit 98 (output 48 of the microprogram control unit 26) is perceived at the input of the lower bits of the address of the storage unit 28 as logical signals 1. The general reset signal comes from input 17 of the initial Installing device 2 at the input of block 28 of the permanent memory and prohibits the entry of the contents of the cell of block 28 of the permanent memory with address 00-0111 (BO + 7) (Table 1) to its output until the signal is complete. General reset.

Кроме того, сигнал Общий сброс поступает с входа 17 начальной установки на вход 37 начальной установки блока 25 выделени  максимального и минимального количеств импульсов и далее на входы установки в О первого 99 и второго 100 счетчиков (фиг.6). Счетчики 99 и 100 устанавливаютс  в нулевое состо ние и сигналы на выходах группы выходов 39 и 40 принимают нулевые значени . В результате воздействи  нулевых сигналов. Поступающих с группы выходов 40 блока 25 вьщелени  максимального и минимального количества импульсов соответственно на входы группы входов элемента И 29, сигнал на вькоде этого элемента также принимает нулевое значение и устанавливаетс  на входе установки в 1 триггера 31 (фиг.2)In addition, the signal General reset comes from the input 17 of the initial installation to the input 37 of the initial installation of the block 25 for allocating the maximum and minimum number of pulses and then to the inputs of the installation in O of the first 99 and second 100 counters (Fig. 6). Counters 99 and 100 are set to zero and the signals at the outputs of output group 39 and 40 are zero. As a result, the effect of zero signals. Coming from the group of outputs 40 of the block 25 for allocating the maximum and minimum number of pulses, respectively, to the inputs of the group of inputs of the element AND 29, the signal on the code of this element also takes a zero value and is set at the input of the installation to 1 trigger 31 (FIG. 2)

В результате воздействи  нулевых сигналов, поступающих с выходов группы выходов 39 блока 25 выделени  минимального и максимального количеств импульсов соответственно на входы группы входов элемента ИЛИ 30, сигнал на выходе этого элемента также принимает нулевое значение, Этот сигнал поступает на вход 42 запрета блока 25 выделени  минимального и максимального количеств импульсов и далее на второй вход элемента И 101 (фиг.6), запреща  прохождение тактовых сигналов по цепи 22-44-101- -99 на счетный вход в режиме вычитани  -1 счетчика 99. Одновременно сигнал логического О с входа 42 зй прета блока 25 выделени  минимального и максимального количеств импульсов поступает через инвертор 103 на второй вход элемента И 102, разреша  прохождение тактовых сигналов по цепи 22-44-102-100 на счетный вход в режиме суммировани  +1 счетчика 100.As a result of zero signals from the outputs of the group of outputs 39 of the minimum and maximum number of pulses 25, respectively, to the inputs of the inputs of the element OR 30, the signal at the output of this element also takes a zero value. This signal is fed to the inhibitor input 42 of the minimum 25 and the maximum number of pulses and then to the second input of the AND 101 element (Fig. 6), prohibiting the passage of clock signals along the circuit 22-44-101- -99 to the counting input in the subtraction mode -1 counter 99. Simultaneously, si Logical O from input 42 of the Preta unit 25 for allocating the minimum and maximum number of pulses is fed through the inverter 103 to the second input of the element I 102, allowing the passage of clock signals through circuit 22-44-102-100 to the counting input in the summation mode +1 counter 100 .

Нулевой сигнал с выхода элемента ИЛИ 30 поступает на вход 41 блока 26 микропрограммного управлени  и далее на п тый адресный вход блока 98 посто нной пам ти.The zero signal from the output of the element OR 30 is fed to the input 41 of the microprogram control unit 26 and then to the fifth address input of the permanent memory unit 98.

После- окончани  сигнала Общий сброс процессор 1 автоматически или по инициативе оператора переходит кAfter termination of the signal General reset processor 1 automatically or at the initiative of the operator proceeds to

19131913

вьтолне ию рабочей программы, записанной в посто нной пам ти 6 микро- ЭВМ. При этом счетчик 100 блока 25 вьщелени  минимального и максимального количеств импульсов начинает подсчет тактовых импульсов, поступающих по цепи 22-44-102-100. Одновременно сн тие сигнала Общий сброс разрешает обращение к блоку 98 посто нной пам ти, и содержимое  чей- ки с адресом 01111 устанавхшваетс  на соответствующих его выходах (табл.2, строка 32).In the highlight of the work program recorded in the permanent memory 6 microcomputers. At the same time, the counter 100 of the block 25, in which the minimum and maximum number of pulses are located, starts counting the clock pulses arriving along the circuit 22-44-102-100. Simultaneously, the removal of a signal. A general reset allows access to the permanent storage unit 98, and the contents of the cell with the address 01111 is set at its corresponding outputs (Table 2, line 32).

Нулевые сигналы с первого, второго и третьего выходов блока 98 посто нной пам ти поступают на выход 48 блока 26 микропрограммного управлени  и далее по лини м млад- щих разр дов шины адреса на входы младших разр дов адреса блока 28 посто нной пам ти. Таким образом, на адресных входах блока 28 посто нной пам ти устанавливаетс  адрес 00-000 (Вр (табл.О. Вместе со сн тием сигнала Общий сброс на входе обращени  блока 28 посто нной пам ти с его выходов на второй вход схемы 24 сравнени  поступает младша  часть ожидаемого адресного слова (табл.1). Одновременно нулевой сигнал с линии мпадшего разр да информационного выхода 48 блока 26 микропрограммного управлени  поступает на управл ющий вход S1 блока 23 регистров и далее на инверсный вход обращени  регистра 95, в результате чего младша  часть А начального адреса программы с выходов регистра 95 поступает на выход 32 блока 23 регистров и далее на первый вход схе мы 24 сравнени . В результате совпадени  ожидаемой А. и действительной А . младших частей начального адреса программы сигнал на выходе схемы 24 сравнени  принимает значе- ние логического О. Этот сигнал поступает на вход 33 блока 26 микропрограммного управлени  и далее на четвертый информационный вход регист эа 97, на первый, второй и третий инфор мационные входы которого поступают сигналы 000 с первого, второго и третьего выходов блока 98 посто нной пам ти (табл.2, строка 32). Тактовый сигнал, поступакиций по цепи 22-43 на тактовый вход блока 26 микропрограммного управлени  и далее на синхро- вход регистра 97, производит запись информационного слова 0000 в этот ре120 Zero signals from the first, second and third outputs of the storage unit 98 are fed to the output 48 of the microprogram control unit 26 and further along the low-order bits of the address bus to the inputs of the lower-order bits of the address of the fixed memory unit 28. Thus, at the address inputs of the fixed memory unit 28, an address of 00-000 is set (BP (table O. Together with signal removal) A general reset at the access input of the fixed memory unit 28 from its outputs to the second input of the comparison circuit 24 The lower part of the expected address word (Table 1). At the same time, the zero signal from the low-bit line of the information output 48 of the microprogram control block 26 goes to the control input S1 of the register block 23 and then to the reverse inversion input of the register 95, resulting in the lower part A nach the program's address from the outputs of register 95 enters output 32 of register block 23 and then to the first input of comparison circuit 24. As a result of coincidence of the expected A. and actual A. of the lower parts of the initial address of the program, the output of the comparison circuit 24 takes the value A. This signal is fed to the input 33 of the firmware control unit 26 and then to the fourth information input register E97, the first, second and third information inputs of which receive signals 000 from the first, second and third outputs of the unit 98 of the permanent memory (Table 2, line 32). The clock signal, the inputs from the circuit 22-43 to the clock input of the microprogram control unit 26 and further to the synchronous input of the register 97, records the information word 0000 in this pe120

гистр. Таким образом, на первом, втором , третьем и четвертом адресных входах блока 98 посто нной пам ти устанавливаютс  нулевые значени  сигналов , и, так как на п том адресном входе присутствует нулевой сигнал, на выходах блока 97 посто нной пам ти устанавливаютс  значени  сигналов, соответствукщие строке 17 табл.2 (содержимре  чейки пам ти с адресом 00000) .gistr. Thus, on the first, second, third, and fourth address inputs of the storage unit 98, zero signals are set, and since there is a zero signal on the fifth address input, the signals on the outputs of the permanent storage unit 97 are set to line 17 of table 2 (the contents of the memory cell with the address 00000).

Единичный сигнал с первого и нулевые с второго и третьего выходов блока 97 посто нной пам ти поступают на выход 48 блока 26 микропрограммного управлени  и далее на вход мпадших разр дов адреса блока 28 посто нной пам ти, в результате чего на адресных шинах устанавливаетс  адрес 00-001 (В + 1) и с его выходов на второй вход схемы 24 сравнени  поступает старша  часть ожидаемого адресного слова А:,. (табл. 1). Одновременно единичный сигнал с линии мпадшего разр да информационного выхода 48 блока 26 микропрограммного управлени  поступает на вход 51 записи блока 23 регистров и далее на пр мой вход обращени  регистра 96, в результате чего старша  часть AIJ. начального адреса программы с выходов регистра 96 поступает на выход 32 блока 23 регистров и далее на первый вход схемы 24 сравнени . Нулевой сигнал сравнени  ожидаемой А и действительной А старших частей начального адреса программы с выхода схемы 24 сравнени  поступают на вход 33 блока 26 микропрограммного управлени  и далее на четвертый информационный вход регистра 97, на первый, второй и третий информационные входы которого поступают соответственно сигналы 1, О, О с первого, второго и третьего выходов блока 98 посто нной пам ти (строка 17, табл.2).Очередной Тактовый сигнал, поступающий на синхровход регистра 97, производит запись информационного слова 0001 в этот регистр, и на адресных входах блока 98 посто нной пам ти устанавливаетс  адрес 00001, в результате чего на выходах этого блока устанавливалютс  значени  сигналов, соответствующие строке 18 табл.2.A single signal from the first and zero from the second and third outputs of the fixed memory block 97 is outputted to the output 48 of the microprogram control unit 26 and then to the input of the address bits of the fixed memory unit 28, resulting in the address 00- 001 (B + 1) and from its outputs, the second part of the expected address word A:,. (tab. 1). At the same time, a single signal from the low-bit line of the information output 48 of the microprogram control unit 26 is fed to the input 51 of the register block 23 and then to the direct input of register 96, resulting in the high-end AIJ. The initial address of the program from the outputs of register 96 is fed to the output 32 of the block 23 of registers and then to the first input of the comparison circuit 24. The zero signal of the comparison of the expected A and real A of the senior parts of the initial address of the program from the output of the comparison circuit 24 is fed to the input 33 of the microprogram control block 26 and then to the fourth information input of the register 97, the first, second and third information inputs of which receive signals 1, О O from the first, second and third outputs of the block 98 of the permanent memory (line 17, Table 2). The next clock signal arriving at the synchronous input of the register 97 records the information word 0001 in this register, the address input unit 98 constant memory address 00001 is set, whereby at the outputs of this block ustanavlivalyuts signal values corresponding to row 18 Table 2.

Нулевые сигналы с первого и второго и единичный с третьего выходов блока 98 посто нной пам ти поступа211Zero signals from the first and second and single signals from the third outputs of the block 98 of the storage memory 211

ют на вход младших разр дов адреса блока 28 посто нной пам ти - (адрес 00-100 (В + 4), с выходов которого на информационный вход регистра 27 поступает информационное слово В , - адрес в блоке 28 посто нно пам ти массива служебной информации дл  первого линейного участка рабочей программы (табл.1). Одновременно с шестого выхода блока 98 посто  ной пам ти (выхода 47 блока 26 мик- ропрогр аммного управлени ) на вход записи регистра 27 поступает единичный сигнал, производ ш;ий запись информационного слова В в этот регистр . Адрес в с выходов регистра 27 поступает на вход старших разр дов адреса блока 28 посто нной пам ти .are input to the lower bits of the address of the block 28 of the permanent memory - (address 00-100 (B + 4), from the outputs of which the information input of the register 27 receives the information word B, - the address in the block 28 is permanent memory of the service information array for the first linear section of the work program (Table 1). Simultaneously from the sixth output of the constant memory unit 98 (output 47 of the microprogram control unit 26) the input of the register entry 27 receives a single signal, the output of which; in this register. Address from the outputs of the register 27 post falls to the input of the higher bits of the address of the block 28 of the permanent memory.

Кроме того, единичный сигнал с первого и нулевые с второго и третьего выходов блока 98 посто нной пам ти поступают соответственно на первый, второй и третий информаци онные входы регистра 97. Очередной тактовый сигнал, поступающий на син хровход, производит запись информационного слова 0100 в этот регистр, и на адресных входах блока 98 посто нной пам ти устанавливаетс  адрес 00100, в результате чего на выходах этого блока устанавливаютс  значени  сигналов, соответствующие строке 21 табл.2. Нулевой сигнал с первого и единичный с второго и третьего выходов блока 98 посто нной пам ти поступают на вход младших разр дов адреса блока 28 посто нной пам ти - адрес (В° 6), с выхода которого на информационный вход 38 блока 25 вьщелени  минимального и максимального количеств импульсов поступает код числа Т импульсов первого линейного участка (табл.1). Одновременно с четвертого выхода блка 98 посто нной пам ти по цепи 45- 49 на первый вход записи счетчика 99 блока 25 вьщелени  минимального и максимального количеств импульсов поступает нулевой сигнал, и код Т запоминаетс  в счетчике 99, с выходов которого этот код поступает на группу выходов 39 блока 25 выделени минимального и максимального количеств импульсов и далее на группу входов элемента ИЛИ 30. Сигнал на входе элемента ИЛИ 30 принимает единичное значение, если Т,, О и сохран ет нулевое хначение в противноIn addition, a single signal from the first and zero from the second and third outputs of the storage unit 98 goes to the first, second, and third information inputs of register 97, respectively. The next clock signal arriving at the sync input records the information word 0100 into this a register, and address 00100 is set at the address inputs of the storage unit 98, with the result that the values of the signals corresponding to row 21 of table 2 are set at the outputs of this block. The zero signal from the first and single from the second and third outputs of the block 98 of the memory is fed to the input of the lower bits of the address of the block 28 of the permanent memory - the address (V ° 6), from the output of which to the information input 38 of the block 25 The maximum number of pulses is received by the code of the number T of pulses of the first linear section (Table 1). Simultaneously, from the fourth output of the block 98 of the permanent memory, a circuit 45–49 sends the first input to the record 99 of the block 25 and the minimum and maximum number of pulses, the zero signal arrives, and the code T is stored in the counter 99, from the outputs of which this code goes to the output group 39 of block 25 for allocating the minimum and maximum number of pulses and then to the input group of the element OR 30. The signal at the input of the element OR 30 takes a single value if T ,, O and saves the zero value to the opposite

598122598122

случае. Очередным тактовым сигналом в регистр 97 записываетс  информационное слово 0110.case. The next clock signal in the register 97 is recorded information word 0110.

Если Тх| О, значение сигнала на 5 п том входе блока 98 посто нной пам ти и входе 42 запрета счета блока 25 вьщелени  минимального и максимального количеств импульсов не измен етс . При этом на адресных вхоW дах блока 98 посто нной пам ти устанавливаетс  адрес 00110 и сигналы на его выходах принимают значени  в соответствии со строкой 23 табл.2, а счетчик 100 блока 25 вьщелени  мак- 15 симального и минимального количеств импульсов продолжает подсчет тактовых импульсов.If Tx | O, the value of the signal at the 5th input of the storage unit 98 and the prohibition input 42 of the counting unit 25 for the minimum and maximum number of pulses does not change. At the same time, address 00110 is set at the address inputs of the storage unit 98 and the signals at its outputs take the values in accordance with line 23 of Table 2, and the counter 100 of the unit 25 for the maximum and minimum number of pulses continues to count clock pulses.

При Т , на адресных входахAt T, at address inputs

20 блока 98 посто нной пам ти устанавливаетс  адрес 10110 и сигналы на . его выходах принимают значени  в соответствии со строкой 7 табл.2, а единичное значение сигнала на входе20, a fixed-memory block 98 sets address 10110 and signals to. its outputs take values in accordance with row 7 of Table 2, and the single value of the input signal

25 42 запрета блока 25 вьщелени  минимального и максимального количеств импульсов поступает на вход элемента И 101 и через инвертор 103 на вход элемента И 102, соответственно25 42 prohibitions of the block 25 for allocating the minimum and maximum number of pulses to the input of the AND 101 element and through the inverter 103 to the input of the AND 102 element, respectively

30 отпира  элемент И 101 дл  прохождени  тактовых сигналов с входа 44 блока 25 вьщелени  минимального и максимального количеств импульсов на счет- ньш вход в режиме вычитани  счетчи35 ка 99 и запира  элемент И 102 дл  прохождени  тактовых сигналов на счетный вход в режиме суммировани  счетчика 100 (фиг,6).30 unlocking element AND 101 for passing the clock signals from input 44 of block 25 selecting the minimum and maximum number of pulses to the counting input in the subtraction mode of the counter 99 and locking the element AND 102 to passing the clock signals to the counting input in the adding mode of the counter 100 (FIG. 6).

Единичные значени  сигналов сSingle values of signals with

40 первого, второго и третьего выходов блока 98 посто нной пам ти поступают на вход младших разр дов адреса блока 28 посто нной пам ти - адрес (в + 7), с выходов которого на ин- 45 формационный вход 38 блока 25 вьщелени  минимального и максимального количеств импульсов поступает в дополнительном коде число Т импульсов первого линейного участка40 of the first, second and third outputs of the storage unit 98 are input to the lower bits of the address of the storage unit 28 — an address (+ 7), from the outputs of which to the information input 38 of the minimum and maximum the number of pulses comes in the additional code the number T of pulses of the first linear section

50 (табл.1). Одновременно с п того выхода блока 98 посто нной пам ти по цепи 46-50 на второй вход записи счетчика 100 блока 25 вьщелени  минимального и максимального количеств50 (table 1). Simultaneously from the fifth output of the storage unit 98 via the circuit 46-50 to the second input of the record of the counter 100 of the unit 25 for allocating the minimum and maximum quantities

55 импульсов поступает нулевой сигнал, и код дТ запоминаетс  в счетчике 100. Дл  правильной работы устройства 2 дл  контрол  выполнени  программ (фиг.2) число импульсов дл  каж23The 55 pulses receive a zero signal, and the dT code is stored in the counter 100. For the correct operation of the device 2 to monitor the execution of the programs (Fig. 2) the number of pulses for each

дого линейного участка выбираетс  из услови  йТ , где п - разр дность счетчика 100. Сигнал на выходе элемента И 29 после установки на выходе 40 блока 25 вьщелени  минимального и максимального количеств импульсов дополнительного кода числа л Т, импульсов сохран етс  нулевое значение, и состо ние триггера 31 не измен етс .The second linear section is selected from the conditions T, where n is the width of the counter 100. The signal at the output of the element I 29 after setting the output 40 of the block 25 for separating the minimum and maximum number of pulses of the additional code of the number L T, the pulses remain zero, and trigger 31 is unchanged.

После загрузки в блок 25 выделени  ьтнимального и максимального количеств импульсов числа Л Т, устройства 2 начинает сравнение текущих адресов программы А, с вектором перехода линейного участка. Сравнение вьшолн етс  следующим образом. При поступлении очередного тактового импульса на синхровход регистра 97 блока 26 микропрограммного управлени  в регистре запоминаетс  информационное слово Х111, и на адресных входах блока 98 посто нной пам ти устанавлови  Т О (счетчик 99 блока 25 выделени  минимального и максимального количеств импульсов установитс  в О по приходу на его счетный вход в режиме вычитани  Т тактовых импульсов ) . При Т О с выхода элемен та ИЛИ 30 на вход 41 блока 26 микропрограммного управлени  и далее на п тый адресный вход блока 98 посто нной пам ти поступает нулевой сигнал, и на вькодах этого блока устанавливаютс  значени  сигналов в соответствии со строкой 17 табл.2. Одновременно нулевой сигнал с выхода элеливаетс  адрес ХХ111 одной из четырехAfter loading in block 25 the allocation of the minimum and maximum number of pulses of the number LT, device 2 begins to compare the current addresses of program A with the transition vector of the linear section. The comparison is done as follows. When the next clock pulse arrives at the synchronous input of the register 97 of the microprogram control block 26, the information word X111 is stored in the register, and the address inputs of the fixed memory block 98 establish T O (the counter 99 of the block 25 for allocating the minimum and maximum number of pulses will be set to O by the arrival its counting input in T clock pulse subtraction mode). When T o from the output of the element OR 30, the input 41 of the microprogram control unit 26 and then the fifth address input of the permanent memory unit 98 receives a zero signal, and on the codes of this block, the values of the signals are set in accordance with line 17 of Table 2. At the same time, the zero signal from the output leads to the address ХХ111 of one of the four

его  чеек (табл.2, строки 8, 16, 24,, 25мента ИЛИ 30 поступает на вход 42its cells (Table 2, lines 8, 16, 24 ,, 25mentand OR 30 are fed to the input 42

32) в зависимости от состо ний выхо-запрета счета блока 25 вьщелени  мидов схемы 24 сравнени  и элементанимального и максимального количеств32) depending on the state of the output-prohibition of the account of the block 25 of the blasts of minids of the comparison circuit 24 and the minimum and maximum amounts

ИЛИ 30. При этом нулевые значени импульсов и устанавливает этот блокOR 30. In this case, the zero values of the pulses and sets this block

сигналов с выхода 48 блока 26 микро-в режим счета лТ (открывает элементsignals from the output 48 of the block 26 micro-in LT counting mode (opens the element

30И 103 дл  прохождени  тактовых сигнапрограммного управлени  поступают на вход младших разр дов адреса блока 28 посто нной пам ти (адрес Вр, с выходов которого на второй вход схемы 24 сравнени  поступает младша 30 and 103 for passing the clock signal-program control is fed to the input of the lower bits of the address of the block 28 of the permanent memory (the address BP, from the outputs of which to the second input of the comparison circuit 24 goes below

лов на счетный вход в режиме суммировани  счетчика 100 и закрывает элемент И 101). После выполнени  условий , 0с выхода 48catch on the counting input in the mode of summing the counter 100 and closes the element And 101). After fulfilling the conditions, output 0c 48

часть Аpart A

первого ожидаемого адреса 35 блока 26 микропрограммного управле- линейного участка L . Одновременно единичный сигнал с первого выхода блока 98 посто нной пам ти блока 26 микропрограммного управлени  поступает на управл ющий вход 51 блока регистров и далее на пр мой вход обращени  регистра 96, с выходов которого на выход 32 блока регистров и далее на первый вход схемы 24 сравнени  поступает младша  часть А, те- 45 гичным путем поступает значение А кущего адреса, записанна  в этот ре- старшей части текущего адреса. Оче- гистр очередным управл ющим сигналом, поступаклцим с .входа 16. записи на вход 34 записи блока 23 регистров.the first expected address 35 of the firmware control unit 26 of the linear section L. At the same time, a single signal from the first output of the storage unit 98 of the microprogram control unit 26 is fed to the control input 51 of the register block and then to the direct input of register 96, from the outputs of which to the output 32 of the register block and further to the first input of the comparison circuit 24 the younger part of A arrives, the exact way the value of A of the current address, recorded in this older part of the current address, arrives. The next control signal is received by the control signal from the input 16. write to input 34 of the record block 23 of registers.

Если А{. А,-„, сигнал на выходе 50 на адресных входах блока 98 посто н- схемы 24 сравнени  принимает нулевое ной пам ти при А А,- устанавли- значение. Этот сигнал поступает на ваетс  адрес 00001 и на выходах это- вход 33 блока 26 микропрограммного го блока устанавливаютс  значени  управлени  и далее на четвертый вход сигналов в соответствии со строкой регистра 97. Очередным тактовым сиг- 55 18 табл.2. На этом цикл контрол  лини  на вход младших разр дов адреса блока 28 посто нной пам ти поступает информационное слово 001 и значение A.j(. старшей части первого ожидаемо- 40 го адреса вектора перехода линейного участка L из  чейки блока 28 посто нной пам ти с адресом В + 1 поступает на второй вход схемы 24 сравнени , на первый вход которой аналоредной тактовый сигнал на синхровхо- де 43 регистра 97 записывает в этот регистр информационное слово 0001,If A {. A, - ", the signal at the output 50 at the address inputs of the block 98 of the constant-comparison circuit 24 receives a zero memory at A A, - set value. This signal is sent to address 00001 and the outputs 33 of block 26 of the microprogram block are set to control values and then to the fourth input of signals in accordance with the register line 97. The next clock signal is 55 18 table 2. On this cycle of control of the line, the information word 001 and the value of Aj (the most significant part of the first expected 40 address of the transition vector of the linear section L from the cell 28 of the permanent memory with the address B + 1 is fed to the second input of the comparison circuit 24, to the first input of which the analogue clock signal on the synchronization 43 of the register 97 writes the information word 0001 into this register,

налом в регистр 97 заноситс  информационное слово 0000, и на адресных входах блока 98 посто нной пам ти устанавливаетс  адрес одной из-двухthe information word 0000 is entered into register 97, and the address of one of the two

- а - but

131598124131598124

его  чеек ХОООО (табл.2, строки 1 и 17) в зависимости от состо ни  выхода элемента ИЛИ 30. Если Т, О, на адресных входах блока 98 посто нной с пам ти - адрес 10000 и на его выходах устанавливаютс  значени  сигналов в соответствии со строкой 1 табл.2. В дальнейшем состо ни  выходов блока 26 микропрограммного управлени  не измен ютс  до выполнени  усfOits cells XOOOO (Table 2, lines 1 and 17) depending on the state of the output of the element OR 30. If T, O, the address inputs of the permanent memory block 98 are address 10,000 and the outputs of the signals are set to with line 1 of table 2. Subsequently, the output states of the firmware control unit 26 are not changed until the execution of the operation.

5five

00

лови  Т О (счетчик 99 блока 25 выделени  минимального и максимального количеств импульсов установитс  в О по приходу на его счетный вход в режиме вычитани  Т тактовых импульсов ) . При Т О с выхода элемента ИЛИ 30 на вход 41 блока 26 микропрограммного управлени  и далее на п тый адресный вход блока 98 посто нной пам ти поступает нулевой сигнал, и на вькодах этого блока устанавливаютс  значени  сигналов в соответствии со строкой 17 табл.2. Одновременно нулевой сигнал с выхода элелов на счетный вход в режиме суммировани  счетчика 100 и закрывает элемент И 101). После выполнени  условий , 0с выхода 48catch T o (counter 99 of block 25 for allocating the minimum and maximum number of pulses will be set to 0 upon arrival at its counting input in the subtraction mode T clock pulses). At T o from the output of the element OR 30 to the input 41 of the microprogram control unit 26 and then to the fifth address input of the permanent memory unit 98 a zero signal is received, and the signals of this block are set to the values of the signals in accordance with line 17 of table 2. At the same time, the zero signal from the output of the cell to the counting input is in the mode of summing up the counter 100 and closes the element AND 101). After fulfilling the conditions, output 0c 48

35 блока 26 микропрограммного управле- 45 гичным путем поступает значение А старшей части текущего адреса. Оче- 35 of the firmware control block 26, the value A of the most significant part of the current address enters 45 in the most thorough way. Oche-

ни  на вход младших разр дов адреса блока 28 посто нной пам ти поступает информационное слово 001 и значение A.j(. старшей части первого ожидаемо- 40 го адреса вектора перехода линейного участка L из  чейки блока 28 посто нной пам ти с адресом В + 1 поступает на второй вход схемы 24 сравнени , на первый вход которой аналоблока 26 микропрограммного управле- гичным путем поступает значение А старшей части текущего адреса. Оче- The information word 001 and the value Aj (the upper part of the first expected 40 address of the transition vector of the linear segment L from the cell 28 of the fixed memory 28 with the address B + 1) are fed to the input of the lower bits of the address of the block 28 of the permanent memory. the second input of the comparison circuit 24, at the first input of which the analog block of the firmware microprogrammed control path enters the value A of the highest part of the current address.

редной тактовый сигнал на синхровхо- де 43 регистра 97 записывает в этот регистр информационное слово 0001,the red clock signal on the synchronization register 43 registers 97 writes into this register the information word 0001,

нейного участка L завершаетс  и производитс  загрузка В в регистр 27 дл  контрол  линейного участка Li ..251line segment L is terminated and B is loaded into register 27 to control the linear segment Li ..251

Если А А. или . А,-р,аналогичным путем в соответствии с табл.2 производитс  проверка условий иА(./с и Р выполнений этих условий производитс  загрузка В° в регистр 27 дл  контрол  линейного участка L.If A is A. or. A, -p, in a similar way, in accordance with Table 2, conditions A and A are checked (./s and P of these conditions are loaded into B ° in register 27 to control the linear portion L.

Таким образом, при правильном выполнении программы микроэвм в начале каждого очередного линейного участка производитс  загрузка блока 25 вьщелени  минимального и максимального количеств импульсов соответствующими значени ми Т и Л Т и счетчик 100 блока 25 выделени  минимального и максимального количеств импульсов никогда не установитс  в состо ние Все единицы. Если при поступлении Tj тактовых импульсов не выполн ютс  услови  А А,. и А А,(А . Аj.), т.е. в результате сбо  или неисправности процессор 1 перешел к выполнению команды с произвольным адресом, мину  адрес А-(А сигнал на выходе элемента И 29 принимает единичное значение. Этот сигнал поступает на вход установки в 1 триггера 31, и он переходит в единичное состо ние. Нулевой сигнал с инверсного выхода этого триггера поступает на выход 21 устройства 2 контрол  выполнени  программ в ка- естве сигнала Запрос прерывани . После обработки прерывани  в микро- ЭВМ устройство 2 дл  контрол  приводитс  в исходное состо ние описанным путем и микроэвм начинает выполнение рабочей программы с нулевого адреса.Thus, if the microcomputer program is correctly executed at the beginning of each successive linear section, block 25 is used to allocate the minimum and maximum number of pulses with corresponding values of T and L T and the counter 100 of the block 25 for selecting the minimum and maximum number of pulses will never be set to All Units . If, on receipt of Tj clock pulses, the conditions A A ,. and A A, (A. Aj.), i.e. as a result of a failure or malfunction, processor 1 proceeded to execute a command with an arbitrary address, mine address A- (And the signal at the output of element 29 takes a single value. This signal enters the input of the installation in 1 trigger 31, and it goes into one state. The zero signal from the inverse output of this trigger enters the output 21 of the program control unit 2 as a signal. Interrupt request. After processing the interrupt on the microcomputer, the control device 2 is reset to the initial state using the described method computer starts execution of the work program to address zero.

Работа устройства 2 (фиг.2) по сн етс  временной диаграммой (фиг.15) отображающей процесс загрузки (момент 134 времени) и постепенного уменьшени  содержимого счетчиков Т (эпюра 135) и лТ (эпюра 136) и формировани  сигналов сравнени  137 и прерывани  138 в случае возникновени  сбо  139.The operation of the device 2 (Fig. 2) is explained by the time diagram (Fig. 15) representing the loading process (time 134) and gradually reducing the contents of the counters T (plot 135) and lT (plot 136) and generating comparison signals 137 and interrupting signals 138 in case of a failure 139.

В момент 140 времени происходит совпадение текущего адреса программы А и одного из ожидаемых адресов AJ (или А.). Импульсы совпадени  137 формируютс  на входе 33 блока 26 микропрограммного управлени  в моменты перехода микроЭВМ на начало следую- .щего линейного участка. Содержимое счетчика зТ при этом остаетс  ненулевым и сигнал на входе установкиAt time 140, the current address of program A and one of the expected addresses AJ (or A.) coincide. The coincidence pulses 137 are formed at the input 33 of the microprogram control unit 26 at the moments of the transition of the microcomputer to the beginning of the next linear section. The content of the counter zT remains non-zero and the signal at the input of the installation

126126

в 1 триггера 31 сохран ет нулевое значение. Если в результате возникновени  помехи (условно представлена импульсом 139), привод щей к выполнению ошибочного перехода в пределах линейного участка программы (или к другому линейному участку программы ) , сравнение текущего адреса А . и одного из ожидаемых адресов А. произойдет не в запланированный момент 141 времени, а в момент 142 (не показан) до обнулени  счетчика Т, т.е. в момент 143 времени (не показан) после переполнени  счетчика аТ, в момент времени 144 переполнени  счетчика 100 импульсов Т сигнал на выходе 21 устройства 2 (эпюра 138) принимает нулевое значение .in 1 flip-flop 31 saves zero value. If, as a result of a disturbance (conditionally represented by a pulse 139), leading to the execution of an erroneous transition within the linear section of the program (or to another linear section of the program), the current address A is compared. and one of the expected addresses A. will not occur at the planned time of 141 time, but at time 142 (not shown) until the counter is zeroed, i.e. at time 143 (not shown) after the AT counter overflows, at time 144 the pulse counter 100 overflows T, the output 21 of the device 2 (plot 138) takes a zero value.

Эпюры на фиг.15 свидетельствуют о том, что врем  между возникновением сбо  и его обнаружением в предпагае- мом устройстве не превышает длитель-The plots in Fig. 15 indicate that the time between the occurrence of a fault and its detection in the intended device does not exceed the duration

ности прохождени  линейного участкаthe passage of the linear section

программы, что позвол ет организовать своевременную реакцию устройства управлени  в случае аварийной ситуации. Устройство 2 дл  контрол  микроэвм по второму варианту (фиг.З) работаетprogram that allows you to organize a timely response of the control device in case of emergency. The device 2 for controlling the microcomputer according to the second variant (FIG. 3) is working

следующим образом.in the following way.

Й1кроЭВМ приводитс  в исходное состо ние путем подачи логической 1 в линию Общий сброс, вход щую в состав шин 10 и 14.The computer is reset to its original state by supplying a logical 1 to the line General reset, which is part of the tires 10 and 14.

Сигнал на этой линии формируетс  автоматически после включени  питани  или, например, по вл етс  в результате нажати  соответствующей кнопки на пульте управлени .The signal on this line is formed automatically after the power is turned on or, for example, appears as a result of pressing the corresponding button on the control panel.

Сигнал Общий сброс приводит в исходное состо ние процессор 1 и управл ющую часть пам ти 5 и 6, а также подготавливает вьщачу сигнала прерывани  из устройства 2 в процессор 1 по линии 21 при обнаружении сбо  и настраивает устройство 2 так, что первому адресу первого линейного участка программы соответствует адрес  чейки блока 58 посто нной пам ти , хран щей характеристическое множество этого участка.The master reset signal initializes processor 1 and the control part of memory 5 and 6, and also prepares the interrupt signal from device 2 to processor 1 via line 21 when a failure is detected, and sets up device 2 so that the first address of the first linear section the program corresponds to the cell address of the fixed memory block 58, which stores the characteristic set of this region.

Подготовка выдачи сигнала прерывани  производитс  следующим образом .An interrupt signal is prepared as follows.

Сигнал Общий сброс поступает с шины 14 (фиг.З) на вход 17 начальной установки устройства 2, и далее на вход элемента ИЛИ 61, ас его вы,271315981The signal General reset comes from the bus 14 (fig.Z) to the input 17 of the initial installation of the device 2, and then to the input of the element OR 61, as you, 271315981

хода - на входы установки в единичноеcourse - to the inputs of the installation in a single

состо ние триггеров 63 и 65. Единичный сигнал с пр мого выхода триггера 65 отпирает элемент И-НЕ 69, в результате чего нулевой сигнал с инверсного выхода триггера 63 поступает на первый вход элемента И-НЕ 69, сигнал на выходе 21 которого принимает единичное значение. Это состо ние соответствует отсутствию прерывани .the state of flip-flops 63 and 65. A single signal from the direct output of flip-flop 65 unlocks the IS-NE element 69, as a result of which the zero signal from the inverse output of flip-flop 63 is fed to the first input of the IS-NE 69 element, the output signal of which 21 takes . This state corresponds to no interrupt.

ва Т с информационного входа 88 в счетчики 107. Значени  Т 0 AT(j 1 О и Т 0 поступают с выходов первого, второго и последующих счетчиков 107 соответственно на выходы 93, 92 и 94 и далее на группы входов элементов ИЛИ 60, ИЛИ-НЕ 59 и ИЛИ 62. На выходе элемента ИЛИ 60 устанавливаетс  нулевое значение сигнала, который присутствует на информационном входе триггера 64,входе запрета счетчика 83 блока 56 счетчиков и Первом адресном входе 84 блока 57 микропрограммного управле-va T from information input 88 to counters 107. The values of T 0 AT (j 1 O and T 0 come from the outputs of the first, second and subsequent counters 107, respectively, to outputs 93, 92 and 94 and further to the groups of inputs of the elements OR 60, OR- NOT 59 and OR 62. At the output of the element OR 60, a zero value is set, which is present at the information input of the trigger 64, the inhibit input of the counter 83 of the counter block 56, and the First address input 84 of the firmware control 57

Настройка устройства 2 дл  контрол  на соответствие адресов пам ти 6Configuring device 2 for monitoring the matching of memory addresses 6

микроэвм и блока 58 посто нной пам - ни .на выходе элемента иЛИ-НЕ 59 ти производитс  при поступлении сиг- устанавливаетс  нулевое значение сигнала Общий сброс с шины 14 на .вход „ала, который поступает на счетныйmicrocomputer and block 58 of the permanent memory. At the exit of the element OR-NOT 59, this is done when the signal is received. The signal is set to zero. A general reset from the bus 14 to the input of the signal that goes to the counting

вход триггера 64. На выходе элемента ИЛИ 62 устанавливаетс  нулевое 20 значение сигнала, который присутствует на втором входе элемента И 67 иtrigger input 64. At the output of the OR 62 element, a zero 20 value of the signal is set, which is present at the second input of the AND 67 element and

17 начальной установки устройства 2 и далее на вход сброса регистра 53, в результате чего сигналы на выходах этого регистра принимают нулевые значени . Эти сигналы поступают на вход старших разр дов адреса блока 58 посто нной пам ти. Одновременно сигнал Общий сброс поступает на вход 74 блока 57 микропрограммного управлени  и далее на вход обращени  блока 105 посто нной пам ти (фиг.7). В резуль- . .тате воздействи  сигнала Общий17 of the initial installation of the device 2 and further to the reset input of the register 53, as a result of which the signals at the outputs of this register assume zero values. These signals are input to the higher bits of the address of block 58 of the permanent memory. At the same time, the signal General reset is fed to the input 74 of the firmware control unit 57 and then to the access input of the permanent memory unit 105 (Fig. 7). As a result, Signal Exposure Signal

запирает его дл  прохождени  сигнала сброса триггера 63 с седьмого выхода 79 блока 105 посто нной пам - 25 ти по цепи 79-67-63 (фиг.З). . После окончани  сигнала Общий сброс процессор 1 автоматически или по инициативе оператора переходит к выполнению рабочей программы, запи- сброс на всех выходах блока 105 по- саной в посто нной пам ти 6 микроЭВМ. . сто нной пам ти устанавливаетс  вы- сокоимпедансное состо ние. Это состо ние на выходных лини х блока 105 посто нной пам ти воспринимаетс  наlocks it to pass the reset signal of flip-flop 63 from the seventh output 79 of the fixed memory block 105 - 25 ti along the circuit 79-67-63 (FIG. 3). . After the termination of the signal General reset, the processor 1 automatically or at the initiative of the operator proceeds to the execution of the work program, recording the reset on all outputs of the block 105 in the permanent memory 6 of the microcomputer. . The high-impedance state is set to the memory. This state on the output lines of the storage unit 105 is sensed on

входах св занных с ними элементов как р запоминаетс  в регистре 52 и сигнал логической 1 .«Записьвре- с его выхода поступает на первый вход гистр 104 исходного состо ни  производитс  тактовым сигналом процессора 1 по цепи 22-87-57 (фиг.З) и далее на сихровход регистра 104 (фиг.7), в результате чего сигналы на первом и втором вьгходах этого регистра принимают единичное значение . Эти сигналы поступают по линии 81 на вход младпшх разр дов адреса блока 58 посто нной пам ти. Содержимое  чейки блока 58 посто нной пам тиthe inputs of the elements associated with them as p is stored in register 52 and the signal is logical 1. "Recording from its output to the first input of the initial state of the horn 104 is produced by the clock signal of processor 1 through circuit 22-87-57 (FIG. 3) and further on, the register 104 (Fig.7), as a result, the signals on the first and second inputs of this register take on a single value. These signals are received via line 81 to the input of the low-order bits of the address of block 58 of the permanent memory. The contents of the cell block 58 constant memory

На информационном входе 15 устройства 2 процессор 1 устанавливает начальный адрес рабочей программы.При наличии сигнала сопровождени  этотAt information input 15 of device 2, processor 1 sets the start address of the work program. If there is a tracking signal, this

схемы 55 сравнени . При включении питани  регистр 54 устанавливаемс  в произвольное состо ние и с его вы- 40 хода на первый вход схемы 55 сравнени  поступает произвольный ожидаемый адрес. На выходе схемы 55 сравнени  устанавливаетс  единичный сигнал в случае, если состо ние реги- 45-стра 54 совпадает с начальным адресом и нулевой - в противном случае. Это соответствует неопределенному значению сигнала на втором адресном входе 85 блока 57 микропрограммногоcomparison circuits 55. When the power is turned on, the register 54 is set to an arbitrary state and from its output to the first input of the comparison circuit 55 a random expected address is received. At the output of the comparison circuit 55, a single signal is set if the state of the register 54 coincides with the starting address and zero - otherwise. This corresponds to the undefined value of the signal at the second address input 85 of block 57 of the firmware

с адресом 00-001 (В +2) (табл.3)with the address 00-001 (B +2) (Table 3)

емый адрес. На выходе схемы 55 сравнени  устанавливаетс  единичный сигнал в случае, если состо ние реги- 45-стра 54 совпадает с начальным адресом и нулевой - в противном случае. Это соответствует неопределенному значению сигнала на втором адресном входе 85 блока 57 микропрограммногоaddress At the output of the comparison circuit 55, a single signal is set if the state of the register 54 coincides with the starting address and zero - otherwise. This corresponds to the undefined value of the signal at the second address input 85 of block 57 of the firmware

поступает на информационный вход 88arrives at information input 88

блока 56 счетчиков. Сигнал с шестого50 управлени  и на третьем адресном вхо- выхода блока 105 посто нной пам ти де блока 105 посто нной пам ти.Таким (фиг.7) поступает на второй вход эле- образом, в соответствии с начальной мента И 106 и открывает его дл  про- установкой на адресных входах блока хождени  сигнала по цепи 22-87-57 105 посто нной пам ти формируетс block 56 counters. The signal from the sixth control and at the third address input of the fixed memory unit 105 of the fixed memory unit 105. Thus (FIG. 7) is fed to the second input in an elec- tronic way, according to the initial mentor And 106, and opens it to by installing permanent memory at the address inputs of the signal walker along circuit 22-87-57 105

(фиг.З), 87-106-76 (фиг.7),76-70-7555 адрес 0X11. Сн тие сигнала Обшлй(fig.Z), 87-106-76 (fig.7), 76-70-7555 address 0X11. Disconnect Signal

(фиг.З) на вход 75 записи блока 56 счетчиков и далее на входы записи счетчиков 107 (фиг.8),что вызывает запись характеристического множестсброс соответствует обращению к блоку 105 посто нной пам ти. Сигналы на его выходах принимают значени  в соответствии со строками 4 или 8 табл.4.(FIG. 3) to the input 75 of the recording of the block 56 of the counters and further to the inputs of the recording of the counters 107 (FIG. 8), which causes the recording of the characteristic reset corresponds to a reference to the permanent memory unit 105. The signals at its outputs take the values in accordance with rows 4 or 8 of table 4.

2828

ва Т с информационного входа 88 в счетчики 107. Значени  Т 0 AT(j 1 О и Т 0 поступают с выходов первого, второго и последующих счетчиков 107 соответственно на выходы 93, 92 и 94 и далее на группы входов элементов ИЛИ 60, ИЛИ-НЕ 59 и ИЛИ 62. На выходе элемента ИЛИ 60 устанавливаетс  нулевое значение сигнала, который присутствует на информационном входе триггера 64,входе запрета счетчика 83 блока 56 счетчиков и Первом адресном входе 84 блока 57 микропрограммного управле-va T from information input 88 to counters 107. The values of T 0 AT (j 1 O and T 0 come from the outputs of the first, second and subsequent counters 107, respectively, to outputs 93, 92 and 94 and further to the groups of inputs of the elements OR 60, OR- NOT 59 and OR 62. At the output of the element OR 60, a zero value is set, which is present at the information input of the trigger 64, the inhibit input of the counter 83 of the counter block 56, and the First address input 84 of the firmware control 57

ни .на выходе элемента иЛИ-НЕ 59 устанавливаетс  нулевое значение сиг„ала , который поступает на счетныйneither. at the output of the element or-NOT 59, the zero value of the signal is set, which goes to the counting

. После окончани  сигнала Общий сброс процессор 1 автоматически или по инициативе оператора переходит к выполнению рабочей программы, запи- саной в посто нной пам ти 6 микроЭВМ. . After the termination of the signal General reset, processor 1 automatically or at the initiative of the operator proceeds to the execution of the work program recorded in the permanent memory 6 of the microcomputer.

На информационном входе 15 устройства 2 процессор 1 устанавливает начальный адрес рабочей программы.При наличии сигнала сопровождени  этотAt information input 15 of device 2, processor 1 sets the start address of the work program. If there is a tracking signal, this

р запоминаетс  в регистре 52 и с его выхода поступает на первый вход p is stored in register 52 and from its output goes to the first input

схемы 55 сравнени . При включении питани  регистр 54 устанавливаемс  в произвольное состо ние и с его вы- хода на первый вход схемы 55 сравнени  поступает произвольный ожида р запоминаетс  в регистре 52 и с его выхода поступает на первый вход comparison circuits 55. When the power is turned on, the register 54 is set to an arbitrary state, and from its output to the first input of the comparison circuit 55, an arbitrary expectation p is received and stored in the register 52 and from its output it goes to the first input

емый адрес. На выходе схемы 55 сравнени  устанавливаетс  единичный сигнал в случае, если состо ние реги- 5-стра 54 совпадает с начальным адресом и нулевой - в противном случае. Это соответствует неопределенному значению сигнала на втором адресном входе 85 блока 57 микропрограммногоaddress At the output of the comparison circuit 55, a single signal is set if the state of the register 5-country 54 coincides with the starting address and zero - otherwise. This corresponds to the undefined value of the signal at the second address input 85 of block 57 of the firmware

адрес 0X11. Сн тие сигнала Обшлйaddress 0X11. Disconnect Signal

сброс соответствует обращению к блоку 105 посто нной пам ти. Сигналы на его выходах принимают значени  в соответствии со строками 4 или 8 табл.4.a reset corresponds to a reference to the permanent memory unit 105. The signals at its outputs take the values in accordance with rows 4 or 8 of table 4.

29132913

Единичным сигналом с шестого выхода блока 105 ndCTOHHHofl пам ти отпираетс  элемент И 106 и тактовый сигнал поступает по цепи 22-87-106- -76-70-75 на вход 39 записи информации блока 56 счетчиков. Происходит повторна  запись характеристического множества Т в блок 56 счетчиков.A single signal from the sixth output of the ndCTOHHHofl memory unit 105 unlocks the AND element 106 and the clock signal is fed through the circuit 22-87-106-76-70-75 to the input 39 of the information recording unit 56 of the counters. The characteristic set T is repeated to be recorded in block 56 of the counters.

Первый тактовый сигнал по цепи 22-83-104 производит запись в регист 10А информационного слова 0X00. На адресных входах блока 105 посто нной пам ти формируетс  адрес 0X00, и сигналы на его выходах принимают значени  в соответствии со строками 1 или 5 табл,4.The first clock signal on the circuit 22-83-104 records in the register 10A information word 0X00. At the address inputs of the permanent memory unit 105, the address 0X00 is formed, and the signals at its outputs take on values in accordance with rows 1 or 5 of Table 4.

Информационное слово 00 с выхода 81 блока 57 микропрограммного управлени  поступает на вход младших разр дов адреса блока 58 посто нной пам ти , и на его выходах устанавливаетс  содержимое первой (В°)  чейки А, Оиждаемый адрес А поступает на информационные входы регистра 54 и запоминаетс  в нем при поступлении единичного сигнала с третьего выхода 78 блока 105 посто нной пам ти на вход записи этого регистра. На выходе схемы 55 сравнени  устанавливаетс  нулевое значение сигнала о совпадении текущего адреса А, и ожидаемого , Этот сигнал поступает по цепи 55-85 на второй адресньш вход 8 блока 57 микропрограммного управлени  и далее на третий вход блока 105 посто нной пам ти. Таким образом,, независимо от исходного состо ни  регистра 54 до прихода второго тактового сигнала на входах блока 105 посто нной пам ти устанавливаетс  адрес 0000 и сигналы на его выходах принимают значени , соответствующие строке 1.табл,4. Единичный сигнал с выхода 77 блока 57 микропрограммного управлени  поступает на информационный вход триггера 63 и, в случае изменени  сигнала на его синхровхо- де, подтверждает единичное состо ние отсутстви  прерывани .The information word 00 from the output 81 of the firmware control unit 57 is inputted to the low-order bits of the address of the fixed memory unit 58, and at its outputs the contents of the first (V °) cell A, the Awarded address A is fed to the information inputs of the register 54 and stored in when a single signal is received from the third output 78 of the block 105 of the permanent memory to the input of the record of this register. At the output of the comparison circuit 55, a zero value is set for the signal about the coincidence of the current address A, and the expected one. This signal goes through the circuit 55-85 to the second address input 8 of the microprogram control unit 57 and then to the third input of the permanent memory unit 105. Thus, regardless of the initial state of the register 54, before the arrival of the second clock signal, the address 0000 is set at the inputs of the permanent memory unit 105 and the signals at its outputs take the values corresponding to row 1. table, 4. A single signal from the output 77 of the microprogram control unit 57 is fed to the information input of the trigger 63 and, in the event of a change in the signal at its synchronization, confirms the single state of the absence of an interrupt.

При поступлении второго тактового сигнала в регистре 104 запоминаетс  информапзионное слово 0110. Единичное значение сигнала с третьего выхода 80 регистра 104 поступает на управл ющий вход 82 коммутатора 72 и подключает к его выходам 91 первую группу входов 89, Одновременно информационное слово 10 с выхода 81 блокаUpon receipt of the second clock signal, the information word 0110 is stored in the register 104. The unit value of the signal from the third output 80 of the register 104 arrives at the control input 82 of the switch 72 and connects the first group of inputs 89 to its outputs 91, simultaneously the information word 10 from the output 81 of the block

130130

57микропрограммного управлени  поступает на вход младших разр дов адреса блока 58 посто нной пам ти, и на его выходах по вл етс  содержимоеThe microprogram control is fed to the input of the lower bits of the address of the block 58 of the permanent memory, and the contents appear on its outputs

третьей BS + 2  чейки В, , Перва  часть В этого информационного слова поступает с выходов блокаthe third BS + 2 cells B,,, the first part of this information word comes from the outputs of the block

58посто нной пам ти на первую группу 89 входов коммутатора 72 и с его58 memory on the first group of 89 inputs of the switch 72 and its

выходов на информационные входы регистра 53, На входах блока 105 посто нной пам ти блока 57 микропрограммного управлени  устанавливаетс  адрес 0010, и сигналы на его выходах принимают значени , соответствующие строке 3 табл,4. Единичный сигнал с выхода 79 блока 57 микропрограммного управлени  поступает на вход записи регистра 53, и в регистре запоминаетс  информационное слово В - адрес массива служебной информации дл  первого линейного участка L программ, . При поступлении третьего тактового сигнала в регистре 104 запоминаетс  информационное слово 0X11, на адресных входах блока 105 посто нной пам ти блока 57 микропрограммного управлени  устанавливаетс  адресthe outputs to the information inputs of the register 53, At the inputs of the block 105 of the permanent memory of the block 57 of the firmware control, address 0010 is set, and the signals at its outputs take the values corresponding to row 3 of the tabl, 4. A single signal from the output 79 of the firmware control unit 57 is input to the register entry 53, and the information word B is stored in the register — the address of the service information array for the first linear section L of the programs,. Upon receipt of the third clock signal, the information word 0X11 is stored in the register 104, the address is set at the address inputs of the permanent memory block 105 of the microprogram control block 57

0011 и сигналы на его выходах принимают значени , указанные в строке 4 табл.4, в результате чего содержимое Т  чейки В + 3 блока 58 посто нной пам ти (табл,3) загружаетс  в блок0011 and the signals at its outputs take the values indicated in line 4 of Table 4, as a result of which the contents of the T cell B + 3 blocks 58 of the permanent memory (tab. 3) are loaded into the block

56 счетчиков.56 counters.

Код элементов Т и Тд характеристического множества выбиваетс  таким , чтобы к моменту выбора из пам ти 6 микроэвм команды с адресом АThe code of the T and Td elements of the characteristic set is knocked out so that by the moment of selecting the 6 micro-computers of the command with address A from the memory

или А содержимое первого, третьего и последующих счетчиков 107, работа.ю- щих в режиме вычитани  (подсчета сигналов на тактовом входе 22 и лини х 20 шины 14), бьшо равно нулю.or A, the contents of the first, third, and subsequent counters 107 operating in subtraction mode (counting the signals at the clock input 22 and the lines x 20 of the bus 14), was zero.

Код 4 Т выбираетс  из соотношени  ДТ Т, где Т„ - суммарное количество тактов на линейном участке, в течение которых процессор 1 находитс  в режиме ожидани  при работеCode 4 T is selected from the ratio DT DT, where T "is the total number of clock cycles in the linear region during which processor 1 is in standby mode during operation

с внешними устройствами, В качестве импульсов на интерфейсных управл ющих лини х могут быть использованы сигналы управлени  записью в запоминающее устройство (ЗУ), чтение изwith external devices. As a pulse on the interface control lines, write control signals to a storage device (memory) can be used, reading from

ЗУ, вводом информации с внешних устройств , выводом на внешние устройства , а также сигналы управлени  арифметико-логическим устро1 ствомMemory, input of information from external devices, output to external devices, as well as control signals for arithmetic logic unit

311311

при выполнении той или иной операци ( или группы операций). Количество таких сигналов зависит только от чила соответствующих команд в рассматриваемом линейном участке программы и не св зано с быстродействием внешних устройств. Таким образом, линейный участок программы однозначно определен количеством-импульсов на интерфейсных управл ющих лини х. В качестве тактовых импульсов могут быть использованы сигналы синхронизации выборки или выполнени  команды. Например , дл  микропроцессора КР580ИК8 в качестве тактовых импульсов на тактовый вход устройства могут быть поданы сигналы М выборки команд. При этом число Т Т. тактовых импульсов строго детерминировано и определ етс  количеством команд в данном линейном участке программы. Аналогично строго определенное число тактовых импульсов, равное суммарному числу машинных циклов прохождени  команд данного линейного участка программы , может быть получено при использовании в качестве сигналов на тактовом входе устройства импульсов SYNC микропроцессора.when performing a particular operation (or group of operations). The number of such signals depends only on the number of corresponding commands in the considered linear section of the program and is not related to the speed of external devices. Thus, the linear portion of the program is uniquely determined by the number of pulses on the interface control lines. As clock pulses, sample timing or command execution signals can be used. For example, for the KP580IK8 microprocessor, as a clock pulse, M command samples can be sent to the clock input of the device. At the same time, the number T of T. clock pulses is strictly deterministic and is determined by the number of commands in a given linear portion of the program. Similarly, a strictly defined number of clock pulses, equal to the total number of machine cycles for passing commands to a given linear program section, can be obtained using microprocessor SYNC pulses as signals at the clock input of the device.

В качестве тактовых импульсов могут быть использованы также сигналы тактового генератора микроЭВМ (дл  микропроцессора К580ИК80 ). В этом случае число тактовых импульсов на заданном линейном участке программы определ етс  в интервале Т f7 Использование режима Ожидание св зано с тем, что в состав управл ющих микроЭВМ могут входить специальные процессоры обмена (каналы , работающие по своей программе .и потому асинхронные по отношению К центральному процессору).As clock pulses, signals of a microcomputer clock generator can also be used (for K580IK80 microprocessor). In this case, the number of clock pulses on a given linear portion of the program is determined in the interval T f7. The use of the Standby mode is due to the fact that the control microcomputers may include special exchange processors (channels that work according to their program) and therefore are asynchronous with respect to central processor).

Во многих приложени х врем  , ожидани  асинхронного ответа о готовности внешнего устройства к обмену может быть ограничено из разумных соображений максимальным числом TW   Р этом минимальное число тактовых импульсов Т равно суммарному числу тактов 1/,ТТЛ прохождени  команд данного линейного участка программы, а максимальное число тактовых импульсовIn many applications, the time spent waiting for an asynchronous response on the readiness of an external device to be exchanged can be limited from reasonable considerations to the maximum number TW. This is the minimum number of clock pulses T equal to the total number of clock cycles 1 /, the TTL command passing of this linear program section pulses

f WMCIKCf WMCIKC

II

оabout

TI т, +TI t +

ТT

Ч H

132132

где Т - такты ожидани  микропроцессора .where T is the microprocessor wait cycles.

Если в обмене с микроЭВМ участвует внешнее устройство, дл  которого невозможно установить это врем  заведомо велико (например , при работе микроЭВМ в мультипроцессорной системе), команда,обеспечивающа  такой обмен, может бытьIf an external device participates in the exchange with the microcomputer, for which it is impossible to establish this time is obviously long (for example, when the microcomputer is operating in a multiprocessor system), the command providing such exchange can be

вьщелена, как самосто тельный линейный участок программы, дл  которого один из ожидаемых адресов А- - адрес следующей команды, а другой Ау - адрес данной команды, число тактовыхidentified as an independent linear program section, for which one of the expected addresses A is the address of the next command, and another Ay is the address of the command, the number of clock ones

импульсов Т равно числу тактов прохождени  данной команды.При этом уст- .ройство выполн ет данный линейный участок в соответствии с описанием до момента прихода сигнала Готовностьpulses T is equal to the number of cycles of this command. At the same time, the device performs this linear section in accordance with the description until the signal is ready

бнешнего устройства.external device.

Прием информации в счетчик 107 производитс  и при наличии импульса на его счётном входе (т.е. безусловно ), так как управление по.The reception of information into the counter 107 is also carried out in the presence of a pulse at its counting input (i.e. unconditionally), since the control is by.

R,S-BXOAaM D-триггеров, составл ющих счетчик 107, более приоритетно, чем управление по входу синхронизации С.The R, S-BXOAaM D-flip-flops that make up counter 107 take precedence over the control on the synchronization input C.

После загрузки Т на выходахAfter loading T at the outlets

элементов ИЛИ 60 и 62 устанавливаетс  единичное значение сигналов, а на выходе элемента ИЛИ-НЕ 59 - нулевое . Единичный сигнал с выхода элемента ИЛИ 60 поступает на входы 83 блока 56 счетчиков и 84 блока 57 мик-. ропрограммного управлени . Единичное значение сигнала управлени  счетом тактов с входа 83 (фиг.8) поступает на второй вход элемента И 108 и открывают его дл  прохождени  тактовых сигналов с входа 86 на счетный вход первого счетчика 107. Одновременно единичный сигнал с входа 83 поступает на вход инвертора 110, иthe elements OR 60 and 62 is set to a single value of the signals, and the output of the element OR NOT 59 is zero. A single signal from the output of the element OR 60 is fed to the inputs 83 of the block 56 of the counters and 84 of the block 57 mic-. software management. The unit value of the clock control signal from the input 83 (Fig. 8) is fed to the second input of the AND element 108 and is opened for passing the clock signals from the input 86 to the counting input of the first counter 107. At the same time, a single signal from the input 83 is fed to the input of the inverter 110, and

.нулевой сигнал с его выхода запирает элемент И 109, запреща  прохождение тактовых сигналов с входа 86 на счетный вход второго счетчика 107. Единичный сигнал с входа 81 бло-The zero signal from its output locks the AND 109 element, prohibiting the passage of clock signals from input 86 to the counting input of the second counter 107. A single signal from input 81 of the block

ка 57 микропрограммного управлени  (фиг.7) поступает на четвертый вход регистра 104, на первом и втором входах которого присутствуют нулевые сигналы. Следующим тактовым сигналом информационное слово 1X00 записываетс  в регистр 104. На входах блока 105 посто нной пам ти блока 57 микропрограммного управлени  устанавливаетс  адрес 1100 и сигналы57 of the firmware control (Fig. 7) is fed to the fourth input of the register 104, the first and second inputs of which contain zero signals. The next clock signal information word 1X00 is recorded in the register 104. At the inputs of the block 105 of the permanent memory of the block 57 of the firmware control is set address 1100 and signals

3333

на его выходах принимают значени , указанные в строке 13 табл.4. Единичный сигнал с выхода 78 блока 57 микропрограммного управлени  поступает на вход записи регистра 54, на информационный вход которого с выхода блока 58 посто нной пам ти поступает информационное слово А, так как на вход младших разр дов адреса поступает с выхода 81 блока 57 микропрограммного управлени  информационное слово 00, в блоке 58 посто нной пам ти выбираетс   чейка В , В регистре 54 запоминаетс  ожидаемый адрес Aj, Если очередной текущий адрес А, поступающий в регистр 52 с информационного входа 15 не равен ожидаемому А, сигнал на выходе схемы 55 сравнени  сохран ет единичное значение, и в случае выполнени  услови  Т f О (единичный сигнал на первом адресном входе 84 блока 57 микропрограммного управлени ) на входах блока 105 посто нной пам ти формируетс  адрес 1101, после чего процедура сравнени  с текущим адресом повтор етс  дл  ожидаемого адреса А-. При выполнении услови  А f А- цикл сравнени  текущего адреса и вектора перехода повтор етс  дл  адресов следующих коман данного линейного участка рабочей программы.at its outputs, they take the values indicated in line 13 of table 4. A single signal from the output 78 of the firmware control unit 57 is fed to the input of the register 54, to the information input of which the information word A is received from the output of the fixed memory unit 58, since the input of the lower-order address bits is received from the output 81 of the firmware control unit 57 word 00, in block 58 of the permanent memory, cell B is selected; in register 54, the expected address Aj is memorized; If the next current address A, which enters register 52 from information input 15, is not equal to the expected A, the output signal comparison circuit 55 saves a single value, and if the condition T f O (a single signal at the first address input 84 of the microprogram control unit 57), the address 1101 is formed at the inputs of the fixed memory unit 105, after which the comparison with the current address is repeated for the expected address A-. When condition A fA is satisfied, the cycle of comparing the current address and the transition vector is repeated for the addresses of the following commands of this linear portion of the work program.

Вьфаботка управл ющих сигналов блоком 105 посто нной пам ти в соответствии с табл.4 обеспечиваетс  следующим образом.The operation of the control signals by the storage unit 105 in accordance with Table 4 is provided as follows.

Каждому из 16 наборов входных переменных на четырех адресных шин блока 105 посто нной пам ти соответствуют значени  сигналов на выходных лини х этого блока, представленные в табл.4. После сн ти  сигнала Общий сброс на входе 74 обращени  блока 105 посто нной пам ти устанавливаетс  значение сигнала, соответству ющее режиму чтени  информации из блока 105. В дальнейшем в процессе функционировани  устройства блок 105 посто нной пам ти посто нно находитс  в этом режиме. Каждое изменение значени  хот  бы одного сигнала на адресных входах блока 105 посто нной пам ти приводит к изменению его входных сигналов в соответствии с табл.4 Так, например, при изменении значе- ни  сигнала на третьем входе 85 блок 105 из нул  в единицу при нулевых значени х сигналов на первом, втором и четвертом его входах значени  выEach of the 16 sets of input variables on the four address buses of the permanent memory unit 105 corresponds to the values of the signals on the output lines of this block, presented in Table 4. After the signal is removed, a general reset at the inlet 74 of the block 105 of the permanent memory sets the signal value corresponding to the information reading mode from the block 105. Later in the process of operation of the device the block 105 of the permanent memory is constantly in this mode. Each change in the value of at least one signal at the address inputs of the fixed memory unit 105 leads to a change in its input signals in accordance with Table 4. For example, when the value of the signal at the third input 85 is changed, the unit 105 changes from zero to one at zero the values of the signals at the first, second and fourth inputs of the value of you

20 зо 20 so

598134598134

ходных сигналов, установив1пиес  до этого изменени  в соответствии с первой строкой табл.4, устанавливаютс  в соответствии со второй строкой с табл.4, т.е. значение сигнала на четвертом выходе 79 блока 105 переходит из единицы в нуль, причем сигналы на остальных его выходах сохран ют прежние значени .The signals, setting up the pia before this change in accordance with the first row of Table 4, are set in accordance with the second row of Table 4, i.e. the value of the signal at the fourth output 79 of the block 105 goes from one to zero, and the signals at its other outputs retain the same values.

fO В случае возникновени  сбо  или неисправности, привод щей к обходу одной или нескольких команд, процес5fO In the event of a failure or malfunction leading to the bypass of one or more commands, the process5

0 о 0 o

; 0 5 ; 0 5

сор 1 может прийти в адрес А илиcop 1 can come to address A or

5five

00

А до истечени  установленного минимального числа Т тактовых импульсов . В этом случае сигнал на выходе схемы 55 сравнени  принимает нулевое значение. Этот сигнал поступает на второй вход 85 блока 57 микропрограммного управлени  и далее на третий вход блока 105 посто нной пам ти.На ,адресных входах блока 105 посто нной, 1пам ти формируетс  адрес 1000 (выполнение услови  А i А) или 1001 5 (вьтолнение услови  А Ау), и на его выходах устанавливаютс  значени  сигналов, указанные соответственно в строках 9 или 10 табл.4. Нулевой сигнал с выхода 77 блока 57 микропрограммного управлени  поступает на информационный вход триггера 63. На синхровход этого триггера с выхода схемы 55 сравнени  по цепи 55-71-66- -63 поступает синхросигнал, и триггер 63 устанавливаетс  в нулевое состо ние . Единичный сигнал с инверсного выхода триггера 63 поступает на вход элемента И-НЕ 69, и сигнал на его выходе принимает нулевое значение . Этот сигнал поступает в процес- .сор 1 в качестве сигнала Запрос прерывани . Сигнал Подтверждение прерывани  поступает по шине 14 управлени  на вход 19 признака перехода устройства 2 и далее на вход установки в О триггера 65, устанавлива  его в нулевое состо ние. Нулевой сигнал с пр мого выхода триггера 65 поступает на второй вход элемента И-НЕ 69 и запрещает вьщачу сигнала Запрос прерывани . Одновременно единичный сигнал с инверсного выхода триггера 65 отпирает элемент И 68 дл  прохождени  сигнала управлени .And before the expiration of the established minimum number T of clock pulses. In this case, the signal at the output of the comparison circuit 55 takes a zero value. This signal is fed to the second input 85 of the firmware control unit 57 and then to the third input of the permanent memory unit 105. At the address inputs of the constant unit 105, address 1000 is formed (condition A i A) or 1001 5 (condition fulfillment And Ay), and at its outputs the values of the signals are specified, indicated respectively in rows 9 or 10 of Table 4. The zero signal from the output 77 of the microprogram control unit 57 is fed to the information input of the trigger 63. The sync input of this trigger from the output of the comparison circuit 55 is supplied via the clock signal 55-71-66- -63, and the trigger 63 is set to the zero state. A single signal from the inverted output of the trigger 63 is fed to the input element AND IS NOT 69, and the signal at its output takes a zero value. This signal enters the process - .sor 1 as an interrupt request signal. The interrupt acknowledgment signal is fed through the control bus 14 to the input 19 of the indication of the transition of the device 2 and then to the installation input to the O flip-flop 65, setting it to the zero state. The zero signal from the direct output of the trigger 65 is fed to the second input of the element IS-HE 69 and prohibits the signal from being interrupted. At the same time, a single signal from the inverted trigger output 65 unlocks the AND 68 element to pass the control signal.

Процессор 1 приступает к обработке прерывани , св занного с сигналом от устройства 2 дл  контрол , и на адресном входе-выходе устанавли- .The processor 1 proceeds to process the interrupt associated with the signal from the device 2 for monitoring, and at the address input-output set-.

35 - 13 ваютс  адреса программы прерывани . Ожидаемые адреса и А- продолжают поочередно сравнивать с текущими адресами А и на выходе схемы 55 устанавливаетс  единичное значение сигнала . Блок 57 микропрограммного управ лени  вьщает сигналы управлени  в соответствии со строками 13 и 14 табл.4 т.е. устройство 2 дл  контрол  выполнени  программ находитс  в состо нии ожидани .35-13, the interrupt program addresses are displayed. The expected addresses and A-continue to be alternately compared with the current addresses A and at the output of the circuit 55 a single value of the signal is set. Microprogram control unit 57 outputs control signals in accordance with rows 13 and 14 of Table 4, i.e. The device 2 for monitoring the execution of the programs is in the waiting state.

Если при вьтолнении процессором 1 линейного участка L программы достигаетс  условие Т, 0, сигнал на выходе элемента ИЛИ 60 принимает нулевое значение. Этот сигнал поступает на вход 83 блока 56 счетчиков и далее на второй вход элемента И 108 и через ин вертор 110 на второй вход элемента И 109. Элемент И 108 запираетс , и первый счетчик 107 в дальнейшем находитс  в нулевом состо нии. Элемент И 109 отпираетс  дл  прохождени  тактовых сигналов с входа 86 блока 56 счетчиков на счетный вход второго счетчика 107, где в дальнейшем происходит отсчет йТ. Одновременно нулевой сигнал с выхода элемента ИЛИ 60 Поступает на первый адресный вход J34 блока 57 микропрограммного управлени , на выходах которого устанавливаютс  управл ющие сигналы в соответствии со строками 5 или 6 табл.4, т.е. он продолжает оставатьс  в состо нии ожидани  совпадени  адресов.If, when processor 1 executes the linear section L of the program, condition T, 0 is reached, the signal at the output of the element OR 60 takes a zero value. This signal is fed to the input 83 of the block 56 of the counters and then to the second input of the AND element 108 and through the inverter 110 to the second input of the element AND 109. The AND element 108 is locked, and the first counter 107 is subsequently in the zero state. Element AND 109 is unlocked to pass the clock signals from input 86 of block 56 of counters to the counting input of second counter 107, where the CT is counted. At the same time, the zero signal from the output of the element OR 60 is fed to the first address input J34 of the firmware control block 57, the outputs of which set control signals in accordance with rows 5 or 6 of Table 4, i.e. it continues to remain in the pending state of address matching.

Если при обработке процессором 1 линейного участка вьтолн етс  условие А А(А А-), блок 57 микропрограммного управлени  устанавливает на выходах значени  сигналов, указанные в строке 1 (2) табл.4. Очередным тактовым сигналом в регистр 104 записываетс  информационное слово 0110 (0010), на адресных входах блока 105 посто нной пам ти по вл етс  адрес 0010, на выходах блока 57 микропрограммного управлени  устанавливаютс  управл ющие сигналы в соответствии со строкой 3 табл.4.If the condition А А (А А-) is processed during the processing by the processor 1 of the linear section, the microprogram control block 57 sets the outputs at the outputs of the signals indicated in line 1 (2) of table 4. The next clock signal to the register 104 is the information word 0110 (0010), the address inputs of the permanent memory unit 105 is the address 0010, and the control signals are set at the outputs of the program control unit 57 in accordance with line 3 of table 4.

Информационное слово 10 поступает С выхода 81 на вход младших разр дов адреса блока 58 посто нной пам ти. Единичный (нулевой) сигнал с выхода 80 блока 57 микропрограммного управлени  поступает на управл ющий вход 82 коммутатора 72 и подключает к выходам первую 89 или вторую 90 группуThe information word 10 enters from output 81 to the input of the lower bits of the address of block 58 of the permanent memory. A single (zero) signal from the output 80 of the microprogram control unit 57 is fed to the control input 82 of the switch 72 and connects to the outputs of the first 89 or second 90 group

входов. Информационное слово В J из  чейки 58 посто нной пам inputs. Information word B J from Constant 58

9813698136

ти с адресом В + 3 поступает на вхо- ды коммутатора 72, и с его выхода на информационные входы регистра 53 поступает информационное слово Bj(B|).With the address B + 3, the inputs of the switch 72 enter and, from its output, the information inputs of the register 53 receive the information word Bj (B |).

Таким образом, происходит выбор массива информации дл  контрол  следующего линейного участка L|(L-). Единичный сигнал с выхода 79 блока 57 микропрограммного управлени  посту0 пает на первьш вход элемента И 67 и Thus, there is a selection of the information array for monitoring the next linear segment L | (L-). A single signal from the output 79 of the block 57 of the firmware control is supplied to the first input element And 67 and

открьгоает его дл  прохождени  сигна- . ла с выхода элемента ИЛИ 62 на вход сброса триггера 63. Если к моменту перехода на следующий линейный уча5 сток программы выполн етс  условие Т, 0, с выхода элемента ИЛИ 62 на вход сброса триггера 63 поступает нулевой сигнал и его состо ние не измен етс . Если условие TO О неunlocks it for signaling. From the output of the OR 62 element to the reset input of the trigger 63. If the condition T, 0 is satisfied by the moment of transition to the next linear participant5 of the program, the zero signal from the output of the OR 62 element to the reset input of the trigger 63 is received and its state does not change. If the condition TO Oh is not

0 выполн етс , единичный сигнал с выхода элемента ИЛИ 62 сбрасывает триггер 63 в нулевое состо ние и на его инверсном выходе устанавливаетс  сигнал логической 1. Сигнал запроса0 is executed, a single signal from the output of the element OR 62 resets the trigger 63 to the zero state and a logical signal 1 is set at its inverse output. The request signal

5 прерывани  с выхода 21 устройства 2 дл  контрол  выполнени  программы поступает на вход прерывани  процессора 1. Запрос прерывани  в устройстве 2 дл  контрол  выполнени  про0 грамм микроэвм снимаетс  сигналом Подтверждение прерывани  процессора 1 в аналогичном пор дке.5 interrupts from the output 21 of the device 2 for monitoring the execution of the program are input to the interrupt of the processor 1. The interrupt request in the device 2 for monitoring the execution of the microprogram program is detected by a signal. The interruption of the processor 1 is confirmed in a similar order.

Следующим тактовым импульсом производитс  загрузка регистра 104, наThe next clock pulse loads register 104,

адресных входах блока 105 посто нной пам ти устанавливаетс  информационное слово 0011 и на выходах блока 57 микропрограммного управлени  устанавливаютс  управл ющие сигналы в соот0 ветствии со строкой 4 табл.4. В результате воздействи  этих сигналов на элементы устройства 2 дл  контрол  вьшолнени  программ происходит загрузка характеристического множе5 -ства Т.(тр в блок 56 счетчиков,после чего устройство подготовлено к контролю вьшолнени  линейного участка L.(L-) программы микроЭВМ. The address inputs of the fixed memory unit 105 are set to the information word 0011 and the control signals are set to the outputs of the firmware control unit 57 in accordance with line 4 of Table 4. As a result of the effect of these signals on the elements of the device 2 to monitor the execution of the programs, the characteristic set of 5 T is loaded. (Tr into block 56 counters, after which the device is prepared to monitor the execution of the linear section L. (L-) of the microcomputer program.

Если при поступлении Tj тактовыхIf upon receipt tj clock

0 импульсов не вьтолн етс  условие А А,-(А А j) , т.е. в результате сбо  или неисправности процессор 1 перешел к выполнению команды с произвольным адресом, мину  адрес А(А;),0 pulses the condition А А, - (А А j) is not fulfilled, i.e. as a result of a failure or malfunction, processor 1 proceeded to execute a command with an arbitrary address, mine address A (A;),

5 сигнал на выходе схемы ИЛИ-НЕ 59 принимает единичное значение. Этот сигнал поступает на синхровход триггера 64 и под воздействием нулевого сигнала на информационный вход это-5 signal at the output of the circuit OR NOT 59 takes a single value. This signal is fed to the trigger trigger 64 and under the influence of the zero signal on the information input is

го триггера, поступающего с выхода элемента ИЛИ 60, он переходит в нулевое состо ние. Сигнал с выхода триггера 64 поступает на вход элемен- та И 66, а с его выхода - на синхро- вход триггера 63. Нулевой сигнал, поступающий на информационный вход триггера 63 с выхода 77 блока 57 микропрограммного управлени  (табл.4,строки 5 и 6), запоминаетс  в триггере 63, на его инверсном выходе устанавливаетс  сигнал логической 1 и с выхода элемента И-НЕ 69 на вход прерывани  процессора 1 поступает сигнал запроса прерьшани . Процессор 1 обрабатывает этот запрос в рассмотренном ранее пор дке.the first trigger coming from the output of the element OR 60, it goes to the zero state. The signal from the trigger output 64 is fed to the input of the element And 66, and from its output to the sync input of the trigger 63. The zero signal to the information input of the trigger 63 from the output 77 of the block 57 of the microprogram control (Table 4, lines 5 and 6), is stored in the trigger 63, a logical 1 signal is set at its inverse output, and an interrupt request signal arrives from the output of the AND-NE element 69 to the interrupt input of processor 1. Processor 1 processes this request in the order discussed earlier.

Сн тие сигнала запрета прерывани  в устройстве 2 дл  контролй выполнени  программ микроэвм происходит либо 20 ка лТ при этом остаетс  ненулевым иThe removal of the interrupt inhibit signal in the device 2 for monitoring the execution of the microcomputer programs occurs either 20 kT while remaining non-zero and

по сигналу Общий сброс по цепи 17-61-63(65), либо по сигналу записи информации, поступающему в такте загрузки блока 56 счетчиков (табл.4, строки 4, 8, ,12 и 16) с выхода 76 блока 57 микропрограммного управлени  по цепи 76-70-68-61-63(65) на установочные входы триггера 63 и 65.by signal General reset by circuit 17-61-63 (65), or by signal recording information received in the load cycle of block 56 counters (Table 4, lines 4, 8,, 12 and 16) from the output 76 of block 57 of the firmware on the chain 76-70-68-61-63 (65) to the installation inputs of the trigger 63 and 65.

При поступлении в процессор 1 сигнала прерывани  от внешнего устро- ЗО в запланированный момент 158 времени.When the interrupt signal from the external device arrives at processor 1 at the scheduled time, 158 times.

сигнал на синхровходе триггера 64 сохран ет нулевое значение (эпюра 156)the signal on the trigger sync trigger 64 retains a zero value (plot 156)

Если в результате воздействи  помехи (условно представлена импульсом 25 157), привод щей к выполнению ошибочного перехода в пределах линейного участка программы, сравнение текущего адреса А и одного из ожидаемых адресов А . (или А;) произойдет неIf, as a result, the interference (conditionally represented by a pulse 25,157), leading to the execution of an erroneous transition within the linear portion of the program, compares the current address A and one of the expected addresses A. (or A;) will not happen

йства управление с линейного участка передаетс  программе прерывани . Устройство 2 дл  контрол  выполнени  программ микроэвм обнаруживает выход из рабочей программы по прерыванию по истечении Tj тактов с момента начала данного линейного участка и устанавливает триггер 63 в нулевое состо ние . В момент передачи управлени на программу обработки внешнего прерывани  процессор 1 вьщает сигнал Подтверждение прерывани , который запрещает выдачу сигнала прерывани  из устройства 2 дл  контрол  выполнени  программ. После возвращени  процессора 1 из программы обработки прерьшани  на незавершенный линейный участок он достигает одного из ожидаемых адресов и происходит самосинхронизаци  устройства 2 дл  контрол  и процессора 1 путем загрузки служебной информации о следующем линейном участке в блок 56 счетчиков и регистр 53 и установки триггеров 63 и 65 в единичное состо ние.The controls from the linear section are transferred to the interrupt program. The device 2 for monitoring the execution of the microcomputer programs detects the exit from the work program by interrupting after the expiration of Tj cycles from the moment of the beginning of the linear section and sets the trigger 63 to the zero state. At the moment of transferring control to the external interrupt processing program, the processor 1 triggers the Interrupt Acknowledgment signal, which prohibits the output of the interrupt signal from the device 2 to monitor program execution. After the processor 1 returns from the breakout processing program to the incomplete linear section, it reaches one of the expected addresses and the device 2 for monitoring and processor 1 self-synchronizes by loading the service information about the next linear section into the counter block 56 and register 53 and setting the triggers 63 and 65 single state.

Работа устройства 2 по второму варианту (фиг.З) по сн етс  временными диаграммами (фиг.16, а, б, в), отображающими процесс загрузки (моменты 145 и 146 времени) и постепенного уменьшени  содержимого счетчиков Т (эюра 147), лТ (эпюра 148) и трех счетчиков Т,, (эпюры 149-151). В момент 152 времени (фиг.16,а) содержимое счетчика Т становитс  равным нулю (эпюра 147) и на информационном входе триггера 64 устанавливаетс  нулевое значение сигнала (эпюра 153). С этого момента времени происходит уменьшение .содержимого счетчика Т. В момент 154 времени происходит совпадение текущего адреса программы А и одного из ожидаемых адресов А, (нпи А,-). Импульс 155 совпадени  формируетс  на синхронизирующем входе триггера 63 в момент перехода микроэвм на начало следующего линейного участка. Содержимое счетчив запланированный момент 158 времени.The operation of device 2 according to the second variant (Fig. 3) is illustrated by time diagrams (Fig. 16, a, b, c), which reflect the loading process (moments 145 and 146 of time) and a gradual decrease in the contents of the counters T (Eyur 147), lT (plot 148) and three counters T ,, (plot 149-151). At time 152 (Fig. 16a), the contents of the counter T become zero (plot 147) and the zero value of the signal (plot 153) is set at the information input of the trigger 64. From this point in time, the content of the counter T decreases. At time 154, the current address of program A and one of the expected addresses A, (npi A, -), coincide. A coincidence pulse 155 is generated at the synchronization input of the trigger 63 at the moment the microcomputer goes to the beginning of the next linear section. The content is countable scheduled time 158 time

сигнал на синхровходе триггера 64 сохран ет нулевое значение (эпюра 156).the signal on the trigger sync trigger 64 retains a zero value (plot 156).

Если в результате воздействи  помехи (условно представлена импульсом 157), привод щей к выполнению ошибочного перехода в пределах линейного участка программы, сравнение текущего адреса А и одного из ожидаемых адресов А . (или А;) произойдет неIf, as a result, the interference (conditionally represented by a pulse 157), leading to the execution of an erroneous transition within the linear portion of the program, compare the current address A and one of the expected addresses A. (or A;) will not happen

а в момент 159 (до обнулени  счетчика Т, момент 160 времени), одновременно с по влением импульса 155 ср.ав- нени  сигнал на выходе 21 устройст5 ва 2 (эпюра 161) принимает нулевое значение.and at time 159 (before resetting the counter T, time 160), simultaneously with the appearance of a pulse 155, the average signal at output 21 of device 2 (plot 161) takes a zero value.

Если в результате воздействи  помехи 157, привод щей к выполнению ошибочного перехода к другому линей-If, as a result of the interference, 157, leading to an erroneous transition to another line,

0 ному участку программы (фиг.16, б), сравнение текущего адреса А и одного из ожидаемых адресов А(или А:) не произойдет и импульс 155 не по витс  на выходе схемы 55 сравнени  до0, the program section (Fig. 16, b), the comparison of the current address A and one of the expected addresses A (or A :) will not occur and the pulse 155 does not appear at the output of the comparison circuit 55 before

5 момента 162 обнулени  счетчика зТ (эпюра 148), сигнал на синхровходе триггера 64 принимает единичное значение (эпюра 156), состо ни  триггеров 64 и 63 измен ютс  и сигнал на выходе 21 устройства 2 принимает нулевое значение (эпюра 161).5, the zeroing time 162 of the counter ST (plot 148), the signal at the synchronous input of the trigger 64 takes a single value (plot 156), the states of the flip-flops 64 and 63 change, and the signal at the output 21 of the device 2 takes a zero value (plot 161).

Если в результате воздействи  помехи 157 в ожидаемый момент времени 154 (фиг.18) на одной из управл юпщхIf as a result of the interference 157 at the expected time 154 (Fig. 18) on one of the controls

5 линий интерфейса число зарегистрированных импульсов оказалось меньше, . чем предсказанное при предварительном анализе рабочей программы (эпюра 151 не касаетс  горизонтальной оси5 lines of interface, the number of registered impulses was less,. than what was predicted in the preliminary analysis of the work program (plot 151 does not touch the horizontal axis

00

в момент 154 времени), импульс 157 сравнени  поступает на синхровход триггера 63, изменение состо ни  которого приводит к по влению нулевого сигнала (эпюра 16 - запрос пре- рьгаани ) на выходе 21 устройства 2at time 154), a comparison pulse 157 arrives at the synchronous input of the trigger 63, a change in the state of which leads to the appearance of a zero signal (plot 16 — interrogation request) at the output 21 of the device 2

Эпюры на фиг.16-18 свидетельствую о том, что врем  между возникновением сбо  и его обнаружением в предлагаемом устройстве не превышает длительности прохождени  линейного участка программы, что позвол ет организовать своевременную реакцию устройства управлени  в случае аварийной ситуации.The plots in Figures 16-18 indicate that the time between the occurrence of a failure and its detection in the proposed device does not exceed the duration of the linear section of the program, which allows you to organize a timely response of the control device in case of an emergency.

Использование изобретени  позвол ет контролировать шины управлени  микроэвм или программируемого контроллера , а также информационно-адресные шины, обеспечивать быструю реакцию на возникшую ошибку (сбой или отказ; врем  реакции не превышает времени прохождени  машиной линейного участка программы), предотвращать возможность аварии управл емого объекта путем устранени  бесконтрольного блуждани  микроэвм по программе в результате ошибки (сбо  или отказа).The use of the invention allows control of the microcomputer or programmable controller bus, as well as information address buses, to provide a quick response to an error (failure or failure; the response time does not exceed the time the machine passes the linear portion of the program), to prevent the possibility of an accident of the controlled object the uncontrolled wandering of the microcomputer according to the program as a result of an error (failure or failure).

Claims (2)

1. Устройство дл  контрол  вьтол- нени  программ, содержащее блок выделени  максимального и минимального количества импульсов, триггер, блок регистров, схему сравнени , элемент И, элемент ИЛИ и блок микропрограммного управлени , причем ин- формахцюнный выход блока регистров соединен с первым информационным входом схемы сравнени , выход равенства которой соединен с первым адресным входом блока микропрограммного управлени , вход записи устройства соеди- ней с первым входом записи блока ре- |гйстров, отличающеес  тем что, с целью повышени  достоверности контрол  за ходом выполнени  программы , в устройство введены регистр и1. A device for controlling the execution of programs containing a block for selecting the maximum and minimum number of pulses, a trigger, a register block, a comparison circuit, an AND element, an OR element, and a microprogram control unit, the information output of the register block being connected to the first information input of the circuit comparison, the equality output of which is connected to the first address input of the microprogram control unit, the recording input of the connecting device with the first input of the recording of the register unit, characterized in that, in order to increase reliability of monitoring the implementation of programs entered into the device register, and 50 два регистра, блок микропрограммного управлени  и схему сравнени ,причем группы выходов первого и второго регистров соединены соответственно с первыми и вторыми группами информаблок посто нной пам ти, причем информационный вход устройства соединен с информационным входом блока регистров, вход начальной установки устройства соединен с входами начальной установ- 55 ционных входов схемы сравнени , вход ки регистра, блока посто нной пам - записи устройства соединен с входом ти, с входом обращени  блока микро ,записи первого регистра, информационный вход устройства соединен с информационным входом первого регист-50 two registers, a firmware control unit and a comparison circuit, the output groups of the first and second registers are connected respectively to the first and second groups of the permanent memory information unit, the information input of the device connected to the information input of the register block, the input of the initial installation of the device connected to the inputs of the initial the installation inputs of the comparison circuit, the register input, the block of the permanent memory of the device are connected to the input of the tee, to the input of the micro block, the first register, and formational input device coupled to an information input of the first regist- программного управлени , с входом начальной установки блока, выделени Osoftware control, with the input of the initial installation of the block, the allocation of O 5five 00 5 five максимального и минимального коли- , честваимпульсов и входом установки в О триггера, инверсный выход которого  вл етс  выходом ошибки устройства , синхровход устройства соединен с входом синхронизации триггера, информационный вход которого соединен с шиной нулевого потенциалаj выход блока посто нной пам ти соединен с информационными входами регистра, блока выделени  максимального и минимального количества импульсов и вторым информационным входом схемы сравнени , группы выходов минимального и максимального количества тактовых импульсов блока вьщелени  максимального и минимального количества импульсов соединены соответственно с группами входов элемента ИЛИ и элемента И, выходы которых соединены соответственно с вторым адресным входом блока микропрограммного управлени  и с единичным входом триггера, выход элемента ИЛИ , соединен с входом з.апрета блока вы-maximum and minimum number of pulses and the input of the set to the trigger, the inverse output of which is the output of the device error, the synchronous input of the device is connected to the trigger synchronization input, the information input of which is connected to the zero potential bus j the output of the fixed memory block , the block of selection of the maximum and minimum number of pulses and the second information input of the comparison circuit, the group of outputs of the minimum and maximum number of clock pulses of the block of maximum and minimum number of pulses are connected respectively to the input groups of the OR element and the AND element, the outputs of which are connected respectively to the second address input of the microprogram control unit and to the single trigger input, the output of the OR element is connected to the input of the third block of the output module 5 делени  максимального и минимального количества импульсов, тактовый вход устройства соединен с тактовыми входами блока микропрограммного управлени  и блока вьщелени  максимально0 го и минимального количества импульсов , выход регистра соединен с входом старших разр дов адреса блока посто нной пам ти, первый,второй,третий и четвертый выходы блока микро5 программного управлени  соединены соответственно с первым и вторым входами записи блока выделени  максимального и минимального количества импульсов , входом записи регистра и входом5 dividing the maximum and minimum pulses, the clock input of the device is connected to the clock inputs of the microprogram control unit and the block for allocating the maximum and minimum number of pulses, the register output is connected to the input of the higher bits of the address of the constant memory block, first, second, second, fourth the outputs of the micro5 software control unit are connected respectively to the first and second inputs of the recording block of the allocation of the maximum and minimum number of pulses, the register recording input and Odom 0 младших разр дов адреса блока посто нной пам ти, второй вход записи блока регистров соединен с младшим разр дом информационного выхода блока микропрограммного управлени .0 least significant bits of the address of the block of permanent memory, the second input of the record of the register block is connected to the lower bit of the information output of the microprogrammed control unit. 2. Устройство дл  контрол  выполнени  программ, содержащее блок, счетчиков, три триггера, первый элемент И, первый элемент ИЛИ, элемент И-НЕ, первый формирователь импульсов,2. A device for monitoring the execution of programs containing a block, counters, three flip-flops, the first AND element, the first OR element, the NAND element, the first pulse shaper, 0 два регистра, блок микропрограммного управлени  и схему сравнени ,причем группы выходов первого и второго регистров соединены соответственно с первыми и вторыми группами информа5 ционных входов схемы сравнени , вход записи устройства соединен с входом 0 two registers, a firmware control unit and a comparison circuit, with the output groups of the first and second registers being connected respectively to the first and second groups of information inputs of the comparison circuit, the device's recording input is connected to the input ционных входов схемы сравнени , вход записи устройства соединен с входом the inputs of the comparison circuit, the recording input of the device is connected to the input ,записи первого регистра, информационный вход устройства соединен с информационным входом первого регист-records of the first register, the information input of the device is connected to the information input of the first register 4141 pa, группа входов задани  режима уст. ройства соединена с группой счетных входов блока счетчиков, вход начальной установки устройства соединен с входом yctaнoвки в О первого триггера и с первым входом первого элемента ИЛИ, выход первого триггера соединен с первым входом первого элемента И, выход которого соединен с тактовьм входом (второго) триггера , выход первого формировател  импульсов соединен с входом записи блока счетчиков, выход элемента И-НЕ  вл етс  выходом ошибки устройства,инверсный и пр мой выходы второго и третьего триггеров соединены соответственно с первым и вторым входами элемента И-НЕ, выход первого элемен-. та ИЛИ соединен с нулевым входом второго триггера, отличающеес  тем, что с целью повышени  достоверности контрол  за ходом выпол нени  программы, в устройство введены третий регистр, блок посто нной пам ти, коммутатор, второй формирователь импульсов, элемент ИЛИ-НЕ, второй и третий элементы ИЛИ, второй и третий элементы И, причем первый, второй, третий, четвертый, п тый и шестой выходы блока микропрограммного управлени  соединены соответственно с входом первого формировател  импульсов, с информационным входом второго триггера, с входом записи второго регистра, с первым входом второго элемента И, с управл ющим входом коммутатора и с входом младших . разр дов адреса блока посто нной пам ти , выход второго элемента ИЛИ соединен с информационным входом перво. го триггера, с входом запрета счета блока счетчиков и с первым адресным входом блока микропрограммного управлени , выход равенства схемы сравнени  соединен с вторым адресным вхоЛpa, the group of inputs for the set mode. of the device is connected to the group of counting inputs of the counter block, the input of the initial installation of the device is connected to the input of the first trigger in О and the first input of the first element OR , the output of the first pulse shaper is connected to the write input of the block of counters, the output of the NAND element is the error output of the device, the inverse and direct outputs of the second and third flip-flops are connected respectively to the first second inputs of AND-NO element, first output elements. This OR is connected to the zero input of the second trigger, characterized in that in order to increase the reliability of control over the execution of the program, a third register, a permanent memory unit, a switch, a second pulse shaper, an OR element, and the second and third are entered into the device. the elements OR, the second and the third elements AND, the first, second, third, fourth, fifth and sixth outputs of the microprogram control unit are connected respectively to the input of the first pulse generator, to the information input of the second trigger, to the input recording a second register, the first input of the second AND gate, a control input of the switch and to the input of younger. the address bits of the block of permanent memory, the output of the second element OR is connected to the information input of the first. the first trigger, with the input of the prohibition of the account of the counter block and with the first address input of the microprogram control unit, the equality output of the comparison circuit is connected to the second address input 1M . . . 1598142. . . 1598142 дом блока микропрограммного управле- ни. и через второй формирователь импульсов с вторым входом первого элемента И, тактовый вход устройства со5 единен с тактовыми входами блока счетчиков и блока микропрограммного управлени , вход начальной установки устройства соединен с входом обращени  блока микропрограммного управлени house of the firmware control unit. and through the second pulse shaper with the second input of the first element I, the clock input of the co5 device is unified with the clock inputs of the counter block and the microprogram control unit, the input of the initial installation of the device is connected to the inversion input of the microprogram control unit Ю и с входом начальной установки третьего регистра, выход которого соединен с адресным входом старших разр дов блока посто нной пам ти,группа выходов которого соединена с группойU and to the input of the initial installation of the third register, the output of which is connected to the address input of the higher bits of the permanent memory unit, the output group of which is connected to the group J5 информационных входов блока счетчиков , группой информационных входов второго регистра, первой и второй группами информационных входов коммутатора , выход которого соединен сJ5 information inputs of the counter block, a group of information inputs of the second register, the first and second groups of information inputs of the switch, the output of which is connected to 20 информационным входом третьего регистра , четвертый выход блока микропрограммного управлени  соединен с входом записи третьего регистра, инверсный выход третьего триггера и20 information input of the third register, the fourth output of the firmware control block is connected to the input of the recording of the third register, the inverse output of the third flip-flop and 25 выход первого формировател  импульсов соединены соответственно с первым и вторьм входами третьего элемента И, выход которого соединен с вторым входом первого элемента ИЛИ, вы30 ход которого соединен с единичным входом третьего триггера, вход признака перехода устройства соединен с нулевым входом третьего триггера, группы выходов минимального количе35 ства тактовых импульсов, группа выходов разности максимального и минимального количества тактовых импульсов и группа информационных выходов блока счетчиков соединены соответствен40 ио с группами входов элемента ИЛИ-НЕ, второго и третьего элементов ИЛИ, выход элемента ИГШ-НЕ соединен с тактовым входом первого триггера, выход второго элемента И соединен с нуле45 вым входом второго триггера. Таблица 125, the output of the first pulse generator is connected respectively to the first and second inputs of the third element AND, the output of which is connected to the second input of the first OR element, the output of which is connected to the single input of the third trigger, the input of the device transition sign is connected to the zero input of the third trigger, group of minimum outputs the number of clock pulses, the group of outputs of the difference between the maximum and minimum number of clock pulses and the group of information outputs of the block of counters are connected according to 40 groups with UQ element input NOR of the second and third element or elements IGSH output is coupled to the clock input of the first flip-flop, the output of the second AND element is connected to nule45 vym input of the second flip-flop. Table 1 п мn m 4343 сwith оabout 1 one ,0, 0 А ВA b BIBI т. ДТоt. Dto icic JMJm Ajc ВAjc B в:at: 13.159814413.1598144 Продолжение табл.1Continuation of table 1 i-nci-nc п°n ° вat 1)one) .т.t ш sh Таблица 2table 2 О ОOh oh ОABOUT О ОOh oh оabout о оoh oh 1 1 1 11 1 1 1 о о 1 1about o 1 1 о оoh oh о о о оoh oh oh 1 1eleven 1 1 о 11 1 about 1 1 о о 1 11 о о 1 1 о оoh oh 1 1 1 о1 1 1 about о оoh oh 1one 1. 1 о1. 1 about о оoh oh о о 1 оabout about 1 about Таблица 3Table 3 4949 ВAT 13159811315981 Продолжение табл.3Continuation of table 3 5050 L.L. 1 1eleven .1.one О О 1 1About About 1 1 ОABOUT 1 о 11 about 1 ДанныеData О1O1 О1O1 0O 11eleven X X X XX x x x 1 1 О1 1 About оabout о о 1about about 1 1one о 1about 1 Фиг.FIG. e/yje / yj «" Г 7  G 7 SSSS J5J5 SfSf f: ff: f 9S9S згzg Фиг.FIG. Фиг. 5FIG. five Фаг.6Phage.6 Фи9ЛFi9l Фиг.99 10ten Фиг./0Fig. / 0 126I126I fa гЬfa hb Фи. 11Phi. eleven Фиг.12Fig.12 ff /27 / 27 jj iZ5 iZ5 f3i f3i m Im I л l 1- -h1- -h II /27/ 27 k7k7 3L,3L, / %/% .Т/-{)«.;лГ, .T / - {) "; lH, mm iPtfaVjriPtfaVjr Li-rHr,iiATi-JoL)Li-rHr, iiATi-JoL) LrT {Tn:AWof}LrT {Tn: AWof} Lj- lf {T,j;ATj;Toi)Lj-lf {T, j; ATj; Toi) Фаг.Phage. 7-/,47т7 - /, 47t 3f3f f39f39 f I Swf I Sw Фи.в.15Fi.in.15 151151 f48 If48 I ii 752752 Фиг:17Fig: 17
SU853888708A 1985-04-22 1985-04-22 Versions of device for monitoring program execution SU1315981A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU853888708A SU1315981A1 (en) 1985-04-22 1985-04-22 Versions of device for monitoring program execution

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU853888708A SU1315981A1 (en) 1985-04-22 1985-04-22 Versions of device for monitoring program execution

Publications (1)

Publication Number Publication Date
SU1315981A1 true SU1315981A1 (en) 1987-06-07

Family

ID=21174743

Family Applications (1)

Application Number Title Priority Date Filing Date
SU853888708A SU1315981A1 (en) 1985-04-22 1985-04-22 Versions of device for monitoring program execution

Country Status (1)

Country Link
SU (1) SU1315981A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
RU2530325C2 (en) * 2012-04-19 2014-10-10 Федеральное государственное бюджетное образовательное учреждение высшего профессионального образования "Воронежский государственный технический университет" Method of improving microcomputer reliability

Non-Patent Citations (1)

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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
RU2530325C2 (en) * 2012-04-19 2014-10-10 Федеральное государственное бюджетное образовательное учреждение высшего профессионального образования "Воронежский государственный технический университет" Method of improving microcomputer reliability

Similar Documents

Publication Publication Date Title
US4358823A (en) Double redundant processor
CA1095630A (en) Automatic reconfiguration apparatus for input/output processor
US3697698A (en) Pari-mutuel off-track betting system
US3680052A (en) Configuration control of data processing system units
CN101329580A (en) A task management control apparatus and method
SU1315981A1 (en) Versions of device for monitoring program execution
US3266023A (en) Parallel program data system
US20050229181A1 (en) Method and system for event management
SU1019451A1 (en) Device for checking computer
RU2066877C1 (en) Device for testing computers
US4305136A (en) Method of symptom compression
JPS6326907B2 (en)
SU1283780A1 (en) Interface for linking microcomputer with peripheral unit
SU1213485A1 (en) Processor
SU1474662A1 (en) Input/output controller
RU2020537C1 (en) System for programmed control of group of production equipment units
USRE34282E (en) Memory control system
SU1601613A1 (en) Device for checking blind alleys and restoring operability of computing system
SU1575182A1 (en) Device for distribution of problems to processors
SU1290329A1 (en) Device for debugging firmware units
SU1288707A2 (en) Device for exchanging data between group of input-output channels and internal memory
SU448435A1 (en) Multi-coordinate numerical control system
RU1805497C (en) Multichannel memory device
SU1267414A1 (en) Microprogram control device with check
CA1124883A (en) Microcontroller for disk files