⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 test25.vhd

📁 大家一定要看 哦 程序在与多看多练 我找了好久才找到呢
💻 VHD
字号:
library ieee;
use ieee.std_logic_1164.all;
entity test25 is 
port(sel :in bit_vector(1 downto 0);
     a:in bit_vector(3 downto 0);
     b:in bit_vector(3 downto 0);
     c:in bit_vector(3 downto 0);
     q: out bit_vector(3 downto 0)
);
end;
architecture behav of test25 is
begin
process(sel,a,b,c)
begin
case sel is
   when "00"=>q<=a;
   when "01"=>q<=b;
   when "10"=>q<=c;
   when others=>null;
end case;
end process;
end behav; 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -