SU999039A1 - Reflected binary to positional binary code converter - Google Patents

Reflected binary to positional binary code converter Download PDF

Info

Publication number
SU999039A1
SU999039A1 SU813270236A SU3270236A SU999039A1 SU 999039 A1 SU999039 A1 SU 999039A1 SU 813270236 A SU813270236 A SU 813270236A SU 3270236 A SU3270236 A SU 3270236A SU 999039 A1 SU999039 A1 SU 999039A1
Authority
SU
USSR - Soviet Union
Prior art keywords
input
converter
group
inputs
binary code
Prior art date
Application number
SU813270236A
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 SU813270236A priority Critical patent/SU999039A1/en
Application granted granted Critical
Publication of SU999039A1 publication Critical patent/SU999039A1/en

Links

Landscapes

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

Description

(54) ПРЕОБРАЗОВАТЕЛЬ ОТРАЖЕННОГО ДВОИЧНОГО КОДА В ПОЗИЦИОННЫЙ ДВОИЧНЫЙ КОД Н ОБРАТНО(54) TRANSFORMER OF REFLECTED BINARY CODE TO POSITIVE BINARY CODE N BACK

1one

Изобретение относитс  к автоматике и цифровой вычислительной технике и может быть использовано при построении измерительных систем и управл ющих систем.The invention relates to automation and digital computing and can be used in the construction of measurement systems and control systems.

Известно устройство дл  преобразовани  отраженного двоичного кода в позиционный двоичный код, содержащее элементы задержки, элементы И, ИЛИ, И-НЕ триггеры и формирователи в разр де 1.A device is known for converting a reflected binary code into a positional binary code containing delay elements, AND, OR, AND IS-NOT triggers and shapers in bit 1.

Недостаток известного устройства состоит в низком быстродействии и невозможности обратного преобразовани .A disadvantage of the known device is the low speed and the impossibility of the inverse transformation.

Наиболее близким решением данной задачи по технической сущности и схемному построению  вл етс  преобразователь двоичного кода в код Гре  и обратно , со.цержа1иий регистр из триггеров со счетными входами группы, формирователей , элементов И и элементов задержки 2,The closest solution to this problem by technical essence and circuit construction is a binary code converter into the Gre code and vice versa, comparing the register of triggers with counting inputs of the group, formers, And elements and delay elements 2,

. Недостаток известного устройства состоит в низком быстродействии, так как преобразование в (п-1) этап, каждый из которых включает в себ  сумму времен срабатывани  триггера, формировател , элемента И и времени задержк .и сигнала элементом задержки-.. A disadvantage of the known device is the low speed, since the conversion to the (p-1) stage, each of which includes the sum of the trigger times, the driver, the AND element and the delay time and the signal by the delay element.

Целью изобретени   вл етс  увеличение быстродейс ви .The aim of the invention is to increase the speed of the video.

Поставленна  цель достигаетс  тем, что в преобразователь отраженного двоичного кода в позиционный двоичный код и обратно, содержащий регистр и первую группу элементов И, первые входы которых соединены с управл ющим входом преобразовател , выходы кото10 рого  вл ютс  выходами регистра, единичный вход п-го разр да которого соединен с входом старшего разр да преобразовател , где п - число разр дов преобразуемого кода введены втора  и The goal is achieved by the fact that in a converter of a reflected binary code into a positional binary code and back containing a register and the first group of elements AND whose first inputs are connected to the control input of the converter whose outputs are register outputs, the unit input of the n-th bit and which is connected to the input of the higher bit of the converter, where n is the number of bits of the code being converted, the second and

15 треть  группы из п-1)-го элемента И группа из (п-2) полусумматоров, причем i-й полусумматор (i l-r n-1) имеет (i+1) входов и элемент НЕ, вход которого  вл етс  стробирующим входом 15 is a third of a group of n-1) -th element AND a group of (n-2) half-adders, with the i-th half-adder (i l-r n-1) having (i + 1) inputs and the element NOT, whose input is a gate input

20 преобразовател  и соединен с первыми входами элементов И второй группы, вторые входы которых соедин ены с входами соответствующих разр дов преобразовател , а выходы i-ro элемента И 20 of the converter and connected to the first inputs of elements AND of the second group, the second inputs of which are connected to the inputs of the corresponding bits of the converter, and the outputs of the i-element of AND

25 второй и третьей групп соответственно-с единичными и счетными входам соответствующих разр дов регистра, первые входы элементов И третьей группы соединены с выходом элемента НЕ, 25 of the second and third groups, respectively, with the unit and counting inputs of the corresponding register bits, the first inputs of the AND elements of the third group are connected to the output of the element NOT,

30 второй вход j -го ( j 1 п -2J злеента И третьей группы соединен с выодом j -го полусумматора группы, первый вход которого соединен с вхоом ( j +1)-го разр да преобразовател , второй вход j -го элемента И первой группы соединен с входом (j +2)-го5 разр да .преобразовател , второй вход (n-l)-ro элемента И третьей группы соединен с входом п-го разр да преобазовател  и вторым входом (п-2)-го элемента И первой группы, выход- j 10 элемента И первой группы соединен +1)-ми входами с первого по) -ый полусумматоров группы.30, the second input of the j-th (j 1 p-2J of the threw And of the third group is connected to the output of the j -th half-adder of the group, the first input of which is connected to the input of the (j +1) -th bit of the converter, the second input of the j -th element And the first the group is connected to the input of the (j +2) -th 5th digit of the converter, the second input of the (nl) -ro element AND of the third group is connected to the input of the n-th bit of the converter and the second input of the (n-2) -th element of the first group , output - j 10 of the element And the first group is connected by the +1) -th inputs from the first to the) -th half-adders of the group.

Па чертеже приведена блок-схема предлагаемого отраженного двоичного 15 кода в позиционный двоичный код и обратно .Pa drawing shows a block diagram of the proposed reflected binary 15 code in the positional binary code and vice versa.

Преобразователь содержит регистр 1, включающий в себ .триггеры 2, -пец вую 3, вторую 4 и третью 5 группы «п элементов И, группу б полусумматоров, инвертор 7, стробируюций входов, управл ющий вход 9 и входы Nf.The converter contains a register 1, which includes triggers 2, special 3, second 4 and third 5 groups of элементов elements I, group b of half-summers, inverter 7, gating inputs, control input 9 and inputs Nf.

Преобразователь отраженного двоичного кода в позиционный двоичный код 25 и обратно работает следующим образом.The Converter of the reflected binary code in the positional binary code 25 and back works as follows.

В исходном состо нии все триггеры 2 )егистра 1 наход тс  в нулевом состо нии , на информационных входах N(N ( низкие потенциалы, на стробирую- ,. щемвходе 8 высокий потенциал, на вы- ходах элементов И 4,И 5 и полусумматоЕ/ов б низкий потенциал. Подлежащий преобразованию код записываетс  в триггеры 2 регистра 1, в старший разр д непорредственно, а в остальные 35 разр ды через элементы И 4, открытые по первым входам единичным потенциалом со стробирующего входа 8. Состо ние триггеров 2 измен етс  в разр дах , в которых код равен единице. 40 При наличии на входах полусумматоров нечетного числа единиц, на их вько-дах по вл ютс  единичные .потенциалы. Дл  преобразовани  отраженного двоичного кода в позиционный двоичный код45 на управл к дий вход 9 необходимо подать единичный потенциал на все врем . преобразовани . При этом состо ние триггеров 2 в регистре 1 измен етс  на противоположное в тех разр дах, ел по отношению к которым в старших разр дах имеетс  нечетное количество единиц в исходном коде. Дл  преобразовани  позиционного двоичного кода в отраженный двоичный код на управл ющий вход 9 необходимо подать нулевой потенциал на все врем  преобразовани , В результате чего на выходах элементов И 3 устанавливаютс  нулевые потенциалы . При этом состо ние триггеров 2 в регистре 1 измен етс  на про-60 тивоположное в тех разр дах, по от- ношению к кот:орым в соседнем старшем разр де имеетс  единица в исходном коде. Дл  получени  максимального быстЕ одействи  п е6бразовател  в слу-ббIn the initial state, all the triggers 2) of Register 1 are in the zero state, at the information inputs N (N (low potentials, at the gate, 8) high potential, at the outputs of the And 4, And 5 and semi-sum / low potential b. The code to be converted is written into triggers 2 of register 1, into the most significant bit directly, and into the remaining 35 bits through AND 4 elements opened on the first inputs by a single potential from the gate input 8. The state of the triggers 2 changes to bit in which the code is equal to one. Inputs of half-summers of an odd number of units, unit potentials appear on their voltages. To convert the reflected binary code into a positional binary code 45, a single potential must be applied to the control input 9 for the entire time of the conversion. Register 1 is reversed in those bits eaten with respect to which in the higher bits there is an odd number of units in the source code. In order to convert the positional binary code into the reflected binary code, it is necessary to apply a zero potential to the control input 9 for the entire conversion time. As a result, zero potentials are set at the outputs of the And 3 elements. In this case, the state of the flip-flops 2 in the register 1 is changed to be opposite to 60 in those bits with respect to which: in the neighboring most significant bit there is a unit in the source code. In order to obtain the maximum speed of an e-bess in the service

чае, если врем  t срабатывани  полусумматора б младшего разр да больше времени t-j срабатывани  триггера 2, врем  t, от момента подачи исходного кода до момента подачи стробируквдего потенциала определ етс  выражением t + t,, где tya- врем  срабатывани  элемен- та И 3.In addition, if the response time t of the half-adder B of the lower-order bit is longer than the time t-j of the trigger 2, the time t from the moment the source code is supplied until the gate of the potential of the potential is determined by the expression t + t ,, where tya is the time of the element I 3.

Брем  преобразовани  Тпр дл  этого случа  определитс  выражениемThe conversion burden Tpr for this case is defined by

Тпр t +tng +tv,s +t, где врем  срабатывани  инвертора 7 ; tyc - врем  срабатывани  элементаTpr t + tng + tv, s + t, where the response time of the inverter 7; tyc - element response time

И 5.And 5.

Дл  получени  максимального быстродействи  преобразовател  в случае, если врем  t t.,, врем  t определ етс In order to obtain the maximum speed of the converter in case time t t. ,, time t is determined

- тгПредположим необходимо преобразовать Четырехразр дный отраженный -дво ичный код 1010 (что соответствует в дес тичной системе числу двенадцати) в позиционный двоичный код. При поступлении .исхфдного кода 1010 в старшем и во втором разр дах регистра 1. триггеры 2 установ тс  в единичное состо ние, и в регистре будет записа исходный вал. Единичный потенциал, поступивший на вход старшего разр да вызовет по вление на выходе элемента И 3 единичного потенциала, который, поступив на другой вход полусумматора б второго разр да, приведет к ее срабатыванйю так как на первом ее входе присутствует нулевой потенциал со входа N. Полусуг/пиатор 6 первого разр да не срабатывает, так ка н его входах присутствует четное число единиц. Через врем  t,после подачи исходного кода на стробируюадий вход 8 подаетс  нулевой поетнциал, закрывающий .1И 4 по первому входу Единичный потенциал с выхода инвертора 7, поступа  на первые в-ходы элементов И 5, приведет к срабатыванию тех из них, на вторых входах которых присутствует единичный потенциал. В данном случае единичный потенциал с выхода элемейтов И 5 во втором и третьем разр дах установит триггеры 2 в противоположное состо ние, в результате чего в регистре оказываетс  позиционный двоичный код 1100 (в Эдес тичной сис.те.меТ - 12).- It is supposed that it is necessary to convert the four-digit reflected-binary code 1010 (which corresponds to the number of twelve in the decimal system) to a positional binary code. Upon receipt of the source code 1010 in the high and in the second bits of the register 1. Triggers 2 are set to one, and the original shaft will be written in the register. A single potential input to the higher-order input will cause the appearance at the output of an I 3 element of a single potential, which, having entered the other input of the half-adder b of the second discharge, will trigger it since there is zero potential at the first input of it N. Semi-Aced / Piator 6 of the first digit does not work, since there are an even number of units in its inputs. After time t, after supplying the source code to the gating input 8, a zero voltage is applied, closing .1И 4 at the first input. The unit potential from the output of the inverter 7, entering the first inputs of the And 5 elements, will trigger those of them, at the second inputs which there is a single potential. In this case, the unit potential from the output of the And 5 elements in the second and third bits will set the triggers 2 to the opposite state, as a result of which the position code 1100 appears in the register (in the Electrical system T-12).

Следовательно, при преобразовании отраженного двоичного кода в позиционный двоичный код состо ние триггеров в регистре измен етс  на противоположное в тех разр дах, в которых срабатывает полусумматор при наличии нечетного количества единиц во всех старших по отношению к данному разр дов исходного кода;Consequently, when converting a reflected binary code to a positional binary code, the state of the flip-flops in the register changes to the opposite in those bits in which the half-adder is triggered when there is an odd number of units in all the senior ones in relation to this bit of the source code;

Claims (2)

Таким образом, при наличии единичного потенциала на управл ющем входе в преобразователе устанавливаетс  режим преобразовани  отраженного двоичного кода в позиционный двоичный код который предусматривает один этап пре образовани , включан ций в себ  состо  ние триггеров тех разр дов, по отношению к которым в старших разр дах исходного кода имеетс  нечетное количество единиц. Быстродействие преобразовател  ограничено лишь временем распространени  .сигнала на двух элементах И, -полусумматоре, инверторе и времени переключени  триггера. Предположим необходимо преобразовать четырехразр дный позиционный код 1101 (тринадцать) в отраженный двоичный код. Так как на первый вход полусумматора 6 второго разр да посту пает единичный сигнал информационного входа Nj , а на другом его вхсэде нулевой потенциал, то нд выходе полусумматора б по вл етс  единичный потенциал . На выходе полусумматора 6 первого разр да продолжает оставатьс  нулевой потенциал, вследствие наличи  нулевых потенциалов на его вхо-. дах. Через.врем  t после подачи исходного кода на стробирующий вход 8 подаетс  нулевой потенциал, закрывающий элементы И 4 по первому входу. Единичный потенциал с выхода инвертора 7 приведет к срабатыванию тех элементов И 5, на вторых входах которых присутствует единичный потенциал. В данном случае единичный потенциал с выхода элементЬв И 5 во. втором и третьем разр дах установит триггеры в противоположное состо ние, в резуль тате чего в регистре оказываетс  отраженный двоичный код 1011 {в дес тич ной системе -13). Следовательно, при преобразовании позиционного двоичного кода в отраже вый двоичный код состо ние триггеров в регистре измен етс  в тех разр дах в которых полусумматор срабатывает при наличии единицы в соседнем старвдам разр де исходного кода. . Таким образом, при наличии нулевого потенциала на управл ющем входе в преобразователе устанавливаетс  режим преобразовани  позиционного двоичного кода в отраженный двоичный код, который предусматривает один этап преобра зовани .. Конструктивные особенности предлагаемого технического решени  позвол ют .повысить быстродействие преобразовател , так как преобразование отраженного двоичного кода в позиционный ДВОИЧНЫЙ код происходит в один этап, включающий в себ  запись в регистр исходного кода и изменени  на противоположное состо ние триггеров тех разр дов, по отношению к которым в старших разр дах исходного кода имеет с  нечетное количество единиц. Врем  преобразовани , в общем случае, определ етс  как сумма двух времен срабатывани  элементов И, времени срабатытвани  полусугФ(атора в младшем , времени срабатывани  инвертора и времени переключени  триггера. Предлагаемый преобразователь может быть построен в виде чисто комбина- ционного устройства, дл  чего разр дные входы преобразовател  должны быть заведены на дополнительные входы полусумматоров . В этом случае необходимость в триггерах и элементах И 5 отпадает , а быстродействие преобразовател  увеличиваетс . Формула изобретени  Преобразователь отраженного двоичного кода в позиционный двоичный код и обратно, содержащий регистр и первую группу элементов И, первые входы которых соединены с управл ющим входом преобразовател , выходы которого  вл ютс  выходами регистра, единичный вход п-го разр да которого соединен с входом старшего разр да преобразовател  , где п - число разр дов преобразуемого кода, отличающийс   тем, что, с целью повышени  быстродействи , в него введены втора  и треть группы из {п-1)-го элемента И, группа из- {п-2) полусумматоров, причем i-ый полусумматор (1 1 т п-1) -имеет (i+1) входов .и элемент НЕ, вход которого  вл етс  стробирующим входом преобразовател  соединен с первыми входами элементов И второй группы, вторые входы {соторых соединены с входами соответствующих разр дов преобразовател , а выходы i-ro элемента И второй и третьей групп соответственно - с единичными и счетными входами соответсТвукхцйх разр дов регистра, первые входы элементов И третьей группы соединены с выходом элемента ЦБ, второй вход -го ( j 1 -г п -2)- элемента И третьей группы соединен с выходом j -го полусумматора группы, . первый вход которого соединен с входом ( i -И)-го разр да преобразовател , второй вход j -го элемента И первой группы соединен с входом ( +2)-го разр да преобразовател , второй вход (п-1)-го элемента И третьей группы соединен с входом п-го разр да преоб- , разовател  и вторым входом (п-2)-го элемента И первой группы, выход j -го элемента И первой группы соедине н с (j -И)-ми входами с первого по j -ый. полусумматоров группы. Источники информации, прин тые во внимание при экспертизе 1.Авторское свидетельство СССР . №369706, кл. Н 03; К 13/24,. 08.11.73. Thus, if there is a single potential at the control input in the converter, the mode of converting the reflected binary code to the positional binary code is set up, which provides for one conversion step, including the state of triggers of those bits in relation to which in the higher bits of the original The code has an odd number of units. The speed of the converter is limited only by the time of propagation of the signal on the two elements AND, the semi-adder, the inverter and the switching time of the trigger. Suppose you need to convert a four-bit position code 1101 (thirteen) into a reflected binary code. Since a single signal of the information input Nj is supplied to the first input of the half adder 6 of the second discharge, and there is zero potential on the other part of it, the output of the half summat b appears to be a single potential. At the output of the half adder 6 of the first discharge, the zero potential continues to remain, due to the presence of zero potentials at its input. dah. Time t after the source code has been applied to the gate input 8, a zero potential is applied, covering the elements AND 4 at the first input. A single potential from the output of the inverter 7 will lead to the operation of those elements And 5, on the second inputs of which there is a single potential. In this case, the unit potential from the output of the elements And 5 in. the second and third bits will set triggers in the opposite state, as a result of which the reflected binary code 1011 {in the decimal system -13) appears in the register. Consequently, when converting a positional binary code in a reflected binary code, the state of the flip-flops in the register changes in those bits in which the half-adder is triggered when there is a unit in the next bits of the source code. . Thus, if there is a zero potential at the control input in the converter, the mode of converting the positional binary code into the reflected binary code is set, which provides one conversion step. The design features of the proposed technical solution allow to increase the speed of the converter, as the conversion of the reflected binary code the positional BINARY code occurs in one step, which includes writing to the source code register and changing to the opposite state triggers of those bits, with respect to which in the higher bits of the source code has an odd number of ones. The conversion time, in general, is defined as the sum of the two response times of the elements And, the response time of the semi-augers (at the younger, the response time of the inverter and the switching time of the trigger. The proposed converter can be built as a purely combinational device, for which converter inputs must be connected to additional inputs of half-summers. In this case, the need for triggers and elements of AND 5 is no longer necessary, and the speed of the converter is increased. Neither a reflected binary code converter into a position binary code and vice versa containing a register and a first group of elements AND whose first inputs are connected to a control input of a converter whose outputs are register outputs whose unit input of the nth digit is connected to the higher-order input Yes, the converter, where p is the number of bits of the code being converted, characterized in that, in order to increase speed, the second and third groups of the (n-1) -th element AND, the group of- (p-2) half adders, are entered into it, with the i-th the accumulator (1 1 t n-1) has (i + 1) inputs. And the element, whose input is the gate input of the converter, is connected to the first inputs of elements AND of the second group, the second inputs {which are connected to the inputs of the corresponding bits of the converter, and the outputs of the i-ro element of the second and third groups, respectively, with the single and counting inputs of the corresponding register bits; the first inputs of the AND elements of the third group are connected to the output of the CB element, the second input of the (j 1 -g n -2) element And the third group is connected to the output of the j -th half-sum Group RA. the first input of which is connected to the input of the (i-I) -th bit of the converter, the second input of the j-th element of the first group is connected to the input of the (+2) -th bit of the converter, the second input of the (n-1) -th element of I the third group is connected to the input of the n-th bit of the maker, and the second input of the (n-2) -th element of the first group, the output of the jth element of the first group of the first group is connected to the (j -I) -th inputs from the first by j th semi-adders group. Sources of information taken into account in the examination 1. The author's certificate of the USSR. No. 369706, cl. H 03; K 13/24, 08.11.73. 2.Авторское свидетельство СССР № 560222, кл. G 06 F 5/02, 30.05.77 , (прототип).2. USSR author's certificate number 560222, cl. G 06 F 5/02, 30.05.77, (prototype).
SU813270236A 1981-02-17 1981-02-17 Reflected binary to positional binary code converter SU999039A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU813270236A SU999039A1 (en) 1981-02-17 1981-02-17 Reflected binary to positional binary code converter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU813270236A SU999039A1 (en) 1981-02-17 1981-02-17 Reflected binary to positional binary code converter

Publications (1)

Publication Number Publication Date
SU999039A1 true SU999039A1 (en) 1983-02-23

Family

ID=20951383

Family Applications (1)

Application Number Title Priority Date Filing Date
SU813270236A SU999039A1 (en) 1981-02-17 1981-02-17 Reflected binary to positional binary code converter

Country Status (1)

Country Link
SU (1) SU999039A1 (en)

Similar Documents

Publication Publication Date Title
US4910514A (en) D/A converter
US3609329A (en) Threshold logic for integrated full adder and the like
US4730266A (en) Logic full adder circuit
US4623872A (en) Circuit for CSD-coding of a binary number represented in two's complement
SU999039A1 (en) Reflected binary to positional binary code converter
KR0147197B1 (en) Pwm circuit of the multi-channel
US3564225A (en) Serial binary coded decimal converter
US3798434A (en) Electronic device for quintupling a binary-coded decimal number
US5909386A (en) Digital adder
SU1061131A1 (en) Binary code/compressed code translator
US3679883A (en) Full adder
SU932507A1 (en) Function generator
SU771660A1 (en) Binary-to-bunary-decimal code converter
SU840889A1 (en) Device for comparing binary numbers
SU1411777A1 (en) Device for performing fast fourier transform
SU723573A1 (en) Device for determining most significant digit
SU750729A1 (en) Multichannel code-to-time interval converter
SU877618A1 (en) Shift register
SU894874A1 (en) Device for dividing pulse frequency
SU945867A1 (en) Device for servicing requests in coming order
SU1120374A1 (en) Analog-to-digital squarer
SU679977A1 (en) Digit comparator
SU783787A1 (en) Converter of binary code into binary-decimal code of degrees and minutes
SU1192135A1 (en) Switching device
SU1151955A1 (en) Dividing device