SU1305702A1 - Device for generating all possible combinations - Google Patents
Device for generating all possible combinations Download PDFInfo
- 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
Links
- 238000011960 computer-aided design Methods 0.000 abstract 1
- 230000015572 biosynthetic process Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 1
Landscapes
- Compression, Expansion, Code Conversion, And Decoders (AREA)
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)
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) |
-
1985
- 1985-06-11 SU SU853908538A patent/SU1305702A1/en active
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 | |
SU1401448A1 (en) | Apparatus for implementing boolean symmetrical functions | |
SU734669A1 (en) | Converter of proper binary fraction into binary-decimal fraction and integer binary-decimal numbers into binary numbers | |
SU1234826A1 (en) | Device for tolerance comparing of 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 | |
SU1501030A1 (en) | Series to parallel code converter |