Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikibooksThe Free Textbook Project
Search

VHDL for FPGA Design/T Flip Flop

From Wikibooks, open books for an open world
<VHDL for FPGA Design
VHDL for FPGA Design

Synchronous Positive edge T Flip-Flop with Reset and Clock enable

[edit |edit source]
libraryIEEE;useIEEE.STD_LOGIC_1164.ALL;entityt_triggerisport(T,Reset,CLK,CLK_enable:instd_logic;Q:outstd_logic);endt_trigger;architecturebeh_t_triggeroft_triggerisbeginprocess(Reset,CLK)variabletemp:std_logic;beginif(rising_edge(CLK))then--sometimes you need to include a package for rising_edge, you can use CLK'EVENT AND CLK = '1' insteadifReset='1'thentemp:='0';elsifCLK_enable='1'thentemp:=Txortemp;endif;endif;Q<=temp;endprocess;endbeh_t_trigger;

Simulation Results

[edit |edit source]

Generated Symbol

[edit |edit source]
File:T FF SCH F.png
Retrieved from "https://en.wikibooks.org/w/index.php?title=VHDL_for_FPGA_Design/T_Flip_Flop&oldid=3682411"
Category:
Hidden category:

[8]ページ先頭

©2009-2025 Movatter.jp