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

📄 dffall.vhd

📁 VHDL子程序集,包括各种例程资料以及源码.
💻 VHD
字号:
--***************************************
--*      D F/F With Enable and        
--*     Asynchronous Clear Preset     
--*        Filename : DFFALL          
--***************************************

library IEEE;
use IEEE.std_logic_1164.all;

entity DFFALL is
    port (
        D:      in STD_LOGIC;
        CLK:    in STD_LOGIC;
        RESET:  in STD_LOGIC;
        SET:    in STD_LOGIC;
        ENABLE: in STD_LOGIC;
        Q:      out STD_LOGIC
    );
end DFFALL;

architecture DFFALL_arch of DFFALL is

begin
process (CLK,RESET,SET,ENABLE)

begin
    if RESET = '1' then 
       Q <= '0';
    elsif SET = '1' then
       Q <= '1'; 
    elsif CLK'event and CLK = '1' then
          if ENABLE = '1' then
             Q <= D;
          end if;  
    end if;     
end process; 
 
end DFFALL_arch;

⌨️ 快捷键说明

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