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

📄 yimaqi.vhd

📁 用FPGA实现数字复接?肍PGA实现数字复接
💻 VHD
字号:
library ieee ;
use ieee.std_logic_1164.all ;
use ieee.std_logic_unsigned.all ;

entity yimaqi is
	port(F1,F2:in	std_logic;
	Y3,Y2,Y1,Y0:out   std_logic
	);
end yimaqi ;
architecture behv of yimaqi  is
	signal indata:std_logic_vector(1 downto 0);
    signal Y:std_logic_vector(3 downto 0);
begin
indata<=F1&F2;
process(indata)
begin
case indata is
when "00" => Y<="1110";
when "01" => Y<="1101";
when "10" => Y<="1011";
when "11" => Y<="0111";
when others => Y<="XXXX";
end case;
end process;
Y3<=Y(3);
Y2<=Y(2);
Y1<=Y(1);
Y0<=Y(0);
end behv;


⌨️ 快捷键说明

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