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

? 歡迎來(lái)到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? 偽隨機(jī)數(shù)產(chǎn)生器.vhd

?? 這是有關(guān)VHDL的相關(guān)源代碼
?? VHD
字號(hào):
---------------------------------------------------------------------------------      The following information has been generated by Exemplar Logic and--      may be freely distributed and modified.----      Design name : pseudorandom----      Purpose : This design is a pseudorandom number generator. This design --        will generate an 8-bit random number using the polynomial p(x) = x + 1.--        This system has a seed generator and will generate 2**8 - 1 unique--        vectors in pseudorandom order. These vectors are stored in a ram which--        samples the random number every 32 clock cycles. This variance of a --        priority encoded seed plus a fixed sampling frequency provides a truely--        random number.----        This design used VHDL-1993 methods for coding VHDL.------------------------------------------------------------------------------Library IEEE ;use IEEE.std_logic_1164.all ;use IEEE.std_logic_arith.all ;entity divide_by_n is   generic (data_width    : natural := 8 );   port (         data_in  : in  UNSIGNED(data_width - 1 downto 0) ;         load     : in  std_logic ;         clk      : in  std_logic ;         reset    : in  std_logic ;         divide   : out std_logic        );end divide_by_n ;architecture rtl of divide_by_n is    signal count_reg : UNSIGNED(data_width - 1 downto 0) ;  constant max_count : UNSIGNED(data_width - 1 downto 0) := (others => '1') ;  begin  cont_it :  process(clk,reset)       begin          if (reset = '1') then           count_reg <= (others => '0') ;          elsif (clk = '1' and clk'event) then            if (load = '1') then               count_reg <= data_in ;            else                count_reg <=  count_reg + "01" ;            end if ;          end if;        end process ;   divide <= '1' when count_reg = max_count else '0' ;end RTL ;Library IEEE ;use IEEE.std_logic_1164.all ;use IEEE.std_logic_arith.all ;entity dlatrg is   generic (data_width    : natural := 16 );   port (         data_in  : in  UNSIGNED(data_width - 1 downto 0) ;         clk      : in  std_logic ;         reset    : in  std_logic ;         data_out : out UNSIGNED(data_width - 1 downto 0)        );end dlatrg ;architecture rtl of dlatrg is  begin  latch_it : process(data_in,clk,reset)        begin          if (reset = '1') then            data_out <= (others => '0') ;          elsif (clk = '1') then            data_out <= data_in ;          end if;        end process ;end RTL ;Library IEEE ;use IEEE.std_logic_1164.all ;use IEEE.std_logic_arith.all ;entity lfsr is   generic (data_width    : natural := 8 );   port (         clk      : in  std_logic ;         reset    : in  std_logic ;         data_out : out UNSIGNED(data_width - 1 downto 0)        );end lfsr ;architecture rtl of lfsr is    signal feedback : std_logic ;  signal lfsr_reg : UNSIGNED(data_width - 1 downto 0) ;  begin    feedback <= lfsr_reg(7) xor lfsr_reg(0) ;  latch_it :  process(clk,reset)       begin          if (reset = '1') then           lfsr_reg <= (others => '0') ;          elsif (clk = '1' and clk'event) then            lfsr_reg <= lfsr_reg(lfsr_reg'high - 1 downto 0) & feedback ;          end if;        end process ;   data_out <= lfsr_reg ;end RTL ;Library IEEE ;use IEEE.std_logic_1164.all ;use IEEE.std_logic_arith.all ;entity priority_encoder is   generic (data_width    : natural := 25 ;            address_width : natural := 5 ) ;   port (         data    : in  UNSIGNED(data_width - 1 downto 0) ;         address : out UNSIGNED(address_width - 1 downto 0) ;         none    : out STD_LOGIC        );end priority_encoder ;architecture rtl of priority_encoder is  attribute SYNTHESIS_RETURN : STRING ;    FUNCTION to_stdlogic (arg1:BOOLEAN)  RETURN STD_LOGIC IS      BEGIN      IF(arg1) THEN        RETURN('1') ;      ELSE        RETURN('0') ;      END IF ;  END ;    function to_UNSIGNED(ARG: INTEGER; SIZE: INTEGER) return UNSIGNED is	variable result: UNSIGNED(SIZE-1 downto 0);	variable temp: integer;        attribute SYNTHESIS_RETURN of result:variable is "FEED_THROUGH" ;    begin	temp := ARG;	for i in 0 to SIZE-1 loop	    if (temp mod 2) = 1 then		result(i) := '1';	    else 		result(i) := '0';	    end if;	    if temp > 0 then		temp := temp / 2;	    else		temp := (temp - 1) / 2; 	    end if;	end loop;	return result;    end;  constant zero : UNSIGNED(data_width downto 1) := (others => '0') ;  beginPRIO :  process(data)         variable temp_address : UNSIGNED(address_width - 1 downto 0) ;         begin          temp_address := (others => '0') ;          for i in data_width - 1 downto 0 loop            if (data(i) = '1') then              temp_address := to_unsigned(i,address_width) ;              exit ;            end if ;          end loop ;          address <= temp_address ;          none <= to_stdlogic(data = zero) ;        end process ;end RTL ;Library IEEE ;use IEEE.std_logic_1164.all ;use IEEE.std_logic_arith.all ;use IEEE.std_logic_unsigned.all ;entity ram is   generic (data_width    : natural := 8 ;            address_width  : natural := 8);   port (         data_in  : in  UNSIGNED(data_width - 1 downto 0) ;         address  : in  UNSIGNED(address_width - 1 downto 0) ;         we      : in  std_logic ;		 clk     : in std_logic;         data_out : out UNSIGNED(data_width - 1 downto 0)        );end ram ;architecture rtl of ram is  type mem_type is array (2**address_width downto 0) of UNSIGNED(data_width - 1 downto 0) ;  signal mem : mem_type ;  signal addr_reg : unsigned (address_width -1 downto 0);  begin    data_out <= mem(conv_integer(addr_reg)) ;    I0 : process 	   begin       wait until clk'event and clk = '1';        if (we = '1') then          mem(conv_integer(address)) <= data_in ;        end if ;	    addr_reg <= address;    end process ;end RTL ;Library IEEE ;use IEEE.std_logic_1164.all ;use IEEE.std_logic_arith.all ;entity tbuf is   generic (data_width    : natural := 16 );   port (         data_in  : in  UNSIGNED(data_width - 1 downto 0) ;         en       : in  std_logic ;         data_out : out UNSIGNED(data_width - 1 downto 0)        );end tbuf ;architecture rtl of tbuf is  begin  three_state :  process(data_in,en)        begin          if (en = '1') then            data_out <=  data_in ;          else            data_out <= (others => 'Z') ;          end if;        end process ;end RTL ;Library IEEE ;use IEEE.std_logic_1164.all ;use IEEE.std_logic_arith.all ;entity pseudorandom is   generic (data_width    : natural := 8 );   port (         seed   : in  UNSIGNED (24 downto 0) ;         init   : in  UNSIGNED (4 downto 0) ;         load   : in  std_logic ;         clk    : in  std_logic ;         reset  : in  std_logic ;         read   : in  std_logic ;         write  : in  std_logic ;         rand   : out UNSIGNED (7 downto 0) ;         none   : out std_logic        );end pseudorandom ;architecture rtl of pseudorandom is    signal latch_seed : UNSIGNED(24 downto 0) ;  signal encoder_address : UNSIGNED(4 downto 0) ;  signal random_data : UNSIGNED(7 downto 0) ;  signal write_enable : std_logic ;  signal ram_data : UNSIGNED(7 downto 0) ;  begin    I0 : entity work.dlatrg(rtl)           generic map (25)          port map (seed,read,reset,latch_seed) ;    I1 : entity work.priority_encoder(rtl)           generic map (25,5)          port map (latch_seed,encoder_address,none) ;    I2 : entity work.ram(rtl)           generic map (8,5)          port map (random_data,encoder_address,write_enable,clk,ram_data) ;    I3 : entity work.tbuf(rtl)           generic map (8)          port map (ram_data,write,rand) ;    I4 : entity work.lfsr(rtl)           generic map (8)          port map (clk,reset,random_data) ;     I5 : entity work.divide_by_n(rtl)           generic map (5)          port map (init,load,clk,reset,write_enable) ;end rtl ;

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美亚洲国产一区在线观看网站| 欧美电影一区二区三区| 精品在线观看免费| 亚洲图片自拍偷拍| 一区二区成人在线| 国产精品久久久久婷婷二区次| 亚洲精品一区二区三区香蕉| 欧美精选午夜久久久乱码6080| 色欧美乱欧美15图片| 国产成人精品一区二区三区四区 | 六月婷婷色综合| 视频一区在线播放| 日本亚洲欧美天堂免费| 青青草成人在线观看| 久久精品国产一区二区三| 麻豆91在线播放免费| 久久激五月天综合精品| 国产成人综合精品三级| 99在线精品观看| 色噜噜狠狠成人网p站| 91久久精品一区二区| 欧美网站大全在线观看| 日韩一卡二卡三卡| 久久综合久久99| 中文字幕字幕中文在线中不卡视频| 亚洲精品菠萝久久久久久久| 亚欧色一区w666天堂| 麻豆久久一区二区| 成人精品免费视频| 欧美性生活一区| 日韩欧美国产午夜精品| 国产三级精品三级在线专区| 亚洲精品日日夜夜| 蜜臂av日日欢夜夜爽一区| 国产乱对白刺激视频不卡| 国产不卡视频一区| 色久综合一二码| 日韩一二三区不卡| 久久久国产精品不卡| 国产精品美女视频| 亚洲国产裸拍裸体视频在线观看乱了| 日韩精品欧美精品| 韩国成人精品a∨在线观看| 91网页版在线| 日韩一区二区三区视频在线观看| 久久久国产一区二区三区四区小说| 亚洲欧美区自拍先锋| 免费观看91视频大全| av亚洲精华国产精华| 91精品国模一区二区三区| 久久久国产一区二区三区四区小说| 亚洲女同一区二区| 蜜臀av性久久久久蜜臀aⅴ四虎 | 国产婷婷色一区二区三区四区| 国产精品乱人伦中文| 亚洲va天堂va国产va久| 国产福利一区二区三区视频| 欧美午夜视频网站| 日本一二三四高清不卡| 婷婷成人激情在线网| 成人av一区二区三区| 欧美不卡在线视频| 亚洲综合色视频| 国产a视频精品免费观看| 日韩一区二区三区视频| 亚洲伊人伊色伊影伊综合网| 国产高清精品久久久久| 91精品国产综合久久精品| 国产精品成人免费精品自在线观看| 轻轻草成人在线| 在线观看视频一区| 国产精品国产三级国产专播品爱网| 91免费视频大全| 成人黄页毛片网站| 色综合中文综合网| youjizz久久| 精品少妇一区二区三区视频免付费 | 国产美女主播视频一区| 欧美日韩在线不卡| 国产精品福利一区| 国产sm精品调教视频网站| 精品美女一区二区| 蜜桃av一区二区三区| 欧美性生活影院| 夜色激情一区二区| 91麻豆自制传媒国产之光| 成人av网址在线| av一区二区三区| 国产欧美一区二区在线观看| 另类小说视频一区二区| 3751色影院一区二区三区| 亚洲小说春色综合另类电影| 91视频观看免费| 《视频一区视频二区| 成人综合婷婷国产精品久久蜜臀| 亚洲精品在线观看视频| 免费的成人av| 日韩欧美一级精品久久| 免费成人你懂的| 精品乱码亚洲一区二区不卡| 老司机精品视频在线| 日韩免费电影一区| 美女网站色91| 欧美一区二区三区免费| 七七婷婷婷婷精品国产| 日韩视频中午一区| 久久国产麻豆精品| 欧美成人女星排行榜| 国内精品嫩模私拍在线| 国产日韩欧美精品电影三级在线| 国产激情精品久久久第一区二区| 国产校园另类小说区| 国产999精品久久久久久绿帽| 久久精品免视看| 欧美色图第一页| 日本欧美加勒比视频| 欧美区在线观看| 视频一区国产视频| 久久先锋影音av鲁色资源网| 国产成人综合在线| 亚洲日本免费电影| 在线亚洲+欧美+日本专区| 亚洲成人高清在线| 日韩女优制服丝袜电影| 国产精品资源在线看| 中文字幕亚洲电影| 欧美三级蜜桃2在线观看| 日韩va欧美va亚洲va久久| 精品日韩在线观看| 国产成人综合亚洲网站| 亚洲精品乱码久久久久| 91精品国产全国免费观看| 国内精品不卡在线| 亚洲欧美偷拍另类a∨色屁股| 色吧成人激情小说| 男女视频一区二区| 国产精品嫩草影院com| 91精品1区2区| 精品一区二区三区在线观看 | 青青草97国产精品免费观看无弹窗版| 精品成人一区二区| 91视频国产观看| 免费xxxx性欧美18vr| 亚洲国产高清在线| 91精品在线免费观看| 成人av动漫在线| 日韩国产高清影视| 国产精品免费丝袜| 9191久久久久久久久久久| 国产高清精品在线| 视频一区视频二区中文| 国产精品视频一二三区| 欧美日本一区二区| 国产老女人精品毛片久久| 亚洲成人精品一区| 国产精品久久久一区麻豆最新章节| 欧美日韩一级二级| www.av亚洲| 精品亚洲porn| 亚洲一区二区三区小说| 中文字幕欧美国产| 日韩欧美一级二级| 91国偷自产一区二区三区观看| 久久99在线观看| 亚洲永久免费av| 国产精品天干天干在线综合| 91精品国产综合久久久久久| 夫妻av一区二区| 蜜桃视频一区二区| 亚洲国产精品嫩草影院| 国产精品乱人伦中文| 精品少妇一区二区三区日产乱码| 久久五月婷婷丁香社区| 欧美蜜桃一区二区三区| 99视频国产精品| 国产成人免费在线观看| 麻豆精品一区二区三区| 五月天中文字幕一区二区| 亚洲人吸女人奶水| 国产精品天干天干在线综合| 精品电影一区二区| 欧美一区二区在线播放| 91行情网站电视在线观看高清版| 粉嫩一区二区三区性色av| 久久99久久精品| 日本色综合中文字幕| 亚洲一区二区成人在线观看| 国产精品美日韩| 国产欧美一区二区精品性色| 日韩欧美久久久| 日韩一区二区精品| 欧美精品在线观看播放| 欧美性生活久久| 在线观看欧美日本| 在线免费观看日本欧美| 99久久精品国产导航| 99在线精品视频| 成人av网站在线观看免费| 成人免费视频播放| 成人午夜看片网址|