⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tff.vhd

📁 移动视频电话系统设计,基于TMS320C6701EVM开发板
💻 VHD
字号:
-- Author: Elliot Hill
--
-- Description: This module represents the VHDL equivalent of
-- a T flip flop; One that toggles with every clock
-- pulse, if the T input is active.
--
-- Last Modified: 25 September 2001
--
library ieee;
use ieee.std_logic_1164.all;
entity TFF is
port (T,clk,reset: in BIT;
Q: out BIT);
end;
architecture TFF of TFF is
signal D : BIT := '0';
begin
process (clk,reset)
begin
if (reset = '1') then
D <= '0';
elsif (clk = '1' and not clk'STABLE) then
if (T = '1') then
D <= not D;
end if;
end if;
Q <= D;
end process;
end TFF;

⌨️ 快捷键说明

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