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

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

Info

Publication number
SU1283978A1
SU1283978A1 SU853912159A SU3912159A SU1283978A1 SU 1283978 A1 SU1283978 A1 SU 1283978A1 SU 853912159 A SU853912159 A SU 853912159A SU 3912159 A SU3912159 A SU 3912159A SU 1283978 A1 SU1283978 A1 SU 1283978A1
Authority
SU
USSR - Soviet Union
Prior art keywords
binary
converter
code
input
equivalent
Prior art date
Application number
SU853912159A
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 SU853912159A priority Critical patent/SU1283978A1/en
Application granted granted Critical
Publication of SU1283978A1 publication Critical patent/SU1283978A1/en

Links

Landscapes

  • Complex Calculations (AREA)

Abstract

Изобретение относитс  к области. автоматики и вычислительной техники и может быть использовано при построении преобразователей целых и.дробных дес тичных чисел в двоичные.Целью изобретени   вл етс  повышение быстродействи  преобразовател . Поставленна  цель достигаетс  за счет , того, что преобразователь, реализующий алгоритм суммировани  эквивалентов , осуществл ет одновременную обработку К дес тичных разр дов с формированием уплотненного адреса ПЗУ при помощи промежуточного преобразо- «g вател  К-разр дного двоично-дес тич- ного кода в двоичный код. 1 ил. //The invention relates to the field. automation and computer technology and can be used to build converters of whole and fractional decimal numbers into binary ones. The purpose of the invention is to increase the speed of the converter. This goal is achieved due to the fact that the converter that implements the algorithm for summation of equivalents performs simultaneous processing of K decimal places with the formation of a compacted ROM address using an intermediate transducer g for the K bit digit of the binary-ten code in binary code 1 il. //

Description

юYu

0000

соwith

0000

4j4j

0000

Изобретение относитс  к вычислительной технике и может быть исполь- зопано дл  быстр ого преобразовани  как целых, так и дробных дес тичных чисел в двоичные.The invention relates to computing and can be used to quickly convert both integer and fractional decimal numbers to binary.

Цель изобретени  - повышение быстродействи  преобразовател .The purpose of the invention is to increase the speed of the converter.

На чертеже приведена структурна  схема предлагаемого преобразовател  двоично-дес тичного кода в двоичный. Преобразователь содержит входной регистр 1, переключатель 2 эквивалентов , первый и второй блоки 3 и 4 хранени  эквивалентов, накапливающий сумматор 5, К-разр дный преобразователь 6 двоично-дес тичного кода в двоичный, информационный вход 7 преобразовател , управл ющий вход 8 преобразовател ,выход 9 преобразовател The drawing shows the structural scheme of the proposed converter of binary-decimal code to binary. The converter contains an input register 1, a switch of 2 equivalents, the first and second blocks 3 and 4 of storage of equivalents, accumulating adder 5, K-bit converter 6 of binary-decimal code to binary, information information 7 of converter, control input 8 of converter, output 9 converter

Входной регистр 1 предназначен дл  хранени  в двоичном коде значени  i-ой К-разр дной группы дес тичных цифр исходного операнда на врем  такта ее преобразовани  (i 1, 2, j- где 1 Х - ближайшее целое, большее или равное X; п - разр дность дес тичного операнда), Двоичные значени  первой и второй частей входного регистра 1  вл ютс  младшими част ми адресов , по которым происходит обращение к первому 3 и второму 4 блокам хранени  двоичных эквивалентов,Входно регистр 1 целесообразно реализовать на двухтактных синхронных D-триггераThe input register 1 is intended to store in binary code the value of the i-th K-bit group of decimal digits of the initial operand for the time period of its conversion (i 1, 2, j- where 1 X is the nearest integer greater than or equal to X; n The bit size of the decimal operand), The binary values of the first and second parts of input register 1 are the minor parts of the addresses where the first 3 and second 4 blocks of binary equivalents are accessed. It is advisable to implement the input register 1 on two-stroke synchronous D-flip-flops.

Переключатель 2 эквивалентов осуществл ет формирование старшей части адресов двоичных эквивалентов,хран щихс  в блоках 3 и 4. Его разр дност определ етс  количеством К разр дных групп дес тичных цифр в преобразуемом числе. Он может быть реализован на двухтактном синхронном двоичном счетчике.The 2 equivalent switch selects the high-order part of the binary equivalent addresses stored in blocks 3 and 4. Its bit is determined by the number of K bit groups of decimal digits in the number to be converted. It can be implemented on a push-pull synchronous binary counter.

Первый 3 и второй 4 блоки предназначены дл  хранени  двоичных экви- валентов первой и второй частей дво- {ичного значени  i-ой преобразуемой 1к-разр дной группы дес тичных цифр соответственно. Количество двоичных .разр дов на выходе первого 3 и вто- .рого 4 блоков хранени  двоичных эквивалентов определ етс  числом двоичных разр дов, содержащихс  в максимальных значени х двоичных эквивалентов . Первый 3 и второй 4 блоки могут быть реализованы на посто н-- Кой пам ти.The first 3 and second 4 blocks are intended for storing binary equivalents of the first and second parts of the double value of the i-th converted 1k-digit group of decimal digits, respectively. The number of binary bits at the output of the first 3 and second 4 blocks of storage of binary equivalents is determined by the number of binary bits contained in the maximum values of binary equivalents. The first 3 and second 4 blocks can be implemented on permanent memory.

10ten

397R2397R2

Накапливающий сумматор З производит суммирование двоичных эквивалентов , выбранных из первого 3 и второго 4 блоков, с ранее накопленным ре5 зультатом. Его можно построить на комбинационном сумматоре с сохране- . нием переносов, привод щем трехр дный код к двухр дному, комбинационном сумматоре с ускоренным переносом и регистре дл  запоминани  результата суммировани .The accumulating adder S produces the summation of binary equivalents selected from the first 3 and second 4 blocks, with the previously accumulated result. It can be constructed on a combinational adder with preserved. Carrying out the carries, leading the three-row code to a two-way, accelerated-transfer combinational adder and a register for storing the result of the summation.

Преобразователь 6 предназначен дл  преобразовани  К-разр дной группы дес тичных цифр в двоичный код. При К 2 его целесообразно реализовать на посто нной пам ти. При К 2 наиболее приемлемым  вл ютс  варианты его построени  на комбинационных схемах.Converter 6 is designed to convert a K-bit group of decimal digits into a binary code. When K 2, it is advisable to implement it on a permanent memory. With K 2, the most acceptable are variants of its construction on combinational circuits.

В основу предлагаемого преобразовател  двоично-дес тичного кода в двоичный положен следующий принцип . Преобразование п-разр дногоThe basis of the proposed converter of binary-decimal code into binary is the following principle. P-bit conversion

25 дес тичного числа происходит за25 decimals occur in

тактов. В каждом такте обра- К cycles. In each cycle,

1515

2020

00

5five

00

5five

00

5five

батываетс  К его дес тичных пифр, причем они предварительно преобразуютс  из двоично-дес тичного кода в более компактный двоичный код. Поскольку двоичное значение i-ой К- разр дной группы дес тичных цифр может быть представлено в виде (А- + B.)-V., где А- и В-, - перва  и втора  .части двоичного значени  i-ой группы дес тичных цифр, а V - ее вес, то преобразование этой группы дес тичных цифр представл ет собой суммирование двух двоичных эквивалентов значений A.-V-HB. V. с суммой предыдущих эквивалентов.His decimal pythre is battered, and they are previously converted from a binary-decimal code into a more compact binary code. Since the binary value of the i-th K-bit group of decimal digits can be represented as (A- + B.) - V., where A- and B-, are the first and second parts of the binary value of the i-th group the primary digit is the sum of two binary equivalents of the values A.-V-HB. V. with the sum of previous equivalents.

Рассмотрим работу предлагаемого преобразовател  при К 3,Consider the work of the proposed Converter when K 3,

Перед началом преобразовани  устанавливаютс  в ноль триггеры входного регистра 1, переключател  2 эквивалентов и накапливающего сумматора 5 (эти цепи установки на чертеже не показаны), Через вход 7 преобразовател  поступает двоично-дес тичное значение трех первых дес тичных цифр, которое преобразуетс  преобразователем 6 в 10-разр дный двоичный код. Первый импульс, поступающий с управл ющего входа 8 преобразовател , |записывает во входной регистр 1 двоичное значение, первых трех дес тичных цифр, а в накапливающий сумматор 5 - нулевую информацию, выработанную блоками 3 и 4 по исходному (нулевому) состо нию входного регистра 1, Этот же имцульс переводит переключатель 2 эквивалентов на формирование значени  старшей части адресов двоичных эквивалентов дл  цервой 3-разр дной группы дес тичных цифр. Младша  часть адреса двоичного эквив;глента первого слагаемого А - V определ етс  значением первых п ти разр дов входного регистра 1, а младша  часть адреса двоичного эквивалента второго слагаемого В V - значением вторых п ти разр дов регистра 1. Двоичные эквиваленты первого и второго слагаемых хран тс  в первом 3 и втором 4 блоках хранени  двоичных эквивалентов (по 32 двоичных эквивалента в каждом блоке на каждую 3-разр дную группу дес тичных цифр соответственно),Before starting the conversion, the triggers of input register 1, switch 2 equivalents and accumulating adder 5 (these setting circuits are not shown) are set to zero. The converter input receives the binary-decimal value of the first three decimal digits, which is converted by the converter 6 into 10 is a binary code. The first pulse coming from the control input 8 of the converter | writes the binary value of the first three decimal digits into the input register 1, and zero information generated by blocks 3 and 4 on the initial (zero) state of the input register 1 into the accumulator 5 The same impulse switches the switch of 2 equivalents to the formation of the value of the highest part of the addresses of binary equivalents for the cert 3-digit group of decimal digits. The lowest part of the binary equivalent address; the glint of the first term A - V is determined by the value of the first five bits of the input register 1, and the younger part of the binary equivalent address of the second term V V - the value of the second five bits of register 1. The binary equivalents of the first and second terms stored in the first 3 and second 4 storage units of binary equivalents (32 binary equivalents in each block for each 3-bit group of decimal digits, respectively),

Выбранные двоичные эквиваленты поступают параллельным кодом на входы накапливающего с5Т4матора 5, где осу- ществл етс нх суммирование.The selected binary equivalents are received by a parallel code at the inputs of the accumulator c5T4mator 5, where nx summation is performed.

Второй импульс с управл ющего входа 8 преобразовател  записывает результат суммировани  его исходного (нулевого ) содержимого со значением двух первых двоичных эквивалентов. Этот же импульс записывает во входной регистрThe second pulse from control input 8 of the converter writes the result of the summation of its initial (zero) content with the value of the first two binary equivalents. The same pulse writes to the input register.

3 3

1 преобразованное в двоичный код зна чение вторых трех дес тичных цифр и переводит переключатель 2 эквивалентов , на формирование значени  старшей части адресов двоичных эквивалентов дл  второй 3-разр дной группы. Работа преобразовател  6 выполн етс  ца- раллельно с работой блоков 3, 4 и сумматора 5.1 is a binary-converted value of the second three decimal digits and translates a switch of 2 equivalents, to the formation of the value of the highest part of the addresses of binary equivalents for the second 3-bit group. The operation of converter 6 is performed in parallel with the operation of blocks 3, 4 and adder 5.

f О 20 f o 20

J5J5

2525

30thirty

3535

4040

Подобным (. бразом про -;сходит преобразование каждой послед ющен 3-разр дной группы дес тичных цифр до тех пор, пока не будут 1треобразованы все дес тичные разр ды исходного числа, а в накапливающем cyftMaTope 5 не сформируетс  искомое двоичное число, которое поступает на выход 9 преобразовател . Общее врем  преобразовани  п-разр дного дес тичного числа опре- . дел етс  выражением Т t , где t - длительность выполнени  одного такта.Similarly (.), The transformation of each successive 3-digit group of decimal digits comes off until all the decimal digits of the original number are transformed, and the required binary number is generated in the accumulating cyftMaTope 5, which transducer output 9. The total conversion time for an n-bit decimal number is defined by the expression T t, where t is the duration of the execution of one cycle.

Claims (1)

Формула изобретени Invention Formula Преобразователь двоично-дес тичного кода в двоичный, содержащий входной регистр, переключатель эквивален- ,тов, первый и второй блоки хранени  эквивалентов и накапливающий сумматор , выходы которого  вл ютс  выхода. ми преобразовател , управл ющий вход которого соединен с синхровходом входного регистра переключател  эквивалентов и накапливающего сумматора , первый и второй входы которого соединены соответственно с выходами первого и второго блоков хранени  дк- вивалентов, младший разр ды адресных входов которых соединены соответственно с первым и вторым выходами входного регистра, а старшие разр ды адрес- .ных входов.первого и второго блоков хранени  эквивалентов соединены с выходом переключател  эквивалентов,о т- личающийс  тем, что, с целью повышени  быстродействи  преобразовател , в него введен К-разр дный преобразователь двоично-дес тичного кода в двоичный, выход ко торого соединен со входом входного регистра, а вход - с информационным входом преобразовател  .The binary-to-binary code converter, which contains the input register, the equivalent switch, the first and second equivalent storage blocks, and the accumulating adder, whose outputs are outputs. The converter, the control input of which is connected to the synchronous input of the input register of the equivalent switch and accumulating adder, the first and second inputs of which are connected respectively to the outputs of the first and second storage blocks of the equivalent, the lower bits of the address inputs of which are connected respectively to the first and second outputs of the input register, and the high-order bits of the address. inputs of the first and second equivalent storage units are connected to the output of the equivalent switch, which is Accelerating operating speed of the transducer, it is entered K-bit converter binary coded decimal to a binary code, to torogo output connected to the input of the input register and input - with an information input transducer. «5"five 7V А7V A teatea /ч /ч/ h / h
SU853912159A 1985-06-14 1985-06-14 Binary-coded decimal code-to-binary code converter SU1283978A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU853912159A SU1283978A1 (en) 1985-06-14 1985-06-14 Binary-coded decimal code-to-binary code converter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU853912159A SU1283978A1 (en) 1985-06-14 1985-06-14 Binary-coded decimal code-to-binary code converter

Publications (1)

Publication Number Publication Date
SU1283978A1 true SU1283978A1 (en) 1987-01-15

Family

ID=21183180

Family Applications (1)

Application Number Title Priority Date Filing Date
SU853912159A SU1283978A1 (en) 1985-06-14 1985-06-14 Binary-coded decimal code-to-binary code converter

Country Status (1)

Country Link
SU (1) SU1283978A1 (en)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Авторское свидетельство СССР № 760085, кл. G 06 F 5/02, 1980. Авторское свидетельство СССР № 798800, кл. G 06 F, 1981. *

Similar Documents

Publication Publication Date Title
SU1283978A1 (en) Binary-coded decimal code-to-binary code converter
US3229078A (en) Code converter
SU1662004A1 (en) Binary coded decimal to binary translator
SU572781A1 (en) Radix converter of binary-decimal numbers into binary numbers
SU1120374A1 (en) Analog-to-digital squarer
SU1292187A1 (en) Binary-coded decimal code-to-binary code converter
SU1283979A1 (en) Binary-coded decimal code-to-binary code converter
SU1149243A1 (en) Reversible binary code-to-binary coded decimal code translator
SU789998A1 (en) Follow-up stochastic integrator
SU1501277A1 (en) Binary to binary-decimal code converter
SU1097999A1 (en) Device for dividing n-digit numbers
SU1113799A1 (en) Device for extracting square root
SU1048469A1 (en) Bcd number/binary number converter
SU1751856A1 (en) Code converter
SU1140118A1 (en) Device for calculating value of square root
SU1541596A1 (en) Division device
SU1027720A2 (en) Square root extractor
SU1383491A1 (en) Digital storage
SU1735844A1 (en) Device for dividing numbers
SU1043627A1 (en) Binary to bcd converter
SU723583A1 (en) Arrangement for computing sine and cosine functions
SU1566486A1 (en) Converter of codes with irrational positive base to codes with irrational negative base
SU798800A1 (en) Binary-decimal- to-binary code converter
SU734669A1 (en) Converter of proper binary fraction into binary-decimal fraction and integer binary-decimal numbers into binary numbers
SU809150A1 (en) Binary-to-bcd converter