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

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

?? 偽隨機數產生器.vhd

?? 含有各類寄存器
?? 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一区二区三区免费野_久草精品视频
亚洲男同1069视频| 中文字幕欧美日本乱码一线二线 | 欧美三级电影在线观看| 99久久精品国产精品久久| 国产不卡视频一区| 不卡一区在线观看| 成人av电影在线播放| 成人a免费在线看| 99re热这里只有精品视频| 成人午夜看片网址| 北条麻妃一区二区三区| 97超碰欧美中文字幕| 91久久奴性调教| 欧美四级电影网| 88在线观看91蜜桃国自产| 日韩一级二级三级| 欧美tickle裸体挠脚心vk| 精品国产亚洲在线| 国产三级一区二区三区| 国产精品少妇自拍| 亚洲精品国产精华液| 日韩精品国产欧美| 国产麻豆欧美日韩一区| 9色porny自拍视频一区二区| 91小宝寻花一区二区三区| 欧美亚洲综合久久| 欧美一级高清片| 久久久久久久综合狠狠综合| 国产精品久久久一本精品| 亚洲美女视频在线观看| 日韩精品免费视频人成| 国产成人自拍在线| 欧美性一级生活| 精品欧美乱码久久久久久| 国产欧美日韩一区二区三区在线观看| 最新日韩av在线| 日本欧美韩国一区三区| 国产成人亚洲综合色影视| 色一情一伦一子一伦一区| 在线电影一区二区三区| 国产欧美综合在线观看第十页| ...中文天堂在线一区| 日本vs亚洲vs韩国一区三区 | 国产成人午夜99999| 成人激情免费电影网址| 91麻豆精品国产91久久久久久久久 | 成人美女视频在线看| 欧美日韩在线亚洲一区蜜芽| 久久久青草青青国产亚洲免观| 亚洲黄色av一区| 国产精品白丝jk白祙喷水网站| 欧美探花视频资源| 中文字幕亚洲精品在线观看| 免费成人在线播放| 色一情一乱一乱一91av| 国产精品网站在线观看| 极品瑜伽女神91| 欧美中文字幕一区| 日韩一区欧美小说| 国产又黄又大久久| 欧美一区在线视频| 亚洲综合一二三区| 91日韩一区二区三区| www国产亚洲精品久久麻豆| 丝袜美腿高跟呻吟高潮一区| 99视频在线精品| 国产欧美精品在线观看| 麻豆一区二区在线| 91精品免费观看| 日韩综合在线视频| 在线电影院国产精品| 亚洲成人av电影| 欧美日韩精品一区二区在线播放| 中文字幕在线一区| 成人性生交大片免费看中文网站| 精品国产一区二区三区四区四| 免费在线观看成人| 日韩视频一区二区三区| 免费在线观看不卡| 91精品蜜臀在线一区尤物| 日韩激情视频在线观看| 日韩一区二区不卡| 国产专区综合网| 2021久久国产精品不只是精品| 狠狠色丁香婷综合久久| 久久久精品国产99久久精品芒果| 国产九九视频一区二区三区| 久久亚洲私人国产精品va媚药| 国产精品亚洲午夜一区二区三区 | 亚洲三级在线观看| 欧洲av一区二区嗯嗯嗯啊| 亚洲另类春色校园小说| 在线免费不卡视频| 天涯成人国产亚洲精品一区av| 69久久夜色精品国产69蝌蚪网| 一区二区三区美女| 亚洲一区二区三区四区中文字幕| 欧美一a一片一级一片| 亚洲成人激情av| 欧美电影免费提供在线观看| 久久不见久久见免费视频7| 精品国产三级电影在线观看| 成人黄色在线网站| 亚洲网友自拍偷拍| 日韩欧美一级二级三级| 丰满白嫩尤物一区二区| 亚洲精品videosex极品| 日韩欧美中文字幕公布| 国产成人av自拍| 亚洲午夜久久久| 久久久午夜精品理论片中文字幕| 972aa.com艺术欧美| 日韩电影一区二区三区四区| 久久综合网色—综合色88| 成人av资源下载| 日本欧美在线观看| 日韩美女视频一区二区| 678五月天丁香亚洲综合网| 高清国产一区二区三区| 丝袜亚洲另类欧美综合| 国产精品理论片在线观看| 欧美男同性恋视频网站| 国产精品99久久久久久久女警| 亚洲一区二区三区美女| 欧美激情一区在线| 69堂国产成人免费视频| 97精品久久久午夜一区二区三区| 奇米影视一区二区三区| 亚洲男人电影天堂| 国产欧美日韩麻豆91| 欧美一个色资源| 色狠狠色狠狠综合| 成人午夜免费电影| 精品一区二区免费视频| 日韩高清一区在线| 亚洲一区二区三区精品在线| 国产精品久久777777| 精品国产免费一区二区三区四区 | 亚洲一区二区3| 欧美国产丝袜视频| 欧美精品一区二区三区高清aⅴ| 在线观看区一区二| 91在线视频播放地址| 高清国产一区二区三区| 国内精品伊人久久久久av一坑| 三级亚洲高清视频| 亚洲成人精品一区| 亚洲成人在线观看视频| 亚洲精品亚洲人成人网| 1024成人网| 日韩一区欧美一区| 亚洲视频网在线直播| 国产精品色哟哟网站| 中文一区二区在线观看| 中文在线一区二区| √…a在线天堂一区| 亚洲视频免费看| 艳妇臀荡乳欲伦亚洲一区| 亚洲欧美综合网| 亚洲色图清纯唯美| 一区二区三区视频在线看| 日韩一区在线播放| 尤物av一区二区| 亚洲国产成人porn| 首页亚洲欧美制服丝腿| 午夜电影一区二区三区| 捆绑调教一区二区三区| 韩国精品在线观看| 成人avav影音| 在线观看亚洲成人| 69堂成人精品免费视频| 久久这里只有精品6| 中文字幕不卡的av| 亚洲免费毛片网站| 午夜欧美视频在线观看| 日本不卡一区二区三区高清视频| 久久超碰97中文字幕| 国产在线视视频有精品| 成人夜色视频网站在线观看| 91色porny在线视频| 欧美久久久久中文字幕| 精品久久久久久久久久久久久久久| 日韩三级视频中文字幕| 日本一二三不卡| 亚洲一二三专区| 狠狠色狠狠色综合系列| 99久久国产综合精品女不卡| 欧美猛男男办公室激情| 久久先锋影音av| 一级日本不卡的影视| 久久99国产精品久久99果冻传媒| 国产成人免费视频网站高清观看视频 | 国产精品中文欧美| 色哟哟精品一区| 精品噜噜噜噜久久久久久久久试看| 国产精品久久久久久久岛一牛影视| 亚洲国产美国国产综合一区二区 | 国产精品国产三级国产aⅴ入口| 亚洲一区二区三区四区在线| 国内精品久久久久影院薰衣草 |