Binary to BCD Converter - Budapest University of ...
Binary to BCD Converter
1 of 4
...
Binary to BCD Converter
Shift and Add-3 Algorithm
1. Shift the binary number left one bit.
2. If 8 shifts have taken place, the BCD number is in the Hundreds, Tens, and Units column.
3. If the binary value in any of the BCD columns is 5 or greater, add 3 to that value in that BCD column.
4. Go to 1.
Operation Hundreds Tens Units
HEX
Start
Binary
F
F
1 1 1 11 1 1 1
Example 1: Convert hex E to BCD
Example 2: Convert hex FF to BCD
12/7/2006 5:40 PM
Binary to BCD Converter
2 of 4
...
Truth table for Add-3 Module
Here is a Verilog module for this truth table.
module add3(in,out);
input [3:0] in;
output [3:0] out;
reg [3:0] out;
always @ (in)
case (in)
4'b0000: out
4'b0001: out
4'b0010: out
4'b0011: out
4'b0100: out
4'b0101: out
4'b0110: out
4'b0111: out
4'b1000: out
4'b1001: out
default: out
endcase
endmodule
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- lecture 4 finite state machines auburn university
- a novel high performance and power efficient
- binary coded decimal bcd
- lab 4 combinational multiplier with binary to bcd converter
- dm74184 dm74185a bcd to binary and binary to bcd converters
- lab 4 finite state machines
- 1 design a gray code to bcd converter by the following
- all optical 4 bit gray code to binary coded decimal converter
- binary and 8421 codes alyve
- mc14028b bcd to decimal decoder binary to octal decoder
Related searches
- binary to bcd converter ic
- binary to bcd circuit
- binary to bcd code converter
- binary to bcd algorithm
- binary to bcd conversion algorithm
- binary to bcd converter
- binary to bcd verilog code
- binary to bcd converter verilog
- hex to bcd converter verilog
- binary to bcd conversion
- binary to bcd calculator
- decimal to bcd converter calculator