component bin2gray "convert a number to the gray-code representation";
description """Converts a number into gray-code""";
pin in unsigned in "binary code in";
pin out unsigned out "gray code out";
license "GPL";
author "andy pugh";
function _ nofp;
;;
out = (in >> 1) ^ in;