Talk About Network

Google





Electronic Equipment > VHDL > Re: binary to i...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 8 of 11 Topic 6098 of 6445
Post > Topic >>

Re: binary to integer conversion code

by Peter <peter.hermansson@[EMAIL PROTECTED] > Jun 25, 2008 at 03:21 AM

If your intention is to convert a 4-bit std_logic_vector to something
that can be shown on a
7 segment display, your solution seems very complicated.

Why not just:

msb <= "1111110" when bit_data = "0000"
  else "0011000" when bit_data = "0001"
  else ......    .... ........ .......
  else ......    .... ........ .......
  else "1111111";

/Peter
 




 11 Posts in Topic:
binary to integer conversion code
Ashani Patel <ashani40  2008-06-22 22:31:53 
Re: binary to integer conversion code
Mark McDougall <markm@  2008-06-23 17:10:23 
Re: binary to integer conversion code
Ashani Patel <ashani40  2008-06-23 00:24:55 
Re: binary to integer conversion code
Nicolas Matringe <nico  2008-06-23 19:55:49 
Re: binary to integer conversion code
Ashani Patel <ashani40  2008-06-24 00:16:54 
Re: binary to integer conversion code
Brian Drummond <brian_  2008-06-24 12:31:14 
Re: binary to integer conversion code
Ashani Patel <ashani40  2008-06-24 22:56:17 
Re: binary to integer conversion code
Peter <peter.hermansso  2008-06-25 03:21:47 
Re: binary to integer conversion code
Peter <peter.hermansso  2008-06-25 05:08:46 
Re: binary to integer conversion code
Andy <jonesandy@[EMAIL  2008-06-25 06:23:40 
Re: binary to integer conversion code
Ashani Patel <ashani40  2008-06-25 23:18:54 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Thu Jan 8 12:07:51 PST 2009.