SU746502A1 - Device for comparing mn-digit binary numbers - Google Patents

Device for comparing mn-digit binary numbers Download PDF

Info

Publication number
SU746502A1
SU746502A1 SU772533939A SU2533939A SU746502A1 SU 746502 A1 SU746502 A1 SU 746502A1 SU 772533939 A SU772533939 A SU 772533939A SU 2533939 A SU2533939 A SU 2533939A SU 746502 A1 SU746502 A1 SU 746502A1
Authority
SU
USSR - Soviet Union
Prior art keywords
numbers
inputs
input
output
flip
Prior art date
Application number
SU772533939A
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 SU772533939A priority Critical patent/SU746502A1/en
Application granted granted Critical
Publication of SU746502A1 publication Critical patent/SU746502A1/en

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Description

1one

Изобретение относитс  к области автоматики и вычислительной техники, может быть использовано в системах вычислительной техники дл  выбора экстремальных чисел и чисел, отличаю-5 щихс  заданным признаком.The invention relates to the field of automation and computer technology, can be used in computer systems for the selection of extreme numbers and numbers differing from a given attribute.

Известно устройство дл  сравнени  двоичных чисел, содержащее вычитающие счетчики сравниваемых чисел, реверсивные счетчики, суммирук 1чие счет- 0 чики максимальной и минимальной разности , суммирующие счетчики наибольшего и наименьшего чисел, элементы И, ИЛИ, дифференцирующие цепи, триггеры , генератор импульсов l} .15A device for comparing binary numbers is known, containing subtractive counters of compared numbers, reversible counters, summing up 1 counters of maximum and minimum differences, summing counters of the largest and smallest numbers, elements AND, OR, differentiating circuits, triggers, pulse generator l} .15

Устройство работает по принципу уменьшени  содержимого вычитающих счетчиков до получени  нулевого кода в них и одновременного заполнени  20 сче.тчиков наибольшего и наименьшего чисел, а после вы влени  наименьшего числа - заполнени  счетчиков наименьшей и наибольшей разности чисел.The device works on the principle of reducing the contents of deducting counters until a zero code is received in them and at the same time filling up 20 counters of the largest and smallest numbers, and after detecting the smallest number, filling the counters of the smallest and largest difference of numbers.

Недостатком известного устройства 25  вл ютс  сложность и малое быстродействие , так как врем , необходимое дл  сравнени  чисел равно t()/fo где fо частота генератора импульсов , Nrri код максимального из сово- 30A disadvantage of the known device 25 is complexity and low speed, since the time required for comparing numbers is t () / fo where f is the frequency of the pulse generator, Nrri is the code of the maximum of 30

купности чисел, записанного в одном из вычитающих счетчиков. .the number of numbers written in one of the subtractive counters. .

Известно также устройство, содержащее га элементов равнозначности, информационные первь1е входы которых соединены с входными шинами устройства , вторые Bxoflu - с певой шиной управлени , элемент ИЛИ, выход которого подключен к первому входу элемента И, элементы И, ИЛИ, НЕ, регистры 5,It is also known a device that contains an element of equivalence, the informational first inputs of which are connected to the device input buses, the second Bxoflu - to the control bus, the OR element, the output of which is connected to the first input of the element AND, the elements AND, OR, NOT, registers 5,

Недостатком известного устройства  вл ютс  его ограниченные функциональные возможности, которые свод тс  к определению экстремальных чисел .A disadvantage of the known device is its limited functionality, which reduces to the definition of extreme numbers.

Целью изобретени   вл етс  расширение функциональных возможностей путем обеспечени  определени  экстремальных чисел и поиски чисел по признакам.The aim of the invention is to expand the functionality by providing the definition of extreme numbers and searching for numbers by features.

Поставленна  цель достигаетс  тем, что в устройстве, содержащем m элементов равнозначности, инфогж ационные первые входы которых соединены с входными шинами устройства, вторые входы с первой шиной управлени , элемент ИЛИ, выход -которого подключен к первому входу элемента И, m Д-триггеров, а выход.каждого i-ro элемента равнозначности соединен с информационным 1,;,:,:. .,--::..- / вхсдсм 1-го Д-триггера и с i-ым вхо -дом элемента ИЛИ, где ,2,,,,,т, входы синхронизации Д-триггера подключены к выходу элемента И, второй и третий входы которого с оединены с второй и третьей управл ющими шинами устройства, четверта  управл юща шина устройства подключена к (т+1)-м входу элемента ИЛИ, пр мой выход каж дого 1-го Д-триггера соединён с вхо дом управлени  i-ro элемента равнозначности , входы установки в един ное сЪстЬ йиё Д-триггеров подключе ны к шине установки в исходное состо ние устройства, Функциональна  схема устройства представлена на чертеже, . Устройство содержит m элементов равнозначности, m Д-триггё-ров 2, элемент ИЛИ 3, элемент И 4, управл ю щие шины 5-9, Устройство работает следующим об разом. m п-разр дных двоичных чисел х-,,,вХ подаетс  каждое на свой эле мент равнозначности одновременно поразр дно , начина  со старшего разр да . На управл ющую шину 5 подаютс  сигналы логического О или логической Ч при поиске соответствен но минимальных или максимальных чисел , а также заданное число У при поиске Заданных чисел или признака числа при поиске чисел по признаку. Сигналом логической Ч, подаваемым на управл ющую, шину 9, все m Д-триггеров 2 устанавливаютс  в исход ное состо ние. На управл ющую шин б выбора вида операции подаетс  сигнал логического при поиске логической экстремальных чисел и 1 при поиске чисел по признаку. На управл ющую шину 7 кода масКй г(бдаетс  код маски последовательно поразр дно и одновременно с числами X и У; На управл ющую шину 8 подаютс  т актрвые сигналы , , Цоиск максимального из совокупнос ти m чисел производитс  следующим об разом. На управл ющую шину б подаетс  логический О, на управл ющую шину 7 - код маски, все разр ды которого содержат логическую На упр авл ющей шине 5 устанавливаетс  сигнал логической , Все Д-триггеры 2 устанавливаютс  в еди Hji4Hpe состо ние сигналом по управ л ющей шине 9, тем самлм на управл ю щие входы всех элементов равнознач ности подаётс  разрешающий сигнал. Далее с первым тактирующим импульсом сТарииё разр ды всех чисел поступают на первые вхсды соответствующих элементов равнозначности, сигналы . Kiffifopfiix пойв тег  вслуча ё, если (У-х|)0| .1, где х - К-и раз р д i-ro числа, С|(.д - выходной, сигнал 1-г.о Д-триггера, образованныйThe goal is achieved by the fact that in the device containing m elements of equivalence, the infogging first inputs of which are connected to the input buses of the device, the second inputs to the first control bus, an OR element whose output is connected to the first input of the AND, m D-flip-flops, and the output of each i-ro element of equivalence is connected with informational 1,;,:,::. ., - :: ..- / VHSdsm 1st D-flip-flop and with the i-th input of the element OR, where, 2 ,,,, t, the synchronization inputs of the D-flip-flop are connected to the output of the And element, the second and the third inputs of which are connected to the second and third control buses of the device, the fourth control bus of the device is connected to the (t + 1) input of the OR element, the direct output of each 1st D-flip-flop is connected to the control input i -ro of the element of equivalence, the installation inputs in a single way D-flip-flops are connected to the installation bus in the initial state of the device, Functional diagram of the device put on the drawing,. The device contains m equivalence elements, m D-trigger 2, the element OR 3, the element AND 4, control buses 5–9. The device works as follows. m n-bit binary numbers x - ,,, вХ each is applied to its element of equivalence at the same time bitwise, starting with the highest order. The control bus 5 is given signals of a logical 0 or logical H when searching for the corresponding minimum or maximum numbers, as well as a specified number Y when searching for the specified numbers or a sign of a number when searching for numbers on the basis of. By the signal of the logical H supplied to the control bus 9, all m D-flip-flops 2 are set to their initial state. The control bus 6 of the choice of the type of operation is given a logical signal when searching for logical extreme numbers and 1 when searching for numbers on the basis of. On the control bus 7 of the code MasKy (the mask code is sequentially bitwise and simultaneously with the numbers X and Y; Actuating signals are sent to the control bus 8, The search for the maximum of the set of m numbers is performed as follows. On the control bus b. A logical O is applied, the control bus 7 is supplied with a mask code, all bits of which contain a logical signal. The control bus 5 is set to a logical signal. All D-flip-flops 2 are set to one Hji4Hpe state by the signal on control bus 9, all the control inputs of all the elements Next, with the first clocking pulse, the bits of all numbers are sent to the first breaths of the corresponding elements of the equivalence, the signals. Kiffifopfiix by singing the tag if (--| and times the number of i-ro numbers, C | (.d - output, the signal 1-go D-flip-flop, formed

Claims (1)

V 4 fc- -«------- после окончани  (К-1)-го такта, где ,2, ,,,,п. Следовательно, при поиске максимального числа, т.е, когда , на первом такте сравнени  образуетс  сигнал логической 1 на выходе тех элементов равнозначности, xj, 1, Элемент ИЛИ 3 вы вл ет ли среди поступивших сигналов хот  бы один единичный. Очевидно число . не может быть максимальным и подлежит исключению из дальнейшего анализа , -если среди поступивших значений старшего разр да всех чисел есть хот  бы одна единица, а в старшем разр де данного числа нуль. Если выходной сигнал элемента ИЛИ 3 (Pj) равен единице, то тот же тактовый импульс через элемент И 4 поступает на С входы всех Д-триггеров, из которых установ тс  в нулевое состо ние только те, на Д входах которых присутствует сигнал логического О, Следовательно, на управл ющие входы элементов равнозначности соответствующих Д-триггерам, изменившим свое состо ние, поступит сигнал за.прета на дальнейший аналИз соответствующих чисел. Если Рц 0, г,е, все числа данного разр да не равны У, тактовый импульс не поступит на С входы Д-триггеров и состо ние их не изменитс . На следующем такте, на первые входы всех m с-хем равнозначности, поступают значени  следующего по старшинству г азр да обрабатываемых чисел и процесс сравнени  продолжаетс  аналогично , В итоге за п тактов сравнени  вы вл ютс  максимальные числа, местонахождени  которых фиксируютс  триггером , не изменившим исходного состо ни , Срав.нение может закончитьс  и на первом такте, если среди значений старшего разр да m чисел только одно единичное. Аналогично производитс  поиск минимального числа. Поиск числа по признаку, частным случаем которого  вл етс  поиск заданного числа, производитс  следующим образом,Допустим производитс  поиск числа, в к-ом разр де которого единичное значение, а в е -ом нулевое и безразличн.о..какое значение в остальных разр дах, гдеf О,1,,,,,п, е УК, Следовательно на вход устройства подаетс  последовательно поразр дно и одновременно с m числами код маски, к-й,С -и разр ды которого имеют единичное значение, а остальные - нулеое . На управл ющую шину 5 подаетс  акже последовательно поразр дно и дновременно с m числами число У с казанными выше значени ми к-го и -го разр дов. На вход б подаетс  огическа  , Все Д-триггеры устанавливаютс  в единичное ссх;то ние, С первым тактовым импульсом старшиеразр ды всех m чисел поступают на первые входы соответствующих элементов равнозначности. На выходе элемен та ИЛИ 3 присутствует единичный сигнал независимо от того равны или О функции {У XK) QK,, (УК- q2.fV - I К-Ч /«««А к К х- Тактовые импульсы поступают на С входы Д-триггеров только в К-ом и ft-oM тактах, следовательно, в течени остальных тактов никаких изменений в состо нии схемы не произойдет. Далее в К-ом такте исключаютс  из анализа те числа, К-й разр д которых имеет нулевое значение, а в -ом так те те числа, В -и разр д которых имее единичное значение ( Уц;-х),; 0, то число х подлежит исключению и, если ( число уГ подлежит исключению, где г 0,1, ,, .,т, г 7 i. В итоге после п тактов сравнени  Д-триггеры, не изменившие исходного состо ни , зафиксируют местонахождение чисел, имеющих заданные признаки . Поиск заданного числа осуществл етс  аналогично, только код маски должен иметь единичными все разр ды, а на управл ющую шину 5 подаетс  заданное число. Таким образом, данное устройство позвол ет за п тактовпреобразовани  определить экстремальные числа и числа с заданным признаком , Причем информаци , поступающа  на вход Х, х ,...х не стираетс , что позвол ет многократно повтор ть операции сравнени , а местонахождение чисел определ едс  триггером, имеющим единичное состо ние в конце операции сравнени . Формула изобретени  Устройство дл  сравнени  га п -разр дных двоичных чисел, содержащее m элементов равнозначности, информационные первые входы которых соединены с входными шинами устройства, вторые входы - с первой шиной управлени , элемент ИЛИ, выход которого подключен к первому входу элемента И, отличаю щеес   тем, что, с целью расширени  функциональных возможностей путем обеспечени  определени  экстремальных чисел и поиска чисел по признакам,в него введены щ Д-триггеров, а выход каждого 1-го элемента равнозначности соединен с информационным входом д.-го Д-триггера и с i-M входом элемента ИЛИ, где 1 1,2,,,, т, входы синхронизации д-триггера подключены к выходу элемента И, второй и третий входы которого соединены со второй и третьей управл ющими шинами устройства, четверта  управл юща  шина устройства подключена к (т+1)-му входу элемента ИЛИ, пр мой выход каждого i-ro Д-триггера соединен с входом управлени  1-го элемента равнозначности, входы установки в единичное состо ние Дтриггеров подключены к шине установки в исходное состо ние устройства. Источники информации, прин тые во внимание при экспертизе 1,Авторское свидетельство СССР - 444180, кл, (3 06 F 7/04, 20,05,71, 2,Авторское свидетельство СССР 478303, кл, G 06 F 7/04, 15,05,72 (прототип),V 4 fc- - "------- after the end of (K-1) -th cycle, where, 2, ,,,, p. Consequently, when searching for the maximum number, i.e., when, at the first comparison cycle, a logical 1 signal is generated at the output of those equivalence elements, xj, 1, the OR OR 3 element detects at least one of the incoming signals. Obviously a number. cannot be maximal and should be excluded from further analysis, if among the received values of the highest bit of all numbers there is at least one unit, and in the highest bit of the given number is zero. If the output signal of the element OR 3 (Pj) is equal to one, then the same clock pulse through the element AND 4 goes to the C inputs of all D-flip-flops, of which only those with the O signal are present in the zero state Consequently, the control inputs of the equivalence elements of the corresponding D-flip-flops, which have changed their state, will receive a signal to prevent further analogous numbers from the corresponding numbers. If Pc 0, g, e, all the numbers of this bit are not equal to Y, the clock pulse will not go to the C inputs of D-flip-flops and their state will not change. At the next cycle, at the first inputs of all mc-hem equivalences, the values of the next most significant number of processed numbers are received and the comparison process proceeds similarly. As a result, the maximum numbers whose locations are fixed by a trigger that did not change the source state, Comparison can end at the first cycle if there is only one unit number among the highest-order values of m numbers. Similarly, the search for the minimum number is performed. The search for a number by a sign, a particular case of which is the search for a given number, is performed as follows. Suppose a search is made for a number, in which category it is a single value, and in e it is zero and indifferent. dah, where f 0, 1 ,,,,, p, e CC, Therefore, the input of the device is sequentially bitwise and at the same time with m numbers the mask code, the kth, C of which bits have a single value, and the rest are null . The control bus 5 is also supplied successively bitwise and simultaneously with m numbers the number Y with the above values of the ith and ith bits. All b-triggers are set to a single ccx; that is, With the first clock pulse, the snapshots of all m numbers are fed to the first inputs of the corresponding equivalence elements. At the output of the element OR 3 there is a single signal, regardless of whether they are equal or About function (Y XK) QK ,, (CC –q2.fV - I К-Ч / «« «A to K x - Clock pulses arrive at the C inputs D - triggers only in K-th and ft-o-M cycles, therefore, during the remaining cycles there will be no change in the state of the circuit. Then, in the K-th cycle, those numbers whose K-th digit has a zero value are excluded from the analysis, and in the -th so those numbers, In -th and bit of which has a single value (Yc; -x),; 0, then the number x is to be excluded and, if (the number of yy is to be excluded, where r 0.1, ,,., T, g 7 i. In the end, after the n comparison steps, D-flip-flops that did not change the initial state will record the location of numbers with specified attributes. The search for a given number is carried out in a similar way, only the mask code should have all digits are single, and a specified number is supplied to the control bus 5. Thus, this device allows determining extreme numbers and numbers with a given attribute for the n conversion steps, and the information received at the input X, x, ... x does not erase that allows you to repeat the opera ii comparing, and location of numbers determined EDC trigger having a single state at the end of the comparison operation. The invention The device for comparing n p-bit binary numbers, containing m equivalence elements, the information first inputs of which are connected to the device input buses, the second inputs - with the first control bus, the OR element, the output of which is connected to the first input of the AND element, differing By the fact that, in order to expand the functionality by providing the definition of extreme numbers and searching for numbers by signs, the D-triggers are entered into it, and the output of every 1st equivalence element is connected to info the d input of the d.th D-trigger and the iM input of the OR element, where 1 1,2 ,,,, t, the synchronization inputs of the d-trigger are connected to the output of the AND element, the second and third inputs of which are connected to the second and third control device buses, the fourth control device bus is connected to the (t + 1) -th input of the OR element, the direct output of each i-ro D-flip-flop is connected to the control input of the 1st equivalence element, the inputs of the one-unit setting of the Triggers are connected to bus reset the device. Sources of information taken into account in the examination 1, USSR Copyright Certificate - 444180, cl, (3 06 F 7/04, 20.05,71, 2, USSR Author's Certificate 478303, cl, G 06 F 7/04, 15 , 05.72 (prototype),
SU772533939A 1977-10-17 1977-10-17 Device for comparing mn-digit binary numbers SU746502A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU772533939A SU746502A1 (en) 1977-10-17 1977-10-17 Device for comparing mn-digit binary numbers

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU772533939A SU746502A1 (en) 1977-10-17 1977-10-17 Device for comparing mn-digit binary numbers

Publications (1)

Publication Number Publication Date
SU746502A1 true SU746502A1 (en) 1980-07-07

Family

ID=20728960

Family Applications (1)

Application Number Title Priority Date Filing Date
SU772533939A SU746502A1 (en) 1977-10-17 1977-10-17 Device for comparing mn-digit binary numbers

Country Status (1)

Country Link
SU (1) SU746502A1 (en)

Similar Documents

Publication Publication Date Title
SU746502A1 (en) Device for comparing mn-digit binary numbers
RU2105343C1 (en) Device for situation control
SU1615756A1 (en) Device for identifying images
SU1290295A1 (en) Device for calculating ordinal statistics of sequence of binary numbers
SU1124319A1 (en) Device for generating all possible combinations,arrangements and permutations
SU1571614A1 (en) Symbol correlator
SU1003070A1 (en) Device for discriminating extremum numbers
RU2102788C1 (en) Situation control device
SU576609A1 (en) Associative memory
SU1096638A1 (en) Device for determining maximum sequence from nm-bit binary numbers
SU911510A1 (en) Device for determining maximum number
SU1117648A1 (en) Stochastic (1,n)-port
SU1553972A1 (en) Squaring device
SU963100A1 (en) Associative storage device
SU1259244A1 (en) Digital discriminator
SU736090A1 (en) Device for comparative analysis of numbers
SU1016778A1 (en) Code comparison circuit
SU1665382A1 (en) Device for mathematic functions computation
SU691867A1 (en) Multichannel digital code characters correlator
SU641445A1 (en) Number comparing device
SU980089A1 (en) Number comparing device
SU1278795A1 (en) Device for detecting word in bit sequence
SU1211876A1 (en) Controlled frequency divider
SU1045398A1 (en) Sample device
SU1494015A1 (en) Device for exhaustive search of combinations