SU922723A1 - Binary-coded decimal-to-binary code converter - Google Patents

Binary-coded decimal-to-binary code converter Download PDF

Info

Publication number
SU922723A1
SU922723A1 SU802937859A SU2937859A SU922723A1 SU 922723 A1 SU922723 A1 SU 922723A1 SU 802937859 A SU802937859 A SU 802937859A SU 2937859 A SU2937859 A SU 2937859A SU 922723 A1 SU922723 A1 SU 922723A1
Authority
SU
USSR - Soviet Union
Prior art keywords
code
binary
input
additional
trigger
Prior art date
Application number
SU802937859A
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 SU802937859A priority Critical patent/SU922723A1/en
Application granted granted Critical
Publication of SU922723A1 publication Critical patent/SU922723A1/en

Links

Landscapes

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

Description

(5) ПРЕОБРАЗОВАТЕЛЬ ДВОИЧНО-ДЕСЯТИЧНОГО Изобретение относитс  к автоматике и вычислительной технике и може:т. быть использовано при построении преобразователей кодов в арифметических устройствах. Известно устройство преобразовани  дес тичного кода в двоичный, содержащее входной регистр с дешифратором дес тичного кода, элементы И, элементы ИЛИ, запоминающее устройство, сумматор и генератор импульсов 12. Недостаток известного устройства состоит в низком быстродействии при получении дополнительного кода, что св зано с использованием дополнительных блоков преобразовани . Наиболее близким решением к изобретению по технической сущности и достигаемому результату  вл етс  преобразователь кодов, содержащий входной регистр, группу элементов И, сумматор , сдвиговый регистр, триггер и элемент И, выполн ющий преобразование КОДА- В ДВОИЧНЫЙ путем последовательного суммировани  весов групп разр дов входного кода Г2. Недостатком данного преобразовател   вл етс  ограниченность функциональных возможностей, что св зано с отсутствием возможности получени  дополнительного кода. Цель изобретени  - расширение функциональных возможностей, заключающихс  в обеспечении преобразовани  как пр мых так и дополнительного кодов . Поставленна  цель достигаетс  тем, что в преобразователь двоично-дес тичного кода в двоичный, содержащий входной регистр, группу элементов И, сумматор, сдвиговый регистр, триггер и элемент И, первый вход которого  вл етс  тактовым.входом преобразовател , второй вход соединен с выходам три.ггера, а выход элемента И соединен с входой сдвигового регистра, выходы которого соединены с первыми входами элементов И группы, вторые входы которых соединены с выходами входного регистра, вход сброса которого соединен с входом сброса преобразовател  .и входом сброса сумматора , входом начальной установки сдвигового регистра и нулевым входом триггера, единичный вход которого  вл етс  входом пуска преобразовател , тактовый вхрд сумматора соединен с выходом элемента И, введены триггер знака, дешифраторы пр мого и дополнительного кодов и группа элементов ИЛИ, первые и вторые входы ко торых соединены с сответствующими вы ходами дешифраторов пр мого и дополнительного кодов, информаци-онные вхо ды которых соединены с выходами элементов И группы, а первый и второй управл ющие входы соединены соответс венно с единичным и нулевым выходами триггера знака, выходы элементов ИЛИ группы соединены с входами сумматора На чертеже приведена блок-схема предлагаемого преобразовател . Преобразователь состоит из входного регистра 1, выходы которого соединены с первыми входами группы элементов И 2, блока 3 управлени , дешифраторов k пр мого и дополнитель ного кодов, группы элементов ИЛИ 5, сумматора 6, триггера 7 знака. . Один из возможных вариантов блока 3 управлени  содержит элемент И 8, первый вход которого соединен с тактовым входом 9 преобразовател , а второй - с выходом триггера 10, сдви говый регистр 11. Входы триггера 10 соединены: единичный - с входом 12 пуска преобразовател , а нулевой с входом 13 сброса преобразовател . Выход элемента И 8 соединен с входами синхронизации сдвигового регистра 11 и сумматора 6, Дешифраторы пр мого и дополнительного кодов построены из элементо И, ИЛИ и НЕ и включают в себ  деши(|)раторы , преобразующие дес тичный код в пр мой двоичный код дл  положительных чисел, или иначе называемые дешифраторами пр мого кода, и дешифраторы , преобразующие дес тичный код в дополнительный, или иначе называемые дешифраторами квазиобратного кода, дл  .отрицательных чисел. Преобразователь работает следую-. щим образом. Квазиобратным кодом  вл етс  синтезированный код отдельных разр дов двоичногдес тичного числа, дающий 9 при суммировании обратный или дополнительный двоичный код. Если используют в преобразователе п двоичных разр дов, то максимально записываемое число Н 2°+2+.. .2. Обозначим: Р - пр мой двоичный код; К - обратный двоичный код; тогда , , где Д - дополнительный двоичный код. пр мой, двоичный L разр дов дес тичнокод каждого из ,К.Н-Р-нЛх,, (Н-Хц) - обратный код каждого из L разр дов дес тичного числа. Если суммируют обратные коды дво- ично-дес тичных разр дов, тО получают следующий результат i, (H-X,)+{H-Xj+... + (H-Xi)LH-5: Х, . LH-P, что превышает значение обратного двоичного кода дес тичного числа на (L-1 )Н, т.е. дл  Получени  квазиобратного кода уменьшают обратный код каждого из разр дов двоично-дес тичного числа в общейсумме на (L-1 );Н. Причем дл  упрощени  преобразоват .ел  квазиобратный код единиц (X/,) берут равным обратному четырехразр дному коду единиц, что позвол ет получить его простым инвертированием пр мого кода единиц; квазиобратный код разр дов Х(-Хц стро т из тех же кодовых комбинаций, что и пр мой код соответствующих разр дов, вследствие чего Дешифраторы квазиобратного кода по сложности и числу элементов эквивалентны дешифраторам пр мого кода; квазиобратный код разр да Xj, равен Ккьи ,K(j-S, где К - обратный код разр да Хц, .H).H-ri|u, де йК-К- -КквЙ -Ки . ; 4i азница между обратным и квазиобратТо есть Ккй, K,-(L-1 )-Н+ ым кодами рдК;, И-15 как исользуютс  всего Ц разр да К,2. Аес. 90) 90 - мах.записыаемое число ё дес тках; Кз дКерт(н-900)н-9-10 ; К- Н-9--10 KL,.,H-9-10--i; . е. лК Т5+9-10%,,..,+910-Ч эта ормула справедлива дл  , дл  Ки 15+910 дл  .(5) BINARY DECIMAL CONVERTER The invention relates to automation and computing technology and can: t. be used in the construction of code converters in arithmetic devices. A device for converting a decimal code to a binary one, containing an input register with a decrypter of a decimal code, AND elements, OR elements, a memory device, an adder and a pulse generator 12, is known. A disadvantage of the known device is the low speed in obtaining an additional code, which is associated with additional conversion blocks. The closest solution to the invention in terms of technical essence and the achieved result is a code converter containing an input register, a group of elements AND, an adder, a shift register, a trigger and an element AND performing the conversion of a CODE-TO BINARY by successively summing the weights of groups of bits of the input code R2. The disadvantage of this converter is limited functionality, which is due to the inability to obtain additional code. The purpose of the invention is to enhance the functionality involved in providing conversion of both direct and additional codes. The goal is achieved by converting a binary-decimal code into a binary one, containing an input register, a group of elements And, an adder, a shift register, a trigger and an element And, whose first input is a clock. The input of the converter, the second input is connected to the outputs three .ggera, and the output of the element And is connected to the input of the shift register, the outputs of which are connected to the first inputs of elements And groups, the second inputs of which are connected to the outputs of the input register, the reset input of which is connected to the reset input of the converter and the reset input of the adder, the input of the initial setup of the shift register and the zero input of the trigger, the single input of which is the input of the converter start, the clock input of the adder is connected to the output of the AND element, the trigger of the sign, the decoders of the direct and additional codes, and the group of OR elements are entered and the second inputs of which are connected to the corresponding outputs of the decoder direct and additional codes, informational inputs of which are connected to the outputs of the elements of the AND group, and the first and second control inputs are ineny sootvets venno with unit and zero outputs sign latch, the outputs of elements or groups are connected to adder inputs of the drawing is a block diagram of the transducer. The converter consists of an input register 1, the outputs of which are connected to the first inputs of the group of elements AND 2, the control unit 3, the decoder k direct and additional codes, the group of elements OR 5, the adder 6, the trigger 7 characters. . One of the possible variants of the control unit 3 contains an element 8, the first input of which is connected to the clock input 9 of the converter, and the second - to the output of the trigger 10, shift register 11. The inputs of the trigger 10 are connected: single - to the 12 start of the converter, and zero with input 13 reset the converter. The output of the AND 8 element is connected to the synchronization inputs of the shift register 11 and the adder 6, the direct and additional code decoders are built from AND, OR, and NOT elements and include deshi (|) ratios that convert the decimal code into a direct binary code for positive numbers, or otherwise called direct code decoders, and decoders that convert a decimal code into additional code, or otherwise called quasi-inverse code decoders, for negative numbers. The converter works as follows. shimm way. The quasi-inverse code is a synthesized code of individual bits of a binary number, giving 9 when summing the reverse or additional binary code. If n binary bits are used in the converter, then the maximum recorded number is H 2 ° + 2 + .. .2. Denote: P - direct my binary code; K - reverse binary code; then, where D is an additional binary code. right, binary L bits of the decimal code of each of, K.N-R-nLh ,, (Н-Хц) is the reverse code of each of the L bits of the decimal number. If the return codes of binary-decimal digits are summed up, then the following result is obtained: i, (H-X,) + {H-Xj + ... + (H-Xi) LH-5: X,. LH-P, which exceeds the value of the inverse binary code of a decimal number by (L-1) H, i.e. to obtain a quasi-inverse code, reduce the inverse code of each of the bits of the binary-decimal number in total (L-1); H. Moreover, to simplify the conversion, the quasi-inverse code of the units (X /,) is taken to be equal to the inverse four-digit code of the units, which makes it possible to obtain it by simply inverting the forward code of the units; the quasi-inverse code of bits X (-Hz is constructed from the same code combinations as the direct code of the corresponding bits, as a result of which the decoders of the quasi-inverse code are equivalent in complexity and number of elements to the decoders of the direct code; the quasi-inverse code of discharge Xj is equal to Kc, K (jS, where K is the inverse code of the Hz bit, .H) .H-ri | u, de yK-K-KQY-Ky.; 4i difference between the inverse and quasi-turnTo is Kc, K, - (L-1 ) -N + rdK codes ;, I-15 as the whole C of the digit K is used, 2. Aes 90) 90 is a max. Record number of e decade; Кз дКерт (n-900) н-9-10; K-H-9--10 KL,., H-9-10 - i; . e. lK T5 + 9-10% ,, .., + 910-H this formula is valid for, for Ci 15 + 910 for.

5.925.92

В данном случае S определено дл  получени  обратного двоичного кода дес тичного числа.In this case, S is defined to obtain the inverse binary code of a decimal number.

Claims (2)

, и соответственно дл  получени  дополнительного двоичного числа uKt, 1it+9.10+...+9 . В качестве примера рассмотрим преобразование числа 25 в двоичный дополнительный код, т.е. преобразователь дл  двух дес тичных разр дов (). Дл  преобразовани  чисел (0-99) необходимо 7 двоичных разр дов 2°--2. . , т.е. 25 2 +2Ч2, или 0011001 пр мой .двоичный код числа 25; 1100110обратный двоичный код числа 25; 1100111дополнительнь1й двоичг ный код числа 25. Квазиобратный код единиц получае с  из пр мого кода единиц просты и вертированием, т.е. старшие разр ды начина  с 2, равны нулю. .Н-112 127-112 15 число на которое нужно уменьшить обратный код дес тков при получении обратног двоичного кода. При получении дополнительного дв ичного кода квазиобратный код дес т ков отличаетс  на И от величины об ратного кода дес тков 20 1011101, 5 0001010 (квазиобратный код),, 20+5 1011101+0001010 1100111, где совпадает с действительным значением . Этот принцип распростран етс  и на любое другое число. Записанное двоично-дес тичное число в регистре 1 через группу элементов И 2, включаемых в определенные моменты времени, блоком 3 управлени  подаетс  на входы дешифраторов Ц. В зависимости от состо ни  триггера 7, т.е. преобразовани  положительного или отрицательного числа, включаютс  те или иные цепи дешифраторов. Если преобразуемое число положительно,то включаютс  дешифраторы пр мого кода, а если отрицательно, то включаютс  дешифраторы квазиобратного кода. Двоичные эквиваленты дес тичных разр дов с выходов дешифраторов k пр мого и дополнительного кодов через группу элементов ИЛИ 5 подаютс  на сумматор 6. На выходе сумматора 6 получают двоичный код (дополнительный)- Знак двоичного дополнительного кода считывают с триггера 7. Запуск блока 3 управлени  осуществл етс  подачей импульса на вход 12 пуска, устанавливающего триггер 10 в единичное состо ние. С помощью синхроимпульсов , поступающих на вход элемента И 8, .осуществл етс  управление работой сдвигового регистра 11 и сумматора 6. В начале каждого цикла преобразовани  младший разр д регистра 11 устанавливаетс  в единичное состо ние. Это позвол ет опрашивать за один такт одну тетраду регистра 1. После опроса последней 7.9 тетрады регистра 1 сдвиговый регистр 11 переводитс  в нулевое состо ние. Эффективность предлагаемого устройства заключаетс  в повышений быст родействи  преобразовани . Формула изобретени  Преобразователь двоично-дес тично го кода в двоичный, содержащий входной регистр, группу элементов И, сумматор, сдвиговый регистр, триггер и элемент И, первый вход которого  вл етс  тактовым входом преобразовател  второй вход соединен с выходом триггера, а выход элемента И соединен с входом сдвигового регистра , выходы которого соединены с первыми входами элементов И группы, вторые входы которых соединены с выходами входного регистра, вход сброса которого соединен с входом сброса преобразовател  и входом сброса сумматора, входом начальной установки сдвигового регистра и нулевым входом триггера, единичный вход кото рого  вл етс  входом пуска преобразо 3 вател , тактовый вход сумматора сое-, динен с выходом элемента И, отличающий с  тем, что, с целью расширени  функциональных возможностей , заключающихс  в обеспечении преобразовани  как пр мых, так и дополнительного кодов, в него введены триггер знака, дешифраторы пр мого и дополнительного кодов и группа элементов ИЛИ, первые и вторые входы, которых соединены с соответствующими выходами дешифраторов пр мого и дополнительного кодов, информационные входы которых соединены с выходами элементов И группы, а первый и второй управл ющие входы соединены соответственно с единичным и нулевым выходами триггера знака, выходы элементов ИЛИ группы соединены с входами сумматора. Источники информации, прин тые во внимание при экспертизе 1. Авторское свидетельство СССР № 226260, кл. G Об F 5/02, 1968. , and accordingly for obtaining an additional binary number uKt, 1it + 9.10 + ... + 9. As an example, consider the conversion of the number 25 to a binary additional code, i.e. converter for two decimal digits (). To convert numbers (0-99), 7 binary bits 2 ° - 2 are needed. . i.e. 25 2 + 2Ч2, or 0011001 forward my. Binary code of the number 25; 1100110 return binary code of the number 25; 1100111 is an additional binary code of 25. The quasi-return code of units obtained from the direct code of units is simple and is rotated, i.e. most significant bits starting from 2 are zero. .Н-112 127-112 15 is the number by which the reverse code of the tens must be reduced when receiving the reverse binary code. Upon receipt of an additional two-digit code, the quasi-inverse code of tenths differs by AND from the value of the return code of tens 20 1011101, 5 0001010 (quasi-inverse code) ,, 20 + 5 1011101 + 0001010 1100111, where it coincides with the actual value. This principle applies to any other number. The recorded binary-decimal number in register 1 through the group of elements AND 2 included at certain points in time is transmitted by control unit 3 to the inputs of decoders C. Depending on the state of the trigger 7, i.e. conversions of a positive or negative number, one or another decoder circuit is included. If the number to be converted is positive, then direct code decoders are included, and if negative, then quasi-inverse code decoders are included. Binary equivalents of decimal bits from the outputs of the decoder k direct and additional codes through the group of elements OR 5 are fed to the adder 6. At the output of the adder 6, a binary code (additional) is obtained - The binary additional code is read from trigger 7. The control unit 3 is started. a pulse is applied to the start input 12, which sets the trigger 10 into one state. Using the clock pulses entering the input of the AND 8 element, the operation of the shift register 11 and the adder 6 is controlled. At the beginning of each conversion cycle, the lower order of register 11 is set to the unit state. This allows polling one tetrad of register 1 in one clock. After polling the last 7.9 tetrads of register 1, the shift register 11 is transferred to the zero state. The effectiveness of the proposed device consists in increasing the speed of transformation. Claims Binary-to-binary code to binary converter containing input register, AND group, adder, shift register, trigger and AND element, the first input of which is the clock input of the second converter connected to the trigger output, and the output of the AND element connected with the input of the shift register, the outputs of which are connected to the first inputs of elements AND groups, the second inputs of which are connected to the outputs of the input register, the reset input of which is connected to the reset input of the converter and the reset input to of the dummy, the input of the initial installation of the shift register and the zero input of the trigger, the single input of which is the input of the converter 3 start, the clock input of the adder is connected to the output of the AND element, which differs from the fact that, in order to expand the functionality providing the conversion of both direct and additional codes, it introduces a character trigger, decoders of direct and additional codes, and a group of OR elements, the first and second inputs, which are connected to the corresponding decryption outputs The first and second control inputs are connected to the unit and zero outputs of the sign trigger, the outputs of the OR elements of the group are connected to the inputs of the adder. Sources of information taken into account during the examination 1. USSR Author's Certificate No. 226260, cl. G About F 5/02, 1968. 2. Авторское свидетельство СССР W 637808, кл. G Об F 5/02, 1975 (прототип ).2. USSR author's certificate W 637808, cl. G About F 5/02, 1975 (prototype).
SU802937859A 1980-04-07 1980-04-07 Binary-coded decimal-to-binary code converter SU922723A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU802937859A SU922723A1 (en) 1980-04-07 1980-04-07 Binary-coded decimal-to-binary code converter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU802937859A SU922723A1 (en) 1980-04-07 1980-04-07 Binary-coded decimal-to-binary code converter

Publications (1)

Publication Number Publication Date
SU922723A1 true SU922723A1 (en) 1982-04-23

Family

ID=20900981

Family Applications (1)

Application Number Title Priority Date Filing Date
SU802937859A SU922723A1 (en) 1980-04-07 1980-04-07 Binary-coded decimal-to-binary code converter

Country Status (1)

Country Link
SU (1) SU922723A1 (en)

Similar Documents

Publication Publication Date Title
SU922723A1 (en) Binary-coded decimal-to-binary code converter
EP0067862B1 (en) Prime or relatively prime radix data processing system
SU922724A1 (en) Converter of n-digit parallel code into serial code and vice versa
SU140268A1 (en) A device for converting numbers represented in the sixth-sixth number system (degrees, hours, minutes, seconds) into a binary number system
SU851394A1 (en) Converter of binary to binary decimal code
SU993290A1 (en) Digital-probabilistic device for solving linear equations
SU924725A1 (en) Device for setting boundary conditions
SU881731A1 (en) Binary coded decimal code coder
SU744544A1 (en) Code converting device
SU614435A1 (en) Counting device
SU662935A1 (en) Conveyer-type device for simultaneously performing arithmetic operations on a set of n-digit numbers
SU983701A1 (en) Converter of binery code to residual class system code
SU1735843A1 (en) N-digit number multiplying unit
SU550633A1 (en) Device for converting binary numbers to binary
SU783787A1 (en) Converter of binary code into binary-decimal code of degrees and minutes
SU809154A1 (en) Polyadic-to-sidual class code converter
SU647693A1 (en) Time-to-probability converter
SU549801A1 (en) Device for converting binary to decimal code to binary
SU849199A1 (en) Binary-to-bcd code converter
SU1557683A1 (en) Device for conversion of number from position code to residue class system number
SU962936A1 (en) Device for adding time intervals
SU572781A1 (en) Radix converter of binary-decimal numbers into binary numbers
SU432487A1 (en) CONVERTER BINDING-DECIMAL CODE TO UNITARY CODE
SU1056192A1 (en) Stochastic device for multiplying matrices
SU1569823A1 (en) Multiplying device