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

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

?? test_synth.vhd

?? 常見的輸入輸出及存儲器件(ram及fifo)vhdl實現(xiàn)
?? VHD
字號:
----------------------------------------------------------------------------
----------------------------------------------------------------------------
--  The Free IP Project
--  VHDL Free-RAM Core
--  (c) 1999, The Free IP Project and David Kessner
--
--
--  FREE IP GENERAL PUBLIC LICENSE
--  TERMS AND CONDITIONS FOR USE, COPYING, DISTRIBUTION, AND MODIFICATION
--
--  1.  You may copy and distribute verbatim copies of this core, as long
--      as this file, and the other associated files, remain intact and
--      unmodified.  Modifications are outlined below.  
--  2.  You may use this core in any way, be it academic, commercial, or
--      military.  Modified or not.  
--  3.  Distribution of this core must be free of charge.  Charging is
--      allowed only for value added services.  Value added services
--      would include copying fees, modifications, customizations, and
--      inclusion in other products.
--  4.  If a modified source code is distributed, the original unmodified
--      source code must also be included (or a link to the Free IP web
--      site).  In the modified source code there must be clear
--      identification of the modified version.
--  5.  Visit the Free IP web site for additional information.
--      http://www.free-ip.com
--
----------------------------------------------------------------------------
----------------------------------------------------------------------------
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_arith.all;
use ieee.std_logic_unsigned.all;
library work;
use work.ram_lib.all;


entity ram_test is
  port   (reset		:in  std_logic;
          clk		:in  std_logic;
          addr_out	:out std_logic_vector (12 downto 0);
          din_out	:out std_logic_vector (7 downto 0);
          dout_out	:out std_logic_vector (7 downto 0);
          rand_out	:out std_logic_vector (7 downto 0);
          we_out	:out std_logic;
          failure_out	:out std_logic);
end ram_test;


architecture arch_ram_test of ram_test is
  type STATES is (WRITE, READ);
  signal state		:states;
  signal state_reg	:states;

  signal addr		:std_logic_vector (addr_out'range);
  signal din		:std_logic_vector (din_out'range);

  signal dout		:std_logic_vector (din'range);
  signal write_enable	:std_logic;

  signal mask		:std_logic_vector (31 downto 0);
  signal rand1		:std_logic_vector (mask'range);
  signal rand2		:std_logic_vector (mask'range);
  signal rand2_reg 	:std_logic_vector (mask'range);

  signal addr_top	:std_logic;
  signal addr_max	:std_logic_vector (addr'range);
  
  signal failure 	:std_logic;

begin
  addr_out <= addr;
  din_out <= din;
  dout_out <= dout;
  rand_out <= rand2_reg(rand_out'range);
  we_out <= write_enable;

  mask <= "10100011000000000000000000000000";  -- 0xA3000000



  -- The address counter
  process (reset, clk)
  begin
    if reset='1' then
      addr <= (others=>'0');
    elsif clk'event and clk='1' then
      addr <= addr + 1;
    end if;
  end process;


  -- The addr_top signal
  addr_max <= (others=>'1');
  addr_top <= '1' when addr=addr_max else '0';
  

  -- The state machine
  process (reset, clk)
  begin
    if reset='1' then
      state <= WRITE;
    elsif clk'event and clk='1' then
      case state is
        when WRITE =>
            if addr_top='1' then
              state <= READ;
            end if;
            
        when READ =>
            if addr_top='1' then
              state <= WRITE;
            end if;
            
        when others =>
            state <= WRITE;
      end case;
    end if;
  end process;

  -- Generate a delayed version of state
  process (reset, clk)
  begin
    if reset='1' then
      state_reg <= WRITE;
    elsif clk'event and clk='1' then
      state_reg <= state;
    end if;
  end process;


  -- The write data generator
  process (reset, clk)
  begin
    if reset='1' then
      rand1 <= (others => '1');
    elsif clk'event and clk='1' then
      if state=WRITE then
        if rand1(0)='1' then
          rand1 <= ("0" & rand1(rand1'high downto 1)) xor mask;
        else
          rand1 <= ("0" & rand1(rand1'high downto 1));
        end if;
      end if;
    end if;
  end process;

  din <= rand1(din'range);
  

  -- The READ data generator
  process (reset, clk)
  begin
    if reset='1' then
      rand2 <= (others => '1');
      rand2_reg <= (others => '1');
    elsif clk'event and clk='1' then
      rand2_reg <= rand2;
      
      if state=READ then
        if rand2(0)='1' then
          rand2 <= ("0" & rand2(rand2'high downto 1)) xor mask;
        else
          rand2 <= ("0" & rand2(rand2'high downto 1));
        end if;
      end if;
    end if;
  end process;


  -- Write Enable
  process (reset, clk)
  begin
    if reset='1' then
      write_enable <= '1';
    elsif clk'event and clk='1' then
      if addr_top='1' then
        if state=READ then
          write_enable <= '1';
        else
          write_enable <= '0';
        end if;
      elsif state=WRITE then
        write_enable <= '1';
      else
        write_enable <= '0';
      end if;
    end if;
  end process;


  -- The RAM under test
  U1: ram_dp
  	generic map (addr_bits => addr'high+1,
  	             data_bits => din'high+1,
  	             register_out_flag => 1,
  	             block_type => 0)
  	port map (reset, clk, write_enable, addr, din, clk, addr, dout);

  -- Generate the failure signal
  process (reset, clk)
  begin
    if reset='1' then
      failure <= '0';
    elsif clk'event and clk='1' then
      if failure='0' then
        if state_reg=READ then
          if dout/=rand2_reg(dout'range) then
            failure <= '1';
          end if;
        end if;
      end if;
    end if;
  end process;


  failure_out <= failure;
  
end arch_ram_test;

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品的网站| 亚洲精品国产品国语在线app| 欧美日本乱大交xxxxx| 91福利在线观看| 色婷婷av一区二区三区之一色屋| 91在线码无精品| 91视频观看免费| 日本韩国精品一区二区在线观看| 91蝌蚪porny| 欧美中文字幕不卡| 在线观看www91| 7777精品伊人久久久大香线蕉 | 日本一区二区三区电影| 久久九九全国免费| 中文字幕免费不卡| 中文字幕一区二区在线观看| 国产精品不卡视频| 一区二区三区在线视频观看58| 亚洲综合成人在线| 日韩高清不卡一区| 久久精品国产**网站演员| 日韩三级视频在线观看| 日韩三级免费观看| 久久精品人人爽人人爽| 中文av一区二区| 亚洲精品欧美综合四区| 亚洲第一福利视频在线| 美女在线视频一区| 国产99久久久国产精品免费看 | 欧美一区二区三区啪啪| www日韩大片| 日本一区二区久久| 一区二区三区四区激情| 日日摸夜夜添夜夜添精品视频| 国产一区二区主播在线| av在线播放成人| 欧美性大战久久久| 欧美电视剧在线观看完整版| 欧美极品美女视频| 亚洲国产你懂的| 麻豆国产精品777777在线| 国产 欧美在线| 精品1区2区3区| 国产亚洲美州欧州综合国| 一区二区三区在线播| 美女www一区二区| 成人av手机在线观看| 欧美久久一二三四区| 久久影音资源网| 亚洲一线二线三线久久久| 国产一区二区在线看| 欧美性猛交xxxx乱大交退制版 | 亚洲色图制服诱惑| 免费视频最近日韩| 99精品桃花视频在线观看| 91精品国产美女浴室洗澡无遮挡| 国产精品久久久久久久久快鸭 | 国内精品久久久久影院色| 91美女蜜桃在线| 久久这里只有精品首页| 色婷婷久久久久swag精品| 日韩欧美一区电影| 亚洲久草在线视频| 狠狠v欧美v日韩v亚洲ⅴ| 91久久国产最好的精华液| 久久久精品日韩欧美| 五月天激情综合| 99国产精品一区| 精品国产乱子伦一区| 午夜电影一区二区三区| 波多野结衣中文字幕一区二区三区 | 免费观看在线综合| 日本国产一区二区| 国产精品久线在线观看| 激情文学综合插| 在线成人av影院| 亚洲一级二级在线| 91丨九色丨国产丨porny| 国产天堂亚洲国产碰碰| 日本成人中文字幕在线视频| 91官网在线免费观看| 中文字幕成人网| 国产在线不卡一区| 欧美www视频| 日日夜夜精品视频天天综合网| 一本在线高清不卡dvd| 国产日韩欧美a| 麻豆精品新av中文字幕| 欧美三日本三级三级在线播放| 亚洲蜜桃精久久久久久久| 不卡的电影网站| 国产精品理论在线观看| 东方欧美亚洲色图在线| 久久影院午夜论| 国产一区二区三区免费播放| 日韩丝袜美女视频| 日韩精品一二三四| 欧美精品少妇一区二区三区| 一区二区三区四区在线免费观看| 色综合av在线| 亚洲激情一二三区| 日本精品一区二区三区高清| 亚洲欧美日韩系列| 91在线一区二区| 91看片淫黄大片一级在线观看| 国产精品全国免费观看高清| 成人久久18免费网站麻豆| 欧美激情在线观看视频免费| 懂色av中文字幕一区二区三区| 久久久亚洲国产美女国产盗摄 | 三级欧美韩日大片在线看| 欧美日韩精品电影| 香蕉乱码成人久久天堂爱免费| 欧美色综合影院| 肉丝袜脚交视频一区二区| 欧美一级片在线| 激情文学综合丁香| 久久精品视频在线看| 成人国产精品免费| 亚洲人精品午夜| 欧美性感一区二区三区| 亚洲国产精品一区二区久久恐怖片| 91看片淫黄大片一级在线观看| 亚洲成人av一区| 91精品国产aⅴ一区二区| 久久99精品国产| 久久精品男人的天堂| 99精品视频中文字幕| 亚洲影视在线播放| 日韩网站在线看片你懂的| 国产精品综合在线视频| 日韩一区有码在线| 精品视频一区 二区 三区| 麻豆成人久久精品二区三区小说| 久久久精品蜜桃| 97久久久精品综合88久久| 亚洲第一狼人社区| 精品久久人人做人人爰| av中文字幕一区| 午夜精品一区二区三区电影天堂| 精品国产一区二区三区四区四| 成人午夜av影视| 午夜精品久久久久久久久久| 亚洲精品在线电影| 一本在线高清不卡dvd| 蜜桃免费网站一区二区三区| 国产精品理论片在线观看| 欧美日韩国产综合视频在线观看 | 中文字幕精品—区二区四季| 91免费在线播放| 美女mm1313爽爽久久久蜜臀| 国产精品麻豆一区二区| 欧美精选一区二区| 大胆亚洲人体视频| 亚洲一区二区三区小说| 久久综合久久综合久久| 91久久奴性调教| 国产一二精品视频| 亚洲国产精品一区二区久久| 国产视频一区不卡| 欧美日韩综合在线免费观看| 国产精品1区2区| 日本视频在线一区| 亚洲视频精选在线| 久久久精品免费网站| 51精品国自产在线| 色综合久久综合网欧美综合网 | 91麻豆成人久久精品二区三区| 蜜桃精品在线观看| 一区二区三区四区av| 久久综合九色综合欧美亚洲| 欧美三级乱人伦电影| 成人性色生活片| 久久99蜜桃精品| 一区二区三区在线播放| 欧美国产精品v| 欧美一卡二卡三卡| 91福利视频在线| 成人av一区二区三区| 国产一区二区三区黄视频| 午夜不卡在线视频| 一区二区三区不卡视频| 中文字幕av一区二区三区| 精品福利av导航| 欧美一区二区国产| 欧美日韩电影在线| 欧美影视一区在线| aaa欧美日韩| 成人毛片视频在线观看| 激情久久五月天| 美女一区二区视频| 爽好多水快深点欧美视频| 国产精品久久久久一区二区三区| 精品国产亚洲一区二区三区在线观看| 欧美男男青年gay1069videost| 91福利国产精品| 在线一区二区视频| 日本久久一区二区| 欧洲精品一区二区三区在线观看| 99久久伊人精品|