Claims (2)
Поставленна цель достигаетс тем, что в устройство дл сжати двоичных векторов , вьшолненое в виде матрицы запоминающих чеек, содержащей-, тстрсж и 20 Пстолбцов. (ГП П), причем кажда чейка содержит два .элемента И, элемент ИЛИ и два элемента НЕ, вход первого элемента НЕ соединен с первым информационным входом чейки и первым входом первого элемента И, выход первого элемента НЕ соединен с первым входом второго элемента И, второй вход которого соединен со вторым информационным входом чейки, в каждую чейку введен триггер , выход которого соединен с информационным выходом чейки, установочный вход триггера соединен со входом второго элемента НЕ и выходом элемента ИЛИ, первый и второй входы которого соединены с выходами первого н второго элементов И соответственно, второй вход первого элемента И соединен с третьим информационным входом чейки, выход второго элемента НЕ соединен со входом сброса . триггера, а выход ( д , j )-й чейки ( 1, ..... m , I Ij..., ) подключен ко второму шформационному входу ( i + 1, j +1) чейки и тре тьему информационному входу ( -1, j +1) чейки, к nejpBOMy входу ( j )-й чейки подключен выход ( , f-1) чейки, ко второму информационному входу - выход ( i + l,) чейки. а к третьему информационному входу выход ( -1, I - 1) чейки. На фиг. 1 приведена структура yci ройства; на фиг. 2 - функциональна схе ма чейки. Устройство состоит из одинаковых чеек 1, св занных между собой св з ми 2. Ячейка содержит элементы И 3 и 4, элемент НЕ 5, элемент ИЛИ 6, элемент НЕ 7 и триггер 8, входы 9, 1О, 11, выход 12. Устройство работает следующим образом . Исходный двоичный вектор подаетс н входы 9 чеек левой границы матрицы. В каждом такте на тактовые входы всех триггеров 8 подаетс синхронизируюишй импульс. .В результате двоичный вектор, хранившийс в триггерах 8 казвдого стол да матрицы, передаетс в преобразованном виде в соседний справа столбец. Пре образование происходит в чейке следую щим образом. В каждой чейке 1 анализируетс содержимое триггеров 8 трех чеек 1, расположенных в соседнем слев столбце в трех смежных строках. При этом при передаче вектора в соседний столбец в каждой, с троке единица переходит в нуль, если непосредственно под ней был нуль; нуль переходит в единицу если непосредственно над ним была единица; в остальных случа х информаци передаетс без изменений. После такого преобразовани кажда единииа, под которой непосредственно бы нуль, занимает его место. Таким образом , в каждом такте в очередной столбец ycTpoJteTBa переписываетс двоичный вектор, в котором все единицы, которые могли, опустились на одну позицию. Очевидно, что за П - 1 такт (в наихудше случае) выполн етс сжатие П -мерного двоичного вектора. При этом результат сжати окажетс в (n-l)-m столбце устройства. Последовательное сжатие множества двоичных векторов вьшолн етс устройством в конвейерном режиме следующим образом. Поскольку во 2-м такте частично преобразованный исходный вектор передаетс во 2-й столбец, на входы устрой ства может быть подан 2-й исходный вектор В 3-м такте 1-й вектор передаетс в 3-й столбец, 2-й - во 2-й сто бец и на входы может быть подан третий исходный вектор и т. д. Начина с (п-1)го такта с выходов 12 ( ii - l)-ro столбца будут последовательно, с интервалом D , выдаватьс результаты сжати 1-го, 2-го и других исходных векторов. Таким образом, предлагаемое устройство обеспечивает увеличение быстродействи при обработке (сжатии) последовательности двоичных векторов. Формула изобретени Устройство дл сжати двоичных аекторов , вьшолненное в виде матрицы запоминающих чеек, содержащей Гп строк и П столбцов (Ш П ), причем кажда чейка содержит два элемента И, элемент ИЛИ и два элемента НЕ, вход первого элемента НЕ соединен с первым информационным входом чейки и первым входом первого элемента И, выход первого элемента НЕ соединен .с первым входом второго элемента И, второй вход которого соединен с вторым информационным входом чейки, отличающеес тем, что, с целью повышени быстродействи , в каждую чейку введен триггер, выход которого соединен с информационным выходом чейки, установочный вход триггера соединен с входом второго элемента НЕ и выходом элемента ИЛИ, первый и второй входы которого соединены с выходами первого и второго элементов И соответственно , второй Вход первого элемента И соединен с третьим информационным входом чейки, выход второго элемента НЕ соединен с входом сброса триггера, а выход ( -(, j )-й чейки ( 1, ..., m , j 1,..., П ) подключен к второму информационному входу ( +1, I +1)-й чейки и третьему информационному входу (-, + 1)-й чейки, к первому информационному входу ( i , j )-й чейки подключен выход { i , j -1)-й чейки, 1 второму : информационному входу -выхой (I + + 1, - 1)-й чейки, а к третьему информационному входу - выход (i- 1, j - 1)-й чейки. Источники информации, прин тые во внимание при экспертизе 1.1ЕЕЕ Trans Майп. V Ю, 1974, № 12. р. 1059-1О66. This goal is achieved by the fact that a device for compressing binary vectors is implemented in the form of a matrix of memory cells containing, t, g, and 20 columns. (HU), each cell contains two AND elements, an OR element and two NO elements, the input of the first element is NOT connected to the first information input of the cell and the first input of the first element AND, the output of the first element is NOT connected to the first input of the second element AND, the second input of which is connected to the second information input of the cell, a trigger is inserted into each cell, the output of which is connected to the information output of the cell, the installation input of the trigger is connected to the input of the second element NOT and the output of the OR element, the first and second inputs of which It is connected to the outputs of the first n of the second And elements, respectively, the second input of the first And element is connected to the third information input of the cell, the output of the second element is NOT connected to the reset input. trigger, and the output (d, j) -th cell (1, ..... m, I Ij ...,) is connected to the second information input (i + 1, j +1) of the cell and the third information input ( -1, j +1) cells, the output (, f-1) of the cell is connected to the nejpBOMy input (j) -th cell, and the output (i + l,) cell is connected to the second information input. and to the third information input is the output (-1, I - 1) of the cell. FIG. 1 shows the structure of the yci of the device; in fig. 2 - functional cell layout. The device consists of identical cells 1, interconnected by links 2. The cell contains elements AND 3 and 4, element NOT 5, element OR 6, element NOT 7 and trigger 8, inputs 9, 1О, 11, output 12. Device works as follows. The original binary vector is fed to the inputs of 9 cells of the left edge of the matrix. In each clock cycle, the clock inputs of all the triggers 8 are supplied with a synchronizing pulse. As a result, the binary vector stored in the triggers 8 of the table and the matrix is transmitted in a transformed form to the right adjacent column. Pre-education occurs in the cell as follows. In each cell 1, the contents of the triggers 8 of three cells 1 located in the adjacent left column in three adjacent rows are analyzed. At the same time, when a vector is transmitted to the adjacent column in each, from the line, the unit goes to zero if there was zero directly under it; zero goes to one if there was one immediately above it; in other cases, the information is transmitted unchanged. After such a transformation, each unit, under which directly would be zero, takes its place. Thus, in each tick, in the next column ycTpoJteTBa, the binary vector is rewritten, in which all units that could have dropped one position. Obviously, in the F - 1 cycle (in the worst case), the compression of the N-dimensional binary vector is performed. The result of the compression will be in the (n-l) -m column of the device. Sequential compression of multiple binary vectors is performed by the device in a pipeline mode as follows. Since in the 2nd cycle the partially transformed source vector is transferred to the 2nd column, the 2nd source vector can be fed to the inputs of the device. In the 3rd cycle the 1st vector is transferred to the 3rd column, the 2nd vector The 2nd stationary and a third source vector can be fed to the inputs, etc. Starting from (p-1) th cycle from outputs 12 (ii-l) -ro of the column will be sequentially, with an interval of D, the results of compression 1 will be output th, 2nd and other source vectors. Thus, the proposed device provides an increase in speed in the processing (compression) of a sequence of binary vectors. Claims: A device for compressing binary vectors, implemented as a matrix of memory cells containing Gp rows and P columns (W P), each cell containing two AND elements, an OR element and two NOT elements, the first element input is NOT connected to the first information input cell and the first input of the first element AND, the output of the first element is NOT connected to the first input of the second element AND, the second input of which is connected to the second information input of the cell, characterized in that, in order to improve speed, each cell a trigger is introduced, the output of which is connected to the information output of the cell, the setup input of the trigger is connected to the input of the second element NOT and the output of the OR element, the first and second inputs of which are connected to the outputs of the first and second elements AND, respectively, the second Input of the first element AND is connected to the third information the input of the cell, the output of the second element is NOT connected to the reset input of the trigger, and the output (- (, j) -th cell (1, ..., m, j 1, ..., P) is connected to the second information input (+1 , I +1) cell and the third information input (-, + 1) cell, the first information input (i, j) cell is connected to the output {i, j -1) cell, 1 second: information input of the output (I + +1, - 1) cell , and to the third information input - output (i - 1, j - 1) -th cell. Sources of information taken into account in the examination 1.1EEЕ Trans Maip. V Yu, 1974, No. 12. p. 1059-1О66.
2. Авторское свидетельство СССР № 590747, кл.О 06 Р 15/20, 1978 (прототип).2. USSR author's certificate No. 590747, cl. О 06 Р 15/20, 1978 (prototype).