SU1662004A1 - Binary coded decimal to binary translator - Google Patents
Binary coded decimal to binary translator Download PDFInfo
- Publication number
- SU1662004A1 SU1662004A1 SU884406544A SU4406544A SU1662004A1 SU 1662004 A1 SU1662004 A1 SU 1662004A1 SU 884406544 A SU884406544 A SU 884406544A SU 4406544 A SU4406544 A SU 4406544A SU 1662004 A1 SU1662004 A1 SU 1662004A1
- Authority
- SU
- USSR - Soviet Union
- Prior art keywords
- input
- outputs
- register
- summation
- binary
- Prior art date
Links
Landscapes
- Complex Calculations (AREA)
Abstract
Изобретение относитс к вычислительной технике и может быть использовано дл быстрого преобразовани дес тичных чисел в двоичные. Целью изобретени вл етс повышение быстродействи . Поставленна цель достигаетс тем, что в преобразователе, содержащем входной регистр 1, блоки 2 пам ти, первый и второй блоки 3, 5 суммировани и промежуточный регистр 4, адресные входы блоков пам ти соединены с выходами K старших тетрад подгрупп тетрад регистра 1, а выходы блока 5 суммировани соединены с входами блока 3 суммировани , что обеспечивает умножение на 10K. 2 ил. 2 табл.The invention relates to computing and can be used to quickly convert decimal numbers into binary ones. The aim of the invention is to increase speed. The goal is achieved by the fact that in the converter containing input register 1, memory blocks 2, first and second summation blocks 3, 5 and intermediate register 4, the address inputs of memory blocks are connected to the outputs K of the highest tetrads of the tetrad register registers 1, and the outputs summation unit 5 is connected to the inputs of summation unit 3, which provides multiplication by 10 K. 2 Il. 2 tab.
Description
о о го о о Noh oh oh n
Изобретение относитс к вычислительной технике и может быть использовано дл быстрого преобразовани дес тичных чисел в двоичные,The invention relates to computing and can be used to quickly convert decimal numbers to binary,
Целью изобретени вл етс повышение быстродействи .The aim of the invention is to increase speed.
На фиг.1 приведена структурна схема предлагаемого преобразовател двоично- дес тичного кода в двоичный; на фиг.2 - преобразователь 16-разр дного входного кода при ,т 2, р 8, 0 1.Figure 1 shows the structural scheme of the proposed converter of a binary-decimal code into a binary one; Fig. 2 illustrates a 16-bit input code converter with, m 2, p 8, 0 1.
Преобразователь содержит входной регистр 1, блоки 2 пам ти, первый блок 3 суммировани , промежуточный регистр А, второй блок 5 суммировани , информационный вход б устройства, управл ющий 7 и тактовый 8 входы преобразовател и выход 9.The converter contains input register 1, memory blocks 2, first block 3 of summation, intermediate register A, second block 5 of summation, information input b of the device, control 7 and clock 8 inputs of the converter and output 9.
В блоках 2 пам ти по определенным адресам хран тс суммы двоичных эквивалентов К старших тетрад (К 1,2,...) соответствующей подгруппы тетрад преобразуемого кода, на которые условно разбит регистр 1. Регистр 1 разбит на mIn blocks 2 of memory, at certain addresses, sums of binary equivalents are stored for the upper tetrads (K 1,2, ...) of the corresponding subgroup of tetrads of the code being converted, into which the register 1 is conventionally divided. Register 1 is divided into m
подгрупп ( m , где п -число разр дов 8Кsubgroups (m, where n is the number of bits 8K
входного кода). Блок пам ти может объедин ть выходы старших тетрад нескольких подгрупп.input code). A memory unit may combine the outputs of the older tetrads of several subgroups.
Первый блок 3 суммировани осуществл ет преобразование (Q + С)-р дного кода в S-р дный, где G - количество единичных оазо дов в двоичном представлении веса 10к/2. Р дность кода, формируемого на входах блока 3 суммировани , обь сн етс тем, что на первую группу входов поступает m сумм двоичных эквивалентов К старших тетрад подгрупп соответствующих групп, хранимых в блоках 2 пам ти. На входы второй группы входов поступает код, сформированный в блоке 5 суммировани и сдвинутый на число разр дов, соответствующее номерам единичных оазр дое в двоичном представлении веса 10к/2. Например , если К 1, 101/2 5 101 и сдвиг осуществл етс на один и три разр да.The first summation block 3 converts (Q + C) -rd code into S-row, where G is the number of single oases in the binary representation of the weight 10k / 2. The code generated at the inputs of summation block 3 is explained by the fact that the first group of inputs receives m sums of binary equivalents of the upper tetrad subgroups of the corresponding groups stored in memory blocks 2. The inputs of the second group of inputs receive the code formed in block 5 of the summation and shifted by the number of bits corresponding to the numbers of the single units in the binary representation of the weight 10k / 2. For example, if K 1, 101/2 5 101 and the shift is carried out by one and three bits.
Сдвиг осуществл етс в сторону старших разр дов (сложение сдвинутого кода на один и на три разр да в сторону старших разр дов, равносильно умножению этого кода на дес ть).The shift is made in the direction of the higher bits (the addition of the shifted code by one and three bits in the direction of the higher bits, is equivalent to multiplying this code by ten).
Второй блок 5 суммировани производит преобразовани S-р дного кода, сформированного на выходе блока 3 суммировани ихранимого в регистре4, в однор дный код. Этот блок может быть реализован на быстродействующих сумматорах с ускоренным образованием переноса.The second summation block 5 converts the SP code of the code formed at the output of the block 3 of their storage in register 4 into a single-root code. This block can be implemented on high-speed adders with accelerated transfer generation.
Преобразователь работает следующим образомThe converter works as follows.
Пусть в исходном состо нии в регистре 1 узла хранитс двоично-дес тичный код преобразуемого числа, а регистр 4 обнулен. Тогда в первом такте работы устройстваLet the binary-decimal code of the number being converted be stored in the initial state in the register 1 of the node, and the register 4 be zeroed. Then in the first cycle of the device
осуществл етс следующее действие. На выходах блоков 2 пам ти образуютс значени сумм двоичных эквивалентов старших тетрад подгрупп соответствующих групп, которые образуют Q-разр дный код, посту0 пающий далее на первую группу входов первого блока 3 суммировани . На выходы второй группы входов блока 3 (при К 1 со сдвигом на один разр д на один вход и на второй со сдвигом на три разр да в сторонуThe following action is performed. At the outputs of the memory blocks 2, the values of the sums of binary equivalents of the higher tetrads of the subgroups of the respective groups are formed, which form a Q-bit code that goes further to the first group of inputs of the first summation block 3. The outputs of the second group of inputs of block 3 (with K 1 with a shift by one bit to one input and to the second with a shift to three bits to the side
5 его старших разр дов) поступает однор дный код, сформированный в блоке 5 суммировани (в первом такте его значение равно нулю). Далее с помощью блока 3 суммировани (Q + 2)-р дный код преобразуетс в5 of its most significant bits) receives a one-way code formed in block 5 of summation (in the first cycle its value is zero). Then, using block 3, the summation (Q + 2) -rd code is converted to
0 S-р дный, который по приходу второго синхроимпульса с разрешени потенциала на входе 8 устройства записываетс в регистр 4. Одновременно с записью информации в регистр 4 по этому же синхроимпульсу про5 исходит сдвиг содержимого регистра 1 на К дес тичных разр дов в сторону его старших разр дов. На этом первый такт преобразовани заканчиваетс .0 S-pdny, which is recorded in register 4 by the arrival of the second clock pulse with the resolution of the potential at the input 8 of the device. Simultaneously with writing the information to the register 4, the same clock pulse is shifted by 5 to the decimal places of the register 1. bits This completes the first conversion cycle.
Во втором такте работы устройства од0 новременно с чтением следующих двоичных эквивалентов из блоков 2 пам ти происходит преобразование S-р дного кода в однор дный вторым блоком 5 суммировани , результат этого преобразовани подаетс In the second cycle of operation of the device, simultaneously with reading the following binary equivalents from memory blocks 2, the S-code is converted into one-standard by the second summation block 5, the result of this conversion is given
5 на вторую группу входов первого блока 3 суммировани . По окончании переходного процесса в блоке 3 и по приходу третьего синхроимпульса с разрешени потенциала на входе 8 устройства результат преоб0 разовани записываетс в регистр 4. Одновременно с записью информации в регистр 4 по этому же синхроимпульсу происходит сдвиг содержимого регистра 1 на К дес тичных разр дов в сторону его старших5 to the second group of inputs of the first summation block 3. Upon completion of the transient process in block 3 and upon the arrival of the third clock pulse with the resolution of the potential at input 8 of the device, the conversion result is written into register 4. Simultaneously with writing information to register 4, the contents of register 1 are shifted by K by the same clock pulse by the side of his senior
5 разр дов.5 bits
Аналогичным образом выполн ютс все последующие такты работы устройства, число которых определ етс количеством тетрад в подгруппах каждой группы тетрад.Similarly, all subsequent device operation cycles are performed, the number of which is determined by the number of tetrads in the subgroups of each group of tetrads.
0 Мен количество тетрад в подгруппах можно таким образом регулировать скорость и аппаратурные затраты, необходимые на реализацию устройства преобразовани , что вл етс достоинством предлагаемого уст5 ройства.0 Mening the number of tetrads in subgroups, you can thus adjust the speed and hardware costs required to implement the conversion device, which is an advantage of the proposed device.
Пример. Преобразование двоично-дес тичного кода 1001 1000 0111 0110(2) 9876(ю) в двоичный код. Предполагают, что тетрады регистра 1 образуют одну группу, котора содержит две подгруппы (т 2),Example. Conversion of a binary decimal code 1001 1000 0111 0110 (2) 9876 (s) to a binary code. It is assumed that the tetrads of register 1 form one group, which contains two subgroups (m 2),
кажда из которых содержит по две тетрады . Результат на выходе первого блока 3 суммировани формируетс в 2-р дном коде (S 2),each of which contains two tetrads. The result at the output of the first summation block 3 is generated in a 2-pd one code (S 2),
Структурна схема такого устройства приведена на фиг.2. В регистре 1 преобразуемого кода указано значение исходного кода. Группа блоков 2 пам ти в данном случае может быть объединена в один блок пам ти с одной группой выходов. Пример приведен дл такой реализации.The structural diagram of such a device is shown in FIG. Register 1 of the code to be converted indicates the value of the source code. The group of memory blocks 2 in this case can be combined into one memory block with one group of outputs. An example is provided for such an implementation.
Значение разр дов, подаваемых в 1-м такте на адресные входы блока 2 пам ти, приведено в табл.1.The value of bits supplied in the 1st cycle to the address inputs of memory block 2 is given in Table 1.
Процесс преобразовани в устройстве двоично-дес тичного кода 1001 1000 0111 0110 в двоичный код приведен в табл.2.The process of converting a binary code 1001 1000 0111 0110 to a binary code in the device is shown in Table 2.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU884406544A SU1662004A1 (en) | 1988-04-08 | 1988-04-08 | Binary coded decimal to binary translator |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU884406544A SU1662004A1 (en) | 1988-04-08 | 1988-04-08 | Binary coded decimal to binary translator |
Publications (1)
Publication Number | Publication Date |
---|---|
SU1662004A1 true SU1662004A1 (en) | 1991-07-07 |
Family
ID=21367230
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
SU884406544A SU1662004A1 (en) | 1988-04-08 | 1988-04-08 | Binary coded decimal to binary translator |
Country Status (1)
Country | Link |
---|---|
SU (1) | SU1662004A1 (en) |
-
1988
- 1988-04-08 SU SU884406544A patent/SU1662004A1/en active
Non-Patent Citations (1)
Title |
---|
Патент US № 4325056, кл. 340-347, 1982. Авторское свидетельство СССР № 1569993, 04.04.88. * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
SU1662004A1 (en) | Binary coded decimal to binary translator | |
SU1658387A1 (en) | Transducer for translation of binary-coded decimal to decimal code | |
SU572781A1 (en) | Radix converter of binary-decimal numbers into binary numbers | |
SU1569993A1 (en) | Binary-coded decimal code-to-binary code converter | |
SU1501280A1 (en) | Converter of a number from residual class system into positional code | |
SU860053A1 (en) | Bcd-to-binary fraction converter | |
RU2022337C1 (en) | Parallel sign-digit code/additional binary code converter | |
SU1405052A1 (en) | Device for rooting a sum of squares | |
RU1817091C (en) | Device for multiplying numbers | |
SU1283978A1 (en) | Binary-coded decimal code-to-binary code converter | |
SU760085A1 (en) | Binary-decimal-to-binary number converter | |
SU734669A1 (en) | Converter of proper binary fraction into binary-decimal fraction and integer binary-decimal numbers into binary numbers | |
SU1399730A1 (en) | Device for computing polar coordinates | |
SU783787A1 (en) | Converter of binary code into binary-decimal code of degrees and minutes | |
SU781806A1 (en) | Binary-to-binary-decimal code converter | |
SU1282117A1 (en) | Dividing device | |
SU830371A1 (en) | Binary-to-decimal code converter | |
SU363119A1 (en) | REGISTER OF SHIFT | |
RU2248094C2 (en) | Device for transforming numbers from decimal to binary notation scale | |
SU435519A1 (en) | BINARY AND DECIMAL BINARY AND REVERSE CONVERTER | |
SU1179320A1 (en) | Device for calculating difference of two numbers | |
SU1675849A1 (en) | Digital linear interpolator | |
SU1226447A1 (en) | Multiplying device | |
SU1626252A1 (en) | Multiplier | |
SU1388995A1 (en) | Device for converting binary numbers to binary decimal numbers and backwards |