A Fast and Compact Binary To BCD Converter Circuit: December 2019
A Fast and Compact Binary To BCD Converter Circuit: December 2019
A Fast and Compact Binary To BCD Converter Circuit: December 2019
net/publication/337972148
CITATIONS READS
0 1,654
4 authors, including:
Mubin Ul Haque
University of Adelaide
16 PUBLICATIONS 30 CITATIONS
SEE PROFILE
All content following this page was uploaded by Mubin Ul Haque on 17 December 2019.
Abstract—Digital devices use decimal arithmetic in most of Section III the proposed algorithm is illustrated and in Section
the application which make devices easy to use and feasible IV the proposed circuit is elucidated with required figures. In
to human computation. BCD (Binary Coded Decimal) is very Section V, the simulation results and performance analysis of
common in digital computational devices which display decimal
numbers whereas binary is the number system that is recognized the proposed circuit are illustrated. Last of all, Section VI
by machines. So, BCD is needed to make machine results human concludes the paper.
readable that is to be converted from binary number. In this
work, a new algorithm is proposed to provide hardware support II. P RIOR WORK
for binary to BCD conversion. This converter can be used for 2-
digit BCD number to be translated from a 7-bit binary number. A good number of works had already been done on binary to
The proposed circuit is 20.08% area-efficient and 33.49% delay
efficient than the existing best known Shift Add by Constant
BCD conversion focusing on the purpose of decimal multipli-
Architecture. The proposed architecture works for all the general cation. Three algorithms are introduced in [4]. They modified
purpose of binary to BCD conversion whereas the existing previous 3-3-1 algorithm [4] by splitting 7-bit binary input into
best known converters are for specific multiplication purpose 3 parts the higher 3 bits (HSBs), the middle 3 bits (LSBs) and
and are not feasible for generalized use. Hence, the proposed the lowest significant bit. If the LSBs is greater than (4)10 then
converter circuit is area and delay efficient with the large-scale
(3)10 is added with LSBs and carry is added with the HSBs.
and extensive applicability.
HSBs not only contribute to the higher significant BCD digit
Index Terms—Decimal arithmetic, Binary Coded Decimal
(BCD), VLSI Design, Binary to BCD Converter, High perfor- but also in lower significant BCD digit and adding this also
mance. may need an correction.
The second architecture, Range detection algorithm [4]
I. I NTRODUCTION detects the range of the number by range detection circuit
and put a function high and then by subtraction they get the
Devices are getting compact, faster, cheaper and more power lower significant BCD digit. This algorithm considers only 37
efficient in every progressing second in modern days. Decimal possible states.
data processing applications have grown exponentially in The Shift Add by Constant [4] architecture can show all
recent years thereby increasing the need to have hardware the possible 81 states for digit by digit multiplication. Two
support for decimal arithmetic [1]–[3]. To display binary types of adder block- 3-bit conditional adder block and 4-bit
number in decimal, binary to BCD conversion is required in conditional adder block is used. If the input in these adder
very first step. Binary to BCD converter is used in different block is greater than (4)10 than (3)10 is added with the input.
computational fields like finance or in scientific methods, com-
Compliment Based Logic Circuit (CBLD) [5] is fastest
mercial and budgetary purposes [4]. Therefore improvement of
among all the existing circuits but it occupies a great amount
the converter circuit can speed up the regular computation and
of area. Moreover the circuit was created for binary to BCD
can make devices fast and area effective.
conversion used in decimal multiplication which was improved
Main contributions of this paper are as follows: in terms of power and delay from the previous works which
1) The required number of transistors have been reduced was done before. In the literature [1], they come with two
by selection of the input, partitioning and merging of the different algorithm for conversion 7-bit binary partial products
input by the blocks in the proposed circuit as shown in to 2-digit BCD. In literature [2] a new method called recoding
Fig. 1. method is introduced for fast binary to BCD conversion for
2) The range of the proposed converter circuit is 0 to 99, decimal multiplication.
so it covers all the 100 states possible to be presented by The range detection [4] implementation consumes lower
2-digit BCD number where the input can be maximum of power than all other existing architectures but occupies more
7 bit binary number. area. The shift add by constant algorithm [4] implementation
3) The circuit becomes 33.49% time faster by reducing the occupies lowest area than all over the architectures but it is
area in terms of transistors and 20.08% efficient in area. poor in speed. Almost all these architectures used merely for
Rest of the paper is organized as follows: Section II gives an multiplication purpose. Most of them cannot cover all the
overview about how the work done previouSection II presents states hence can cover at most 37 states that can be resulted
the existing best known binary to BCD converter circuits. In from digit by digit multiplication.
III. P ROPOSED A LGORITHM IV. P ROPOSED A RCHITECTURE
A new algorithm for binary to BCD conversion is being This section proposes the converter circuit. Essential figures
proposed as the algorithm converts a 7-bit binary number to and equations are elucidated to clarify the proposed ideas.
2-digit BCD that supports high-performance for conversion Table I had been formed for each input/output combination
processes. and the corresponding circuit architecture was proposed shown
TABLE I: Block Simulation Results for the Proposed Algo- in Fig. 2. The lower 4 significant bits of the output represents
rithm lower significant BCD digit and the 4 higher significant bits
represents higher significant BCD digit.
Binary Number to be converted To be added After Conversion
00000 00000 00000
00001 00000 00001
00010 00000 00010
00011 00000 00011
00100 00000 00100
Binary Number to be converted To be added After Conversion
00101 00011 01000
00110 00011 01001
00111 00011 01010
01000 00011 01011
01001 00011 01100
Binary Number to be converted To be added After Conversion
01010 00110 10000
01011 00110 10001 Fig. 2: Proposed architecture for binary to BCD conversion
01100 00110 10010
01101 00110 10011 A. The 4-input 5-output block
01110 00110 10100
As shown the 4-input 5-output block in Fig. 3 the working
Binary Number to be converted To be added After Conversion procedure is given in Algorithm 1. The adder block takes 4
01111 01001 11000
10000 01001 11001 bits from the MSBs of the 7-bit binary number. So, possible
10001 01001 11010 input range is (0000)2 to (1111)2 . Generally for upto (99)10
10010 01001 11011 no binary number required whose four most significant bits
10011 01001 11100
are (1111)2 , thus (1111)2 is beyond consideration as input in
this block.
Equation(1-7) are used for the 4-input 5-output block
X = (N1 + N2 )N3 (1)
F = X ⊕ ((N0 + N1 )N2 + N3 ) (2)
O0 = F ⊕ N0 (3)
O1 = (X ⊕ N1 )F + (N0 ⊕ N1 )F (4)
O2 = (((N1 ⊕ N2 )X + N2 X) ⊕ (N1 + N2 ))F + N2 F (5)
O3 = X (6)
O4 = F (7)
Here, X and F are two symbols used to point out two pointed
gates outputs in Fig. 3 and O0 , O1 , O2 , O3 , O4 are the outputs
of the block.