如何用VHDL语言编程实现一个3-8线译码器

如何用VHDL语言编程实现一个3-8线译码器

於英姑2023-09-24 10:16:16 译码器品牌榜
1个回答 关注
音响虚心2023-09-24 10:16:16

--======================================
-- Decoder
--======================================
library IEEE;
use IEEE.std_logic_1164.all;
use IEEE.std_logic_unsigned.all;

entity dec3_8 is
port (
din : in std_logic_vector(2 downto 0) ;
dout : out std_logic_vector(7 downto 0) ;
);
end dec3_8 ;

architecture RTL of dec3_8 is
begin
dout <= "10000000" when ( din =

33赞