dffl.vhd
来自「VHDL计数器功能从0000到ffff记数」· VHDL 代码 · 共 23 行
VHD
23 行
library ieee;
use ieee.std_logic_1164.all;
entity dffl is
port ( rst ,clk: in std_logic;
d : in std_logic;
q ,nq :out std_logic );
end;
architecture bhv of dffl is
signal q1 , nq1 :std_logic;
begin
process(clk,rst) is
begin
if rst='0' then q1<='0';nq1<='1';
elsif clk'event and clk='1' then
q1 <= d;
nq1 <=not d;
end if ;
q<=q1;
nq<=nq1;
end process;
end;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?