VHDL for FPGA Design/Decoder
From Wikibooks, open books for an open world
[edit] Decoder VHDL Code
library IEEE; use IEEE.STD_LOGIC_1164.ALL; entity Decoder is port ( Sel : in std_logic_vector(2 downto 0); y : out std_logic_vector(7 downto 0) ); end entity Decoder; architecture Behavioral of Decoder is begin y <= "00000001" when Sel="000" else "00000010" when Sel="001" else "00000100" when Sel="010" else "00001000" when Sel="011" else "00010000" when Sel="100" else "00100000" when Sel="101" else "01000000" when Sel="110" else "10000000"; end architecture Behavioral;
[edit] Simulation Waveform
[edit] See Also
|
|
A reader has identified this page or section as an undeveloped draft or outline. You can help to develop the work, or you can ask for assistance in the project room. |
