SU637810A1 - Mn-digit number sorting arrangement - Google Patents

Mn-digit number sorting arrangement

Info

Publication number
SU637810A1
SU637810A1 SU762327153A SU2327153A SU637810A1 SU 637810 A1 SU637810 A1 SU 637810A1 SU 762327153 A SU762327153 A SU 762327153A SU 2327153 A SU2327153 A SU 2327153A SU 637810 A1 SU637810 A1 SU 637810A1
Authority
SU
USSR - Soviet Union
Prior art keywords
register
input
bus
result
inputs
Prior art date
Application number
SU762327153A
Other languages
Russian (ru)
Inventor
Валерий Рафаилович Потапов
Original Assignee
Potapov Valerij R
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 Potapov Valerij R filed Critical Potapov Valerij R
Priority to SU762327153A priority Critical patent/SU637810A1/en
Application granted granted Critical
Publication of SU637810A1 publication Critical patent/SU637810A1/en

Links

Landscapes

  • Programmable Controllers (AREA)

Description

(54) УСТРОЙСТВО ДЛЯ СОРТИРОВКИ m П-РАЗРЯДНЫХ(54) DEVICE FOR SORTING M U-DISCHARGE

ЧИСЕЛNUMBERS

Благодар  указанкьй.1 конструктивным свгэ м повьаааетс  быстродействие, так как дл  упор доченного перебора этих Чисел требуетс  (й4-1).гй тактов ра боты .Thanks to the indicated. 1 constructive way, the speed is improved, since for the ordered sorting of these Numbers, it is required (4-1).

Это позвол ет значительно (на 2-4 пор дка) повысить быстродействие устройства дл  сортировки ш п -разр дных чисел.This allows a significant (2-4 order of magnitude) increase in the speed of the device for sorting n and bit numbers.

Функциональна  схема устройства приведена на чертеже.Functional diagram of the device shown in the drawing.

Устройство содержит m регистров 1, S которые записываютс  исходные чис. ла, и регистр результата 2, в котором формируетс  очередное максимальное {минимальное) число. Единичные и нулевые выходы регистров 1 и 2 соединены с информационными входами схем сравнени  3, управл ющие.входы которых подключены к входной шине 4 через первые элементы И 5, Первые и вторые выходы неравенства схем 3, в зазнсимости от положени  переключател  6, св заны с соответствующими входами элемента ИЛИ 7, выход которого соеди нен со входом установки в нулевое состо ние триггера 8, Выходы равенства схем сравнени  3 подключены к управл ющему входу соответствующих узлов запрета 9, вторые и третьи входы которых св заны соответственно с управл ющими шинами 10 и 11с Выходы узлов 9 соединены со вторыми входами соответствующих элементов И 5. Вход установки в- единичное состо ние триггера 8 подключен к шине тактовых сигналов 12, а его пр мой и инверсный выходы св заны через переключатель 6 с первым входом второго элемента И 13, второй вход которого подключен к управл щей щине 14. Выход элемента И 13 соединен с входом установки в нулевое состо ние регистра результата 2.Вхогда поразр дного управлени  регистра результата 2 подключены к соответствующим выходам коммутатора 15, вход которого св зан с шкной тактов ых сигналов 12, Входы установки разр дов регистра результата 2 в единичное состоние соединены с управл ющей шиной 16.The device contains m registers 1, S which record the original numbers. la, and result register 2, in which the next maximum (minimum) number is formed. The single and zero outputs of registers 1 and 2 are connected to the information inputs of comparison circuits 3, the control inputs of which are connected to the input bus 4 via the first elements 5, the first and second inequality outputs of circuits 3, due to the position of the switch 6, are associated with the corresponding inputs of the element OR 7, the output of which is connected to the installation of the zero state of the trigger 8, the equality outputs of the comparison circuits 3 are connected to the control input of the corresponding prohibition nodes 9, the second and third inputs of which are connected respectively to control buses 10 and 11c. The outputs of nodes 9 are connected to the second inputs of the corresponding elements AND 5. The installation input into a single state of the trigger 8 is connected to the clock signal bus 12, and its forward and inverse outputs are connected via switch 6 to the first input of the second And 13, the second input of which is connected to the control bar 14. The output of the element I 13 is connected to the input of setting the result register 2 to the zero state. At one time control of the result register 2 is connected to the corresponding outputs of the switch 15, the input to torogo associated with shknoy clocks signals 12 s, setting inputs bit result register rows in single sostonie 2 connected to control bus 16.

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

В начале работы переключатель б ne револитс  в положение, соответствующее сортировке чисел в пор дке их убывани  или возрастани  (полох ение переключател  6 на чертеже соответствует сортировке чисел в пор дке их убывани ) . Затег в регистры 1 занос тс  исходные числа, а регистр результата 2 и KONtMyTaTop 15 сбрасываютс  в исходное состо ние ( цепи занесени  информации в регистры 1 и установки в нуль регистра 2 и коммутатора 15 на чертеже не показаны) . Па. шину 11 подаетс  сигнал, устанавливающий все узлы запрета 9 в такое положение, что элементы И 5 оказываютс  открытыми. После этоЬо устройство готово- к работAt the beginning of operation, the switch ne ne revolts to the position corresponding to the sorting of numbers in order of their decreasing or increasing (the delay of switch 6 in the drawing corresponds to the sorting of numbers in order of their decreasing). The register 1 registers the initial numbers, and the result register 2 and KONtMyTaTop 15 are reset to their initial state (the circuits for entering information into registers 1 and setting the register 2 and the switch 15 to the zero are not shown in the drawing). Pa. The bus 11 is given a signal that sets all the nodes of the prohibition 9 in such a position that the elements of AND 5 are open. After this the device is ready for operation.

Теперь на шину 12 подаетс  первый тактовый сигнал,.который переводит ко даутатор 15 в первое положение. При этом подготавливаетс  к работе ( по первому входу поразр дного управлени ) первый (старший) разр д регистра ре«зультата 2, Кроме того, триггер 8The first clock signal is now supplied to the bus 12, which translates the encoder 15 to the first position. In this case, the first (senior) register of the result register 2, in addition, trigger 8, is prepared for operation (at the first input of the bit control).

1 и подготавустанавливаетс  в1 and prepared in

ливает элемент И 13 к работе. Затем на тину 16 подаетс  сигнал, который заносит в первый (старший) разр д регистра результата 2 единицу ( по цепи, подготовленной первым выходом коммутатора 15). После этого на шину 4 подаетс  сигнал,который проходит через открытые элементы И 5 на управл ющие входы всех схем сравнени  3 (в качестве их могут быть использованы любые известные дл  сравнени  двух п -разр дных чисел, имеющие выходы неравенства , 4 и выход равенства), Схемы сравнени  3 осуществл ют сравнение чисел (N1), наход щихс  в принадлежащих им регистрах 1 с числом, наход щимс  в регистре результата 2 (100,.,0). В результате этого сравнени  сигнал на выходе неравенства больше или равно в ,;какой-либо схеме сравнени  3 по витс  в том случае,, если число в соответствующем регистре iMJSlOO.,,0 (сигналы , по вл ющиес  на выходах равенства схем 3 не оказывают воздействи  на узлы запрета 9, так как сигнал на управл ющую шину 10 не подан),element 13 and to work. Then, a signal is fed to the tin 16, which enters the first (most senior) bit of the result register 2 units (along the circuit prepared by the first output of the switch 15). After that, the bus 4 is supplied with a signal that passes through the open elements AND 5 to the control inputs of all comparison circuits 3 (any known ones for comparing two n-digits having inequality outputs, 4 and equality output can be used as them) The comparison schemes 3 compare the numbers (N1) in the registers 1 belonging to them with the number in the result register 2 (100,., 0). As a result of this comparison, the signal at the output of the inequality is greater than or equal to, any comparison circuit 3 is equivalent if the number in the corresponding register iMJSlOO. ,, 0 (signals that appear at the outputs of the equality of the circuits 3 do not acting on the prohibition nodes 9, since the signal on the control bus 10 is not supplied),

Таким образом, если хот  бы Б одно из регистров 1 найдетс  число К; i Я00,..0, то сигнал по витс  на выходе соответствующей схемы сравнени  . 3 пройдет через переключатель б, элемент ИЛИ 7 и поступит на вход установки в нулевое состо ние триггера 8. Триггер 8 установитс  в нуль и подаст на вход элемента И 13 запрещающи и с и г и ал.Thus, if at least B one of the registers 1 finds the number K; i Я00, .. 0, then the signal is given at the output of the corresponding comparison circuit. 3 will pass through switch b, the element OR 7 and will go to the input of the installation in the zero state of the trigger 8. The trigger 8 will set to zero and feed the input element I 13 to inhibit both c and d and al.

После окончани  сигнала на шине 4 подаетс  сигнал на шину 14, так как элемент И 13 закрыт, то этот сигнал дальше в устройство не поступит а в регистре результата 2 сохранитс  записанна  в старшем разр де . Итак, к концу первого такта работы в первом разр де регистра результата 2 будет записана , если, хот  бы в одном из регистров 1 найдетс  число, большее или равное iOO..,0.After the termination of the signal on bus 4, a signal is sent to bus 14, since AND element 13 is closed, this signal will not go further to the device, and result register 2 will remain recorded in high order. So, by the end of the first cycle of operation, the result of register 2 will be recorded in the first discharge if at least one of the registers 1 finds a number greater than or equal to iOO .., 0.

Claims (2)

Если же во всех регистрах 1 окажутс  числа меньш}5е, чем 100...О, то на выходах неравенства больше али равно схем сравнени  3 сигналов не будет, следовательно, триггер 8 останетс  в положении . Тогда сигнал с шины 14 пройдет через открытый элемент и 13 на входы установки в нулевое состо ние регистра результата 2. Через подготовленную цепь (по первому входу поразр дного управлени ) первый разр д регистра результата 2 вернетс  в положение О. 5 Таким образом, если во всех регистрах 1 окажутс  числа меньшие, чем 100...О, то к концу первого так та работы в первом (старшем) разр де регистра результата 2 будет записан О . Затем на шину 12 подаетс  второй тактовый сигнал, и работа устройства повтор етс . К концу второго такта работы во втором разр де регистра 2 будет записана , если хот  бы в одном из регистров 1 найдетс  число большее или равное числу, сформирова ному в регистре результата 2 за два такта работы. В противном случае во втором разр де регистра результата будет записано . После окончани  п тактов в регист ре результата 2 будет сформировано число, равное максимсшьному значению числа, хран щемус  в одном из регист ров 1. В (п+1) такте коммутатор 15 сигна лом по шине 12 переводитс  в (rt+l) положение, чтобы не изменить содержи мое регистра 2. Затеи на шину 10 подаетс  управл ющий сигнал, подгота ливаюищй к работе узлы запрета 9, Сигналы по другим шинам (4,14,16) поступают также, как и в предьщувщх тактах. Сигнал по шине 16 никаких изменений в регистре результата 2 не вызовет, так как коммутатор 15 переведен в (t7+l положение. Сигнал, поступающий по шине 4, пройдет на управл ющие входы всех схем сравнени  3, но по витс  на выходе равенст ва только той схемы сравнени  3, где в принадлежащем ей регистре 1 записано максимальное число, равное сфор мированнсму в регистре результата 2 Сигнал с выхода равенства соответствующей схемы сравнени  3 поступит на управл квдий вход узла запрета 9, принадлежащего данной схеме сравнени  3. Узел запрета 9 переведете в закрытое состо ние и элемент И 5 ока жетс  закЕ«тым по второму входу. Таким образом в дальнейшем сигнал с ши ны 4 уже не будет проходить на данну схему сравнени  3, а значит регистр 1, где находитс  уже найденное максимальное число, в дальнейшей работе участи  принимать не будет. После этого содержимое регистра результата 2 выбираетс  (максимальное число), а он сбрасываетс  в исходное (нулевое) состо ние. Затем на щину 12 подаетс  очередной тактовый сигнал, и устройство начинает поиск максимального числа из оставшихс  чисел (без учета уже выбранных). Работа устройства циклически повтор етс  до тех пор, пока не будет осуществлена сортировка всех чисел, наход щихс  в регистрах 1, в пор дке их убывани . Дл  сортировки чисел в пор дке их возрастани  переключатель 6 пере0 водитс  в другое положение. Работа устройства происходит аналогично ранее описанному, только теперь каждый раз будет осуществл тьс  выбор минимгшьного из оставшихс  чисел. При этом в очередном разр дке регистра 2 будет сохран тьс  Ч, если в данном такте работы числа во всех неисключенных из работ регистров 1будут больше или равны числу, сформированному а регистре 2 за прошедшие такты работы (включа  и данный). В противнее случае в данном разр де регистра 2 будет сформирован О, На (п+1) такте очередное минимальное число будет выбрано из регистра 2, а соответствующий регистр 1 будет исключен из дальнейшей работы с помошью узла запрета 9, принадлежащех-о данному регистру 1. Устройство обладает высоким быстродействием , так как дл  сортировки № rj -разр дных чисел требуетс  «1{г1-И) тактов работы, в то врем  как дл  известных устройств необходимо 2тактов. Формула изобретени  Устройство дл  сортировкн п п -разр дных чисел, содержацдее п регистров , выходы каждого нз которых соединены со входами схем сравнени , другие входы которых подключены к выходам регистра результата, выходные шины схем сравнени  соединены через переключатели со входагли элемента ИЛИ, элементы И, триггер, узлы запрета, отличаю щеес   тем, что, с целью повьаценн  бкстродействип, в нем выход равенства саждо  схемы сравнени  соединен с управл ющим входом соответстну ощего узла запрета, другие входы которого подключены к управл ющим шинам устройства, а выход - к одному из входов первого элемента И, другой вход которого соединен с входной шиной устройства, а выход - с управл ющим входом схемы сравнени , выход элемента ИЛИ соединен со входом триггера, другой вход которого соедкнек с uiHHOft тактовых сигналов, а выходы - через переключатель - со входом второго элемента И, другой вход которого соединен с управл ющей тиной устройства, а выход - со входом установки Е нулевое состо ние регистра результата, входы поразр дного управлени  которого подключены к выходам коад 1угатора, вход которого соединен с шино.ч тактовых сигналов, а входы установки в единичное состо ние разр дов регистра результата подключены к управл ющей шине устройства. Источники информации, прин тые во внимание при экспертизе: 1. Авторско свидетельство ССС& « 463968, кл. Q 06 Р 7/00, 1954. If in all registers 1 there are numbers less than 5e than 100 ... O, then the inequality outputs will be greater than or equal to the comparison circuit of 3 signals, therefore, trigger 8 will remain in position. Then the signal from the bus 14 passes through the open element and 13 to the inputs of setting the result register 2 to the zero state. The first bit of the result register 2 returns to the O position through the prepared circuit (at the first input of the bit control). Thus, if all registers 1 will have numbers smaller than 100 ... O, then by the end of the first one, the same work in the first (senior) discharge register of result 2 will be written O. A second clock signal is then supplied to bus 12, and the operation of the device is repeated. By the end of the second cycle of operation, the second register de register 2 will be recorded if at least one of the registers 1 finds a number greater than or equal to the number formed in the result register 2 for two operation cycles. Otherwise, the result will be recorded in the second discharge register. After the termination of p clocks in the register of result 2, a number equal to the maximum value of the number stored in one of the registers 1 will be formed. In (n + 1) clock cycle the switch 15 is transferred by bus 12 to the (rt + l) position in order not to change the contents of register 2. The bus 10 goes to the bus 10, the prohibitory nodes 9 go to work, the signals from the other buses (4,14,16) are received in the same way as in the previous cycles. The signal on bus 16 will not cause any changes in the result register 2, since switch 15 is transferred to the (t7 + l position). The signal on bus 4 will pass to the control inputs of all comparison circuits 3, but only of the comparison circuit 3, where the register 1 belonging to it contains the maximum number equal to the format in result register 2. The output from the equality output of the corresponding comparison circuit 3 goes to the control input of the prohibition node 9 belonging to this comparison circuit 3. The prohibition node 9 translates intothe closed state and the AND 5 element are closed at the second input. Thus, in the future, the signal from bus 4 will no longer pass to this comparison circuit 3, which means register 1, where the maximum number already found is found, in further work will not be accepted. After that, the result of the result register 2 is selected (maximum number), and it is reset to the initial (zero) state. Then another clock signal is sent to the bar 12, and the device starts searching for the maximum number of the remaining numbers (without chose data). The operation of the device is repeated cyclically until all numbers in registers 1 are sorted in order of decreasing. To sort the numbers in order of increasing, switch 6 is moved to another position. The operation of the device is similar to the previously described one, only now each time the selection of the minimum number from the remaining numbers will be carried out. At the same time, in the next discharge of register 2, it will be saved if in this operation cycle the numbers in all non-excluded registers 1 will be greater than or equal to the number formed in register 2 for the past operation cycles (including this one). In the opposite case, in this register de register 2, the next minimum number will be selected from register 2, on the (n + 1) clock cycle, and the corresponding register 1 will be excluded from further work with the help of prohibition node 9 belonging to this register 1 The device has a high speed, since for sorting the number of rj-digits it is required "1 (r1-i) cycles of operation, while for the known devices it is necessary 2-cycles. Apparatus of the Invention A device for sorting n n-bit numbers containing more than n registers, outputs each of which are connected to the inputs of the comparison circuits, the other inputs of which are connected to the outputs of the result register, the output buses of the comparison circuits are connected via switches from the input element OR, elements AND, the trigger, the inhibit nodes, are different in that, in order to increase the speed, the equality output of each of the comparison circuits is connected to the control input of the corresponding inhibit node, the other inputs of which are connected to the device control buses and the output to one of the inputs of the first element AND, the other input of which is connected to the input bus of the device, and the output to the control input of the comparison circuit, the output of the OR element is connected to the trigger input, the other input of which connects with the uiHHOft clock signals, and the outputs, through a switch, to the input of the second element I, the other input of which is connected to the control bus of the device, and the output to the installation input E of the zero register of the result, the inputs of the bit control of which are connected to the output Coad 1ugatora, whose input is connected to shino.ch clock signals, and inputs a setting state of the single bit result register rows are connected to the bus control device. Sources of information taken into account in the examination: 1. Certificate of authorship of CCC and &; "463968, class Q 06 P 7/00, 1954. 2.Авторское свидетельство СССР 263277, кл.СчОб Р 7/00, 1956.2. Authors certificate of the USSR 263277, kl.SchOb R 7/00, 1956. ;;
SU762327153A 1976-02-23 1976-02-23 Mn-digit number sorting arrangement SU637810A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU762327153A SU637810A1 (en) 1976-02-23 1976-02-23 Mn-digit number sorting arrangement

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU762327153A SU637810A1 (en) 1976-02-23 1976-02-23 Mn-digit number sorting arrangement

Publications (1)

Publication Number Publication Date
SU637810A1 true SU637810A1 (en) 1978-12-15

Family

ID=20649785

Family Applications (1)

Application Number Title Priority Date Filing Date
SU762327153A SU637810A1 (en) 1976-02-23 1976-02-23 Mn-digit number sorting arrangement

Country Status (1)

Country Link
SU (1) SU637810A1 (en)

Similar Documents

Publication Publication Date Title
KR910003486A (en) Bit order switch
SU637810A1 (en) Mn-digit number sorting arrangement
SU1223222A1 (en) Device for sorting numbers
SU620976A1 (en) Arrangement for comparing n binary numbers
SU840884A1 (en) Maximum number determining device
SU798810A1 (en) Device for comparing code weights
SU425357A1 (en) DEVICE FOR RESEARCH OF RELIABILITY OF LOGICAL ELEMENTS
SU798811A1 (en) Device for comparing n binary numbers
SU873236A1 (en) Device for comparing numbers
SU1649533A1 (en) Numbers sorting device
SU534759A1 (en) Device for displaying information
SU1030797A1 (en) Device for sorting mn-digit numbers
SU646325A1 (en) Information exchange arrangement
SU840888A1 (en) Device for comparing n binary numbers
SU1656517A1 (en) Data input device
SU729586A1 (en) Number comparing arrangement
SU790304A1 (en) Switching device
SU826339A1 (en) Number sorting device
SU622082A1 (en) Programme arrangement
SU696442A1 (en) Local extremum determining device
SU1633529A1 (en) Device for majority sampling of asynchronous signals
SU444190A1 (en) Apparatus for calculating ordered selection functions
SU839060A1 (en) Redundancy logic device
SU1037246A1 (en) Number sorting device
SU853814A1 (en) Device for monitoring pulse distributor