VHDL Code for binary/Gray counter help please

Joined
Dec 14, 2009
Messages
1
Reaction score
0
Hello

Can any one please send me the vhdl code for a state machine that counts up in binary froom 0 to 7 when the control input is a '1' and in a gray code sequence when the control is a '0'

Up sequence is 000,001,010,011,100,101,110,111

Gray Sequence: 000,001,011,111,101,100,110,010


Many thanks

baig
 
Joined
Jan 29, 2009
Messages
152
Reaction score
0
I think the easiest solution would be to internally only count in binary, and only outputting as gray code if requested.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

A gray counter 3
MAX6675 VHDL 0
Binary to BCD code understanding 0
Code help please 4
Gray Code 2
Help please 8
Vhdl code for octal to binary conversion 0
Can anyone please help me in this code 1

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top