Interview Question - Gray Codes

MG
Written by
2
What are the tradeoffs in implementing a program counter for a microprocessor using Gray coding?

Sol:
  • Gray coding is designed to reduce power, because only one bit changes whenincrementing or decrementing.
  • Program counters usually increment, rather than jump to completely different values.So, using gray coding should reduce power consumption.
  • The downside is that the memory system probably doesn’t use gray-coded addresses,so additional circuitry would be needed to convert between gray andbinary codes. This will increase area and likely decrease performance.
  • Additionally, the extra circuitry to do the translation might require more power than
    is saved by using gray coding.

Post a Comment

2Comments

Your comments will be moderated before it can appear here. Win prizes for being an engaged reader.

  1. If the program counter/ program memory is implemented using grey code it would consume less power as typically not more than one line would switch for every new instruction.

    ReplyDelete
  2. It will use xor gates which will consume more area than noraml counter but there will be power savings as well as it will help in avoiind race conditions based bad/garbage data.

    ReplyDelete
Post a Comment

#buttons=(Ok, Go it!) #days=(20)

Our website uses cookies to enhance your experience. Learn more
Ok, Go it!