SU720424A1 - Binary-decimal to sequential binary code converter - Google Patents

Binary-decimal to sequential binary code converter Download PDF

Info

Publication number
SU720424A1
SU720424A1 SU752136416A SU2136416A SU720424A1 SU 720424 A1 SU720424 A1 SU 720424A1 SU 752136416 A SU752136416 A SU 752136416A SU 2136416 A SU2136416 A SU 2136416A SU 720424 A1 SU720424 A1 SU 720424A1
Authority
SU
USSR - Soviet Union
Prior art keywords
inputs
outputs
adder
elements
register
Prior art date
Application number
SU752136416A
Other languages
Russian (ru)
Inventor
Николай Леонович Емельянов
Николай Николаевич Дивин
Николай Вениаминович Корнилов
Original Assignee
Предприятие П/Я В-2203
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 Предприятие П/Я В-2203 filed Critical Предприятие П/Я В-2203
Priority to SU752136416A priority Critical patent/SU720424A1/en
Application granted granted Critical
Publication of SU720424A1 publication Critical patent/SU720424A1/en

Links

Landscapes

  • Complex Calculations (AREA)

Description

Изобретение относитс  к цифровой вычислительной технике, может быть использовано в вычислительных машинах и специа.г изированных автоматических устройствах. Известен преобразователь двоичнодес тичного кода в двоичный, содержа щий регистр входного кода, формирователь эквивалентов, распределитель импульсов, суммирующую тетраду и выходной (Ij. Недостатком известного устройства  вл етс  невозможность преобразовани  отрицательных чисел, относительно большой объем аппаратуры и низкое быстродействие,  вл ющеес  результатом последова1ельно1х анализа всех двоичных разр дов дл  каждого дес тичного разр да. Наиболее близок к предлагаемому преобразователь двоично-дес тичного кода в двоичный, содержащий регистр входного кода, распределитель импульсов , сумматор, регистр сумматора и формирователь поразр дных эквивалентов/ перва  группа входов котр рого соединена с выходами регистра входного кода, втора  группа входов с выходом распределител  импульсов, а выходы формировател  соединены с первой группой входов сумматора, выходы которого соединены со входами регистра сумматора 2/, Недостатком этого устройства  вл етс  невозможность преобразовани  отрицательных чисел и сравнительно большой объем аппаратуры, св занный с использованием полноразр дного сум матора. Цель изобретени  - упрощение устройства и обеспечение возможности преобразовани  отрицательных чисел. Цель достигаетс  тем, что в устройство введены дополнительный регистр , входы которого соединены с первой группой выходов регистра сумматора , а выходы - со второй группой входов сумматора, триггер знака, два элемента И и выходной элемент ИЛИ, входы которого соединены с выходами элементов И, первые входы которых соединены с выходами триггера знака, вторые входы элементов И соединены с выxoдa 5и мпа. первого и второго разр дов регистра сумматора соответственно, вход переноса сумматора соединен с единичны.м выходом триггера знака. Формирователь пора: р дчых эквивалентов содержит группу элементов I,The invention relates to digital computing, can be used in computers and specialized automatic devices. A binary-to-binary code converter is known which contains the input code register, the equivalent driver, the pulse distributor, the summing tetrad and the output (Ij. A disadvantage of the known device is the inability to convert negative numbers, a relatively large amount of hardware and a slow response resulting from sequential analysis. all binary bits for each decimal bit. The closest to the proposed converter is binary-decimal code to binary, containing the input code register, pulse distributor, adder, adder register and shaper equivalent equivalents / the first group of inputs is connected to the outputs of the input code register, the second group of inputs with the output of the pulse distributor, and the outputs of the imager are connected to the first group of inputs of the adder, the outputs of which are connected to the inputs of the adder register 2 /. A disadvantage of this device is the impossibility of converting negative numbers and the relatively large amount of equipment associated with zovaniem polnorazr sum Matora-stand. The purpose of the invention is to simplify the device and allow the conversion of negative numbers. The goal is achieved by adding an additional register to the device, the inputs of which are connected to the first group of outputs of the register of the adder, and the outputs - to the second group of inputs of the adder, a character trigger, two AND elements and an output OR, the inputs of which are connected to the outputs of the AND elements, the first the inputs of which are connected to the outputs of the sign trigger, the second inputs of the elements I are connected to the output 5 and MPa. the first and second bits of the register of the adder, respectively, the transfer input of the adder is connected to the unit output of the sign trigger. Time shaper: A number of equivalents contains a group of elements I,

группу элементов ИЛИ и сумматор количества единиц, входы которого соедагнены с выходами элементов ИЛИ. вхды элементов ИЛИ соединены с выхода элементов И.a group of OR elements and an adder of the number of units whose inputs are connected to the outputs of the OR elements. input elements OR are connected from the output of elements I.

На фиг, 1 приведена структурна  электрическа  схема преобразовател Fig. 1 shows a structural electrical converter circuit.

Преобразователь содержит cyMwiatop 1, формирователь пор эр дных эквивалентов 2, регистрвходного кода 3, распределитель импульсов 4, регистр сумматора 5, элементы И 6, 7, выходной элемент 8, триггер знака 9, регистр 10, блок выделени ; переднего фронта импульса 11, блок выделени  .заднего фронта импульса 1The transducer contains cyMwiatop 1, shaper of poreal equivalents 2, register-entry code 3, pulse distributor 4, register of adder 5, elements 6, 7, output element 8, sign trigger 9, register 10, selection block; the leading edge of the pulse 11, the block selection of the back of the pulse 1

На фиг, 2 приведена структурна  электрическа -схема юрмировател  поразр дных эквивалентов дл  четырехразр дного двоично-дес тичного чи ела.Fig. 2 shows a structural electrical circuit diagram of a unit of equivalent equivalents for a four-bit binary-decimal number.

В таблице 1 приведены двоичные эквиваленты двоИч(но-дес тичных чисел .Table 1 shows the binary equivalents of binary numbers (but decimal numbers.

Таблица 2 иллюстрирует процесс преобразовани  числа ± 6975 соответственно Б пр мой и дополнительный , двоичный код.Table 2 illustrates the process of converting a number to ± 6975, respectively, direct and optional, binary code.

В приложении приведен алгоритм преобразовани  двоично-дес тичногс числа в двоичный код.The appendix contains the algorithm for converting binary-decimal numbers to binary code.

Преобразователь построек следующим образом: входы К-раэр дного сумматора 1 (слагаемое А) сое,цинен,ы с выходами формировател ,поразр дны эквивалентов 2, Количество выходов формировател , а следонательно разр дность сум штора зависит только от разр дности преоГзразуекюго двоично--десйтичыого кода. Входы форм14ро-вател  2 соединены с одной стороны с выходами регистра входного кода 3 а с шэугой стороны - с выходакж распределител  импульсов 4, количество выходов которого равно числу разр дов преобразованного двоичногго кода. Выход каждого разр да сумматора с учетом переноса соединен с входом соответствующего разр да регистра сумматора 5. Выходы младглего разр да регистра 5 через элементы И 6, 7 соединены с выходным элементом 8. Вторые входы элементов И соед.-.инены с выходами триггера знака преобразуемого числа 9„ Единичный выход триггера знака подключен кс5 входу переноса первого разр да С5 Мматора . Остальные разр ды регистра сумматора подключены ко входам 10, предназначенного дл  кранбгнй  второго слагаемого (), Выходы регистра 10 соединены со входами сумматора,.The converter of the constructions is as follows: the inputs of the K-raer of the adder 1 (term A) soybean, zinen, s with the driver's outputs, equivalent to 2, The number of the generator's outputs, and hence the width of the curtain depends only on the width of the forward binary - tenth code. The inputs of the 14-WATER 2 are connected on one side to the outputs of the register of the input code 3 and on the side shea - from the output of the pulse distributor 4, the number of outputs of which is equal to the number of bits of the converted binary code. The output of each bit of the adder, taking into account the transfer, is connected to the input of the corresponding bit of the register of the adder 5. The outputs of the low-order bit of register 5 are connected by elements 6, 7 to the output element 8. The second inputs of the elements Comm. Inna to the outputs of the sign trigger of the transformed Numbers 9 "The unit output of the character trigger is connected to the sc 5 input transfer port of the first bit C5 Mmator. The remaining bits of the register of the adder are connected to the inputs 10, intended for the crank of the second term (), the outputs of the register 10 are connected to the inputs of the adder ,.

Предлагаемое устройство работг1ет следующим образом. По команде Начало преобразовани  одиночный импульс устанавливает в нулевое соето ние распределитель И1.шульсов 4 и регистры 5, 10, Времеккой распределитель начинает пропускать на свой вход непрерывную последовательность импульсов , выделенных по заднему фронту импульсов входной частоты с помощью блока 11.The proposed device works as follows. On the command Start of conversion, a single pulse sets the distributor I1. Pulses 4 and registers 5, 10 to Zero. The distributor starts to pass to its input a continuous sequence of pulses allocated on the trailing edge of the input frequency pulses using block 11.

В первом столбце табл. 1 представлены веса каждого разр да двоичнодес тичного кода. В первой строке расположены номера разр дов двоичного кода, во .втором - их веса. На поле табл. 1 - вес каждого двоично-дес тичного разр да, а также вес знака, расположенного в последней строке, представлены в двоичном коде .In the first column of the table. 1 shows the weights of each bit of a binary single code. The first line contains the numbers of bits of the binary code, in the second - their weights. On the field table. 1 - the weight of each binary-decimal place, as well as the weight of the character located in the last line, are represented in binary code.

Дл  преобразовани  двоично-дес тичного кода в последовательный двоичный код достаточно сложить в двоичной системе значени  разр дов двоично-дес тичного кода в каждом вертикалном столбце, начина  со второго, с учетом суммы в предыдущем столбце со сдвигом ее на один разр д вправо.To convert a binary-decimal code to a serial binary code, it suffices to add in the binary system the values of the bits of the binary-decimal code in each vertical column, starting with the second, taking into account the amount in the previous column, shifting it by one bit to the right.

Первым импульсом fg,, после прихода команды Начало преобразовани  на выходе 1Ц распределител  импульсов возникает сигнал, с помощью которого опрашиваетс  состо ние разр да .10° двоично-дес тичного кода и значение триггера знака оThe first pulse fg ,, after the arrival of the command Start of the conversion, at the output of the 1C of the pulse distributor, a signal is generated, with the help of which the discharge state of the .10 ° binary-decimal code and the value of the sign trigger o are polled

Если преобразуемое число отрицательное , значение триггера знака равно единице. If the number to be converted is negative, the sign trigger value is one.

На выходе фop шpoвaтeл  образуетс  двоичный К-разр дный код (слагаемое А), равный значению разр даA binary K-bit code (term A) is formed at the output of the splitter equal to the value of the bit.

2°-lO . В это врем  на вторые входы сумматора поступает двоичный код pGniCTpa 10, равный нулю (слагаемое В). После сложени  двух слагаемых (Аи В) с учетом знака на выходе сумматора получаете код, равный зн чению разр да -10° или aj 2°-10 + - -1°2° при отрицательном преобразуег-юм числе. Этот код записываетс  вторым импульсом , , выделенным по переднему фронту из входной частоты блоком 12, S регистр 5, значени  младшего разр да которого .поступают соответственно на входы элементов И б и 7, управл емые триггером знака 9. Вторым к iпyльcoм fд, состо чие регистра 5 переписываетс  в регистр 10 без младшего разр да.2 ° -lO. At this time, the binary inputs pGniCTpa 10, equal to zero (term B), arrive at the second inputs of the adder. After adding the two terms (Au B), taking into account the sign at the output of the adder, we get a code equal to the value of the discharge –10 ° or aj 2 ° -10 + -1.0 ° with the negative conversion number. This code is recorded by the second pulse, allocated on the leading edge from the input frequency by block 12, S register 5, the low-order values of which are accessed, respectively, at the inputs of the And b and 7 elements, controlled by the sign trigger 9. The second to impulses fd, Register 5 is rewritten to register 10 without a least significant bit.

2C

По сигналуOn signal

распределител  импульсов начинаетс  формирование второзх двоичного разр да, дл  чего опрашиваетс  з соответствии с табл. 1 значение разр дов в 2lO, aj -2 10 и значение триггера знака . Если значени  разр дов равны единице, двоичный к - разр дный код слагаемого А равен двум. Слагаемое В в этом случае зависит от знака преобразуемого числа и может принимать значени  оthe pulse distributor begins the formation of binary bits, for which it is polled according to the table. 1 value of bits in 2lO, aj -2 10 and sign trigger value. If the values of bits are one, the binary k - bit code of the term A is two. The term B in this case depends on the sign of the number to be converted and can take the values

илsilt

. Третьим импульсо fII,сумма. The third impulse fII, the sum

спагаетлых А и В с учетом знака записываетс  в регистр 5. Дальнейша  работа преобразовател  аналогична описанной. Преобразователь опрашивает разр ды двоично-дес тичного кода по сигналам распределител  импульсов в соответствии с табл. 1, складывает и выдает :эначени  разр дов . Допустим, необходимо преобразовать положительное двоично-дес тичное числоThe spares of A and B, taking into account the sign, are recorded in register 5. Further operation of the converter is similar to that described. The converter polls the bits of the binary-decimal code according to the signals of the pulse distributor in accordance with the table. 1, adds and gives out: values of bits. Suppose you need to convert a positive binary number to

djC3b.jaj  djC3b.jaj

diCtb,at N О ОНО 1001 О 111 0101 diCtb, at N About IT 1001 O 111 0101

69752 i о 69752 i о

10 . 10 10 10 При преобразовании максимального четырехзначного двоично-дес тичного числа получаетс  14-разр дный двоичный код , следовательно, временной распределитель должен вырабатывать четырнадцать циклов. ten . 10 10 10 When a maximum four-digit binary-decimal number is converted, a 14-bit binary code is obtained, therefore, the time distributor must produce fourteen cycles.

Максимальное число на выходе формировател  равно шести, что определ етс  седьмым и дев тым столбцггми табл. 1, в которых при определенном двоично-дес тичном коде будет шесть одновесовых единиц Следовательно, слагаенюе А будет представлено. в виде трехразр дного двоичного кода .The maximum number at the output of the former is six, which is determined by the seventh and ninth columns of the table. 1, in which, with a certain binary-decimal code, there will be six one-weight units. Therefore, the A condition will be represented. in the form of a three-bit binary code.

Формирователь поразр дных эквивалентов (фиг. 2) содержит группу 13 элементов И, ko входам которых подключены выходы регистра входного кода и определенные выходы распределител  импульсов, группу 14 элементов ИЛИ, входы которых соединены с выходами элементов И, и сумматор количества .единицы 15.. . 5 В табл. 2 подробно отображенThe unit of equivalent equivalents (Fig. 2) contains a group of 13 elements AND, the inputs of which are connected to the outputs of the register of the input code and certain outputs of the pulse distributor, a group of 14 elements OR, whose inputs are connected to the outputs of the elements AND, and the adder of the number of units 15 .. . 5 In table. 2 displayed in detail

процесс преобразовани  - положительного и отрицательного чисел.the process of converting positive and negative numbers.

Дополнительный код р-разр дного двоичного числа равен пр мому кодуThe additional code of the p-bit binary number is equal to the direct code

Q этого числа плюс р-раэр дный двоичный код с единицами во всех разр дах с последующей инверсией.The Q of this number is plus a p-binary binary with units in all bits followed by inversion.

В св зи с этим на вход переноса (Р) младшего разр да сумматора посто нно подаетс  значение триггераIn this connection, the trigger value is constantly applied to the transfer input (P) of the low bit of the adder.

знака, В столбце 36 таблицы 2 размещен дополнительный двоичный код отрицательного преобразуемого числа sign, column 36 of table 2 contains the additional binary code of the negative convertible number

Np 10 010 Oil 000001 Из опре,целени : Л00000000000000,Np 10 010 Oil 000001 Oper, target: L00000000000000,

00110110011111.00110110011111.

1001001100000110010011000001

Устройство может выполн ть преобразование как положительных, так иThe device can convert both positive and

5 отрицательных чисел. Количество оборудовани  в нем сокрагдено в несколько раз благодар  замене полноразр дного сумматора сумматором с небольшой разр дностью при сохранении тохчэ5 negative numbers. The amount of equipment in it is reduced several times by replacing the full-digit adder with an adder with a small size, while maintaining the current

П же быстродействи . ПреобразованиеBy the same speed. Transformation

совмещаетс  с выдачей разр дов результата .combined with the output of the result bits.

Jad/iuu,a /Jad / iuu, a /

«М"M

atat

Claims (2)

ir Формула изобретени  1. Преобразователь двоично-дес тич };ого кода в последовательный двоичный , содержащий регистр входного кода распределитель импульсов, сумматор , регистр сумматора и формировател поразр дных эквивалентов, первай груп па входов которого соединена с выходами регистра входного кода, втора  группа входов - с выходами распредели тел  импульсов, а выходы формировате л  соединены с первой группой входов сумматора, выходы которого соединены со входами регистра сумматора, отл чающийс  тем, что, с целью упрощени  схемы и обеспечени  возмож ности преобразовани  отрицательных чисел, в него введены дополнительный регистр, входы которого соединены с первой группой выходов регистра сумматора, а выходы - со второй груп пой входов сумматора, триггер знака, два элемента И и выходной элементir Claim 1. Inventory binary-decimal}; code into serial binary, containing the input code register pulse distributor, adder, adder register and bit equivalent generator, the first group of inputs of which is connected to the outputs of the input code register, the second group of inputs - with the outputs, the pulse bodies are distributed, and the outputs of the former are connected to the first group of inputs of the adder, the outputs of which are connected to the inputs of the register of the adder, which in order to simplify the circuit and in the liver, the possibility of converting negative numbers, an additional register is entered in it, the inputs of which are connected to the first group of outputs of the register of the adder, and the outputs from the second group of inputs of the adder, the trigger of the sign, two AND elements and the output element Аа-2Aa-2 агar ь,-2l, -2 cTlZcTlZ а,-23a -23 аг-2° ar-2 ° Ьг -г сBg-s Гг -гYyyy cfn-cfn- cici .f(0iHj.f (0iHj .. -- (2iu)(2iu) 4.four. J.J. w ИЛИ, входы которого соединены с выходами элементов И, первые входы которых соединены с выходами триггера знака, вторые входы элементов И соединены с выходами младших первого и второго разр дов регистра сум-матора соответственно, вход переноса сумматора соединен с единичным выходом триггера знака. 2, Преобразователь по п. 1, о т-личающийс  тем, что, в нем формирователь пор зр дных эквивалентов содержит группу элементов И, группу элементов ИЛИ и сумматор количества единиц, входы которого соединены с выходами элементов ИЛИ, входы элементов ИЛИ соединены с выходами элементов И. Источники информации, прин тые во внимание при экспертизе 1.Авторское свидетельство СССР № 393739, кл. -С 06 F 5/02, 1971. w OR, the inputs of which are connected to the outputs of the AND elements, the first inputs of which are connected to the outputs of the sign trigger, the second inputs of the elements AND are connected to the outputs of the lower first and second digits of the sum register, respectively, the transfer input of the adder is connected to the single output of the sign trigger. 2, the converter according to claim 1, which is characterized by the fact that in it the shaper of equivalent equivalents contains a group of elements AND, a group of elements OR and an adder of the number of units, whose inputs are connected to the outputs of the elements OR, the inputs of the elements OR are connected to the outputs elements I. Sources of information taken into account in the examination 1. Author's certificate of the USSR No. 393739, cl. -C 06 F 5/02, 1971. 2.Авторское свидетельство СССР , 470803, кл. G 06 F 5/02, 1973.2. Authors certificate of the USSR, 470803, cl. G 06 F 5/02, 1973. К-.гK-.g TlTl -I -I g.f4.r.«-Wg.f4.r. “- W .2СзЧ- -11.2СзЧ- -11 g..f2 ft4-r;j 5/ -f f tfi4-«g..f2 ft4-r; j 5 / -f f tfi4- " Начпрео5р. - i- l nrел5Л Ш1 Nachprepreo5r. - i- l nr5l Ш1 7,3M ll2J3i4 i {-j7.3M ll2J3i4 i {-j
SU752136416A 1975-05-21 1975-05-21 Binary-decimal to sequential binary code converter SU720424A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU752136416A SU720424A1 (en) 1975-05-21 1975-05-21 Binary-decimal to sequential binary code converter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU752136416A SU720424A1 (en) 1975-05-21 1975-05-21 Binary-decimal to sequential binary code converter

Publications (1)

Publication Number Publication Date
SU720424A1 true SU720424A1 (en) 1980-03-05

Family

ID=20620166

Family Applications (1)

Application Number Title Priority Date Filing Date
SU752136416A SU720424A1 (en) 1975-05-21 1975-05-21 Binary-decimal to sequential binary code converter

Country Status (1)

Country Link
SU (1) SU720424A1 (en)

Similar Documents

Publication Publication Date Title
SU720424A1 (en) Binary-decimal to sequential binary code converter
SU744544A1 (en) Code converting device
SU1141406A1 (en) Device for squaring and extracting square root
SU533926A1 (en) Adder
SU960805A1 (en) Multiplication device
SU661773A1 (en) Code to frequency converter
SU744568A2 (en) Parallel accumulator
SU491947A1 (en) Dedicated adder
SU593314A1 (en) Twelve-cycle reversible pulse distributor
SU982003A1 (en) Pseudo-stochastic adder
SU1020818A1 (en) Device for computing sum of products
SU1575174A1 (en) Device for multiplying two n-digit numbers
SU391560A1 (en) DEVICE FOR CONSTRUCTION IN SQUARES
SU734669A1 (en) Converter of proper binary fraction into binary-decimal fraction and integer binary-decimal numbers into binary numbers
SU1179322A1 (en) Device for multiplying two numbers
SU593211A1 (en) Digital computer
SU1280402A1 (en) Digital-analog logarithmic function generator
SU771619A1 (en) Device for tolerance testing
SU771660A1 (en) Binary-to-bunary-decimal code converter
SU760085A1 (en) Binary-decimal-to-binary number converter
SU744977A1 (en) Frequency-to-code converter
SU1262477A1 (en) Device for calculating inverse value
SU924703A1 (en) Square rooting device
SU488206A1 (en) Device for adding
SU902248A1 (en) Device for conversion of time interval to code