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

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

?? 偽隨機數產生器.vhd

?? 一些VHDL的小程序
?? VHD
字號:
---------------------------------------------------------------------------------      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 ;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品黑人一区二区三区久久 | 18成人在线视频| 亚洲资源中文字幕| 国产美女在线观看一区| 日本韩国精品在线| 国产午夜精品理论片a级大结局| 亚洲电影在线播放| 不卡一区中文字幕| 久久精品综合网| 日韩不卡手机在线v区| 色综合视频在线观看| 国产午夜亚洲精品理论片色戒 | 国产欧美一区二区三区沐欲| 亚洲图片欧美视频| 欧美日韩久久一区二区| 一区在线观看视频| 国产91精品一区二区麻豆亚洲| 在线播放日韩导航| 亚洲午夜精品在线| 色综合久久中文字幕综合网| 国产精品久久久久三级| 国产福利一区二区三区视频在线| 欧美精品久久99| 亚洲一区二区在线视频| 91免费观看视频在线| 国产精品国产三级国产普通话99 | 蜜臀精品一区二区三区在线观看| 色综合久久综合| 亚洲美女屁股眼交| 99re6这里只有精品视频在线观看| 国产亚洲欧美色| 国产精品一级片在线观看| 精品国产伦一区二区三区观看方式| 亚洲妇熟xx妇色黄| 欧美日韩国产综合草草| 婷婷综合另类小说色区| 91精品国产综合久久福利软件| 夜夜操天天操亚洲| 亚洲国产精品t66y| 国产99久久久久| 中文字幕精品一区二区三区精品| 国产99久久久精品| 成人免费在线视频| 欧美在线观看禁18| 日韩 欧美一区二区三区| 欧美一级理论性理论a| 久久99国产精品久久99果冻传媒| 日韩精品中文字幕在线一区| 黄色成人免费在线| 亚洲欧洲国产日本综合| 欧美亚洲综合在线| 免费成人深夜小野草| 久久精品亚洲国产奇米99| 国产大陆精品国产| 一区二区三区四区蜜桃| 51午夜精品国产| 韩国理伦片一区二区三区在线播放| 亚洲精品一区二区精华| 91一区二区在线| 亚洲成人先锋电影| 国产色产综合色产在线视频| www.亚洲人| 日韩不卡一区二区| 国产精品激情偷乱一区二区∴| 欧美亚洲国产一区二区三区| 美洲天堂一区二卡三卡四卡视频| 欧美国产视频在线| 欧美日韩电影在线| 成人美女视频在线观看| 亚洲一区二区三区中文字幕| 精品国产露脸精彩对白| 99久久精品一区二区| 蜜桃传媒麻豆第一区在线观看| 国产欧美久久久精品影院| 欧美日韩成人在线一区| 岛国精品一区二区| 日本强好片久久久久久aaa| 国产精品久久久久久久第一福利 | 日韩激情视频在线观看| 国产欧美精品一区aⅴ影院| 欧美日本在线看| av亚洲精华国产精华精华| 日日夜夜精品免费视频| 亚洲人吸女人奶水| 久久久久久久综合日本| 欧美日韩高清在线| 一本色道久久综合亚洲aⅴ蜜桃 | 色婷婷av一区| 国产福利精品导航| 久久国产乱子精品免费女| 亚洲精品免费看| 国产精品三级电影| 久久久久久免费网| 日韩亚洲欧美成人一区| 欧美亚洲禁片免费| 99久久久久久99| 国产黄人亚洲片| 久久黄色级2电影| 日日嗨av一区二区三区四区| 亚洲一区二区三区四区五区黄| 国产精品美女久久久久aⅴ国产馆 国产精品美女久久久久av爽李琼 国产精品美女久久久久高潮 | 国产亚洲美州欧州综合国| 日韩亚洲电影在线| 在线播放中文字幕一区| 欧美日本视频在线| 欧美最猛性xxxxx直播| 一本大道久久a久久精品综合| 国产成a人亚洲精| 国产aⅴ综合色| 成人性生交大合| 成人午夜精品一区二区三区| 国产精品白丝av| 成人一区二区三区视频| 成人午夜电影久久影院| 成人永久aaa| 不卡视频在线看| 91在线精品一区二区三区| av在线不卡网| 色综合欧美在线视频区| 91麻豆国产香蕉久久精品| 91玉足脚交白嫩脚丫在线播放| 成人少妇影院yyyy| www.日本不卡| 99久久99久久综合| 色视频一区二区| 欧美精品欧美精品系列| 制服丝袜在线91| 日韩情涩欧美日韩视频| 精品精品欲导航| 欧美国产日本视频| 亚洲精品少妇30p| 亚洲国产精品久久人人爱| 日一区二区三区| 精品一区二区三区日韩| 国产电影一区在线| 91久久精品一区二区| 欧美日韩视频不卡| 精品国产人成亚洲区| 国产精品每日更新在线播放网址 | 美女网站一区二区| 国产乱子伦视频一区二区三区| 国产黄人亚洲片| 欧洲生活片亚洲生活在线观看| 9191成人精品久久| 国产亚洲va综合人人澡精品| 亚洲美女免费在线| 久久精品国产亚洲aⅴ| av中文一区二区三区| 91精品国产一区二区三区| 久久这里只有精品首页| 亚洲卡通欧美制服中文| 蜜臀精品一区二区三区在线观看| 高清成人免费视频| 欧美日韩一级二级| 中文一区二区完整视频在线观看| 亚洲免费观看高清| 国产一区二区精品久久91| 色婷婷av一区二区三区大白胸| 精品少妇一区二区三区日产乱码| 国产精品久久久久7777按摩| 日韩av一级电影| 91丨九色丨尤物| 精品国产伦一区二区三区观看方式| 亚洲欧美偷拍三级| 国产激情一区二区三区四区 | 人禽交欧美网站| 99久久国产综合色|国产精品| 91精品国产入口| 1024精品合集| 国产在线观看一区二区| 欧美精品aⅴ在线视频| 亚洲色欲色欲www| 国产自产高清不卡| 91精品国产色综合久久ai换脸| 亚洲天堂网中文字| 国产精品夜夜爽| 欧美一区二区视频免费观看| 亚洲午夜久久久久中文字幕久| 粉嫩av一区二区三区在线播放 | 在线一区二区观看| 国产日韩欧美亚洲| 美女性感视频久久| 7777精品伊人久久久大香线蕉的| 国产精品国产三级国产有无不卡| 国产一区美女在线| 精品国产麻豆免费人成网站| 青草国产精品久久久久久| 欧美日免费三级在线| 夜夜爽夜夜爽精品视频| 色香色香欲天天天影视综合网| 国产欧美一区二区三区在线老狼| 韩国三级在线一区| 精品国产3级a| 国产一区激情在线| 久久新电视剧免费观看| 国产成人综合亚洲网站| 久久久影院官网| 岛国一区二区在线观看| 欧美激情在线一区二区| 成人永久免费视频|