dff.txt

来自「用vhdl编写的D触发器」· 文本 代码 · 共 14 行

TXT
14
字号
library ieee;
use ieee.std_logic_1164.all;
entity dff is
port(d,clk:in std_logic;
      q    :out std_logic);
end;
architecture behavior of dff is
 begin
  process (clk)
   begin
    if(clk'event and clk='1') then q<=d;
   end if;
 end process;
end behavior;

⌨️ 快捷键说明

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