📄 xzq3.vhdl
字号:
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
-- Uncomment the following lines to use the declarations that are
-- provided for instantiating Xilinx primitive components.
--library UNISIM;
--use UNISIM.VComponents.all;
entity xzq3 is
Port ( sel : in std_logic_vector(2 downto 0);
d1,d2,d3 : in std_logic_vector(3 downto 0);
wx: out std_logic_vector(7 downto 0);
q : out std_logic_vector(3 downto 0));
end xzq3;
architecture Behavioral of xzq3 is
begin
process(sel,d1,d2,d3)
begin
case sel is
when"000"=>q<=d1;
wx<="01111111";
when"001"=>q<=d2;
wx<="10111111";
when"011"=>q<=d3;
wx<="11011111";
when others=>q<="1111";
end case;
end process;
end Behavioral;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -