Add a couple of HAL components to convert to and from Gray code
Signed-off-by: Andy Pugh <andy@bodgesoc.org>
I forgot that sim has no idea what an unsigned int is.
Luckily I don't actually care if I end up with 64 bits.


Signed-off-by: Andy Pugh <andy@bodgesoc.org>