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

Binary coded decimal to binary code converter Download PDF

Info

Publication number
SU1624698A1
SU1624698A1 SU884444581A SU4444581A SU1624698A1 SU 1624698 A1 SU1624698 A1 SU 1624698A1 SU 884444581 A SU884444581 A SU 884444581A SU 4444581 A SU4444581 A SU 4444581A SU 1624698 A1 SU1624698 A1 SU 1624698A1
Authority
SU
USSR - Soviet Union
Prior art keywords
binary
converter
input
decimal
output
Prior art date
Application number
SU884444581A
Other languages
Russian (ru)
Inventor
Андрей Антонович Жалковский
Александр Антонович Шостак
Леонард Орестович Шпаков
Original Assignee
Предприятие П/Я М-5339
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 Предприятие П/Я М-5339 filed Critical Предприятие П/Я М-5339
Priority to SU884444581A priority Critical patent/SU1624698A1/en
Application granted granted Critical
Publication of SU1624698A1 publication Critical patent/SU1624698A1/en

Links

Landscapes

  • Complex Calculations (AREA)

Abstract

Изобретение относитс  к вычислительной технике и может быть использовано в универсальных и специализированных ЭВМ дл  построени  преобразователей кодов. Целью изобретени   вл етс  расширение класса решаемых задач за счет обеспечени  обратного преобразовани . Поставленна  задача достигаетс  тем, что в преобразователь двоично-дес тичного кода в двоичный, содержащий k-разр дные преобразователи 1.1-1 .т+ 1 двоично-дес тичного кода в двоичный , умножители 2.1-2.т, блок суммировани  4, дополнительно введены коммутаторы 3.1-3.т, преобразователи выполнены реверсивными , а умножители и коммутаторы - управл емыми . 1 ил.The invention relates to computing and can be used in general-purpose and specialized computers for building code converters. The aim of the invention is to expand the class of tasks to be solved by providing an inverse transformation. The task is achieved by the fact that the converter of a binary-decimal code into a binary one, containing k-bit converters 1.1-1. T + 1 binary-decimal code into a binary, multipliers 2.1-2. T, summation block 4, are additionally entered 3.1-3.t switches, converters are reversible, and multipliers and switches are controllable. 1 il.

Description

о ю о оoh oh oh

0000

Й/Т«TH / T "

Изобретение относитс  к вычислительной технике и может быть использовано дл  построени  преобразователей кодов в универсальных и специализированных ЭВМ.The invention relates to computing and can be used to build code converters in general-purpose and specialized computers.

Цель изобретени  - расширение класса решаемых задач за счет обеспечени  возможности обратного преобразовани .The purpose of the invention is to expand the class of tasks to be accomplished by providing the possibility of inverse transformation.

На чертеже показана структурна  схема предлагаемого преобразовател  двоично- дес тичного кода в двоичный.The drawing shows a block diagram of the proposed converter of a binary-decimal code into a binary one.

Преобразователь содержит k-разр д- ные реверсивные преобразователи двоично-дес тичного кода в двоичный 1i-1m+i, блоки 2i-2m умножени , коммутаторы 3i-3m и блок 4 суммировани , входы 5i-5m+i преобразуемых групп разр дов, входы 6i-6m первой константы устройства, входы 7i-7m второй константы устройства, вход 8 режима преобразовател , выход 9 преобразовател .The converter contains k-bit reversible converters of binary-decimal code to binary 1i-1m + i, multiplication blocks 2i-2m, 3i-3m switches and block 4 summation, inputs of 5i-5m + i convertible groups of bits, inputs 6i-6m of the first device constant, inputs 7i-7m of the second device constant, input 8 of the converter mode, output 9 of the converter.

Преобразователи предназначены дл  преобразовани  из двоично-дес тичного кода в двоичный и наоборот значений групп разр дов, поступающих с входов соответственно 5i-5(fl+i устройства. Они могут быть реализованы самыми различными способами и средствами в зависимости от разр дности групп. При малой величине k-разр дности групп преобразователь 1i/i 1,2,...,m+1) может быть реализован в виде ПЗУ. При более высокой разр дности преобразуемых групп преобразователь 1| целесообразно реализовать в виде двух специализированных преобразователей (преобразовател  двоично-дес тичного кода в двоичный и преобразовател  двоичного кода в двоично-дес тичный), а также коммутатора , информационные входы которого соединены с выходами специализированных преобразователей, а его выход  вл етс  выходом преобразовател  1i, входы же двух специализированных преобразователей соединены с входом преобразовател  5i, Значение сигнала выбора режима работы преобразовател , поступающего с входа 8 на управл ющий вход коммутатора, определ ет направление преобразовани . Разр дность выходных кодов преобразователей 11-1 т+1 должна быть или меньше разр дности входа множител  блоков 2i-2m умножени , или равна ей. Например, если разр дность входа множител  блоков 2i- 2m умножени  равна двум дес тичным и восьми двоичным разр дам, то с помощью преобразователей 1i-1m целесообразно преобразовать две дес тичные цифры и шесть двоичных цифр исходного операнда,Converters are designed to convert from binary-decimal code to binary and vice versa values of groups of bits coming from the inputs, respectively 5i-5 (fl + i devices. They can be implemented in various ways and means, depending on the size of the groups. For small the k-size of the groups of the converter 1i / i 1,2, ..., m + 1) can be realized in the form of a ROM. With a higher resolution of the convertible groups, the converter 1 | It is advisable to implement in the form of two specialized converters (converter of binary-decimal code to binary and converter of binary code in binary-decimal), as well as a switch, whose information inputs are connected to the outputs of specialized converters, and its output is the output of converter 1i. the same two specialized converters are connected to the input of converter 5i. The value of the signal for selecting the operating mode of the converter coming from input 8 to the control input of the switch torus, determines the direction of conversion. The width of the output codes of the converters 11-1 t + 1 must be equal to or less than the input width of the multiplier of the 2i-2m blocks of multiplication. For example, if the input width of the multiplier of the 2i-2m multiplication units is two decimal and eight binary bits, then using the 1i-1m converters, it is advisable to convert two decimal digits and six binary digits of the original operand,

В каждом из блоков 2i-2m умножени  происходит перемножение значени  преобразованной группы разр дов операнда, поступающего с выхода блока 1i, на значение соответствующего эквивалента веса этой группы, поступающего с выхода коммутатора 3i. При преобразовании в двоичный кодIn each of the multiplication blocks 2i-2m, the value of the transformed group of bits of the operand, coming from the output of block 1i, is multiplied by the value of the corresponding equivalent weight of this group, coming from the output of switch 3i. When converting to binary

блоки 2i-2m умножени  настраиваютс  управл ющим сигналом с входа 8 устройства на обработку информации в двоичном коде, а при преобразовании в двоично-дес тичный код- на обработку информации вдвоично-дес тичном коде. Блоки 2i-2m умножени  могут быть реализованы самыми различными методами и средствами.The multiplication blocks 2i-2m are adjusted by the control signal from the input 8 of the device for processing information in a binary code, and when converting to a binary-decimal code, for processing information in a binary-decimal code. Blocks 2i-2m multiplication can be implemented by a variety of methods and means.

Возможна также реализаци  блоков 21- 2m таким образом, что на их выходах произведени  формируютс  в многор дном коде, в частности в двухр дном.It is also possible to implement blocks 21-2m in such a way that, at their outputs, the products are formed in a multi-code, in particular in a two-wire code.

Коммутаторы 3i-3m предназначены дл  передачи на входы множимого блоков 2i-2m значений либо двоично-дес тичныхSwitches 3i-3m are designed to transmit to the inputs of multiplicable blocks 2i-2m values or binary-decimal

констант (с входов 6i-6m устройства), либо двоичных констант (с входов 7i-7m устройства ).constants (from device 6i-6m inputs) or binary constants (from device 7i-7m inputs).

Блок 4 предназначен дл  двоичного и дес тичного суммировани  всех значенийBlock 4 is intended for binary and decimal summation of all values.

произведений, получаемых в блоках 2i-2m умножени , а также значени  самой младшей преобразованной группы разр дов с выхода преобразовател  1т-и.products obtained in blocks 2i-2m multiplication, as well as the value of the lowest transformed group of bits from the output of the converter 1m-i.

Он может быть реализован самыми различными методами и средствами, например, в виде дерева двухвходовых многоразр дных универсальных сумматоров с распространением переноса. Управл ющий сигнал с входа 8 настраивает блок суммировани  наIt can be implemented by various methods and means, for example, in the form of a tree of two-input multi-digit universal adders with the propagation of transport. The control signal from input 8 sets the summation unit to

обработку информации в двоичном или двоично-дес тичном коде.processing information in binary or binary-decimal code.

Следует особо отметить, что блоки 2i-2m умножени  и блок 4 суммировани , функционирующие в двоичной и дес тичной системах счислени , могут быть составной частью центрального процессора ЭВМ и поэтому не требуют дополнительной аппаратуры дл  своей реализации в преобразователе.It should be particularly noted that the multiplication units 2i-2m and the summation unit 4, functioning in binary and decimal number systems, can be an integral part of the central computer processor and therefore do not require additional equipment for their implementation in the converter.

В основу работы предлагаемого преоб5 разовател  положен следующий принцип. При преобразовании, например, двоично-дес тичного кода в двоичный, исходный операнд может быть представлен в видеThe basis of the work of the proposed developer is the following principle. When converting, for example, a binary-decimal code into a binary one, the source operand can be represented as

0 Pi 10mk + Pa 10()k + ... Pm-i 102k +0 Pi 10mk + Pa 10 () k + ... Pm-i 102k +

+ Pm 10k + Pm+1,+ Pm 10k + Pm + 1,

где Pi,P2Pm, Pm+1 - значени  групп по kwhere Pi, P2Pm, Pm + 1 are the values of k groups

дес тичных разр дов в каждой.decimal ranks in each.

Если преобразователь Pi,P2,..,,Pm, Pm+1If the converter is Pi, P2, .. ,, Pm, Pm + 1

5 в двоичный код, а значение весов групп5 in binary code, and the value of the weights of the groups

10mk 10(ro-i)k1Q2k 1Qk представить также10mk 10 (ro-i) k1Q2k 1Qk also provide

в двоичном коде, то после выполнени  всех арифметических действий данного выражени  образуетс  двоичное значение исходного двоично-дес тичного операнда. Аналогично двоичный операнд может быть представлен в виде суммы произведений двоично-дес тичных эквивалентов групп разр дов и двоично-дес тичных эквивалентов их весов.in binary code, after all the arithmetic operations of this expression are performed, the binary value of the source binary-decimal operand is formed. Similarly, a binary operand can be represented as the sum of the products of binary-decimal equivalents of groups of bits and binary-decimal equivalents of their weights.

Преобразование в предлагаемом устройстве происходит за один такт. При преобразовании двоично-дес тичного кода в двоичный управл ющий сигнал настраивает преобразователи 1i-1m+i на преобразо- вание значений соответствующих групп дес тичных разр дов в двоичный код (преобразователь 1т+1 преобразует младшую группу разр дов, а преобразователь 1i - самую старшую), коммутаторы 3i-3m - на передачу информации с входов 7i-7m второй константы преобразовател , блоки 2i- 2m умножени  и блок 4 суммировани  - на функционирование в двоичной системе счислени . Поступающие с входов 5i-5m+i преобразовател  соответствующие группы разр дов исходного операнда преобразуютс  в двоичный код в преобразовател х 11-1 т+1 соответственно. В блоке 2, умножени  происходит перемножение значени  преобразованной группы разр дов операнда , поступающего с выхода соответствующего преобразовател  1( на значение соответствующего двоичного эквивалента веса этой группы, поступающего с выхода коммутатора Зь С выходов блоков умножени  и выхода преобразовател  1 т+1 информаци  поступает на входы блока 4, в котором происходит ее двоичное суммирование . Через некоторое врем , определ в- мое временем переходного процесса, на выходе 9 устройства образуетс  окончательный результат преобразовани . Аналогично выполн етс  преобразование двоичного кода в двоично-дес тичный. Уп- равл ющий сигнал с входа 8 выбора режима в этом случае настраивают преобразователи 11-1 т+1 на преобразование значений соответствующих групп двоичных разр дов в двоично-дес тичный код, коммутаторы 3i- The conversion in the proposed device takes place in one cycle. When converting a binary-decimal code into a binary control signal, it adjusts the 1i-1m + i converters to convert the values of the corresponding groups of decimal places into a binary code (the 1t + 1 converter converts the younger group of bits, and the 1i converter is the oldest ), switches 3i-3m - to transfer information from inputs 7i-7m of the second converter constant, blocks 2i-2m multiplication and block 4 summation - on functioning in the binary number system. Coming from the inputs 5i-5m + i of the converter, the corresponding groups of bits of the source operand are converted to binary code in converters 11-1 t + 1, respectively. In block 2, the multiplication occurs multiplying the value of the transformed group of bits of the operand coming from the output of the corresponding converter 1 (by the value of the corresponding binary equivalent weight of this group coming from the output of switch C from the outputs of the multiplications and output of the converter 1 t + 1 block 4, in which its binary summation occurs. After some time, determined by the transition time, at the output 9 of the device a final result is formed The binary signal is converted into binary-decimal. In this case, the control signal from the mode select input 8 sets the converters 11-1 t + 1 to convert the values of the corresponding groups of binary digits into the binary-decimal code, 3i switches

3m - на передачу информации с входов 6i- 6m первой константы устройства, блок 2 i-2m умножени  и блок 4 суммировани  - на функционирование в дес тичной системе счислени .3m - to transfer information from the inputs 6i-6m of the first constant of the device, block 2 i-2m multiplication and block 4 summation - to function in the decimal number system.

Claims (1)

Формула изобретени  Преобразователь двоично-дес тичного кода в двоичный, содержащий m блоков умножени  (m n/k - 1), где п - количество дес тичных цифр операнда, k - количество дес тичных цифр, обрабатываемых на одном блоке умножени  (k 2,3, ...п/2), (т+1) k-разр дных реверсивных преобразователей двоично-дес тичного кода в двоичный и блок суммировани , выход которого  вл етс  выходом преобразовател , j-на  0 1- -(m+lXk-разр дна  группа входов преобразовател  соединена с группой входов j-ro k-разр дного реверсивного преобразовател  двоично-дес тичного кода в двоичный, выход которого, кроме (гп+1)-го, соединен с входом множител  блока умножени , выход которого соединен с входом j-ro слагаемого блока суммировани , выход (т+1)-го k-разр дного реверсивного преобразовател  двоично-дес тичного кода в двоичный соединен с входом (т+1)-го слагаемого блока суммировани , отличающийс  тем, что, с целью расширени  класса решаемых задач за счет обеспечени  возможности обратного преобразовани , в нею дополнительно введены m коммутаторов, причем j-й вход первой константы преобразовател  соединен с первым информационным входом j-ro коммутатора, второй информационный вход которого соединен с j-м входом второй константы преобразовател , вход множимого j-ro блока умножени  соединен с выходом j-ro коммутатора, управл ющий вход которого соединен с входом режима преобразовател  и управл ющими входами блоков умножени , блока суммировани  и k-разр дных реверсивных преобразователей двоично-дес тичного кода в двоичный.Invention A converter of a binary-decimal code into a binary code containing m multiplication blocks (mn / k - 1), where n is the number of decimal digits of the operand, k is the number of decimal digits processed on one multiplication block (k 2,3, ... n / 2), (t + 1) k-bit reversible converters of binary-decimal code to binary and summation block, the output of which is the output of the converter, j-to 0 1- - (m + lXk-bit bottom the group of inputs of the converter is connected to the group of inputs of the j-ro k-bit reversible converter of the binary-decimal code to the binary, the output of which, except for (hp + 1) -th, is connected to the input of the multiplier of the multiplication unit, the output of which is connected to the input of the j-ro summit of the summation block, the output of (t + 1) the decimal code in binary is connected to the input of the (t + 1) th summand of the summation block, characterized in that, in order to expand the class of solved problems by providing the possibility of inverse transformation, it additionally introduces m switches, the jth input first constant converter is connected to the first infor by the j-ro switch input, the second information input of which is connected to the j-th input of the second converter constant, the multiplicative j-ro input of the multiplication block is connected to the j-ro output of the switch, the control input of which is connected to the converter mode input and control inputs of the blocks multiply, summation block and k-bit reversible converters of a binary-decimal code to a binary one.
SU884444581A 1988-06-20 1988-06-20 Binary coded decimal to binary code converter SU1624698A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU884444581A SU1624698A1 (en) 1988-06-20 1988-06-20 Binary coded decimal to binary code converter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU884444581A SU1624698A1 (en) 1988-06-20 1988-06-20 Binary coded decimal to binary code converter

Publications (1)

Publication Number Publication Date
SU1624698A1 true SU1624698A1 (en) 1991-01-30

Family

ID=21382974

Family Applications (1)

Application Number Title Priority Date Filing Date
SU884444581A SU1624698A1 (en) 1988-06-20 1988-06-20 Binary coded decimal to binary code converter

Country Status (1)

Country Link
SU (1) SU1624698A1 (en)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Авторское свидетельство СССР NS 1283979, кл. Н 03 М 7/12, 1985. Авторское свидетельство СССР № 1095169, кл. Н 03 М 7/12, 1983. Авторское свидетельство СССР № 1116427, кл.С 06 F 7/52, 1982. *

Similar Documents

Publication Publication Date Title
EP0355030A2 (en) Optical computer including parallel residue to binary conversion
SU1624698A1 (en) Binary coded decimal to binary code converter
US4709345A (en) Apparatus for executing Chinese remainder theorem for residue decoding through quotient-remainder conversion
US4996527A (en) Pipelined residue to mixed base converter and base extension processor
EP0402532B1 (en) Residue arithmetic apparatus
US5379245A (en) Decimal multiplying assembly and multiply module
Aoki et al. Real/complex reconfigurable arithmetic using redundant complex number systems
Miller et al. An arithmetic free parallel mixed-radix conversion algorithm
SU1501278A1 (en) Reversible binary-decimal to binary code converter
SU1003074A1 (en) Device for parallel algebraic adding in sign-digit number system
RU2006919C1 (en) Device for multiplication of integers with s-bit length in position-remainder number system
RU2022467C1 (en) Reversible binary-decimal-to-binary code converter
RU2054709C1 (en) Device for multiplication of numbers represented in position code
Sreelakshmi et al. A novel approach to the learning of vinculum numbers in two’s compliment method for BCD arithmetic operations
SU868751A1 (en) Multiplier
SU1501279A1 (en) Code converter
SU1008731A1 (en) Computing device
SU1667054A1 (en) Modulo three adder-multiplier
SU1156062A1 (en) Multiplying device
SU1315971A1 (en) Digital coordinate transformer
SU734683A1 (en) Device for multiplying n-digit numbers
SU1509875A1 (en) Multiplication device
SU926654A1 (en) Device for taking logs of binary number arrays
SU822181A1 (en) Device for multiplying numbers in complementary codes
SU1229758A1 (en) Multiplying device