+

SU1367017A1 - Device for selecting replaced element - Google Patents

Device for selecting replaced element Download PDF

Info

Publication number
SU1367017A1
SU1367017A1 SU864015801A SU4015801A SU1367017A1 SU 1367017 A1 SU1367017 A1 SU 1367017A1 SU 864015801 A SU864015801 A SU 864015801A SU 4015801 A SU4015801 A SU 4015801A SU 1367017 A1 SU1367017 A1 SU 1367017A1
Authority
SU
USSR - Soviet Union
Prior art keywords
input
output
elements
group
code
Prior art date
Application number
SU864015801A
Other languages
Russian (ru)
Inventor
Аркадий Яковлевич Аврукин
Генрих Григорьевич Белкин
Владимир Евгеньевич Неселовский
Original Assignee
Предприятие П/Я М-5339
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 Предприятие П/Я М-5339 filed Critical Предприятие П/Я М-5339
Priority to SU864015801A priority Critical patent/SU1367017A1/en
Application granted granted Critical
Publication of SU1367017A1 publication Critical patent/SU1367017A1/en

Links

Landscapes

  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

Изобретение относитс  к области вычислительной техники и предназначено дл  выбора из имеющегос  набора элементов того, который должен быть замещен другим. При этом выбор замещаемого элемента из набора, состо щего из m элементов, производитс  случайньм образом из группы га-п наиболее давно использовавшихс  элементов данного набора, дл  которых в отличие от группы из п наиболее часто исполь- зуемьпс элементов () не ведетс  хронологии их использовани . Изобретение может быть использовано в ЭВМ и вычислительных системах, вычислительных устройствах и приборах цифровой автоматики. Цель изобретени  - уменьшение количества оборудовани . Устройство .содержит кодопреобразователь 1, пам ть 2, регистр 3, счетчик 6, блок 5 управлени  и блок 4 сравнени . Устройство обеспечивает выбор замещаемого элемента среди тех m-n элементов, дл  которых не ведетс  . хронологи  их использовани , и позвол ет сократить число каскадов кодопреобразовател  и разр дность слова пам ти и регистра. 6 ил. с 5 (ЛThe invention relates to the field of computer technology and is intended to select from the existing set of elements the one to be replaced by another. In this case, the choice of a replaceable element from a set consisting of m elements is made randomly from the group g-n of the most long-used elements of this set, for which, unlike the group of n most often used elements (), there is no chronology of their use. . The invention can be used in computers and computing systems, computing devices and digital automation devices. The purpose of the invention is to reduce the amount of equipment. The device contains a code converter 1, a memory 2, a register 3, a counter 6, a control unit 5 and a comparison unit 4. The device provides a selection of the item to be replaced among those m-n items for which it is not maintained. the chronology of their use, and reduces the number of code converter stages and word width memory and register. 6 Il. from 5 (L

Description

со о: sico o si

1 131 13

Изобретение относитс  к вычислительной технике, предназначено дл  выбора из имеющегос  набора элемента , который должен быть замещен другим , и может быть использовано в ЭВМ и вв1числительнь1х системах, вычислительных устройствах и приборах цифровой автоматики.The invention relates to computing, is intended to select from an existing set of elements that must be replaced by another, and can be used in computers and in the numerical systems, computing devices and digital automation devices.

Цель изобретени  - упрощение уст- ройства за счет уменьшени  количества оборудовани .The purpose of the invention is to simplify the device by reducing the amount of equipment.

На фиг.1 представлена блок-схема устройства дл  выбора замещаемого элемента, у которого на фиг.2 - функциональна  схема кодопреобразовател ; на фиг.З - функциональна  схема блока сравнени ; на фиг.4 - функциональна  схема блока управлени ; на фиг.5 - функциональ- на  схема счетчика; на фиг.6 - временные диаграммы работы устройства.FIG. 1 is a block diagram of a device for selecting a replaceable element, in which FIG. 2 is a functional diagram of a code converter; FIG. 3 is a functional block diagram comparison; 4 is a functional block diagram of the control unit; figure 5 is a functional diagram of the counter; figure 6 - timing charts of the device.

Устройство дл  выбора замещаемого элемента содержит кодопреобразователь 1, пам ть 2, регистр 3, блок 4 сравнени , блок 5 управлени  и счетчик 6, информационный вход 7, адресный вход 8, вход 9 синхронизации, вход 10 случайного числа, первый 11 и в торой 12 управл ющие входы и вы- ход 13.Кодопреобра зователь 1 состоит из схем 14-16 сравнени , элементов И 17- 18 и трех групп элементов И-ИЛИ 19- 21..A device for selecting a replaceable element contains a code converter 1, memory 2, register 3, comparison unit 4, control block 5 and counter 6, information input 7, address input 8, synchronization input 9, random number input 10, first 11 and 12 control inputs and output 13. The decoder 1 consists of 14-16 comparison circuits, AND elements 17-18 and three groups of AND-OR elements 19-21.

Блок 4 сравнени  выполнен на схемах 22-25 сравнени  и элементе ИЛИ 26, выход которого обозначен W.Comparison unit 4 is performed on comparison circuits 22-25 and the element OR 26, the output of which is denoted by W.

Блок управлени  5 содержит элементы И 27-30, элемент ИЛИ 31, выход ко- торого обозначен С, и два RS-тригге- ра 32 и 33, пр мые выходы которых обозначены соответственно S, и S.The control unit 5 contains elements AND 27-30, an element OR 31, the output of which is denoted C, and two RS flip-flops 32 and 33, the direct outputs of which are denoted, respectively, S, and S.

Второй ВХОД1 кодопреобразовател  1 соединен с информационным входом 7 устройства, а выход кодопреобразовател  1 - с вторым входом пам ти 2, третий вход которого подключен к адресному входу 8 устройства, четвертый вход - к первому управл емому входу 11 устройства, а выход - к первому входу регистра 3, выход которого соединен с первым входом кодопреобразовател  1 и первым входом блока 5 управлени  j второй вход которого св зан с вторым входом регистра 3, первым входом пам ти 2 и входом 9 синхронизации устройства, третий вход блока 5 управлени  соединен с вторым управThe second INPUT1 of the code converter 1 is connected to the information input 7 of the device, and the output of the code converter 1 is connected to the second memory input 2, the third input of which is connected to the address input 8 of the device, the fourth input to the first controlled input 11 of the device, and the output to the first input register 3, the output of which is connected to the first input of the encoder 1 and the first input of the control unit 5; the second input of which is connected to the second input of the register 3, the first input of the memory 2 and the input 9 of the device synchronization, the third input of the control connection unit 5 ene with a second councils

Q Q

5 0 50

5 о 5 o

0 0

5five

5five

7272

л ющим входом 12 устройства, а выход- с первым входом счетчика 6, второй вход которого подсоединен к входу 10 случайного числа устройства, а выход- к второму входу блока 4 сравнени  и выходу 13 устройства.The main input 12 of the device and the output from the first input of the counter 6, the second input of which is connected to the input 10 of a random number of the device, and the output to the second input of the comparison unit 4 and the output 13 of the device.

Кодопреобразователь 1 предназначен дл  формировани  нового кода хронологии использовани  элементов в соответствии с кодом номера элемента по входу 7 устройства и текущим кодом хронологии с выхода регистра 3, причем вторые входы схем 14-16 сравнени  соединены с информационным входом 7 устройства и первой группой выходов кодопреобразовател  1, а первые входы - соответственно с первой, второй и третьей группами выходов регистра 3. Первый выход схемы 14 сравнени  подсоединен к второму входу группы элементов И-ИЛИ 19, третий вход которой соединен с вторым (инверсным ) выходом схемы сравнени  14, первым входом элемента И 18 и первым входом элемента И 17, первый выход которого св зан с вторым входом группы элементов И-ИЛИ 20,.третий вход . которой подключен к второму (инверсионному ) выходу элемента И 17, вто- цой вход которого соединен с инверс- ным выходом схем 15 сравнени  и с вторым входом элемента И 18, первый выход которого св зан с вторым входом группы элементов И-ИЛИ 21, третий вход которой подключен к второму (инверсному ) выходу элемента И 18, тре-. тий вход которого соединен с инверсным выходом схемы 16 сравнени . Первые входы групп элементов И-ШШ 19 и 20 соединены с второй группой выходов регистра 3, четвертый вход группы элементов И-ИЛИ 19 - с первой группой выходов.регистра 3, треть  группы выходов которого св зана с четвертым входом группы элементов И-ИЛИ 20 и первым входом группы элементов , И-ИЛИ 21 , четвертЕлй вход которой подсоединен к четвертой группе выходов регистра 3. Группа выходов кодопреобразовател  1 соединенна  с входом 7 устройства, и грзшпы выходов групп элементов И-ИЛИ 19-21 соответственно соединены с вторым входом пам ти 2.Code converter 1 is designed to form a new history code of using elements in accordance with the code of the element number of input 7 of the device and the current history code from the register 3 output, the second inputs of the comparison circuits 14-16 being connected to information input 7 of the device and the first group of outputs of the code converter 1, and the first inputs, respectively, with the first, second and third groups of outputs of the register 3. The first output of the comparison circuit 14 is connected to the second input of the group of AND-OR elements 19, the third input of which is connected n with the second (inverted) output of the comparison circuit 14, a first input of AND gate 18 and a first input of AND gate 17, a first output of which is coupled to the second input group of AND-OR 20, A third input. which is connected to the second (inversion) output of the element 17, the second input of which is connected to the inverse output of the comparison circuits 15 and to the second input of the element 18, the first output of which is connected to the second input of the group of elements AND-OR 21, the third the input of which is connected to the second (inverse) output of the element And 18, tre. This input is connected to the inverse output of the comparison circuit 16. The first inputs of groups of elements I-ШШ 19 and 20 are connected to the second group of outputs of register 3, the fourth entrance of the group of elements AND-OR 19 to the first group of outputs of register 3, the third group of outputs of which is connected to the fourth entrance of the group of elements AND-OR 20 and the first input of the group of elements, AND-OR 21, the fourth input of which is connected to the fourth group of outputs of the register 3. The group of outputs of the code converter 1 is connected to the input 7 of the device, and the groups of the outputs of the groups of elements AND-OR 19-21 are respectively connected to the second memory input 2

Пам ть 2 предназначена дл  хранени  состо ни  хронологии нескольких грзшп элементов, причем требуема  группа элементов определ етс  по адMemory 2 is designed to store the state of chronology of several group of elements, with the required group of elements being determined by

313313

ресу, поступающему с адресного входа 8 устройства, соединенного с третьим входом пам ти 2, второй вход которой св зан с группами выходов кодопреобразовател  1. Первьй вход пам ти 2 , соединен с выходом СИ2 входа синхронизации 9 устройств, и  вл етс  входом записи, четвертый вход пам ти 2 подключен к первому управл ющему входу 11 устройства и  вл етс  входом разрешени  записи, а выход пам ти 2 со-, единен с первым входом регистра 3.A resuser coming from the address input 8 of the device connected to the third memory input 2, the second input of which is connected to output groups of the code converter 1. The first memory input 2 is connected to the output CI of the synchronization input 9 of the devices, and is the recording input, the fourth the memory input 2 is connected to the first control input 11 of the device and is a recording enable input, and the memory output 2 is connected to the first input of the register 3.

Регистр 3 предназначен дл  хранени  текущего состо ни  (кода) хронологии выбранной группы элементов, причем первый вход регистра 3 соединен с выходом пам ти 2, второй вход - с выходом СИ1 входа 9 синхронизации устройства, а выход - с первым вхо- дом кодопреобразовател  1 и первым входом блока 4 сравнени , причем все разр ды выхода регистра 3 разбиты на группы входов таким образом, что если в наборе из m элемейтов ведетс  хронологи  использовани  п элементов (), то число групп выходов регистра 3 равно п, а число разр дов в группе равно llogjmL и дл  случа  m « 8 и п 4 имеютс  следовательно, Register 3 is designed to store the current state (code) of the history of the selected group of elements, the first input of register 3 is connected to memory 2, the second input is connected to the output SI1 of the device synchronization input 9, and the output to the first input of the code converter 1 and the first input of block 4 is a comparison, all the bits of the output of register 3 are divided into groups of inputs so that if the set of m elements contains chronologies of using n elements (), then the number of groups of outputs of register 3 is n, and the number of bits in the group equals llogjmL and for and m «8 and claim 4, there are therefore

4группы выходов, по 3 разр да в каждой группе.4 groups of outputs, 3 bits in each group.

Блок 4 сравнени  предназначен дл  сравнени  содержимого счетчика 6 с кодами групп выходов регистра 3, причем первые входы схем 22-25 сравнени  соединены соответственно с первой, второй, третьей и четвертой группами выходов регистра 3, вторые входы схем сравнени  22-25 подключены к выходу счетчика 6,а выходы схем 22-25 сравнени  соединены соответственно с первым , вторым, третьим и четвертым входами элемента ИЛИ 26, выход которого соединен с первым входом блокаComparison unit 4 is designed to compare the contents of counter 6 with the codes of output groups of register 3, with the first inputs of comparison circuits 22-25 connected to the first, second, third and fourth groups of outputs of register 3, respectively, the second inputs of comparison circuits 22-25 are connected to the output of the counter 6, and the outputs of the comparison circuits 22-25 are connected respectively to the first, second, third and fourth inputs of the OR element 26, the output of which is connected to the first input of the block.

5управлени .5 controls

Блок 5 управлени  предназначен дл  формировани  сигналов синхронизации и управлени  работой счетчика 6, причем S-вход RS-трйггвра 33 соединен с- S-входом RS-триггера 31, вторым входом элемента ИЛИ 31, вторым управл ющим входом 12 устройства, и вторыми (инверсными) входами элементов И 27 и 28, первые входы которых св заны соответственно с выходами СИ2 и СИ1 входа 9 синхронизации устройства , выход элемента И 28 соединен с R-входом RS-триггера 32, выход S1The control unit 5 is designed to generate synchronization signals and control the operation of the counter 6, with the S input of RS-trigger 33 connected to the S input of RS flip-flop 31, the second input of the OR element 31, the second control input 12 of the device, and the second (inverse ) the inputs of the elements 27 and 28, the first inputs of which are connected respectively with the outputs CI2 and CI1 of the input 9 of the device synchronization, the output of the element I 28 is connected to the R input of the RS flip-flop 32, the output S1

00

5five

0 5 00 5 0

5five

00

5five

ОABOUT

5five

которого подключен к соответствующему входу счетчика 6, вход S2 которого соединен с соответствующим выходом RS-триггера 33, R-вход которого св зан с выходом элемента И 30, второй вход которого соединен с выходом элемента И 27 и входом элемента И 29, первый вход которого подсоединен к первому (инверсному) входу элемента И 30 и выходу W блока 4 (фиг.З), а выход элемента И 29 соединен с первым входом элемента ИЛИ 31, выход с которого соединен с соответствующим входом счетчика 6.which is connected to the corresponding input of the counter 6, the input S2 of which is connected to the corresponding output of the RS flip-flop 33, the R-input of which is connected to the output of the element 30, the second input of which is connected to the output of the element 27 and the input of the element 29, whose first input connected to the first (inverse) input of the element 30 and the output W of the block 4 (Fig. 3), and the output of the element 29 and connected to the first input of the element OR 31, the output of which is connected to the corresponding input of the counter 6.

Счетчик 6 предназначен дл  получени  номера замещаемого элемента и может быть реализован, например, на элементах 500ИЕ136, причем входы Д1, Д2 и ДЗ счетчика 6 соединены соответственно с разр дами входа IО случайного числа устройства, синхровход С счетчика 6 св зан с соответствующим выходом блока 5 управлени , выходы которого соединены с соответствующими входами счетчика 6, а выход L счетчика 6 подключен к соответствующему входу блока 4 сравнени  и выходу 13 устройства.The counter 6 is designed to obtain the number of the element to be replaced and can be implemented, for example, on the elements 500IE136, where the inputs D1, D2 and DZ of the counter 6 are connected respectively to the bits of the input IO of the random number of the device, the synchronous input C of the counter 6 is connected to the corresponding output of the block 5 control, the outputs of which are connected to the corresponding inputs of the counter 6, and the output L of the counter 6 is connected to the corresponding input of the comparator unit 4 and the output 13 of the device.

Устройство дл  выбора замещаемого элемента может быть подключено к процессору ЭВМ, например, к его буферной (КЭШ) пам ти дл  определени  номера замещаемого блока в колонке при частично-ассоциативной организации буферной пам ти или к буферу быстрой переадресации (TLB) дл  определени  номера замещаемой записи буфера при страничном сбое в системе с виртуальной пам тью. Поэтому все внешние управл ющие сигналы, сигналы синхронизации , адреса пам ти 2, номер используемого элемента с входа 7 поступают от процессора. Выход 13 устройства подаетс  в процессор. Источником случайного числа, поступающего по входу 10 устройства, может служить группа разр дов некоторого регистра процессора , обновл ющегос  с достаточной частотой.A device for selecting a replaceable element can be connected to a computer processor, for example, to its buffer (CASH) memory to determine the number of the replaced block in the column when partially associating the buffer memory or to the fast forwarding buffer (TLB) to determine the number of the replaced record buffer in case of a page fault in the system with virtual memory. Therefore, all external control signals, synchronization signals, memory addresses 2, the number of the element used from input 7 come from the processor. The output 13 of the device is fed to the processor. The source of the random number arriving at the input 10 of the device can be the group of bits of a certain processor register, which is updated with a sufficient frequency.

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

В устройстве ведетс  хронологи  использовани  группы из п (п т) наиболее часто используемых (активных) элементов набора из m элементов. Наименее активными (наиболее давно использовавшимис ) считаютс  остальные т-п элементов данного набора иThe device maintains a chronology of the use of a group of n (n m) of the most frequently used (active) elements of a set of m elements. The least active (most recently used) are the remaining mn elements of this set and

выбор среди них замещаемого элемента производитс  случайным образом.the replacement element among them is randomly selected.

Работа устройства иллюстрируетс  на примере набора из элементов и группы из п 4 наиболее активных элементов данного набора. Ведение хронологии использовани  группы наиболее активных элементов осуществл етс  кодопреобразователем 1, пам тьюThe operation of the device is illustrated by the example of a set of elements and a group of n 4 of the most active elements of this set. The chronology of the use of the group of the most active elements is maintained by code converter 1, memory

2и регистром 3. Элементам набора присваиваютс  номера от О до т-1 . Двоичный код номера элемента имеет разр дов (дл  m 8 имеет2 and register 3. The dialing elements are assigned numbers from 0 to t-1. The binary code of the element number has bits (for m 8 it has

3разр да. Поскольку хронологи  ведетс  дл  п элементов,то разр дность слоба пам ти 2, равна  разр дности регистра 3, составл ет п-Hog mГ разр дов и дл  m 8 и п 4 она равна 12 разр дам. Эти разр ды разбиваютс  на 4 группы (п 4) по 3 разр да Glog 8Г) в каждой, причем код в разр дах первой группы определ ет номер наиболее активного (последнего использовавшегос ) элемента набора, код в разр дах второй группы - номер элемента, использовавшегос  перед наиболее активным, и т.д.; наконец, код3 yes. Since the chronology is maintained for n elements, the size of the memory slot 2 is equal to the size of register 3, is n-Hog mG bits, and for m 8 and n 4 it is 12 bits. These bits are divided into 4 groups (p 4) with 3 bits of Glog 8G each, and the code in the bits of the first group determines the number of the most active (last used) element of the set, the code in the bits of the second group is the number of the element used before the most active, etc .; finally code

в разр дах четвертой группы - номер наименее активного (наиболее давно использовавшегос ) элемента в группе из четырех наиболее активных элементов данного набора. Соответственно разр ды регистра 3 разбиты на 4 группы разр дов, причем код в разр дах первой группы определ ет номер пос- . леднего использовавшегос  элемента набора, а код в разр дах четвертой группы - номер наиболее давно использовавшегос  элемента группы из четы рех элементов.in the fourth group, the number of the least active (most recently used) element in the group of the four most active elements of this set. Accordingly, the bits of register 3 are divided into 4 groups of bits, and the code in the bits of the first group determines the number after-. the last used element of the set, and the code in the bits of the fourth group is the number of the most recently used element of the group of four elements.

Пам ть 2 хранит состо ние (коды) хронологии групп элементов нескольких наборов элементов. Хронологи  группы элементов требуемого набора элементов выбираетс  по номеру данного набора, поступающему с адресного входа 8 устройства на третий вход пам ти 2. Выбранное слово пам ти 2 заноситс  в регистр 3 по импульсу СИ1, поступающему с входа 9 синхронизации устройства на первый вход пам ти 2.Memory 2 stores the state (codes) of the history of groups of elements of several sets of elements. The chronologists of the group of elements of the required set of elements are selected according to the number of the given set, coming from the address address 8 of the device to the third memory entry 2. The selected memory word 2 is entered into register 3 by the pulse SI1, coming from the input 9 of the device synchronization to the first memory input 2 .

По входу 7 устройства на второй вход кодопреобразовател  1 поступает 3-разр дный код номера используемого элемента. На первый вход кодопреобразовател  1 подаютс  выходы регистра 3, отражающие хронологию использовав ни  четырех наименее давно использоInput 7 of the device to the second input of the code converter 1 receives a 3-bit code for the number of the element used. To the first input of the code converter 1, the outputs of register 3 are supplied, reflecting the chronology using not four of them

00

1515

00

30thirty

25 25

0 0

45 45

3535

5050

5555

вавшихс  элементов набора из восьми элементов.elements of a set of eight elements.

Кодопреобразователь 1 формирует на своих выходах коды, отражающие новое состо ние хронологии использовани  четырех наиболее активных элементов данного набора из восьми элементов , причем код в разр дах первой группы выходов.определ ет номер последнего использовавшегос  (самого активного ) элемента набора, код в разр дах второй группы выходов - номер следующего по, активности элемента и т.д., неконец, код в разр дах четвертой группы выходов - номер наименее активного (наиболее давно использовавшегос ) элемента группы из четырех элементов.Code converter 1 generates codes at its outputs that reflect the new state of the history of using the four most active elements of this set of eight elements, the code in the bits of the first group of outputs. It determines the number of the last (most active) element of the set, the code in the second bits group of outputs - the number of the next by, activity of the element, etc., not the end, the code in the bits of the fourth group of outputs - the number of the least active (most recently used) element of the group of four elements Comrade

Сформированное таким образом слово поступает на второй информационный вход пам ти 2 и при наличии разрешающего сигнала с первого управл ющего входа 11 устройства, поступающего на четвертый вход пам ти 2, записываетс  в пам ть 2 по синхросигналу СИ2, поступающему с входа 9 синхронизации устройства на первый вход пам ти 2, по тому же адресу, по ко-. торому производилась выборка из пам ти 2 слова, хранившего старое состо ние хронологии использовани  группы элементов данного набора элементов .The word formed in this way enters the second information input of memory 2 and, if there is an enable signal from the first control input 11 of the device, which arrives at the fourth input of memory 2, is recorded into memory 2 via the sync signal CI2, coming from the synchronization input 9 of the device to the first memory 2, at the same address, at. Secondly, a selection was made of a memory of 2 words that preserved the old state of the chronology of using the group of elements of a given set of elements.

Пусть в группу, составленную из четырех наиболее активных элементов набора из восьми элементов с номерами от О до 7 вход т элементы 0,2,3,6 и хронологи  их использовани  такова: 2; 6; 0; 3. При этом в такой записи номер самого активного элемента группы занимает крайнее левое место, номер следующего по активности элемента указан вторым слева и т.д., а номер самого неактивного элемента в группе указьшаетс  в крайней правой позиции. Таким образом, наиболее активный элемент в группе - 2, наименее активный - 3. Слово пам ти 2, определ ющее хронологию использовани  данной группы элементов, принимаетс  по импульсу СИ1 в регистр 3, разр дьг первой группы выходов которого содержат код 2, разр ды второй группы, выходов - код 6, разр да третьей группы выходов - код О, разр ды четвертой группь выходов В4 - код 3VSuppose that the group consisting of the four most active elements of the set of eight elements with numbers from 0 to 7 includes 0,2,3,6 elements and the chronology of their use is as follows: 2; 6; 0; 3. At the same time, in such a record, the number of the most active element of the group occupies the leftmost place, the number of the next element by activity is indicated by the second left, etc., and the number of the most inactive element in the group is indicated in the extreme right position. Thus, the most active element in the group is 2, the least active is 3. Memory word 2, which determines the chronology of the use of this group of elements, is received by impulse SI1 into register 3, the bit of the first group of outputs containing code 2, the second groups, outputs - code 6, bit of the third group of outputs - code O, bits of the fourth group of outputs B4 - code 3V

Пусть на второй код кодопреобразовател  1 (фиг.1) с информационногоLet the second code of the code converter 1 (FIG. 1) from the informational

входа 7 устройства поступает 3-разр дный код номера используемого элемента , равный 0. Тогда (фиг.2) три разр да первой группы выходов кодопреобразовател  1 содержат новый код наиболее активного элемента, равный О. На первом выходе, схемы 14 сравне ни  имеетс  сигнал О, свидетельствующий о том, что пришедший код (О) не сравнилс  с кодом наиболее активного элемента в старой хронологии (2). Из этого следует, что активность элемента 2 в новой хронологии должна быть меньшей, чем в старой . На втором (инверсном) выходе схемы сравнени  14 имеетс  сигнал и на выходах группы элементов И-ИЛИ 19 оказьшаютс  разр ды первой группы выходов регистра 3. Таким образом, код в трех разр дах второй группы выходов кодопреобразовател  1 становитс  равным 2. На вьпсоде (инверсном) схемы 15 сравнени  имеетс  сигналInput 7 of the device receives a 3-bit code for the number of the element used, equal to 0. Then (Figure 2) the three bits of the first group of outputs of the code converter 1 contain a new code of the most active element equal to O. At the first output, the circuit 14 has no signal O, indicating that the incoming code (O) did not compare with the code of the most active element in the old chronology (2). From this it follows that the activity of element 2 in the new chronology should be less than in the old one. At the second (inverse) output of the comparison circuit 14, there is a signal and at the outputs of the group of AND-OR elements 19 there are bits of the first group of outputs of register 3. Thus, the code in three bits of the second group of outputs of code converter 1 becomes equal to 2. At the high signal (inverse a) comparison circuit 15 there is a signal

Выходы элемента И 18 поступают на .входы группы элементов И-ИЛИ 21, и на ее четвертых выходах имеютс  разр ды четвертой группы выходов регистра 3 т.е, код в разр дах четвертой группы выходов кодопреобразовател  1 равен 3. Таким образом, нова  хронологи  имеет вид 0; 2; 6; 3.The outputs of the AND 18 element arrive at the inputs of the AND-OR 21 group of elements, and at its fourth outputs there are bits of the fourth group of outputs of register 3, i.e., the code in bits of the fourth group of outputs of code converter 1 is 3. Thus, the new chronology has view 0; 2; 6; 3

Q Пусть на второй вход кодопреобразовател  1 с информационного входа 7 устройства поступает код номера используемого элемента, равный 5. Способом , описанным выше, на выходахQ Let the second input of the code converter 1 from the information input 7 of the device receive the code of the number of the element used, equal to 5. The method described above at the outputs

5 кодопреобразовател  1 при исходной хронологии 0; 2; 6; 3 оказьгоаютс  .соответственно коды 5; 0; 2; 6. Элемент с номером 3 переходит в группу из четырех наименее активных элемен0 тов.5 code converter 1 with initial chronology of 0; 2; 6; 3 appear to be respectively codes 5; 0; 2; 6. Element number 3 is transferred to the group of four least active elements.

Случайный выбор элемента дл  замещени  среди группы из m-n наименее активных элементов набора из m элементов осуществл етс  блоком 4 сравThe random selection of an element for replacement among a group of m-n least active elements of a set of m elements is carried out by block 4

М, свидетельствующий о несравнении 25 нени , блоком 5 управлени  и счетчипришедшего кода О с кодом 6 в разр дах второй группы выходов регистра 3 и, следовательно, на первом выходе элемента И 1 7 присутствует сигнал 1, а на втором (инверсном) выходе 30 шихс  элементов данного набора, сосэлемента И 17 - сигнал О. Это означает , что КОД номера используемого элемента , который в новой хронологии самый активный, не Ьовпал ни с кодом номера первого, ни с кодом номера второго по активности элемента в старой хронологии, следовательно, активность элемента 6 должна быть понижена . Выходы элемента И 17 поступают на входы трёх элементов И-ИЛИ из группы 20, на выходах этой группы имеютс  разр ды второй группы выходов регистра 3, т.е. код в разр дах третьей группы.выходов кодопреобразовател  1M, indicating noncompliance with 25, control unit 5 and counting code O with code 6 in the bits of the second group of outputs of the register 3 and, therefore, the first output of the AND 1 7 element contains a signal 1, and the second (inverse) output 30 of them elements of this set, co-element I 17 - signal O. This means that the code of the number of the element used, which is the most active in the new chronology, did not enter the code of the number of the first or the number of the second most active element in the old chronology, therefore, activity element 6 should be lowered. The outputs of the AND 17 element are fed to the inputs of three AND-OR elements from group 20, the outputs of this group contain bits of the second group of outputs of register 3, i.e. code in bits of the third group. code transducer outputs 1

станет равным 6. На выходе (инверс- 45 пульса СИ1 до переднего фронта сленом ) схемы сравнени  16 присутствует дующего СИ1. По переднему фронтуbecomes equal to 6. At the output (inverse of the pulse of the SI1 to the front edge of the layer) of the comparison circuit 16 there is a blowing SI1. On the front edge

сигнал О, который свидетельствуетsignal oh that testifies

о сравнении пришедшего по входу 7about comparing who came in on entry 7

устройства кода О с кодом О вdevice code O with code O in

разр дах третьей группы выходов реги- gQ , т.е. код П приема информасигнала Е RS-триггеры 32 и 33 устанавливаютс  в единичное состо ние и определ ют состо ни  сигналов иThe bits of the third group of outputs are regi-gQ, i.e. the reception signal information code P, E, the RS flip-flops 32 and 33 are set to one and the signal states and

стра 3. Тогда на первом выходе элемента И 18 имеетс  сигнал О, а на втором (инверсном) выходе элемента И 18 - сигнал 1. Это означает, что код номера используемого элемента содержитс  среди имеющихс  четырех наиболее активных элементов и, кроме того, активность оставшегос  элемента (элементов) измен тьс  не должна.page 3. Then on the first output of the element 18 there is a signal O, and on the second (inverse) output of the element 18 there is a signal 1. This means that the code of the number of the element used is contained among the four most active elements and, moreover, the activity remaining element (s) should not be changed.

ции в счетчик 6. Кроме того, сигнал Е через элемент ИЛИ 31 в виде сигнала С подаетс  на синхровход счетчика 6 и по заднему фронту сигнала Е н eg счетчик заноситс  3-разр дный код с входа 10 случайного числа устройст - ва. Пусть, например, это код 2. В этом же такте (т.е. в течение дейст.г ВИЯ сигнала Е) по адресному входу 8In addition, the signal E is fed through the OR element 31 as a signal C to the synchronous input of counter 6 and the trailing edge of the signal E n eg the counter is entered into the 3-bit code from the input 10 of the random number of the device. Suppose, for example, this is code 2. In the same clock cycle (i.e. during the validity of the VIA signal of signal E) at address input 8

ком 6. Осуществление такого случайного выбора иллюстрируетс  на примере набора из 8 элементов и группы из четырех наиболее давно использовав5com. 6. The implementation of such a random choice is illustrated by the example of a set of 8 elements and a group of four that have been used most recently.

00

то щей из элементов с номерами 1, 4, 5, 7. В группу наиболее активных элементов , следовательно, вход т элементы с номерами 0; 2; 3 и 6. Счетчик 6 (фиг.5) выполн ет операции приема информации , пр мого счета и хранени , задаваемое кодами 11, 01 и 00 соответственно, поступающими в виде сигналов S1 и S2 из блока управлени  5 (фиг.4). При необходимости определени  номера замещаемого элемента по второму управл ющему входу 12 устройства подаетс  сигнал Е, который длитс  от переднего фронта имсигнала Е RS-триггеры 32 и 33 устанавливаютс  в единичное состо ние и определ ют состо ни  сигналов иThis is the element from the numbers 1, 4, 5, 7. The group of the most active elements, therefore, includes the elements with the numbers 0; 2; 3 and 6. Counter 6 (Fig. 5) performs the operations of receiving information, direct counting and storing, defined by codes 11, 01 and 00, respectively, received as signals S1 and S2 from the control unit 5 (Fig. 4). If it is necessary to determine the number of the element to be replaced, the signal E is fed through the second control input 12 of the device, which is extended from the leading edge of the E-signal. RS flip-flops 32 and 33 are set to one and the signal states and

gQ , т.е. код П приема информации в счетчик 6. Кроме того, сигнал Е через элемент ИЛИ 31 в виде сигнала С подаетс  на синхровход счетчика 6 и по заднему фронту сигнала Е н eg счетчик заноситс  3-разр дный код с входа 10 случайного числа устройст - ва. Пусть, например, это код 2. В этом же такте (т.е. в течение дейст.г ВИЯ сигнала Е) по адресному входу 8gQ, i.e. The information reception code P is sent to counter 6. In addition, the signal E through the element OR 31 as a signal C is fed to the synchronous input of counter 6 and on the falling edge of the signal E n eg the counter is entered in the 3-bit code from input 10 of the random number of the device. Suppose, for example, this is code 2. In the same clock cycle (i.e. during the validity of the VIA signal of signal E) at address input 8

у1y1

устройства на третий вход пам ти 2 поступав : адрес того набора, один из элементов которого должен быть замещен . Этот адрес удерживаетс  на входе 8 устройства до конца операции выбора замещаемого элемента. Выбранное слово пам ти 2, содержащее номера четырех наиболее активньге элементов данного набора, по синхроимпульсу СИ1 запоминаетс  в регистре 3.the device to the third input of memory 2 received: the address of the set, one of the elements of which must be replaced. This address is retained at the input 8 of the device until the end of the operation of selecting the element to be replaced. The selected word of memory 2, containing the numbers of the four most active elements of this set, is stored in register 3 according to sync pulse SI1.

В следующем такте после окончани  действи  сигнала Е по переднему фронту импульса СИ1 RS-триггер 32 сбрасы веетс  в нуль единичным сигналом на выходе элемента И 28. Таким образом, на выходе RS-триггера 32 имеетс  сигнал , а на выходе RS-триггера 33 остаетс  сигнал , т.е. вырабатываетс  код 01, задающий режим пр мого сче та счетчика 6.In the next cycle, after the end of the action of the signal E, the leading edge of the pulse CI1 RS-flip-flop 32 drops to zero with a single signal at the output of the element E28. Thus, the output of the RS-flip-flop 32 contains a signal i.e. Code 01 is generated, which sets up the direct account mode of counter 6.

Разр ды выхода счетчика 6 поступают на второй вход блока 4 сравнени , на первый вход которого подаетс  выход регистра 3. Разр ды групп выходов регистра 3 определ ют коды номеров четырех наиболее активных элементов набора. Пусть, например, разр ды первой Группы содержат код 2, разр ды второй группы - код 6, разр ды третьей группы ВЗ - код О, раз- .р ды четвертой группы - код 3. Поскольку в счетчик 6 занесен случайньй ;код 2, на выходе схемы 22 сравнени присутствует сигнал 1,. который вы зывает на выходе элемента ИЛИ 26 состо ние сигнала . В блоке 5 управлени  сигнал разрешает прохождение синхросигнала СИ2 с выхода элемента И 27 через элемент И 29 на вход элемента ИЛИ 31, выход которого в виде сигнала С заведен на синхровход счетчика 6. По заднему фронту импульса СМ2 содержимое счетчика 6 увели The output bits of the counter 6 are fed to the second input of the comparator unit 4, the first input of which is fed to the output of the register 3. The bits of the output groups of the register 3 determine the number codes of the four most active elements of the set. Let, for example, the bits of the first Group contain code 2, the bits of the second group - code 6, the bits of the third group of OT - code O, the ranks of the fourth group - code 3. Since counter 6 is assigned random; code 2, signal 1 is present at the output of the comparison circuit 22. which causes the output signal OR 26 signal state. In block 5, the control signal permits the passage of the sync signal SI2 from the output of element AND 27 through element 29 to the input of element OR 31, the output of which in the form of signal C is inputted to the synchronous input of counter 6. On the falling edge of the CM2 pulse, the contents of counter 6 increased

чиваетс  на единицу и становитс  рав- g м  как в предлагаемом устройстве ко- ным 3. Новый код, хран щийс  в счет- допреобразователь содержит п-1 сту- чике 6, снова сравниваетс  в блоке 4 сравнени  с кодами четырех наибопень . Разр дность одного слова пам ти хронологий в устройстве-прототипе равна га-Hog тГ, а в предлагаемомThe unit is equal to and equals g, as in the proposed device, the number 3. The new code stored in the counting transducer contains n-1 jam 6 is again compared in block 4 comparison with the four naibopen codes. The width of a single word in the memory of chronologies in the device-prototype is equal to η-Hog Г, and in the proposed

лее активных элементов набора, хран щихс  в регистре 3. Так как в четвёр- gQ устройстве m-llog шГ разр дов. ЕслиThere are more active elements of the set stored in register 3. Since in the fourth-gQ device, there is m-llog bit patterns. If a

ТОЙ Группе разр дов установлен код 3, то на выходе схемы 25 сравнени  имеетс  сигнал 1, который вызывает на выходе элемента ИЛИ 26 состо ние сигнала . В блоке 5 управлени  (фиг.4) по сигналу разрешаетс  прохождение синхроимпульса СИ2 на выход с элемента ИЛИ 31 и далее на вход С счетчика 6. По заднему фронту имв пам ти необходимо хранить хронологии использовани  N наборов элементов , то экономи  емкости пам ти в предлагаемом устройстве по сравнению gg с прототипом составл ет N (m-n)llogm разр дов. Разр дность выходного регистра пам ти в устройстве-прототипе и предлагаемом равна разр дности сло ва пам ти. Следовательно, в предлага If the bit group is set to code 3, then the output of the comparison circuit 25 is signal 1, which causes the signal state at the output of the OR 26 element. In block 5 of control (Fig. 4), the signal allows the passage of a sync pulse SI2 to the output from the element OR 31 and further to the input C of the counter 6. On the falling edge of the memory, it is necessary to store the usage histories of N sets of elements, then saving memory capacity in the proposed device compared gg with prototype is N (mn) llogm bits. The size of the output memory register in the prototype device and the proposed one is equal to the memory depth of the memory. Therefore, in proposing

10ten

пульса pulse

СИ2 содержимое счетчика увеличиваетс  на единицу и становитс  равным 4. Новый код, равный 4, поступает с выхода счетчика 6 снова на вход блока 4 сравнени , где сравниваетс  с содержимым регистра 3. На этот раз на выходах схем сравнени  22-25 наход тс  сигналы Д, следо- вательно, на выходе элемента ИЛИ 26 присутствует сигнал . Сигнал блокирует в блоке 5 управлени  прохождение синхроимпульса СИ2 через элемент И 29, следовательно, на выхо5 де элемента ИЛИ 31 имеетс  сигнал О, т.е. синхровход счетчика 6 заблокирован . Импульс СИ2 проходит через элемент И 30 и, поступив на R- вход R5-TpHrrepa 33, сбрасывает егоThe CI2 counter content is incremented by one and becomes equal to 4. A new code equal to 4 comes from the output of counter 6 again to the input of comparison unit 4, where it is compared with the contents of register 3. This time, the outputs of comparison circuits 22-25 contain the signals D therefore, a signal is present at the output of the OR 26 element. The signal blocks in the control unit 5 the passage of the clock pulse CI2 through the element AND 29, therefore, at the output of the element OR 31 there is a signal O, i.e. synchronous input of counter 6 is blocked. Impulse SI2 passes through the element And 30 and, arriving at the R-input of R5-TpHrrepa 33, resets it

0 нуль. Тогда на выходах R5-TpHrre- ров 32 и 33 имеютс  сигналы и , задающие код 00, который определ ет операцию хранени  в счетчике 6. Таким образом, в счетчике 60 zero Then, at the outputs R5-TpHrrers 32 and 33, there are signals and, giving the code 00, which determines the storage operation in the counter 6. Thus, in the counter 6

5 оказываетс  код 4, не совпадающий ни с одним из кодов номеров четырех наиболее активных элементов набора. Следовательно, в счетчике находитс  код номера замещаемого элемента. Этот код и передаетс  на выход 13 устройства (фиг. 5) в качестве номера замещаемого элемента.5, code 4 does not coincide with any of the number codes of the four most active elements of the set. Consequently, the counter contains the code of the number of the element being replaced. This code is transmitted to the output 13 of the device (Fig. 5) as the number of the item to be replaced.

В предлагаемом устройстве достигаетс  уменьшение количества оборудовани  за счет введени  счетчика, блока сравнени  и блока управлени , которые осуществл ют выбор замещаемого элемента среди тех m-n элементов набора из m элементов, дл  которых не ведетс  хронологи  их использовани . Дл  ведени  хронологии использовани  всех элементов набора в устройстве- прототипе используетс  (т-1) ступенчатый кодопреобразователь, в то вре0In the proposed device, a reduction in the number of equipment is achieved due to the introduction of a counter, a comparator unit and a control unit that selects a replaceable element among those m – n elements of a set of m elements for which there is no history of their use. In order to maintain a chronology of the use of all the elements of the set in the prototype device, (t − 1) step-wise code converter is used, while

5five

00

м  как в предлагаемом устройстве ко- допреобразователь содержит п-1 сту- m as in the proposed device, the co-converter contains p-1 st

пень. Разр дность одного слова пам ти хронологий в устройстве-прототипе равна га-Hog тГ, а в предлагаемомstump. The width of a single word in the memory of chronologies in the device-prototype is equal to η-Hog Г, and in the proposed

в пам ти необходимо хранить хронологии использовани  N наборов элементов , то экономи  емкости пам ти в предлагаемом устройстве по сравнению gg с прототипом составл ет N (m-n)llogmf разр дов. Разр дность выходного регистра пам ти в устройстве-прототипе и предлагаемом равна разр дности слова пам ти. Следовательно, в предлага1 In the memory, it is necessary to store the chronologies of using N sets of elements, then the saving of memory capacity in the proposed device compared to gg with the prototype is N (m-n) llogmf bits. The size of the output register of the memory in the device-prototype and the proposed one is equal to the word size of the memory. Therefore, in offer1

емом устройстве регистр имеет на (т-п) Г разр дов меньше, чем регистр в прототипе,,а разр дность вводимого в предлагаемом устройстве счетчика всегда равна llog тГ. В результате уменьшени  числа ступене кодопреобразовател , врем  срабатывани  предлагаемого устройства незначительно превышает врем  срабатывани  устройства-прототипа.The device has a register of (tn) T bits less than the register in the prototype, and the bit value entered in the proposed device is always equal to llog tG. As a result of decreasing the number of code converter stages, the response time of the proposed device slightly exceeds the response time of the prototype device.

Claims (1)

Формула изобретени Invention Formula Устройство дл  выбора .замещаемого элемента, содержащее кодопреобразователь , пам ть и регистр, первый вход которого соединен с вьрсодом пам ти, первый вход которой соединен с входом синхронизации устройства и с вто- рым входом регистра, выход которого соединен с первым входом кодопреобразовател , второй вход которого соединен с информационным входом устройства , а выход кодопреобразовател  A device for selecting a replacement element containing a code converter, a memory and a register, the first input of which is connected to the memory code, the first input of which is connected to the synchronization input of the device and the second input of the register, the output of which is connected to the first input of the code converter, the second input which is connected to the information input of the device, and the output of the code converter от УлЗfrom Ulz 367017367017 1212 соединен с вторым входом пам ти, третий вход которой соединен с адресным входом устройства, а четвертый вход которой соединен с первым управл ющим входом устройства, о т л и ч а ю- щ е е с   тем, что, с целью упрощени  устройства оно содержит счетчик, блок управлени  и блок сравнени , первый вход которого соединен с первым входом кодопреобразовател  и выходом регистра, а выход блока сравнени  соединен с первым входом блока управлени , второй вход которого соединен с вторым входом регистра, с первым входом пам ти и входом синхронизации устройства, третий вход блока управлени  соединен с вторым управл ющим входом устройства, а выход блока управлени  соединен с первым входом счетчика, второй вход которого соединен с. входом случайного числа устройства, а выход счетчика соединен с вторым входом блока сравнени  и выходом устройства.connected to the second memory input, the third input of which is connected to the address input of the device, and the fourth input of which is connected to the first control input of the device, which, in order to simplify the device, contains counter, control unit and comparison unit, the first input of which is connected to the first input of the encoder and the register output, and the output of the comparison unit is connected to the first input of the control unit, the second input of which is connected to the second input of the register, In this case, the third input of the control unit is connected to the second control input of the device, and the output of the control unit is connected to the first input of the counter, the second input of which is connected to. the input of a random number of the device, and the output of the counter is connected to the second input of the comparator unit and the output of the device. ftuf.3ftuf.3 от. from. { --,,  {- ,, .... tpueStpueS
SU864015801A 1986-02-03 1986-02-03 Device for selecting replaced element SU1367017A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU864015801A SU1367017A1 (en) 1986-02-03 1986-02-03 Device for selecting replaced element

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU864015801A SU1367017A1 (en) 1986-02-03 1986-02-03 Device for selecting replaced element

Publications (1)

Publication Number Publication Date
SU1367017A1 true SU1367017A1 (en) 1988-01-15

Family

ID=21219238

Family Applications (1)

Application Number Title Priority Date Filing Date
SU864015801A SU1367017A1 (en) 1986-02-03 1986-02-03 Device for selecting replaced element

Country Status (1)

Country Link
SU (1) SU1367017A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
RU2390855C2 (en) * 2005-03-23 2010-05-27 Квэлкомм Инкорпорейтед Variation indicator for reducing power consumption during cache miss

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Патент СПА № 3840862, кл. G 06 F 13/00, опублик.1974. А. Guide to the IBM 3032 Processor Complex of Sistem 1370. GC20-1858-2, IBM corp. Data Processing Division N:Y, 1978, p.24-28. *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
RU2390855C2 (en) * 2005-03-23 2010-05-27 Квэлкомм Инкорпорейтед Variation indicator for reducing power consumption during cache miss

Similar Documents

Publication Publication Date Title
JP3992871B2 (en) Synchronous random access memory access method
US4733346A (en) Data processor with multiple register blocks
US5365485A (en) Fifo with fast retransmit mode
JP3156813B2 (en) Buffer control circuit
US4095283A (en) First in-first out memory array containing special bits for replacement addressing
JPS6235949A (en) Memory device
EP0484652A2 (en) First-in-first-out buffer
EP0394599A1 (en) Circuit for synchronizing data transfers between two devices operating at different speeds
US6452864B1 (en) Interleaved memory device for sequential access synchronous reading with simplified address counters
US3309671A (en) Input-output section
SU1367017A1 (en) Device for selecting replaced element
US3644895A (en) Buffer store arrangement for obtaining delayed addressing
JPS603714B2 (en) variable length shift register
US4296480A (en) Refresh counter
SU1714639A1 (en) Data interleaver-deinterleaver
SU1278977A1 (en) Content-addressable storage
US5191654A (en) Microprocessor for high speed data processing
RU2084950C1 (en) Device for address alternation in digital network
SU1280456A1 (en) Buffer storage
SU1531172A1 (en) Parallel asynchronous register
EP0117347B1 (en) Magnetic bubble memory systems
SU976438A1 (en) Device for determination of character line length
US4811212A (en) Address transformation circuit arrangement
RU1784963C (en) Code translator from gray to parallel binary one
SU913359A1 (en) Interface
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载