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

📄 divide.vhd

📁 用VHDL开发的数字钟资料 完整的实验代码
💻 VHD
字号:
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_arith.all;
use ieee.std_logic_unsigned.all;
entity divide is
port
 (
  clk    : in std_logic;
  outclk   : out std_logic
 );
end entity;
architecture one of divide is
signal c1:integer range 0 to 625000 ;
signal out1:std_logic;
begin
  p1:process (clk,out1)       --odd
 begin
 if (rising_edge(clk)) then  c1<=c1+1;
       if c1<=312500  then out1<='1';
      elsif c1>312500 and c1<625000 then
            out1<='0';
       elsif c1=625000 then c1<=0;
     end if;
         end if;
   end process p1;
   outclk<=out1;
 end one;

⌨️ 快捷键说明

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