亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
色综合天天狠狠| 久久久久久久网| 日韩一卡二卡三卡国产欧美| 久久久久久麻豆| 一区二区在线观看免费视频播放| 亚洲3atv精品一区二区三区| 国产一区三区三区| 91欧美一区二区| 日韩午夜激情电影| 18欧美乱大交hd1984| 日韩精品五月天| 国产传媒一区在线| 欧美无人高清视频在线观看| 久久综合精品国产一区二区三区| 亚洲天堂精品视频| 久久国产精品99精品国产| av在线不卡免费看| 欧美一区永久视频免费观看| 中文字幕av资源一区| 偷窥国产亚洲免费视频| 国产成人鲁色资源国产91色综| 欧美午夜影院一区| 欧美激情一区不卡| 青草国产精品久久久久久| 99国产精品久久久久| 精品国产乱码久久久久久影片| 日韩毛片高清在线播放| 麻豆成人综合网| 91久久精品一区二区| 国产欧美一区二区精品秋霞影院| 五月天亚洲婷婷| 91丝袜美腿高跟国产极品老师 | 亚洲尤物在线视频观看| 国产激情一区二区三区四区| 91精品国模一区二区三区| 亚洲欧洲成人自拍| 国产精品1区2区| 欧美电影免费提供在线观看| 亚洲成人你懂的| 99精品久久99久久久久| 久久久久久久久岛国免费| 日韩精品91亚洲二区在线观看| 99re66热这里只有精品3直播| 日韩精品最新网址| 亚洲国产精品一区二区www| 成人午夜精品在线| 久久综合资源网| 男人的天堂亚洲一区| 欧美日韩国产高清一区二区三区 | aaa欧美色吧激情视频| 欧美哺乳videos| 视频一区二区三区在线| 在线欧美一区二区| 亚洲日韩欧美一区二区在线| 粉嫩一区二区三区在线看| 亚洲精品一区二区精华| 免费人成在线不卡| 91精品久久久久久久99蜜桃 | 欧美精品一卡二卡| 亚洲一区在线电影| 91成人在线观看喷潮| 亚洲女同女同女同女同女同69| 成人伦理片在线| 日本一区二区三级电影在线观看| 国产一区二区三区黄视频| 2017欧美狠狠色| 国产美女av一区二区三区| 亚洲精品一区二区三区影院| 精品一区二区久久久| 精品国产一区二区精华| 久久99在线观看| 精品国产伦一区二区三区免费| 日韩av电影一区| 日韩精品一区二区三区视频在线观看| 日日骚欧美日韩| 日韩一区二区高清| 国内精品嫩模私拍在线| 久久久www成人免费毛片麻豆| 久久国内精品视频| 久久久久久久久久电影| 成人免费视频播放| 亚洲手机成人高清视频| 欧美影院一区二区三区| 天堂一区二区在线免费观看| 4438x成人网最大色成网站| 亚洲成人1区2区| 中文字幕一区二区三区av| 成人免费看视频| 亚洲欧美日韩电影| 欧美日韩一区三区| 日韩成人dvd| 久久久精品免费网站| 成+人+亚洲+综合天堂| 亚洲嫩草精品久久| 51精品久久久久久久蜜臀| 精品写真视频在线观看| 欧美国产一区视频在线观看| 色婷婷久久99综合精品jk白丝| 亚洲国产日韩一区二区| 高清国产一区二区三区| 欧美一区二区在线视频| 国产一区 二区 三区一级| 国产精品久久久久国产精品日日| 色婷婷激情一区二区三区| 日韩激情视频网站| 国产日产欧美一区二区三区 | 日本一二三不卡| 一本色道久久加勒比精品| 日韩二区在线观看| 国产婷婷一区二区| 在线观看一区二区视频| 色婷婷久久99综合精品jk白丝| 日韩精品一级中文字幕精品视频免费观看 | www久久精品| 91首页免费视频| 奇米一区二区三区av| 国产精品视频第一区| 欧美日韩久久久一区| 国产精品一区二区果冻传媒| 亚洲精品国产第一综合99久久 | 国产成人综合网| 一区二区三区国产精品| 精品电影一区二区| 色嗨嗨av一区二区三区| 久久99精品久久久久婷婷| 国产精品国产三级国产a| 一区二区中文视频| 欧美一区二区黄| av不卡一区二区三区| 免费成人在线观看| 亚洲女子a中天字幕| 日韩欧美中文一区| 一本久久a久久精品亚洲| 久久91精品久久久久久秒播| 亚洲精品中文在线影院| 久久综合九色综合97婷婷| 欧美午夜一区二区三区免费大片| 国产精品亚洲专一区二区三区| 污片在线观看一区二区| 日韩一区日韩二区| 久久久午夜电影| 欧美人伦禁忌dvd放荡欲情| 不卡区在线中文字幕| 九色综合国产一区二区三区| 亚洲激情图片qvod| 中文字幕第一区第二区| 91精品国产免费| 在线中文字幕不卡| 成人动漫视频在线| 蜜桃一区二区三区在线| 亚洲国产精品精华液网站| 成人欧美一区二区三区黑人麻豆| 欧美精品一区二区三区久久久| 欧美日韩在线一区二区| 99久久精品国产导航| 国产成人午夜精品5599| 美女一区二区三区| 天天操天天综合网| 亚洲一区二区三区四区在线观看 | 久久色中文字幕| 欧美一区二区免费视频| 欧美性生活大片视频| 91亚洲精品一区二区乱码| 懂色av一区二区夜夜嗨| 国产剧情在线观看一区二区| 精品一区二区精品| 久久99国产精品麻豆| 免费观看久久久4p| 蜜桃视频在线观看一区| 日韩高清不卡一区二区三区| 视频一区中文字幕| 三级成人在线视频| 亚洲成人在线免费| 午夜精品久久一牛影视| 亚洲超碰97人人做人人爱| 亚洲福利一二三区| 亚洲五码中文字幕| 亚洲福利视频三区| 婷婷六月综合网| 免费精品视频最新在线| 蜜桃视频一区二区三区| 蜜臀久久99精品久久久久久9| 免费亚洲电影在线| 久久99精品国产.久久久久| 精品伊人久久久久7777人| 久久www免费人成看片高清| 麻豆国产欧美日韩综合精品二区| 乱一区二区av| 狠狠网亚洲精品| 国产精品996| av一区二区久久| 色综合久久久久综合| 欧美在线影院一区二区| 欧美视频一二三区| 日韩欧美在线网站| 欧美精品一区视频| 中日韩免费视频中文字幕| 自拍偷拍亚洲综合| 亚洲午夜在线观看视频在线| 午夜精品久久久久久久久久久|