binary to gray code counter

Status
Not open for further replies.

opttimus

Newbie level 1
Joined
Dec 15, 2012
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,287
how to write vhdl program to get count up binary when input is 1 and change to gray code when input is 0
binary Gray Code
000 000
001 001
010 011
011 010
100 110
101 111
110 101
111 100

Can anybody help pls?
 

I am not familiar with VHDL coding! But what stops you from doing?
have a if statement with two loops , one for binary and for gray code!! That's it!
 

there is no need to use Loops for this code. At this level, it would be easy enough with a simple decoder.

- - - Updated - - -

but there are plenty of exmples out there - how about trying google?
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…