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

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

?? vga_16.vhd

?? 含有各類寄存器
?? VHD
字號:
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;

--  Uncomment the following lines to use the declarations that are
--  provided for instantiating Xilinx primitive components.
--library UNISIM;
--use UNISIM.VComponents.all;

entity vga_16 is
    Port ( clk : in std_logic;
           hs : out std_logic;
           vs : out std_logic;
           r : out std_logic;
           g : out std_logic;
           b : out std_logic;
		 	  innum  : in std_logic_vector(15 downto 0);
		     innum0 : in std_logic_vector(15 downto 0); 
           innum1 : in std_logic_vector(6 downto 0);
           innum2 : in std_logic_vector(6 downto 0);
           innum3 : in std_logic_vector(6 downto 0);
		     innum4 : in std_logic_vector(6 downto 0));
end vga_16;

architecture Behavioral of vga_16 is

constant  color1: std_logic_vector:="010";		--顯示顏色為紅色
constant  color2: std_logic_vector:="100";
constant  color3: std_logic_vector:="001";
constant  color4: std_logic_vector:="110";

signal 	hs1,vs1,fclk,cclk: std_logic;
signal 	fs: std_logic_vector(5 downto 0);
signal 	cc: std_logic_vector(4 downto 0);
signal 	ll: std_logic_vector(8 downto 0);
signal 	rgbp: std_logic_vector(3 downto 1);
signal	rgb: std_logic_vector(3 downto 1);

begin

rgb(1)<=rgbp(1) and hs1 and vs1;
rgb(2)<=rgbp(2) and hs1 and vs1;
rgb(3)<=rgbp(3) and hs1 and vs1;
fclk<=fs(5);
cclk<=cc(4);
hs<=hs1;
vs<=vs1;
r<=rgb(2);
g<=rgb(3);
b<=rgb(1);

process(clk)
begin
	if clk'event and clk='1' then
		if fs=51 then
			fs<="000000";
		else
			fs<=fs+1;
		end if;
	end if;
end process;

process(fclk)
begin
	if fclk'event and fclk='1' then
		if cc=27 then
			cc<="00000";
		else
			cc<=cc+1;
		end if;
	end if;
end process;

process(cclk)
begin
	if cclk'event and cclk='1' then
		if ll=481 then
			ll<="000000000";
		else
			ll<=ll+1;
		end if;
	end if;
end process;

process(cc, ll)
begin
	if cc>23 then 			--行同步
		hs1<='0';
	else hs1<='1';
	end if;
	if ll>479 then			--場同步
		vs1<='0';
	else vs1<='1';
	end if;
end process;

process(cc,ll,innum,innum1,innum2,innum3,innum4)
begin
	if cc>2 and cc<7 then
		if ll>60 and ll<101 and innum4(0)='0' then
			rgbp<=color1;
		elsif ll>180 and ll<221 and innum4(6)='0' then
			rgbp<=color1;
		elsif ll>300 and ll<341 and innum4(3)='0' then
			rgbp<=color1;
		elsif ll>60 and ll<202 then
			if (cc>2 and cc<4) and innum4(5)='0' then
				rgbp<=color1;
			elsif (cc>5 and cc<7) and innum4(1)='0' then
				rgbp<=color1;
			else rgbp<="000";
			end if;
		elsif ll>201 and ll<341 then
			if (cc>2 and cc<4) and innum4(4)='0' then
				rgbp<=color1;
			elsif (cc>5 and cc<7) and innum4(2)='0' then
				rgbp<=color1;
			else rgbp<="000";
			end if;
		elsif ll>350 and ll<370 then
			if cc>2 and cc<4 and innum(15)='1' then
				rgbp<=color1;
			elsif cc>3 and cc<5 and innum(14)='1' then
				rgbp<=color1;
			elsif cc>4 and cc<6 and innum(13)='1' then
				rgbp<=color1;
			elsif cc>5 and cc<7 and innum(12)='1' then
				rgbp<=color1;
			else rgbp<="000";
			end if;
		elsif ll>380 and ll<400 then
			if cc>2 and cc<4 and innum0(15)='1' then
				rgbp<=color1;
			elsif cc>3 and cc<5 and innum0(14)='1' then
				rgbp<=color1;
			elsif cc>4 and cc<6 and innum0(13)='1' then
				rgbp<=color1;
			elsif cc>5 and cc<7 and innum0(12)='1' then
				rgbp<=color1;
			else rgbp<="000";
			end if;
		end if;
		elsif cc>7 and cc<12 then
		if ll>60 and ll<101 and innum3(0)='0' then
			rgbp<=color2;
		elsif ll>180 and ll<221 and innum3(6)='0' then
			rgbp<=color2;
		elsif ll>300 and ll<341 and innum3(3)='0' then
			rgbp<=color2;
		elsif ll>60 and ll<202 then
			if (cc>7 and cc<9) and innum3(5)='0' then
				rgbp<=color2;
			elsif (cc>10 and cc<12) and innum3(1)='0' then
				rgbp<=color2;
			else rgbp<="000";
			end if;
		elsif ll>201 and ll<341 then
			if (cc>7 and cc<9) and innum3(4)='0' then
				rgbp<=color2;
			elsif (cc>10 and cc<12) and innum3(2)='0' then
				rgbp<=color2;
			else rgbp<="000";
			end if;
		elsif ll>350 and ll<370 then
			if cc>7 and cc<9 and innum(11)='1' then
				rgbp<=color2;
			elsif cc>8 and cc<10 and innum(10)='1' then
				rgbp<=color2;
			elsif cc>9 and cc<11 and innum(9)='1' then
				rgbp<=color2;
			elsif cc>10 and cc<12 and innum(8)='1' then
				rgbp<=color2;
			else rgbp<="000";
			end if;
			elsif ll>380 and ll<400 then
			if cc>7 and cc<9 and innum0(11)='1' then
				rgbp<=color2;
			elsif cc>8 and cc<10 and innum0(10)='1' then
				rgbp<=color2;
			elsif cc>9 and cc<11 and innum0(9)='1' then
				rgbp<=color2;
			elsif cc>10 and cc<12 and innum0(8)='1' then
				rgbp<=color2;
			else rgbp<="000";
			end if;
		end if;
	elsif cc>12 and cc<17 then
		if ll>60 and ll<101 and innum2(0)='0' then
			rgbp<=color3;
		elsif ll>180 and ll<221 and innum2(6)='0' then
			rgbp<=color3;
		elsif ll>300 and ll<341 and innum2(3)='0' then
			rgbp<=color3;
		elsif ll>60 and ll<202 then
			if (cc>12 and cc<14) and innum2(5)='0' then
				rgbp<=color3;
			elsif (cc>15 and cc<17) and innum2(1)='0' then
				rgbp<=color3;
			else rgbp<="000";
			end if;
		elsif ll>201 and ll<341 then
			if (cc>12 and cc<14) and innum2(4)='0' then
				rgbp<=color3;
			elsif (cc>15 and cc<17) and innum2(2)='0' then
				rgbp<=color3;
			else rgbp<="000";
			end if;
		elsif ll>350 and ll<370 then
			if cc>12 and cc<14 and innum(7)='1' then
				rgbp<=color3;
			elsif cc>13 and cc<15 and innum(6)='1' then
				rgbp<=color3;
			elsif cc>14 and cc<16 and innum(5)='1' then
				rgbp<=color3;
			elsif cc>15 and cc<17 and innum(4)='1' then
				rgbp<=color3;
			else rgbp<="000";
			end if;
		elsif ll>380 and ll<400 then
			if cc>17 and cc<19 and innum0(7)='1' then
				rgbp<=color4;
			elsif cc>18 and cc<20 and innum0(6)='1' then
				rgbp<=color4;
			elsif cc>19 and cc<21 and innum0(5)='1' then
				rgbp<=color4;
			elsif cc>20 and cc<22 and innum0(4)='1' then
				rgbp<=color4;
			else rgbp<="000";
			end if;
		end if;
	elsif cc>17 and cc<22 then
		if ll>60 and ll<101 and innum1(0)='0' then
			rgbp<=color4;
		elsif ll>180 and ll<221 and innum1(6)='0' then
			rgbp<=color4;
		elsif ll>300 and ll<341 and innum1(3)='0' then
			rgbp<=color4;
		elsif ll>60 and ll<202 then
			if (cc>17 and cc<19) and innum1(5)='0' then
				rgbp<=color4;
			elsif (cc>20 and cc<22) and innum1(1)='0' then
				rgbp<=color4;
			else rgbp<="000";
			end if;
		elsif ll>201 and ll<341 then
			if (cc>17 and cc<19) and innum1(4)='0' then
				rgbp<=color4;
			elsif (cc>20 and cc<22) and innum1(2)='0' then
				rgbp<=color4;
			else rgbp<="000";
			end if;
		elsif ll>350 and ll<370 then
			if cc>17 and cc<19 and innum(3)='1' then
				rgbp<=color4;
			elsif cc>18 and cc<20 and innum(2)='1' then
				rgbp<=color4;
			elsif cc>19 and cc<21 and innum(1)='1' then
				rgbp<=color4;
			elsif cc>20 and cc<22 and innum(0)='1' then
				rgbp<=color4;
			else rgbp<="000";
			end if;
		elsif ll>380 and ll<400 then
			if cc>17 and cc<19 and innum0(3)='1' then
				rgbp<=color4;
			elsif cc>18 and cc<20 and innum0(2)='1' then
				rgbp<=color4;
			elsif cc>19 and cc<21 and innum0(1)='1' then
				rgbp<=color4;
			elsif cc>20 and cc<22 and innum0(0)='1' then
				rgbp<=color4;
			else rgbp<="000";
			end if;
		else rgbp<="000";
		end if;	
	else rgbp<="000";
	end if;
end process;

end Behavioral;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩一级大片在线| 亚洲国产美国国产综合一区二区| 中文天堂在线一区| 视频一区视频二区中文| 激情综合色播五月| 欧美午夜精品一区二区蜜桃| 久久久不卡影院| 日本女人一区二区三区| 91麻豆国产福利精品| 国产清纯白嫩初高生在线观看91 | 亚洲欧美综合色| 美女视频网站黄色亚洲| 欧洲精品一区二区| 中文字幕av一区 二区| 久久精品免费看| 欧美精品三级日韩久久| 亚洲蜜臀av乱码久久精品蜜桃| 国产一区二区毛片| 日韩女优av电影在线观看| 日韩中文欧美在线| 欧美日韩五月天| 亚洲综合免费观看高清完整版在线 | 亚洲专区一二三| www.欧美.com| 亚洲欧美怡红院| av在线这里只有精品| 国产三级精品三级| 精品一区在线看| 日韩一区二区三区四区五区六区| 一区二区三区小说| 一本一本久久a久久精品综合麻豆| 国产精品视频一二三| 懂色av一区二区三区免费看| 久久久蜜桃精品| 丁香婷婷综合色啪| 国产日本欧美一区二区| 成人h动漫精品一区二| 中文在线资源观看网站视频免费不卡| 激情欧美日韩一区二区| 337p日本欧洲亚洲大胆色噜噜| 精品一区二区三区视频在线观看| 日韩视频在线一区二区| 久久99久久99| 国产欧美日韩另类一区| 99综合电影在线视频| 中文字幕日韩av资源站| 在线精品亚洲一区二区不卡| 亚洲成av人在线观看| 欧美久久久影院| 久久av资源网| 中文文精品字幕一区二区| 99r国产精品| 日韩不卡免费视频| 日本一区二区三区高清不卡| 色婷婷综合久色| 精品综合久久久久久8888| 中文字幕成人在线观看| 欧美在线观看18| 极品少妇一区二区| 亚洲精品视频免费观看| 日韩女优制服丝袜电影| 99久久精品久久久久久清纯| 日韩av中文字幕一区二区| 国产欧美中文在线| 欧美日韩亚洲综合在线 欧美亚洲特黄一级 | 欧美剧情电影在线观看完整版免费励志电影| 性欧美疯狂xxxxbbbb| 国产亚洲精品精华液| 欧美午夜精品一区| 亚洲制服丝袜一区| 欧美一区二区福利在线| 日韩高清不卡一区| 亚洲国产精品t66y| 91成人免费在线视频| 亚洲三级小视频| 欧美精品一区二区三区蜜桃 | 国产女同性恋一区二区| av不卡免费在线观看| 亚洲高清免费观看高清完整版在线观看| 91精品91久久久中77777| 老司机午夜精品99久久| 中文字幕av一区二区三区| 在线观看网站黄不卡| 美日韩一区二区| 亚洲视频一区二区免费在线观看| 91精品在线麻豆| 国产寡妇亲子伦一区二区| 亚洲精品国产精品乱码不99| 日韩色视频在线观看| 欧美日韩在线三级| 成人一道本在线| 日韩激情一二三区| 国产女人18毛片水真多成人如厕 | 亚洲1区2区3区4区| 国产欧美日韩另类一区| 欧美电视剧免费全集观看| 波多野结衣欧美| 美女一区二区在线观看| 亚洲久草在线视频| 欧美电视剧免费全集观看| 在线观看91精品国产入口| 精油按摩中文字幕久久| 欧美成人精品福利| 久久疯狂做爰流白浆xx| 亚洲精品一卡二卡| 国产亚洲成年网址在线观看| 欧美日韩大陆在线| 色国产综合视频| 国内外精品视频| 国产自产高清不卡| 丝袜亚洲另类欧美综合| 亚洲视频1区2区| 国产欧美一区二区精品婷婷| 日韩欧美高清dvd碟片| 欧美性感一区二区三区| 波多野结衣中文字幕一区二区三区| 精品一区二区三区欧美| 天堂久久久久va久久久久| 一区二区三区不卡视频在线观看 | 99麻豆久久久国产精品免费优播| 卡一卡二国产精品 | 久久一区二区三区国产精品| 精品久久久三级丝袜| 欧美日韩一区二区三区高清 | 日韩你懂的电影在线观看| 欧美三级中文字幕| 91福利国产成人精品照片| 91色九色蝌蚪| 99久久久国产精品免费蜜臀| 精品一二线国产| 国产精品亚洲视频| 国产精品一区二区免费不卡 | 久久久久久久久久久久久女国产乱 | 久久九九久久九九| wwwwww.欧美系列| 久久精品人人做人人综合 | 91亚洲精品久久久蜜桃| 高清国产一区二区| 白白色 亚洲乱淫| 欧美性猛片aaaaaaa做受| 精品视频在线免费| 777久久久精品| 欧美精品一区在线观看| 欧美xxxx老人做受| 亚洲欧洲日本在线| 亚洲天堂福利av| 亚洲欧美自拍偷拍色图| 日韩国产欧美在线播放| 久久国产人妖系列| 国产精品中文字幕一区二区三区| 紧缚奴在线一区二区三区| 国产精品一区一区三区| 成人精品一区二区三区四区 | 一区二区三区四区在线免费观看 | 国产成人av一区二区三区在线| 午夜国产精品一区| 国产福利电影一区二区三区| 波多野结衣在线一区| 欧美网站一区二区| 日韩欧美国产系列| 国产精品视频看| 一区二区中文视频| 国内久久精品视频| 91免费观看国产| 88在线观看91蜜桃国自产| 久久这里只有精品6| 亚洲人被黑人高潮完整版| 亚洲综合清纯丝袜自拍| 久久精品国产99久久6| 国产91在线观看| 欧美日韩国产成人在线91| 精品国产乱码久久久久久1区2区| 中文字幕一区三区| 亚洲国产综合视频在线观看| av男人天堂一区| 7777精品伊人久久久大香线蕉的| 久久久久久久久岛国免费| 一区二区免费看| 国产一区二区不卡在线| 在线欧美一区二区| 亚洲视频网在线直播| 久99久精品视频免费观看| 91麻豆福利精品推荐| 久久久美女艺术照精彩视频福利播放| 一区二区三区色| 成人高清视频在线| 精品国产一区二区在线观看| 亚洲色图欧洲色图| 99国产精品久久久久| 精品理论电影在线观看 | 欧美在线免费播放| 久久久久久久久久久久久久久99| 亚洲国产视频一区二区| 国产露脸91国语对白| 26uuu国产日韩综合| 爽好多水快深点欧美视频| 97精品视频在线观看自产线路二 | 91久久精品国产91性色tv | 国产成人一级电影| 久久久久久久久久久电影|