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

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

?? 偽隨機數產生器.vhd

?? VHDL的40個常用小程序
?? 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一区二区三区免费野_久草精品视频
国产视频一区不卡| 久久婷婷国产综合国色天香| 亚洲精品久久久蜜桃| 色婷婷亚洲综合| 亚洲一区av在线| 欧美一级专区免费大片| 麻豆成人av在线| 日本一区二区三区久久久久久久久不| 国产一区二区三区美女| 中文字幕欧美一| 9191国产精品| 高清国产午夜精品久久久久久| 自拍偷拍欧美精品| 91麻豆精品国产自产在线观看一区 | 精品久久人人做人人爽| 国产二区国产一区在线观看| 亚洲私人影院在线观看| 日韩欧美综合一区| 91免费观看在线| 麻豆精品精品国产自在97香蕉| 欧美国产日韩亚洲一区| 在线欧美日韩精品| 韩国女主播成人在线观看| 亚洲视频一区二区在线| 欧美一区二区三区在| aaa亚洲精品| 久久福利资源站| 亚洲裸体在线观看| 欧美精品一区二区三区久久久| 色婷婷国产精品综合在线观看| 久久精品99国产精品| 亚洲美女区一区| 久久久久青草大香线综合精品| 欧美在线看片a免费观看| 国产在线观看一区二区| 亚洲在线观看免费| 国产日韩欧美亚洲| 欧美一区二区三区视频免费播放 | 国产精品66部| 日韩精品每日更新| 亚洲色图欧洲色图婷婷| 精品精品欲导航| 久久色成人在线| 国产乱子伦一区二区三区国色天香| 中文字幕一区日韩精品欧美| www精品美女久久久tv| 欧美久久婷婷综合色| 91视频在线观看免费| 国产伦精品一区二区三区免费 | 日韩在线观看一区二区| 国产精品久久久久久久第一福利| 日韩亚洲欧美在线| 欧美日韩免费一区二区三区视频| 不卡的av电影| 国产精品香蕉一区二区三区| 久久超碰97中文字幕| 日韩电影在线观看电影| 一区二区三区四区高清精品免费观看 | 夜夜精品视频一区二区| 亚洲国产精品av| 337p粉嫩大胆色噜噜噜噜亚洲| 日韩一级在线观看| 91麻豆精品国产91久久久资源速度 | 91麻豆精品在线观看| 成人免费av网站| 丰满白嫩尤物一区二区| 国产成人精品亚洲午夜麻豆| 国产在线精品一区二区三区不卡| 午夜不卡av免费| 精品国产91乱码一区二区三区| 国产成a人亚洲精| 国产一区二区三区免费看| 极品美女销魂一区二区三区免费| 奇米色一区二区| 毛片av一区二区三区| 美女国产一区二区| 久久国产欧美日韩精品| 久久成人麻豆午夜电影| 国产一区二区三区高清播放| 狠狠色丁香婷婷综合久久片| 九九国产精品视频| 国产成人av电影免费在线观看| 国产99久久久国产精品潘金网站| 国产91精品一区二区麻豆网站| 国产高清久久久| 成人激情小说网站| 99久久精品一区二区| 91高清在线观看| 欧美丝袜丝nylons| 91精品国产综合久久蜜臀| 日韩视频免费观看高清完整版 | 亚洲小说春色综合另类电影| 亚洲一区二区三区中文字幕| 亚洲a一区二区| 老汉av免费一区二区三区| 黑人精品欧美一区二区蜜桃| 韩国av一区二区三区在线观看| 国产成a人无v码亚洲福利| 99精品久久免费看蜜臀剧情介绍| 色综合夜色一区| 3atv一区二区三区| 久久综合久久综合久久综合| 国产精品美女久久久久aⅴ | 99国产精品久久| 欧美色爱综合网| 欧美成人a∨高清免费观看| 国产丝袜美腿一区二区三区| 亚洲日韩欧美一区二区在线| 日韩国产欧美在线播放| 国产一区二区伦理片| 91丝袜美腿高跟国产极品老师 | 亚洲日本在线a| 日韩电影在线一区二区三区| 粉嫩av一区二区三区| av一区二区三区在线| 欧美精品1区2区| ...中文天堂在线一区| 日本不卡的三区四区五区| 国产电影精品久久禁18| 欧美精品一二三四| 亚洲欧洲精品一区二区三区不卡| 日韩av电影免费观看高清完整版在线观看| 国产精品18久久久| 91精品在线麻豆| 亚洲视频一二三区| 国产精品一区在线| 欧美日韩国产影片| 国产精品美女久久久久高潮| 麻豆精品视频在线观看视频| 色婷婷久久久综合中文字幕 | 一本一道久久a久久精品 | 国产精品性做久久久久久| 欧美日韩国产大片| 中文字幕一区二区三区在线观看 | 国产精品久久久久久久久动漫| 美女任你摸久久| 在线观看日韩国产| 亚洲国产精品成人综合色在线婷婷| 天使萌一区二区三区免费观看| eeuss影院一区二区三区| 26uuu精品一区二区三区四区在线| 亚洲国产精品精华液网站| 99精品视频在线观看免费| 国产日韩欧美亚洲| 韩国av一区二区| 欧美成人一区二区三区片免费| 香蕉乱码成人久久天堂爱免费| 99精品国产一区二区三区不卡| 国产午夜亚洲精品羞羞网站| 麻豆精品一区二区综合av| 欧美日韩黄视频| 亚洲图片一区二区| 欧美性大战久久| 亚洲综合成人网| 欧美在线影院一区二区| 一区二区三区免费| 91网上在线视频| 亚洲人一二三区| 91一区二区在线| 亚洲最快最全在线视频| 91片黄在线观看| 亚洲激情一二三区| 色综合天天性综合| 亚洲三级电影网站| 一本久道中文字幕精品亚洲嫩| 亚洲青青青在线视频| 一本久久a久久免费精品不卡| 亚洲日本丝袜连裤袜办公室| caoporen国产精品视频| 国产精品美女久久久久久久久久久| 成人爽a毛片一区二区免费| 国产人成亚洲第一网站在线播放| 国产在线观看一区二区| 久久久影视传媒| 成人av网站免费观看| 亚洲色图欧洲色图婷婷| 欧美在线一区二区三区| 天天色综合天天| 欧美一级片在线观看| 九九精品视频在线看| 久久久亚洲午夜电影| 不卡一区二区在线| 一区二区三区中文在线观看| 欧美视频精品在线观看| 日产国产高清一区二区三区| 精品少妇一区二区三区日产乱码| 国产一区视频网站| 国产精品国产精品国产专区不片| 在线观看网站黄不卡| 老司机精品视频导航| 中文字幕 久热精品 视频在线| 成人av电影观看| 亚洲国产日韩综合久久精品| 日韩免费高清av| eeuss鲁片一区二区三区在线观看| 亚洲成人资源在线| 26uuu国产电影一区二区| 91在线一区二区| 免费在线观看一区| 中文字幕一区二区三区不卡|