[go: up one dir, main page]

SU1208562A1 - Device for editing records in tables - Google Patents

Device for editing records in tables Download PDF

Info

Publication number
SU1208562A1
SU1208562A1 SU843779003A SU3779003A SU1208562A1 SU 1208562 A1 SU1208562 A1 SU 1208562A1 SU 843779003 A SU843779003 A SU 843779003A SU 3779003 A SU3779003 A SU 3779003A SU 1208562 A1 SU1208562 A1 SU 1208562A1
Authority
SU
USSR - Soviet Union
Prior art keywords
input
output
counter
distributor
pulse
Prior art date
Application number
SU843779003A
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 SU843779003A priority Critical patent/SU1208562A1/en
Application granted granted Critical
Publication of SU1208562A1 publication Critical patent/SU1208562A1/en

Links

Landscapes

  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

Изобретение относитс  к вычислительной технике. Целью изобретени   вл етс  расширение функциональных возможностей за счет обеспечени  исключени  строк. Устройство содержит счетчик, блок пам ти, регистр информации, группу элементов И, элемент ИЛИ, элементы И, триггер, генератор тактовых импульсов, элемент задержки, распределитель импульсов , узел сравнени , дешифратор, регистр ключа, формирователь пр моугольных импульсов. 1 ил. 1C о 00 ел О) ISDThe invention relates to computing. The aim of the invention is to extend the functionality by providing the exclusion of strings. The device contains a counter, a memory unit, an information register, a group of AND elements, an OR element, AND elements, a trigger, a clock generator, a delay element, a pulse distributor, a comparison node, a decoder, a key register, and a square pulse shaper. 1 il. 1C o 00 ate O) ISD

Description

1one

Изобретение относитс  к вычислительной технике и может быть использовано в системах управлени  рел ционными базами данныхThe invention relates to computing and can be used in systems for managing relevant databases.

Цель изобретени  - расширение функциональных возможностей устройства за счет обеспечени  исключени  строк.The purpose of the invention is to expand the functionality of the device by ensuring the exclusion of lines.

На чертеже изображена схема предлагаемого устройства.The drawing shows a diagram of the proposed device.

Устройство содержит счетчик 1, блок 2 пам ти, регистр 3 информации , группу элементов И 4, элемент ИЛИ 5, элементы И 6-9, триггер 10, генератор 11 тактовых импульсов, элемент 12 задержки, распределитель 13 импульсов, узел 14 сравнени , дешифратор 15, регистр 16 ключа, формирователь 17 пр моугольных импульсов, информационный вход 18, адресный вход 19, вход 20 запуска , установочньш вход 21 выход 22 устройства.The device contains a counter 1, a memory block 2, an information register 3, an AND 4 group, an OR 5 element, an AND 6-9 element, a trigger 10, a clock pulse generator 11, a delay element 12, a pulse distributor 13, a comparison node 14, a decoder 15, key register 16, shaper 17 rectangular pulses, information input 18, address input 19, start input 20, installation input 21 of device 22.

Блок 2 пам ти содержит некоторое число таблиц. Строка таблицы занимает одну  чейку пам ти. Все строки имеют поле ключа. В кащюй таблице строки могут быть отсортированы (дл  ускорени  поиска требуемой строки по возрастанию или убыванию ключей. В  чейке блока 2 пам ти (непосредственно следующей за последней строкой таблицы ) записываетс  код конца таблицы (уникальный код ) ,раси1Ифровываемый де- . шифратором 15.Memory block 2 contains a number of tables. The row of the table occupies one memory location. All lines have a key field. In the table, rows can be sorted (to speed up the search for the required row by ascending or descending keys. Cell 2 of the memory (immediately following the last row of the table) records the end of the table code (unique code) allocated by the encoder 15.

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

В исходном состо нии триггер 10 обнулен, генератор 1 заторможен, а элементы И 8 и 9 закрыты. В счетчик I с входа 19 по импульсу на входе 21 записываетс  адрес первой строки таблицы, из которой необходимо удалить какую-либо строку. Ключ удал емой строки заноситс  в регистр 16. Устройство готово к работе .In the initial state, trigger 10 is reset, generator 1 is inhibited, and elements 8 and 9 are closed. The counter I, from input 19, by the pulse at input 21, records the address of the first row of the table from which any row should be deleted. The key of the deleted string is entered in register 16. The device is ready for operation.

Удаление строки из таблицы инициируетс  импульсом по входу 20, который запускает генератор 1„ По импульсу с его выхода распределитель 13 последовательно вьщает импульсы на своих выходах. Снача.ла по вл етс  импульс на первом выходе распределител  13 и перва  (в даль- нейщем - очередна ) строка таблицы считываетс  на регистр 3. ЕслиThe removal of a row from the table is initiated by a pulse on input 20, which starts the generator 1 "On the pulse from its output, the distributor 13 sequentially outputs pulses on its outputs. A pulse appears at the first output of the distributor 13 and the first (hereinafter the next one) reads the row of the table in register 3. If

12085621208562

ключ строки из регистра 3 не совпадает с содержимым регистра 16, то узел 14 выдает сигнал на своем выходе , который открывает элемент И 7.the row key from register 3 does not match the contents of register 16, then node 14 generates a signal at its output, which opens AND 7.

5 Если в регистре 3 находитс  не -код конца таблицы, то элемент И 6 также открыт. По импульсу со второго выхода распределител  13 перва  (в дальнейшем - очередна ) строка табли10 цы через открытую группу элементов И 4.выдаетс  на выход 22 устройства . По импульсу с третьего выхода распределител  I3 содержимое регистра 3 записываетс  в блок 2 пам ти5 If in register 3 there is a non-end-of-table code, then AND 6 is also open. By the pulse from the second output of the distributor 13, the first (hereinafter, the next one) row of the table through the open group of elements AND 4. Is output to the output 22 of the device. On impulse from the third output of the distributor I3, the contents of the register 3 are recorded in memory block 2.

15 по адресу, определ емому содержимым счетчика I. Импульс с четвертого выхода через элемент И 9 не проходит . По импульсу с п того выхода распределител  13 содержимое счетчи20 ка 1 увеличиваетс  на единицу, т.е. формируетс  адрес следующей строки таблицы. Следовательно, если ключ считанной из блока 2 пам ти строки не совпадает с содержимым регистра15 at the address determined by the contents of the counter I. The pulse from the fourth exit through the element And 9 does not pass. By the pulse from the fifth output of the distributor 13, the contents of the counter 1 are increased by one, i.e. the address of the next row in the table is generated. Therefore, if the key read from block 2 of the memory line does not match the contents of the register

25 16, то эта строка записываетс  на то же место в блок 2 пам ти и выдаетс  из устройства, кроме того, в счетчике 1 формируетс  адрес следующей строки тaблиIl JI. По второму им30 пульсу с выхода генератора 11 снова последовательно по вл ютс  импульсы на выходах распределител  13, начина  с первого.25–16, this line is written to the same place in memory block 2 and outputted from the device; in addition, the address of the next line of table JI is generated in counter 1. On the second pulse 30 from the output of the generator 11, the pulses at the outputs of the distributor 13 appear again successively, starting from the first.

Устройство работает, как описаноThe device works as described

.с выше, до тех пор, пока содержимое регистра 16 не совпадает с ключом строки прочитанной в регистр 3. Совпадение означает, что удал ема  строка найдена.c above, as long as the contents of register 16 do not match the key of the string read into register 3. Coincidence means that the deleted row was found.

40 При отыскании удал емой строки сигнал с выхода узла 14 снимаетс , в результате чего закрываетс  элемент И 7, а формирователь 17 выдает импульс, устанавливающий триггер40 When finding the line to be deleted, the signal from the output of node 14 is removed, as a result of which element 7 is closed, and driver 17 generates a pulse setting trigger

10 в единичное состо ние. Следует заметить, что формирователь 17 фор- )мирует импульс только при сн тии сигнала с его входа, т.е. по заднему фронту сигнала. По импульсу со второго 10 in one state. It should be noted that the shaper 17 forms a pulse only when the signal is removed from its input, i.e. on the falling edge of the signal. By impulse from the second

50 выхода распределител  13 из содержимого счетчика 1 вычитаетс  единица и содержимое регистра 3 вьщаетс  на выход 22. Импульс с третьего выхода через элемент И 7 не прохо55 дит. По импульсу с четвертого выхода распределител  13 через открытый элемент И 9 восстанавливаетс  прежнее содержимое счетчика , а50 of the output of the distributor 13 is subtracted from the contents of the counter 1, and the contents of the register 3 is output to the output 22. The pulse from the third output through the element 7 does not pass. The pulse from the fourth output of the distributor 13 through the open element And 9 restores the previous contents of the counter, and

по импульсу с п того выхода в счетчике 1 формируетс  адрес следующей строки таблицы. Следовательно, удал ема  строка выдаетс  из устройства , но в блок 2 пам ти не записываетс , кроме того, триггер 10 устанавливаетс  в единичное состо ние и элементы И 8 и 9 открываютс . Пусть р- адрес удал емой строки, тогда в счетчике 1 сформирован адрес р+1.on the impulse from the fifth output in counter 1, the address of the next row of the table is generated. Consequently, the deleted line is output from the device, but is not recorded in the memory block 2, in addition, the trigger 10 is set to one and the elements 8 and 9 are opened. Let p be the address of the row to be deleted, then in counter 1 the address p + 1 is generated.

По следующему импульсу с выхода генератора 11 осуществл етс  чтение оставшихс  строк таблицы, выдача их на выход устройства и запись в блок 2 пам ти со сдвигом на одну  чейку в сторону младших адресов. Это происходит следующим образом. По первому импульсу с выходов распределител  13 в регистр 3 принимаетс  строка, наход ща с  по адресу р+1. По импульсу со второго выхода распределител  13 эта строка выдаетс  на выход 22, а в счетчике 1 формируетс  код р. Элемент И 7 открыт, так как содержимое регистра 16 уже не совпадает с полем ключа регистра 3. Поэтому импульс с третьего выхода распределител  13 приводит к записи содержимого регистра 3 по адресу р (на место удал емой строки). По импульсу с четвертого выхода, распределител  13 содержимое счетчика 1 становитс  равным р+1, а по импульсу с п того выхода - р+2. По следующему импульсу с выхода генератора 11 из блока 2 читаетс  строка с адресом р+2, вьщаетс  на выход 22 устройства и записьша- етс  по адресу р+1. Так происходит до тех пор, пока на регистр 3 не будет считан код конца таблицы.On the next pulse from the output of the generator 11, the remaining rows of the table are read, issued to the device output and written to the memory block 2 with a shift by one cell in the direction of lower addresses. This happens as follows. On the first pulse from the outputs of the distributor 13 to the register 3, a line is received which is located at address p + 1. From the pulse from the second output of the distributor 13, this line is output to output 22, and in the counter 1 a code p is generated. Element And 7 is open, since the contents of register 16 no longer coincides with the key field of register 3. Therefore, a pulse from the third output of the distributor 13 leads to the recording of the contents of register 3 at address p (to the place of the deleted row). By the pulse from the fourth output, the distributor 13, the contents of the counter 1 becomes equal to p + 1, and by the pulse from the fifth output - p + 2. On the next pulse from the output of the generator 11 from block 2, the line with the address p + 2 is read, outputted at the device output 22 and written to the address p + 1. This happens until the end of the table code is read on register 3.

Если в регистр 3 прин т код конца таблицы, то на выходе дешифратора 15 по вл етс  сигнал, который закрывает элемент И 6 и устанавливает генератор 11 в запертое состо ние. Однако распределитель I3 продолжает выдавать импульсы на своих выходах. В результате этого код конца таблицы из-какой-то  чейки k переписываетс  в  чейку k -1 , но на выход 22 не выдаетс . После прохождени  импульса на вычитающий вход счетчика 1 по вл етс  сигнал на выходе элемента 12 задержки, устанавливающий триггер 10 в нулевоеIf the end of the table code is received in register 3, then a signal appears at the output of the decoder 15, which closes AND 6 and sets the generator 11 to a locked state. However, the distributor I3 continues to generate pulses at its outputs. As a result, the end-of-table code from some cell k is rewritten into cell k -1, but is not output to output 22. After passing a pulse to the subtracting input of counter 1, a signal appears at the output of delay element 12, setting trigger 10 to zero

10ten

2525

0856208562

состо ние-. Следовательно, устрой- ство находитс  в исходном состо нии и готово к новому циклу работы, который начинаетс  после обновле- 5 ни  содержимого счетчика 1 и регист- ра 16.state-. Consequently, the device is in the initial state and is ready for a new cycle of operation, which begins after updating the contents of counter 1 and register 16.

Предлагаемое устройство позвол ет реализовать режим только чтени , если в регистр ключа записать ключ заведомо не существующей строки. Б этом случае удал ема  строка не будет найдена, а следовательно, ни одна строка из таблицы не будет исключена . 15The proposed device allows realizing the read-only mode, if the key is written in a register of the key which does not exist on a string. In this case, the deleted row will not be found, and therefore, no rows from the table will be excluded. 15

Claims (1)

Формула изобретени Invention Formula Устройство дл  редактировани  записей в таблицах, содержащее счет чик, дешифратор, регистр информации , группу элементов И, элемент ИЛИ, элемент И, блок пам ти, выход которого соединен с входом, регист- ра информации, выходы разр дов которого соединены соответственно с первьми входами элементов И группы , выходы которых  вл ютс  выходом устройства, отличающеес  тем, что, с целью рас30 ширени  функциональных возможностей за счет обеспечени  исключени  строк, в него введены триггер, генератор тактовых импульсов, элемент задержки, распределитель им35 пульсов, узел сравнени , формирователь пр моугольных импульсов и регистр ключа, вход которого  вл етс  информационным входом устройства , выход счетчика подключенA device for editing records in tables containing a counter, a decoder, an information register, a group of AND elements, an OR element, an AND element, a memory block whose output is connected to the input, information registers, the bit outputs of which are connected respectively to the first inputs elements and groups, the outputs of which are the output of the device, characterized in that, in order to expand the functionality by ensuring the elimination of lines, a trigger, a clock generator, a delay element, a distribution divisor im35 pulses, comparing the node generator of rectangular pulses and key register, the input of which is a data input device, the counter output is connected 40 к адресному входу блока пам ти,40 to the address input of the memory unit, выход регистра ключа соединен с первым входом узла сравнени , второй вход которого, информационный вход блока пам ти и вход дешифратораthe output of the key register is connected to the first input of the comparison node, the second input of which is the information input of the memory unit and the input of the decoder 45 соединены с выходами разр дов регистра информации, выход дешифратора соединен с инверсным входом первого элемента И, с входом элемента задержки, и входом оста50 нова генератора тактовьгх импульсов, вход запуска которого  вл етс  входом запуска устройства, адресный вход которого соединен с информационным входом счетчика, раз55 решаюш 1Й вход которого соединен с установочным входом устройства, выход генератора тактовых импульсов соединен с входом распределител 45 are connected to the outputs of the information register bits, the output of the decoder is connected to the inverted input of the first element I, to the input of the delay element, and to the input of the rest of the clock pulse generator, the start input of which is the device start input, the address input of which is connected to the information input of the counter Raz55 I solve the 1st input of which is connected to the installation input of the device, the output of the clock generator is connected to the input of the distributor S1S1 импульсов, первый выход которого соединен с входом считывани  блока пам ти, вход записи которого соединен с выходом второго элемента И, первый вход которого и вход формировател  пр моугольных импульсов соединены с выходом узла сравнени , второй выход распределител  импульсов соединен с первым входом третьего элемента И и с пр мым входом первого элемента И, выход которого соединен с вторыми входами элементов И группы, третий выход распределител  импульсов соединен с вторым входом второго элемента И, четвертый выход распределител  импуль208562pulses, the first output of which is connected to the read input of the memory unit, the write input of which is connected to the output of the second element I, the first input of which and the input of the square pulse generator are connected to the output of the comparison node, the second output of the pulse distributor is connected to the first input of the third element I and with the direct input of the first element And, the output of which is connected to the second inputs of the elements And group, the third output of the pulse distributor is connected to the second input of the second element And, the fourth output of the distributor bullet208562 сов соединен с первым входом четвертого элемента И, выход которого соединен с первым входом элемента ИПИ, выход которого соединен с сум- мирующим входом счетчика, вычитающий вход которого соединен с выходом третьего элемента И, второй вход которого и второй вход четвертого элемента И соединены с вьгходом 10 триггера, нулевой вход которого соединен с выходом элемента.задержки , п тый выход распределител  импульсов соединен с вторым входом элемента ИЛИ, выход формировател  15 пр моугольных импульсов соединен с единичным входом триггера.owl is connected to the first input of the fourth element I, the output of which is connected to the first input of the IPI element, the output of which is connected to the summing input of the counter, the subtractive input of which is connected to the output of the third element And, the second input of which and the second input of the fourth element And are connected to the output A trigger 10, the zero input of which is connected to the output of the delay element, the fifth output of the pulse distributor is connected to the second input of the OR element, the output of the square pulse generator 15 is connected to the single input of the trigger. ВНИИПИ Тираж 673VNIIPI Circulation 673 Заказ 289/58 ПодписноеOrder 289/58 Subscription Филиал ППП Патент, г.Ужгород, ул.Проектна , 4Branch PPP Patent, Uzhgorod, Proektna St., 4
SU843779003A 1984-08-09 1984-08-09 Device for editing records in tables SU1208562A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU843779003A SU1208562A1 (en) 1984-08-09 1984-08-09 Device for editing records in tables

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU843779003A SU1208562A1 (en) 1984-08-09 1984-08-09 Device for editing records in tables

Publications (1)

Publication Number Publication Date
SU1208562A1 true SU1208562A1 (en) 1986-01-30

Family

ID=21134072

Family Applications (1)

Application Number Title Priority Date Filing Date
SU843779003A SU1208562A1 (en) 1984-08-09 1984-08-09 Device for editing records in tables

Country Status (1)

Country Link
SU (1) SU1208562A1 (en)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Авторское свидетельство СССР № 666545, кл. G 06 F 15/38, 1977. Авторское свидетельство СССР № 780011, кл. G 06 F 15/38, 1978. *

Similar Documents

Publication Publication Date Title
SU1208562A1 (en) Device for editing records in tables
SU1211760A1 (en) Device for editing recorders in tables
SU1479941A1 (en) Unit for editing data in table
SU1621049A1 (en) Device for searching for information
SU551702A1 (en) Buffer storage device
SU1206806A1 (en) Device for editing list
SU1594548A1 (en) Device for monitoring of processor addressing the memory
SU1325514A1 (en) Information interval device
SU1185325A1 (en) Device for searching given number
SU1126972A1 (en) Device for searching information
SU1481851A1 (en) Unit for locating free memory areas
SU1203595A1 (en) Buffer storage
SU1319077A1 (en) Storage
SU1228116A1 (en) Information retrieval device
SU1606972A1 (en) Device for sorting data
SU1605244A1 (en) Data source to receiver interface
SU1536391A1 (en) Device for information input
SU494745A1 (en) Device for the synthesis of multi-cycle scheme
SU1234880A1 (en) Associative storage
SU1575187A1 (en) Device for monitoring code sequences
SU1267436A1 (en) Device for determining complement of set
SU1291988A1 (en) Information input device
SU1201855A1 (en) Device for comparing binary numbers
SU955067A1 (en) Data channel polling device
SU943731A1 (en) Device for code sequence analysis