Gray code & binary counter comparison confusing

edit

@Jiten.meena: Maybe I'm missing something, but the comparison in section "Reducing switching activity" between a binary and gray code counter really makes no sense to me. Surely if you're comparing two equivalent counters, whether they operate in gray code or binary, a fair comparison would be to compare the number of steps counted -- not the values of internal bits. The binary value 0101 -- decimal 5 -- would be equivalent to gray code value 0111.

And really, what kind of gray code counts 0000 -> 0001 -> 0101?! Gray code actually needs 6 steps to get to 0101. Those are: 0000 -> 0001 -> 0011 -> 0010 -> 0110 -> 0111 -> 0101.

AFAICT the real point of gray codes is that there are fewer transitions in individual bit values. If that's the point of the section, then it needs to be rewritten. -- intgr [talk] 13:00, 28 December 2016 (UTC)Reply

+1, needs rewriting Benboy00 (talk) 22:36, 27 January 2018 (UTC)Reply
I've removed the incorrect explanation. -- intgr [talk] 12:46, 28 January 2018 (UTC)Reply