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

📄 ccdout.vhd

📁 CCD信号由于其特殊性,一般不能有信号源产生,本程序采用VHDL语言
💻 VHD
字号:
------------------------------------------------------------------------------------ Company: -- Engineer: -- -- Create Date:    19:39:20 04/28/2007 -- Design Name: -- Module Name:    CCDOUT - Behavioral -- Project Name: -- Target Devices: -- Tool versions: -- Description: ---- Dependencies: ---- Revision: -- Revision 0.01 - File Created-- Additional Comments: ------------------------------------------------------------------------------------library IEEE;use IEEE.STD_LOGIC_1164.ALL;use IEEE.STD_LOGIC_ARITH.ALL;use IEEE.STD_LOGIC_UNSIGNED.ALL;---- Uncomment the following library declaration if instantiating---- any Xilinx primitives in this code.--library UNISIM;--use UNISIM.VComponents.all;entity CCDOUT is    Port ( En : in  STD_LOGIC;           clock : in  STD_LOGIC;           Date_out : out  STD_LOGIC_VECTOR (3 downto 0));end CCDOUT;architecture Behavioral of CCDOUT issignal cnt : STD_LOGIC_VECTOR (3 downto 0) :="1100";  begin    process (clock,En)  begin  if En='1' then    if clock='1' and clock'event then		if cnt ="0000" then			cnt <= "1011";		else 			cnt <= cnt - 1;		end if;	 end if;	 end if;					if cnt ="1011" then				Date_out <="1011";			elsif cnt ="1010" then
LOOP1:	for i IN 3 downto 0 loop				Date_out <="1010";
			 end loop; 
							elsif cnt ="1001" then				Date_out <="1001";			elsif cnt ="1000" then				Date_out <= "1011";			elsif cnt ="0111" then				Date_out <="1010";			elsif cnt ="0110" then            Date_out <="0110";         elsif cnt ="0101" then            Date_out <="1011";         elsif cnt ="0100" then            Date_out <="1010";         elsif cnt ="0011" then            Date_out <="0011";			elsif cnt ="0010" then            Date_out <="1011";         elsif cnt ="0001" then            Date_out <="1010";         elsif cnt ="0000" then             Date_out <="0000";						end if;       					end  process;end Behavioral;

⌨️ 快捷键说明

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