SU1211718A1 - Device for sorting numbers - Google Patents

Device for sorting numbers Download PDF

Info

Publication number
SU1211718A1
SU1211718A1 SU843767701A SU3767701A SU1211718A1 SU 1211718 A1 SU1211718 A1 SU 1211718A1 SU 843767701 A SU843767701 A SU 843767701A SU 3767701 A SU3767701 A SU 3767701A SU 1211718 A1 SU1211718 A1 SU 1211718A1
Authority
SU
USSR - Soviet Union
Prior art keywords
inputs
elements
outputs
output
input
Prior art date
Application number
SU843767701A
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 SU843767701A priority Critical patent/SU1211718A1/en
Application granted granted Critical
Publication of SU1211718A1 publication Critical patent/SU1211718A1/en

Links

Landscapes

  • Complex Calculations (AREA)

Description

Изобретение относитс  к автоматике и вычислительной технике и моет найти применение в специализированных вьгаислительных машинах и: устройствах обработки данных.The invention relates to automation and computing and can be used in specialized output machines and: data processing devices.

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

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

Устройство содержит ч регистров 1, п дешифраторов 2, № элементов ИЛИ 3, (1-1) элементов запрета 45 шифратор 5, п схем 6 сравнени , h элементов И 7, регистр 8 результата , cyMMatop 9, элемент 10 задержки , элемент И-НЕ 11, группы выходных элементов И 12 и 13, входы 14 сортируе 5ых чисел устройства, . входы 15 задани  начального адреса устройства, выход 16 конца сортировки , выходы 17 отсортированного числа, тактовый вход 18 и выход 19 адреса устройства.The device contains h registers 1, p decoders 2, the number of elements OR 3, (1-1) prohibition elements 45 encoder 5, n comparison circuits 6, h elements AND 7, result register 8, cyMMatop 9, delay element 10, and element I- NOT 11, groups of output elements And 12 and 13, inputs 14 sorting 5th numbers of the device,. inputs 15 specify the initial address of the device, output 16 of the end of sorting, outputs 17 of the sorted number, clock input 18 and output 19 of the device address.

Рассмотрим принтдипы построени  и работу устройства.Consider the printable build and operation of the device.

Исходное состо ние устройства характеризуетс  тем, что в .регистры 1 по входам 14 принимаетс  массив исходных чисел, а в сумматор 9- код пам ти, начина  с которого необходимо разместить отсортированный массив чисел,The initial state of the device is characterized by the fact that in registers 1, inputs 14 accept an array of initial numbers, and in adder 9 a memory code, beginning with which it is necessary to place a sorted array of numbers

Исходные числа преобразуютс  дешифраторами 2, выходные сигналы с одноименных выходов которых объедин ютс  соответствующими элементами шш 3,, :The initial numbers are converted by decoders 2, the output signals from the same outputs of which are combined by the corresponding elements of sh 3,:

Пусть массив чисел имеат следующий вид: о , 4, 02 5, 05 . .Let an array of numbers have the following form: o, 4, 02 5, 05. .

При этих исходньпх данных работа дешифраторов 2 и элементов ШШ 3 по сн етс  таблицей 1.With these initial data, the operation of the decoders 2 and the elements of SH 3 is explained in Table 1.

Из таблицы видно, что номер вы ходов дешифраторов, а следовательно и номер элемента ИЛИ 3 однозначно - соответствуют значению числа, а выходные единичные сигналы элементов ШШ 3 размещены в пор дке возрастани  значени  чисел. Кроме того, при равных двоичных кодах в массивеThe table shows that the number of outputs of the decoders, and therefore the number of the element OR 3 uniquely, correspond to the value of the number, and the output single signals of the elements of ШШ 3 are arranged in order of increasing values of the numbers. In addition, with equal binary codes in the array

чисел (а, , 0 ) единичные сигналы формируютс .соответствующими элементами ИЛИ 34 и 3 Таким образом, упор доченныйnumbers (a,, 0) single signals are formed by the corresponding elements OR 34 and 3. Thus, the ordered

массив должен иметь вид: Ь,1, 3, 4, , причем эти числа необходш-jo разместить в выделеннойThe array should have the following form: b, 1, 3, 4, and these numbers should be placed in the selected

21171822117182

: области пам ти, код начального ад- .реса которого А„д прин т в сумматор 9.: memory areas, the code of the initial adres. of which is A д d is taken into the adder 9.

Позиционньй код выходных сигналов элементов ИЛИ 3 10111 подаетс  на элементы запрета 4, включенные по приоритетной схеме. Так, еди- ничньй сигнал с выхода элементаThe positional code of the output signals of the elements OR 3 10111 is applied to the elements of prohibition 4, included in the priority scheme. So, a single signal from the output element

д ;ИЛИ 3,закрывает по инверсным входам все последующие элементы запрета . При этом на входе шифратора 5 формируетс  позиционный код 10000. Шифратором 5 этот код преоб .е разуетс  в двоичный 001, принимае мьй в регистр 8 результата. Кроме того, в схеме 6 сравнени  происходит совпадение кодов, единичный- сигнал с выхода которой поступаетd; OR 3, closes on the inverse entrances all subsequent elements of the ban. In this case, a position code 10000 is formed at the input of the encoder 5. The encoder 5 converts this code to binary 001, which is received in result register 8. In addition, in the comparison circuit 6, the codes coincide, a single signal from the output of which enters

2Q на первый вход элемента И 7у. На выходе элемента И-НЕ 11 единичньй сигнал отсутствует, поэтому из ЭВМ по входу 18 поступает тактовый импульс . По этому импульсу адрес2Q at the first input element And 7y. At the output of the element AND NOT 11, the unit signal is absent, therefore, a clock pulse is received from the computer at input 18. By this impulse address

25 сумматора 9 через группу элементов И 13 поступает на выходы 19, а двоичный код первого числа из регистра 8 результата через группу элементов И 12 вьщаетс  на выходы 17. Через некоторое врем , определ емое задержкой в элементе 10 задержки, в сумматоре 9. формируетс  очередной адрес 25 adder 9 through the group of elements And 13 enters the outputs 19, and the binary code of the first number from the register 8 of the result through the group of elements And 12 goes to the outputs 17. After some time, determined by the delay in the delay element 10, in the adder 9. the next address

30thirty

4545

и устанавливаетс  в О регистр 1у, чем исключаетс  из анализа число Яд, 5 Врем  задержки выбираетс  исход  из необходимого времени приема в ЭВМ адреса и значени  чисел с вы- ; ходов 17 и 19.and set in O register 1y, which excludes from the analysis the number of poison, 5 Delay time is selected based on the required time of reception in the computer address and the value of numbers with you; moves 17 and 19.

После установки в О регистра IjHa выходах элементов ИЛИ 3 формируетс  очередной позиционный код 00111, а на входе шифратора 5 - код 00100-. При этом в регистр 8 результата принимаетс  двоичньй код 011, а в схеме 65 сравнени  формируетс  единичный сигнал. По очередному тактовому импульсу с входа 18 значени  числа 011 и кодAfter setting in О the register IjHa outputs of the elements OR 3, the next position code 00111 is formed, and the code 00100- at the input of the encoder 5. In this case, a binary code 011 is received in the result register 8, and a single signal is generated in the comparison circuit 65. On the next clock pulse from the input 18, the values of the number 011 and the code

адреса А,, поступают в ЭВМ, а в устройстве регистр 1 устанавливаетс  в О и в сумматоре 9 формируетс  очередной адрес Р,,. При этом на выходах элементов ИЛИ 3 форми55 руетс  ПОЗИЦИОННЬЙ код 00010, а на выходе шифратора 5 - двоичньй код 100. В схемах 6, и 6 сравнени  происходит совпадение кодов. the addresses A ,, are fed into the computer, and in the device the register 1 is set to O and the next address P ,, is formed in the adder 9. At the same time, at the outputs of the elements OR 3, a POSITION code 00010 is running for 55, and a binary code 100 for the output of the encoder 5. In codes 6, and 6 for comparison, the codes coincide.

По очередному импульсу по входу 18 значение числа 100   код адреса АЗ поступают в ЭВМ, регистры 1 И Ц устанавливаютс  в О, а в сумматоре 9 формируетс  адрес очередного числа , По следующему тактовому импульсу происходит запись числа 101 по адресу А4 а в устройстве - установка в О регистровOn the next pulse at input 18, the value of the number 100 is the code of the address of the AZ, entered into the computer, registers 1 and D are set to O, and in the adder 9 the address of the next number is formed. By the next clock pulse, the number 101 is written to the address A4 and the device is set to About registers

и 1,. При этом все регистры 1and 1 ,. In this case, all registers 1

2 62 6

оказьтаютс  в нулевом состо нии, и на выходе элемента И-НЕ 11 формируетс  единичный сигнал, поступакнций в ЭВМ в качестве сигнала конца сортировки.turns out to be in the zero state, and a single signal is generated at the output of the NANDI element 11, which arrives at the computer as a signal of the end of sorting.

Таким образом, массив из шести чисел- отсортирован на четыре тактовых сигнала.Thus, an array of six numbers is sorted into four clock signals.

Claims (1)

УСТРОЙСТВО ДЛЯ СОРТИРОВКИ ЧИСЕЛ, содержащее и регистров, tt элементов И, где h число сортируемых чисел, и схем сравнения, (п-1) элементов запрета, регистр результата, две группы выходных элементов И, сумматор, первая группа входов которого соединена с входами задания начального адреса устройства, а выходы соединены с информационными входами выходных элементов И первой группы, 'выходы которых являются выходами адреса устройства, выходы регистра результата соединены с информационными входами выходных элементов И второй группы, выходы которых являются выходами отсортированного числа устройства, управляющие входы выходных элементов И первой и второй групп подключены к тактовому входу устройства, входы сортируемых чисел устройства соединены с информационными входами соответствующих регистров, выходы которых соединены с первыми группами входов соответствующих схем сравнения, ? -е инверсные входы элементов запрета с 8 -го по (п-1)-й объединены (Е =1,2,...,0-1), о т личающееся тем, что, с целью повышения быстродействия, в него введены (tn-и) элементов запрета, И дешифраторов, tn элементов ИЛИ, где ttt =2 h , (m-1) элементов запрета, элемент задержки, шифратор и элемент И-НЕ, выход которого является выходом'конца сортировки устройства, а входы подключены к выходам шифратора, входам регистра результата и вторым группам входов всех схем сравнения, выходы схем сравнения соединены с первыми входами соответствующих элементов И, выходы которых подключены к входам установки в нулевое состояние соответствующих регистров, выходы которых дополнительно подключены к входам соответствующих дешифраторов, i -й выход j -го дешифратора, где i =1,2.....DEVICE FOR SORTING NUMBERS, containing both registers, tt AND elements, where h is the number of sortable numbers, and comparison schemes, (n-1) inhibit elements, a result register, two groups of output AND elements, an adder, the first group of inputs of which are connected to the inputs of the task the initial address of the device, and the outputs are connected to the information inputs of the output elements of the first group, the outputs of which are the outputs of the device address, the outputs of the result register are connected to the information inputs of the output elements of the second group, the outputs of which are the outputs of the sorted number of the device, the control inputs of the output elements And the first and second groups are connected to the clock input of the device, the inputs of the sorted numbers of the device are connected to the information inputs of the corresponding registers, the outputs of which are connected to the first groups of inputs of the corresponding comparison circuits,? the inverse inputs of the prohibition elements from the 8th to the (n-1) th are combined (E = 1,2, ..., 0-1), which is characterized by the fact that, in order to increase the speed, they are introduced into it (tn-i) elements of prohibition, And decoders, tn elements of OR, where ttt = 2 h , (m-1) elements of prohibition, delay element, encoder and AND-NOT element, the output of which is the output of the end of the device’s sorting, and the inputs connected to the outputs of the encoder, the inputs of the result register and the second groups of inputs of all comparison circuits, the outputs of the comparison circuits are connected to the first inputs of the corresponding AND elements, the outputs of which connected to the installation inputs to the zero state of the corresponding registers, the outputs of which are additionally connected to the inputs of the corresponding decoders, the i-th output of the j-th decoder, where i = 1,2 ..... tn; j =1,2,...,η, соединены c j -м входом ί -го элемента ИЛИ, выход первого элемента ИЛИ соединен с первым входом шифратора и. первыми инверсными входами элементов запрета, выход к -го элемента ИЛИ, где к =2,3,...,m , подключен к прямому входу (к-1)-го элемента запрета и к £ -му инверсному входу к -го элемента запрета, выход р -го элемента запрета,где р =1,2,...,(ш-1), соединен с (р+1)-м входом шифратора, тактовый вход устройства через элемент задержки подключен к вторым входам всех элементов И.tn; j = 1,2, ..., η, are connected to the jth input of the ίth OR element, the output of the first OR element is connected to the first input of the encoder and. the first inverse inputs of the inhibit elements, the output to the ith element OR, where k = 2,3, ..., m, is connected to the direct input of the (k-1) th inhibit element and to the ith inverse input of the kth element prohibition, the output of the pth prohibition element, where p = 1,2, ..., (sh-1), is connected to the (p + 1) th input of the encoder, the device’s clock input is connected to the second inputs of all elements through a delay element AND. 1 . 11 . 1
SU843767701A 1984-07-13 1984-07-13 Device for sorting numbers SU1211718A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU843767701A SU1211718A1 (en) 1984-07-13 1984-07-13 Device for sorting numbers

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU843767701A SU1211718A1 (en) 1984-07-13 1984-07-13 Device for sorting numbers

Publications (1)

Publication Number Publication Date
SU1211718A1 true SU1211718A1 (en) 1986-02-15

Family

ID=21129485

Family Applications (1)

Application Number Title Priority Date Filing Date
SU843767701A SU1211718A1 (en) 1984-07-13 1984-07-13 Device for sorting numbers

Country Status (1)

Country Link
SU (1) SU1211718A1 (en)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Авторское свидетельство СССР № 928342, кл. G 06 F 7/06, 1980. Авторское свидетельство СССР № 1092494, кл. Q 06 F 7/06, 1982. *

Similar Documents

Publication Publication Date Title
SU1211718A1 (en) Device for sorting numbers
US5410312A (en) Digital/analog conversion device with two switched latches for simultaneous D/A conversion
SU1444749A1 (en) Device for sorting numbers
SU1218381A1 (en) Device for selecting order data sequence
SU1236560A1 (en) Storage
SU1691833A1 (en) Apparatus for sorting numbers
SU1242949A1 (en) Priority device for servicing interrogations in arrival order
SU1092494A2 (en) Device for sorting numbers
SU1030797A1 (en) Device for sorting mn-digit numbers
SU943707A1 (en) Device for sorting numbers
SU1254467A1 (en) Device for sorting numbers
SU1583934A1 (en) Device for sorting numbers
SU1053100A1 (en) Device for determining average value of odd set of of number
SU792248A1 (en) Number sorting apparatus
SU1325461A1 (en) Device for sorting numbers
SU1179316A1 (en) Device for selecting extreme number from n m-bit binary numbers
SU1444748A1 (en) Device for comparing numbers
SU1730618A1 (en) Number sorting device
SU1387004A2 (en) N-sensors-to-computer interface
SU1444744A1 (en) Programmable device for computing logical functions
SU1128249A2 (en) Device for selecting extremum number
SU1215108A1 (en) Device for determining the least number of n numbers
SU1305659A1 (en) Device for sorting numbers
SU1300642A1 (en) Code converter
SU830394A1 (en) Device for processing digital data