Изобретение относитс к области автоматики и вычислительной техники и может быть использовано в устройствах ввода и преобразовани вычислительных, управл ющих и измерительных систем. Известно устройство дл преобразовани кода Гре в двоичный код, содержащее генератор тактовых импульсов, элемент И, элемент неравнозначности, регистр сдвига, элемент запрета, выход которого соединен со входом регистра сдвига, выход старшего разр да регистра сдвига соединен со входом элемента запрета и первым входом элемента нерав нозначности, выход которого соединен со вторым входом элемента неравнозначнос ти и первым входом элемента И, второй вход которого соединен с запрещающим входом элемента запрета и выходом генератора тактовых импульсов l|. Недостатком известного устройства вл етс то, что оно не обеспечивает вы дачу выходного кода младшими разр дам вперед. Наиболее близким техническим решением данной задачи вл етс преобразователь , содержащий п разр дный регистр сдвига, где п -число разр дов преобразуемого кода, каждый разр д которого содержит Д-триггер, синхровкодь всех разр дов которого соединены с щиной синхроимпульсов 2 . Недостатком данного устройства вл етс относительно низкое быстродействие и невозможность хранени получаемого двоичного кода в том же регистре сдвига . Целью насто щего изобретени вл етс увеличение быстродействи и обеспечение возможности хранени выходного кода в регистре сдвига. Это достигаетс тем, что предложенное устройство содержит дополнительный ( )-иразр д, а каждый разр д регистра сдвига содержит элемент И-НЕ и элемент И-ИЛИ-НЕ, первые входы элементов И-ИЛИ-НЕ всех разр дов соединены с ши. ной преобразование и с первыми входами элементов И-НЕ тех же разр дов, второй вход элемента И-ИЛИ-НЕ i -го раз р да () регистра сдвига соединен с первым выходом Д-триггера ( I -1)-го разр да регистра сдвига, третий вход эле- мента И-ИЛИ-НЕ i -го разр да регистра сдвига соединен со вторым входом элемен та И-НЕ и со вторым выходом Д- риггера выходы элементов И-НЕ всех разр дов регистра сдвига соединены с четвертыми входами элементов И-ИЛИ-НЕ, п тый вход элемента И-ИЛИ-НЕ i -го разр да регистра сдвига соединен с третьим выходом Д-триггера ( j -1)-го разр да, выходы элементов Й-ИЛИ-НЕ соединены с Д-«ходами Д-триггеров тех же разр дов. На фиг. 1 приведена структурна схема предлагаемого преобразовател , на фиг. 2 схема разр да регистра сдвига, на фиг. 3условное изображение разр да регистра сдвига. Разр д 1 регистра сдвига состоит из Д-триггера 2, элемента 3 И-ИЛИ-НЕ, элемента 4 И-НЕ, управл ющие Д-входы 5-8 задают режим функционировани разр да. Предлагаемое устройство работает следующим образом. По входам R (на фиг. 1 не показаны), производитс установка триггеров регистра в исходное (нулевое) состо ние сигналом , соответствующим логическому нулю. По входам S , (на фиг. 1 не показаны) производитс параллельный прием пбдлежащего преобразованию кода Гре в следующем пор дке: старший, п-й, разр д кода Гре записываетс в первый разр д регистра, следующий (п-1)-й, во второй , ..., младший, то есть первый, разр д кода Гре - в п-й разр д регистра. Регистр содержит (п+1) разр д. Последовательный прием кода Гре в регистр осуществл етс по третьему Д-«ходу первого разр да (фиг. 1) при наличии на шине преобразование сигнала, соответст- вующего логическому .нулю. Код Гре должен вводитьс с младших разр дов. В этом режиме предлагаемое устройство работает как обычный регистр сдвига на Д-триггерак . Разр д регистра сдвига предлагаемого устройства выполн ет функции обычного Д-триггера при наличии на его первом Д-входе сигнала, соответствующего логическому нулю. При наличии на первом Д-входе сигнала , соответствующего логической единице, разр д регистра сдвига осуществл ет сложение по mod 2 значений логических сигнатов , воздействующих на третий и четвертый Д-входы. Таким образом, в режиме преобразование работа разр да регистра предлагаемого устройства может быть описана следующим логическим уравнением: Q(.)® yfi), где x{t) - логический сигнал, воздействующий на третий D -вход в момент времени ; у(-Ь) - логический сигнал, воздействующий на четвертый; TD - вход триггера в момент времени 1 ; Q() - состо ние триггера в момент времени ( t +1). Врем дискретизируетс синхроимпульсами, так как установление триггера в какое-ппибо состо ние осуществл етс только по воздействию синхроимпульса (за исключением установки по R и S входам). Теперь, зна работу разр да регистра сдвига, легко разобрать работу предлагаемого устройства. Действительно , св зи в предлагаемом устройстве выполнены так, что дл произвольного К -го, где к-1, 2, 3, ..., п - целое число разр да регистра в режиме преобразовани справедливо соотношение x(t))Q,(t)@ /t). где o./t)0 oC/t) ;а.Ь,,..,ЭЬ„,,.„, «2., Qjit) b T n-nVz- inT соответственной, (n-1), (П-2), .,,(п-К)-й разр ды кода Гре . Если по истечении времени .. , где LQ - так же как и у прототипа, задержка распространени логического сигнала на одном логическом элементе и п - число разр дов кода Гре , на шину сиахроимпульсы подать тактирующий импульс, то в разр дах 2 + (п +1) регистра окажетс соответственно записанным код, в соответствии с логикой работы разр да- регистра л алIopWTMOM преобразовани кода Гре в двоичный код 2 . п °п-1 где а- - значение -го разр да ДВОИЧНОГ кода и i - 1, 2, 3, .... (п -1), П . Полученный двоичный код можно либо параллельно считывать дл последующей обработки, либо непосредственнорегистрировать (например, индицировать без до полнительных затрат логических схем, так как дл индикации можно использоват через согласующие устройства непосредст венно выходы разр дов 2 + (г +1) или, подав на шину преобразование сигнал , соответствующий логическому нулю, осуществл ть- по синхроимпульсам последовательную выдачу кода младшими разр дами вперед, как и в известном устрой Отметим, что дл обеспечени правиль ной работы предлагаемого устройства-в режиме преобразовани необходимо на тре тий и четвертый первого разр да подать сигналы, соответствующие логи ческому нулю, а на второй Д-вход подать сигнал, соответствующий логической единице . В режиме же сдвига при последовательном приеме информации в регистр вводимый код нужно подавать парафазно (на третий Д-вход - пр мой, а на второй Д-Бход - инверсный), на четвертый же Д-вход оп ть необходимо подать сигнал, соответствующий логическому нулю. За вл емое устройство обеспечивает уменьшение времени преобразовани кода Гре в четыре раза. Так как, Т ( 2п -1) (t + 3nt), полага , что врем переключени разр да регистра составл ет величину ЗГ , то Т, бпТо о - , а Тз ЗпТ|э - врем , за которое осуществл етс преобразование предлагаемого устройства. Предлагаемое устройство обеспечивает работу в режиме регистра сдвига, что поПреобразованиеThe invention relates to the field of automation and computer technology and can be used in input devices and converting computing, control and measuring systems. A device is known for converting a Gre code into a binary code comprising a clock pulse generator, an AND element, an unequal element, a shift register, a prohibition element whose output is connected to the input of the shift register, an output of the higher bit of the shift register is connected to the input of the prohibition element and the first input of the element unequal values, the output of which is connected to the second input of the unequal element and the first input of the element I, the second input of which is connected to the prohibitor input of the prohibition element and the generator output x pulses l |. A disadvantage of the known device is that it does not provide output of the output code to the younger ones in advance. The closest technical solution to this problem is a converter containing a n-bit shift register, where n is the number of bits of the code being converted, each bit of which contains a D-flip-flop, the synchronization code of all bits of which is connected to a sync pulse 2. The disadvantage of this device is the relatively low speed and the impossibility of storing the resulting binary code in the same shift register. The purpose of the present invention is to increase the speed and enable storage of the output code in the shift register. This is achieved by the fact that the proposed device contains an additional () ibrand, and each bit of the shift register contains an AND-NOT element and an AND-OR-NOT element, the first inputs of the AND-OR-NOT elements of all bits are connected to the shea. Noah transformation and with the first inputs of the elements AND-NOT of the same bits, the second input of the AND-OR-NOT element of the i -th row of the () shift register is connected to the first output of the D-flip-flop (I -1) -th bit of the register shift, the third input of the AND-OR-NOT element of the ith bit of the shift register is connected to the second input of the NAND element and the second output of the D rigger; the outputs of the AND-NOT elements of all the bits of the shift register are connected to the fourth inputs of the elements AND-OR-NOT, the fifth input of the element AND-OR-NOT the i-th bit of the shift register is connected to the third output of the D-flip-flop (j -1) -th bit, the outputs of the elements Y-OR-NOT are connected to the D- “moves of the D-flip-flops of the same bits. FIG. 1 shows the structural scheme of the proposed converter; FIG. 2 shows a shift register pattern, FIG. 3conditional bit image shift register. Shift 1 of the shift register consists of D-flip-flop 2, element 3 AND-OR-NOT, item 4 AND-NOT, the control D-inputs 5-8 define the mode of operation of the discharge. The proposed device works as follows. On the inputs R (not shown in Fig. 1), the register triggers are reset to the initial (zero) state by a signal corresponding to a logical zero. The inputs S, (not shown in Fig. 1), receive a parallel reception of the conversion of the Gre code in the following order: senior, nth, the discharge of the Gre code is recorded in the first register bit, the next (n-1) th, in the second, ..., the youngest, that is, the first, the digit of the Gre code is in the nth digit of the register. The register contains (n + 1) bits. Sequential reception of the Gre code in the register is carried out on the third D- "first bit stroke (Fig. 1) if there is a signal on the bus that converts a signal corresponding to a logical zero. The Gre code must be entered from a lower order. In this mode, the proposed device operates as a normal shift register for D-flip-flop. The shift register register of the proposed device performs the functions of a normal D-flip-flop when there is a signal at its first D-input corresponding to a logical zero. When there is a signal at the first D-input corresponding to a logical unit, the bit of the shift register performs modulo addition of 2 values of the logical signatures affecting the third and fourth D-inputs. Thus, in the transform mode, the operation of a bit of the register of the proposed device can be described by the following logical equation: Q (.) ® yfi), where x {t) is the logical signal acting on the third D input at the moment of time; y (-b) is the logical signal acting on the fourth; TD - trigger input at time 1; Q () is the trigger state at time (t +1). The time is sampled by the sync pulses, since the establishment of a trigger in any pbibo state is carried out only by the effects of the sync pulse (except for the installation on the R and S inputs). Now, knowing the operation of the shift register register, it is easy to disassemble the operation of the proposed device. Indeed, the connections in the proposed device are made so that for an arbitrary K -th, where K-1, 2, 3, ..., n is an integer number of register bits in the conversion mode, the relation x (t) is true) Q, ( t) @ / t). where o./t)0 oC / t); аЬЬ ,, .., ЭЬ „,,.„, “2., Qjit) b T n-nVz-inT of the corresponding, (n-1), (П -2),. ,, (p-k) th digit of the Gre code. If after the time has expired, where LQ is the same as the prototype, the delay of propagation of a logical signal on one logical element and n is the number of bits of the Gre code, a pulse is applied to the bus clock pulse, then in 2 + bits (n + 1) the register will turn out to be a correspondingly recorded code, in accordance with the logic of the work of the register - register and alWopMTOM, converting the Gre code into binary code 2. n ° n-1 where a- is the value of the -th digit of the BINARY code and i - 1, 2, 3, .... (n -1), P. The resulting binary code can either be read in parallel for further processing, or directly recorded (for example, to display without additional logic costs, since, for indication, you can use directly the outputs of bits 2 + (g +1) for indication or, the conversion of the signal corresponding to a logical zero, is carried out on clock pulses by sequentially issuing the code in lower bits ahead, as in the known device. Note that to ensure correct operation In the conversion mode, it is necessary to send signals corresponding to a logical zero to the third and fourth first bits, and a signal corresponding to a logical unit to the second D input. In the shift mode, when the information is received sequentially, paraphase (on the third D input, direct, and on the second D-go, inverse), the fourth D input, again, needs to be given a signal corresponding to a logical zero. The device claimed reduces the conversion time of the Gre code by a factor of four. Since, T (2p -1) (t + 3nt), supposing that the switching time of the register bit is the value of SG, then T, bT oo - and Tz CpT | e is the time during which the conversion of the proposed device takes place . The proposed device provides operation in the shift register mode;