SU980159A1 - Device for selection of free zones in storage - Google Patents

Device for selection of free zones in storage Download PDF

Info

Publication number
SU980159A1
SU980159A1 SU813309781A SU3309781A SU980159A1 SU 980159 A1 SU980159 A1 SU 980159A1 SU 813309781 A SU813309781 A SU 813309781A SU 3309781 A SU3309781 A SU 3309781A SU 980159 A1 SU980159 A1 SU 980159A1
Authority
SU
USSR - Soviet Union
Prior art keywords
output
inputs
input
block
signal
Prior art date
Application number
SU813309781A
Other languages
Russian (ru)
Inventor
Александр Андреевич Сильченко
Валентина Митрофановна Стогний
Original Assignee
Предприятие П/Я М-5156
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 Предприятие П/Я М-5156 filed Critical Предприятие П/Я М-5156
Priority to SU813309781A priority Critical patent/SU980159A1/en
Application granted granted Critical
Publication of SU980159A1 publication Critical patent/SU980159A1/en

Links

Description

Изобретение относится к запоминающим устройствам и может быть исполь*· зовано для выбора свободных зон в памяти.The invention relates to memory devices and can be used * * to select free zones in memory.

Известно устройство для выбора ин- 5 формации из блоков памяти, которое содержит накопитель, регистры и формирователи управляющих сигналов и позволяет выбирать информацию из накопителя путем преобразования кода, поступающего во входной регистр в адрес ячейки, из которого считывается информация [Ц. Однако данное устройство не позволяет выбирать адреса свободных зон памяти. 15A device is known for selecting information from memory blocks, which contains a drive, registers and drivers of control signals and allows you to select information from the drive by converting the code entering the input register into the address of the cell from which the information is read [C. However, this device does not allow you to select the addresses of free zones of memory. fifteen

Наиболее близким к предлагаемому является устройство для распределения памяти, содержащее регистр обмена, два дешифратора, шифратор, счетчик, регистры, элементы И, элементы ИЛИ 20 и позволяющее производить .поиск свободных зон и занесение кодов их адресов в соответствующие регистры и считывание с этих регистров по сигналу ’’Выдать’’ из процессора (2). 25Closest to the proposed one is a memory allocation device containing an exchange register, two decoders, an encoder, a counter, registers, AND elements, OR elements 20 and allowing to search for free zones and enter their address codes in the corresponding registers and read from these registers by signal `` Issue '' from the processor (2). 25

Недостатком известного устройства является низкое быстродействие, так как поиск свободной зоны осуществляется путем анализа слова, считывав/мого из памяти по заданному адресу, поступающему с выхода счетчика адресов , и переход на считывание слова по следующему адресу возможен только / после окончания анализа слова по предыдущему адресу и записи кода свободной зоны во вспомогательные регистры путем добавления +1 в счетчик адресов. Кроме того, невозможен одновременный поиск и выдача кодов 'свободных зон в процессор.A disadvantage of the known device is the low speed, since the search for a free zone is carried out by analyzing a word, reading it from the memory at the specified address coming from the output of the address counter, and switching to reading the word at the next address is possible only / after the analysis of the word is completed at the previous address and writing the free zone code to the auxiliary registers by adding +1 to the address counter. In addition, it is impossible to simultaneously search for and issue codes of 'free zones in the processor.

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

Поставленная цель достигается тем, что в устройство для выбора свободных зон в памяти, содержащее первый, дешифраторг счетчик, выходы которого соединены с входами второго дешифратора, шифратор, накопитель, элемент ИЛИ и блок управления, введены блоки очередности выбора, причем первый 'управляющий вход первого блока очередности выбора подключен к первому выходу блока управления, выходы которого со второго по шестой соединены соответственно со вторым, третьим и четвертым управляющими входами блоков очередности выбора и одними из входов накопителя, другие входы ^которых подключены к выходам дешифраторов, а выходы соединены с инфор мационными. входами блоков очередности выбора/ информационные выходы которых соединены с входами элемента ИЛИ и одними из входов шифратора,» другие входы которого подключены к выходам второго дешифратора, первый управляющий *вход каждого блока очередности выбора, кроме первого, ^соединен с управляющим выходом.предыдущего блока очередности выбора, управляющий выход последнего блока очередности выбора подключен к входу счетчика и первому входу блока уп- .This goal is achieved by the fact that in the device for selecting free zones in memory, containing the first decryptor g counter, the outputs of which are connected to the inputs of the second decryptor, an encoder, a drive, an OR element and a control unit, the blocks of the order of choice are introduced, and the first 'control input the first block of the order of selection is connected to the first output of the control unit, the outputs of which from the second to the sixth are connected respectively to the second, third and fourth control inputs of the blocks of the order of choice and one of the inputs A storage device, the other inputs of which are connected to the outputs of the decoders, and the outputs are connected to the information ones. the inputs of the selection sequence blocks / information outputs of which are connected to the inputs of the OR element and one of the inputs of the encoder, ”the other inputs of which are connected to the outputs of the second decoder, the first control * input of each block of the selection sequence, except the first, ^ is connected to the control output of the previous priority block selection, the control output of the last block of the order of choice is connected to the input of the counter and the first input of the unit UP.

равления, второй вход которого соединен с выходом элемента ИЛИ.equation, the second input of which is connected to the output of the OR element.

Каждый блок очередности выбора со- . держит элементы И, элемент НЕ и триг- 3 геры, причем выход первого элемента И подключен к входу элемента НЕ, выход которого соединен с одним:из входов второго элемента И, а вход - с ' одним из входов третьего элемента И, 20 выход которого подключен к одному из входов первого триггера, выход последнего соединен с одним из входов четвертого элемента И, выход которого подключен к одному из входов второго 25 триггера, выход последнего соединен с одним из входов первого элемента И, другие входы второго и третьего элементов И объединены и являются одним из входов блока, другими входами ко- 30 торого являются другие входы первого и четвертого элементов И и триггеров, а выходами блока являются выходы второго и четвертого элементов И.Each priority block selection is co. holds the AND elements, the NOT element and triggers 3 , the output of the first AND element being connected to the input of the NOT element, the output of which is connected to one : from the inputs of the second AND element, and the input to one of the inputs of the third AND element, 20 whose output connected to one of the inputs of the first trigger, the output of the last connected to one of the inputs of the fourth element And, the output of which is connected to one of the inputs of the second 25 trigger, the output of the last connected to one of the inputs of the first element And, the other inputs of the second and third elements And are combined and are alone from block inputs, the other inputs 30 Ko torogo are other inputs of first and fourth AND gates and flip-flops and the outputs are the outputs of the second and fourth elements I.

На фиг. 1 изображена функциональ- 35 ная схема устройства для выбора свободных зон в памяти; на фиг. 2 функциональная схема блока очередности выбора; на фиг. 3 - функциональная схема накопителя; на фиг. 4 - дд временные диаграммы, поясняющие работу устройства.In FIG. 1 shows a functional 35 diagram of a device for selecting free zones in memory; in FIG. 2 functional block diagram of the order of choice; in FIG. 3 - functional diagram of the drive; in FIG. 4 - dd timing diagrams explaining the operation of the device.

Устройство (фиг. 1) для выбора свободных зон в блоке 1 памяти содержит первый дешифратор 2 адреса, накопитель 3, блоки .4 очередности выбора, блок 5 управления, шифратор 6, элемент ИЛИ 7, счетчик 8 и второй дешифратор 9. Шифратор б имеет выход 10.The device (Fig. 1) for selecting free zones in the memory unit 1 contains a first address decoder 2, a drive 3, selection order blocks .4, a control unit 5, an encoder 6, an OR element 7, a counter 8 and a second decoder 9. The encoder 6 has exit 10.

Каждый блок 4 очередности выбора включает (фиг. 2) первый 11, второй 12, третий 13 и четвертый 14 элементы И, элемент НЕ 15 и первый 16 и второй 17 триггеры.Each block 4 of the order of choice includes (Fig. 2) the first 11, second 12, third 13 and fourth 14 elements AND, element NOT 15 and the first 16 and second 17 triggers.

В блок 5 управления введены (фиг. 1.. 55 многотактный генератор 18 импульсов, третий 19, четвертый 20 и пятый 21 триггеры, регистр 22 команд, пятый 23, шестой 24, седьмой 25, восьмой 26 и девятый 27 элементы И и элементык60 ИЛИ 28-30.The control unit 5 is introduced (Fig. 1 .. 55 multi-cycle generator 18 pulses, third 19, fourth 20 and fifth 21 triggers, register 22 teams, fifth 23, sixth 24, seventh 25, eighth 26 and ninth 27 elements And and elements to 60 OR 28-30.

Накопитель 3 содержит (фиг. 3) первую группу элементов И 31, регистры 32, элемент НЕ 33, вторую группу элементов И 34 и группу элементов ИЛИ 35. ¢5The drive 3 contains (Fig. 3) a first group of AND elements 31, registers 32, an element NOT 33, a second group of AND elements 34 and a group of OR elements 35. ¢ 5

Предлагаемое устройство работает следующим образом.The proposed device operates as follows.

Накопитель 3 выполнен таким образом, что каждому адресу 1-2* в блоке памяти, по которому записывается информация, соответствует один бит памяти в накопителе 3, т.е; код занятого адреса записывается в единично-позиционном коде. · .The drive 3 is designed in such a way that each address 1-2 * in the memory block to which the information is recorded corresponds to one bit of memory in drive 3, i.e.; the busy address code is written in the unit position code. ·.

При записи информации в блок 1 памяти по команде 11 Запись1’ из процессора (не показан) через элемент ИЛИ 30 одновременно осуществляется запись.единицы с выхода дешифратора в соответствующий разряд соответствующего регистра 32 в накопителеWhen recording information in the memory unit 1 by command 11, Recording 1 'from the processor (not shown) through the OR element 30 simultaneously records. The units from the decoder output to the corresponding bit of the corresponding register 32 in the drive

3. Разрядность одного регистра 32 соответствует числу блоков 4‘. При наличии из процессора команды 1’Признак’ 1 (устройство находится в режиме поиска свободной зоны) на вход накопителя 3 поступает постоянный сигнал с регистра 22, по которому на выходы накопителя 3 подключаются инверсные выходы регистров 32.3. The length of one register 32 corresponds to the number of blocks 4 '. If there is a command 1 'Sign' 1 from the processor (the device is in the free zone search mode), a constant signal from register 22 is supplied to the input of drive 3, through which the inverse outputs of the registers 32 are connected to the outputs of drive 3.

При поступлении команды 1’Выдать’’ из процессора с ’’Признаком’’ выбора свободной зоны обе команды записываются в регистр 22 и одновременно сигнал ’’Выдать’’ устанавливает через элемент ИЛИ 29 в ’’1’’ триггер 20, сигнал с выхода которого поступает на один из входов элемента И 24. При поступлении на другой вход элемента И 24 тактового импульса Т1 (фиг. 4) с его выхода формируется сигнал ’'Пуск’’ на вход первого блока 4 . Одновременно сигнал ’’Пуск’’ устанавливает в ’’1’’ триггер 21. По тактовому импульсу Т2 сигнал с выхода триггера 21 устанавливает в 1’О’’ триггер 20, а по тактовому импульсу ТЗ устанавливается в ’’0’’ триггер 21.Upon receipt of command 1 “Issue” from the processor with “Sign” of free zone selection, both commands are written to register 22 and at the same time the signal “Issue” sets trigger 20 through OR element 29 to “1”, the output signal which arrives at one of the inputs of the And 24. element. When the I And 24 element receives a clock pulse T1 (Fig. 4) from its output, a Start signal is generated at the input of the first block 4. At the same time, the “Start” signal sets trigger 21 to “1”. According to the clock pulse T2, the signal from the output of trigger 21 sets the trigger 20 to 1 “O”, and according to the clock pulse T3 it sets to “0” trigger 21 .

Сигнал ’’Пуск’’ с выхода блока 5 поступает на вход первого блока 4 и опрашивает состояние первого выхода первого регистра 32 накопителя 3. При наличии ’Ί’’ на этом выходе, что соответствует свободному адресу, сигнал с выхода элемента И 11 по сигналу ’’Пуск’’ устанавливает через элемент И 13 в 1 триггера 16 и одновременно запрещает через элемент НЕ 15 прохождение пускового импульса через элемент И 12 на вход второго блока 4.The start signal from the output of block 5 goes to the input of the first block 4 and polls the state of the first output of the first register 32 of drive 3. If there is 'Ί' at this output, which corresponds to a free address, the signal from the output of element 11 is given by the signal '' Start '' installs through trigger And 13 to 1 of trigger 16 and simultaneously prohibits passage of trigger pulse through And And 15 through And And 12 to the input of the second block 4.

По тактовому импульсу Т2 сигнал с выхода триггера 16 через элемент И 14 поступает на вход шифратора 6 и на вход элемента ИЛИ 7. На Выходе 10 шифратора 6 получают адрес свободной зоны памяти, который поступает в процессор. Одновременно устанавливается в ' ’ 1 ’ ’ триггер 17, нулевой потенциал с инверсного выхода которого блокирует вход элемента И 11, запрещая прохождение сигналаAccording to the clock pulse T2, the signal from the output of the trigger 16 through the AND element 14 is fed to the input of the encoder 6 and to the input of the OR element 7. At the Output 10 of the encoder 6, the address of the free memory zone is received, which is supplied to the processor. At the same time, trigger 17 is set to '’1’ ’, the zero potential from the inverse output of which blocks the input of the And 11 element, inhibiting the passage of the signal

I с входа элемента И 11 на вход элемента И 13. Затем по тактовому импульсу ТЗ, поступающему с блока 5 управления, устанавливается в ''О'* триггер 16. По сигналу с выхода элемента ИЛИ 7 формируется донесение в процессор ''Исполнено'' о наличии на 'выходах устройства адреса свободной зоны. Одновременно, если совместно с сигналом ''Выдать 1' процессор выдал и сигнал ''Запись'', по сигналу ''Исполнено’' формируется через эле менты И 26 и ИЛИ 30 сигнал ''Запись') по которому при наличии в процессоре информации для записи может сразу же быть записана информация по выбран.ному адресу.I from the input of the element And 11 to the input of the element And 13. Then, according to the clock pulse TK coming from the control unit 5, it is set to `` О '* trigger 16. At the signal from the output of the element OR 7, a message is generated to the processor''Executed'' about the presence of a free zone address on the device outputs. At the same time, if, together with the signal `` Issue 1 '', the processor also issued a signal `` Record '', according to the signal `` Completed '', the signal `` Record '' is generated through the elements And 26 and OR 30) according to which, if the processor has information information for recording can be immediately recorded to the selected address.

Сигнал с выхода элемента ИЛИ 7 устанавливает через элемент ИЛИ 29 в ’’ 1'* триггер 20, с выхода которого через элемент И 24 по тактовому импульсу 11 формируется повторный сигнал ’’Пуск'* в блоки 4. Так как на вход элемента И 11 поступает нулевой сигнал с инверсного выхода триггера 17, сигнал с выхода элемента И 11 запрещает прохождение второго импульса ’’Пуск'' через элемент И 13 и разрешает через элемент НЕ 15 прохождение пускового импульса на пусковой вход второго блока 4 через элемент И 12. Сигнал ''Пуск'' проходит на вход элемента И 11 второго блока 4 и опрашивает состояние второго входа блока 4. При наличии на этом входе ’' 1' ' формируется адрес второй свободной зоны. При наличии на втором входе ''О*'(т.е. адрес занят) пусковой сигнал через элемент И 12 второго блока 4 поступает на пусковой вход третьего блока 4 и опрашивает состояние третьего входа, и, если на его входе присутствует ' ' 0 ' ’, пусковой импульс сразу’· же поступает на пусковой вход четвертого блока 4, т.е. время опроса занятых адресов обусловлен только задержкой на элементах И 12 блоков 4 и только при опросе адреса свободной, зоны происходит задержка на время выдачи адреса свободной зоны на выходные шины адреса и формирования сигнала ''Исполнено'’.The signal from the output of the OR element 7 sets, via the OR element 29, into '' 1 '* trigger 20, from the output of which through the And 24 element, a repeated' Start '* signal is generated to the blocks 4 by the clock pulse 11. Since the input of the And 11 element receives a zero signal from the inverted output of the trigger 17, the signal from the output of the And 11 element prevents the passage of the second Start pulse through the And 13 element and allows the passage of the start pulse to the start input of the second block 4 through the And 12 element through the HE 15 element 'Start' 'passes to the input of the element And 11 of the second block 4 and about it asks for the state of the second input of block 4. If there is ’'1' 'at this input, the address of the second free zone is formed. If there is a `` О * '' at the second input (i.e. the address is busy), the trigger signal through element And 12 of the second block 4 is fed to the trigger input of the third block 4 and polls the state of the third input, and if there is '' 0 on its input '', the starting pulse immediately '' is also fed to the starting input of the fourth block 4, i.e. the time of polling busy addresses is determined only by a delay on AND elements 12 of blocks 4 and only when polling an address of a free zone, there is a delay for the time the address of the free zone is sent to the output address buses and the signal is 'Completed'.

Пусковой сигнал с выхода последнего блока 4 поступает на входы счетчика 8 и блок*. 5 управления. Счетчик 8 переходит в следующее состояние, сигналы кода состояния с его выходов поступают на входы дешифратора 9, на выходе которого формируется управляющий сигнал, который поступает на вход, накопителя 3 и подключает выходы второго регистра к входам блоков 4.The start signal from the output of the last block 4 is supplied to the inputs of the counter 8 and block *. 5 controls. The counter 8 goes into the next state, the status code signals from its outputs go to the inputs of the decoder 9, the output of which forms a control signal that goes to the input of the drive 3 and connects the outputs of the second register to the inputs of blocks 4.

Одновременно сигнал с выхода последнего блока 4 поступает на вход блока 5 управления и устанавливает , в '4'· триггер 19, с выхода которого по тактовому импульсу Т2 через 65 элементы И 23 и ИЛИ 28 формируется сигнал *'Сброс'' в блоки 4, по которому все триггеры 17 всех блоков 4 устанавливаются в ' Ό, сигнал с выхода элемента И 23 поступает также 5 на вход элемента ИЛИ 29 и устанавливает в ’Ί'1 триггер 20, с выхода которого через элемент И 24 по тактовому импульсу 11 формируется сигнал 1'Пуск* ’ в блоки 4, по которому на10 чинается опрос второго регистра накопителя 3. Таким образом, осуществляется опрос всех регистров накопителя 3. Сигнал переполнения счетчика 8 поступает на выход ‘'Стоп'' уст15 ройства, служит для прекращения поиска свободной зоны памяти и одновременно является донесением об от. сутствии свободных зон в блоке 1 памяти.At the same time, the signal from the output of the last unit 4 is fed to the input of the control unit 5 and sets trigger 19 to '4', from the output of which a signal * 'Reset' is generated in blocks 4 through 65 T elements 23 and OR 28 according to which all the triggers 17 of all blocks 4 are set to 'Ό, the signal from the output of the And 23 element also goes 5 to the input of the OR element 29 and sets the trigger 20 to' Ί ' 1 , from which the signal is generated through the And 24 element by the clock pulse 11 1 'Start *' in blocks 4, according to which the poll of the second register of drive 3 begins. T Thus, all the registers of drive 3 are interrogated. The overflow signal of counter 8 is sent to the output `` Stop '' of the device, serves to stop the search for a free memory zone and at the same time is a report on. no free zones in memory unit 1.

2Q По сигналу ''Выдать*' без ''Признака '' выбора свободной эоны с процессора, на входе накопителя 3 отсутствует постоянный сигнал. При отсутствии этого сигнала осуществляется 25 через элемент НЕ 33 подключение к входам блоков 4 прямых, а не инверсных выходов регистров 32 накопителя 3, что позволяет осуществлять опера. тивный поиск занятых, зон блока 1 памяти с выводоминформации по сигна3 лу ''Считывание'', формируемому блоком 5 управления при нахождении каж дого адреса занятой зоны, и одновременной выдачей адресов занятых зон на выходы устройства.2Q By the signal '' Issue * 'without''Sign''of the choice of free aeons from the processor, there is no constant signal at the input of drive 3. In the absence of this signal, 25 is connected through the element NOT 33 to the inputs of the blocks 4 of the direct rather than the inverse outputs of the registers 32 of the drive 3, which allows the opera to be performed. An active search for occupied, zones of memory block 1 from the output of information by signal 3 “Read”, generated by the control unit 5 when each address of the occupied zone is found, and simultaneously the addresses of the occupied zones are output to the device outputs.

Конструктивные особенности предлагаемого технического решения позволяют повысить быстродействие устройства путем введения блоков очередности выбора, позволяющих производить 40 автоматический пропуск адресов занятых зон памяти,а также вследствие того, что время выборки свободных зон памяти определяется только количеством свободных адресов памяти.Design features of the proposed technical solution can improve the speed of the device by introducing blocks of the order of choice, allowing 40 automatic skipping addresses of occupied memory zones, and also due to the fact that the sampling time of free memory zones is determined only by the number of free memory addresses.

Claims (2)

(54) УСТРОЙСТЮ ДЛЯ ВЫБОРА СВОБОДНЫХ ЗОН В ПАМЯТИ Изобретение относитс  к запоминающим устройствам и может быть иcпoль зрвано дл  выбора свободных зон в па м ти. Известно устройство дл  выбора ин формации из блоков пам ти, которое содержит накопитель, регистры и формирователи управл ющих сигналов и позвол ет выбирать информацию из накопител  путем преобразовани  кода, поступающего во входной регистр в адрес  чейки, из которого считываетс  информаци  11. Однако данное уст ройство не позвол ет выбирать адреса свободных зон пам ти. Наиболее близким к предлагаемому  вл етс  устройство дл  распределени  .пам ти, содержащее регистр обмен два дешифратора, шифратор, счетчик, регистры, элементы И, элементы ИЛИ и позвол ющее производить -поиск сво бодных зон и занесение кодов их адресов в соответствующие регистры и считывание с этих регистров по сигналу Выдать из процессора .2. Недостатком известного устройства  вл етс  низкое быстродействие, так как поиск свободной зоны осуществл етс  путем анализа слова, считывае ,мого из пам ти по заданному адресу, поступающему с выхода счетчика адресов , и переход на считывание слова по следунлцему адресу возможен только . после окончани  анализа слова по предыдущему сщресу и записи кода свободной зоны во вспомогательные реТистры путем добавлени  -Ы в счетчик адресов. Кроме того, невозможен одновременный поиск и выдача кодов свободных зон в процессор. Цель изобретени  - повышение быстродействи  устройства. Поставленна  цель достигаетс  тем, что в устройство дл  выбора свободных зон в пам ти, содержащее первый дешифратор,- счетчик, выходы которого соединены с входами второго дет ифратора , шифратор, накопитель, элемент ИЛИ и блок управлени , введены блоки очередности выбора, причем первый управл кхций вход первого блока очередности выбора подключен к первому выходу блока управлени , выходы которого со второго по шестой соединены соответственно со вторым, третьим и четвертым управл ющими входами блоков очередности выбора и одними из входов накопител , другие входы :которых подключены к выходам дешифраторов , а выходы соединены с инфор мационными входами блоков очередности выбора/ информационные выходы которых соединены с входами элемента ИЛИ и одними из входов шифратора,, другие входы которого подключены к выходам второго дешифратора, пер , вый уг}равл ющий вход каждого блока очередности выбора, кроме первого, (соединен с управл ющим выходом пре дущего блока очередности выбора, управл ющий выход последнего блока очередности выбора подключен к входу , счетчика и первому входу блока уп . равленй , второй вход которого соеди нен с выходом элемента ИЛИ. Каждый блок очередности выбора со держит элементы И, элемент НЕ и триг геры, причем выход первого элемента И подключен к входу элемента НЕ, выход которого соединен с одним из вхо дов второго элемента И, а вход - с одним из входов третьего элемента И выход которого подключен к одному из входов первого триггера, выход после него соединен с одним из входов четвертого элемента И, выход которого подключен к одному из входов второго триггера, выход последнего соединен с одним из входов первого элемента И другие входы второго и третьего элементов И объединены и  вл ютс  одним из входов блока, другими входами которого  вл ютс  другие входы первого и четвертого элементов И и триггеров а выходами блока  вл ютс  выходы второго и четвертого элементов И. На фиг. 1 изображена функциональна  схема устройства дл  выбора свободных зон в пам ти; на фиг. 2 функциональна  схема блока очередности выбора; на фиг, 3 - функционал на  схема накопител ; на фиг. 4 временные диаграммы, по сн ющие работу устройства. Устройство (фиг. 1) дл  выбора свободных зон в блоке 1 пам ти содержит первый дешифратор 2 адреса, накопитель 3, блоки .4 очередности вы бора, блок 5 управлени , шифратор б элемент ИЛИ 7, счетчик 8 и второй дешифратор 9. Шифратор 6 имеет выход 10. Каждый блок 4 очередности выбора включает (фиг. 2) первый 11, второй 12, третий 13 и четвертый 14 элемен ты И, элемент НЕ 15 и первый 16 и второй 17 триггеры. В блок 5 управлени  введены (фиг. 1 многотактный генератор 18 импульсов третий 19, четвертый 20 и п тый 21 триггеры, регистр 22 команд, п тый 23, шестой 24, седьмой 25, восьмой 26 и дев тый 27 элементы И и элемен ИЛИ 28-30. . Накопитель 3 содержит (фиг. 3) п вую группу элементов И 31, регистры 32, элемент НЕ 33, вторую группу эл ментов И 34 и группу элементов ИЛИ 35. Предлагаемое устройство работает следующим образом. Накопитель 3 выполнен таким образом , что каждому адресу 1-2 в блоке 1пам ти, по которому записываетс  информаци , соответствует один бит пам ти в накопителе 3, т.е; код зан того адреса записываетс  в единично-позиционном коде.. . При записи информации в блок 1 пам ти по команде Запись из процессора (не показан) через элемент ИЛИ 30 одновременно осуществл етс  запись .единицы с выхода дешифратора 2в соответствующий разр д соответствующего регистра 32 в накопителе 3. Разр дность одного регистра 32 соответствует числу блоков 4. При наличии из процессора команды Признак (устройство находитс  в режиме поиска свободной зоны) на вход накопител  3 поступает посто нный сигнал с регистра 22, по которому на выходы накопител  3 подключаютс  инверсные выходы регистров 32. При поступлении команды Выдать из процессора с Признаком выбора свободной зоны обе команды записываютс  в регистр 22 и одновременно сигнал Выдать устанавливает через элемент ИЛИ 29 в Ч триггер 20, сигнал с выхода которого поступает на один из входов элемента И 24. При поступлении на другой вход элемента И 24 тактового импульса Т1 (фиг. 4) с его выхода формируетс  сигнал Пуск на вход первого блока 4 . Одновременно сигнгш Пуск устанавливает в триггер 21. По тактовому импульсу Т2 сигнал с выхода триггера 21 устанавливает в О триггер 20, а по тактовому импульсу ТЗ устанавливаетс  в О триггер 21. Сигнал Пуск с выхода блока 5 поступает на вход первого блока 4 и опрашивает состо ние первого выхода первого регистра 32 накопител  3. При наличии на этом выходе. что соответствует свободному адресу, сигнал с выхода элемента И 11 по сигналу Пуск устанавливает через элемент И 13 в Ч триггера 16 и одновременно запрещает через элемент НЕ 15 прохождение пускового импульса через элемент И 12 на вход второго блока 4. По тактовому импульсу Т2 сигнал с выхода триггера 16 через элемент И 14 поступает на вход шифратора 6 и на вход элемента ИЛИ 7. На быходе 10 шифратора 6 получают адрес свободной зоны пам ти, который поступает в процессор. Одновременно устанавливаетс  в 1 триггер 17, нулевой потенциал с инверсного выхода которого блокирует вход элемента И 11, запреща  прохождение сигнала с входа элемента И 11 на вход элеме та И 13. Затем по тактовому импульс ТЗ, поступающему с блока 5 управлени , устанавливаетс  в О тригге 16. По сигналу с выхода элемента ИЛИ 7 фор1«1руетс  донесение в процессор Исполнено о наличии на выходах устройства адреса свободной зоны. Одновременно, если совместно с сигналом Выдать -процессор выдал и сигнал Запись, по сигналу Исполнено формируетс  через эле менты И 26 и ИЛИ 30 сигнал Запись по которому при наличии в процессор информации дл  записи может сразу ж быть записана информаци  по выбран .ному адресу. Сигнал с выхода элемента ИЛИ 7 устанавливает через элемент ИЛИ 29 в Ч триггер 20, с выхода которо го через элемент И 24 по тактовому импульсу Т1 формируетс  повторный сигнал Пуск в блоки 4. Так как на вход элемента И 11 поступает нулевой сигнал с инверсного выхода триггера 17, сигнал с выхода элемен та И 11 запрещает прохождение второ го импульса Пуск через элемент И 13 и разрешает через элемент НЕ 1 прохождение пускового импульса на пусковой вход второго блока 4 через элемент И 12. Сигнал Пуск проходит на вход элемента И 11 второго блока 4 и опрашивает состо ние второго входа блока 4. При наличии на формируетс  адрес . этом входе второй свободной зоны. При наличии О(т.е. адрес за на втором входе н т) пусковой сигнал через элемент И 12 второго блока 4 поступает на пусковой вход третьего блока 4 и опрашивает состо ние третьего входа, и, если на его входе присутствует О , пусковой импульс сра.зу же поступает на пусковой вход четвертого блока 4, т.е. врем  опроса зан тых адресов обусловлен только задержкой на элементах И 12 блоков 4 и только при опросе адреса свободной .зоны про исходит задержка на врем  выдачи адреса свободной зоны на выходные шины адреса и формировани  сигнала Исполнено. Пусковой сигнал с выхода последнего блока 4 поступает на входы счет чика 8 и блок. 5 управлени . Счетчик 8 переходит в следующее состо ние, сигналы кода состо ни  с его выходов поступают на входы дешифратора 9, на выходе которого формируетс  управл ющий сигнал, который поступает на вход, накопител  3 и подключает выходы второго регистра к входам блоков Одновременно сигнал с выхода последнего блока 4 поступает на вход блока 5 управлени  и устанавливает , в триггер 19, с выхода которого по тактовому импульсу Т2 через элементы И 23 и ИЛИ 28 формируетс  сигнал Сброс в блоки 4, по которому все триггеры 17 всех блоков 4 устанавливаютс  в О , сигнал с выхода элe teнтa И 23 поступает также на вход ИЛИ 29 и устанавливает в триггер 20, с выхода которого через элемент И 24 по тактовому импульсу Т1 формируетс  сигнал Пуск в блоки 4, по которому начикаетс  опрос второго регистра накопител  3. Таким образом, осуществл етс  опрос всех регистров накопител  3. Сигнал переполнени  счетчика 8 поступает на выход Стоп устройства , служит дл  прекращени  поиска свободной зоны пам ти и одновременно  вл етс  донесением об отсутствии свободных зон в блоке 1 пам ти. По сигналу Выдать без Признака выбора свободной зоны с процессора , на-входе накопител  3 отсутствует посто нный сигнал. При отсутствии этого сигнала осуществл етс  через элемент НЕ 33 подключение к входам блоков 4 пр мых, а не инверсных выходов регистров 32 накопител  3, что позвол ет осуществл ть оперативный поиск зан тых, зон блока 1 пам ти с выводоминформации по сигналу Считывание, формируемому бло- . ком 5 управлени  при нахождении каждого адреса зан той зоны, и одновременной выдачей адресов зан тых зон на выходы устройства. -Конструктивные особенности предлагаемого технического решени  позвол ют повысить быстродействие устройства путем .введени  блоков очередности выбора, позвол ющих производить автомати еский пропуск адресов зан тых зон пам ти,а также вследствие того, что врем  выборки свободных зон пам ти определ етс  только количеством свободных адресов пам ти. ; Формула изобретени  1. Устройство дл  выбора свободных зон в пам ти, содержащее первый дешифратор, счетчик, выводы которого соединены с входами второго дешифратора , шифратор, накопитель, элемент ИЛИ и блок управлени , отличаюЩ е е с   тем, что, с целью повышени  быстродействи  устройства, в него . введены блоки очередности выбора, причем первый управл ющий вход первого блока очередности выбораподключен к первому выходу блока управлени , выходы которого со второго по шестой соединены соответственно со вторым, третьим и четвертым управл ющими вхоами блоков очередности выбора и одними из входов накопител , другие входы которых подключены к выходам(54) DEVICE TO SELECT FREE ZONES IN MEMORY The invention relates to storage devices and can be used to select free zones in memory. A device for selecting information from memory blocks, which contains a drive, registers and drivers of control signals, and allows you to select information from the drive by converting the code received in the input register to the address of the cell from which information 11 is read is known. However, this device does not allow selecting addresses of free memory zones. The closest to the proposed is a device for distributing .pam, which contains the exchange register two decoders, encoder, counter, registers, AND elements, OR elements and allows to produce -search of free zones and entering codes of their addresses into the corresponding registers and reading from these registers on the signal issued from the processor .2. A disadvantage of the known device is low speed, since the search for a free zone is carried out by analyzing a word read from the memory at a given address, coming from the output of the address counter, and the transition to reading a word at the next address is possible only. after completing the analysis of the word on the previous page and writing the code of the free zone in the auxiliary registries by adding -Y to the address counter. In addition, it is impossible to simultaneously search and issue codes of free zones in the processor. The purpose of the invention is to increase the speed of the device. The goal is achieved in that the device for selecting free zones in the memory containing the first decoder, a counter whose outputs are connected to the inputs of the second component, the encoder, the drive, the OR element and the control unit, has been entered The input of the first block of the selection sequence is connected to the first output of the control unit, the outputs of which from the second to the sixth are connected respectively to the second, third and fourth control inputs of the blocks of the priority selection and one of the inputs accumulator, other inputs: which are connected to the outputs of the decoders, and outputs are connected to the information inputs of the selection sequence blocks / information outputs of which are connected to the inputs of the OR element and one of the inputs of the encoder, the other inputs of which are connected to the outputs of the second decoder, first, left equal} is the input of each block of the selection sequence, except the first one (connected to the control output of the previous block of the sequence of choice, the control output of the last block of the sequence of selection is connected to the input of the counter and the first block input pack. The second input is connected to the output of the OR element. Each block of the selection sequence contains AND elements, the element NOT and triggers, the output of the first element AND is connected to the input of the element NOT, the output of which is connected to one of the inputs of the second element AND, and the input to one of the inputs of the third element AND whose output connected to one of the inputs of the first trigger, the output after it is connected to one of the inputs of the fourth element And whose output is connected to one of the inputs of the second trigger, the output of the last connected to one of the inputs of the first element And the other inputs of the second and third elements And are combined and are one of the inputs of the block, the other inputs of which are the other inputs of the first and fourth And elements and flip-flops, and the outputs of the block are the outputs of the second and fourth elements I. 1 shows a functional diagram of an apparatus for selecting free zones in a memory; in fig. 2 is a functional block selection sequence; Fig, 3 - the functional scheme of the drive; in fig. 4 timing diagrams that show how the device works. The device (Fig. 1) for selecting free zones in memory block 1 contains the first decoder 2 addresses, drive 3, selector sequence blocks. 4, control block 5, the encoder 6 or 7, the counter 8 and the second decoder 9. The encoder 6 It has an output of 10. Each block 4 of the selection sequence includes (Fig. 2) the first 11, the second 12, the third 13 and the fourth 14 AND elements, the element NOT 15 and the first 16 and second 17 triggers. Control block 5 has been entered (Fig. 1 multi-cycle pulse generator 18, third 19, fourth 20 and fifth 21 triggers, command register 22, fifth 23, sixth 24, seventh 25, eighth 26 and ninth 27 elements AND and element OR 28 30. The accumulator 3 contains (FIG. 3) the fifth group of elements AND 31, the registers 32, the element NOT 33, the second group of elements AND 34 and the group of elements OR 35. The proposed device works as follows. that each address 1-2 in block 1pami, on which information is recorded, corresponds to one memory bit in the drive 3, i.e., the code of the occupied address is recorded in the one-position code .... When writing information to memory block 1 by the command Record from the processor (not shown), OR 30 is simultaneously recorded from the output of the decoder 2c. the corresponding bit of the corresponding register 32 in the drive 3. The size of one register 32 corresponds to the number of blocks 4. When the Attribute command from the processor (the device is in the free zone search mode) is present, the input of the drive 3 receives a constant signal from the register 22, whichThe outputs of accumulator 3 are connected to the inverse outputs of registers 32. When a command to issue from the processor is received with a free zone selection sign, both commands are written to register 22 and at the same time the output signal sets OR through 29 element to H trigger 20, the signal from which output goes to one of the element inputs And 24. On admission to the other input element And 24 clock pulse T1 (Fig. 4) from its output a Start signal is input to the input of the first block 4. At the same time, the Start start sets to trigger 21. According to the clock pulse T2, the signal from the trigger output 21 sets the trigger to O, and the clock pulse sets the TOR to the trigger 21. The start signal from the output of block 5 enters the input of the first block 4 and polls the state first output of the first register 32 of the drive 3. If available on this output. which corresponds to the free address, the signal from the output of the element 11 on the signal sets the start through the element 13 and 13 to the flip-flop 16 and at the same time prohibits the passage of the pulse 15 through the element 15 to the input of the second block 4. On the clock pulse T2 the trigger 16 through the AND 14 element is fed to the input of the encoder 6 and to the input of the element OR 7. At the bypass 10 of the encoder 6, the address of the free memory zone is received, which enters the processor. At the same time, it is set to 1 flip-flop 17, the zero potential from the inverse output of which blocks the input of element 11, prohibits the passage of the signal from the input of element 11 to the input of element i 13. Then, the clock pulse TZ from the control unit 5 is set to O flip-flop 16. According to the signal from the output of the element OR 7 Form1, a report is sent to the processor. Complied with the presence of a free zone address at the device outputs. At the same time, if, together with the signal Issue, the processor issued a signal and a Record, the Executed signal is formed using the AND 26 and OR 30 elements. A signal that, if there is information in the processor for recording, can immediately be recorded at the selected address. The signal from the output of the element OR 7 sets through the element OR 29 to the H flip-flop 20, from the output of which through the element 24 and the clock pulse T1 generates a repeated signal. Starting up the blocks 4. Since the input signal of the element 11 is a zero signal from the inverse output of the flip-flop 17, the signal from the output of the AND 11 element prohibits the passage of the second pulse. Starting through the AND 13 element and allowing the NOT 1 element to pass the starting pulse to the starting input of the second block 4 through the And 12 element. The start signal passes to the input of the And 11 element of the second block 4 and polls with The second entry of block 4 is established. If available, an address is generated. This input is the second free zone. If O is present (i.e. the address is at the second input of n t), the start signal through the And 12 element of the second block 4 enters the start input of the third block 4 and polls the state of the third input, and, if O is present, the start pulse immediately enters the starting input of the fourth block 4, i.e. the polling time of occupied addresses is caused only by the delay on the elements of AND 12 blocks 4 and only when polling the address of a free zone, a delay occurs at the time of issuing the free zone address to the output address bus and forming a signal. The starting signal from the output of the last block 4 is fed to the inputs of the counter 8 and the block. 5 controls The counter 8 enters the next state, the signals of the state code from its outputs are fed to the inputs of the decoder 9, the output of which forms a control signal which is fed to the input of the accumulator 3 and connects the outputs of the second register to the inputs of the blocks 4 is fed to the input of the control unit 5 and sets to the trigger 19, from the output of which, by the clock pulse T2, through the elements AND 23 and OR 28, a reset signal is generated into blocks 4, according to which all the triggers 17 of all blocks 4 are set to O, the signal From the output of the sensor And 23 also goes to the input of OR 29 and sets to the trigger 20, from the output of which, through the element 24 on the clock pulse T1, a Start signal is generated in blocks 4, through which the second register of the accumulator 3 is polled. interrogation of all registers of accumulator 3. The overflow signal of counter 8 arrives at the output of the device Stop, serves to stop the search for a free memory zone and at the same time is a report about the absence of free zones in memory block 1. On a signal to Issue without a Sign of a free zone selection from the processor, there is no constant signal at the input of drive 3. In the absence of this signal, the NOT 33 element is connected to the inputs of blocks 4 of direct, rather than inverse, outputs of registers 32 of drive 3, which allows an operational search of occupied zones of memory 1 from information output by the Read signal generated by the block. -. control 5 when finding each address of the occupied zone, and simultaneously issuing addresses of the occupied zones to the outputs of the device. The design features of the proposed technical solution make it possible to increase the speed of the device by introducing blocks of the selection sequence that allow automatic address skipping of occupied memory areas, and also because the time of sampling of free memory areas is determined by the number of free memory addresses. ti. ; Claim 1. Device for selecting free zones in a memory, comprising a first decoder, a counter, the terminals of which are connected to the inputs of the second decoder, an encoder, a drive, an OR element and a control unit that is different in order to improve the speed of the device into it. Selection order blocks are entered, the first control input of the first selection queue is connected to the first output of the control unit, the outputs of which from the second to the sixth are connected respectively to the second, third and fourth control inputs of the selection priority blocks and one of the accumulator inputs, the other inputs of which are connected to exits дешифраторов, а выходы соединены с информационными входами блоков очере ,цности выбора, информационные выходы которых соединены с входами элемента ИЛИ и одними из входов шифратора , другие входы которого подключены к выходам второго дешифратора, первый управл ющий вход каждого блока очередности выбора, первого соединен с управл ющим выходом предыдущего блока очередности выбора, управл ющий ВЫХОД последнего блока очередности выбора подключен к входу счетчика и первому входу блока управлени , второй вход которого соединен с выходом- элемента ИЛИ.decoders, and the outputs are connected to the information inputs of the blocks Ocher, selection values, the information outputs of which are connected to the inputs of the OR element and one of the inputs of the encoder, the other inputs of which are connected to the outputs of the second decoder, the first control input of each block of the priority of selection, the first is connected to the control the output of the previous block of priority of choice, the control OUTPUT of the last block of the sequence of choice is connected to the input of the counter and the first input of the control block, the second input of which is connected to the output - OR element. 2. Устройство поп 1, отли чающее с  тем, что каждый блок очередности выбора содержит элементы И, элемент НЕ и триггеры, причем выход первого элемента И подключен к-входу элемента НЕ, выход которого соединен с одним из входов второго 2. Device pop 1, which differs in that each block of the sequence of choice contains elements AND, element NOT and triggers, with the output of the first element AND connected to the input of the element NO, whose output is connected to one of the inputs of the second элемента И, а вход - с одним из входов третьего элемента И, выход которого подключен к одному из входов первого триггера, вйход последнего соединен с одним из входов четвертого элемента И, выход которого подключен к одному из входов йторого триггера, выход которого соединен с одним из входов первого элемента Ц , другие входы второго и третьего элементов И объединены и  вл ютс  одним из входов блока, другими входами которого  вл ютс  другие входы первого и четвертого элементов И и триггеров а выходами блока  вл ютс  выходы втоtS рого и четвертого элементов И.element And, and the input with one of the inputs of the third element And, the output of which is connected to one of the inputs of the first trigger, the input of the latter is connected to one of the inputs of the fourth element And, the output of which is connected to one of the inputs of the second trigger, the output of which is connected to one from the inputs of the first element Q, the other inputs of the second and third elements AND are combined and are one of the inputs of the block, the other inputs of which are the other inputs of the first and fourth elements AND and the flip-flops and the outputs of the block are the outputs of the second and fourth rtogo elements I. Источники информации, прин тые во внимание при экспертизеSources of information taken into account in the examination 1. Авторской свидетельство СССР № 557414, кл. G 11 С 8/00, 1974. 20 2. Авторское свидетельство СССР1. USSR author's certificate number 557414, cl. G 11 C 8/00, 1974. 20 2. USSR author's certificate № 580556, кл. G И С 7/00, 1976 (прототип).No. 580556, cl. G And C 7/00, 1976 (prototype). , 1J, 1J L.L. Фи&.2Fi & .2 Фи,3Phi 3
SU813309781A 1981-04-14 1981-04-14 Device for selection of free zones in storage SU980159A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU813309781A SU980159A1 (en) 1981-04-14 1981-04-14 Device for selection of free zones in storage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU813309781A SU980159A1 (en) 1981-04-14 1981-04-14 Device for selection of free zones in storage

Publications (1)

Publication Number Publication Date
SU980159A1 true SU980159A1 (en) 1982-12-07

Family

ID=20966280

Family Applications (1)

Application Number Title Priority Date Filing Date
SU813309781A SU980159A1 (en) 1981-04-14 1981-04-14 Device for selection of free zones in storage

Country Status (1)

Country Link
SU (1) SU980159A1 (en)

Similar Documents

Publication Publication Date Title
SU980159A1 (en) Device for selection of free zones in storage
SU691925A1 (en) Memory device
SU1429104A1 (en) Information output device
SU1256196A1 (en) Multichannel pulse counter
SU515154A1 (en) Buffer storage device
SU959164A2 (en) Buffer storage
SU1282107A1 (en) Information input device
SU1764055A1 (en) Device for information testing
SU1282141A1 (en) Buffer storage
SU1234844A1 (en) Multichannel device for controlling information input in microcomputer
SU1137472A1 (en) Debugging device
SU868760A1 (en) Dynamic priority device
SU1525889A1 (en) Device for monitoring pulse sequence
SU1305771A1 (en) Buffer memory driver
SU520703A1 (en) Device for converting parallel code to serial
SU1348841A1 (en) Device for forming interruption signals in program debugging
SU1211738A1 (en) Device for distributing internal memory
SU489107A1 (en) Program Debugging Device for Permanent Storage
SU834704A1 (en) Storage control device
SU983757A1 (en) Storage testing device
SU1596390A1 (en) Buffer memory device
SU1037236A1 (en) Main memory to processor interfacing device
SU1361566A1 (en) On-line storage addressing device
SU1401465A1 (en) Memory control device
SU1103216A1 (en) Data input-output device