SU1310803A1 - Device for storing numbers - Google Patents

Device for storing numbers Download PDF

Info

Publication number
SU1310803A1
SU1310803A1 SU864009724A SU4009724A SU1310803A1 SU 1310803 A1 SU1310803 A1 SU 1310803A1 SU 864009724 A SU864009724 A SU 864009724A SU 4009724 A SU4009724 A SU 4009724A SU 1310803 A1 SU1310803 A1 SU 1310803A1
Authority
SU
USSR - Soviet Union
Prior art keywords
output
inputs
input
numbers
node
Prior art date
Application number
SU864009724A
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 SU864009724A priority Critical patent/SU1310803A1/en
Application granted granted Critical
Publication of SU1310803A1 publication Critical patent/SU1310803A1/en

Links

Abstract

Изобретение относитс  к автоматике и вычислительной технике и может быть использовано в устройствах дл  сортировки чисел. Цель изобретени  - повышение быстродействи  работы устройства. Устройство содержит группу регистров 6 - 6, схемы сравнени  7 триггеры 1 - 1р,группы 4 - 41 элементов И, два счетчика 8, 9, регистр 5 результата, распределитель импульсов, выполненный в виде узла 2 выделени  старшел единицы , формирователь адреса, выполненный на схеме посто нного запоминающего устройства 12, группу дополнительных регистров Ю - 10. В каждом такте производитс  сортировка сразу всех чисел массива, имеющих одинаковые значени , что позвол ет увеличить быстродействие устройства, формирование отсортированного массива в дополнительных регистрах позвол ет сохранить после сортировки исходный массив. I з.п. ф-лы, 1 табл., 2 ил. /J (О (Л Г4 00 о СХ5 о со (риг.1The invention relates to automation and computing and can be used in devices for sorting numbers. The purpose of the invention is to increase the speed of the device. The device contains a group of registers 6 - 6, comparison circuits 7 triggers 1 - 1p, groups 4 - 41 elements AND, two counters 8, 9, result register 5, pulse distributor, made in the form of a selection unit 2 starlos units, address generator, performed on the scheme of the permanent storage device 12, a group of additional registers Yu - 10. At each clock cycle, all the numbers of the array that have the same values are sorted at once, which allows to increase the speed of the device, the formation of a sorted array in addition These registers allow you to save the original array after sorting. I zp f-crystals, 1 tab., 2 ill. / J (O (L G4 00 o CX5 o co (rig 1

Description

11eleven

Изобретение относитс  к автоматике и вычислительной технике, а точнее к устройствам дл  сортировки чисел , и предназначено дл  упор дочени  произвольных массивов чисел в системах обработки данных.The invention relates to automation and computing, and more specifically to devices for sorting numbers, and is intended to order arbitrary arrays of numbers in data processing systems.

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

Сущность изобретени  заключаетс  в использовании дополнительных регистров , посто нного запоминающего устройства и быстродействующего узла выделени  старшей единицы, причем в каждом такте производитс  сортировка Сразу всех чисел массива, имеющих одинаковые значени , вследствие чего длительность сортировки равна k тактам , где k - количество различных значений чисел в сортируемом массиве а процесс формировани  сигналов на выходе посто нного запоминающего устройства , разрещающих запись анализируемого числа в соответствующие дополнительные регистры, предназначенные дл  хранени  отсортированного массива, и процесс выдачи под управлением узла выделени  старшей единицы следующего числа, подлежащего анализу , на информационные входы регистра результата совмещены во времени, что позвол ет повысить быстродействие устройства. Кроме того, формирование отсортированного массива в дополнительных регистрах исключает не- обходимость мен ть местами числа исходного массива в процессе сортировки и сохран ет после сортировки исходный массив, предоставл   возможность контрол  отсортированного массива , что позвол ет повысить надежность работы устройства так же, как :и исключение из него большого числа элементов задержки.The invention consists in the use of additional registers, a persistent storage device and a high-speed allocation node of the higher unit, each sort being sorted. Immediately all array numbers having the same values, resulting in the sorting duration equal to k cycles, where k is the number of different values of numbers in sorted array and the process of forming signals at the output of a permanent storage device, allowing the recording of the analyzed number in the corresponding The information registers intended for storing the sorted array, and the process of issuing, under the control of the allocation node, the highest unit of the next number to be analyzed, to the information inputs of the result register are aligned in time, which improves the speed of the device. In addition, the formation of a sorted array in additional registers eliminates the need to swap the numbers of the original array during the sorting process and, after sorting, saves the original array, providing the ability to control the sorted array, which improves the reliability of the device, as well as: from it a large number of delay elements.

На фиг.1 изображена структурна  схема устройства дл  сортировки чисел; на фиг.2 - схема узла выделени  старшей единицы.1 shows a block diagram of a device for sorting numbers; Fig. 2 is a schematic of the allocation node of the higher unit.

Устройство содержит (см.фиг.1) триггеры Ц п узел 2 выделени  старшей единицы, элемент ИЛИ 3,группы 4 4 элементов И, регистр 5 результата, регистры 6 б,,, схемы 7 - 7 сравнени , счетчики 8 и 9, дополнительные регистры 10 - 10, элемент И 11, посто нное запоминающее устройство 12, вход 13 тактовых импульсов устройства и выход Конец сортировки 14 устройства.The device contains (see Fig. 1) triggers, C p node 2, selection of the highest unit, element OR 3, groups 4 4 elements AND, result register 5, registers 6 b ,,, schemes 7 - 7 comparisons, counters 8 and 9, additional registers 10 - 10, element 11, fixed memory 12, input 13 clock pulses of the device and output End sorting 14 of the device.

032032

Узел 2 выделени  старшей единицы содержит (см.фиг.2) элементы ИЛИ-НЕ 15, - 15jj, , элементы И 16 i - , входы 17 - 17„ , подгруппы 18 - 18The node 2 of the selection of the senior unit contains (see Fig.2) the elements OR-NOT 15, -15jj, the elements AND 16 i -, the inputs 17-17, the subgroups 18-18

входов 17 и выходы 9 - 19,.inputs 17 and outputs 9 - 19 ,.

Каждый из п триггеров 1 представл ет собой Т,-триггер (т.е. синхронный Т-триггер с внутренней задержкой ) , срабатывающий по отрицательному перепаду напр жени  на входе синхронизации: единица на информационном входе Т при этом вызывает переход триггера в противоположное состо ние , при нуле на входе Т состо ние триггера не мен етс . Триггеры 1 предназначены дл  осведомлени  о тех . числах массива,которые ещё не участвовали в процессе сортировки, и перед началом сортировки устанавливаютс  в единичное состо ние подачей сигнала на вход S (не доказано).,Each of the n flip-flops 1 is a T, -Trigger (i.e., a synchronous T-flip-flop with an internal delay) triggered by a negative voltage drop at the synchronization input: the unit at the information input T in this case causes a flip-flop to the opposite state When zero at input T, the state of the trigger does not change. Triggers 1 are meant to inform those. the numbers of the array that have not yet participated in the sorting process, and before the start of sorting, are set to one by supplying a signal to input S (not proven).,

Уз.ел 2 выделени  старшей единицы служит дл  быстрого выделени  единич- ного сигнала, присутствующего на выходе триггера 1 с наименьшим номером, и блокировки единичных сигналов, поступающих с выходов всех остальных триггеров 1. При максимальном быстродействии (длительность срабатывани  узла складываетс  из длительностей срабатывани  элемента ИЛИ-НЕ и элемента И) така  организаци  структуры св зей между входами 17 узла, элементами ИЛИ-НЕ 15 и элементами И 16 узла обеспечивает минимальные затраты оборудовани  при реализации узла.Элемент ЮТИ-НЕ 15 с номером К; + Wg, где S 1,2,...,R, а Wg 0,1,,..,ms-l, имеет Ws +1 входов, элемент И 16 с номером Kg+ Wg имеет S + 1 входов. Элемент ИЛИ 3 имеет п входов и предназначен дл  выработки нулевого сигнала Конец сортировки на выходе 14 устройства после анализа всех чисел массива, в результате чего запираетс  элемент И 1, что прекращает действие тактовых импульсов на устройство .The U.S. 2 highlight unit is used to quickly select a single signal present at the output of trigger 1 with the smallest number and block single signals from the outputs of all other triggers 1. At maximum speed (the node's response time is the sum of the element response times OR-NOT and the element AND) such an organization of the structure of communications between the inputs 17 of the node, the elements OR-NOT 15 and the elements AND 16 of the node provides minimal equipment costs when implementing the node. The Element TI-NO element 15 with the number R; + Wg, where S 1,2, ..., R, and Wg 0,1 ,, .., ms-l, has Ws +1 inputs, And 16 with the number Kg + Wg has S + 1 inputs. The element OR 3 has n inputs and is intended to generate a zero signal. The sorting end at the device output 14 after analyzing all the array numbers, as a result of which the AND 1 element is locked, which terminates the effect of the clock pulses on the device.

Кажда  из п групп 4 элементов И содержит m двухвходовых элементов И, где m - разр дность сортируемых чисел , и предназначена дл  подключени  выхода одноименного регистра 6 к информационному входу регистра 5 результата при наличии единичного сигнала на управл юш;их входах элементов И.Each of the n groups of 4 elements And contains m two-input elements And, where m is the size of the sorted numbers, and is intended to connect the output of the same name register 6 to the information input of the result register 5 if there is a single signal on the control; their inputs are I.

Выходы одноименных элементов И всех групп 4 объедин ютс  по схеме монтажного ИЛИ, поэтому элементы И должны быть реализованы по схеме с открытым коллектором, а еще лучше - по схеме с трем  состо ни ми.The outputs of the elements of the same name AND of all groups 4 are combined according to the installation OR scheme, therefore the elements AND must be implemented according to the scheme with an open collector, and even better according to the scheme with three states.

Регистр 5 результата состоит из m синхронных D-триггеров, срабатывающих по единичному уровню сигнала на входе синхронизации, и предназначен дл  приема очередного анализируемого числа с приходом тактового импульса на вход синхронизации, дл  хранени  этого числа в течение периода тактовых импульсов и дл  выдачи его на входы всех схем 7 сравнени  и всех дополнительных регистров 10.The result register 5 consists of m synchronous D-flip-flops triggered by a single signal level at the synchronization input, and is designed to receive the next analyzed number with the arrival of a clock pulse at the clock input, to store this number during the clock pulse period and to issue it to the inputs all the comparison circuits 7 and all the additional registers 10.

Каждый из п регистров 6 состоит из m синхронных D-триггеров, срабатывающих по уровню сигнала на входе синхронизации, и сл5;ткит дл  приема соответствующего числа, подлежащего сортировке (цепи приема не показаны) дл  хранени  этого числа и выдачи его на входы одноименной схемы 7 сравнени  и информационные входы элементов И одноименной группы 4.Each of the n registers 6 consists of m synchronous D-flip-flops triggered by the signal level at the synchronization input, and sl5; a sweep for receiving the corresponding number to be sorted (the receiving circuit is not shown) to store this number and output it to the inputs of the same-name circuit 7 Comparison and informational inputs of elements of the same group 4.

Кажда  из п схем 7 сравнени  реализуетс  стандартным образом и предназначена дл  сравнени  двух т-раз р дных чисел и формировани  на своих двух выходах сигналов Меньше и Равно.Each of the n comparison schemes 7 is implemented in the standard way and is intended for comparing two t-times of the real numbers and forming at its two outputs the signals Smaller and Equal.

Счетчик 8 служит дл  подсчета количества схем 7 сравнени , имеющих единичные сигналы на выходах Меньше и реализуетс  стандартным образом.Counter 8 is used to count the number of comparison circuits 7 that have single signals at the outputs Less and is implemented in the standard way.

Счетчик 9 предназначен дл  подсчета количества схем 7 сравнени , имеющих единичные сигналы на выходах Равно, и реализуетс  стандартным образом.The counter 9 is designed to count the number of comparison circuits 7 having single signals at the outputs of Equals, and is implemented in the standard way.

Дополнительные регистры 10 служат дл  приема и хранени  чисел отсортированного массива. Каждьш из п регистров 10 состоит из m синхронных D- триггеров, срабатывающих по уровню сигнала на входе синхронизации.Additional registers 10 are used to receive and store the numbers of the sorted array. Each of the n registers 10 consists of m synchronous D-triggers, triggered by the level of the signal at the synchronization input.

Элемент И I1 имеет 2 входа и предназначен дл  блокировки тактовых им Element And I1 has 2 inputs and is designed to block clock them

,  ,

WW

1515

2020

30thirty

пульсов, поступающих на вход 13 уст7 ройства, при формировании нулевого сигнала Конец сортировки на выходе элемента ИЛИ 3.pulses arriving at the input 13 of the device when forming the zero signal End of sorting at the output of the element OR 3.

Посто нное запоминающее устройство 12 представл ет собой стандартное ПЗУ, имеющее +2 адресных входов, где квадратные скобки обознагPermanent memory 12 is a standard ROM having +2 address inputs, where square brackets are

чают операцию выделени  целой части числа, инверсный управл ющий вход и п выходов. Выдача числа из  чейки ПЗУ с адресом, установленным на адресных входах, происходит при нулевом сигнале на управл ющем входе, т.е. после окончани  действи  очередного , тактового импульса.the operation of extracting the integer part of the number, the inverse control input, and the n outputs. The output of the number from the ROM cell with the address set on the address inputs occurs at a zero signal at the control input, i.e. after the expiration of the next, clock pulse.

Логика программировани  ПЗУ проста . Пусть выходы счетчика 9 соединены соответственно с младшими адресными входами ПЗУ, а выходы счетчика 8 - со старшими адресными входами ПЗУ, т.е. полный адрес А, поступающий на ПЗУ, в старшей половине раз- р, р дов AI несет информацию р количестве чисел в массиве, которые меньше анализируемого числа, а в младшей половине разр дов А - информацию о количестве чисел в массиве, равных по значению анализируемому числу. Тогда видно (сортировка массива ведетс  в пор дке возрастани  значений чисел), что анализируемое число должно занимать в- отсортированном массиве (А,+ 1)-е место, а последующие Ag- 1 мест должны занимать числа,равные по значению анализируемому (в число AJ входит единица, которую дает анализ1 руемое число), т.е. ана- лизируемое число должно быть записано во все дополнительные регистры 10, имеющие номера с (А + 1)-го по (А +The programming logic of the ROM is simple. Let the outputs of the counter 9 are connected respectively with the lower address inputs of the ROM, and the outputs of the counter 8 with the higher address inputs of the ROM, i.e. the full address A, arriving at the ROM, in the older half of the section, series of AI carries information p the number of numbers in the array that are less than the analyzed number, and in the younger half of the digits A - information about the number of numbers in the array equal in value to the analyzed number. Then it can be seen (the array is sorted in order of increasing values of numbers) that the analyzed number should occupy an in-sorted array (A, +1) -th place, and the subsequent Ag-1 places should be occupied by numbers equal in value to the analyzed one (to AJ includes the unit that the analyzed number gives), i.e. The number to be analyzed should be written in all additional registers 10 that have numbers from (A + 1) to (A +

- ТЭТУ rrtrtTTTTrri l г- TETU rrtrtTTTTrri l g

3535

4040

4545

+ включительно, а следовательно , в  чейку ПЗУ, имеющую адрес А, равный , необходимо записать единицы во все разр ды с (А + 1)-го по (А + А2)-й включительно. Так, например , дл  случа , когда п равно трем+ inclusive, and consequently, in the ROM cell with the address A equal to, it is necessary to record the units in all digits from (A + 1) -th to (A + A2) -th, inclusive. So, for example, for the case when n is equal to three

и адреса Аand addresses A

-f-f

А,BUT,

двухразр дные,two-digit,

соответственно имеем следующую таблицу программировани  ПЗУ:accordingly, we have the following ROM programming table:

1-й разр д 01 1 1000000000000 2-й разр д 0011011000000000 3-й разр д 00010010010000001st bit 01 1 1000000000000 2nd bit 0011011000000000 3rd bit d 0001001001000000

Из 16 адресуемых  чеек ПЗУ информаци  заноситс  только в 6, что ускор ет и облегчает программирование ПЗУ. Объ сн етс  это тем, что многие адресные комбинации не  вл ютс  рабочими, т.е. при работе устройства эти комбинации счетчиками 8 и 9 не формируютс . К нерабочим относ тс  те адреса, которые соответствуют А2., равному нулю (так как в массиве в сегда есть хот  бы одно число, равное анализируемому), а также те адреса , которые дают сумму А + А2, большую п.Of the 16 addressable ROMs, the information is entered only in 6, which speeds up and facilitates the programming of the ROM. This is explained by the fact that many address combinations are not working, i.e. during operation of the device, these combinations of counters 8 and 9 are not formed. Non-working addresses are those that correspond to A2., Equal to zero (since there is at least one number in the array always equal to the one being analyzed), as well as those addresses that give the sum А + А2, greater than n.

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

Перед началом работы триггеры I устанавливаютс  в единичное состо ние , а в регистры 6 занос тс  сортируемые числа, после чего устройство готово к сортировке чисел в пор дке возрастани .Before the start of operation, the triggers I are set to one state, and the registers 6 are added to the sortable numbers, after which the device is ready to sort the numbers in ascending order.

При подаче первого тактового импульса на вход 13 устройства он через элемент И 11, открытьш единичным сигналом с выхода элемента ИЛИ 3, проходит на управл ющий вход регистра -5 результата, разреша  запись в регистр 5 числа, поступившего с выхода верхнего регистра 6 через группу 4 элементов И, открытых единичным сигналом с верхнего (первого) выхода узла 2 в то врем , как на всех остальных выходах узла 2 будут нулевые сигналы, формируемые соответствующими элементами ИЛИ-НЕ 15, И 16 узла 2 под воздействием старшей единицы на верхнем (первом) входе узла. Записанное в регистр 5 анализируемое число сравниваетс  со всеми сортируемыми числами в схемах 7 сравнени . Счет0When the first clock pulse is applied to the input 13 of the device, it goes through the element 11, open a single signal from the output of the element OR 3, passes to the control input of the result register -5, allowing the register in register 5 of the number received from the output of the upper register 6 And elements opened with a single signal from the top (first) output of node 2, while all other outputs of node 2 will have zero signals generated by the corresponding OR-NOT 15 and AND 16 elements of node 2 under the influence of the highest unit on the top (first) inlet node . The analyzed number recorded in register 5 is compared with all the sorted numbers in comparison circuits 7. Score0

5five

00

5five

00

5five

00

5five

чик 8 подсчитывает количество схем сравнени , имеющих единичные сигналы на выходах Меньше, показывающие, что числа в соответствующих регистрах 6 меньше анализируемого числа, а счетчик 9 подсчитьшает количество схем сравнени , выдающих единичные сигналы на выходах Равно. Двоичные коды с выходов счетчиков 8 и 9 поступают соответственно на старшие и младшие адресные входы посто нного запоминающего устройства (ПЗУ) 12. В каждой  чейке ПЗУ, ш еющей рабочий адрес, записаны единицы во все разр ды с (г+)-го по (г+1)-й включительно , где г равно значению двоичного числа, соответствующего старшей половине адреса, а 1 равно значению двоичного числа, соответствующего младшей половине адреса, причем разр дность адреса равна 2(1о§2п}+2, где квадратные скобки обозначают операцию выделени  целевой части числа. Например , при л, равном 15, разр дность адреса ПЗУ равна 8, а в  чейку ПЗУ с адресом 00110100 записываютс  единицы во все разр ды с четвертого по седьмой включительно (, ).Большинство адресов ПЗУ  вл ютс  нерабочими , т.е. в процессе работы устройства на адресных входах ПЗУ формироватьс  не могут, что ускор ет и облегчает запись информации в ПЗУ.Chick 8 counts the number of comparison circuits that have single signals at the outputs Smaller, indicating that the numbers in the corresponding registers 6 are less than the number being analyzed, and counter 9 calculates the number of comparison circuits that produce single signals at the outputs Equals. Binary codes from the outputs of counters 8 and 9 are received respectively at the senior and junior address inputs of the permanent storage device (ROM) 12. Each cell of the ROM that has the working address contains units for all digits from (r +) - th to ( r + 1) is inclusive, where r is equal to the value of the binary number corresponding to the upper half of the address, and 1 is equal to the value of the binary number corresponding to the younger half of the address, and the address width is 2 (ο§2п} +2, where the square brackets denote the operation of extracting the target part of the number. For example, for l, equal to 15, the size of the ROM address is 8, and the ROM cell with address 00110100 records units in all bits from the fourth to the seventh inclusive (,). Most of the ROM addresses are idle, i.e. during device operation at the address inputs ROMs cannot be formed, which speeds up and facilitates the recording of information in ROM.

По заднему фронту тактового импульса начинаютс  два параллельно протекающих процесса: процесс формировани  на выходе ПЗУ единичных сигналов, разрешающих запись анализируемого числа в соответствующие дополнительные регистры 10, и процесс сброса соответствующих триггеров 1On the trailing edge of the clock pulse, two processes proceeding in parallel begin: the process of forming at the output of a ROM of single signals that allow writing the analyzed number to the corresponding additional registers 10, and the process of resetting the corresponding triggers 1

7131080371310803

и выдачи под управлением узла 2 следующего числа, подлежащего анализу, на информационные входы регистра 5. Первый процесс начинаетс  под воздействием нулевого разрешающего сигнала на управл ющем входе ПЗУ и заканчиваетс  фиксацией в соответствующих регистрах 10 анализируемого числа, поступающего с выходов регистра 5.and issuing, under the control of node 2, the next number to be analyzed to the information inputs of register 5. The first process starts under the influence of the zero enable signal at the control input of the ROM and ends with fixation in the corresponding registers 10 of the analyzed number coming from the outputs of the register 5.

8eight

Дальнейща  работа устройства анат логична рассмотренной.Further operation of the device anat is logical considered.

После того, как устройство отработает k тактов, где k - количество различных значений чисел в сортируемом массиве, в регистрах 10, начина  с первого, сформируетс  отсортированный в пор дке возрастани  мас сив чисел, причем после сброса в k-мAfter the device has completed k cycles, where k is the number of different values of the numbers in the sorting array, in registers 10, starting with the first, the array of numbers sorted in order of increasing will be formed, and after the reset in the kth

f5f5

Второй процесс начинаетс  со срабаты- 0 такте последних триггеров 1 на вы- вани  (по отрицательному перепаду на ходе элемента ИЛИ 3 сформируетс  ну- управл ющих входах) тех триггеров 1, на информационных (счетных) входах которых действуют единичные сигналы с выходов Равно соответствующих схем 7 сравнени , в результате чего сбрасываютс  в нулевое состо ние триггеры 1, соответствующие отсортированным в данном такте числам. Затем -.The second process starts at the zero stroke of the last triggers 1 on the output (by the negative difference on the course of the element OR 3, the control inputs are formed) of those triggers 1, on the information (counting) inputs of which there are single signals from the outputs 7 comparisons, as a result of which the triggers 1 corresponding to the numbers sorted in a given clock cycle are reset to the zero state. Then -.

узел 2 выдел ет старшую единицу, при-20 устройства сутствующую на выходе триггера 1 с наименьшим номером, блокиру  единицы на выходах всех остальных триггеров 1 путем формировани  нулевых сигналов соответствующими элементами ИЛИ-НЕ 15 узла 2. Выделенна  узлом 2 старша  единица подключает выходы соответствующего регистра 6 через соответствующую группу 4 элементов И к ин30node 2 selects the highest unit, at-20 devices, which are present at the output of flip-flop 1 with the smallest number, block the unit at the outputs of all other flip-flops 1 by generating zero signals by the corresponding elements OR NOT 15 of the node 2. Highlighted by node 2 the highest unit connects the outputs of the corresponding register 6 through the corresponding group of 4 elements And to in30

2525

левой потенциал, поступающий на выход 14 устройства в качестве признака Конец сортировки и блокирующий подачу тактовых импульсов с входа 13 устройства путем запирани  элемента И 11.the left potential arriving at the output 14 of the device as a sign End sorting and blocking the supply of clock pulses from the input 13 of the device by locking the element 11.

Далее по внешнему запросу числа отсортированного массива вывод тс Next, by the external query, the numbers of the sorted array are output.

Дл  сортировки чисел в пор дке убывани  их значений необходимо в регистры 6 записать обратные коды чисел , а числа отсортированного массива считывать с инверсных выходов регистров 10.To sort the numbers in order of decreasing their values, it is necessary to write the return codes of numbers in registers 6, and read the numbers of the sorted array from the inverse outputs of registers 10.

Claims (2)

1. Устройство дл  сортировки чисел , содержащее п регистров (п - количество чисел в сортируемом массиве ) , п схем сравнени , п групп эле- 35 ментов И, п триггеров, два счетчика, регистр результата, элемент И, элемент ИЛИ, распределитель импульсов и формирователь адреса, причем выход каждого i-ro регистра, где ,2,...,п, соединен с первой группой входов i-й схемы сравнени  и с первыми входами соответствующих элементов И i-й груп пы, выходы одноименных элементов И всех групп объединены и соединены с одноименными информационными входами регистра результата, выходы которого соединены с входами второй группы каждой схемы сравнени , i-й выход ра пределител  импульсов соединен с вто рыми входами элементов И i-й группы, отличающеес  тем, что, с целью повышени  быстродействи  уст,- ройства, распределитель импульсов вьшолнен в виде узла выделени  старшей единицы, формирователь адреса вы полнен в виде посто нного запоминающего устройства в устройство введены п дополнительных регистров, при501. A device for sorting numbers, containing n registers (n is the number of numbers in the sorting array), n comparison circuits, n groups of 35 AND elements, n triggers, two counters, a result register, AND element, OR element, pulse distributor and address builder, whereby the output of each i-ro register, where, 2, ..., p, is connected to the first group of inputs of the i-th comparison circuit and to the first inputs of the corresponding elements AND the i-th group, outputs of the same name And all groups combined and connected to the informational inputs of the register of the same name the one whose outputs are connected to the inputs of the second group of each comparison circuit, the i-th output of the pulse limiter is connected to the second inputs of the elements of the I-th group, characterized in that, in order to increase the speed of the device, the pulse distributor is the form of the highlight unit of the higher unit, the address maker is made in the form of a permanent storage device, n additional registers are entered into the device, with 50 5555 8eight Дальнейща  работа устройства анат логична рассмотренной.Further operation of the device anat is logical considered. После того, как устройство отработает k тактов, где k - количество различных значений чисел в сортируемом массиве, в регистрах 10, начина  с первого, сформируетс  отсортированный в пор дке возрастани  массив чисел, причем после сброса в k-мAfter the device has completed k cycles, where k is the number of different values of numbers in the sorting array, in registers 10, starting with the first, an array of numbers sorted in order of increasing will be formed, and after resetting to the kth такте последних триггеров 1 на вы- ходе элемента ИЛИ 3 сформируетс  ну- the tact of the last triggers 1 at the output of the element OR 3 is formed такте последних триггеров 1 на вы- ходе элемента ИЛИ 3 сформируетс  ну- устройства левой потенциал, поступающий на выход 14 устройства в качестве признака Конец сортировки и блокирующий подачу тактовых импульсов с входа 13 устройства путем запирани  элемента И 11.the clock cycle of the last triggers 1 at the output of the OR element 3 is formed by the left-potential device, which arrives at the device output 14 as a sign of the Sorting end and blocks the clock pulses from the device input 13 by locking the AND 11 element. Далее по внешнему запросу числа отсортированного массива вывод тс Next, by the external query, the numbers of the sorted array are output. устройства  devices Дл  сортировки чисел в пор дке убывани  их значений необходимо в регистры 6 записать обратные коды чисел , а числа отсортированного массива считывать с инверсных выходов регистров 10.To sort the numbers in order of decreasing their values, it is necessary to write the return codes of numbers in registers 6, and read the numbers of the sorted array from the inverse outputs of registers 10. Формула изобретени Invention Formula 1. Устройство дл  сортировки чисел , содержащее п регистров (п - количество чисел в сортируемом массиве ) , п схем сравнени , п групп эле- ментов И, п триггеров, два счетчика, регистр результата, элемент И, элемент ИЛИ, распределитель импульсов и формирователь адреса, причем выход каждого i-ro регистра, где ,2,...,п, соединен с первой группой входов i-й схемы сравнени  и с первыми входами соответствующих элементов И i-й группы , выходы одноименных элементов И всех групп объединены и соединены с одноименными информационными входами регистра результата, выходы которого соединены с входами второй группы каждой схемы сравнени , i-й выход распределител  импульсов соединен с вторыми входами элементов И i-й группы, отличающеес  тем, что, с целью повышени  быстродействи  уст,- ройства, распределитель импульсов вьшолнен в виде узла выделени  старшей единицы, формирователь адреса выполнен в виде посто нного запоминающего устройства в устройство введены п дополнительных регистров, при1. A device for sorting numbers containing n registers (n is the number of numbers in the sorting array), n comparison circuits, n groups of elements AND, n triggers, two counters, result register, element AND, element OR, pulse distributor and driver addresses, and the output of each i-ro register, where, 2, ..., p, is connected to the first group of inputs of the i-th comparison circuit and with the first inputs of the corresponding elements of the i-th group, the outputs of the elements of the same name of all groups are combined and connected to the same information inputs of the register result The outputs of which are connected to the inputs of the second group of each comparison circuit, the i-th output of the pulse distributor is connected to the second inputs of elements AND of the i-th group, characterized in that, in order to increase the speed of the device, the pulse distributor is executed as a selection node the upper unit, the address driver is made in the form of a permanent storage device, n additional registers are entered into the device, with 9 13108039 1310803 выходы Меньше всех схем сравне- 2п - соединены соответственно с входапервого счетчика, а выход Равно дой схемы сравнени  соединен с инмационным входом соответствующего 5 ггера и соответствующим входом рого счетчика, выходы датчиков соеены соответственно с первой и втоS-  п т, S вOutputs Smaller than all circuits compared to 2n are connected respectively to the input of the first counter, and the output Equal to the comparison circuit is connected to the input input of the corresponding 5th meter and the corresponding input of the counter, the outputs of the sensors are connected to the first and second Ssn, S in (5 (S-P пои S S-P м вый в ницы ка/адьм соеди элеме мента едини ноиме ни  с г-го  вл е ни  с каждо НЕ узл от Kj тельн + (S-iветств послед вгз1деле + Шд (Kg+Di выделе с соот )г И узла(5 (SP по S SP вый в в ни ка ка ад ад ад элем ад ад со со со со со со элем элем элем элем элем элем элем элем элем элем элем элем элем элем г г г г вл вл вл вл вл вл вл вл вл вл вл вл вл вл вл вл вл вл) ) g AND node рои группами адрес ных входов посто нного запоминающего устройства, каждый i-й выход которого соединен с управл ющим входом i-ro дополнительного регистра, выход каждого триггера соединен -с соответствующим входом элемента ИЛИ и с i-м входом узла выделени  старшей единицы, вход тактовых импульсов устройства соединен с первым входом элемента И, выход которого соединен с управл ющим входом посто нного запоми ающего устройства управл ющими входами всех триггеров и регистра результата, выходы которого соединены с информационными входами каждого дополнительного регистра, выход элемента ИЛИ  вл етс  выходом Конец сортировки устройства и соединен с вторым входом элемента И.swarms by groups of address inputs of a persistent storage device, each i-th output of which is connected to the control input of the i-ro additional register, the output of each trigger is connected to the corresponding input of the OR element and to the i-th input of the high-order allocation node pulses of the device are connected to the first input of the element I, the output of which is connected to the control input of the fixed memory device by the control inputs of all the triggers and the result register, the outputs of which are connected to the information inputs each additional register, the output of the element OR is the output of the device's sorting end and is connected to the second input of the element I. 2. Устройство по п.1, отличающеес  тем, что узел выделени  старшей единицы содержит п-1 элементов ИЛИ-НЕ и п-1 элементов И, причем элементы ИЛИ-НЕ разбиты на R подгрупп , где R - цела  часть числа2. The device according to claim 1, characterized in that the node selection of the senior unit contains n-1 elements OR-NOT and p-1 elements AND, and the elements OR-NOT are divided into R subgroups, where R is a whole part of the number ;about 2п -  2n - ,75 - 0,5, таким образом, что S-  подгруппа ,2,..,,R включает т, S входов, где т,Я равно R-S+H, 75 - 0.5, so that S is a subgroup, 2, .. ,, R includes t, S inputs, where t, I equals R-S + H (57), где Р равно 0,5-R(R+3)-n+l , (S-P) - единична  функци , равна  1 пои S-P больше нул  и равна  О при S-P меньше нул  либо равном нулю,первый вход узла выделени  старшей единицы соединен с его первым выходом, ка/адьм q-й вход узла, где ,3,...,п, соединен с первым входом (q-l)-ro элемента И узла, выход каждого элемента ИЛИ-НЕ узла выделени  старшей единицы соединен с вторым входом одноименного элемента И узла выделени  старшей единицы, выход каждого г-го элемента И, где ,2,,..,п-1,  вл етс  Сг+1)-м выходом узла выделени  старшей единицы, каждый вход в каждой подгруппе элементов ИЛИ- НЕ узла, содержащий входы с номерами от Kj-ro до (Kg + )-ro включительно , где Kg равно (R+1,5-0,5S)S-R+ + (S-iP)-(2- (S-l-P), соединен с соответствующими входами одноименного и последующих элементов ИЛИ-НЕ узла вгз1делени  старшей единицы до (К + + Шд 1)-го включительно, а выход (Kg+Di 5 -1)-го элемента РШИ-НЕ узла выделени  старшей единицы соединен с соответствующими входами (Kg + )го и всех последующих элементов И узла выделени  старшей единицы.(57), where P is 0.5-R (R + 3) -n + l, (SP) is a single function, is equal to 1 poi SP is greater than zero and equal to O when SP is less than zero or equal to zero, the first input of the allocation node the highest unit is connected to its first output, ka / adm q-th input of the node, where, 3, ..., p, is connected to the first input (ql) -ro of the AND element of the node, the output of each element OR of the high-order allocation node connected to the second input of the same element AND of the highlight unit of the highest unit, the output of each gth element AND, where, 2 ,, .., n-1, is Cr + 1) -th output of the highlight unit of the high unit, each input in each subgroup u of an OR-NOT node node containing inputs with numbers from Kj-ro to (Kg +) -ro inclusive, where Kg is (R + 1.5-0.5S) S-R + + (S-iP) - (2- (SlP), is connected to the corresponding inputs of the same name and subsequent elements of the OR-NOT node of the division of the higher unit to (K + + Sd 1) -th inclusive, and the output (Kg + Di 5 -1) of the element of the RSHI-HE node of the elder units is connected to the corresponding inputs (Kg +) of th and all subsequent elements AND the allocation node of the senior unit.
SU864009724A 1986-01-16 1986-01-16 Device for storing numbers SU1310803A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU864009724A SU1310803A1 (en) 1986-01-16 1986-01-16 Device for storing numbers

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU864009724A SU1310803A1 (en) 1986-01-16 1986-01-16 Device for storing numbers

Publications (1)

Publication Number Publication Date
SU1310803A1 true SU1310803A1 (en) 1987-05-15

Family

ID=21217117

Family Applications (1)

Application Number Title Priority Date Filing Date
SU864009724A SU1310803A1 (en) 1986-01-16 1986-01-16 Device for storing numbers

Country Status (1)

Country Link
SU (1) SU1310803A1 (en)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Авторское свидетельство СССР № 911513, к:г1. G 06 F 7/06, 1980. Авторское свидетельство СССР № 1117631, кл. G 06 F 7/06, 1983. *

Similar Documents

Publication Publication Date Title
SU1310803A1 (en) Device for storing numbers
SU1107118A1 (en) Device for sorting numbers
SU1695303A1 (en) Logic analyzer
SU1046935A1 (en) Scaling device
SU1437974A1 (en) Generator of pseudorandom sequences
SU1681312A1 (en) Graph parameters analyzer
SU1683005A1 (en) Device to separate five-number sequence median
SU1444744A1 (en) Programmable device for computing logical functions
SU1742819A1 (en) Device for classification of controlling situations
SU1213483A1 (en) Device for gathering statistical data on exchanges via common bus of minicomputer
SU1325564A1 (en) Memory
SU1176360A1 (en) Device for transmission and reception of information
SU1126949A1 (en) Device for searching data
SU1642463A1 (en) Extreme numbers detector
SU1377843A1 (en) Code ring oscillator
SU1377852A1 (en) Device for sorting numbers
SU1425652A1 (en) Device for ordering number array
SU1363214A1 (en) Device for forming remainder by random modulus from number
SU1256098A1 (en) Associative storage
SU1109727A1 (en) Information input device
JPH02214099A (en) Pointer resetting system
SU1325514A1 (en) Information interval device
SU1267436A1 (en) Device for determining complement of set
SU1088051A1 (en) Device for receiving information
SU1144109A1 (en) Device for polling information channels