Dec 15, 2012 #1 O opttimus Newbie level 1 Joined Dec 15, 2012 Messages 1 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 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?
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?
Dec 16, 2012 #2 P Prashanthanilm Full Member level 5 Joined Aug 24, 2012 Messages 302 Helped 36 Reputation 72 Reaction score 36 Trophy points 1,308 Activity points 2,950 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!
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!
Dec 16, 2012 #3 T TrickyDicky Advanced Member level 7 Joined Jun 7, 2010 Messages 7,110 Helped 2,081 Reputation 4,181 Reaction score 2,048 Trophy points 1,393 Activity points 39,769 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?
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?