SU1339545A1 - Device for computing boolean functions - Google Patents
Device for computing boolean functions Download PDFInfo
- Publication number
- SU1339545A1 SU1339545A1 SU864005634A SU4005634A SU1339545A1 SU 1339545 A1 SU1339545 A1 SU 1339545A1 SU 864005634 A SU864005634 A SU 864005634A SU 4005634 A SU4005634 A SU 4005634A SU 1339545 A1 SU1339545 A1 SU 1339545A1
- Authority
- SU
- USSR - Soviet Union
- Prior art keywords
- inputs
- input
- output
- outputs
- trigger
- Prior art date
Links
Landscapes
- Executing Machine-Instructions (AREA)
Abstract
Изобретение относитс к автоматике и вычислительной технике и пред- назначено дл вычислений булевых функций. Цель изобретени - повьшзение быстродействи за счет исключени из процесса вычислени булевых функций аргументов, от значений которых функции Не завис т. Устройство соСлЭ СО СО ел 4; елThe invention relates to automation and computing and is intended to calculate Boolean functions. The purpose of the invention is to improve the speed by eliminating arguments from the process of calculating the Boolean functions, the values of which do not depend on the values. The device has four components; ate
Description
держих мультиплексор 1 , блок - пам ти программ, дешифратор 3, две группы 4 и И триггеров, генератор импульсов 5, вход 6 начальной установки, элемент НЕ 7, триггер 8, формирователь импульсов 9, элемент И 10, информационные входы 12 и Выходы 13„ Положительный эффект, заключающийс в обеспечении зависимости процесса вы1keep multiplexer 1, block — program memory, decoder 3, two groups 4 and AND flip-flops, pulse generator 5, input 6 of the initial setup, element NOT 7, trigger 8, pulse shaper 9, element 10, information inputs 12 and Outputs 13 The positive effect of ensuring the dependence of the process
Устройство относитс к автоматике и вычислительной технике и может быть использовано дл вычислени булевых функций в системах контрол и управлени техническими и технологическими средствами.The device relates to automation and computing technology and can be used to calculate Boolean functions in control and management systems of technical and technological means.
Цель изобретени - повышение быстродействи за счет исключени из процесса вычислени булевых функцийар- гументов, от значени которых функции не завис тThe purpose of the invention is to increase speed by eliminating from the process of calculating the Boolean functions of the arguments, on the value of which the functions do not depend
На фиГо представлена схема устройства дл вычислени булевых функций; на фиг.2 - граф-схема алгоритма вы- числени булевых функцийThe diagram shows a device for calculating Boolean functions; FIG. 2 is a flowchart of the algorithm for calculating Boolean functions.
Устройство дл вычислени булевых функций содержит мультиплексор 1, блок 2 пам ти программ, дешифратор 3, группу триггеров 4, генератор 5 им- пульсов, вход 6 начальной установки, элемент НЕ 7, триггер 8, формирователь 9 импульсов, элемент И 10, группу триггеров 11, информационные входы 12, выходы 13 „The device for calculating Boolean functions contains multiplexer 1, block 2 of program memory, decoder 3, trigger group 4, pulse generator 5, setup initial input 6, HE element 7, trigger 8, driver 9 pulses, AND element 10, trigger group 11, information inputs 12, outputs 13 „
Устройство работает следующим образом.The device works as follows.
Когда на входе 6 начальной установки имеет место сигнал, запрещантщий работу устройства, по отрицательному фронту первого после по влени сигнала запрета импульса на выходе, триггера 8 формируетс сигнал установки группы триггеров 4 в начальное состо ние При этом на выходах группы триггеров 4 имеет место нулевой код независимо от поступлени на его тактовые входы тактовых импульсов„ ПриWhen the signal prohibits the device operation at the input 6 of the initial setup, the negative edge of the first after the pulse inhibit signal appears at the output, the trigger 8 generates a signal to set the trigger group 4 to the initial state. At the outputs of the trigger group 4, the zero code occurs irrespective of the arrival at its clock inputs of clock pulses
по влении на входе 6 сигнала, разреAppearance of signal 6, resolution
тающего работу устройства, по отрицательному фронту первого тактового имчислени бу,1;ев1ЛУ. sJiyuKiuif от значений их apryMo.fiTOB, оПр-С11еч Влетс тем, что при анализе значени любого из аргументов логических функций по результату анализа формируетс условный переход к команде, по которой производитс анализ другого аргумента или формируетс результат вычисле- }ш , 2 И.Л., 1 табЛоmelting operation of the device, on the negative front of the first clock number, bu, 1; Ev1LU. sJiyuKiuif from the values of their apryMo.fiTOB, оПр-С11еч Влетс that when analyzing the value of any of the arguments of logical functions by the result of the analysis, a conditional transition to the team is formed, according to which the analysis of another argument is made or the result is calculated ., 1 tablo
пульса, поступающего с выхода генератора 5 импульсов, на выходе триггера В формируетс сигнал, разрешающий ра боту группы триггеров 4 по тактовым входам По положительным фронтам тактовых импульсов производитс вызов команд программы вычислени булевых функций, записанной в блоке 2 пам ти программthe pulse coming from the output of the generator 5 pulses, at the output of trigger B, a signal is generated allowing the operation of the group of trigger 4 on the clock inputs On the positive edges of the clock pulses, the commands of the program for calculating boolean functions recorded in block 2 of program memory are invoked
Кажда команда содержит код адреса опрашиваемого аргумента, поступающий на управл ющие входы мультиплексора 1, код старших разр дов адреса условного перехода, поступающий на информационные входы группы триггеров 4, при этом на информационный вход его первого триггера поступает сигнал , равный значению опрашиваемого аргумента, - так формируетс младший разр д кода условного перехода, код адреса результата вычисл емой функ- ции, который поступает на адресные входы дешифратора 3, результата вычислени логической функции, который поступает на информационные входы группы триггеров 11„Each command contains the code of the address of the polled argument, arriving at the control inputs of multiplexer 1, the code of the higher bits of the address of the conditional transition, arriving at the information inputs of the trigger group 4, while the information input of its first trigger receives a signal equal to the value of the polled argument - so the low-order bit of the conditional jump code, the address code of the result of the calculated function that is fed to the address inputs of the decoder 3, the result of the calculation of the logical function that is received em on the information inputs of the trigger group 11 „
Сигнал разрешени записи результата вычислени , который поступает на первый вход элемента И ЮThe enable signal of the recording of the result of the calculation that arrives at the first input of the element I and S
Вычисление булевых функций осущесвл етс следуюпшм образом.The calculation of Boolean functions is carried out in the following way.
По первой команде программы, котора формируетс на выходах блока 2 пам ти программ, когда устройство находитс в состо нии ожидани , на первый информационный вход группы триггеров 4 поступает сигнал, соответствующий значению первого опрашивемого аргумента первой функции, наThe first program command, which is formed at the outputs of the program memory block 2, when the device is in the idle state, the first information input of the trigger group 4 receives the signal corresponding to the value of the first polled argument of the first function,
остальные информационные входы группы триггеров 4 поступают старшие разр ды кода условного переходао Таким образом , на информационных входах группы триггеров 4 формируетс код условного перехода, который зависит от значени опрашиваемого аргумента и определ ет , какую команду устройство выполнит на первом такте работы.the remaining information inputs of the trigger group 4 receive the upper bits of the conditional jump code. Thus, the information inputs of the trigger group 4 form a conditional jump code, which depends on the value of the polled argument and determines which command the device will execute on the first clock cycle.
После по влени на установочных входах группы триггеров 4 сигнала , разрешающего его работу по тактовым входам, по положительному фронту первого тактового импульса код усл.ов ного перехода записываетс в группу триггеров 4 и формируетс на его выходах о По этому коду на выходах блока 2 пам ти программ формируетс код следующей команды, по которой в зависимости от значени опрашиваемого ранее аргумента опрашиваетс какой-либо из следующих аргументов этой функции, или, если, значение опрошенного аргумента полностью определ ет значение вычисл емой функции, опрашиваетс первый аргумент следующей функциио При этом осуществл етс запись результата вычислени функции в один из триггеров группы триггеров 1UAfter the appearance at the installation inputs of the group of triggers 4 of the signal allowing its operation by clock inputs, by the positive edge of the first clock pulse, the code of the conventional transition is written into the group of triggers 4 and is formed at its outputs o By this code at the outputs of memory block 2 programs, the code of the next command is formed, according to which, depending on the value of the argument polled earlier, one of the following arguments of this function is interrogated, or, if the value of the interrogated argument completely defines the value in of the calculated function, the first argument of the next function is queried. In this case, the result of the function calculation is written to one of the triggers of the 1U trigger group.
Запись результата осуществл етс .по одному из тактовых входов группы, триггеров 11. Результат вычислени поступает из блока 2 пам ти программ Номер тактового входа определ етс кодом адреса результата, который поступает на адресные входы дешифратора 3 из блока 2 пам ти программ Дешифратор 3 стробируетс импульсом, формируемым по отрицательному фронту тактового импульса формирователем 9 импульсов Этот импульс поступает на стробирующий вход дешифратора 3 с выхода элемента И 10 при наличии на его первом входе сигнала разрешени записи результата, который поступает из блока 2 пам ти программ,The result is recorded by one of the clock inputs of the group, triggers 11. The result of the calculation comes from block 2 of the program memory. The number of the clock input is determined by the result address code that goes to the address inputs of the decoder 3 from block 2 of the program memory. The decoder 3 is gated with a pulse. generated by the negative edge of the clock pulse shaper 9 pulses This pulse is fed to the gate input of the decoder 3 from the output element And 10 in the presence at its first input of the recording resolution signal cut ltata which comes from the memory block 2 programming,
После опроса всех необходимых дл вычислени данных булевых функций аргументов , устройство можно повторить всю процедуру вычислени либо прекратить ее и выполн ть две пустых, не имеющих значени команды, выполнение которых не вли ет на результаты вычислени , Коды условных переходов, формирующиес в результате выполне;- ни этих двух команд, привод т к последующему выполнению одной °из нихAfter interrogating all the arguments necessary for calculating these Boolean functions, the device can repeat the entire calculation procedure or stop it and execute two empty, meaningless commands that do not affect the calculation results, conditional jump codes that are formed as a result of the execution; these two commands lead to the subsequent execution of one of them
Устррйство находитс в режиме выполнени этих команд до по влени на шине 6 начальной установкиThe device is in the mode of executing these commands until the initial installation on bus 6
сигнала, запрещающего работу группы триггеров 4 по тактовому входуthe signal prohibiting the operation of a group of trigger 4 on the clock input
Дп циклического повторени процедуры вычислени логических функций необходимо в калщой команде, в которой имеетс результат последней из вычисл емых функций, сформировать код условного перехода на первые два слова программыDp cyclic repetition of the procedure for calculating logical functions is necessary in the next team, in which there is the result of the last of the computed functions, to form the code of the conditional transition to the first two words of the program
В 1 аблице представлена программа . вычислени функцийIn 1 table is presented the program. calculating functions
Y, , V .xj V Xg-x,;Y, V .xj V Xg-x ,;
i г- 7- 0)i g- 7-0)
Граф-схема алгоритма бинарной прог-, раммы вычислени функций (1) представлена на фиГо2,The graph-diagram of the binary program algorithm, the frame for calculating the functions (1) is presented in Fig2,
Вычисление функций (I) при значени х аргументов х 1, х, О,Calculation of functions (I) with the values of arguments x 1, x, O,
х. 1, х О, X,, 1, X, 1, 0 следующее ,x 1, x O, X ,, 1, X, 1, 0 the following
При нулевом коде на адресном входе блока 2 пам ти программ производитс опрос аргумента х, вход щего в первую вычисл емую функцию При х 1 на выходе группы триггеров 4 по первому тактовому импульсу формируетс код условного перехода 00011,With a zero code, the address input of the program memory block 2 interrogates the argument x included in the first computed function. When x 1, the output of the group of triggers 4 generates a conditional transition code 00011 on the first clock pulse,
поэтому на выходе блока 2 пам тиso at the output of memory block 2
программ формируетс команда (слово) № 3„of programs, the command (word) No. 3 is formed.
По этой команде производитс опрос аргумента X, и, поскольку х, 0, формируетс код условного перехода 00100 к команде № 4This command queries the argument X, and since x, 0, the conditional branch code 00100 is generated to command number 4
Переход к этой команде осуществл етс по следующему тактовому импульсу о Затем опрашиваетс х и, так как Xg 0, осуществл етс переход к команде. № 7„ Далее опрашиваетс х и осуществл етс переход к команде № 8, так как х 0. ЗдесьThe transition to this command is performed on the next clock pulse. Then, x is polled and, since Xg 0, the transition to the command is made. No. 7 “Next, x is queried and a transition is made to command No. 8, since x 0. Here
опрашиваетс х., поскольку х 1, осуществл етс переход к команде № 11, по которой производитс запись результата вычислени Y, 0 по адресу О в группе триггеров 11, и одновременно опрашиваетс первый аргумент ункции Yj - X , так как х 0, форируетс код условного перехода к коанде № 18, по которой опрашиваетс ргумент По условию х 1, поэтому происходит условный переход к команде № 23 и опрашиваетс аргумент . По значению х, 0 осуществл етс переход к команде № 24, по которой происходит запись значени 0 по первому адресу, и формируетс условный переход к пустым командам № 30 и 31 о Выполнение этих команд приводит независимо от значени опра- шиваемого аргумента к формированию адреса условного перехода в одной из них с, Следовательно, происходит зацикливание программы„interrogate x. since x 1, go to command no. 11, which records the result of calculating Y, 0 at address O in trigger group 11, and simultaneously performs the first argument of function Yj - X, because x 0, the code is generated conditional transition to koand number 18, where the argument is interrogated; Condition x 1; therefore, a conditional transition to command no. 23 occurs and the argument is interrogated. By the value of x, 0, a transition is made to the command No. 24, by which the value 0 is written to the first address, and a conditional transition to the empty commands No. 30 and 31 is formed. Execution of these commands leads, regardless of the value of the argument being requested. transition in one of them with, therefore, there is a looping program "
Таким образом, устройство осущест- вл ет вычисление булевых функций с учетом значений аргументов, вход щих в эти функцииJ тем самым исключаютс участки процесса вычислени , не вли юпще на конечный результат вычислени , а сам процесс вычислени зависит от значений аргументов,, Например, если х 0, вычисление первой функции заканчиваетс на первом такте, осуществл етс переход к ко- манде № 2, по которой рассматриваетс значение аргумента х,, как аргумента функции Yj , и происходит запис значени Y, 0 в группу триггеров по адресу 0.Thus, the device performs the calculation of Boolean functions with regard to the values of the arguments included in these functions, thereby excluding parts of the calculation process, without affecting the final result of the calculation, and the calculation process itself depends on the values of the arguments, for example, if x 0, the computation of the first function ends at the first clock cycle, the transition is made to Command 2, which considers the value of the argument x, as an argument of the function Yj, and the value of Y, 0 is written to the trigger group at address 0.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU864005634A SU1339545A1 (en) | 1986-01-08 | 1986-01-08 | Device for computing boolean functions |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU864005634A SU1339545A1 (en) | 1986-01-08 | 1986-01-08 | Device for computing boolean functions |
Publications (1)
Publication Number | Publication Date |
---|---|
SU1339545A1 true SU1339545A1 (en) | 1987-09-23 |
Family
ID=21215680
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
SU864005634A SU1339545A1 (en) | 1986-01-08 | 1986-01-08 | Device for computing boolean functions |
Country Status (1)
Country | Link |
---|---|
SU (1) | SU1339545A1 (en) |
-
1986
- 1986-01-08 SU SU864005634A patent/SU1339545A1/en active
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP0231928B1 (en) | Program control circuit | |
US3623017A (en) | Dual clocking arrangement for a digital computer | |
US4181942A (en) | Program branching method and apparatus | |
US20130007532A1 (en) | Data processing system having a sequence processing unit and method of operation | |
US3868649A (en) | Microprogram control system | |
US4047245A (en) | Indirect memory addressing | |
JP2702431B2 (en) | Microcomputer | |
SU1339545A1 (en) | Device for computing boolean functions | |
GB905614A (en) | Improvements in data processing systems | |
US5155826A (en) | Memory paging method and apparatus | |
CN103699465B (en) | A kind of device and method 16 chip cores being carried out to debugging control | |
Nowick et al. | Practicality of state-machine verification of speed-independent circuits | |
SU1550524A1 (en) | Device for interfacing processor and external unit | |
US3445817A (en) | Meta-cyclic command generator | |
RU1801223C (en) | Device for remote program controlling signalling and conducting mechanisms | |
SU1608641A1 (en) | Device for computing boolean functions | |
JPS6327746B2 (en) | ||
SU1383387A2 (en) | Device for determining the shortest route of autonomous transport robot | |
JPH0716189Y2 (en) | Break circuit | |
SU1497616A1 (en) | Programmable logic controller | |
JP2940000B2 (en) | Single chip microcomputer | |
JP2581214B2 (en) | Logic simulator | |
SU1083194A1 (en) | Device for debugging programs | |
SU1168954A2 (en) | Device for interrupting when debugging programs | |
SU1591014A1 (en) | Microprogram control device |