SU1608641A1 - Device for computing boolean functions - Google Patents
Device for computing boolean functions Download PDFInfo
- Publication number
- SU1608641A1 SU1608641A1 SU884612127A SU4612127A SU1608641A1 SU 1608641 A1 SU1608641 A1 SU 1608641A1 SU 884612127 A SU884612127 A SU 884612127A SU 4612127 A SU4612127 A SU 4612127A SU 1608641 A1 SU1608641 A1 SU 1608641A1
- Authority
- SU
- USSR - Soviet Union
- Prior art keywords
- input
- output
- group
- inputs
- adder
- Prior art date
Links
Landscapes
- Debugging And Monitoring (AREA)
Abstract
Изобретение относитс к области автоматики и вычислительной техники и предназначено дл вычислени булевых функций в системах контрол и управлени . Целью изобретени вл етс повышение производительности устройства. Устройство дл вычислени булевых функций содержит два коммутатора 1 и 2, дешифратор 3, две группы триггеров 4 и 5, блок пам ти программ 6, элемент НЕ 7, триггер 8, формирователь импульсов 9, элемент И 10, элемент ИСКЛЮЧАЮЩЕЕ ИЛИ 11, два сумматора 12 и 13, группу элементов НЕ 14, группу элементов ИЛИ 15. Устройство позвол ет производить вычисление булевых функций по программам, составленным по трем видам линейных бинарных графов (ЛБГ), что позвол ет выбрать алгоритм, наиболее оптимальный по количеству команд и минимальному времени вычислени . 2 ил., 2 табл.The invention relates to the field of automation and computer technology and is intended for calculating Boolean functions in control and monitoring systems. The aim of the invention is to improve the performance of the device. The device for calculating Boolean functions contains two switches 1 and 2, a decoder 3, two groups of flip-flops 4 and 5, a program memory block 6, a HE 7 element, a trigger 8, a pulse driver 9, an AND 10 element, an EXCLUSIVE OR 11 element, and two adders 12 and 13, the group of elements is NOT 14, the group of elements is OR 15. The device allows the computation of Boolean functions by programs composed of three types of linear binary graphs (LBG), which allows choosing the algorithm that is most optimal by the number of commands and the minimum computation time . 2 ill., 2 tab.
Description
Изобретение относитс к автоматике и вычислительной технике и предназначено дл вычислени булевых функций в системах контрол и управлени .The invention relates to automation and computing and is intended to compute Boolean functions in control and monitoring systems.
Целью изобретени вл етс повыше- ние производительности устройства. - На фиг.1 представлена структурна схема устройства дл вычислени булевых функций; на фиг.2 - граф-схемы алгоритмов вычислени булевых функций.The aim of the invention is to improve the performance of the device. - Figure 1 shows a block diagram of a device for calculating Boolean functions; Fig. 2 shows flowcharts of algorithms for calculating Boolean functions.
Устройство содержит два коммутатора 1 и 2, дешифратор 3, две группы триггеров 4 и 5, блок 6 пам ти программ, элемент НЕ 7, триггер 8, формирователь 9 импульсов , элемент И 10, элемент ИСКЛЮЧАЮЩЕЕ ИЛИ 11, два сумматора 12 и 13, группу элементов НЕ 14, группу элементов ИЛИ 15, тактовый вход 16, вход 17 установки логического нул , группу информационных входов 18, группу выходов 19, вход 20 начально.й установки.The device contains two switches 1 and 2, a decoder 3, two groups of triggers 4 and 5, a program memory block 6, a NOT 7 element, a trigger 8, a pulse shaper 9, an AND 10 element, an EXCLUSIVE OR 11 element, two adders 12 and 13, a group of elements is NOT 14, a group of elements is OR 15, a clock input 16, an input 17 of a logical zero setting, a group of information inputs 18, a group of outputs 19, an input 20 of an initial setting.
Существуют булевые.функции, дл которых программа, построенна по линейным бинарным графам (ЛБГ), не вл етс оптимальной по количеству команд. На.пример, рассмотрим функцию уоThere are Boolean functions for which a program constructed from linear binary graphs (LBG) is not optimal by the number of instructions. For example, consider the function yo
X2X1VX2XOVX2X1XO. X2X1VX2XOVX2X1XO.
ЛБГ этой функции показан на фиг.2а и состоит из шести вершин условных перехо- . дов и двух операторных вершин (вершин присвоени значени уо О и уо 1). Построенна по данному ЛБГ программа вычислени состоит, соответственно, из восьми команд. В табл.1 представлена таблица истинности функции уо.The LBG of this function is shown in Fig. 2a and consists of six vertices of conditional transitions. Dov and two operator vertices (the vertices of the assignment of the value of yo 0 and yo 1). The computation program constructed for this LBG consists of eight instructions, respectively. Table 1 presents the table of truth of the function yo.
Представим каждый набор значений аргументов Хо, Xi, Х2 натуральным числом X в соответствии с формулойWe represent each set of values of the arguments X0, Xi, X2 by the natural number X in accordance with the formula
X i Xi 2 . .X i Xi 2. .
Теперь процесс вычислени может бытьNow the calculation process can be
представлен алгоритмом, второго рода (Л Б Г 2). ЛБГ 2 функции уо (фиг,26) содержит четыре вершины (две вершины условного перехода и две вершины присвоени значений уо О и уо 1), т.е. в два раза меньше, чем в ЛБГ. Таким образом, дл функции уо более оптимальной по количеству команд вл етс программа, построенна по ЛБГ 2. Устройство работает следующим образом .represented by an algorithm of the second kind (LBG 2). The LBG 2 of the function uo (fig. 26) contains four vertices (two vertices of the conditional transition and two vertices of the assignment of the values во О and уо 1), i.e. two times less than in LBG. Thus, for the function yo, the program based on LBG 2 is more optimal in the number of commands. The device operates as follows.
Когда на входе 20 начальной установки имеет место сигнал, запрещающий работу устройства (по отрицательному фронту первого , после по влени сигнала запрета, тактового импульса) на выходе триггера 8 . формируетс сигнал установки группы триггеров 4 в начальное состо ние, При этом на выходах группы триггеров 4 будет иметьWhen the input 20 of the initial installation, a signal prohibits the operation of the device (on the negative front of the first, after the appearance of the prohibition signal, clock pulse) at the output of the trigger 8. the signal of setting the group of triggers 4 to the initial state is formed. At the same time, at the outputs of the group of triggers 4 will have
место нулевой код, независимо от поступле- .ни на их тактовые входы тактовых импульсов , а устройство будет находитьс в состо нии ожидани . При по влении на вхо- 5 де 20 начальной установки устройства сигнала , разрешающего работу устройства (по отрицательному фронту первого тактового импульса), на выходе триггера 8 сформиру- . етс сигнал, разрешающий работу тригге- 10 оов гоуппы 4.the place is a zero code, regardless of the arrival on their clock inputs of clock pulses, and the device will be in the waiting state. When a signal appears at input 5 and 20 of the initial installation of the device that permits operation of the device (on the negative front of the first clock pulse), the output of the trigger 8 will form. signal that permits the operation of the trigger-10 goopp 4.
Кажда команда, записанна в блоке 6 пам ти программ, содержит код границы числового интервала: код признака алгоритма; код признака аргумента; код адреса ко- 15 манды, к выполнению которой устройство приступит в следующем такте; код адреса результата вычисл емой функции; код разрешени записи результата вычислени логической функции; код результата вычис- 20 лени логической функции.Each command recorded in block 6 of the program memory contains the code for the boundary of the numeric interval: the code of the algorithm feature; the code of the attribute sign; code of the address of the com- mand 15, which the device will begin to perform in the next cycle; the address code of the result of the calculated function; permission code to write the result of the calculation of the logical function; The result code is the computation of a logical function.
Устройство может работать как по программам , составленным по ЛБГ, так и по программам, составленным по ЛБГ 2.The device can work both according to programs compiled by LBG, and according to programs compiled by LBG 2.
При этом, если код признака алгоритма, 25 поступающий на управл ющий вход коммутатора 1, равен Лог.О, то устройство реализует программу, сЪставленную по ЛБГ, в противном случае - по ЛБГ 2.Moreover, if the feature code of the algorithm, 25 arriving at the control input of switch 1, is equal to Log.O, then the device implements the program set by the LBG, otherwise - by the LBG 2.
Процедура вычислени булевых функ- 30 ций заключаетс в следующем. The procedure for calculating Boolean functions is as follows.
Перва .команда программы, наход ща- с в блоке 6 пам ти программ, по нулевому адресу, когда устройство находитс в состо ний ожидани , может быть командой про- 35 граммы, составленной по ЛБГ или по ЛБГ 2. Не наруша общности, рассмотрим сначала работу устройства по программе, составленной по ЛБГ. В этом случае, при формировании на выходах блока 6 пам ти 40 программ первой команды на первый вход элемента ИСКЛЮЧАЮЩЕЕ ИЛИ 11 поступает , сигнал, соответствующий значению первого опрашиваемого аргумента первой функции. Выбор опрашиваемого аргумента 45 происходит следующим образом. На управл ющий вход коммутатора 1 подаетс сигнал Лог.О, при этом на вторые входы сумматора 13 поступает код Хо , ... Хп ,The first program command, located in block 6 of the program memory, at the zero address, when the device is in the waiting states, can be a program command, compiled by LBG or LBG 2. Not breaking the community, consider first operation of the device according to the program compiled by the LBG. In this case, when forming at the outputs of block 6 of memory 40 programs of the first command, the signal corresponding to the value of the first interrogated argument of the first function arrives at the first input of the EXCLUSIVE OR 11 element. The choice of the polled argument 45 is as follows. The control input of the switch 1 is given a signal Log.O, while the second input of the adder 13 receives the code Ho, ... Xn,
каждый разр д которого формируетс по формуле Xi (Х| v Zi), где Zi - соответствующий разр д кода границы числового интервала , поступающий с выходов блока 6 пам ти программ на вторые входы элементов ИЛИ 15 группы, Xi - соответствующий 55 аргумент вычисл емой функции.each bit of which is formed according to the formula Xi (X | v Zi), where Zi is the corresponding bit code of the boundary of the numeric interval, coming from the outputs of block 6 of program memory to the second inputs of the OR 15 group elements, Xi is the corresponding 55 argument of the calculated function .
Дл того чтобы значение сигнала на выходе переноса сумматора 13 было равно значению опрашиваемого аргумента, в соответствующий разр д кода границы числовою интервала записываетс Лог. Г, в остальные разр ды этого кода - Лог.О.In order for the value of the signal at the transfer output of the adder 13 to be equal to the value of the argument being polled, a log is written to the corresponding digit of the boundary code. G, in the remaining bits of this code - Log.O.
Предположим, что необходимо подать на первый вход элемента ИСКЛЮЧАЮЩЕЕ Или 11 сигнал, соответствующий значению apf MeHTa Xi.Suppose that it is necessary to apply an EXCLUSIVE or 11 signal to the first input of the element corresponding to the value of apf MeHTa Xi.
Тогда код соответствующей границы 10ВОГО интервала равен О ... О, 1,0 ... О, только в 1-й разр д записываетс зг.Г, в остальные разр ды - Лог.О.Then the code of the corresponding border of the 10TH interval is O ... O, 1.0 ... O, only in the 1st bit is recorded SG, in the remaining bits - Log.O.
При этом на вы)оде KOMMyTajopa 1 фор- ми|руетс код Хп ... Хни, 1, i-i... Хо, который ступает на вторые входы сумматора 13, на рвые входы которого поступает код Хп ... -,, Хо. При сложении этих кодов на выходе реноса сумматора 13 формируетс сиг- на1л, соответствующий значению Xi.At the same time, for you, the KOMMyTajopa ode 1 forms the code Xp ... Hni, 1, ii ... Ho, which steps on the second inputs of the adder 13, on the pi inputs of which the code Xn goes ... - ,, Ho . When these codes are added, the renal output of the adder 13 generates a signal corresponding to the value of Xi.
Таким образом, при работе устройства ПС программе, составленной по ЛБГ, устройство позвол ет использовать код грани- ць числового интервала дл формировани на выходе переноса сумматора 13 сигнала, значение которого равно значению опрашиваемого аргумента.Thus, when a PS device is running, compiled by an LBG, the device allows the code to use the boundary of a numerical interval to form a signal at the transfer output of the adder 13, the value of which is equal to the value of the polled argument.
На первый вход элемента ИСКЛЮЧАЮ- :Е ИЛИ 11 поступает сигнал, значение горого равно значению опрашиваемого аргумента, на второй вход элемента ИСКЛЮЧАЮЩЕЕ ИЛИ 11 поступает сигнал признака этого аргумента, равный Лог.Г, 1И аргумент входит в ЛБГ алгоритма с зицанием, и Лог.О в противном случае. Если на выходе элемента ИСКЛЮЧАЮ- ||ЕЕ ИЛИ 11 формируетс сигнал Лог.1, (на вторых входах сумматора 12 формиру- : код, соответствующий числу 1, а на первые входы сумматора 12 через коммута: TOJP 2 поступит код с выходов триггеров 4 /ппы. Обозначим число, соответствующее DMy коду А. Тогда на выходе сумматора 12 сформируетс код, соответствующий числуThe first input of the EXCLUSIVE-: E or 11 signal is received, the value of the value is equal to the value of the polled argument, the second input of the EXCLUSIVE OR 11 element receives a signal of the attribute of this argument equal to Log.G, 1I argument enters the LBG algorithm with logging, and Log. About otherwise. If at the output of the EXCLUSIVE- || EE or 11 element, a signal of Log.1 is formed, (at the second inputs of the adder 12, a code is formed, corresponding to the number 1, and the first inputs of the adder 12 through the switch: TOJP 2 will receive a code from the outputs of the trigger 4 / Let us designate the number corresponding to DMy code A. Then at the output of adder 12 a code will be formed corresponding to the number
- 1.- one.
Если на выходе элемента ИСКЛЮЧАЮЩЕЕ ИЛИ 11 сформируетс сигнал Лог.О, на выходах сумматора 12 сформируетс кед адреса команды из блока 6 пам ти программ ,If at the output of the EXCLUSIVE OR 11 element a Log.O signal is generated, then at the outputs of the adder 12 a crossbar of the command address from block 6 of the program memory will be generated,
Код на выходах сумматора 12 определ ет , какую команду устройство выполнит в с/ едующем такте работы. В первом случае этр будет следующа по пор дку команда, в( втором - команда, код которой записан в п(1ле номера команды выполн емой коман- дн.The code on the outputs of the adder 12 determines which command the device will execute in the c / eject clock. In the first case, the ETR will be the next order command, and in the second, the command whose code is written in n (1 is the command number of the command being executed.
После по влени на установочных вхо- дг X группы триггеров 4 сигнала, разрешающего их работу по тактовым входам, по положительному фронту первого тактового импульса код, имеющий место на выходах сумматора 12. записываетс в группу триггеров 4. По этому коду в блоке 6 пам ти программ формируетс код новой команды. При этом, если значение опрошенного аргумента не полностью определ ет значениеAfter the appearance on the setup inputs X of the group of triggers 4 signals, allowing them to work on the clock inputs, on the positive edge of the first clock pulse, the code that occurs on the outputs of the adder 12. is recorded in the group of triggers 4. programs, a new command code is generated. In this case, if the value of the polled argument does not fully determine the value
функции, то по этой команде осуществл етс опрос другого аргумента этой же функции . Если значение функции полностью определ етс значением опрошенного аргумента , то осуществл етс запись резуль0 тата вычислени функции в один из триггеров 5 группы, в зависимости от кода адреса результата, который поступает на адресные входы дешифратора 3 из блока 6 пам ти программ, и формируетс код услов5 ного перехода к первой команде программы вычислени следующей функции. Дл перехода к вычислению следующей функции в команде, по которой производитс запись результата вычислени , в поле кода грани0 цы числового интервала записываетс нулевой код. В поле признака аргумента записываетс сигнал Лог.О. в поле адреса команды записываетс код адреса команды, по которой производитс опрос и анализfunction, then this command queries another argument of the same function. If the value of the function is completely determined by the value of the polled argument, then the result of calculating the function is written to one of the triggers of group 5, depending on the result address code that arrives at the address inputs of the decoder 3 from the program memory block 6, transition to the first command of the program calculating the following function. To proceed to the calculation of the next function in the command, which is used to record the result of the calculation, a zero code is written in the code field of the boundary of the numerical interval. The signal Log.O. is recorded in the attribute field of the argument. In the address field of the command, the code of the address of the command that is used for polling and analysis is recorded.
5 первого аргумента следующей функции, или код адреса первой команды программы вычислени следующей функции, построенной по ЛЕГ 2.5 of the first argument of the next function, or the code of the address of the first command of the program for calculating the next function built on LEG 2.
Работа устройства по программе, со0 ставленной по .ПБГ 2.The operation of the device according to the program compiled by .PBG 2.
По программе этого типа на сумматоре 13 производитс последовательное сложение значени вектора X {Хп,..., Хо} с числами Zi, записанными в поле кода границы,A program of this type on adder 13 produces a sequential addition of the value of the vector X {Xn, ..., Ho} with the numbers Zi written in the code field of the boundary,
5 числового интервала, при этом Zi представл ет собой дополнительный код границы числовых интервалов Zi, Zn-i, на которых вычисл ема функци принимает противоположные значени . Кроме того, при5 of the numerical interval, wherein Zi is an additional code of the boundary of the numerical intervals Zi, Zn-i, on which the calculated function takes opposite values. In addition, when
0 выполнении программы, составленной по ЛВГ 2, в поле признака алгоритма всех команд этой программы, за исключением команд присвоени значени , записываетс Лог. 1, в поле признака аргумента записы5 ваётс Лог.О, остальные пол команд вWhen executing a program compiled by the HLG 2, a log is recorded in the flag field of the algorithm of all commands of this program, with the exception of the value assignment commands. 1, in the sign field of the argument of the record 5, there is Log.O, the remaining half of the commands are
блоке 6 пам ти программ формируютс такblock 6 program memories are formed
же, как дл программ, построенных по ЛБГ.the same as for programs built on LBG.
По командам программы, построеннойAccording to the commands of the program built
по ЛБГ 2, произзодитс сложение вектораaccording to LBG 2, vector addition is performed
0 значений аргументов с дополнительным кодом границ. Эта операци эквивалентна сравнению числа, соответствующего вектору значений аргументов и границы. Если X Zi, то на выходе переноса сумматора 130 argument values with optional boundary code. This operation is equivalent to comparing the number corresponding to the vector of argument values and the border. If X Zi, then at the output of the transfer of the adder 13
5 формируетс сигнал Лог.1 и по этому сигналу устройство переходит к выполнению следующей по пор дку команды. Если X Zi, то на выходе переноса сумматора 13 формируетс сигнал Лог.О. По этому сигналу устройство переходит к выполнению команды , адрес которой записан в поле адреса команды. Переход к последующей команда и в том и в другом случае выполн етс так же, как и при реализации программы, построенной по ЛБГ. Это же можно сказать о командах записи результата - дл всех типов программ они формируютс аналогично .5, the signal of Log.1 is formed and, by this signal, the device proceeds to the execution of the next order command. If X Zi, then at the output of the transfer of the adder 13 a signal Log.O. On this signal, the device proceeds to the execution of a command whose address is recorded in the address field of the command. The transition to the subsequent command is performed in the same way and in the other case as in the implementation of the program built on the LBG. The same can be said about the result recording commands — for all types of programs they are formed in a similar way.
После вычислени всех логических функций по любым типам программ устройство может перейти к вычислению первой функции . Дл этого в поле адреса команды двух последних команд программы необходимо записать адрес первой команды программы .After calculating all the logical functions for any type of program, the device can proceed to the calculation of the first function. To do this, in the address field of the command of the last two commands of the program, you must write the address of the first command of the program.
Кроме того, устройство может прекратить вычислени , дл чего в поле адреса команды двух последних команд программы вычислени записываетс код адреса дополнительной , пустой команды, в поле кода границы числового интервала которой записываютс логические нули, в пол признака алгоритма и признака аргумента - Лог.О, в поле адреса команды - адрес этой команды , в поле разрешени выдачи результата - Лог.О,In addition, the device can stop the calculations, for which the address code of the last two commands of the calculation program is written with the address code of the additional, empty command, in the code field of the boundary of the numerical interval of which logic zeros are written, into the field of the algorithm feature and the attribute argument - Log.O in the field of the command address - the address of this command, in the field of the permission to output the result - Log.O,
В этом случае устройство будет посто нно выполн ть эту команду до перевода его в состо ние ожидани сигналом с входа 20 начальной установки устройства.In this case, the device will continuously execute this command before transferring it to the idle state with a signal from input 20 of the initial device setup.
В табл.2 представлены две программы вычислени функции:Table 2 presents two programs for calculating the function:
УО X2X1VX2XOVX2X1XO.OS X2X1VX2XOVX2X1XO.
При этом перва программа (команды 0-7) построена по ЛБГ, а втора (команды 8 - 11) - по ЛБГ 2. Дл составлени программ вычислени стро тс ЛБГ и ЛБГ 2 этой функции (фиг.2а, б).At the same time, the first program (commands 0–7) is constructed from the LBG, and the second (commands 8–11) - from the LBG 2. The LBG and LBG 2 of this function (Fig. 2a, b) are constructed to compile the calculation programs.
Составление программы вычислени по ЛБГ производитс следующим образом (табл.2, команды О - 5).The compilation program for LBG is compiled as follows (Table 2, commands O - 5).
В столбец 4 записываютс коды адресов аргументов вычисл емой функции в том пор дке, в котором эти аргументы расположены в ЛБГ; при этом код адреса любой переменной формируетс следующим образом , в тот разр д кода, номер которого идентичен номеру рассматриваемого аргумента , записываетс 1, в остальные разр ды - Column 4 records the codes of the addresses of the arguments of the computed function in the order in which these arguments are located in the LBG; the code of the address of any variable is formed as follows, in that code bit, the number of which is identical to the number of the argument in question, is written 1, in the remaining bits -
в каждую строку столбца 5 заноситс in each row of column 5 is entered
в каждую строку столбца 6 заноситс 1, если аргумент, код адреса которого записан в этой строке, входит в ЛБГ с )- сией, в противном случае записываетс in each row of column 6 is entered 1, if the argument, the address code of which is written in this row, is included in LBG c), this is written otherwise;
в каждую строку столбца 7 записываетс код адреса той команды, к выполнению которой необходимо перейти по нулевомуin each row of column 7 is written the address code of the command to execute which you must go to zero
значению выражени , сто щего в соответствующей этой строке вершине ЛБГ; .the value of the expression that stands in the vertex LBG corresponding to this line; .
в каждую строку столбца 9 записываетс in each row of column 9 is written
что будет записано в столбцах В и 10,what will be written in columns B and 10,
значени не имеет;does not matter;
в следующей по пор дку строке (команда 6) записываетс команда записи резуль- и тата вычислени функции по единичному 0 значению выражени , сто щего в последней вершине ЛБГ, далее записываетс команда записи противоположного результата (команда 7).the next line in the order (command 6) records the command for writing the result of the function calculation by the single 0 value of the expression at the last LBG vertex, then writes the command for writing the opposite result (command 7).
Команды записи результата формиру- 5 ютс одинаково дл любой из рассматриваемых в описании программ. При этом в столбцы 4, 5, 6 записываютс нулевые коды, в столбец 9 - 1, в столбец 8 - код номера вычисл емой функции, в столбец 10 - соот- 0 ветствующие значени функции, в столбец 7 заноситс код адреса команды, к которой необходимо перейти после записи результата .Commands for recording the result are formed in the same way for any of the programs considered in the description. In this case, zero codes are written in columns 4, 5, 6, column 9 is written in 1, column 8 is the code of the number of the calculated function, column 10 is the corresponding value of the function, column 7 is entered into the code of the address of the command to which need to go after recording the result.
Составление программы вычислени по 5 ЛБГ 2 производитс следующим образом (команды 8 и 9 табл.2).The compilation of a calculation program for 5 LBH 2 is performed as follows (commands 8 and 9 of table 2).
В столбец 4 записываютс дополнительные коды границ числовых интервалов ;Column 4 records the additional codes for the boundaries of the numeric intervals;
в столбец 5 - 0в столбец in column 5 - 0c column
в каждую строку столбца 7 записываетс код адреса той команды, к выполнению которой необходимо перейти по нулевому значению выражени , сто щего всоответст- 35 вующей этой строке вершине ЛБГ 2, при этом считаетс , что вершина ЛБГ 2 принимает нулевое значение, если выражение, записанное в нем, не выполн етс ; в столбец 9 записываетс О ; 40 что будет записано в столбцах 10 и-8, значени не имеет.In each row of column 7, the address code of the command to execute which must go through the zero value of the expression, which corresponds to the vertex LBG 2 corresponding to this line, is written, and the LBG 2 vertex is assumed to take a zero value if the expression written in it is not satisfied; column 9 is written O; The 40 that will be recorded in columns 10 and -8 does not matter.
Команды записи результата (команды 10 и 11 табл.2) формируютс и чередуютс так же, как при составлении программыThe result recording commands (commands 10 and 11 of table 2) are formed and interleaved in the same way as when creating the program
45 по ЛБГ.45 on LBG.
Рассмотрим процесс вычислени уо при Следующих значени х аргументов Хо 1.Consider the process of calculating v0 with the following values of the arguments X0 1.
Xl 1,.Xl 1,
Командами 0-2 осуществл етс после- 50 довательный опрос аргументов Х2, Xi, Хо и переход к следующей по пор дку команде, поскольку все эти аргументы имеют значение 1 и признак О. Команда 3 осуществл ет повторный анализ аргумента Х2 с 55 признаком 1, посколькуХ2-- 1 иформирует условный переход к.команде, записаннойCommands 0–2 perform a successive interrogation of arguments X2, Xi, X0 and go to the next order command, since all these arguments have the value 1 and O. Team 3 performs a repeated analysis of X2 with 55 symptom 1, sinceX2-- 1 also forms a conditional transition to the .com command recorded
по адресу 01112.at 01112
По этому адресу находитс команда записи результата (команда 7) по адресу О (т.е. триггер с нулевым адресом группы тригге О , ЩЕЕAt this address is the result recording command (command 7) at address O (i.e., a trigger with a zero address of a group of trigger O, MORE
СИГНсSIGNS
рехо 1000 провReho 1000 pr
11121112
ТОTHAT
ров5|. Поскольку по этой команде на входах перв1)го и второго слагаемых сумматоровmoat5 |. Since, according to this command, the inputs of the first and second terms of the adders
фОр1УИруЮТСЯ коды Х2. Xl, Хо и Х2. Xl, (0FORMS CODE X2. Xl, Ho and X2. Xl, (0
cooTt етственно (дл нашего примера это ко- 12 и ОООа), то на выходе переноса сум- матоЬа 13 формируетс сигнал нулевого уровн . Так как признак аргумента равен и на выходе элемента ИСКЛЮЧАЮ- ИЛИ 11 тоже формируетс нулевой л. По этому сигналу организуетс пе- к команде 8, наход щейс по адресу По этой команде производитс зрка услови 7 3(в двоичных кодах S0112), эта проверка производитс сло 1ением на сумматоре 13 кодов 1112 и 1012 (где 1012 - дополнительный код числа 3)cooTt is natural (for our example, this is co-12 and LLC), then a zero-level signal is generated at the transfer output of sum 13. Since the attribute argument is equal and at the output of the EXCLUSIVE OR 11 element, a zero l is also formed. This signal is organized by the command 8 command located at the address. By this command, the condition 7 3 is measured (in binary codes S0112), this check is performed by stitching 13 on the adder 13 codes 1112 and 1012 (where 1012 is an additional code of the number 3)
Г ри этом- сигнал на выходе переноса сумматора 13 примет единичное значениеи, поскольку признак аргумента равен О, на выходе элемента ИСКЛЮЧАЮЩЕЕ ИЛИ 11 формируетс сигнал единичного уровн . По сигналу устройство перейдет к выпол- о следующей по пор дку команды 9. эт1ой команде производитс проверка ус- 7 7 и, как в предыдущей команде, зультату сравнени осуществл етс од к следующей по пор дку команде этой команде осуществл етс запись резу ьтата вычислени по адресу 01.In this case, the signal at the output of the transfer of the adder 13 will take a single value, since the sign of the argument is equal to O, the output signal of the EXCLUSIVE OR 11 element produces a signal of the unit level. On a signal, the device proceeds to the next command of the order 9. This command checks the status of 7 7 and, as in the previous command, the result of the comparison is carried out one to the next order of this command, the command calculates the result of the calculation address 01.
ЭТОМ THIS
нениbad
ПоBy
лови;catch it;
по рby p
пере:re:
10.ten.
П)P)
Таким образом, устройство позвол ет прои )водить вычисление как по программам , построенным по ЛБГ, так и по ЛБГ 2.Thus, the device allows you to perform a calculation using both programs built on LBG and LBG 2.
Кроме того, устройство позвол ет реализовать программы по смешанному алгоритма , примере которого дан на фиг.2в дл функ ии;In addition, the device allows the implementation of programs using a mixed algorithm, an example of which is given in Fig. 2b for a function;
yi X1VX1X2XO.yi X1VX1X2XO.
г рограмма вычислени этой функции, состс вленна по смешанному алгоритму, представлена в табл.2 (команды 12- 15). На фиг.2г, д представлены два вида алгоритмов вычислени - ЛБГ и ЛБГ 2. Каждый из них состоит из трех условных и двух операторных вершин. Это значит, что дл реализации любого из них необходимо использовать п ть команд. Смешанный алгоритм вычис- лени51 (назовем его ЛБГ третьего рода или ЛБГ 3) содержит две условные вершины и две ( ператорные, соответственно дл его реализации требуетс четыре команды. По первой команде (команда 12 табл.2) производи с анализ переменной Xi, а по второй команде (команда 13) провер етс условие X 2: 5. Две последние команды (14 и 15) вл итс командами записи результата.The program for calculating this function, compiled by a mixed algorithm, is presented in Table 2 (commands 12–15). On figg, d two types of calculation algorithms are presented - LBG and LBG 2. Each of them consists of three conditional and two operator vertices. This means that to implement any of them, you need to use five commands. The mixed computational algorithm51 (let's call it LBG of the third kind or LBG 3) contains two conditional vertices and two (iterators, respectively, four commands are required for its implementation. For the first command (command 12, table 2), analyze the variable Xi, and The second command (command 13) checks the condition X 2: 5. The last two commands (14 and 15) are the result write instructions.
Возможность составлени программ по ЛБГ 3 обеспечиваетс за счет сопр гаемости команд анализа значени переменной и команд проверки выполнени услови Больше или равно.The ability to compile LBG 3 programs is provided by matching the variable value analysis commands and the conditional execution commands, More or equal.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU884612127A SU1608641A1 (en) | 1988-11-30 | 1988-11-30 | Device for computing boolean functions |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU884612127A SU1608641A1 (en) | 1988-11-30 | 1988-11-30 | Device for computing boolean functions |
Publications (1)
Publication Number | Publication Date |
---|---|
SU1608641A1 true SU1608641A1 (en) | 1990-11-23 |
Family
ID=21412372
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
SU884612127A SU1608641A1 (en) | 1988-11-30 | 1988-11-30 | Device for computing boolean functions |
Country Status (1)
Country | Link |
---|---|
SU (1) | SU1608641A1 (en) |
-
1988
- 1988-11-30 SU SU884612127A patent/SU1608641A1/en active
Non-Patent Citations (1)
Title |
---|
Ns 4612127/24-24 30.11,88 23.11.90. Бюл.№ 43 В.Н.Вавилов, Е.С.Вальшонок, А.С.Сигаи А.А.Шалыто 681.3(088.8) Авторское свидетельство СССР 339545, кл. G 06 F 7/00, 1986. Авторское свидетельство СССР 501033, кл. G 06 F 7/00, 1988. ( УСТРОЙСТВО ДЛЯ ВЫЧИСЛЕНИЯ БУЛЕ ЗЫХ ФУНКЦИЙ * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US3106698A (en) | Parallel data processing apparatus | |
US4306286A (en) | Logic simulation machine | |
US4181942A (en) | Program branching method and apparatus | |
US4079451A (en) | Word, byte and bit indexed addressing in a data processing system | |
US3328768A (en) | Storage protection systems | |
JPS6361691B2 (en) | ||
US3405258A (en) | Reliability test for computer check circuits | |
US3603934A (en) | Data processing system capable of operation despite a malfunction | |
CA1050663A (en) | Microprogram control units | |
US4047245A (en) | Indirect memory addressing | |
SU1608641A1 (en) | Device for computing boolean functions | |
GB905614A (en) | Improvements in data processing systems | |
US3624611A (en) | Stored-logic real time monitoring and control system | |
Stormon et al. | A general-purpose CMOS associative processor IC and system | |
US3351915A (en) | Mask generating circuit | |
Kaplan | A search memory subsystem for a general-purpose computer | |
Hibino | A practical parallel garbage collection algorithm and its implementation | |
US11635958B1 (en) | Multi-port register file for partial-sum accumulation | |
SU1383373A1 (en) | Program debugging interrupt device | |
Murphy | The system logic and usage recorder | |
RU2199774C1 (en) | Programmable device for controlling electric drives, electronic switches, and signaling facilities | |
SU1501033A1 (en) | Apparatus for computing boolean function logical module | |
SU1339545A1 (en) | Device for computing boolean functions | |
SU1481759A1 (en) | Microprogramming control unit | |
SU760188A1 (en) | Associative storage matrix |