SU1149246A1 - Device for counting number of ones - Google Patents

Device for counting number of ones Download PDF

Info

Publication number
SU1149246A1
SU1149246A1 SU833564157A SU3564157A SU1149246A1 SU 1149246 A1 SU1149246 A1 SU 1149246A1 SU 833564157 A SU833564157 A SU 833564157A SU 3564157 A SU3564157 A SU 3564157A SU 1149246 A1 SU1149246 A1 SU 1149246A1
Authority
SU
USSR - Soviet Union
Prior art keywords
inputs
units
groups
outputs
input
Prior art date
Application number
SU833564157A
Other languages
Russian (ru)
Inventor
Сергей Станиславович Букатин
Елена Семеновна Фетюкова
Original Assignee
Предприятие П/Я А-3821
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 Предприятие П/Я А-3821 filed Critical Предприятие П/Я А-3821
Priority to SU833564157A priority Critical patent/SU1149246A1/en
Application granted granted Critical
Publication of SU1149246A1 publication Critical patent/SU1149246A1/en

Links

Abstract

УСТРОЙСТВО ДЛЯ ПОДСЧЕТА КОЛИЧЕСТВА ЕДИНЩ, содержащее входной и выходной регистры, преобразователи двоичного кода в код количества единиц, суммирующие узлы, каждый из которых содержит комбинационный сумматор, причем входы преобразователей двоичного кода в код количества единиц соединены с выходами соответствующих групп разр дов входного регистра, отличающеес  тем, что, с целью расширени  функциональных возможностей за счет организации подсчета количества единиц в различных группах заданной длины, в каждый суммирующий узел введены два коммутатора, 1фичем перва  и втора  группы входов комбинационного сумматора i-ro суммирующего узла первого  руса соединены с выходами A device for counting the number of units that contains input and output registers, converters of binary code in the code of the number of units, summing nodes, each of which contains a combinational adder, and the inputs of the converters of binary code in the code of the number of units are connected to the outputs of the corresponding groups of bits of the input register, different by the fact that, in order to expand the functionality by organizing the counting of the number of units in different groups of a given length, each Two switches are provided, with 1 first and second input groups of the i-ro combinational adder of the first rus summing node connected to the outputs

Description

Изобретение относитс  к вычисли тельной технике и предназначено дл подсчета количества единиц в даоич ных числах. Целью изобретени   вл етс  расширение функциональных возможностей за счет организации подсчета количества единиц в различных груп пах заданной длины. На фиг. 1 приведена структурна  схема устройства дл  подсчета коли чества единицу на фиг. .2 - структу на  схема суммирующего узла. Устройство дл  подсчета количес ва единиц содержит входной регистр 1, преобразователи 2 двоичного кода в код количества единиц, суммирующие узлы 3.t-3.L, выходной регистр 4, управл ющие входы 5.1 5 .L. Сут 1мируюищй узел включает комби национный сзтфштор 6, первый комму татор 7, второй коммутатор 8, вход 9 первого слагаемого, вход 10 втор го слагаемого, выходы 11 и 12 сумм рующего узла. Устройство работает следующим образом. На входной регистр 1 (фиг. 1) помещаетс  двоичное число, в котором (или в заданных группах которо го) требуетс  подсчитать количество единиц. С выходов входного регистра 1 информаци  поступает на входа преобразователей 2 двоичного кода в код количества единиц, с выходов которых полученные коды количества единиц поступакэ на сум мирующие узлы 3.1 первого  руса. Результат, полученньй на выходе 12 cy   иpJrющeгo узла 3.1 1-го  руса ,  вл етс  одним из слагаемых дл  суммирующего узла 3(+1) Кто  руса, где К - 2, ..., logj m. При требойанни формировани  результирующих сумм единиц в группах заданной дшшы только в младших разр дах аналогичных групп разр до выходного регистра 4 минимальна  разр дность группы определ етс  вьфажением п,„ ; N, где п,,н - минимальна  разр дность гру пы-, N - разр дность входного регис ра 1, Группы, в которых одновремен но подсчитываетс  количество единиц , должны быть равной разр дности кратной степени два. Число преобразоватрлей 2 двоичного кода в 6 код количества единиц выбираетс  N равным т. Разр дность каждого суммирующего узла 3.f -го  руса определ етс  как + J2og2 . а их количество как N/n 2 ш/2 ,, Суммирующий узел 3. с номером j (фиг. 2) принимает по входам 9 и 10 информацию с выходов 12 суммирующих узлов 3.(1- 1) или с выходов преобразователей 2 двоичного кода в код количества единиц дл  1 с номерами (2j - 1) и 2j соответственно . Информаци  с входа 9 поступает на первую группу информационных входов первого коммутатора 7, имеющего разр дность, равную разр дности суммирующего узла 3. , и первую группу входов комбинационного сумматора 6. Информаци  с входа 10 поступает на первую группу информационных входов второго коммутатора 8 и на вторую группу входов комбинационного сумматора 6. Сумма, сформированна  на выходах комбинационного сумматора 6, поступает на вторую группу информационных входов второго коммутатора 8. Таким образом, при разрешающем потенциале 1 на управл ющем входе 5.С к выходам 11 и 12 суммирующего узла подключаютс  соответственно вторые входы первого и второго коммутаторов 7 и 8. Дл  получени  на выходе 11, соединенного с соответствующими разр дами выходного регистра 4, нулевой информации при разре1оа1Ш(вм потенциале на управл ющем входе 5.Р. втора  группа информационных входов соединена с шиной значени  О устройства. Прк отсутствии разрешающего потенциала на управл ющем входе 5.Р на выходы 11 и 12 суммирукедего узла поступает информаци  с входов первого и второго слагаемых соответственно . Дп  формировани  в выходном регистре 4 суммы единиц в группах по 2 разр дов (а О, 1 ,... log 2 и) необходимо на все  русы , дл  которых fi а, подать разрешающий потенциал на их управл ющие входы 5. .The invention relates to a computational technique and is intended to count the number of units in daoic numbers. The aim of the invention is to expand the functionality by organizing the counting of the number of units in different groups of a given length. FIG. 1 shows a block diagram of a device for counting the number of units in FIG. .2 - structure on the summing node scheme. The device for counting the number of units contains an input register 1, converters 2 binary code into the code of the number of units, summing nodes 3.t-3.L, output register 4, control inputs 5.1 5 .L. The day of the 1st node includes the combination switchboard 6, the first switch 7, the second switch 8, the input 9 of the first term, the input 10 of the second term, and the outputs 11 and 12 of the summing node. The device works as follows. A binary number is placed on the input register 1 (Fig. 1), in which (or in the given groups of which) the number of units is required to be counted. From the outputs of input register 1, information is fed to the inputs of converters 2 of binary code to the code of the number of units, from the outputs of which the received codes of the number of units of input to the summing nodes 3.1 of the first rus. The result obtained at the output of 12 cy and the junction node 3.1 of the 1st Russ is one of the summands for the summing node 3 (+1) Who is the Russ, where K is 2, ..., logj m. When requiring the formation of the resulting sums of units in groups of a given size only in the lower bits of similar groups of bits to the output register 4, the minimum size of the group is determined by the extrusion n, „; N, where n ,, n is the minimum size of the group, and N is the size of the input register 1, the groups in which the number of units is simultaneously calculated must be equal to the magnitude of a multiple of two. The number of converters of 2 binary code to 6 code of the number of units is chosen N equal to m. The width of each summing node of the 3.fth rus is determined as + J2og2. and their number as N / n 2 W / 2 ,, Summing node 3. With number j (Fig. 2), on inputs 9 and 10, information from outputs 12 of summing nodes 3 (1-1) or from outputs of converters 2 is binary code in the code of the number of units for 1 with numbers (2j - 1) and 2j, respectively. Information from input 9 is fed to the first group of information inputs of the first switch 7, having a width equal to the width of summing node 3., and the first group of inputs of the combinational adder 6. Information from input 10 is fed to the first group of information inputs of the second switch 8 and to the second a group of inputs of the combinational adder 6. The sum, formed at the outputs of the combinational adder 6, goes to the second group of information inputs of the second switch 8. Thus, at a resolving potential of 1 for control The input terminal 5.C connects to the outputs 11 and 12 of the summing node, respectively, the second inputs of the first and second switches 7 and 8. To obtain at output 11, which is connected to the corresponding bits of the output register 4, zero information is given at 1R1 (potential on the control An input 5.P. The second group of information inputs is connected to the bus value O of the device. If there is no resolving potential at the control input 5.P, the outputs from the node 11 and 12 receive information from the inputs of the first and second components but. Dp formation in the output register 4 sums of units in groups of 2 bits (a O, 1, ... log 2 and) is necessary for all Russ for which fi a, apply the resolving potential to their control inputs 5..

в предлагаемом устройстве дл  подсчета единиц обеспечиваетс  динамическа  перестройка дл  одновременной обработки групп разр дов различные реконфигурируемые счетные устройства. Высока  степеньIn the proposed unit counting device, dynamic reorganization is provided for simultaneous processing of groups of bits of various reconfigurable counting devices. High degree

S.1S.1

1149246411492464

; регул рности суммирующих узлов 3.1-3.2 позвол ет использовать дл  реализации подобных устройств микроэлектронные схемы большой интеграции, что обеспечивает малый объем устройства.; The regularity of summing nodes 3.1-3.2 allows the use of large-scale microelectronic circuits for the implementation of such devices, which ensures a small amount of the device.

5.L5.L

Фиъ,1Fi, 1

1212

i(i-ni (i-n

////

rr

1212

dridri

7272

вat

Фиг. 2FIG. 2

Claims (1)

УСТРОЙСТВО ДЛЯ ПОДСЧЕТА КОЛИЧЕСТВА ЕДИНИЦ, содержащее входной и выходной регистры, преобразователи двоичного кода в код количества единиц, суммирующие узлы, каждый из которых содержит комбинационный сумматор, причем входы преобразователей двоичного кода в код количества единиц соединены с выходами соответствующих групп разрядов входного регистра, отличающееся тем, что, с целью расширения функциональных возможностей за счет организации подсчета количества единиц в различных группах заданной длины, в каждый суммирующий узел введены два коммутатора, причем первая и вторая группы входов комбинационного сумматора i-ro суммирующего узла первого яруса соединены с выходами (2i-1}-ro и 21-го преобразователей двоичного кода в код количества единиц соответственно (i = 1, ..., m/2^ m количество групп разрядов входного регистра), в кажцом суммирующем узле первая и вторая группы информационных входов первого коммутатора соединены с первой группой входов комбинационного сумматора и шиной значения ”0 устройства соответственно, первая и вторая группы информационных входов второго коммутатора соединены с выходами и второй группой входов комбинационного сумматора соответственно, первая и вторая группы входов комбинационного сумматора j-ro суммирующего узла К-го яруса (К =2, ..., Eogt m, j = 1,..., ) соединены с выходами вторых коммутаторов (2j-1)-ro и 2j-ro суммирующих узлов (К-1)-го яруса, выходы первых коммутаторов всех суммирующих узлов и выход второго коммутатора (iog^nO-ro яруса соединены с входами выходного регистра, управляющие входы коммутаторов Х-го яруса (I = 1, ..., £ogi и) соединены с Е-м входом настройки устройства.DEVICE FOR CALCULATING THE NUMBER OF UNITS, containing input and output registers, binary code converters to the number of units code, summing nodes, each of which contains a combinational adder, the inputs of the binary code converters to the number of units code connected to the outputs of the corresponding groups of bits of the input register, characterized in that, in order to expand functionality by organizing the calculation of the number of units in various groups of a given length, d are introduced into each summing node and the switch, and the first and second groups of inputs of the combinatory adder i-ro of the summing node of the first tier are connected to the outputs (2i-1} -ro and the 21st binary code converters to the number of units code, respectively (i = 1, ..., m / 2 ^ m is the number of bit groups of the input register), in each summing node, the first and second groups of information inputs of the first switch are connected to the first group of inputs of the combinational adder and the value bus "0 of the device, respectively, the first and second groups of information inputs of the second switch are connected to outputs and inputs of the second group of combinational adder respectively, the first and second groups of inputs of the adder Raman j-ro summing node K-th level (k = 2, ..., Eog t m, j = 1, ...,) are connected with the outputs of the second switches (2j-1) -ro and 2j-ro of the summing nodes of the (K-1) tier, the outputs of the first switches of all summing nodes and the output of the second switch (iog ^ nO-ro of the tier are connected to the inputs of the output register, controlling the inputs of the switches of the Xth tier (I = 1, ..., £ og i and) are connected to the Eth input of the device settings. SU .,,,1149246 >SU. ,,, 1149246> II
SU833564157A 1983-03-16 1983-03-16 Device for counting number of ones SU1149246A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU833564157A SU1149246A1 (en) 1983-03-16 1983-03-16 Device for counting number of ones

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU833564157A SU1149246A1 (en) 1983-03-16 1983-03-16 Device for counting number of ones

Publications (1)

Publication Number Publication Date
SU1149246A1 true SU1149246A1 (en) 1985-04-07

Family

ID=21053688

Family Applications (1)

Application Number Title Priority Date Filing Date
SU833564157A SU1149246A1 (en) 1983-03-16 1983-03-16 Device for counting number of ones

Country Status (1)

Country Link
SU (1) SU1149246A1 (en)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Авторское свидетельство СССР № 450160, кл. G 06 F 5/02, 1972. За вка FR № 2454136, кл. G 06 F 7/50, опублик. 1980. *

Similar Documents

Publication Publication Date Title
EP0081632A2 (en) Adder circuit
KR840005228A (en) Galois element removal equipment
KR910003486A (en) Bit order switch
SU1149246A1 (en) Device for counting number of ones
US4996527A (en) Pipelined residue to mixed base converter and base extension processor
SU1193665A1 (en) Device for summing binary numbers
RU2093888C1 (en) Process for address-rank identification and selection of analog signals
SU1141422A2 (en) Device for determining phase of spectrum components of analyzed signal
SU964626A1 (en) Device for checking reception fidality of information in berger codes
SU763896A1 (en) Device for adding n numbers in redundant system
RU2099776C1 (en) Digital adder
SU1072260A1 (en) Voltage-to-decimal-code converter
KR970005175A (en) Multiplication / Division Sharing Handler Structure Based on Pipeline Structure
SU1401448A1 (en) Apparatus for implementing boolean symmetrical functions
SU758145A1 (en) Square rooting device
US4141077A (en) Method for dividing two numbers and device for effecting same
SU907542A2 (en) Device for binary number comparison
SU1030800A1 (en) Logarithmic device
SU1018115A1 (en) Multiplication device
SU588543A1 (en) Device for adding binary numbers
SU1282135A1 (en) Device for shifting information with checking
SU920706A2 (en) Counter-type adder
Weisstein Ternary
SU1376081A1 (en) Adding device
SU763897A1 (en) Multiplier