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

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

?? compressor_tb.vhd

?? vhdl source for jpeg beginner
?? VHD
字號:
------------------------------------------------------------------------------------------------------- Title       : JPEG Hardware Compressor Testbench-- Design      : jpeg-- Author      : Victor Lopez Lorenzo-- E-mail      : galland@opencores.org-----------------------------------------------------------------------------------------------------------    Copyright (C) 2004  Victor Lopez Lorenzo----    This library is free software; you can redistribute it and/or--    modify it under the terms of the GNU Lesser General Public--    License as published by the Free Software Foundation; either--    version 2.1 of the License, or (at your option) any later version.----    This library is distributed in the hope that it will be useful,--    but WITHOUT ANY WARRANTY; without even the implied warranty of--    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU--    Lesser General Public License for more details.----    You should have received a copy of the GNU Lesser General Public--    License along with this library; if not, write to the Free Software--    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA--                                                                                                 ------------------------------------------------------------------------------------------------------- --    It is the compressor.vhd itself the one who writes the image.jpg output file--    when simulated with this testbench.-----------------------------------------------------------------------------------------------------library ieee,xilinxcorelib,unisim;use ieee.std_logic_unsigned.all;use ieee.numeric_std.all;use ieee.std_logic_1164.all;entity compressor_tb isend compressor_tb;architecture TB_ARCHITECTURE of compressor_tb is	component compressor	port(		clk : in std_logic;		reset : in std_logic;      CompressImage : in std_logic; --must be active high for just one cycle      Compression : in std_logic_vector(1 downto 0); --Quality: 00 = low, 01 = medium, 10 = high      Mono : in std_logic; --active high for grey-scale input image (Red=Green=Blue)      ImgColumns : in std_logic_vector(9 downto 0); --columns in each line of the image to compress      ImgLines : in std_logic_vector(8 downto 0); --lines of the image to compress      Compressing : out std_logic;      ProcessRGB : in std_logic;      ProcessingRGB : out std_logic;      Red : in std_logic_vector(7 downto 0);      Green : in std_logic_vector(7 downto 0);      Blue : in std_logic_vector(7 downto 0);      addr: out std_logic_VECTOR(15 downto 0);      din: out std_logic_VECTOR(7 downto 0);      we: out std_logic);	end component;	signal clk : std_logic;	signal reset : std_logic;	signal CompressImage : std_logic;	signal Compression : std_logic_vector(1 downto 0);   signal Mono : std_logic;	signal ImgColumns : std_logic_vector(9 downto 0);	signal ImgLines : std_logic_vector(8 downto 0);	signal ProcessRGB : std_logic;	signal Red : std_logic_vector(7 downto 0);	signal Green : std_logic_vector(7 downto 0);	signal Blue : std_logic_vector(7 downto 0);	signal Compressing : std_logic;	signal ProcessingRGB : std_logic;	signal addr : std_logic_vector(15 downto 0);	signal din : std_logic_vector(7 downto 0);	signal we : std_logic;   type ByteT is (c0,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16,c17,c18,c19,c20,c21,c22,c23,c24,c25,c26,c27,c28,c29,c30,c31,c32,c33,c34,c35,c36,c37,c38,c39,c40,c41,c42,c43,c44,c45,c46,c47,c48,c49,c50,c51,c52,c53,c54,c55,c56,c57,c58,c59,c60,c61,c62,c63,c64,c65,c66,c67,c68,c69,c70,c71,c72,c73,c74,c75,c76,c77,c78,c79,c80,c81,c82,c83,c84,c85,c86,c87,c88,c89,c90,c91,c92,c93,c94,c95,c96,c97,c98,c99,c100,c101,c102,c103,c104,c105,c106,c107,c108,c109,c110,c111,c112,c113,c114,c115,c116,c117,c118,c119,c120,c121,c122,c123,c124,c125,c126,c127,c128,c129,c130,c131,c132,c133,c134,c135,c136,c137,c138,c139,c140,c141,c142,c143,c144,c145,c146,c147,c148,c149,c150,c151,c152,c153,c154,c155,c156,c157,c158,c159,c160,c161,c162,c163,c164,c165,c166,c167,c168,c169,c170,c171,c172,c173,c174,c175,c176,c177,c178,c179,c180,c181,c182,c183,c184,c185,c186,c187,c188,c189,c190,c191,c192,c193,c194,c195,c196,c197,c198,c199,c200,c201,c202,c203,c204,c205,c206,c207,c208,c209,c210,c211,c212,c213,c214,c215,c216,c217,c218,c219,c220,c221,c222,c223,c224,c225,c226,c227,c228,c229,c230,c231,c232,c233,c234,c235,c236,c237,c238,c239,c240,c241,c242,c243,c244,c245,c246,c247,c248,c249,c250,c251,c252,c253,c254,c255);   subtype Byte is ByteT;   type ByteFileType is file of Byte;   file infile : ByteFileType open read_mode is "image.bmp";      -- integer to bit_vector conversion   function int2bit_vec(A: integer; SIZE: integer) return BIT_VECTOR is   	variable RESULT: BIT_VECTOR(SIZE-1 downto 0);   	variable TMP: integer;   begin   	TMP:=A;   	for i in 0 to SIZE-1 loop   		if TMP mod 2 = 1 then RESULT(i):='1';   		else RESULT(i):='0';   		end if;   		TMP:=TMP / 2;   	end loop;   	return RESULT;   end;   begin	UUT : compressor		port map (			clk => clk,			reset => reset,			CompressImage => CompressImage,			Compressing => Compressing,			Compression => Compression,         Mono => Mono,			ImgColumns => ImgColumns,			ImgLines => ImgLines,			ProcessRGB => ProcessRGB,			ProcessingRGB => ProcessingRGB,			Red => Red,			Green => Green,			Blue => Blue,			addr => addr,			din => din,			we => we		);   Clocket : process --40 MHz -> T = 25 ns    begin      clk <= '1';	   wait for 12.5 ns;      clk <= '0';	   wait for 12.5 ns;   end process;   reset <= '1', '0' after 20 ns;      CompressImage <= '1'   , '0' after 45 ns;   Compression <= "10"; --"01"; --Medium Quality (Q ITU standard)   Mono <= '0';      Data : process(clk)      variable Clock_Up : std_logic := '1';      variable Prev_Proc : std_logic;      variable Bloque : std_logic_vector(511 downto 0) := X"30353A3E40404040353C3E41444141413B4045484341414144464745454444444445464747404040464646464542424247474648474242424747464648434343";      --in decimal it is 48535862646464645360626568656565596469726765656568707169696868686869707171646464707070706966666671717072716666667171707072676767      variable Line : std_logic_vector(8 downto 0);      variable Column : std_logic_vector(9 downto 0);      variable PixelIni : integer range 0 to 511;      variable Pixel : Byte;      variable Temp : std_logic_vector(7 downto 0);      variable JumpHeader : std_logic := '0';            variable FinImg : std_logic;   begin        if reset = '1' then         Red <= (others => '1');         Green <= (others => '1');         Blue <= (others => '1');         Prev_Proc := '1';         Pixelini := 0;         ProcessRGB <= '0';         FinImg := '0';         if JumpHeader = '0' then            for i in 0 to 53 loop               read(infile, Pixel);               case i is                  when 18 => --1st byte of Width                     Column(7 downto 0) := To_Stdlogicvector(int2bit_vec(ByteT'pos(Pixel),8));                  when 19 => --2nd byte of Width                                                       Temp := To_Stdlogicvector(int2bit_vec(ByteT'pos(Pixel),8));                     Column(9 downto 8) := Temp(1 downto 0);                  when 22 => --1st byte of Height                     Line(7 downto 0) := To_Stdlogicvector(int2bit_vec(ByteT'pos(Pixel),8));                  when 23 => --2nd byte of Height                                                                      Temp := To_Stdlogicvector(int2bit_vec(ByteT'pos(Pixel),8));                     Line(8) := Temp(0);                  when 24 => --we write to the Compressor the image dimensions                     ImgColumns <= Column - 1; --remember for a 352x288 it is (0..351)x(0..287)                     ImgLines <= Line - 1;                  when others =>                     null;               end case;                  end loop;                        JumpHeader := '1';         end if;            Line := (others => '0');         Column := (others => '0');      elsif (clk = '1' and clk'event) then         if Prev_Proc = '1' and ProcessingRGB = '0' then            --PixelIni := 511 - conv_integer(Line(2 downto 0))*64 - conv_integer(Column(2 downto 0))*8;            --511-504 503-496 495-488 487-480 479-472 471-464 463-456 455-448            read(infile,Pixel);              Blue <= To_Stdlogicvector(int2bit_vec(ByteT'pos(Pixel),8));            read(infile,Pixel);              Green <= To_Stdlogicvector(int2bit_vec(ByteT'pos(Pixel),8));            read(infile,Pixel);              Red <= To_Stdlogicvector(int2bit_vec(ByteT'pos(Pixel),8));            --Red <= Bloque(PixelIni downto PixelIni - 7);            --Green <= Bloque(PixelIni downto PixelIni - 7);            --Blue <= Bloque(PixelIni downto PixelIni - 7);            ProcessRGB <= '1';            if Column = ImgColumns then               Column := (others => '0');               if Line = ImgLines then                  Line := (others => '0');               else                  Line := Line + 1;               end if;               else                  Column := Column + 1;            end if;                           elsif ProcessingRGB = '1' then            ProcessRGB <= '0';         end if;         if FinImg = '0' then            Prev_Proc := ProcessingRGB;         else            Prev_Proc := '0'; --so that it doesn't send again the image            ProcessRGB <= '0'; --must be done here because in the last cycle, with Line=0 and Column=0 the last pixel is being sent!            File_Close(infile);         end if;                  assert not (FinImg='1' and Compressing = '0')                  report "Compression Completed"                     severity FAILURE; --everything went fine, it's just to stop the simulation                                               if Line = 0 and Column = 0 then            FinImg := '1';         end if;                  end if;   end process Data;         end TB_ARCHITECTURE;configuration TESTBENCH_FOR_compressor of compressor_tb is	for TB_ARCHITECTURE		for UUT : compressor			use entity work.compressor(jpg);		end for;	end for;end TESTBENCH_FOR_compressor;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久老女人爱爱| 91精品国产免费| 国内成+人亚洲+欧美+综合在线| 亚洲精品视频一区| ●精品国产综合乱码久久久久| 国产精品国产a级| 中文字幕在线一区免费| 中文字幕在线一区| 伊人色综合久久天天人手人婷| 亚洲精品免费电影| 日韩电影在线观看一区| 麻豆极品一区二区三区| 国产伦精品一区二区三区视频青涩| 久久99精品国产91久久来源| 国产一区中文字幕| 97se亚洲国产综合自在线不卡 | 中文字幕一区二区三区四区不卡| √…a在线天堂一区| 亚洲综合999| 男男视频亚洲欧美| 国产不卡在线一区| 一本到不卡免费一区二区| 色噜噜狠狠成人网p站| 欧美久久一区二区| 久久精品一区八戒影视| 亚洲精品中文字幕乱码三区| 亚洲成人福利片| 久久99在线观看| av资源网一区| 911精品产国品一二三产区| 欧美tk—视频vk| 综合久久久久综合| 精品在线免费视频| 91亚洲精品一区二区乱码| 777亚洲妇女| 欧美国产综合色视频| 亚洲chinese男男1069| 国产成人精品一区二| 欧美女孩性生活视频| 国产午夜亚洲精品午夜鲁丝片| 亚洲精品乱码久久久久| 国产在线日韩欧美| 欧美日韩一区视频| 亚洲欧洲日本在线| 国产精选一区二区三区| 精品视频在线免费| 136国产福利精品导航| 免费在线观看一区二区三区| www.亚洲激情.com| 欧美大片拔萝卜| 午夜电影一区二区| 99久久国产免费看| 国产色产综合色产在线视频| 日本免费新一区视频| 日本电影亚洲天堂一区| 久久精品一区二区| 精品一区二区三区在线观看国产| 波多野结衣精品在线| 久久综合色鬼综合色| 蜜臀久久99精品久久久久宅男 | 久久先锋资源网| 午夜伊人狠狠久久| 一本大道久久a久久综合| 日本一区二区视频在线观看| 国产自产视频一区二区三区| 欧美巨大另类极品videosbest| 亚洲综合一区二区| 懂色av中文一区二区三区| 久久久久久亚洲综合影院红桃| 免费成人av在线| 欧美精品aⅴ在线视频| 亚洲综合另类小说| 在线观看日韩av先锋影音电影院| 中文字幕免费在线观看视频一区| 狠狠色丁香久久婷婷综| 精品国产网站在线观看| 久久精品久久综合| 久久亚洲精华国产精华液 | 国产尤物一区二区在线| 精品国产乱码久久久久久闺蜜| 美女网站色91| 欧美成人三级在线| 激情综合五月天| 久久日韩精品一区二区五区| 麻豆精品视频在线观看免费| 在线播放/欧美激情| 久久国产成人午夜av影院| 久久综合九色综合97婷婷女人| 国产精品亚洲第一区在线暖暖韩国| 久久午夜电影网| 波多野结衣中文一区| 亚洲精品视频观看| 制服丝袜一区二区三区| 精品一区精品二区高清| 日本一区二区成人| 在线看国产一区| 视频在线在亚洲| 久久久久国产精品免费免费搜索| 成人av手机在线观看| 亚洲国产综合91精品麻豆| 7777精品久久久大香线蕉| 看电影不卡的网站| 中文字幕欧美三区| 色婷婷av一区二区三区软件| 丝袜美腿亚洲一区二区图片| 久久久精品国产99久久精品芒果| www.日韩大片| 天天做天天摸天天爽国产一区| 日韩欧美一区电影| 99精品视频在线观看免费| 天堂影院一区二区| 国产精品欧美综合在线| 欧美日韩午夜在线| 国产精品1区2区| 国产精品99久| 亚洲精品成a人| 精品国产一区二区三区久久久蜜月| eeuss鲁片一区二区三区| 日韩精品亚洲一区| 国产无遮挡一区二区三区毛片日本| 91在线视频官网| 激情文学综合插| 午夜精品福利在线| 中文字幕一区二区不卡| 精品国产一区二区三区久久久蜜月| 91在线观看高清| 国产精品一区二区三区网站| 亚洲国产人成综合网站| 中文字幕在线一区| 久久久一区二区| 欧美久久久久久蜜桃| 在线一区二区三区做爰视频网站| 国产在线精品一区二区三区不卡| 亚洲成人av福利| ㊣最新国产の精品bt伙计久久| 国产亚洲精品aa| 欧美一区二区三区免费在线看 | 午夜精品成人在线| 国产精品久久久久婷婷| 国产人久久人人人人爽| 久久一区二区三区四区| 日韩色在线观看| 91精品国产aⅴ一区二区| 欧美在线免费观看亚洲| 一本久久a久久精品亚洲| 成人黄色小视频| 成人综合在线观看| 成人在线视频一区| 成人美女视频在线看| 国产成人午夜视频| 国产精品一级二级三级| 国产一区二区免费在线| 国产一区二区视频在线| 国产成人一区二区精品非洲| 国产成人在线网站| 高清免费成人av| 成人教育av在线| 99精品桃花视频在线观看| 一本大道av伊人久久综合| 91免费版在线看| 在线国产电影不卡| 欧美午夜不卡在线观看免费| 欧美日韩美少妇| 日韩欧美亚洲国产另类| 日韩美女主播在线视频一区二区三区| 日韩一级片网站| 久久综合久久综合亚洲| 国产精品每日更新| 亚洲精品中文字幕乱码三区| 亚洲永久免费av| 日韩成人免费在线| 国产在线日韩欧美| 91视频com| 这里只有精品视频在线观看| 欧美tk丨vk视频| 亚洲欧洲韩国日本视频| 天堂成人免费av电影一区| 久久国产精品无码网站| 成人国产免费视频| 欧美精三区欧美精三区| 欧美mv日韩mv| 亚洲欧美激情小说另类| 天堂久久久久va久久久久| 国产成人在线免费观看| 欧美视频一二三区| 国产亚洲精品久| 午夜伦欧美伦电影理论片| 国内成+人亚洲+欧美+综合在线| 99这里只有久久精品视频| 欧美乱妇23p| 中文字幕亚洲视频| 美女视频免费一区| 色丁香久综合在线久综合在线观看| 日韩一区二区在线观看视频 | 欧美在线看片a免费观看| 欧美一区二区人人喊爽| 国产精品水嫩水嫩| 全部av―极品视觉盛宴亚洲| gogogo免费视频观看亚洲一| 8x8x8国产精品|