1. 首页
  2. 文档大全

用vhdl设计D触发器.docx

上传者:sheng 2022-07-11 19:16:41上传 DOCX文件 29 KB
Document serial number【UU89WT-UU98YT-UU8CB-UUUT-UUT108】
用vhdl设计D触发器
EDA设计清0,置数信号的D触发器
程序清单:
library ieee;
use dff1 is
port(clk,d,clr,reset:in std_logic;
q:out std_logic);
end dff1;
architecture exx of dff1 is
begin
process(clk,clr,reset)
begin
if (clr='1') then q<='0';
elsif( clk'event and clk='1')then
if( reset='0') then q<='1';
else q<=d;
end if;
end if;
end process;
end exx;
仿真波形:

用vhdl设计D触发器


文档来源:https://www.taodocs.com/p-512069462.html

文档标签:

下载地址