gray_encoder

Converts a binary encoded bit vector to a Gray encoded bit-vector

  • Space Complexity: O(WIDTH)
  • Time Complexity: O(1)

Parameters


WIDTH u32 Input and output bit vector width

Ports


i_bin input logic Input Binary encoded Bit Vector
o_gray output logic Output Gray encoded Bit Vector