亚洲欧美第一页_禁久久精品乱码_粉嫩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=33 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>12 and cc<14 and innum0(7)='1' then
				rgbp<=color4;
			elsif cc>13 and cc<15 and innum0(6)='1' then
				rgbp<=color4;
			elsif cc>14 and cc<16 and innum0(5)='1' then
				rgbp<=color4;
			elsif cc>15 and cc<17 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一区二区三区免费野_久草精品视频
亚洲欧美日韩久久精品| 欧美刺激脚交jootjob| 成人丝袜视频网| 成人性生交大片免费看中文网站| 日韩高清不卡一区二区三区| 亚洲国产va精品久久久不卡综合 | 国产天堂亚洲国产碰碰| 欧美电影一区二区三区| thepron国产精品| 在线看日韩精品电影| 欧美日韩国产影片| 精品少妇一区二区三区视频免付费| 欧美日韩国产一级片| 日韩免费一区二区| 中文字幕佐山爱一区二区免费| 1000精品久久久久久久久| 一区二区三区日韩欧美| 视频一区二区中文字幕| 国产一区在线不卡| 日本高清视频一区二区| 欧美刺激午夜性久久久久久久| 久久久综合精品| 亚洲电影你懂得| 国产91在线|亚洲| 7777精品伊人久久久大香线蕉最新版| 久久婷婷成人综合色| 亚洲妇熟xx妇色黄| 国产一区亚洲一区| 欧美影视一区在线| 亚洲欧洲国产日本综合| 麻豆精品视频在线观看免费| 91福利精品视频| 国产精品美女视频| 国产一区二区女| 欧美一区二区三区精品| 有码一区二区三区| 91亚洲精华国产精华精华液| 日韩免费高清电影| 亚洲欧美综合色| 成人性生交大片免费看中文网站| 日韩一卡二卡三卡国产欧美| 亚洲一区二区三区在线播放| eeuss国产一区二区三区| 久久综合九色综合久久久精品综合 | 91久久精品国产91性色tv| 国产精品视频免费看| 久久国内精品自在自线400部| 4438x亚洲最大成人网| 丝袜美腿亚洲一区二区图片| 欧美久久久影院| 久色婷婷小香蕉久久| 久久久久99精品国产片| 成人理论电影网| 天天综合色天天| 久久综合九色综合97_久久久| 国产酒店精品激情| 亚洲视频免费看| 色噜噜夜夜夜综合网| 亚洲成av人影院在线观看网| 欧美日韩国产另类一区| 久久成人久久爱| 一区二区三区四区激情| 91精品婷婷国产综合久久| 国产乱码一区二区三区| 亚洲欧洲三级电影| 欧美一级理论片| 色婷婷av一区二区| 看国产成人h片视频| 亚洲精品成人精品456| 91精品国产色综合久久不卡蜜臀 | 91麻豆精品国产自产在线观看一区 | gogo大胆日本视频一区| 1000精品久久久久久久久| 精品欧美久久久| 欧美日本国产视频| 色婷婷综合五月| 成人免费视频视频| 国产精品99久久久久久似苏梦涵 | 91小视频免费看| 国产精品一区二区果冻传媒| 亚洲高清免费观看高清完整版在线观看 | 91蝌蚪porny| 92国产精品观看| 色综合天天综合网天天狠天天| 毛片av一区二区三区| 日本aⅴ精品一区二区三区| 亚洲成人精品影院| 日日摸夜夜添夜夜添国产精品| 一区二区三区高清| 亚洲成a人v欧美综合天堂下载 | 韩国成人在线视频| 蜜臀精品一区二区三区在线观看 | 一本久道中文字幕精品亚洲嫩| av亚洲精华国产精华| 色婷婷精品久久二区二区蜜臀av| av资源站一区| 色狠狠一区二区| 色综合色综合色综合| 欧美亚洲一区二区三区四区| 欧美色综合久久| 欧美精品123区| 日韩精品中文字幕一区二区三区| 久久久国际精品| 亚洲人精品一区| 久久99热这里只有精品| 国产综合久久久久影院| 99久久99久久精品国产片果冻| 日本韩国精品在线| 久久久美女艺术照精彩视频福利播放| 亚洲三级小视频| 久久国产日韩欧美精品| 不卡av在线网| 日韩一级片在线播放| 亚洲一二三区不卡| 国产福利91精品一区二区三区| 欧美性大战久久| 国产精品国产三级国产aⅴ中文 | 91精品国产综合久久国产大片 | 成人h动漫精品| 日韩一区二区麻豆国产| 亚洲精品欧美二区三区中文字幕| 久久66热偷产精品| 8x福利精品第一导航| 亚洲人成在线观看一区二区| 国产精一区二区三区| 日韩一级黄色片| 青青国产91久久久久久| 久久先锋影音av| 美女在线一区二区| 欧美三区免费完整视频在线观看| 日韩欧美一级二级三级久久久| 久久久久久久国产精品影院| 国产欧美一区二区在线| 亚洲一区二区视频在线观看| 午夜电影网亚洲视频| 天堂资源在线中文精品| 91香蕉视频污在线| www.久久久久久久久| 99re成人精品视频| 91丨porny丨国产| 色婷婷亚洲综合| 日韩一区二区在线播放| 国产欧美日韩亚州综合| 日韩欧美国产一区二区三区| 日韩精品一二三四| 欧美亚洲日本一区| 国产精品久久久久久一区二区三区| 丝袜a∨在线一区二区三区不卡| 风流少妇一区二区| 亚洲品质自拍视频网站| 欧美在线观看一区二区| 国产麻豆视频一区| 亚洲另类春色校园小说| 91在线码无精品| 亚洲美女偷拍久久| 欧美日韩高清在线播放| 亚洲成a人v欧美综合天堂 | 欧美天天综合网| 九九久久精品视频| 国产精品久久久久天堂| 在线亚洲免费视频| 麻豆专区一区二区三区四区五区| 中文无字幕一区二区三区| 欧美老女人在线| 99久久er热在这里只有精品66| 懂色一区二区三区免费观看| 亚洲国产精品一区二区久久恐怖片| 国产精品国产a级| 久久色在线观看| 久久久影院官网| 欧美日韩国产在线观看| 在线影院国内精品| 一本色道综合亚洲| 欧美在线观看一二区| 91在线视频观看| 91麻豆免费观看| 欧美在线视频全部完| 色综合天天综合网天天狠天天| 成人h动漫精品一区二| 日韩欧美激情一区| 欧美精品一区二区三区四区| 国产精品乱子久久久久| 欧美一区二区三区日韩视频| 欧美日韩色综合| 日韩欧美成人一区| 26uuu亚洲| 成人欧美一区二区三区1314| 国产精品美女久久久久av爽李琼 | 香蕉av福利精品导航| 五月婷婷欧美视频| 国产精品亚洲一区二区三区在线 | 亚洲精品视频观看| 日韩中文欧美在线| 日韩在线一区二区| 成人精品在线视频观看| 91久久免费观看| 日韩精品一区二区三区在线观看| 欧美国产欧美亚州国产日韩mv天天看完整 | 97久久超碰精品国产| 欧美精品vⅰdeose4hd|