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

📄 clockgenen.vhd

📁 曼彻斯特编码
💻 VHD
字号:
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
use ieee.std_logic_arith.all;

entity ClockGenEn is
port(
	clkx16         : in std_logic;
	reset          : in std_logic;
	clkx1          : out std_logic;
	clkx2          : out std_logic);
end ClockGenEn;

architecture behav of ClockGenEn is

signal clk_cnt     : std_logic_vector(3 downto 0);
 
begin
	process(reset,clkx16)
	begin
		if reset = '1' then
			clk_cnt <= "0000";
		elsif clkx16'event and clkx16 = '1' then
			clk_cnt <= clk_cnt + "0001";
			clkx2   <= not clk_cnt(2);
			clkx1   <= not clk_cnt(3);
		end if;
	end process;
end behav;

⌨️ 快捷键说明

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