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

📄 v8_2.vhd

📁 台湾全华科技VHDL教材实例
💻 VHD
字号:
library ieee;
use ieee.std_logic_1164.all;

entity V8_2 is
    generic(setup_time : time := 5 ns);
    port(D  : in  std_logic;
         Q  : out std_logic := '0';
         Clk : in std_logic);
begin
    process(Clk)
    begin
        if Clk = '1' and Clk'event then
            assert (D'last_event < setup_time) 
            report "setup violation"
            severity error;
        end if;
    end process;
end V8_2;

architecture A_DFF of V8_2 is
    signal Dtime : time;
    signal DValue : std_logic; 
    signal DATime : time;
begin
    process(Clk)
    	variable DValueV : std_logic;
    begin
        if Clk = '1' and Clk'event then 
            if (D'last_event < setup_time) then
               	Q <= 'X';
            else
               	Q <= D;
            end if;
            Dtime <= D'last_event;
            DValue <= D'last_value; 
            DATime <= D'last_active;
        end if;
    end process;
end A_DFF;  

⌨️ 快捷键说明

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