O
Olaf
Guest
Hi,
I'm using the gray counter at comp.lang.vhdl FAQ 4.2.29, extended with a
reset.
Anyway, I would like use it as a water level counter. Therefore I need
to compare the counter value against one top value to hit an action. The
top value is in hex/bin format.
Here the question: Does exist a VHDL convert function to en-/decode the
hex into gray code? How does it look? Since the mentioned Gray Code
Counter Model has a generic size, it should be also generic.
I would know only a non-generic solution using a LUT ROM.
Thanks
Olaf
I'm using the gray counter at comp.lang.vhdl FAQ 4.2.29, extended with a
reset.
Anyway, I would like use it as a water level counter. Therefore I need
to compare the counter value against one top value to hit an action. The
top value is in hex/bin format.
Here the question: Does exist a VHDL convert function to en-/decode the
hex into gray code? How does it look? Since the mentioned Gray Code
Counter Model has a generic size, it should be also generic.
I would know only a non-generic solution using a LUT ROM.
Thanks
Olaf