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

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

?? vga.vhd

?? 一些設用vhdl設計ram的資料
?? VHD
字號:
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.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=50 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	--a0
				rgbp<=color1;
			elsif ll>180 and ll<221 and innum4(6)='0' then	--g0
				rgbp<=color1;
			elsif ll>300 and ll<341 and innum4(3)='0' then	--d0
				rgbp<=color1;
			elsif ll>60 and ll<202 then
				if (cc>2 and cc<4) and innum4(5)='0' then	--f0
					rgbp<=color1;
				elsif (cc>5 and cc<7) and innum4(1)='0' then	--b0
					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	--e0
					rgbp<=color1;
				elsif (cc>5 and cc<7) and innum4(2)='0' then	--c0
					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	--p8
					rgbp<=color1;
				elsif cc>3 and cc<5 and innum(14)='1' then	--p4
					rgbp<=color1;
				elsif cc>4 and cc<6 and innum(13)='1' then	--p2
					rgbp<=color1;
				elsif cc>5 and cc<7 and innum(12)='1' then	--p1
					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	--q8
					rgbp<=color1;
				elsif cc>3 and cc<5 and innum0(14)='1' then	--q4
					rgbp<=color1;
				elsif cc>4 and cc<6 and innum0(13)='1' then	--q2
					rgbp<=color1;
				elsif cc>5 and cc<7 and innum0(12)='1' then	--q1
					rgbp<=color1;
				else rgbp<="000";
				end if;
			else
				rgbp<="000";
			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;
			else
				rgbp<="000";
			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<=color3;
				elsif cc>13 and cc<15 and innum0(6)='1' then
					rgbp<=color3;
				elsif cc>14 and cc<16 and innum0(5)='1' then
					rgbp<=color3;
				elsif cc>15 and cc<17 and innum0(4)='1' then
					rgbp<=color3;
				else rgbp<="000";
				end if;
			else
				rgbp<="000";
			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一区二区三区免费野_久草精品视频
亚洲成av人片在线| 91视频xxxx| 91视频一区二区三区| 国产精品久久精品日日| 亚洲第一电影网| www.欧美日韩| 精品国产一区二区三区久久影院| 亚洲色大成网站www久久九九| 免费在线观看一区二区三区| 色婷婷综合五月| 中文字幕精品综合| 精品一区二区综合| 欧美视频精品在线| 亚洲欧美日韩久久| 成人丝袜高跟foot| 日韩精品一区二区三区视频 | 日本视频一区二区三区| 91免费看`日韩一区二区| 国产女同性恋一区二区| 奇米影视在线99精品| 欧美日韩极品在线观看一区| 亚洲婷婷在线视频| 成人在线综合网| 国产日产精品一区| 国产一区二区三区在线观看免费视频| 欧美一二区视频| 青青国产91久久久久久| 欧美精品一级二级三级| 丝袜脚交一区二区| 精品视频在线免费| 五月天一区二区三区| 欧美日韩国产色站一区二区三区| 一区二区三区在线观看视频| 色狠狠色狠狠综合| 亚洲午夜精品久久久久久久久| 色综合中文字幕国产 | 亚洲另类中文字| 91麻豆123| 亚洲综合丝袜美腿| 欧美三级电影网| 亚洲va天堂va国产va久| 91精品国产色综合久久不卡蜜臀| 亚洲成年人影院| 日韩一区二区在线免费观看| 蜜芽一区二区三区| 久久久五月婷婷| 波多野结衣中文字幕一区| 国产精品视频线看| 色av一区二区| 日韩av在线发布| 久久久精品tv| 91在线你懂得| 日韩精品视频网| 久久久久久久久久电影| 99久久777色| 三级在线观看一区二区| 精品av综合导航| 972aa.com艺术欧美| 亚洲高清中文字幕| 欧美精品一区二区蜜臀亚洲| 成人免费视频app| 亚洲v中文字幕| 久久九九99视频| 欧美日韩精品福利| 国产成人免费在线观看不卡| 一二三四社区欧美黄| 日韩精品一区二区三区在线观看| 成人免费高清在线| 日本成人中文字幕在线视频| 国产精品天美传媒| 91精品国产综合久久国产大片| 国产精品亚洲成人| 一区二区三区.www| 欧美精品一区男女天堂| 色久优优欧美色久优优| 狠狠v欧美v日韩v亚洲ⅴ| 亚洲免费色视频| 日韩免费观看2025年上映的电影| 一本大道久久精品懂色aⅴ| 美日韩一级片在线观看| 亚洲激情图片小说视频| 久久综合久色欧美综合狠狠| 欧美又粗又大又爽| av亚洲产国偷v产偷v自拍| 蜜桃av一区二区在线观看| 日韩毛片高清在线播放| 国产日韩欧美制服另类| 91精品国产日韩91久久久久久| 99re热这里只有精品视频| 久久精品国产第一区二区三区| 亚洲欧美日本在线| 欧美国产禁国产网站cc| 日韩美女一区二区三区| 色丁香久综合在线久综合在线观看| 国产一区二区伦理片| 五月婷婷激情综合| 亚洲国产精品影院| 亚洲欧美色图小说| 国产精品进线69影院| 久久日一线二线三线suv| 日韩亚洲欧美高清| 3d动漫精品啪啪1区2区免费| 欧美亚男人的天堂| 色欧美88888久久久久久影院| 成人高清视频免费观看| 国产精品白丝av| 国产精品一区免费视频| 韩国精品主播一区二区在线观看 | 久久伊人蜜桃av一区二区| 欧美一级片免费看| 欧美夫妻性生活| 欧美裸体bbwbbwbbw| 欧美男男青年gay1069videost | av中文字幕在线不卡| 懂色av一区二区三区免费观看| 国产乱子轮精品视频| 狠狠色丁香九九婷婷综合五月| 精品一区二区精品| 国产一区二区不卡在线| 国产成人精品亚洲日本在线桃色| 国产99久久久国产精品| 丁香啪啪综合成人亚洲小说| 国产成人日日夜夜| 播五月开心婷婷综合| 一本到不卡精品视频在线观看| 欧美自拍偷拍一区| 欧美精品色综合| 精品国产髙清在线看国产毛片| www久久精品| 国产精品国产三级国产普通话蜜臀| 自拍偷在线精品自拍偷无码专区| 亚洲另类春色国产| 日本aⅴ免费视频一区二区三区| 蜜臀av性久久久久av蜜臀妖精| 久久97超碰国产精品超碰| 高清不卡在线观看av| 91丨九色丨尤物| 51精品久久久久久久蜜臀| 337p日本欧洲亚洲大胆精品| 一色屋精品亚洲香蕉网站| 亚洲图片自拍偷拍| 国产制服丝袜一区| av在线播放一区二区三区| 欧美少妇bbb| 久久久高清一区二区三区| 亚洲久草在线视频| 麻豆精品视频在线| 成人美女视频在线看| 久久影音资源网| 亚洲美女免费视频| 久久不见久久见免费视频7 | 国产一区福利在线| 91欧美一区二区| 精品久久久久久亚洲综合网 | 精品国产123| 亚洲人成网站色在线观看| 日本欧美韩国一区三区| 粉嫩欧美一区二区三区高清影视| 欧美性猛交xxxxxx富婆| 国产亚洲精品中文字幕| 亚洲成人激情自拍| 99久久精品国产网站| 91精品国模一区二区三区| 国产精品久久久久影院色老大| 日韩成人一级大片| 91视频在线观看| 国产婷婷色一区二区三区四区| 亚洲国产aⅴ天堂久久| 本田岬高潮一区二区三区| 日韩午夜激情免费电影| 一区二区三区视频在线看| 国产69精品久久久久毛片| 日韩欧美国产综合一区| 亚洲韩国精品一区| 91蝌蚪porny九色| 日本一区二区三区久久久久久久久不 | 日韩欧美色综合| 亚洲国产一区二区视频| 99久久精品久久久久久清纯| 久久五月婷婷丁香社区| 蜜桃一区二区三区四区| 欧美午夜精品一区二区三区| 日韩中文字幕麻豆| 一本大道久久a久久综合婷婷 | 日韩精品一区二区三区在线| 亚洲成人av中文| 欧美三级午夜理伦三级中视频| 1区2区3区国产精品| 国产精品白丝jk白祙喷水网站 | 国产盗摄精品一区二区三区在线| 欧美一级淫片007| 午夜精品一区二区三区三上悠亚| 色婷婷精品大视频在线蜜桃视频| 国产精品色呦呦| 国产+成+人+亚洲欧洲自线| 久久久久99精品一区| 国产在线精品一区二区三区不卡| 精品国产免费一区二区三区香蕉| 日本不卡的三区四区五区| 日韩网站在线看片你懂的|