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

📄 clock4.vhd

📁 eda 开发数字钟的设计具体编程代码和开发流程与设计图
💻 VHD
字号:
--*************************************************************************************--
--Colour Sort Machine/Four dividing clock module V1.0/01.11.30
--EIST Department,Nankai University
--Function part/clockall/4-dividing clock
--Src file:clock4.vhd
--Serial number:003
--2001----2002
--*************************************************************************************--
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;

entity clock4 is
  port(clk:in std_logic;
       clkout:out std_logic
       );
end clock4;

architecture arc of clock4 is
begin
  process(clk)
  variable count:std_logic_vector(1 downto 0);
  begin
    if (clk'event and clk='1') then
       count:=count+1;
    end if;
    clkout<=count(1);  
  end process;
end arc;
 
 

⌨️ 快捷键说明

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