亚洲欧美第一页_禁久久精品乱码_粉嫩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,innum0,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一区二区三区免费野_久草精品视频
欧美中文字幕一区| 久久精品人人做人人爽人人| 国产精品久久久久影院色老大| 欧美日韩午夜在线| 久久久亚洲高清| 国产成人亚洲综合a∨婷婷图片| 欧美调教femdomvk| 视频一区二区不卡| 国产午夜亚洲精品理论片色戒 | 日韩一区二区精品| 欧美成人a视频| 91美女在线观看| 色呦呦网站一区| 91精品在线一区二区| 日韩你懂的在线观看| 国产欧美一区二区在线| 亚洲已满18点击进入久久| 欧洲人成人精品| 6080日韩午夜伦伦午夜伦| 国产亚洲欧美日韩日本| 久久蜜桃一区二区| 午夜视黄欧洲亚洲| 婷婷成人综合网| 91老司机福利 在线| 精品日韩99亚洲| 日本三级亚洲精品| 欧美一区二区三区视频| 国内精品伊人久久久久av一坑| 亚洲综合丁香婷婷六月香| 日本欧美一区二区| 56国语精品自产拍在线观看| 色国产精品一区在线观看| 亚洲色图色小说| 成人免费视频视频| 日韩欧美一级在线播放| 又紧又大又爽精品一区二区| 国产一区二区在线看| 欧美日韩午夜精品| 一区二区高清在线| 成人黄色一级视频| 久久久久久久网| 经典一区二区三区| 精品成a人在线观看| 一区二区三区不卡在线观看| 福利一区在线观看| 日本一区二区综合亚洲| 国产一区二区三区综合| 亚洲麻豆国产自偷在线| 国产欧美日韩卡一| 欧美久久高跟鞋激| 成a人片亚洲日本久久| 亚洲一区二区免费视频| 欧美喷水一区二区| 日韩在线观看一区二区| 成人av动漫网站| 国产精品日韩成人| 欧美一区二区啪啪| 成人中文字幕电影| 成人av资源在线观看| 欧美高清一级片在线| 日韩高清欧美激情| 亚洲精品久久嫩草网站秘色| 国产欧美日韩另类视频免费观看| 欧美精三区欧美精三区| 亚洲在线视频一区| 欧美色图激情小说| 色综合久久久久久久| 欧美韩国日本不卡| 国产精品国产自产拍高清av王其 | 日本一区二区三区四区在线视频| 亚洲国产成人av| 91伊人久久大香线蕉| 日韩在线一二三区| 亚洲国产精品激情在线观看| 欧美日韩一区二区在线观看| 欧美三区在线观看| 制服.丝袜.亚洲.另类.中文| 国产一区二区三区四区五区美女| 成人免费观看av| 色狠狠av一区二区三区| 国产精品传媒在线| 久久久99久久| 激情都市一区二区| 亚洲一区二区不卡免费| 51久久夜色精品国产麻豆| 色婷婷综合久久久中文字幕| 99riav久久精品riav| 91麻豆国产自产在线观看| 91欧美一区二区| 日本精品一级二级| 欧美视频一区二区三区| 欧美理论片在线| 精品奇米国产一区二区三区| 精品国产精品一区二区夜夜嗨| 色综合天天天天做夜夜夜夜做| 欧美刺激午夜性久久久久久久 | 久久综合久久综合久久综合| 波多野结衣中文字幕一区二区三区| 欧美在线免费观看视频| eeuss鲁片一区二区三区在线观看| 3d成人动漫网站| 久久欧美中文字幕| 亚洲国产中文字幕| 经典一区二区三区| 一区二区三区中文免费| 欧美日韩国产成人在线免费| 欧美电影在哪看比较好| 国产在线国偷精品免费看| 一区二区三区四区乱视频| 亚洲国产高清在线观看视频| 欧美大黄免费观看| 欧美激情综合五月色丁香小说| 国产精品理论在线观看| 麻豆国产91在线播放| 最新日韩av在线| 久久成人免费网| 欧美日韩久久不卡| 一区在线观看免费| 91丨九色porny丨蝌蚪| 国产拍欧美日韩视频二区| 免费成人在线网站| 欧美日韩免费在线视频| 亚洲最新视频在线播放| 色老汉一区二区三区| 亚洲福利一二三区| 欧美日韩精品综合在线| 亚洲第一成人在线| 日韩一级在线观看| 国v精品久久久网| 亚洲影院理伦片| 91精品欧美综合在线观看最新| 91麻豆自制传媒国产之光| 精品美女一区二区三区| 91国偷自产一区二区三区观看| 一区二区三区日韩精品视频| 日韩免费观看2025年上映的电影| 国产91清纯白嫩初高中在线观看| 国产精品午夜在线| 91精品国产福利| 色婷婷精品久久二区二区蜜臂av | 亚洲欧美日韩成人高清在线一区| 欧美三区免费完整视频在线观看| 日本精品一区二区三区四区的功能| 亚洲成人午夜电影| 国产91在线观看| 欧美一区二区视频在线观看2022| 亚洲色图一区二区| 国产美女精品人人做人人爽| 欧美性高清videossexo| 亚洲欧洲性图库| 国产激情91久久精品导航| 欧美精选一区二区| 一区二区三区视频在线观看| 不卡免费追剧大全电视剧网站| 精品国一区二区三区| 日本一道高清亚洲日美韩| 在线看日本不卡| 一区二区三区在线免费播放| 懂色av一区二区夜夜嗨| 久久先锋影音av| 久久机这里只有精品| 欧美一区二区观看视频| 五月激情综合婷婷| 777午夜精品免费视频| 午夜视频在线观看一区二区| 欧美伊人精品成人久久综合97| 最新国产の精品合集bt伙计| 91视频国产观看| 一区二区三区在线观看欧美 | 国产成人免费视频| 欧美精品一区男女天堂| 黑人巨大精品欧美一区| 欧美精品一区二区三区久久久| 奇米精品一区二区三区在线观看 | 久久久久久97三级| 国产不卡一区视频| 国产精品色呦呦| 色综合久久综合中文综合网| 亚洲美腿欧美偷拍| 欧美日韩视频在线第一区| 日本网站在线观看一区二区三区| 日韩一级免费一区| 国产一区二区三区在线观看免费视频 | 久久久久久久综合狠狠综合| 国产专区欧美精品| 日本一区二区三区电影| 99久久免费视频.com| 亚洲精选免费视频| 欧美人牲a欧美精品| 蜜臀av亚洲一区中文字幕| 久久综合久久综合久久| 成人18精品视频| 亚洲高清视频在线| 精品国产一区二区三区久久影院| 韩国成人福利片在线播放| 国产精品大尺度| 在线不卡中文字幕播放| 国产麻豆日韩欧美久久| 亚洲精品视频一区| 欧美不卡一二三|