addr_select.vhd
来自「一个组合逻辑实例,完成地址选择,读写信号产生等时序」· VHDL 代码 · 共 21 行
VHD
21 行
library ieee;
use ieee.std_logic_1164.all;
entity ADDR_SELECT is
port (a:in std_logic_vector(2 downto 0);
s:out std_logic_vector(7 downto 0));
end;
architecture behavioral of ADDR_SELECT is
begin
process(a)
begin
case a is
when"001"=>s<="00000001";
when"010"=>s<="00000010";
when"100"=>s<="00000100";
when others=>s<="00000000";
end case;
end process;
end behavioral;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?