SU1116424A1 - Translator from residual class system code to position code - Google Patents

Translator from residual class system code to position code Download PDF

Info

Publication number
SU1116424A1
SU1116424A1 SU833592121A SU3592121A SU1116424A1 SU 1116424 A1 SU1116424 A1 SU 1116424A1 SU 833592121 A SU833592121 A SU 833592121A SU 3592121 A SU3592121 A SU 3592121A SU 1116424 A1 SU1116424 A1 SU 1116424A1
Authority
SU
USSR - Soviet Union
Prior art keywords
input
output
elements
inputs
trigger
Prior art date
Application number
SU833592121A
Other languages
Russian (ru)
Inventor
Владимир Леонидович Баранов
Евгений Адамович Смичкус
Original Assignee
Ордена Ленина Институт Кибернетики Им.В.М.Глушкова
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ордена Ленина Институт Кибернетики Им.В.М.Глушкова filed Critical Ордена Ленина Институт Кибернетики Им.В.М.Глушкова
Priority to SU833592121A priority Critical patent/SU1116424A1/en
Application granted granted Critical
Publication of SU1116424A1 publication Critical patent/SU1116424A1/en

Links

Landscapes

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

Abstract

ПРЕОБРАЗОВАТЕЛЬ КОДА СИСТЕ , Ш ОСТАТОЧНЫХ КЛАССОВ В ПОЗИЦИОННЫЙ КОД, содержащий блок управлени , первый сумматор, первый триггер, два элемента И, элемент Ш1И, причем пр мой выход первого триггера соединен с управл ющим входом сумматора , блок управлени  содержит генератор тактовых импульсов, триггер и элемент И, причем выход генератора тактовых импульсов соединен с первым входом элемента И, второй вход которого соединен с пр мым выходом триггера, отличающийс  тем, что, с целью повышени  быстродействи , преобразователь содержит три регистра сдвига, блок умножени , два сумматора, формирователь дополнительного кода, переключатель основани , переключатель диапазона, коммутатор, четьфе элемента И, два элемента задержки, второй триггер, блок управлени  содержит делитель частоты, распределитель, генератор одиночных импульсов, второй и третий элементы И, первый и второй элементы ИЛИ, элемент задержки,, причем вь1ход первого элемента И соединен с информационным входом делител  частоты и с первыми входами второго и третьего элементов И, инверснмн выход генератора тактовых импульсов соединен с тактовым входом генератора одиночных импульсов, выход которого соединен с единичным входом триггера, вторые входы второго и третьего элементов И соединены соответственно с выходами первого и второго элементов ИЛИ, выход делител  частоты соединен с входом распределител  и входом элемента задержки, первые входы первого и второго элементов ИЛИ соединены с выходом второго разр да распределител  и myльcoв, выходы первого и третьего разр дов которого соединены соответственно с вторыми входами первого и второго элементов ИЛИ, импульсный выход треjbero разр да распределител  импульсов соединен с нулевым входом триггера , причем в преобразователе единичные входы первого и второго триггеров ,соединены соответственно с выходами первого и второго элементов И, первый вход первого и первый вход второго элементов И соединены соответственнос выходами последнего и первого разр дов первого регистра сдвига, информационный вход которого соединен с выходом третьего элемента И, первый и второй выходы которого соединены соответственно с первым входом элемента ИЛИ и выходом второго сумматора , выход блока умножени  соединен с первым входом первого сумматора, выход которого соединен с первым входом третьего сумматора, выход первого регистра сдвига соединен с инфорSYSTEM CODE CONVERTER, WALKER RESIDUAL CLASSES INTO POSITION CODE containing control unit, first adder, first trigger, two AND elements, ШИИ element, and the direct output of the first trigger is connected to the control input of the adder, the control unit contains a clock pulse generator, and element I, and the output of the clock pulse generator is connected to the first input of the element I, the second input of which is connected to the forward trigger output, characterized in that, in order to increase speed, the converter contains three Shift register, multiplier, two adders, additional code driver, base switch, range switch, switch, AND cell, two delay elements, second trigger, control unit contains frequency divider, distributor, single pulse generator, second and third And elements, the first and second elements OR, the delay element, and the first element AND is connected to the information input of the frequency divider and to the first inputs of the second and third elements AND, the inverse output of the generator is new pulses connected to a clock input of a single pulse generator, the output of which is connected to a single trigger input, the second inputs of the second and third elements AND are connected respectively to the outputs of the first and second elements OR, the output of the frequency divider is connected to the input of the distributor and the input of the delay element, the first inputs of the first and the second element OR are connected to the output of the second bit of the distributor and myco, the outputs of the first and third bits of which are connected respectively to the second inputs of the first and second The OR elements, the pulse output of the three-pulse pulse distributor is connected to the zero trigger input, and in the converter the single inputs of the first and second triggers are connected respectively to the outputs of the first and second elements AND, the first input of the first and the first input of the second element AND are connected respectively to the outputs of the last and the first bits of the first shift register, the information input of which is connected to the output of the third element I, the first and second outputs of which are connected respectively to the first input the house of the OR element and the output of the second adder, the output of the multiplication unit is connected to the first input of the first adder, the output of which is connected to the first input of the third adder, the output of the first shift register is connected to

Description

мащюнным входом формировател  допо.)г нительного кода, выход которого соединен с первыми входами второго сумматора и четвертого элемента И, выход которого соединен с первым вход ом блока умножени , второй вход которого соединен с выходом переключател  основани , информационный вход второго регистра сдвига соединен со своим выходом, со вторым входом второго,сумматора и первым входом п того элемента И, выход которого через первый элемент задержки соединен с вторым входом первого сумматора, пр мой выход первого триггера соединен с вторым входом элемента ИЛИ, которого соединен с входом управлени  формировател  дополнительного кода, выход третьего .сумматора соединен с информационным входом третьего регистра сдвига, входы ввода данных которого соединены с выходами переключател  диапазона пр мой выход второго триггера соедине с входом управлени  коммутатора, выход которого соединен с вторым вхо дом третьего сумматора, выход третьего регистра сдвига -соединен с первым входом шестого элемента И с первым информационным входом коммутатора, второй информат- ионный вход которого соединен через второй элемент заде.ржки с выходом шестого элемента И, второй вход которого соединен с инверсным выходом первото триггера, вход сброса формировател  дополнительного кода соединен с вторыми входами первого и второго элементов И и вькодом элемента задержки блока управлени , вход запуска генератора одиночных импульсов которого соединен с входом Пуск преобразовател  первый вход элемента ИЛИ соединен с вькодом первого разр да распределител  блока управлени , входы управлени  занесением информации первого, второго и третьего сдвиговых регистров соединен с выходом генератора одиночных импульсов блока управлени  выход второго элемента И которого содинен -с входами управлени  сдвигом первого и второго регистров сдвига, вход управлени  сдвигом третьего регистра сдвига соединен с выходом третьего элемента И блока управлени , выход второго разр да распределител  которого соединен с вторыми входами четвертого и п того элементов И, нулевые входы первого и второго триггеров соединены с импульсным выходом третьего разр да распределител  блока управлени , входы ввода данных первого и второго регистров сдвига  вл ютс  первым и вторым информационными входами преобразовател , выходом которого  вл етс  данных третьего сдвигового реiHCTpa .the scraper input of the driver of the additional code, the output of which is connected to the first inputs of the second adder and the fourth element I, the output of which is connected to the first input of the multiplication unit, the second input of which is connected to the output of the base switch, the information input of the second shift register is connected to its output, with the second input of the second, the adder and the first input of the fifth element I, the output of which through the first delay element is connected to the second input of the first adder, the direct output of the first trigger is connected to the second the input of the OR element, which is connected to the control input of the additional code generator, the output of the third accumulator is connected to the information input of the third shift register, the data input inputs of which are connected to the outputs of the range switch, the forward output of the second trigger connected to the control input of the switch, the output of which is connected the second input of the third adder, the output of the third shift register is connected to the first input of the sixth element And to the first information input of the switch, the second informatonic input which is connected via the second zad.rzhki element with the output of the sixth And element, the second input of which is connected to the inverse output of the first trigger, the reset input of the additional code generator is connected to the second inputs of the first and second And elements and the code of the single pulse generator the first input of the element OR is connected to the code of the first bit of the distributor of the control unit, the inputs for controlling the input of the information of the first, second of the second and third shift registers is connected to the output of the single pulse generator of the control unit, the output of the second element, and which is connected to the shift control inputs of the first and second shift registers, the shift control input of the third shift register is connected to the output of the third control unit I, the output of the second distributor which is connected to the second inputs of the fourth and fifth elements And, the zero inputs of the first and second flip-flops are connected to the pulse output of the third bit of the distributor block at The inputs, the data inputs of the first and second shift registers are the first and second information inputs of the converter, the output of which is the data of the third shift diHCTpa.

Изобретение относитс  к вычислительной технике, предназначено дл  преобразовани  чисел из системы остаточньк классов в позиционный код и может быть использовано в циф- 5 ровых системах автоматики и телемеханики .The invention relates to computing, is intended to convert numbers from a system of residual classes to a position code, and can be used in digital automation and remote control systems.

Известен преобразователь чисел, содержапщй двоччный накапливающий ю счетчик, элемент сравнени , приемный регистр двоичного числа, суммирующий счетчик по модулю, элемент поразр дного сравнени , приемный регистр остатка кодового слова, J5 многовходовой элемент И, триггерThe number converter is known, the contents of a bassy accumulator counter, a reference element, a binary number register, a modulo-sum counter, a bitwise comparison element, a code word residue receiving register, J5 multi-input element, And trigger

управлени  и переключатель режима работы til.control and operation mode switch til.

Недостаток известного преобразовател  - низкое быстродействие.A disadvantage of the known converter is low speed.

Наиболее близким по технической сущности к изобретению  вл етс  преобразователь кода системы остаточных классов в позиционный код, содержащий блок управлени , сумматор , блок констант, п+1 счетчиков, триггер, два элемента И и элемент : ИЛИ, причем установочные входы первых п счетчиков  вл ютс  входами преобразовател , счетные их входы подключены к первому входу элемента ИЛИ и первому выходу блока управлени , второй выход которого соединен единичным входом триггера и первым входом управлени  сумматора, второй управл ющий вход которого соединен с выходом триггера, первым входой первого элемента И и управл ющим входом Сп+1)-го счетчика, установочный вход которого соединен с выходом блока констант, вход которого соединен с выходом п -го счетчи ка, выход устройства соединен с выходом сумматора, вход которого соединен с выходом элемента ИЛИ, второй вход которого соединен со.счетным входом (h-t-l)-ro счетчика и выходом первого элемента И, второй вхо которого соединен с третьим выходом блока управлени , первый и второй входы которого соединены с входом Пуск преобразовател  и выходом вто рого элемента И, первый и второй вхо ды которого соединены с выходами соответствующих счетчиков, кроме того, блок управлени .содержит гене ратор тактовых импульсов, триггер и элемент И, причем выход генератора тактовых импульсов соединен с третьим выходом блока управлени  и первым входом элемента И, второй вход которого соединен с вторым выходом блока управлени  и выходом триггера единичный и нулевой входы которого соединены с первым и вторым входами блока управлени , первый выход которого соединен с вькодом элемента И Недостатком данного преобразовател   вл етс  также низкое быстродействие . Цель изобретени  - повышение быст родействи . Поставленна  цель достигаетс  тем что преобразователь кода системы остаточных классов в позиционный код содержащий блок управлени , первый сумматорj первый триггер, первый и второй элементы И, элемент ИЛИ, причем пр мой выход первого триггера соединен с управл ющим входом сумматора , а также блок управлени , содер жащий генератор тактовых импульсов, триггер и элемент И, причем выход генератора тактовых импульсов соедин с первым входом элемента И, второй вход которого соединен с пр мым выходом триггера, содержит.первый, второй и третий регистры сдвига, блок умножени , два сумматора, формирователь дополнительного кода, переключатель основани , второй триггер, переключатель диапазона, коммутатор, третий, четвертьй, п тый и шестой элементы И, первый и второй элементы задержки, а блок управлени  содержит делитель частоты, распределитель, генератор одиночных импульсов, второй и третий элементы И, первый и второй элементы ИЛИ, элемент задержки, причем выход первого элемента И соединен с информационным входом делител  частоты и с первыми входами второго и третьего элементов И, инверсный выход генера- тора тактовых импульсов соединен с тактовым входом генератора одиночных импульсов, выход которого соединен с единичным входом триггера, вторые входы второго и третьего элементов И соединены соответственно с вь хода№1 первого и второго элементов И-ШИ, выход делител  частоты соединен с входом распределител  и входом элемента задержки, первые входы первого и второго элементов ИЛИ соединены с выходом второго разр да распределител  и тульсов, выходы первого и третьего разр дов которого соединены соответ.ственно с вторыми входами первого и второго элементов ИЛИ, импульсный выход третьего разр да распределител  импульсов соединен с нулевым входом триггера, причем в преобразователе единичные входы первого и второго триггеров соединены, соответственно с выходами первого / и второго элементов И первый вход nepBoro и первый вход второго элементов И соединены соответственно с выходами последнего и первого разр дов первого регистра сдвига, информационный вход которого соединен с выходом третьего элемента И, первый и второй входы которого соединены соответственно с первьм входом элемента ИЛИ и выходом второго сумматора , выход блока умножени  соединен с первым входом первого сумматора, выход которого соединен с первым входом третьего сумматора, выход первого регистра сдвига соединен с информационным входом формировател  дополнительного кода, выход которого соединен с первыми входами второго сумматора и четвертого элемента И, выход которого соединен с первым входом блока умножени , второй вход которого соединен с выходом переключател  основани , информационный вход второго регистра сдвига соединен со своим выходом, с вторым входом второго сумматора и первым входом п того элемента И, выход которого через первый элемент задержки соединен с вторым входим первого сумматора, пр мой выход первого триггера соединен с вторым -входом элемента RHH, выход которого соедине с входом управлени  формировател  дополнительного кода, выход третьего сумматора соединен с информационым входом третьего регистра сдвига входы ввода данньк которого соединены с выходами переключател  диапазона , пр мой выход второго триггера соединен с входом управлени  коммутатора, выход которого соединен с вторым входом третьего сумматора, выход третьего регистра сдвига соединен с первым входом шестого элемента И и с первым информационным входом коммутатора, второй информационный вход которого соединен через второй элемент задержки с выходом шестого элемента И, второй вход которого соединен с инверсным выходо первого триггера, вход сброса формировател  дополнительного кода соединен с вторыми входами первого и второго элементов И и выходом элемента задержки блока управлени , вход запуска генератора одиночных импульсов которого соединен с входом Пуск преобразовател , первьй вход элемент ИЛИ соединен с выходом первого разр да распределител  блока управлени  входы управлени  занесением информации первого, второго и третьего сдви говых регистров соединены с выходом генератора одиночных импульсов блока управлени , выход второго элемента И которого соединен с входами управлени  сдвигом первого и второго регист ров сдвига, вход управлени  сдвигом третьего регистра сдвига соединен с выходом третьего элемента И блока управлени , выход второго разр да расг1ределител  которого соединен с вторыми входами четвертого и п тог элементов И, нулевые входы первого и второго триггеров соединены с импульснБм выходом третьего разр да распределител  блока управлени , входы ввода данных первого и второго регистров сдвига  вл ютс  первьм и вторым информационными входами прёобра зовател , выходом которого  вл етс  выход данных третьего сдвигового регистра . На фиг,1 изображена структурна  схема предлагаемого преобразовател , на фиг.2 - то же, блока управлени . Схема (фиг.1) содержит блок 1 управлени , регистры 2,3 и 4 сдвига, сумматоры 5,6 и 7, блок 8 умножени , формирователь 9 дополнительного кода, переключатель 10 основани , переключатель 11 диапазона, коммутатор 12, триггеры 13 и 14, элементы И 15-20, элемент ИЛИ 21 и элементы 22 и 23 задержки. Блок управлени  (фиг,2) содержит генератор 24 тактовых импульсов, делитель 25 частоты, распределитель 26 импульсов, генератор 27 одиночных импульсов, вход 28, триггер 29, элементы И 30-32, элементы ИЛИ 33 и 34, элемент 35 задержки, выходы 36-42. Преобразователь кода системы остаточных классов в позиционный код работает следующим образом. С помощью переключател  10 устанавливают/двоичный код основани  Р системы Остаточных классов, переключатель 11 устанавливает диапазон представлени  чисел, равный , где Р и P,j основани  системы остаточнЫх классов. Запуск преобразовател  осуществл етс  сигналом на вход 28 блока 1 управлени . По сигналу запуска генератор 27 одиночных импульсов вырабатывает одиночный импульс в паузе между тактовыми импульсами генератора 24 тактовых импульсов. Выходной импульс генератора 27 одиночных импульсов устанавливает триггер 29 в единичное состо ние и поступает с выхода 36 блока 1 управлени  на шины управлени  регистров 2,3 и 4 сдвига, в которые по этому сигналу вводитс  исходна  информаци  в виде параллельных двоичных кодов. Регистры 2 и 3 сдвига содержат п разр дов, а регистр 4 сдвига -Ун 1 .разр д. Параллельные л -1 разр дные двоичные коды остатков о( и ос считываютс  с входных шин преобразо вател  и по импульсу п того выхода 36 блока 1 управлени  записываютс  в регистры 2 и 3 сдвига соответственно . Параллельный 2п-2 разр дный двоичный код Р/ диапазона предст лени  чисел считываетс  с переключател  11 и записываетс  в регистр 4 сдвига. Блок .1 управлени  после установк триггера 29 в единичное состо ние вырабатывает на выходах следующие управл ющие последовательности импульсов . Тактовые импульсы генератора 24 тактовых импульсов, действующие с частотой f , дел тс  делителем 25 частоты в п раз и поступают на вхо трехразр дного распределител  26 импульсов. Из выходных сигналов распределител  26 импульсов элементы ИЛИ 33 и 34 формируют два сигнала, имеющие длительность .n/i(. На выходе элеменThe closest in technical essence to the invention is a code converter of a system of residual classes into a position code containing a control block, an adder, a block of constants, n + 1 counters, a trigger, two AND elements and an OR element, and the installation inputs of the first n counters are converter inputs, their counting inputs are connected to the first input of the OR element and the first output of the control unit, the second output of which is connected by a single trigger input and the first control input of the adder, the second control input of which It is connected with the trigger output, the first input of the first element AND and the control input of Sp + 1) -th counter, the installation input of which is connected to the output of a block of constants, the input of which is connected to the output of the nth counter, the output of the device is connected to the output of the adder which is connected to the output of the OR element, the second input of which is connected to the counter input (htl) -ro of the counter and the output of the first element AND, the second input of which is connected to the third output of the control unit, the first and second inputs of which are connected to the Start input of the converter and the output the house of the second element And, the first and second inputs of which are connected to the outputs of the corresponding counters; in addition, the control unit contains a clock pulse generator, a trigger and an element And, the output of the clock generator is connected to the third output of the control unit and the first input element And, the second input of which is connected to the second output of the control unit and the output of the trigger unit and zero inputs of which are connected to the first and second inputs of the control unit, the first output of which is connected to the code of the element I This converter is also slow. The purpose of the invention is to increase the speed of interaction. The goal is achieved by the fact that the code converter of the system of residual classes into a position code containing a control unit, the first adder, the first trigger, the first and second AND elements, the OR element, and the direct output of the first trigger is connected to the control input of the adder, as well as the control unit containing clock generator, a trigger and an element I, and the output of the clock pulse generator connected to the first input of the element I, the second input of which is connected to the direct output of the trigger, contains the first, second and third shifts, multiplier, two adders, additional code generator, base switch, second trigger, range switch, switch, third, quarter, fifth and sixth And elements, first and second delay elements, and the control unit contains a frequency divider, a distributor, the generator of single pulses, the second and third elements AND, the first and second elements OR, the delay element, the output of the first element AND is connected to the information input of the frequency divider and the first inputs of the second and third elements AND, the inverse output of the clock pulse generator is connected to the clock input of a single pulse generator, the output of which is connected to a single trigger input, the second inputs of the second and third elements AND are connected respectively to the first path and the first and second I-SHI elements, the output of the frequency divider is connected to the input of the distributor and the input of the delay element, the first inputs of the first and second elements OR are connected to the output of the second discharge of the distributor and the pulses, the outputs of the first and third bits of which are connected respectively with the second inputs of the first and second elements OR, the pulse output of the third bit of the pulse distributor is connected to the zero input of the trigger, and in the converter the single inputs of the first and second triggers are connected, respectively, to the outputs of the first / and second elements AND the first input nepBoro and the first input of the second elements And connected respectively to the outputs of the last and first bits of the first shift register, the information input of which is connected to the output of the third element And, the first and second inputs of which are connected to Respectively with the first input of the OR element and the output of the second adder, the output of the multiplication unit is connected to the first input of the first adder, the output of which is connected to the first input of the third adder, the output of the first shift register is connected to the information input of the additional code generator, the output of which is connected to the first inputs of the second adder and the fourth element And, the output of which is connected to the first input of the multiplication unit, the second input of which is connected to the output of the base switch, the information input of the second p the shift horn is connected to its output, to the second input of the second adder and the first input of the fifth element I, the output of which through the first delay element is connected to the second input of the first adder, the direct output of the first trigger is connected to the second input of the RHH element, the output of which is connected to the control input of the shaper of the additional code, the output of the third adder is connected to the information input of the third shift register; the inputs of the input of which are connected to the outputs of the range switch, the direct output of the second trigger with dinene with the control input of the switch, the output of which is connected to the second input of the third adder, the output of the third shift register is connected to the first input of the sixth And element and to the first information input of the switch, the second information input of which is connected through the second delay element to the output of the sixth And element, the second input which is connected to the inverse output of the first trigger, the reset input of the driver additional code is connected to the second inputs of the first and second elements And the output of the delay element of the control unit For example, the start input of the single pulse generator is connected to the input of the converter start, the first input element OR is connected to the output of the first bit of the distributor of the control unit, the inputs of the first, second and third shift registers are connected to the output of the single pulse of the control unit, the output of the second element of which is connected to the shift control inputs of the first and second shift registers, the shift control input of the third shift register is connected to the output of the third The control unit, whose output of the second bit of the distributor is connected to the second inputs of the fourth and fifth elements And, the zero inputs of the first and second flip-flops are connected to the pulse output of the third bit of the distributor of the control unit, the input inputs of the first and second shift registers are first and the second information inputs of the transmitter, whose output is the output of the data of the third shift register. Fig. 1 shows a block diagram of the proposed converter; Fig. 2 shows the same control unit. The circuit (Fig. 1) contains a control unit 1, registers 2,3 and 4 shifts, adders 5,6 and 7, a multiplication unit 8, an additional code generator 9, a base switch 10, a range switch 11, a switch 12, triggers 13 and 14 , elements AND 15-20, element OR 21, and delay elements 22 and 23. The control unit (FIG. 2) contains a clock pulse generator 24, a frequency divider 25, a pulse distributor 26, a single pulse generator 27, an input 28, a trigger 29, elements AND 30-32, elements OR 33 and 34, a delay element 35, outputs 36 -42. The Converter code of the system of residual classes in the positional code works as follows. Using the switch 10, the binary code of the base P of the Residual classes system is set, the switch 11 sets the range of representation of numbers equal to, where P and P, j are the bases of the system of residual classes. The converter is started by a signal to the input 28 of the control unit 1. The trigger signal generator 27 single pulses produces a single pulse in the pause between the clock pulses of the generator 24 clock pulses. The output pulse of the single pulse generator 27 sets the trigger 29 to one state and is outputted from the output 36 of the control unit 1 to the control buses of the 2, 3 and 4 shift registers in which the source information is inputted in the form of parallel binary codes. Shift registers 2 and 3 contain n bits, and shift register 4 is Un 1. Bit. Parallel l – 1 bit binary codes of residuals σ (and the axis is read from the input buses of the converter and by the pulse 36 of the output 36 of control unit 1 are written to shift registers 2 and 3. A parallel 2n-2 bit binary code P / of the range of representation of numbers is read from switch 11 and written to shift register 4. Control unit .1 after setting the trigger 29 in one state produces the following on the outputs control sequences and Pulses. The clock pulses of the generator 24 clock pulses operating at a frequency f are divided by a frequency divider 25 times and are fed to the input of a three-bit pulse distributor 26. From the output signals of the pulse distributor 26, the elements OR 33 and 34 form two signals having a duration. n / i (. At the output of the element

ИЛИ 33 действует сигнал логический единицы во врем  первых 2 И тактов работы преобразовател  чисел, а на выходе элемента ИЛИ 34 устанавливаетс  сигнал логической единицы спуст  ( 1 тактов после запуска преобразователд чисел и действует в течение следующих 2 П тактов до конца цикла преобразовани . Выходные сигналы элементов ИЛИ 33 и 34 управл ют элементами И 31 и 32 соответственно через которые тактовые импульсы генератора 24 тактовых импульсов поступают на четвертый 37 и третий 38 выход блока 1 управлени . Таким образом , на выходе 37 блока 1 управлени действует последовательность тактовых импульсов в течение первых 2 И тактов работы преобразовател  чисел, а на третьем 38 выходе - спуст  л тактов вьфабатываетс  последовательность тактовых импульсов в течение следующих 2 и тактов.OR 33, the logical unit signal is valid during the first 2 AND clock cycles of the number converter, and the output of the OR 34 element is set to a logical unit signal after 1 clock cycle after the number converter starts up and is valid for the next 2 N cycles until the end of the conversion cycle. OR 33 and 34 control elements AND 31 and 32, respectively, through which the clock pulses of the generator 24 clock pulses arrive at the fourth 37 and third 38 output of the control unit 1. Thus, at the output 37 of the control unit 1 no valid sequence of clock pulses during the first 2 cycles of operation of the transducer and numbers, and the third outlet 38 - after n cycles vfabatyvaets sequence of clock pulses for the next 2 cycles and.

Выходные импульсы делител  25 частоты задерживаютс  элементом 35 задержки на длительность тактового импульса генератора 24 тактовых импульсов и поступают на второй 39 выход блока 1 управлени , на первом 40 и шестом 41 выходах которого дейсТ5о The output pulses of the frequency divider 25 are delayed by the delay element 35 for the duration of the clock pulse of the generator 24 clock pulses and arrive at the second 39 output of control unit 1, the first 40 and sixth 41 outputs of which act5.

вуют соответственно сигналы первого и второго разр дов распределител  26 импульсов.signals of the first and second bits of the pulse distributor 26, respectively.

Сигнал с вькода АО блока 1 управлени  поступает через элемент ИЖ 21 55 на вход управлени  формировател  9 дополнительного кода и переводит его в режим формировани  дополнительногоThe signal from the code of the AO control unit 1 enters through the element IL 21 55 to the control input of the additional code generator 9 and translates it into the formation mode

мой или дополнительный код разности (остатков /I - ( ) . Если разность остатков нечетна , то на выходе первого разр да регистра 2 сдвига действует сигнал логической единицы Если разность остатков четна , то на выходе первого разр да регистра 2 сдвига действует сигнал логического нул . Пр мой или дополнительный код разности остатков дает на выходе М-го разр да регистра 2 сдвигаmy or additional difference code (residuals / I - (). If the residual difference is odd, then the output of the first bit of shift register 2 is a logical unit signal. If the residual difference is even, then the output of the first bit of shift register 2 is a logical zero signal. Direct or additional residual difference code gives the output of the M-th bit of register 2 shift

нул  zero

сигнал логического logical signal

или еди . ницы соответственно.or one Nitsi respectively.

Спуст  И тактов после запуска пробразовател  на выходе 39 блока 1 управлени  вьфабатываетс  импульс, по которому сбрасываетс  в исходное состо ние формирователь 9 дополлительного кода, а также информаци  первого- и V -го разр дов регистра 2 сдвига, переписываетс  через элемты И 16 и 15 в триггеры 13 и 14 соответственно . Таким образом, тригге 13 содержит информацию о четности или нечетности разности остатков, а триггер 14 - о знаке разности остатков .After the clock runs, after starting the allocator, at output 39 of control unit 1, an impulse is accumulated, in which the shaper 9 of the additional code is reset to the initial state, as well as the information of the first and fifth digits of the shift register 2, is rewritten through elements 16 and 15 in triggers 13 and 14 respectively. Thus, the trigger 13 contains information about the evenness or oddness of the difference of residuals, and the trigger 14 contains information about the sign of the difference of residuals.

Во вторые И тактов двоичный код разности остатков сдвигаетс  подIn the second and clock cycles the binary code of the residual difference is shifted under

хода 37 блока 1 управлени  через формирователь 9 дополнительного кода и элемент .И 18 на первый вход блока В умножени .the course 37 of the control unit 1 through the additional code generator 9 and the element. AND 18 to the first input of the block B multiplication.

Формирователь 9 дополнительного кода преобразует дополнительный код разности остатков в пр мой код, если на его вход управлени  через кода. Под действием последовательноети тактовых импульсов с выхода 37 блока 1 управлени  двоичные коды остатков оС и сдвигаютс , начина  с младшего разр да, с выходов регистров 2 и 3 сдвига соответственно. Формирователь 9 дополнительного кода преобразует двоичный код остатка оС в дополнительный код, который поступает на первый вход сум 1атора 5. Последовательный двоичньп код, формируемый сумматоров 5 из дополнительного кода остатка к и пр мого кода остатка Ы . , сдвигаемого с выхода регистра 3 сдвига, записываетс  через элемент И 17 в регистр 2 сдвига за врем  тактов. Таким образом, спуст  и тактов после запуска преобразовател  в ре-гистре 2 сдвига устанавливаетс  .пр действием тактовых импульсов с выэлемент ИЛИ 21 поступает сигнал логической единицы пр мого выхода триггера 14 или пропускает без изменени  пр мой код разности остатков, когда триггер 14 находитс  в нулевом состо нии.The shaper 9 of the additional code converts the additional code of the residual difference into the direct code if its input is controlled via the code. Under the action of a series of clock pulses from the output 37 of the control unit 1, the binary codes of the residuals of C and shifted, starting with the least significant bit, from the outputs of the registers 2 and 3 of the shift, respectively. The shaper 9 of the additional code converts the binary code of the remainder of the C into the additional code, which is fed to the first input of the sum of the device 5. The sequential binary code formed by the adders 5 from the additional code of the residual k and the direct code of the residual N. , shifted from the output of the shift register 3, is written through the element 17 to the shift register 2 during the clock cycles. Thus, after the clock runs, the converter in shift register 2 is set. By the action of clock pulses from the element OR 21 a signal is received from the logical unit of the direct output of the trigger 14 or it passes without changing the direct code of the residual difference when the trigger 14 is in the zero condition.

Следовательно, на выходе формировател  9 дополнительного кода во врем  вторых П тактов -формируетс  пр мой код абсолютной величины разности остатков, который через элемент И 18 поступает, начина  с младшего разр да , на последовательный вход блока 8 умножени . На последнем формируетс  последовательный двоичньй код произведени  Р -о( I начина  с г.и(адшего разр да.Consequently, at the output of the additional code generator 9 during the second P cycles, a direct code of the absolute value of the residual difference is generated, which, through the AND 18 element, begins, starting with the least significant bit, to the serial input of the multiplication unit 8. In the latter, a sequential binary code of the product P -o is generated (I starting with go and (of the least bit).

Сумматор 7 устанавливаетс  в режим суммировани , если триггер 14 устанавливаетс  в единичное состо ние (знак разности остатков отрицателен ), либо в релсим вычитател , когда триггер 14 находитс  в нулевом состо нии (знак разности остатков положителен). В зависимости от режима работы сумматор 7 формируе последовательный двоичный код вели- , чины 1 сС i Р:,.-/о The adder 7 is set to the summing mode, if the trigger 14 is set to one state (the sign of the residual difference is negative), or in the subtractor condition, when the trigger 14 is in the zero state (the sign of the residual difference is positive). Depending on the mode of operation, the adder 7 generates a serial binary code of magnitude 1 cC i P:, .- / о

Последовательный двоичный код остат1са йС во врем  вторых и тактов сдвигаетс , начина  с fflaдшeгo разр да , под действием тактовых импульсов с выхода 37 блока 1 управлени  с выхода регистра 3 сдвига и поступает через элемент И 19 и элементThe serial binary code of the remainder is shifted during the second and clock cycles, starting with the flush bit, under the action of the clock pulses from the output 37 of the control unit 1 from the output of the shift register 3 and enters through the element 19 and the element

22задержки на такт на вход сумматора 7. Элемент 22 задержки обеспечивает сдвиг на один разр д последовательного двоичного кода остатка о6 по отношению к последовательному двоичному коду произведени , т.е. реализует операцию умножени  двоичного кода остатка на два.22 delays per clock to the input of adder 7. Delay element 22 shifts by one bit the consecutive binary code of the remainder o6 with respect to the serial binary product code, i.e. implements the operation of multiplying the binary code of the remainder by two.

Коммутатор 12 подключает выход регистра 4 к входу сумматора 6-, если триггер 13 находитс  в единичном состо нии (разность нечетна ) , либо подключает вход сумматора 6 к выходу элемента 23 задержки на такт, когда триггер 13 находитс  в нулевом состо нии (разность остат ков четна ). Элемент И 20 блокирует вход элемента 23 задержки, если триггер 14 находитс  в единичном состо нии, (знак разности остатков отрицателен), либо подключает выход регистра 4 сдвига к входу элементаSwitch 12 connects the output of register 4 to the input of adder 6- if trigger 13 is in one state (the odd difference), or connects the input of adder 6 to the output of clock delay element 23 when trigger 13 is in zero state (residual difference even) Element AND 20 blocks the input of delay element 23 if trigger 14 is in the single state (the sign of the residual difference is negative), or connects the output of shift register 4 to the input of element

23задержки, когда триггер 14 находитс  в нулевом состо нии (знак раз ности остатков положителен).23 delays when trigger 14 is in the zero state (the sign of the residual difference is positive).

Спуст  п тактов после запуска преобразовател  двоичный код величины Р Р сдвигаетс  под действием тактовых импульсов третьего выхода блока 1 управлени  из регистра 4 сдвига, и начина  с младшего разр да , поступает через коммутатор 12 на вход сумматора 6, когда разность остатков нечетна .After p clocks after starting the converter, the binary code of the P P value is shifted under the action of the clock pulses of the third output of the control unit 1 from the shift register 4, and starting from the least significant bit, comes through the switch 12 to the input of the adder 6 when the residual difference is odd.

В этом случае на выходе сумматора 6 формируетс  последовательный двоичньй код вели.чины Р Pfj -t 2oL t Р Ц .-i) In this case, at the output of the adder 6, a serial binary code is generated, the magnitude of the value of P Pfj -t 2oL t P C. -I)

который равен удвоенному значению преобразованного числа. Когда разность остатков четна  и знак разности остатков положителен, то двоичHbDi код Р Р(2 сдвигаетс  из регист-which is equal to twice the converted number. When the residual difference is even and the sign of the residual difference is positive, then the binary HbDi code P P (2 is shifted from register

ра 4 сдвига через элемент И 20,ra 4 shift through the element and 20,

элемент 23 задержки на такт и коммутатор 12 на вход сумматора 6. Элемент 23 задержки на такт обеспечивает сдвиг на один разр д последовательного двоичного кода величины Р по отношению к последовательному двоичному коду, формируемому на выходе сумматора 7, т.е. реализует операцию умножени  на два. В этомthe delay element 23 per clock and the switch 12 to the input of the adder 6. The delay 23 element per cycle provides a shift by one bit of the serial binary code of the value of P with respect to the serial binary code generated at the output of the adder 7, i.e. implements the multiplication operation by two. In that

случае на выходе сумматора 6 формируетс  последовательный двоичный код величины 1 1.cl iL-dJi который равен удвоенному значению преобразованного числа.In the case of the output of the adder 6, a serial binary code of value 1 1.cl iL-dJi is formed which is equal to twice the value of the transformed number.

В том случае, если разность остатков четна  и знак разности остатков отрицателен, то элемент И 20 закрыт сигналом с инверсного выхода триггера 14,и на выходе коммутатораIn that case, if the residual difference is even and the sign of the residual difference is negative, then element 20 is closed by a signal from the inverse output of the trigger 14, and at the output of the switch

12 действует нулевой двоичный код. На выходе сумматора 6 формируетс  в этом случае двоичньй код величины 2d. р,, который равен удвоенному значению преобразованного12 binary zero is valid. At the output of the adder 6, in this case, the binary code of the value 2d is generated. p ,, which is equal to twice the value of the converted

числа.numbers

Последовательный двоичный код преобразованного числа с выхода сумматора 6 записываетс , начина  с младшего разр да, в регистр 4The serial binary code of the converted number from the output of the adder 6 is written, starting with the least significant bit, into register 4

сдвига под действием тдктовых импульсов с третьего 38 выхода блока 1 управлени . Спуст  3 п тактов после запуска преобразовател  чисел на импульсном выходе третьего разр даshift under the action of torque pulses from the third 38 output of the control unit 1. After 3 n cycles after starting the number converter at the pulse output of the third bit

распределител  26 импульсов формируетс  импульс, сбрасывающий триггер 29 блока 1 управлени  в нулевое состо ние , в котором элемент И 30 блокируетс . Одновременно этот импульс поступает на седьмой 42 выход блока 1 управлени  и сбрасывает триггеры 13 и 14 в 1гулевое состо ние. Цикл преобразовани  чисел заканчиваетс , а в регистре 4 сдвига фиксируетс  двоичный код преобразованного числа. Разр дность регистра 4 сдвига выбрана так, чтобы младший разр д двоичного кода преобразованного числа (второй разр д удвоенного значени  преобразованного числа) в конце цикл преобразова,ни  находилс  в первом разр де регистра 4 сдвига.a pulse distributor 26, a pulse is formed, resetting the trigger 29 of the control unit 1 to the zero state, in which the AND 30 element is blocked. At the same time, this impulse arrives at the seventh 42 output of the control unit 1 and resets the triggers 13 and 14 to the 1-state. The number conversion loop ends, and in shift register 4, the binary code of the converted number is fixed. The shift register 4 shift is selected so that the lower bit of the binary code of the transformed number (the second bit of the double value of the transformed number) at the end of the conversion cycle is not in the first bit of the shift register 4.

XX

ffff

.-3LJp f .,/g.-3LJp f., / G

rwrw

уД I 1  DD I 1

Таким образом, при одинаковых диапазонах предста злени  чисел предложенный преобразователь примерно в 3 раза превосходит по быстродействию прототипа,а при мальве величинах диапазона представлени  с увеличение диапазона представлени  выигрыш в быстродействии предложенного устройства над прототипом растет. Кроме того, врем  преобразовани  в предпоженном посто нно и не зависит от выбора оснований сиетеьы остаточных классов и преобразуемых чисел.Thus, with the same representation ranges of numbers, the proposed converter is approximately 3 times as fast as the prototype, and with mallow values of the representation range with an increase in the representation range, the performance gain of the proposed device over the prototype increases. In addition, the conversion time in the pre-prepared is constant and does not depend on the choice of the bases of the net of residual classes and the numbers to be transformed.

MfNfMfnf

36 3736 37

39 l39 l

Claims (1)

ПРЕОБРАЗОВАТЕЛЬ КОДА СИСТЕМЫ ОСТАТОЧНЫХ КЛАССОВ В ПОЗИЦИОННЫЙ КОД, содержащий блок управления, первый сумматор, первый триггер, два элемента И, элемент ИЛИ, причем прямой выход первого триггера соединен с управляющим входом сумматора, блок управления содержит генератор тактовых импульсов, триггер и элемент И, причем выход генератора тактовых импульсов соединен с первым входом элемента И, второй вход которого соединен с прямым выходом триггера, отличающийся тем, что, с целью повышения быстродействия, преобразователь содержит три регистра сдвига, блок умножения, два сумматора, формирователь дополнительного кода, переключатель основания, переключатель диапазона, коммутатор, четыре элемента И, два элемента задержки, второй триггер, блок управления содержит делитель частоты, распределитель, генератор одиночных импульсов, второй и третий элементы И, первый и второй элементы ИЛИ, элемент 'задержки,, причем выход первого элемента И соединен с информационным входом делителя частоты и с первыми входами второго и третьего элементов И, инверсный выход генератора тактовых импульсов соединен с тактовым входом генератора одиночных импульсов, выход которого соединен с единичным входом триггера, вторые входы второго и третьего элементов И соединены соответственно с выходами первого и второго элементов ИЛИ, выход делителя частоты соединен с входом распределителя и входом элемента задержки, первые входы первого и второго элементов ИЛИ соединены с выходом второго разряда распределителя импульсов, выходы первого и третьего разрядов которого соединены соответственно с вторыми входами первого и второго элементов ИЛИ, импульсный выход третьего разряда распределителя импульсов соединен с нулевым входом триггера, причем в преобразователе единичные входы первого и второго триггеров .соединены соответственно с выходами первого и второго элементов И, первый вход первого и первый вход второго элементов И соединены соответственно.A RESIDUAL CLASS SYSTEM CONVERTER IN A POSITION CODE, comprising a control unit, a first adder, a first trigger, two AND elements, an OR element, the direct output of the first trigger being connected to a control input of the adder, the control unit contains a clock pulse generator, a trigger and an AND element, the output of the clock generator is connected to the first input of the And element, the second input of which is connected to the direct output of the trigger, characterized in that, in order to improve performance, the converter contains three registers shift unit, multiplication unit, two adders, additional code generator, base switch, range switch, switch, four AND elements, two delay elements, a second trigger, the control unit contains a frequency divider, distributor, single pulse generator, second and third AND elements, the first and the second OR element, the delay element, wherein the output of the first AND element is connected to the information input of the frequency divider and to the first inputs of the second and third AND elements, the inverse output of the clock in connected to the clock input of a single pulse generator, the output of which is connected to a single trigger input, the second inputs of the second and third elements AND are connected respectively to the outputs of the first and second elements OR, the output of the frequency divider is connected to the input of the distributor and the input of the delay element, the first inputs of the first and the second OR elements are connected to the output of the second discharge of the pulse distributor, the outputs of the first and third bits of which are connected respectively to the second inputs of the first and second OR elements, and the pulse output of the third category of the pulse distributor is connected to the zero input of the trigger, and in the converter the unit inputs of the first and second triggers are connected respectively to the outputs of the first and second elements AND, the first input of the first and first input of the second elements And are connected respectively. с выходами последнего и первого разрядов первого регистра сдвига, информационный вход которого соединен с выходом третьего элемента И, первый и второй выходы которого соединены соответственно с первым входом элемента ИЛИ и выходом второго сумматора, выход блока умножения соединен с первым входом первого сумматора, выход которого соединен с первым входом третьего сумматора, выход первого регистра сдвига соединен с инфорSU т, 1116424 мационным входом формирователя допои нительного кода, выход которого соединен с первыми входами второго сумматора и четвертого элемента И, выход которого соединен с первым входом блока умножения, второй вход которого соединен с выходом переключателя основания, информационный вход второго регистра сдвига соедит нен со своим выходом, со вторым входом второго сумматора и первым входом пятого элемента И, выход которого через первый элемент задержки соединен с вторым входом первого сумматора, прямой выход первого триггера соединен с вторым входом элемента ИЛИ, выход которого соединен с входом управления формирователя дополнительного кода, выход третьего сумматора соединен с информационным входом третьего регистра сдвига, входы ввода данных которого соединены с выходами переключателя диапазона, прямой выход второго триггера соединен с входом управления коммутатора, выход которого соединен с вторым вхо дом третьего сумматора, выход третьего регистра сдвига соединен с первым входом шестого элемента И с первым информационным входом коммутатора, второй информационный вход которого соединен через второй элемент задержки с выходом шестого элемента И, второй вход которого соединен с ин версным выходом первого триггера, вход сброса формирователя дополнительного кода соединен с вторыми входами первого и второго элементов И и выходом элемента задержки блока управления, вход запуска генератора одиночных импульсов которого соединен с входом Пуск преобразователя первый вход элемента ИЛИ соединен с выходом первого разряда распределителя блока управления, входы управления занесением информации первого, . второго и третьего сдвиговых регистров соединены с выходом генератора одиночных импульсов блока управления, выход второго элемента И которого соединен с входами управления сдвигом первого и второго регистров сдвига, вход управления сдвигом третьего регистра сдвига соединен с выходом третьего элемента И блока управления, выход второго разряда распределителя которого соединен с вторыми входами четвертого и пятого элементов И, нулевые входы первого и второго триггеров соединены с импульсным выходом третьего разряда распределителя блока управления, входы ввода данных первого и второго регистров сдвига являются первым и вторым информационными входами преобразователя, выходом которого является вы|сод данных третьего сдвигового ре-( Цистра.with the outputs of the last and first bits of the first shift register, the information input of which is connected to the output of the third AND element, the first and second outputs of which are connected respectively to the first input of the OR element and the output of the second adder, the output of the multiplication unit is connected to the first input of the first adder, the output of which is connected the first input of the third adder, the output of the first shift register is connected to inforSU t, 1116424 mation additional dome tional input of the code whose output is connected to the first inputs of the second sums ator and the fourth element And, whose output is connected to the first input of the multiplication unit, the second input of which is connected to the output of the base switch, the information input of the second shift register is connected to its output, with the second input of the second adder and the first input of the fifth element And, the output of which is through the first delay element is connected to the second input of the first adder, the direct output of the first trigger is connected to the second input of the OR element, the output of which is connected to the control input of the additional code generator, the output is the third adder is connected to the information input of the third shift register, the data input of which is connected to the outputs of the range switch, the direct output of the second trigger is connected to the control input of the switch, the output of which is connected to the second input of the third adder, the output of the third shift register is connected to the first input of the sixth element And with the first information input of the switch, the second information input of which is connected through the second delay element with the output of the sixth element And, the second input of which is connected with the inverse output of the first trigger, the reset input of the additional code generator is connected to the second inputs of the first and second elements AND and the output of the delay element of the control unit, the start input of the single pulse generator of which is connected to the input of the converter Start the first input of the OR element is connected to the output of the first discharge of the block distributor controls, inputs for controlling the entry of information first,. the second and third shift registers are connected to the output of the single pulse generator of the control unit, the output of the second element And which is connected to the inputs of the shift control of the first and second shift registers, the input of the shift control of the third shift register is connected to the output of the third element And of the control unit, the output of the second discharge of the distributor which connected to the second inputs of the fourth and fifth elements AND, the zero inputs of the first and second triggers are connected to the pulse output of the third discharge of the distributor and control inputs of the input data of the first and second shift registers are the first and second data inputs of the converter, the output of which is you | sod third data shift PE (cittern.
SU833592121A 1983-05-17 1983-05-17 Translator from residual class system code to position code SU1116424A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU833592121A SU1116424A1 (en) 1983-05-17 1983-05-17 Translator from residual class system code to position code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU833592121A SU1116424A1 (en) 1983-05-17 1983-05-17 Translator from residual class system code to position code

Publications (1)

Publication Number Publication Date
SU1116424A1 true SU1116424A1 (en) 1984-09-30

Family

ID=21063742

Family Applications (1)

Application Number Title Priority Date Filing Date
SU833592121A SU1116424A1 (en) 1983-05-17 1983-05-17 Translator from residual class system code to position code

Country Status (1)

Country Link
SU (1) SU1116424A1 (en)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
1. Авторское свидетельство СССР №574714, кл. G 06 г 5/00, 1975. 2. Авторское свидетельство СССР №924695, кл. G 06 F 5/02, 1979 (прототип). *

Similar Documents

Publication Publication Date Title
SU1116424A1 (en) Translator from residual class system code to position code
SU1647890A1 (en) Decimal counter
SU1057944A2 (en) Device for computing values of exponential function
SU1013942A1 (en) Bcd to binary code converter
SU1108442A1 (en) Function generator
SU1100577A1 (en) Phase-to-code converter
SU1171807A1 (en) Interpolating device
SU1453400A1 (en) Accumulating adder
SU1070585A1 (en) Displacement encoder
SU1177910A1 (en) Device for generating quaternary-coded sequences
SU1034174A1 (en) Vernier code/time interval converter
RU2200972C2 (en) Transorthogonal code generator
SU1157541A1 (en) Sequential multiplying device
SU1130858A1 (en) Translator from binary code to binary-coded decimal code
SU1109743A1 (en) Device for computing polynomial of second order
SU1405074A1 (en) Interpolator
SU1037420A1 (en) Pulse repetition frequency multiplier
SU1180885A1 (en) Square-law function generator
SU955051A1 (en) Integral differential calculator digital differential device
SU1413590A2 (en) Device for time scale correction
SU1367153A1 (en) Frequency divider with fractional countdown ratio
SU1180871A1 (en) Walsh function generator
SU1191908A1 (en) Device for calculating square root function
SU1100621A1 (en) Function generator
SU1462282A1 (en) Device for generating clocking pulses