Gray to Binary Conversion VHDL Source Code
Advertisement
This page provides VHDL source code for Gray to Binary conversion.
VHDL Code
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
entity gray2binary is
Port ( g : in STD_LOGIC_VECTOR (3 downto 0);
b : out STD_LOGIC_VECTOR (3 downto 0));
end gray2binary;
architecture Behavioral of gray2binary is
begin
b(3)<= g(3);
b(2)<= g(3) xor g(2);
b(1)<= g(3) xor g(2) xor g(1);
b(0)<= g(3) xor g(2) xor g(1) xor g(0);
end behavioral;
Explore VHDL Comms, Encoding & Conversions
- Binary to Gray Code Conversion in VHDL
- Gray to Binary Conversion (VHDL)
- 2-bit Parallel to Serial Conversion (VHDL Code)
- 2-bit Serial to Parallel Conversion in VHDL
- Convolutional Encoder (VHDL Source Code)
- RS Encoder (VHDL Source Code)
- Scrambler / Descrambler (VHDL Code)
- Interleaver / Deinterleaver (VHDL Source Code)
- BPSK Modulation (VHDL Source Code)
- QPSK Modulation Demodulation (VHDL Source Code)
- 16QAM Modulation (VHDL Source Code)
- 64QAM Modulation (VHDL Source Code)
- Mapper / Demapper (VHDL Source Code)
- IFFT / FFT (VHDL Source Code)
- Radix-4 Butterfly (VHDL Source Code)
