📄 dff_clr.vhd
字号:
--***************************************
--* D F/F With Synchronous CLEAR
--* Filename : DFF_CLR
--***************************************
library IEEE;
use IEEE.std_logic_1164.all;
entity DFF_CLR is
port (
D: in STD_LOGIC;
CLK: in STD_LOGIC;
RESET: in STD_LOGIC;
Q: out STD_LOGIC
);
end DFF_CLR;
architecture DFF_CLR_arch of DFF_CLR is
begin
process (CLK,RESET)
begin
if CLK'event and CLK = '0' then
if RESET = '0' then
Q <= '0';
else
Q <= D;
end if;
end if;
end process;
end DFF_CLR_arch;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -