亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? lcd.vhd

?? FPGA基礎性試驗交通燈設計
?? VHD
字號:
------------------------------------------------------------------------------------ Company: -- Engineer: -- -- Create Date:    15:46:19 04/17/2006 -- Design Name: -- Module Name:    LCD - 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 LCD is	generic(divide_to_100k:integer:=500);	    Port ( clk,rst : in  STD_LOGIC;			  s0_a,s1_a,s2_a,s3_a,s4_a,s5_a,s6_a: out std_logic;				c1,c2: out  STD_LOGIC;           wr : out  STD_LOGIC;           rd : out  STD_LOGIC;           cd : out  STD_LOGIC;           lcd_rst : out  STD_LOGIC;           lcd_data : out  STD_LOGIC_VECTOR (7 downto 0));end LCD;architecture Behavioral of LCD issignal clk_100k:std_logic;type state is (s0,s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,s11,s12,s13,s14,s15); signal current_s:state;--type state_s is (s0_0,s1_1,s2_2);--signal current_s_s:state_s;type instruction_code is array(0 to 12)of std_logic_vector(7 downto 0);constant c_code:instruction_code:=(x"00",x"00",x"40",x"1e",x"00",x"41",x"80",x"94",x"07",x"00",x"24",x"b0",x"b2");											--c_t_starting_add 		--c_t_width 	 --c_t_on		   --c_add_p c_auto_w_off																					  --c_or_mode							  c_auto_w_ontype data_buffer is array(0 to 14)of std_logic_vector(7 downto 0);constant data_buf:data_buffer:=(x"57",x"57",x"57",x"0E", x"13",x"11",x"15",x"59",										  x"44",x"44",x"5A",x"0E", x"43",x"4F",x"4D");													beginc1<='1';c2<='1';process(clk)variable cnt:integer range 0 to divide_to_100k;	begin	if rising_edge(clk) then		cnt:=cnt+1;		if cnt=divide_to_100k then			cnt:=0;		end if;		if cnt<divide_to_100k/2 then			clk_100k<='0';		else 			clk_100k<='1';		end if;	end if;end process;process(clk_100k)-------------clk_100kvariable cnt1:integer range 0 to 500000;		--cnt1 for loopvariable cnt1_1:integer range 0 to 1000; 	--cnt1_1 for writing operationvariable code_cnt:integer range 0 to 13;		--cnt1_2 array of codevariable data_cnt:integer range 0 to 480;	begin	if rising_edge(clk_100k) then		if rst='1' then			current_s<=s0;			cnt1:=0;			cnt1_1:=0;			code_cnt:=0;			data_cnt:=0;			lcd_rst<='0';				s0_a<='0';				s1_a<='0';				s2_a<='0';				s3_a<='0';				s4_a<='0';				s5_a<='0';				s6_a<='0';		else					case current_s is			when s0=>				wr<='1';				rd<='1';								cnt1:=cnt1+1;				if cnt1<250000 then					lcd_rst<='0';				elsif cnt1<500000 then--500					lcd_rst<='1';				elsif cnt1=500000 then--500			--delay for lcd_initial					lcd_rst<='1';					cnt1:=0;					current_s<=s1;				end if;					s0_a<='0';				s1_a<='1';				s2_a<='1';				s3_a<='1';				s4_a<='1';				s5_a<='1';				s6_a<='1';							when s1=>				if cnt1<2 then				--control amount of c_code					if cnt1_1<1*3 then											cd<='0';					elsif cnt1_1<2*3 then						lcd_data<=c_code(code_cnt);						if cnt1_1=(2*3-1) then							code_cnt:=code_cnt+1;						end if;					elsif cnt1_1<3*3 then						wr<='0';					elsif cnt1_1<4*3 then						wr<='1';				   -----------------------------writing a parameter										elsif cnt1_1<5*3 then						cd<='0';					elsif cnt1_1<6*3 then						lcd_data<=c_code(code_cnt);						if cnt1_1=6*3-1 then							code_cnt:=code_cnt+1;						end if;					elsif cnt1_1<7*3 then						wr<='0';					elsif cnt1_1<8*3 then						wr<='1';					-----------------------------writing a parameter											elsif cnt1_1<9*3 then						cd<='1';					elsif cnt1_1<10*3 then						lcd_data<=c_code(code_cnt);						if cnt1_1=10*3-1 then							code_cnt:=code_cnt+1;						end if;					elsif cnt1_1<11*3 then						wr<='0';					elsif cnt1_1<12*3 then						wr<='1';					end if;					end if;										-----------------------------writing a code										cnt1_1:=cnt1_1+1;				if cnt1_1=100 then						cnt1_1:=0;					cnt1:=cnt1+1;					if cnt1=2 then						current_s<=s2;						cnt1:=0;					end if;				end if;								s0_a<='1';				s1_a<='0';				s2_a<='1';				s3_a<='1';				s4_a<='1';				s5_a<='1';				s6_a<='1';							when s2=>				if cnt1<2 then				--control amount of c_code					if cnt1_1<1*3 then						cd<='1';					elsif cnt1_1<2*3 then						lcd_data<=c_code(code_cnt);						if cnt1_1=2*3-1 then							code_cnt:=code_cnt+1;						end if;					elsif cnt1_1<3*3 then						wr<='0';					elsif cnt1_1<4*3 then						wr<='1';					end if;					end if;													-----------------------------writing a code											cnt1_1:=cnt1_1+1;				if cnt1_1=100 then						cnt1_1:=0;					cnt1:=cnt1+1;					if cnt1=2 then						current_s<=s3;						cnt1:=0;					end if;				end if;				s0_a<='1';				s1_a<='1';				s2_a<='0';				s3_a<='1';				s4_a<='1';				s5_a<='1';				s6_a<='1';							when s3=>-------------------------set add_p and auto_write						if cnt1_1<1*3 then										cd<='0';				elsif cnt1_1<2*3 then					lcd_data<=c_code(8);				elsif cnt1_1<3*3 then					wr<='0';				elsif cnt1_1<4*3 then					wr<='1';			   -----------------------------writing a parameter								elsif cnt1_1<5*3 then					cd<='0';				elsif cnt1_1<6*3 then					lcd_data<=c_code(9);				elsif cnt1_1<7*3 then					wr<='0';				elsif cnt1_1<8*3 then					wr<='1';				-----------------------------writing a parameter									elsif cnt1_1<9*3 then					cd<='1';				elsif cnt1_1<10*3 then					lcd_data<=c_code(10);				elsif cnt1_1<11*3 then					wr<='0';				elsif cnt1_1<12*3 then					wr<='1';				end if;					-----------------------------writing a code										cnt1_1:=cnt1_1+1;				if cnt1_1=100 then						cnt1_1:=0;					current_s<=s4;				end if;				s0_a<='1';				s1_a<='1';				s2_a<='1';				s3_a<='0';				s4_a<='1';				s5_a<='1';				s6_a<='1';							when s4=>				if cnt1_1<1*3 then					cd<='1';				elsif cnt1_1<2*3 then					lcd_data<=c_code(11);				elsif cnt1_1<5*3 then					wr<='0';				elsif cnt1_1<6*3 then					wr<='1';				end if;					-----------------------------writing a code										cnt1_1:=cnt1_1+1;				if cnt1_1=100 then						cnt1_1:=0;					current_s<=s5;					data_cnt:=0;				end if;				s0_a<='1';				s1_a<='1';				s2_a<='1';				s3_a<='1';				s4_a<='0';				s5_a<='1';				s6_a<='1';			when s5=>				if cnt1_1<1*3 then										cd<='0';				elsif cnt1_1<2*3 then					lcd_data<=x"37";					data_cnt:=data_cnt+1;				elsif cnt1_1<3*3 then					wr<='0';				elsif cnt1_1<4*3 then					wr<='1';				end if;			   -----------------------------writing a data					cnt1_1:=cnt1_1+1;				if cnt1_1=100 then						cnt1_1:=0;					if data_cnt=480 then						current_s<=s6;						data_cnt:=0;					end if;				end if;				s0_a<='1';				s1_a<='1';				s2_a<='1';				s3_a<='1';				s4_a<='1';				s5_a<='0';				s6_a<='1';				when s6=>				if cnt1_1<1*3 then					cd<='1';				elsif cnt1_1<2*3 then					lcd_data<=c_code(12);				elsif cnt1_1<3*3 then					wr<='0';				elsif cnt1_1<4*3 then					wr<='1';				end if;					-----------------------------writing a code										cnt1_1:=cnt1_1+1;				if cnt1_1=100 then						cnt1_1:=0;----------------------------------------------------------					current_s<=s7;--------------------------------------------------------				end if;									s0_a<='1';				s1_a<='1';				s2_a<='1';				s3_a<='1';				s4_a<='1';				s5_a<='1';				s6_a<='0';							when s7=>-------------------------set add_p and auto_write						if cnt1_1=0 then										cd<='0';				elsif cnt1_1=1 then					lcd_data<=x"00";				elsif cnt1_1=2 then					wr<='0';				elsif cnt1_1=3 then					wr<='1';			   -----------------------------writing a parameter								elsif cnt1_1=4 then					cd<='0';				elsif cnt1_1=5 then					lcd_data<=x"00";				elsif cnt1_1=6 then					wr<='0';				elsif cnt1_1=7 then					wr<='1';				-----------------------------writing a parameter									elsif cnt1_1=8 then					cd<='1';				elsif cnt1_1=9 then					lcd_data<=c_code(10);				elsif cnt1_1=10 then					wr<='0';				elsif cnt1_1=11 then					wr<='1';				end if;					-----------------------------writing a code										cnt1_1:=cnt1_1+1;				if cnt1_1=100 then						cnt1_1:=0;					current_s<=s8;				end if;				s0_a<='1';				s1_a<='1';				s2_a<='1';				s3_a<='0';				s4_a<='1';				s5_a<='1';				s6_a<='1';							when s8=>				if cnt1_1=0 then					cd<='1';				elsif cnt1_1=1 then					lcd_data<=c_code(11);				elsif cnt1_1=2 then					wr<='0';				elsif cnt1_1=3 then					wr<='1';				end if;					-----------------------------writing a code										cnt1_1:=cnt1_1+1;				if cnt1_1=100 then						cnt1_1:=0;					current_s<=s9;					data_cnt:=0;				end if;				s0_a<='1';				s1_a<='1';				s2_a<='1';				s3_a<='1';				s4_a<='0';				s5_a<='1';				s6_a<='1';							when s9=>				if cnt1_1=0 then										cd<='0';				elsif cnt1_1=1 then					lcd_data<=x"00";					data_cnt:=data_cnt+1;				elsif cnt1_1=2 then					wr<='0';				elsif cnt1_1=3 then					wr<='1';				end if;			   -----------------------------writing a data					cnt1_1:=cnt1_1+1;				if cnt1_1=100 then						cnt1_1:=0;					if data_cnt=480 then						current_s<=s10;						data_cnt:=0;					end if;				end if;				s0_a<='1';				s1_a<='1';				s2_a<='1';				s3_a<='1';				s4_a<='1';				s5_a<='0';				s6_a<='1';							when s10=>				if cnt1_1=0 then					cd<='1';				elsif cnt1_1=1 then					lcd_data<=c_code(12);				elsif cnt1_1=2 then					wr<='0';				elsif cnt1_1=3 then					wr<='1';				end if;					-----------------------------writing a code										cnt1_1:=cnt1_1+1;				if cnt1_1=100 then						cnt1_1:=0;----------------------------------------------------------					current_s<=s11;--------------------------------------------------------				end if;									s0_a<='1';				s1_a<='1';				s2_a<='1';				s3_a<='1';				s4_a<='1';				s5_a<='1';				s6_a<='0';											when s11=>-------------------------set add_p and auto_write						if cnt1_1=0 then										cd<='0';				elsif cnt1_1=1 then					lcd_data<=c_code(8);				elsif cnt1_1=2 then					wr<='0';				elsif cnt1_1=3 then					wr<='1';			   -----------------------------writing a parameter								elsif cnt1_1=4 then					cd<='0';				elsif cnt1_1=5 then					lcd_data<=c_code(9);				elsif cnt1_1=6 then					wr<='0';				elsif cnt1_1=7 then					wr<='1';				-----------------------------writing a parameter									elsif cnt1_1=8 then					cd<='1';				elsif cnt1_1=9 then					lcd_data<=c_code(10);				elsif cnt1_1=10 then					wr<='0';				elsif cnt1_1=11 then					wr<='1';				end if;					-----------------------------writing a code										cnt1_1:=cnt1_1+1;				if cnt1_1=100 then						cnt1_1:=0;					current_s<=s12;				end if;				s0_a<='1';				s1_a<='1';				s2_a<='1';				s3_a<='0';				s4_a<='1';				s5_a<='1';				s6_a<='1';							when s12=>				if cnt1_1=0 then					cd<='1';				elsif cnt1_1=1 then					lcd_data<=c_code(11);				elsif cnt1_1=2 then					wr<='0';				elsif cnt1_1=3 then					wr<='1';				end if;					-----------------------------writing a code										cnt1_1:=cnt1_1+1;				if cnt1_1=100 then						cnt1_1:=0;					current_s<=s13;					data_cnt:=0;				end if;				s0_a<='1';				s1_a<='1';				s2_a<='1';				s3_a<='1';				s4_a<='0';				s5_a<='1';				s6_a<='1';							when s13=>				if cnt1_1=0 then										cd<='0';				elsif cnt1_1=1 then					lcd_data<=data_buf(data_cnt);					data_cnt:=data_cnt+1;				elsif cnt1_1=2 then					wr<='0';				elsif cnt1_1=3 then					wr<='1';				end if;			   -----------------------------writing a data					cnt1_1:=cnt1_1+1;				if cnt1_1=100 then						cnt1_1:=0;					if data_cnt=15 then						current_s<=s14;						data_cnt:=0;					end if;				end if;				s0_a<='1';				s1_a<='1';				s2_a<='1';				s3_a<='1';				s4_a<='1';				s5_a<='0';				s6_a<='1';							when s14=>				if cnt1_1=0 then					cd<='1';				elsif cnt1_1=1 then					lcd_data<=c_code(12);				elsif cnt1_1=2 then					wr<='0';				elsif cnt1_1=3 then					wr<='1';				end if;					-----------------------------writing a code										cnt1_1:=cnt1_1+1;				if cnt1_1=100 then						cnt1_1:=0;----------------------------------------------------------					current_s<=s15;--------------------------------------------------------				end if;									s0_a<='1';				s1_a<='1';				s2_a<='1';				s3_a<='1';				s4_a<='1';				s5_a<='1';				s6_a<='0';			when s15=>				null;			when others=>				current_s<=s0;			end case;		end if;	end if;end process;									end Behavioral;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美精品在线观看一区二区| 一区精品在线播放| 久久综合视频网| 亚洲免费av观看| 国产福利精品一区二区| 欧美撒尿777hd撒尿| 国产精品久久久久久久午夜片| 亚洲一级不卡视频| 99久久久久免费精品国产| 欧美一区二区私人影院日本| 亚洲视频一区二区在线| 国内精品国产成人国产三级粉色 | 欧美三级日本三级少妇99| 欧美激情综合网| 国产一区999| 91精品国产免费久久综合| 亚洲另类色综合网站| 成人免费高清视频| 日韩精品一区国产麻豆| 天天色天天爱天天射综合| 91免费看`日韩一区二区| 中文av一区二区| 国产九色精品成人porny| 日韩一区二区在线观看视频 | 欧美日韩免费观看一区三区| 国产精品国产馆在线真实露脸 | 天天操天天干天天综合网| 99免费精品视频| 国产精品久久久一本精品| 国产美女av一区二区三区| 欧美成人性战久久| 日本va欧美va精品| 3d成人h动漫网站入口| 亚洲一二三四区| 欧美日韩免费观看一区二区三区| 亚洲精品乱码久久久久久日本蜜臀| 国产69精品久久99不卡| 国产色婷婷亚洲99精品小说| 国产一区二区三区香蕉| 国产亚洲成av人在线观看导航| 国产在线观看一区二区| 国产亚洲婷婷免费| 成人黄色一级视频| 亚洲免费av高清| 欧美丰满高潮xxxx喷水动漫| 男男gaygay亚洲| 欧美大片日本大片免费观看| 久久99精品国产麻豆不卡| 久久久亚洲精品一区二区三区| 国产乱人伦偷精品视频免下载| 国产欧美1区2区3区| 不卡的电影网站| 亚洲自拍偷拍网站| 欧美一级片在线| 国产精品亚洲综合一区在线观看| 国产精品久久久久aaaa| 在线精品视频小说1| 美女精品自拍一二三四| 欧美激情一区二区三区全黄| 99热在这里有精品免费| 亚洲电影第三页| 精品伦理精品一区| 懂色av一区二区夜夜嗨| 亚洲午夜激情网页| 精品国产青草久久久久福利| gogo大胆日本视频一区| 视频一区在线视频| 久久精品亚洲精品国产欧美kt∨ | 成人精品视频一区二区三区 | 中文字幕欧美三区| 欧美日韩精品一区二区三区蜜桃 | 色噜噜夜夜夜综合网| 日本不卡的三区四区五区| 国产清纯在线一区二区www| 欧美人动与zoxxxx乱| 久久国产免费看| 亚洲最新视频在线播放| 久久久.com| 欧美久久久久久久久中文字幕| 国产精品1024| 日韩精品一二三四| 亚洲精品一卡二卡| 2021中文字幕一区亚洲| 欧美日韩日日摸| 成人国产免费视频| 精品一区二区久久久| 亚洲在线成人精品| 国产日韩欧美一区二区三区乱码| 欧美日韩成人综合天天影院| 成人高清视频在线| 麻豆精品一区二区综合av| 亚洲激情中文1区| 国产日本亚洲高清| 久久久精品欧美丰满| 69久久99精品久久久久婷婷 | 成人午夜电影网站| 老色鬼精品视频在线观看播放| 夜夜嗨av一区二区三区四季av| 国产精品久久一卡二卡| 精品国产电影一区二区| 宅男噜噜噜66一区二区66| 日本精品一区二区三区高清| av爱爱亚洲一区| 不卡av免费在线观看| 成人av手机在线观看| 亚洲一区中文日韩| 91麻豆福利精品推荐| 波多野结衣一区二区三区| 岛国精品在线观看| 成人在线综合网站| 国产成人精品亚洲午夜麻豆| 精品一区二区综合| 黄页视频在线91| 狠狠色丁香婷综合久久| 捆绑紧缚一区二区三区视频| 日韩高清不卡一区二区| 视频一区视频二区中文字幕| 亚洲成人久久影院| 天堂影院一区二区| 五月天一区二区| 日本成人在线一区| 另类成人小视频在线| 国产一区在线观看视频| 高清不卡在线观看av| 不卡一卡二卡三乱码免费网站| gogogo免费视频观看亚洲一| 91美女蜜桃在线| 欧美性欧美巨大黑白大战| 欧美视频一区二区在线观看| 欧美精品亚洲二区| 欧美本精品男人aⅴ天堂| 精品奇米国产一区二区三区| 久久亚洲私人国产精品va媚药| 欧美激情一区二区在线| 亚洲视频 欧洲视频| 亚洲一区二区av在线| 麻豆精品蜜桃视频网站| 国产一区二区三区| 一本色道**综合亚洲精品蜜桃冫| 欧美亚洲综合色| 欧美一区二区三区喷汁尤物| 国产亚洲欧美一级| 亚洲精品日韩专区silk| 日本中文一区二区三区| 国模冰冰炮一区二区| 91网站在线观看视频| 91精品国产综合久久久久久 | 欧美午夜宅男影院| 精品国产网站在线观看| 亚洲女子a中天字幕| 日韩国产欧美一区二区三区| 国产成+人+日韩+欧美+亚洲| 在线精品亚洲一区二区不卡| 亚洲精品一线二线三线无人区| 国产精品国产三级国产普通话蜜臀| 亚洲成在线观看| 国产69精品久久99不卡| 777午夜精品视频在线播放| 国产清纯白嫩初高生在线观看91| 亚洲国产日日夜夜| 成人av电影在线观看| 欧美一区二区精美| 亚洲一区二区三区中文字幕在线| 激情综合五月婷婷| 在线观看成人免费视频| 国产视频视频一区| 蜜桃视频在线一区| 色视频成人在线观看免| 精品第一国产综合精品aⅴ| 亚洲一区二区高清| 成人av资源站| 久久精品日韩一区二区三区| 日日欢夜夜爽一区| 日本久久一区二区| 国产精品久久三区| 国产一区 二区 三区一级| 日韩欧美一二区| 日韩电影免费一区| 欧美视频中文字幕| 亚洲欧美日韩精品久久久久| 成人国产精品免费观看视频| 久久亚洲精品小早川怜子| 九一九一国产精品| 欧美一区二区视频在线观看 | 91精品国产综合久久精品麻豆 | 亚洲精品免费在线观看| 国产福利一区二区三区| 26uuu国产日韩综合| 蜜臀久久99精品久久久久宅男| 欧洲一区在线电影| 亚洲丝袜另类动漫二区| 97精品电影院| 国产精品二三区| 成a人片亚洲日本久久| 国产精品伦理在线| 成人免费视频视频在线观看免费 | 日韩欧美一二三四区| 蜜桃久久av一区| 精品日韩av一区二区| 秋霞电影网一区二区|