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

📄 fpq.vhdl

📁 主持人按开始抢答后
💻 VHDL
字号:
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
entity fpq is
port(clkin:in std_logic;
   clkout:out std_logic);
end fpq;
architecture Behavioral of fpq is
	    signal counter:integer range 0 to 15999999;
         signal clkaaa:std_logic;
	    
   begin
   
   process(clkin,counter)
      variable clk:std_logic:='0';
      begin
           if rising_edge(clkin) then
	            if counter=15999 then
		           counter<=0;
		           clk:=not clk;
		          else
		           counter<=counter+1;
		         end if;
	         end if;
		    clkaaa<=clk;
   end process;
   clkout<=clkaaa;
end Behavioral;

⌨️ 快捷键说明

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