SU1305702A1 - Device for generating all possible combinations - Google Patents

Device for generating all possible combinations Download PDF

Info

Publication number
SU1305702A1
SU1305702A1 SU853908538A SU3908538A SU1305702A1 SU 1305702 A1 SU1305702 A1 SU 1305702A1 SU 853908538 A SU853908538 A SU 853908538A SU 3908538 A SU3908538 A SU 3908538A SU 1305702 A1 SU1305702 A1 SU 1305702A1
Authority
SU
USSR - Soviet Union
Prior art keywords
output
register
bit
bits
input
Prior art date
Application number
SU853908538A
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 SU853908538A priority Critical patent/SU1305702A1/en
Application granted granted Critical
Publication of SU1305702A1 publication Critical patent/SU1305702A1/en

Links

Abstract

Изобретение относитс -к вычислительной технике и может быть использовано дл  построени  систем автоматизированного проектировани  радиоэлектронной и электронно-вычислительной аппаратуры. Цель изобретени  - повышение быстродействи  устройства. Поставленна  цель достигаетс  тем, что в устройство, содержащее регистр 1, первый логический блок 2, группу 6 элементов И, сдвигатель 7 кода и сумматор 8, введены второй логический блок 3 и формирователь 9 импульса с соответствующими св з ми. 1 ил. СЛThe invention relates to computing technology and can be used to build computer-aided design systems for electronic and electronic computing equipment. The purpose of the invention is to increase the speed of the device. The goal is achieved by the fact that a second logic block 2, a group of 6 AND elements, a code shifter 7 and an adder 8 are inserted into the device containing the register 1, the second logical block 3, and the impulse generator 9 with the corresponding connections. 1 il. SL

Description

113113

Изобретение относитс  к вычислительной технике и может быть использовано дл  построени  систем абтома- тизированного проектировани  радиоэлектронной и электронно-вычислитель- ной аппаратуры.The invention relates to computing and can be used to build systems for the automated design of electronic and electronic computing equipment.

Цель изобретени  - повышение быстродействи  устройства.The purpose of the invention is to increase the speed of the device.

На чертеже представлена функпио- нальна  схема устройства.The drawing shows the functional diagram of the device.

Устройство содержит регистр 1, первый и второй 2 и 3 логические блоки , построенные на элементах ИЛИThe device contains a register 1, the first and second 2 and 3 logical blocks built on the elements OR

4, 4 И и 5, 5 , группу 6 элементов И сдвигатель 7 кода, сумматор 8 и формирователь 9 импульса.4, 4 And 5, 5, a group of 6 elements And the shifter 7 code, the adder 8 and shaper 9 pulse.

Принцип работы устройства основан на следующем алгоритме.The principle of operation of the device is based on the following algorithm.

Исходным  вл етс  сочетание, в котором N единиц записаны подр д в младших разр дах (правых). Очередное сочетание вычисл етс  по формулеThe original is a combination in which N units are written in addition in lower order bits (right). The next combination is calculated by the formula

1-е1st

,.., + 4..,.., + 4 ..,

гдеWhere

А,:, мA,:, m

предыдущее сочетание; , где L - число подр д сто щих нулей, начина  с младшего разр да, до первой единицы в (1-1)-м сочетании;previous combination; , where L is the number of consecutive zeroes, starting with the least significant bit, up to the first unit in (1-1) -th combination;

К - число подр д сто щих единиц после L нулей до перв ого очередного нул .K is the number of consecutive units after L zeroes before the first successive zero.

Рассмотрим на примере перебор сочетаний с дл  случа  , . Число таких сочетаний определ етс  по формулеConsider the example of the search combinations with for the case,. The number of such combinations is determined by the formula

( п.( P.

N; (n-N)N; (nn)

10. ten.

Исходным дл  данного случа   вл етс  сочетание А 00111.The starting point for this case is the combination A 00111.

Получим последовательность всех сочетаний, использу  указанный алгоритм , дл  (00100)We obtain the sequence of all combinations using the specified algorithm, for (00100)

А, , BUT, ,

Л(4),,L (4) ,,

2 2

тогдаthen

Л 00111 + 00100 01011, L 00111 + 00100 01011,

Аналогичным образом получим все остальные сочетани :Similarly, we get all the other combinations:

5five

00

5five

00

Таким образом, перебор сочетаний продолжаетс  до тех пор, пока все единицы не по в тс  в старших разр дах подр д.Thus, the enumeration of combinations continues until all units are not in TC in the highest digits.

Устройство работает следующим образом .The device works as follows.

Исходное сочетание, содержащее N единиц в младших разр дах, перед началом работы записываетс  в регистр 1 . Как только это сочетание по вл етс  на выходе регистра 1, начинаетс  формирование чисел 2 -1 и 2 . Рассмотрим некоторое записанное в регистр 1 промежуточное сочетание. При формировании числа 2 -1 на инверсных выходах регистра 1 по вл ютс  единичные потенциалы в тех разр дах, которым соответствуют содержащие нули разр ды в сочетании, элементы И 4 выбирают только следующие подр д со стороны младших разр дов единичные потенциалы инверсных выходов регистра 1, если тактовые имеютс . Причем число элементов И 4 равно п-3, так как наибольшее число подр д сто щих нулей в сочетании будет при , а последним сочетанием, требующим считывани  нулей ,  вл етс  010...О, поэтому следу- 5 ющее, последнее, сочетание уже неThe initial combination, containing N units in lower order bits, is written to register 1 before starting work. As soon as this combination appears at the output of register 1, the formation of the numbers 2 -1 and 2 begins. Consider some intermediate combination recorded in register 1. When the number 2 -1 is formed, unit potentials appear in the inverse outputs of register 1 in those bits to which the corresponding zero-bit bits correspond, elements And 4 select only the next bits in the lower bits of the unit potentials of the inverse outputs of register 1, if clock speeds are available. Moreover, the number of elements AND 4 is equal to p-3, since the greatest number of consecutive zeros in the combination will be at, and the last combination requiring reading of zeros is 010 ... O, therefore the next 5, last, combination not

требует обработки. Сформированное таким образом двоичное число 2-1 подаетс  на входы элементов ИЛИ 5, на другие входы которых подано данное сочетание с пр мых выходов регистра 1, и производитс  суммирование числа 2 -1 с . . Например, если AJ 0110100, 2 -1 0000011, то в результате на выходе элементов ИЛИ 3 имеем А,-., +2 -1 0110111.requires processing. The binary number 2-1 thus generated is fed to the inputs of the elements OR 5, to the other inputs of which this combination is fed from the direct outputs of register 1, and the number 2 to 2 seconds is summed. . For example, if AJ 0110100, 2 -1 0000011, then as a result, at the output of the elements OR 3, we have A, -., +2 -1 0110111.

Причем в любом случае при суммировании числа 2 -1 не возникает переноса в старшие разр ды, так как число 2 -1 имеет едини1Д 1 в L подр д сто щих разр дах, начина  с младшего. Это обсто тельство позвол ет вести суммирование чисел 2--1 и А- не в сумматоре, а на элементе ИЛИ, позто- му врем  суммировани  существенно уменьшаетс .Moreover, in any case, summing the number 2 –1 does not result in transfer to the higher bits, since the number 2 –1 has unity D 1 in L subgroups of the next bits, starting with the youngest. This circumstance allows the summation of the numbers 2--1 and A- not in the adder, but on the OR element, thus the time of summation is significantly reduced.

Получение числа 2 -1 происходитGetting the number 2 -1 happens

одновременно с формированием суммы r)Lsimultaneously with the formation of the sum r) L

00

5five

ii

00

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

С помощью второго логического блока 3 и блока 6 элементов И обеспечиваетс  подключение к входам двигател  7 кода (L+K) младших разр дов. Действительно, как только на выходах регистра 1 по витс  очередное сочетание Aj , то единичный потенциал на выходе L+K-ro элемента И 4, который заблокирует через соответствующие элементы ИЛИ 5 элементы И 6, начина  с L+K-ro. Поэтому выбираютс  только первые L+K разр дов регистра 1, которые через элементы И 6 подключаютс  к входам сдвигател  7 кода. Например , при А,. OIOJJSS входUsing the second logical block 3 and block 6 of the elements I, a connection to the engine inputs 7 of the code (L + K) of the lower bits is provided. Indeed, as soon as the outputs of register 1 have another combination Aj, then the unit potential at the output of the L + K-ro element is AND 4, which blocks the elements of And 6 through the corresponding elements of OR 5, starting with L + K-ro. Therefore, only the first L + K bits of register 1 are selected, which are connected via elements And 6 to the inputs of the code shifter 7. For example, with A ,. OIOJJSS input

к . L - сдвигател  7 кода подключаютс  младшие разр ды. Дл  того, чтобы информацию, поступившую с выходов элементов И 6, преобразовать в двоичныйto L - shifter 7 code connects lower bits. In order to convert the information received from the outputs of the elements And 6 into binary

код числа 2code number 2

К-1K-1

ее необходимо сдвиher need to shift

нуть на L позиций в сторону младших разр дов, а затем заблокировать (К-1)-разр дов, начина  с младшего. С выхода сдвигател  7 кода двоичный код числа 2 поступает на входы п-разр дного асинхронного сумматора 8 на другие входы которого подано число ()+А ,. В результате сумми- ровани  формируетс  новое сочетание, а на сигнальном выходе сумматора по вл етс  единичный потенциал, который через формирователь 9 импульсов в виде пр моугольного импульса поступает на синхронизирующий вход регистра 1 . Сочетание по этому сигналу записываетс  в регистр 1, причем оно по вл етс  на выходе регистра 1 после окончани  импульса, т.е. по егоon L positions in the direction of younger bits, and then block (K-1) bits, starting with the youngest. From the output of the code shifter 7, the binary code of the number 2 is fed to the inputs of an n-bit asynchronous adder 8 to the other inputs of which the number () + A, is supplied. As a result of the summation, a new combination is formed, and a single potential appears at the signal output of the adder, which through the shaper 9 pulses in the form of a square pulse arrives at the synchronization input of register 1. The combination of this signal is recorded in register 1, and it appears at the output of register 1 after the end of the pulse, i.e. by his

заднему фронту. С по влением А- наback front. With the appearance of A-on

выходе регистра начинаетс  новый цикл работы устройства. Сигналом о переборе сочетаний  вл етс  по вление N единиц подр д в старших разр дах сочетани . В этом случае на выходе элементов 4 И нулевые потенциалы. При этом формируетс  признак конца работы устройства.register output begins a new cycle of the device. The signal for enumeration of combinations is the occurrence of N units in the higher order bits of the combination. In this case, the output elements 4 and zero potentials. This forms a sign of the end of the operation of the device.

Считывание вс ех сочетаний производитс  с пр мых выходов регистра 1 по единичному синхронизирующему импульсу на выходе 10.All combinations are read from the direct outputs of register 1 using a single clock pulse at output 10.

5050

Врем ,необходимое дл  получени  одного сочетани ,складываетс  из задержки55 сигналов на элементах и равно (.IS+nJ «tj, где п - число разр дов в коде; tj - врем  задержки на вентиле (элементе И/ИЛИ).The time required to obtain one combination is the sum of the delay55 signals on the elements and is (.IS + nJ "tj, where n is the number of bits in the code; tj is the delay time on the valve (AND / OR element).

Врем  формировани  одного сочетани  в известном устройстве сост.авл - ет (Зп+9)- tj.The time of formation of one combination in the known device is (Zn + 9) - tj.

Таким образом, предельный выигрыш по быстродействию составл ет величинуThus, the marginal gain in speed is

liralira

..

Зп+9 п+15Sn + 9 n + 15

3. 3

5five

00

5five

5five

00

- -

00

5 five

Claims (1)

Формула изобретени Invention Formula Устройство дл  перебора сочетаний, содержащее п-разр дный регистр, первый логический блок, реализующий функцию Ут ( ... X|)v Х, , где У, Х, - булевы переменные: , 4,A device for enumerating combinations containing a n-bit register, the first logical block implementing the function U (... X |) v X,, where Y, X, are Boolean variables:, 4, . . ., 2 (п-2) - номер разр да входа; т у номер разр да выхода, группу элемен- тов И, сдвигатель кода и сумматор, информационный выход которого соединен с информационным входом регистра, пр мые выходы с второго по д-й разр дов которого соединены с первыми входами с первого по (п-1)-й элемент И группы соответственно, выходы с первого по {п-2)-и элементов И которой соединены с информационными входами с второго по (п-1)-й разр д сдвигател  кодов, информационный вход первого разр да которого соединен с пр мым выходом первого разр да регистра , инверсные выходы с первого по (п-2)-и разр дов которого соединены с четными входами с второго по 2(п-2)-й разр дов соответственно первого логического блока, выход (п- -1)-го элемента И группы  вл етс  выходом признака конца работы устройства , отличающеес  тем, что, с -целью повьш1ени  быстродействи , оно содержит второй логический блок, реализующий функцию У|) ... V Xj, формирователь г импульса, выход которого соединен с входом синхронизации регистра, пр мые выходы с первого по (п-2)-й разр дов которого соединены с нечетными входами с первого по 2(п-2)-1-й разр дов соответственно первого и второго логических блоков, инверсные выходы с второго по (п-1)-й разр дов регистра соединены с чётными входами с второго по 2(п-2)-й разр дов соответственно второго логического блока, т-е выходы которого соединены с инверсными входами т-х эле513057026. . ., 2 (p-2) is the bit number of the input; t y is the output bit number, the I group of elements, the code shifter and the adder, the information output of which is connected to the information input of the register, the direct outputs from the second to the nth bits of which are connected to the first inputs from the first to (n-1 ) -th element and group, respectively, the outputs from the first to (p-2) -and elements and which are connected to the information inputs from the second to (p-1) -th bit of the code shifter, the information input of the first discharge of which is connected to pr my output of the first register bit, inverse outputs from the first to (p-2) -and The poles of which are connected to even-numbered inputs from the second to 2 (p-2) -th bits, respectively, of the first logical block, the output of the (p-1) -th element of the AND group is the output of the sign of the device’s end of operation, characterized in that - the purpose of speeding up, it contains the second logic block that implements the function Y |) ... V Xj, the driver of the pulse g, the output of which is connected to the register synchronization input, the direct outputs from the first to (n-2) -th bits connected to odd inputs from the first to 2 (p-2) -1st bits, respectively, of the first and The second logical block, the inverse outputs from the second to (p-1) -th digit of the register are connected to the even inputs from the second to 2 (p-2) -th bits of the second logical block, respectively, the th outputs of which are connected to the inverse inputs tl ele513057026 ментов И группы соответственно, вы-разр да первого слагаемого которогоcops and groups respectively, you are of the first addend of which ход (п-2)-го разр да второго логичес-,соединен с выходом п-го разр да регикого блока соединен с (п-1)-м инверс-стра, выход сдвнгател  кода соединенthe turn of the (n-2) -th bit of the second logical is connected to the output of the n-th bit of the register block is connected to the (n-1) th inverse, the output of the code block is connected ным входом элемента И группы, выходс входом второго слагаемого сумматош-го разр да первого логического бло- ,ра, выход признака окончани  суммика соединен с входом т-го Первогоровани  которого соединен с входомthe input of the element AND of the group, the output of the second term of the summation bit of the first logical block, the output of the sign of the end of the sum is connected to the input of the first perovodovaniya which is connected to the input слагаемого сумматора, вход (т+1)-го ,формировател  импульса.adder term, input (t + 1) -th, impulse driver.
SU853908538A 1985-06-11 1985-06-11 Device for generating all possible combinations SU1305702A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU853908538A SU1305702A1 (en) 1985-06-11 1985-06-11 Device for generating all possible combinations

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU853908538A SU1305702A1 (en) 1985-06-11 1985-06-11 Device for generating all possible combinations

Publications (1)

Publication Number Publication Date
SU1305702A1 true SU1305702A1 (en) 1987-04-23

Family

ID=21181920

Family Applications (1)

Application Number Title Priority Date Filing Date
SU853908538A SU1305702A1 (en) 1985-06-11 1985-06-11 Device for generating all possible combinations

Country Status (1)

Country Link
SU (1) SU1305702A1 (en)

Similar Documents

Publication Publication Date Title
SU1305702A1 (en) Device for generating all possible combinations
SU1748146A2 (en) Generator of systems of basal functions
SU1272329A1 (en) Calculating device
SU1034188A1 (en) Versions of threshold element
SU1495786A1 (en) Multiplier of serial binary codes
SU1001092A1 (en) Digital function converter
SU1188728A1 (en) Device for implementing boolean functions
SU894714A1 (en) Microprocessor module
SU970358A1 (en) Device for squaring
SU1624699A1 (en) Residue system code to positional code converter
SU857976A1 (en) Binary adder
SU734669A1 (en) Converter of proper binary fraction into binary-decimal fraction and integer binary-decimal numbers into binary numbers
SU1564733A1 (en) Device for revealing errors in parallel code
SU813408A1 (en) Converter of residual class system codes into binary position code
SU1522412A1 (en) Converter of series character-digit code into parallel code of addition
SU658556A1 (en) Gray code-to -binary code converter
SU1304019A1 (en) Device for modulo 2p-1 multiplying
SU1037258A1 (en) Device for determination of number of ones in binary code
SU1603360A1 (en) Generator of basic functions
RU2034401C1 (en) Threshold element
SU911508A1 (en) Device for comparing two numbers
SU760085A1 (en) Binary-decimal-to-binary number converter
SU1120321A1 (en) Device for extracting 7-th root of number
SU1686437A1 (en) Conveying device for calculating sums of products
SU572781A1 (en) Radix converter of binary-decimal numbers into binary numbers