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
Arduino Code Please Help 0
MAX6675 VHDL 0
Binary to BCD code understanding 0
Code help please 4
Gray Code 2
Arduino Code Please Help 0
Help please 8

Members online

Forum statistics

Threads
474,263
Messages
2,571,062
Members
48,769
Latest member
Clifft

Latest Threads

Top