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

📄 da.vhd

📁 一些很好的FPGA设计实例
💻 VHD
字号:
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
entity  data is
port (
      sele:in std_logic;
      hold: in std_logic;
      dcounter: in std_logic_vector(12 downto 0);
      fcounter: in std_logic_vector(12 downto 0);
      data  :  out std_logic_vector(12 downto 0)
     );
end data;
architecture data of data is
signal temp : std_logic_vector(12 downto 0);
begin 
process(hold,sele)
 begin
  if hold <= '0' then
     temp <=  "0000000000000" ;
  else
     if sele = '1' then
         temp  <= dcounter ;
     elsif sele = '1' then
         temp  <= fcounter ;
     else
         temp  <= "0000000000000";
     end if;
   end if;
   data <= temp;
 end process;
end data;

⌨️ 快捷键说明

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