Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

9 bit binary to BCD number

Status
Not open for further replies.

xilinx1001

Member level 3
Member level 3
Joined
Apr 3, 2013
Messages
60
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Visit site
Activity points
1,781
Hi,

I need to develop a VHDL code for 9 bit binary to BCD number.

I searched in internet and find code for converting 8 bit and 10 bit numbers

Can anyone help me in writing the code for this 9 bit binary number
 
Last edited:

Hi,

Thanks for your reply

Can I use this 10 bit binary number conversion here for 9 bit

I think for 10 bit binary conversion, it will shift 10 times

Can I use that here
 

You can use a case state on the binary number, generally looks like:

case (bin_num)

0000 : seven_seg = 1111
0001 : seven_seg = 0101
...
1111: ...

where seven_seg is a variable holding 0/1 for each bit of 7 seg outputs.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top