Skip to Content
Introduction to Digital Systems: Modeling, Synthesis, and Simulation Using VHDL
book

Introduction to Digital Systems: Modeling, Synthesis, and Simulation Using VHDL

by Mohammed Ferdjallah
July 2011
Intermediate to advanced content levelIntermediate to advanced
225 pages
6h 22m
English
Wiley
Content preview from Introduction to Digital Systems: Modeling, Synthesis, and Simulation Using VHDL

2.9 BCD ADDITION

In the case of BCD addition, the BCD number is first converted to its binary form prior to performing the addition operation. The resulting binary nibbles are converted to their corresponding BCD digits, and the arithmetic operation is then performed. The addition of two BCD numbers is complicated because of the fact that the resulting sum can be greater than 9, which means that corrections need to be applied. Let us consider two BCD numbers, represented by U = U3U2U1U0 and V = V3V2V1V0. If U + V is less than or equal to 9, the process of addition is the same as that of the binary addition of unsigned numbers. But if the sum is greater than 9, we need to add the BCD equivalent of 6 (i.e., 0110) to the first result to get the answer desired. The following examples illustrate BCD addition and the corrections required to obtain the results expected.

images

Figure 2.7 shows additional examples of the addition of BCD numbers and the adjustment required to obtain the correct BCD numbers.

images

Figure 2.7 Addition of BCD Numbers

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Digital Systems Design with FPGAs and CPLDs

Digital Systems Design with FPGAs and CPLDs

Ian Grout
Synthesis of Arithmetic Circuits: FPGA, ASIC and Embedded Systems

Synthesis of Arithmetic Circuits: FPGA, ASIC and Embedded Systems

Jean-Pierre Deschamps, Gery J.A. Bioul, Gustavo D. Sutter

Publisher Resources

ISBN: 9780470900550Purchase book