SU1695290A1 - Data sorting device - Google Patents
Data sorting device Download PDFInfo
- Publication number
- SU1695290A1 SU1695290A1 SU894765629A SU4765629A SU1695290A1 SU 1695290 A1 SU1695290 A1 SU 1695290A1 SU 894765629 A SU894765629 A SU 894765629A SU 4765629 A SU4765629 A SU 4765629A SU 1695290 A1 SU1695290 A1 SU 1695290A1
- Authority
- SU
- USSR - Soviet Union
- Prior art keywords
- input
- outputs
- group
- inputs
- register
- Prior art date
Links
Landscapes
- Compression, Expansion, Code Conversion, And Decoders (AREA)
Abstract
Изобретение относитс к вычислительной технике и может быть использовано в системах обработки информации. Цель изобретени - повышение быстродействи . Устройство содержит коммутатор 1, блок 4 пам ти, преобразователи 2 и 6 кода данных, регистры 3 и 7, управл емые шифраторы 5 и 8 В устройство вводитс неупор доченный список Признак нахождени в списке запоминаетс в байте признаков по адресу , соответствующему младшим разр дам кода данных, а сам байт запоминаетс по адресу, соответствующему старшим разр дам кода данных. Дополнительно по старшим разр дам кода данных запоминаетс признакбайта, содержащего признак нахождени в списке Затем производитс приоритетна выборка байтов, содержащих признаки нахождени в списке и в соответствии с их значени ми, приоритетный опрос разр дов этих байтов. Управл емые шифраторы позвол ют вести выдачу упор доченного списка как по возрастанию, так и по убыванию 5 ил.The invention relates to computing and can be used in information processing systems. The purpose of the invention is to increase speed. The device contains switch 1, memory block 4, data code converters 2 and 6, registers 3 and 7, controllable encoders 5 and 8. A random list is entered in the device. A sign of being in the list is stored in the code byte at the address corresponding to the least significant code. data, and the byte itself is stored at the address corresponding to the highest bit of the data code. In addition, the sign of the byte containing the sign of being in the list is stored by the most significant bits of the data code. Then bytes are selected that contain the signs of being in the list and, according to their values, the priority polling of the bits of these bytes. Managed encoders allow the issuance of an ordered list in either ascending or descending order 5 or more.
Description
Изобретение относитс к вычислительной технике и автоматике и может быть ис- пользовано в системах обработки информации при реализации технических средств цифровых вычислительных машин и дискретной автоматики,The invention relates to computing and automation and can be used in information processing systems when implementing technical means of digital computers and discrete automation.
Цель изобретени - повышение быстродействи устройства.The purpose of the invention is to increase the speed of the device.
На фиг. 1 приведена функциональна схема предлагаемого устройства; на фиг. 2 - |функциональна схема преобразовател кода данных; на фиг. 3 - функциональна схема управл емого шифратора; на фиг. 4 и 5 - временные диаграммы работы устройства в режиме ввода и в режиме вывода соответственно.FIG. 1 shows a functional diagram of the proposed device; in fig. 2 - | functional data code converter circuit; in fig. 3 - functional scheme of the controlled encoder; in fig. 4 and 5 are time diagrams of the device operation in input mode and output mode, respectively.
Устройство содержит (фиг. 1) коммутатор 1, преобразователь 2 кода данных, регистр 3, блок А пам ти, управл емый шифратор 5, преобразователь 6 кода данных , регистр 7, управл емый шифратор 8, зходы 9-13, информационные выходы 14 и 15, выход 16 конца ввода и вход 17 установки .The device contains (Fig. 1) switch 1, data code converter 2, register 3, memory block A, controlled encoder 5, data code converter 6, register 7, controlled encoder 8, turns 9-13, information outputs 14 and 15, the output 16 of the input end and the input 17 of the installation.
По входу 9 поступает сигнал задани режима сортировки по убыванию, по входу 10 - сигнал задани приема списка. По входам 11 и 12 поступают синхросигналы Т1 и Т2 соответственно. На вход 13 поступает код данных списка D. На выходы 14 и 15 поступают соответственно младшие (ОМл) и старшие (ОСт) коды данных упор доченного списка, на выход 16 - сигнал конца выдачи, а на вход 17 - сигнал начальной установки,Input 9 receives a signal to set the sorting mode in descending order, and input 10 receives a signal to assign a list to be received. The inputs 11 and 12 receive the sync signals T1 and T2, respectively. The input data code for list 13 is D. The outputs 14 and 15 receive, respectively, the lower (OML) and higher (OST) data codes of the ordered list, the output 16 is the output end signal, and the input 17 is the initial setting signal
Преобразователи 2 и 6 кодов данных содержат (фиг. 2) дешифратор 18, группы элементов ИЛИ 19 и И 20 и коммутатор 21. Управл емые шифраторы 5 и 8 содержат (фиг. 3) коммутатор 22, приоритетный шифратор 23 и группу сумматоров 24 по модулю два.Transducers 2 and 6 of data codes contain (Fig. 2) a decoder 18, groups of elements OR 19 and And 20 and a switch 21. Managed encoders 5 and 8 contain (Fig. 3) switch 22, a priority encoder 23 and a group of adders 24 modulo two.
На фиг. 4 обозначены: а, б - синхроимпульсы Т1 и Т2 соответственно;FIG. 4 denote: a, b - sync pulses T1 and T2, respectively;
в, г - соответственно старшие и младшие разр ды кода данных, поступающие в устройство;c, d are the high and low bits of the data code entering the device, respectively;
д, е - первый и второй разр ды регистра 7;d, e — first and second bits of register 7;
ж-и - соответственно первый, второй и последний разр ды выхода блока 4 пам ти;W and — respectively, the first, second, and last bits of the output of memory block 4;
к-м - первый, второй и последний выходы преобразовател 2;km - the first, second and last outputs of the converter 2;
н-п - первый, второй и последний разр ды регистра 3;nn - the first, second and last bits of register 3;
На фиг, 5 обозначены;In FIG. 5, are indicated;
а, б - синхроимпульсы Т1 и Т2:a, b - T1 and T2 clock pulses:
-в - сигнал приема списка на входе 10;- in - a signal of reception of the list on an entrance 10;
г, д- первый и второй разр ды регистра 7; е - информационный выход шифратора 8; ж - выход конца работы шифратора 8; з, и - первый и второй выходы преобразовател 6;d, d - first and second bits of register 7; e is the information output of the encoder 8; W - output end of the operation of the encoder 8; h, and the first and second outputs of the Converter 6;
к-м - выходы блока 4 пам ти; Km - outputs of memory block 4;
н - информационный выход шифратора 5;n - information output encoder 5;
о - выход конца работы шифратора 5;about - output end of the operation of the encoder 5;
0 п-с - выходы преобразовател 2; т-ф - выходы регистра 3. Предлагаемое устройство предназначено дл упор дочивани списка из максимум 27 данных разр дностью 7. В качестве0 ps - transducer 2 outputs; tf - outputs of register 3. The proposed device is intended to organize the list of up to 27 data of 7 bits. As
5 старших прин то 4 разр да. Блок 4 пам ти представл ет собой матрицу 8 х 16, реализованную на основе К531РУ8. Первый преобразователь 2 выполнен как преобразователь трехразр дного двоичного в5 senior 4 grade. Memory block 4 is an 8 x 16 matrix implemented on the basis of the K531RU8. The first converter 2 is designed as a three-bit binary to
0 восьмиразр дный позиционный код, первый шифратор 5 - как преобразователь восьмиразр дного позиционного в трехразр дный двоичный код, вторые преобразователь 6 и шифратор 8 - соответственно0 eight-bit position code, first encoder 5 - as a converter of eight-bit position into a three-digit binary code, second converter 6 and encoder 8 - respectively
5 как преобразователи 4-16 и 16-4. Устройство реализовано на основе серии К555, в частности коммутаторы 1,21 - на К555КП11, регистры 3, 7 - на К555ТМ8, дешифратор 18 - на К555ИД7, шифратор 23 - на К555ИВ1,5 as converters 4-16 and 16-4. The device is implemented on the basis of the K555 series, in particular, switches 1.21 - on K555KP11, registers 3, 7 - on K555TM8, decoder 18 - on K555ID7, encoder 23 - on K555IV1,
0 сумматоры 24 - на К555ЛП5.0 adders 24 - to K555LP5.
Устройство работает следующим образом .The device works as follows.
Режим ввода списка задаетс установкой единичного сигнала на входе 10 и по5 ступлением синхросигналов Т1 (фиг. 4а) и Т2 (фиг, 46). В промежутках между сигналами Т2 и Т1 поступают коды данных (фиг. 4, в, г) по входу 13, которые коммутатор 1 подключает на свой выход.The list entry mode is set by setting a single signal at input 10 and by setting the clock signals T1 (FIG. 4a) and T2 (FIG. 46). In the intervals between the signals T2 and T1, data codes (Fig. 4, c, d) are received at input 13, which switch 1 connects to its output.
0 В преобразователе 6 дешифратор 18 преобразует значение старших разр дов данных в унитарный код, который элементами ИЛИ 19 складываетс в предыдущим состо нием регистра 7, и это новое значе5 ние через коммутатор 21 поступает на информационные входы регистра 7, куда записываетс по заднему фронту J2 (фиг. 4, д, е). При этом по 1 на своем втором управл ющем входе шифратор 5 поддер0 живает 1 на своем выходе конца работы, подключенном к входу разрешени записи регистра 7. Так, в регистре 7 устанавливаютс признаки нахождени в списке, соответствующие старшим разр дам поступающих0 In converter 6, the decoder 18 converts the value of the higher bits of the data into a unitary code that the OR 19 elements add to the previous state of register 7, and this new value through the switch 21 is fed to the information inputs of the register 7, where it is written on the falling edge of J2 ( Fig. 4, d, e). At the same time, at one of its second control input, the encoder 5 supports 1 at its output of the end of work connected to the enable input of the register entry 7. Thus, register 7 specifies the signs of being in the list corresponding to the highest bits of the incoming
5 кодов данных.5 data codes.
Из блока 4 по состо нию старших разр дов данных выбираетс соответствующий байт признаков (фиг. 4 ж-и), В преобразователе 2 этот байт складываетс по ИЛИ с унитарным кодом, сформированным дешифратором 18 преобразовател 2 из младших разр дов кода данных (фиг, 4, к-м) и через коммутатор 21 передаетс на информационный вход регистра 3, куда и заноситс по переднему фронту Т1 (фиг. 4, н-п). Затем вновь сформированный байт признаков по Т2 заноситс в блок 4 пам ти. Так,в информационных байтах блока 4 пам ти в соответствии со сначени ми младших раз- р дов данных упор дочиваемого списка размещаютс признаки нахождени в списке , в сами эти байты адресуютс в соответствии со значени ми старших разр дов данных упор дочиваемого списка.From block 4, by the state of the most significant bits of the data, the corresponding feature byte is selected (Fig. 4 g) and, in converter 2, this byte is added by OR with the unitary code generated by the decoder 18 of converter 2 from the lower bits of the data code (FIG. 4 , to m) and through the switch 21 is transmitted to the information input of the register 3, where it is entered along the leading edge T1 (Fig. 4, nn). Then the newly formed feature byte of T2 is stored in memory block 4. Thus, in the information bytes of block 4 of the memory, signs of being in the list are placed in accordance with the values of the lower bits of the data of the ordered list, and these bytes themselves are addressed in accordance with the values of the higher data bits of the ordered list.
Выдача упор дочиваемого списка задаетс сбросом в О сигнала ПР (фиг. 5, в). При этом информационный выход шифтора 5, находившийс по единичному значению сигнала ПР в состо нии все единицы, переходит в состо ние, соответствующее состо нию выхода блока 4 (фиг. 5, н). Если на выходе блока 4 присутствует хот бы один признак присутстви в списке, выход конца работы шифтора 5 сбрасываетс (фиг. 5, о) и запись в регистр 7 запрещаетс .The issuance of the ordered list is set by resetting the PR signal to O (FIG. 5, c). In this case, the information output of the cipher 5, which was in the unit value of the PR signal in the state of all units, goes to the state corresponding to the output state of block 4 (Fig. 5, n). If at the output of block 4 there is at least one indication of the presence in the list, the output of the end of operation of the encoder 5 is reset (Fig. 5, o) and writing to register 7 is prohibited.
Сортировка списка по возрастанию задаетс уровнем О на входе 9. По нему в управл емых шифраторах 5 и 8 коммутатор 22 передает входной код на информационные входы приоритетного шифратора 23, который на своих информационных выходах формирует код, соответствующий признаку , которому присвоен наибольший приоритет . Сумматоры 24 при наличии О на своих первых входах передают этот код на информационный выход управл емого шифратора. Сортировка по убыванию задаетс установкой 1 на входе 9. По ней коммутатор 22 передает младший разр д на своем входе на старший разр д своего выхода, и наоборот. Например, код 10000011 на входе коммутатора 22 передаетс на вход шифратора 23 как код 11000001. Тем самым признаку с наименьшим приоритетом присваиваетс наибольший приоритет. По уровню 1 на своих первых входах сумматоры 24 инвертируют сформированный шифратором 23 код. Тем самым при изменении приоритетов признаков коды, присвоенные этим признакам, сохран ютс . На фиг. 5 отображена сортировка по возрастанию.Sorting the list in ascending order is determined by the level O at input 9. According to it in controlled encoders 5 and 8, switch 22 transfers the input code to the information inputs of the priority encoder 23, which at its information outputs generates a code corresponding to the attribute to which the highest priority is assigned. The adders 24, if O are present, at their first inputs transmit this code to the information output of the controlled encoder. Sorting in descending order is set by setting 1 at input 9. According to it, switch 22 transmits the low-order bit at its input to the high-order bit of its output, and vice versa. For example, the code 10000011 at the input of the switch 22 is transmitted to the input of the encoder 23 as code 11000001. Thus, the feature with the lowest priority is assigned the highest priority. At level 1 at their first inputs, adders 24 invert the code generated by the encoder 23. Thus, when the priorities of attributes change, the codes assigned to these features are preserved. FIG. 5 shows ascending sorting.
На информационном выходе шифратора 8 присутствует код, соответствующий тому из признаков, хран щихс в регистре 7. которому присвоен наивысший приоритет . Например, уровню 1, в первом разр де регистра 7 (фиг. 5, г) соответствует код 0000 (фиг. 5, е). Этот код коммутатор 1 передает на вход дешифратора 18 преобразовател 6, в результате чего соответствующий элемент И 20 блокирует передачу признака на выход коммутатора 21 (фиг. 5, з).At the information output of the encoder 8 there is a code corresponding to that of the signs stored in register 7. which is assigned the highest priority. For example, level 1, in the first discharge of de register 7 (Fig. 5, d), corresponds to code 0000 (Fig. 5, e). This code, the switch 1 transmits to the input of the decoder 18 of the converter 6, as a result of which the corresponding element AND 20 blocks the transmission of the characteristic to the output of the switch 21 (FIG. 5, h).
По состо нию на информационном вы- 5 ходе шифратора 8 из блока 4 пам ти выбираетс байт признаков (фиг. 5, к-м), который в зависимости от состо ни шифратора 5, которое коммутатор 1 передает на вход преобразовател 2, модифицируетс аналогич0 ным образом.Based on the information output of the encoder 8, a byte of features is selected from memory block 4 (FIG. 5, km), which, depending on the state of the encoder 5, which switch 1 transmits to the input of converter 2, is modified by the same in a way.
По переднему фронту Т1 (фиг. 5, а) модифицированный байт признаков младших разр дов заноситс в регистр 3 (фиг. 5, т-ф). Кроме того, поТ1 с информационныхOn the leading edge of T1 (Fig. 5, a), the modified byte of signs of the least significant bits is entered into register 3 (Fig. 5, tf). In addition, according to T1 with information
5 выходов устройства принимаетс код отсортированных данных: с выхода 14 - младшие разр ды, с выхода 15 - старшие. По Т2 (фиг. 5, б) модифицируетс байт признаков блока 4.5 outputs of the device accept the code of the sorted data: from the output 14 - the younger bits, from the output 15 - the senior bits. According to T2 (Fig. 5, b), the feature byte of block 4 is modified.
0 После того.-как все признаки на выходе блока 4 оказываютс сброшенными, на информационном выходе шифратора 5 устанавливаетс единичный код, а на его выходе запроса - уровень 1. По нему разрешает5 с запись задним фронтом Т2 модифицированного байта признаков старших разр дов в регистр 7. Код на выходе шифратора 8 измен етс . Например, после сброса признака в первом разр де регист0 ра 7 по 1 в его втором разр де (фиг. 5, д) шифратор 8 формирует код 0001. По нему из блока 4 выбираетс следующий байт признаков , и процесс выдачи отсортированного списка продолжаетс .0 After all the signs at the output of block 4 are discarded, a single code is set at the information output of the encoder 5, and a level 1 is set at the output of the request. It allows5 to write the modified byte of the high-order signs to register 7 by the falling edge T2 The code at the output of the encoder 8 is changed. For example, after resetting the feature in the first register deregister 7 to 1 in its second discharge (Fig. 5e), the encoder 8 generates the code 0001. In it, from block 4, the next feature byte is selected, and the process of issuing the sorted list continues.
5 После того, как из блока 4 будет выбран байт, соответствующий последней из Г, в регистре 7, и все его разр ды будут обнулены , по заднему фронту 12 последн из 1 регистра 7 сбрасываетс . Информаци-0 онный выход шифратора 8 устанавливаетс в состо ние 1111. На выходе конца работы шифратора 8 устанавливаетс 1 (фиг. 5, ж), котора передаетс на выход 16 как сигнал конца выдачи. Выдача сигналов5 After block 4 is selected, the byte corresponding to the last of G in register 7, and all its bits will be zeroed, on the falling edge 12 the last of 1 register 7 is reset. The information output of the encoder 8 is set to state 1111. At the output of the end of operation of the encoder 8, 1 is set (Fig. 5, g), which is transmitted to output 16 as the output end signal. Issuing signals
5 Т1 и Т2 прекращаетс . Все разр ды регистров 3 и 7 и чейки блока 4 обнулены, и устройство готово к приему очередного списка .5 T1 and T2 terminate. All bits of registers 3 and 7 and cells of block 4 are zero, and the device is ready to receive the next list.
При включении питани чейки пам тиWhen powering up the memory cell
0 устанавливаютс произвольно. Дл их начального обнулени проводитс предварительна операци вывода, дл чего на вход 17 подаетс сигнал начальной установки регистра 7 в единичное состо ние. Затем0 are set arbitrarily. For their initial zeroing, a preliminary extraction operation is performed, for which input 17 is given a signal of the initial setup of register 7 in the unit state. Then
5 на входе ТО устанавливаетс О, а на входы 11 и 12 начинают поступать Т1. В про-, цессе выдачи происходит поочередна выборка всех байтов блока 4 и их обнуление . Окончание обнулени определ етс по сигналу KB на выходе 16.5 at the inlet THAT is set to O, and T1 begins to arrive at the inputs 11 and 12. In the pro- cessing process, the bytes of all block 4 bytes are alternately sampled and reset. The end of zeroing is determined by the KB signal at output 16.
Таким образом, осуществл етс запоминание поступающего неупор доченного списка данных по значени м их кодов и выдача нормализованного списка в пор дке его убывани , либо возрастани . Допол- нительное запоминание признаков байтов, содержащих признак нахождени в списке, позвол ет исключить из процесса выдачи холостой опрос пам ти и тем самым существенно сократить процесс сортировки.Thus, the incoming random list of data is memorized by their code values and the normalized list is issued in order of decreasing or increasing. The additional memorization of the attributes of bytes containing the attribute of being in the list allows excluding the idle polling of memory from the process of issuing and thereby significantly reducing the sorting process.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU894765629A SU1695290A1 (en) | 1989-12-05 | 1989-12-05 | Data sorting device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU894765629A SU1695290A1 (en) | 1989-12-05 | 1989-12-05 | Data sorting device |
Publications (1)
Publication Number | Publication Date |
---|---|
SU1695290A1 true SU1695290A1 (en) | 1991-11-30 |
Family
ID=21482889
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
SU894765629A SU1695290A1 (en) | 1989-12-05 | 1989-12-05 | Data sorting device |
Country Status (1)
Country | Link |
---|---|
SU (1) | SU1695290A1 (en) |
-
1989
- 1989-12-05 SU SU894765629A patent/SU1695290A1/en active
Non-Patent Citations (1)
Title |
---|
Авторское свидетельство СССР № 1183956.кл. G 06 F 7/06, 1985. Авторское свидетельство СССР № 1546962, кл. G 06 F 7/06,1988. * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
SU1695290A1 (en) | Data sorting device | |
SU1624449A1 (en) | Device for connecting data sources to a common bus | |
SU881725A1 (en) | Device for interfacing computer with peripheral units | |
SU1583934A1 (en) | Device for sorting numbers | |
SU1302437A1 (en) | Device for converting parallel code to serial code | |
SU1446620A1 (en) | Priority interrupt device for electronic computer | |
SU809617A2 (en) | Device for automatic switching and interfacing of alpha-numeric information sources and receivers with data transmission apparatus | |
SU1264178A2 (en) | Device for organizing queue | |
RU1784967C (en) | Data sorting device | |
SU1709293A2 (en) | Device for information input | |
SU1282337A1 (en) | Parallel code-to-serial code converter | |
SU1383505A1 (en) | Converter of binary code to binary-coded decimal code of angular units | |
SU1206784A1 (en) | Device for generating and storing modulo 3 residues | |
SU1367163A1 (en) | Binary serial code to unit-counting code converter | |
SU1142829A1 (en) | Device for sorting numbers | |
SU1200271A1 (en) | Interface for linking computer with user | |
SU1569842A1 (en) | Device for priority connection of external devices to line | |
SU882016A1 (en) | Internal-code sygnal receiver | |
SU1472911A1 (en) | Computer/subscriber interface | |
SU1091163A1 (en) | Priority device | |
SU1705826A1 (en) | Priority device | |
SU1171793A1 (en) | Variable priority device | |
SU1471192A1 (en) | Request priority handling unit | |
SU1130867A1 (en) | Asynchronous priority device | |
SU1481765A2 (en) | Servicing priority control unit |