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

📄 duolufuyong.vhd

📁 使用max_plus2在FPGA下实现拔河游戏机的功能
💻 VHD
字号:
library ieee;
use ieee.std_logic_1164.all;

entity duolufuyong is
port(sa,sb:in std_logic;
       a,b:in std_logic_vector(3 downto 0);
         q:out std_logic_vector(3 downto 0));
end duolufuyong;

architecture one of duolufuyong is
 begin
  process(sa,sb)
   begin
   if(sa='1')and(sb='0')then
     q(0)<=a(0);
     q(1)<=a(1);
     q(2)<=a(2);
     q(3)<=a(3);
   elsif(sb='1')and(sa='0')then
     q(0)<=b(0);
     q(1)<=b(1);
     q(2)<=b(2);
     q(3)<=b(3);
   end if;
  end process;
end one;
   

⌨️ 快捷键说明

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