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

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

?? control_interface.vhd

?? 基于VHDL編寫的SDR-SDRAM控制器的編程
?? VHD
字號:
--
--
--  LOGIC CORE:          Control Interface - Top level module							
--  MODULE NAME:         control_interface()
--  COMPANY:             Northwest Logic, Inc.
--                       www.nwlogic.com	
--
--  REVISION HISTORY:  
--
--    Revision 1.1  06/06/2000	Description: Initial Release.
--
--  FUNCTIONAL DESCRIPTION:
--
--  This module is the command interface module for the SDR SDRAM controller.
--
--  Copyright Northwest Logic, Inc., 2000.  All rights reserved.  


library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_arith.all;



entity control_interface is
	
    generic (ASIZE : integer := 32);

    port (
         CLK            : in      std_logic;                              -- System Clock
         RESET_N        : in      std_logic;                              -- System Reset
         CMD            : in      std_logic_vector(2 downto 0);           -- Command input
         ADDR           : in      std_logic_vector(ASIZE-1 downto 0);     -- Address
         REF_ACK        : in      std_logic;                              -- Refresh request acknowledge
         CM_ACK         : in      std_logic;                              -- Command acknowledge
         NOP            : out     std_logic;                              -- Decoded NOP command
         READA          : out     std_logic;                              -- Decoded READA command
         WRITEA         : out     std_logic;                              -- Decoded WRITEA command
         REFRESH        : out     std_logic;                              -- Decoded REFRESH command
         PRECHARGE      : out     std_logic;                              -- Decoded PRECHARGE command
         LOAD_MODE      : out     std_logic;                              -- Decoded LOAD_MODE command
         SADDR          : out     std_logic_vector(ASIZE-1 downto 0);     -- Registered version of ADDR
         SC_CL          : out     std_logic_vector(1 downto 0);           -- Programmed CAS latency
         SC_RC          : out     std_logic_vector(1 downto 0);           -- Programmed RC delay
         SC_RRD         : out     std_logic_vector(3 downto 0);           -- Programmed RRD delay
         SC_PM          : out     std_logic;                              -- programmed Page Mode
         SC_BL          : out     std_logic_vector(3 downto 0);           -- Programmed burst length
         REF_REQ        : out     std_logic;                              -- Hidden refresh request
         CMD_ACK        : out     std_logic                               -- Command acknowledge
         );
end control_interface;






architecture RTL of control_interface is



    -- signal declarations
    signal    LOAD_REG1      :    std_logic;
    signal    LOAD_REG2      :    std_logic;
    signal    REF_PER        :    std_logic_vector(15 downto 0);
    signal    timer          :    signed(15 downto 0);
    signal    timer_zero     :    std_logic;
    signal    SADDR_int      :    std_logic_vector(ASIZE-1 downto 0);
    signal    CMD_ACK_int    :    std_logic;
    signal    SC_BL_int      :    std_logic_vector(3 downto 0);
	


begin

    -- This module decodes the commands from the CMD input to individual
    -- command lines, NOP, READA, WRITEA, REFRESH, PRECHARGE, LOAD_MODE.
    -- ADDR is register in order to keep it aligned with decoded command.
    process(CLK, RESET_N)
    begin
         if (RESET_N = '0') then
              NOP            <= '0';
              READA          <= '0';
              WRITEA         <= '0';
              REFRESH        <= '0';
              PRECHARGE      <= '0';
              LOAD_MODE      <= '0';
              load_reg1      <= '0';
              load_reg2      <= '0';
              SADDR_int      <= (others => '0');
         elsif rising_edge(CLK) then
              SADDR_int <= ADDR;                                -- register the address to keep proper
			                                                  -- alignment with the command
			                                             
              if (CMD = "000") then                             -- NOP command
		          NOP <= '1';
              else
		          NOP <= '0';
              end if;
			        
              if (CMD = "001") then                             -- READA command
		          READA <= '1';
              else
		          READA <= '0';
              end if;
			 
              if (CMD = "010") then                             -- WRITEA command
		          WRITEA <= '1';
              else
		          WRITEA <= '0';
              end if;
			        
              if (CMD = "011") then                             -- REFRESH command
		          REFRESH <= '1';
              else
		          REFRESH <= '0';
              end if;
			        
              if (CMD = "100") then                             -- PRECHARGE command
		          PRECHARGE <= '1';
              else
		          PRECHARGE <= '0';
              end if;
			        
              if (CMD = "101") then                             -- LOAD_MODE command
		          LOAD_MODE <= '1';
              else
		          LOAD_MODE <= '0';
              end if;
			        
              if ((CMD = "110") and (LOAD_REG1 = '0')) then     --LOAD_REG1 command
		          LOAD_REG1 <= '1';
              else   
		          LOAD_REG1 <= '0';
              end if;

              if ((CMD = "111") and (LOAD_REG2 = '0')) then     --LOAD_REG2 command
		          LOAD_REG2 <= '1';
              else
		          LOAD_REG2 <= '0';
              end if;
         end if;
    end process;





    -- This always block processes the LOAD_REG1 and LOAD_REG2 commands.
    -- The register data comes in on SADDR and is distributed to the various
    -- registers.
    process(CLK, RESET_N)
    begin
         if (RESET_N = '0') then
              SC_CL     <= (others => '0');
              SC_RC     <= (others => '0');
              SC_RRD    <= (others => '0');
              SC_PM     <= '0';
              SC_BL_int <= (others => '0');
              REF_PER   <= (others => '0');

         elsif rising_edge(CLK) then
              if (LOAD_REG1 = '1') then                         -- LOAD_REG1 command
                   SC_CL     <= SADDR_int(1 downto 0);          -- CAS Latency
                   SC_RC     <= SADDR_int(3 downto 2);          -- RC delay
                   SC_RRD    <= SADDR_int(7 downto 4);          -- RRD delay
                   SC_PM     <= SADDR_int(8);                   -- Page Mode
                   SC_BL_int <= SADDR_int(12 downto 9);         -- Burst length
              end if;
              if (LOAD_REG2 = '1') then                         -- LOAD_REG2 command
		          REF_PER   <= SADDR_int(15 downto 0);         -- REFRESH Period
              end if;
         end if;
    end process;

    SADDR <= SADDR_int;
    SC_BL <= SC_BL_int;




    --  This always block generates the command acknowledge, CMD_ACK, for the
    -- commands that are handled by this module, LOAD_RE1,2, and it lets
    -- the command ack from the lower module pass through when necessary.
    process(CLK, RESET_N)
    begin
         if (RESET_N = '0') then
              CMD_ACK_int <= '0';
         elsif rising_edge(CLK) then
         if (((CM_ACK = '1') or (LOAD_REG1 = '1') or (LOAD_REG2 = '1')) and (CMD_ACK_int = '0')) then
              CMD_ACK_int <= '1';
              else
                   CMD_ACK_int <= '0';
              end if;
         end if;
    end process;
	
    CMD_ACK <= CMD_ACK_int;


 


    -- This always block implements the refresh timer.  The timer is a 16bit
    -- downcounter and a REF_REQ is generated whenever the counter reaches the
    -- count of zero.  After reaching zero, the counter reloads with the value that
    -- was loaded into the refresh period register with the LOAD_REG2 command.
    -- Note that the refresh counter is disabled when the controller is in 
    -- page mode operation.
    process(CLK, RESET_N)
    begin
         if (RESET_N = '0') then
              timer           <= (others => '0');
              timer_zero      <= '0';
              REF_REQ         <= '0';
         elsif rising_edge(CLK) then
              if (timer_zero = '1') then
		          timer <= signed(REF_PER);
              elsif (not (SC_BL_int = "0000")) then             -- only run timer if not in page mode
                   timer <= timer - 1;
              end if;
		   
              if (timer=0 and not (SC_BL_int = "0000")) then
		          timer_zero <= '1';                           -- count has reached zero, issue ref_req and reload
		          REF_REQ    <= '1';                           -- the timer
              else 
                   if (REF_ACK = '1') then                      -- wait for the ack to come back from the lower
			          timer_zero <= '0';
			          REF_REQ    <= '0';
			     end if;
              end if;
         end if;
    end process;



end RTL;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩卡一卡二| 欧美日韩激情一区| 国产精品亚洲视频| 国产在线一区观看| 午夜电影网亚洲视频| 亚洲精品少妇30p| 婷婷综合在线观看| 久久国产尿小便嘘嘘| 美女一区二区久久| 国产精品一区二区你懂的| 成人一区二区三区| 972aa.com艺术欧美| 91视频你懂的| 欧美一区二区三区喷汁尤物| 日韩美女一区二区三区四区| 91国偷自产一区二区开放时间| 韩国三级电影一区二区| 美女尤物国产一区| 不卡一区二区三区四区| 在线观看一区日韩| 国产亚洲精品7777| 亚洲午夜av在线| 国产99久久久国产精品免费看| 91麻豆123| 久久蜜臀中文字幕| 蜜乳av一区二区三区| 99久久久无码国产精品| 中文字幕日韩一区| 久久av资源网| 欧美嫩在线观看| 亚洲夂夂婷婷色拍ww47| 国产伦精品一区二区三区免费 | 一区在线播放视频| 国产日韩欧美综合一区| 欧美亚洲国产一区二区三区va| 久久亚洲综合色| 国产一区二区不卡在线 | 日韩午夜激情电影| 丝袜美腿亚洲综合| 日韩一级成人av| 免费久久精品视频| 精品剧情在线观看| 激情深爱一区二区| 精品少妇一区二区三区在线播放| 天天综合色天天| 精品国内二区三区| 狠狠狠色丁香婷婷综合久久五月| 欧美人妖巨大在线| 亚洲视频一区二区在线| 色综合天天视频在线观看| 亚洲精品成人悠悠色影视| 狠狠色综合日日| 久久久一区二区| 99久久er热在这里只有精品15| 国产精品拍天天在线| 色综合天天综合网国产成人综合天| 欧美国产日韩在线观看| 色综合久久九月婷婷色综合| 亚洲成人综合视频| 精品成人佐山爱一区二区| av一区二区不卡| 午夜不卡av在线| 国产精品欧美经典| 制服视频三区第一页精品| 国产精品一二三四区| 亚洲一区二区三区四区五区黄 | 欧美激情中文字幕| 欧美丝袜丝交足nylons| 成熟亚洲日本毛茸茸凸凹| 亚洲一区在线观看视频| 精品国产髙清在线看国产毛片| 懂色av一区二区三区免费观看| 一区二区高清在线| 久久精品视频网| 欧美成人女星排行榜| 欧美天堂亚洲电影院在线播放| 国产成人精品免费网站| 国产一区二区在线观看免费 | 成人国产视频在线观看| 久久99深爱久久99精品| 亚洲不卡av一区二区三区| 国产精品传媒入口麻豆| 久久网站最新地址| 日韩免费一区二区三区在线播放| 欧洲生活片亚洲生活在线观看| 99久久精品国产观看| av中文字幕在线不卡| 99精品久久免费看蜜臀剧情介绍| 美腿丝袜亚洲三区| 韩国欧美国产一区| 国产福利91精品| 97精品国产97久久久久久久久久久久| 国产一区二区久久| 国产麻豆视频一区二区| 麻豆精品一二三| 国产成人精品免费视频网站| 国产成人精品综合在线观看| 国产sm精品调教视频网站| 国产高清在线精品| 91极品视觉盛宴| 日韩欧美在线123| 国产精品毛片久久久久久久| 亚洲免费毛片网站| 强制捆绑调教一区二区| 国产成人在线看| 91黄色免费版| 久久久亚洲精华液精华液精华液| 中国色在线观看另类| 亚洲一级电影视频| 国产精品一二三在| 6080国产精品一区二区| 国产精品初高中害羞小美女文| 天堂蜜桃91精品| www.成人网.com| 久久久久国产精品免费免费搜索| 中文字幕日韩av资源站| 国内精品伊人久久久久影院对白| 91丨九色porny丨蝌蚪| 国产亚洲欧美日韩俺去了| 亚洲大尺度视频在线观看| 国产精品一二三四五| 3751色影院一区二区三区| 亚洲视频在线观看一区| 从欧美一区二区三区| 久久综合久久综合久久综合| 午夜国产不卡在线观看视频| 一本一本久久a久久精品综合麻豆| 久久网站热最新地址| 国内精品国产成人国产三级粉色| 欧美性videosxxxxx| 亚洲精品国产第一综合99久久| 播五月开心婷婷综合| 国产精品久久久一本精品| 国内精品嫩模私拍在线| 日韩欧美不卡在线观看视频| 蜜臀久久99精品久久久久久9| 91精品国产综合久久蜜臀| 亚洲成a人v欧美综合天堂下载| 在线观看亚洲精品视频| 亚洲午夜在线电影| 欧美www视频| 欧美老肥妇做.爰bbww| 99在线精品视频| 国产欧美日韩精品在线| av动漫一区二区| 亚洲国产精品久久人人爱蜜臀 | 久久久午夜精品理论片中文字幕| 日韩av在线播放中文字幕| 日韩女优视频免费观看| 成人丝袜高跟foot| 日韩二区三区在线观看| 久久精品无码一区二区三区| 91美女在线视频| 亚洲6080在线| 中文字幕一区在线观看| 91精品国产欧美一区二区| 国产成人在线观看免费网站| 樱花影视一区二区| 中文一区一区三区高中清不卡| 91福利国产精品| 懂色av一区二区三区蜜臀| 亚洲综合精品自拍| 中文字幕一区二区三区精华液| 欧美一区二区精品久久911| 99热在这里有精品免费| 国产毛片精品国产一区二区三区| 亚洲大片在线观看| 亚洲精品国产视频| 中文字幕一区在线观看视频| 欧美精品一区二区三| 91精品欧美福利在线观看| 波多野结衣一区二区三区| 国产精品99久| 国产成人亚洲综合色影视| 久久精品久久99精品久久| 日av在线不卡| 久久精品72免费观看| 韩国精品主播一区二区在线观看| 五月天婷婷综合| 久热成人在线视频| 国产精品一区二区91| 豆国产96在线|亚洲| 91亚洲国产成人精品一区二三| 成人av手机在线观看| 色天使久久综合网天天| 在线免费观看日本欧美| 欧美午夜免费电影| 一区二区在线观看免费视频播放| 亚洲视频免费在线| 五月天婷婷综合| 国产在线麻豆精品观看| 国产成人免费视频| 色天天综合色天天久久| 欧美美女黄视频| 国产日产欧美精品一区二区三区| 亚洲欧洲中文日韩久久av乱码| 亚洲h在线观看| 成人一区在线看| 欧美一区二区视频在线观看| 国产精品国产三级国产三级人妇 |