Chargement…
Chargement…
The entity bin_to_gray has one input (i_bin) and one output (o_gray), both of type std_logic_vector(3 downto 0).
Converts a 4-bit binary code to Gray code. The Gray MSB is the same as the binary MSB. The other bits are obtained by XOR of adjacent binary bits.
| Signal | Direction | Width | Description |
|---|---|---|---|
i_bin | Input | 4 bits | Input Bin |
o_gray | Output | 4 bits | Gray code |