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

📄 fenpin.vhd

📁 串口程序
💻 VHD
字号:
--通用分频器
library ieee;
use ieee.std_logic_1164.all;
entity fenpin is
  port(clock:in std_logic;
       clko:out std_logic
       );
  end fenpin;
architecture arch of fenpin is
 signal clk2:std_logic;
 signal cou:integer range 0 to 499999;
 begin
  process(clock)
 begin
  if(clock'event and clock='1') then
    if(cou=499999) then
     clk2<=not clk2;
    cou<=0;
  else cou<=cou+1;
  end if;
 end if;
end process;
clko<=clk2;
end arch;

⌨️ 快捷键说明

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