格雷码与二进制码转换
格雷码转二进制码二进制码转格雷码代码如下//gray to bin module gray2bin #(parameter ADDR_WIDTH=8)( input [ADDR_WIDTH-1:0] grayin, output [ADDR_WIDTH-1:0] binout, output reg [ADDR_WIDTH-1:0] binout1, output [ADDR_WIDTH-1:0] grayout );//assign binout=gray2bin(grayin)