ex_4_5_tff.vhd
来自「This is the course for VHDL programming」· VHDL 代码 · 共 19 行
VHD
19 行
entity TFF is port(T,CLK,RST: in BIT ; Q : out BIT) ; end TFF;architecture DF_DELAY of TFF isbegin process(CLK,RST,T) variable int_Q:bit; begin if RST = '1' then int_Q := '1'; elsif CLK'event and CLK = '1' then if T= '1' then int_Q := not int_Q after 5 ns; end if; end if; Q <= int_Q; end process;end DF_DELAY;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?