data/full_repos/permissive/479125018/grey_code.v
data/verilator_xmls/e683fe24-a44d-4970-9cd9-dfe4142b1b02.xml
module grey_code #( parameter SIZE = 3 )
(
 input  [SIZE-1:0] binary_in,
 output [SIZE-1:0] grey_out
);

assign grey_out[SIZE-1:0] = binary_in[SIZE-1:0] ^ {1'b0,binary_in[SIZE-1:1]};

endmodule
module grey_code #( parameter SIZE = 3 )
(
 input  [SIZE-1:0] binary_in,
 output [SIZE-1:0] grey_out
);


assign grey_out[SIZE-1:0] = binary_in[SIZE-1:0] ^ {1'b0,binary_in[SIZE-1:1]};

endmodule