tcounter.vhd
来自「a counter t in vhdl with flip-flop tipe 」· VHDL 代码 · 共 47 行
VHD
47 行
---- Copyright Mentor Graphics Corporation 2004---- All Rights Reserved.---- THIS WORK CONTAINS TRADE SECRET AND PROPRIETARY INFORMATION WHICH IS THE PROPERTY OF -- MENTOR GRAPHICS CORPORATION OR ITS LICENSORS AND IS SUBJECT TO LICENSE TERMS.-- entity test_counter is PORT ( count : BUFFER bit_vector(8 downto 1));end;architecture only of test_counter isCOMPONENT counter PORT ( count : BUFFER bit_vector(8 downto 1); clk : IN bit; reset : IN bit);END COMPONENT ;SIGNAL clk : bit := '0';SIGNAL reset : bit := '0';begindut : counter PORT MAP ( count => count, clk => clk, reset => reset );clock : PROCESS begin wait for 10 ns; clk <= not clk;end PROCESS clock;stimulus : PROCESS begin wait for 5 ns; reset <= '1'; wait for 4 ns; reset <= '0'; wait;end PROCESS stimulus;end only;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?