bin2gray.comp
1 component bin2gray "convert a number to the gray-code representation"; 2 description """Converts a number into gray-code"""; 3 pin in unsigned in "binary code in"; 4 pin out unsigned out "gray code out"; 5 license "GPL"; 6 author "andy pugh"; 7 function _ nofp; 8 ;; 9 out = (in >> 1) ^ in;