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

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

?? mmu_dcache.vhd

?? leon3 source code 雖然gaisler網站上有下載
?? VHD
?? 第 1 頁 / 共 4 頁
字號:
    newptag(TAG_HIGH downto TAG_LOW) := (others => '0');        v.trans_op := r.trans_op and (not mmudco.grant);    v.flush_op := r.flush_op and (not mmudco.grant);    v.diag_op := r.diag_op and (not mmudco.grant);    mmudci_trans_op := r.trans_op;    mmudci_flush_op := r.flush_op;    mmudci_diag_op := r.diag_op;    mmudci_wb_op := '0';    mmudci_transdata_data := r.vaddr;        mmudci_su := '0'; mmudci_read := '0'; su := '0';    if (not M_EN) or (r.mmctrl1.e = '0') then v.cache := '1'; end if;        rdatasel := ddata;	-- read data from cache as default    senable := (others => '0'); scanen := (others => mcdo.scanen);        set := 0; snoopset := 0;  csnoopwe := (others => '0');    ctwrite := (others => '0'); ctpwrite := (others => '0'); cdwrite := (others => '0');    wlock := (others => '0');    for i in 0 to DSETS-1 loop wlock(i) := dcramov.tag(i)(CTAG_LOCKPOS); end loop;     wlrr := (others => '0');    for i in 0 to 3 loop wlrr(i) := dcramov.tag(i)(CTAG_LRRPOS); end loop;         if (DSETS > 1) then setrepl := r.setrepl; else setrepl := (others => '0'); end if;    -- random replacement counter    if DSETS > 1 then      if conv_integer(r.rndcnt) = (DSETS - 1) then v.rndcnt := (others => '0');      else v.rndcnt := r.rndcnt + 1; end if;    end if;-- generate lock bits    lock := (others => '0');    if DCLOCK_BIT = 1 then       for i in 0 to DSETS-1 loop lock(i) := dcramov.tag(i)(CTAG_LOCKPOS); end loop;    end if;    -- AHB snoop handling    if DSNOOP2 /= 0 then      -- snoop on NONSEQ or SEQ and first word in cache line      -- do not snoop during own transfers or during cache flush      if (ahbsi.hready and ahbsi.hwrite and not mcdo.bg) = '1' and         ((ahbsi.htrans = HTRANS_NONSEQ) or 	    ((ahbsi.htrans = HTRANS_SEQ) and 	     (ahbsi.haddr(LINE_HIGH downto LINE_LOW) = LINE_ZERO)))       then	vs.snoop := r.cctrl.dsnoop;-- and not r.mmctrl1.e;        vs.addr := ahbsi.haddr(TAG_HIGH downto OFFSET_LOW);       end if;      for i in 0 to DSETS-1 loop senable(i) := vs.snoop or rs.snoop; end loop;              readbp := (others => '0');      if (paddress(TAG_HIGH downto OFFSET_LOW) = rs.addr(TAG_HIGH downto OFFSET_LOW)) then rbphit := '1'; end if;      for i in 0 to DSETS-1 loop        if (rs.readbpx(i) and rbphit) = '1' then readbp(i) := '1'; end if;      end loop;              -- clear valid bits on snoop hit (or set hit bits)      for i in DSETS-1 downto 0 loop        if ((rs.snoop and (not mcdo.ba) and not r.flush) = '1')           and ((dcramov.stag(i)(TAG_HIGH downto TAG_LOW) = rs.addr(TAG_HIGH downto TAG_LOW)) or (readbp(i) = '1'))        then          if DSNOOP2 = 2 then            vh.hit(conv_integer(rs.addr(OFFSET_HIGH downto OFFSET_LOW)))(i) := '1';          else            snoopaddr := rs.addr(OFFSET_HIGH downto OFFSET_LOW);            snoopwe := '1'; snoopset := i;                  end if;        end if;      -- bypass tag data on read/write contention        if (DSNOOP2 /= 2) and (rs.writebp(i) = '1') then           dcramov.tag(i)(TAG_HIGH downto TAG_LOW) := rs.addr(TAG_HIGH downto TAG_LOW);          dcramov.tag(i)(dlinesize-1 downto 0) := zero32(dlinesize-1 downto 0);        end if;      end loop;    end if;-- generate access parameters during pipeline stall    if ((r.holdn) = '0') or ((dsu = 1) and (dci.dsuen = '1')) then      taddr := r.xaddress(OFFSET_HIGH downto LINE_LOW);    elsif ((dci.enaddr and not dci.read) = '1') or (eholdn = '0')    then      taddr := dci.maddress(OFFSET_HIGH downto LINE_LOW);    else      taddr := dci.eaddress(OFFSET_HIGH downto LINE_LOW);    end if;        if (dci.write or not r.holdn) = '1' then      maddress := r.xaddress(31 downto 0); --signed := r.signed;       read := r.read; size := r.size; edata := dci.maddress;      mmudci_su := r.su; mmudci_read := r.read;    else      maddress := dci.maddress(31 downto 0); --signed := dci.signed;       read := dci.read; size := dci.size; edata := dci.edata;      mmudci_su := dci.msu; mmudci_read := dci.read;    end if;    newtag := dci.maddress(TAG_HIGH downto TAG_LOW);    newptag := dci.maddress(TAG_HIGH downto TAG_LOW);    vl.waddr := maddress(OFFSET_HIGH downto OFFSET_LOW);  -- lru write address-- generate cache hit and valid bits    if cached /= 0 then hcache := ctbl(conv_integer(dci.maddress(31 downto 28)));    else hcache := '1'; end if;    forcemiss := not dci.asi(3); hit := '0'; set := 0;     snoophit := (others => '0'); snoopval := '1';    for i in DSETS-1 downto 0 loop      if DSNOOP2 = 2 then        snoophit(i) := rh.hit(conv_integer(rh.taddr))(i);      end if;      if (dcramov.tag(i)(TAG_HIGH downto TAG_LOW) = dci.maddress(TAG_HIGH downto TAG_LOW))        and ((dcramov.ctx(i) = r.mmctrl1.ctx) or (r.mmctrl1.e = '0'))      then hitv(i) := hcache; end if;      validrawv(i) := hitv(i) and (not r.flush) and (not r.flush2) and (not snoophit(i)) and	genmux(dci.maddress(LINE_HIGH downto LINE_LOW), dcramov.tag(i)(dlinesize-1 downto 0));      validv(i) :=  validrawv(i);      snoopval := snoopval and not snoophit(i);    end loop;                  hit := orv(hitv) and not r.flush and (not r.flush2);    -- cache hit disabled if mmu-enabled but off or BYPASS    if (M_EN) and (dci.asi(4 downto 0) = ASI_MMU_BP) then  -- or (r.mmctrl1.e = '0')      hit := '0';    end if;        validraw := orv(validrawv);    valid := orv(validv);    if DSETS > 1 then       for i in DSETS-1 downto 0 loop         if hitv(i) = '1' then	  vset := conv_std_logic_vector(i, SETBITS);        end if;      end loop;      set := conv_integer(vset);    else set := 0; end if;    if (dci.dsuen = '1') then diagset := r.xaddress(TAG_LOW+SETBITS-1 downto TAG_LOW);                                                    else diagset := maddress(TAG_LOW + SETBITS - 1 downto TAG_LOW); end if;    case DSETS is    when 1 => ddset := 0;    when 3 => if conv_integer(diagset) < 3 then ddset := conv_integer(diagset); end if;    when others => ddset := conv_integer(diagset);     end case;        if ((r.holdn and dci.enaddr) = '1')  and (r.dstate = idle) then        v.hit := hit; v.xaddress := dci.maddress;	v.read := dci.read; v.size := dci.size;	v.asi := dci.asi(4 downto 0);  	--v.signed := dci.signed;        v.su := dci.msu;    end if;-- Store buffer    if mcdo.ready = '1' then      v.wb.addr(2) := r.wb.addr(2) or (r.wb.size(0) and r.wb.size(1));      if r.stpend = '1' then        v.stpend := r.req; v.wb.data1 := r.wb.data2; 	v.wb.lock := r.wb.lock and r.req;      end if;    end if;    if mcdo.grant = '1' then v.req := r.burst; v.burst := '0'; end if;    if (mcdo.grant and not r.wb.read and r.req) = '1' then v.wb.lock := '0'; end if;    -- cache freeze operation    if (r.cctrl.ifrz and dci.intack and r.cctrl.ics(0)) = '1' then      v.cctrl.ics := "01";    end if;    if (r.cctrl.dfrz and dci.intack and r.cctrl.dcs(0)) = '1' then      v.cctrl.dcs := "01";    end if;            if r.cctrlwr = '1' then    if (r.xaddress(7 downto 2) = "000000") and (dci.read = '0') then      v.cctrl.dsnoop := dci.maddress(23);      flush        := dci.maddress(22);      iflush       := dci.maddress(21);      v.cctrl.burst:= dci.maddress(16);      v.cctrl.dfrz := dci.maddress(5);      v.cctrl.ifrz := dci.maddress(4);      v.cctrl.dcs  := dci.maddress(3 downto 2);      v.cctrl.ics  := dci.maddress(1 downto 0);                  end if;    end if;    if (dsu = 1) and (dci.dsuen = '1') then      mmuwdata := dci.maddress;    else      mmuwdata := dci.edata;    end if;          mmudiagaddr := dci.maddress(CNR_U downto CNR_D);    if r.mmctrl1wr = '1' then      mmudiagaddr := r.xaddress(CNR_U downto CNR_D);  -- defer match sram out      if (dci.read = '0') then        mmuwdata := dci.maddress;        mmuregw := '1';        end if;    end if;    -- main Dcache state machine    case r.dstate is    when idle =>			-- Idle state      if (M_TLB_FASTWRITE /= 0) then        mmudci_transdata_data := dci.maddress;      end if;      sidle := '1';      if (snoopval = '1') then        for i in 0 to DSETS-1 loop          v.valid(i) := dcramov.tag(i)(dlinesize-1 downto 0);	end loop;      else v.valid := (others => (others => '0')); end if;      v.nomds := r.nomds and not eholdn; --v.valid := dcramov.dtramout(set).valid;      if (r.stpend  = '0') or ((mcdo.ready and not r.req)= '1') then -- wait for store queue	v.wb.addr := dci.maddress; v.wb.size := dci.size; 	v.wb.read := dci.read; v.wb.data1 := dci.edata; v.wb.lock := dci.lock;	v.wb.asi := dci.asi(3 downto 0);         if ((M_EN) and (dci.asi(4 downto 0) /= ASI_MMU_BP) and (r.mmctrl1.e = '1') and (M_TLB_FASTWRITE /= 0) ) then          v.wb.addr := mmudco.wbtransdata.data;          newptag := mmudco.wbtransdata.data(TAG_HIGH downto TAG_LOW);        end if;      end if;      if (eholdn and (not r.nomds)) = '1' then -- avoid false path through nullify	case dci.asi(4 downto 0) is 	when ASI_SYSR => rdatasel := sysr;		when ASI_DTAG => rdatasel := dtag;	when ASI_DDATA => rdatasel := dddata;	when ASI_DCTX => rdatasel := dctx;        when ASI_MMUREGS => rdatasel := misc;  	when ASI_MMUSNOOP_DTAG => rdatasel := mmusnoop_dtag;	when others =>	end case;      end if;      if (dci.enaddr and eholdn and (not r.nomds) and not dci.nullify) = '1' then	case dci.asi(4 downto 0) is	when ASI_SYSR =>		-- system registers          if (dsu = 0) or (dci.dsuen = '0') then            if (dci.maddress(7 downto 2) = "000000") and (dci.read = '0') then              v.cctrl.dsnoop := dci.edata(23);              flush        := dci.edata(22);              iflush       := dci.edata(21);              v.cctrl.burst:= dci.edata(16);              v.cctrl.dfrz := dci.edata(5);              v.cctrl.ifrz := dci.edata(4);              v.cctrl.dcs  := dci.edata(3 downto 2);              v.cctrl.ics  := dci.edata(1 downto 0);            end if;          else            v.cctrlwr := not dci.read;          end if;        when ASI_MMUREGS =>          if (dsu = 0) or dci.dsuen = '0' then            if M_EN then--              rdatasel := misc;               -- clean fault valid bit              if dci.read = '1' then                case dci.maddress(CNR_U downto CNR_D) is                  when CNR_F =>                    mmudci_fsread := '1';                  when others => null;                end case;              else                mmuregw := '1';              end if;            end if;          else            v.mmctrl1wr := not dci.read and not (r.mmctrl1wr and dci.dsuen);          end if;	when ASI_ITAG | ASI_IDATA | ASI_ICTX =>		-- Read/write Icache tags          -- CTX write has to be done through ctxnr & ASI_ITAG	  if (ico.flush = '1') or (dci.asi(4) = '1') then mexc := '1'; 	 else v.dstate := asi_idtag; v.holdn := '0'; end if; 	when ASI_DFLUSH =>		-- flush data cache	  if dci.read = '0' then flush := '1'; end if; 	when ASI_DDATA =>		-- Read/write Dcache data 	  if (dci.size /= "10") or (r.flush = '1') then -- only word access is allowed 	    mexc := '1'; 	  elsif (dci.read = '0') then 	    dwrite := '1'; ddiagwrite := '1'; 	  end if; 	when ASI_DTAG =>		-- Read/write Dcache tags 	  if (dci.size /= "10") or (r.flush = '1') then -- allow only word access 	    mexc := '1'; 	  elsif (dci.read = '0') then 	    twrite := '1'; tdiagwrite := '1'; 	  end if;        when ASI_MMUSNOOP_DTAG =>	-- Read/write MMU physical snoop tags          if M_EN then          snoopaddr := taddr(OFFSET_HIGH downto OFFSET_LOW);          if (dci.size /= "10") or (r.flush = '1') then -- allow only word access 	    mexc := '1'; 	  elsif (dci.read = '0') then 	    tpwrite := '1'; tdiagwrite := '1'; 	  end if; 	  end if;        when ASI_DCTX =>          -- write has to be done through ctxnr & ASI_DTAG          if (dci.size /= "10") or (r.flush = '1') or (dci.read = '0') then -- allow only word access 	    mexc := '1'; 	  end if;        when ASI_FLUSH_PAGE => -- i/dcache flush page          if M_EN then            if dci.read = '0' then              flush := '1'; iflush := '1'; --pflush := '1'; pflushtyp := PFLUSH_PAGE;            end if; 	  end if;        when ASI_FLUSH_CTX => -- i/dcache flush ctx          if M_EN then            if dci.read = '0' then              flush := '1'; iflush := '1'; --pflush := '1'; pflushtyp := PFLUSH_CTX;            end if;          end if;        when ASI_MMUFLUSHPROBE =>          if M_EN then            if dci.read = '0' then      -- flush              mmudci_flush_op := '1';              v.flush_op := not mmudco.grant;              v.dstate := wflush;              v.vaddr := dci.maddress; v.holdn := '0'; flush := '1'; iflush := '1';            end if;          end if;        when ASI_MMU_DIAG =>          if dci.read = '0' then      -- diag access            mmudci_diag_op := '1';            v.diag_op := not mmudco.grant;            v.vaddr := dci.maddress;          end if;        when others =>	  if dci.read = '1' then	-- read access            --if (not ((mcdo.dcs(0) = '1')             if (not ((r.cctrl.dcs(0) = '1') 	       and ((hit and valid and not forcemiss) = '1')))	    then	-- read miss	      v.holdn := '0'; v.dstate := wread; v.ready := '0'; v.cache := '1';              if (not M_EN) or                ((dci.asi(4 downto 0) = ASI_MMU_BP) or (r.mmctrl1.e = '0'))              then                -- cache disabled if mmu-enabled but off or BYPASS                if (M_EN) then v.cache := '0'; end if;                                if ((r.stpend  = '0') or ((mcdo.ready and not r.req) = '1'))                then	-- wait for store queue                                    v.req := '1';                  v.burst := dci.size(1) and dci.size(0) and not dci.maddress(2);                end if;              else                -- ## mmu case >                if (r.stpend  = '0') or ((mcdo.ready and not r.req)= '1')                then                  v.wbinit := '1';     -- wb init in idle                  v.burst := dci.size(1) and dci.size(0) and not dci.maddress(2);                else                  v.wbinit := '0';                end if;                                mmudci_trans_op := '1';  -- start translation                v.trans_op := not mmudco.grant;                v.vaddr := dci.maddress;                 v.dstate := rtrans;                -- ## < mmu case               end if;                          else       -- read hit              if (DSETS > 1) and (DCREPLACE = lru) then vl.write := '1'; end if;            end if;            	  else			-- write access            v.ready := '0';            if (not M_EN) or                            ((dci.asi(4 downto 0) = ASI_MMU_BP) or (r.mmctrl1.e = '0')) then                                          if (r.stpend  = '0') or ((mcdo.ready and not r.req)= '1') then                v.req := '1'; v.stpend := '1';                 v.burst := dci.size(1) and dci.size(0);                if (dci.size = "11") then v.dstate := dblwrite; end if; -- double store	                    else		-- wait for store queue                v.dstate := wwrite; v.holdn := '0';

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩毛片精品高清免费| 国产精品12区| 91浏览器在线视频| 日本一区二区成人| 99精品在线观看视频| 欧美激情中文不卡| 成人一级黄色片| 亚洲综合图片区| 欧美高清视频一二三区| 日韩精品国产精品| 精品国产区一区| 国产精品一二三区在线| 亚洲欧洲日韩综合一区二区| 在线观看亚洲a| 美腿丝袜在线亚洲一区| 欧美韩国日本一区| 色婷婷激情一区二区三区| 日韩精品1区2区3区| 中文字幕精品一区二区精品绿巨人| 成人一级黄色片| 日韩高清电影一区| 久久久久久久久蜜桃| 欧美三级资源在线| 国产精品99久久久久久有的能看| 亚洲免费色视频| 久久精品国产99国产精品| 国产精品色在线| 4hu四虎永久在线影院成人| 成人在线视频首页| 男男成人高潮片免费网站| 亚洲欧洲国产专区| 欧美变态凌虐bdsm| 欧美日韩激情一区二区三区| 国产精品综合一区二区| 日本视频在线一区| 亚洲va韩国va欧美va精品| 亚洲欧洲日本在线| 国产午夜亚洲精品不卡| 日韩免费性生活视频播放| 欧美日韩高清不卡| 欧美伦理视频网站| 色天使久久综合网天天| 色八戒一区二区三区| 成人成人成人在线视频| 国产精品一区二区三区四区 | 欧美人与性动xxxx| 91小宝寻花一区二区三区| av综合在线播放| av不卡在线观看| 91欧美激情一区二区三区成人| 成人av网站在线观看免费| 成人精品免费视频| 成av人片一区二区| 91在线视频免费观看| 欧美视频一区二区在线观看| 欧美吞精做爰啪啪高潮| 欧美丝袜丝nylons| 欧美精选一区二区| 日韩欧美高清dvd碟片| 欧美精品一区二区三区在线| 久久久久久久久久电影| 国产精品美女一区二区三区 | 国产午夜精品一区二区三区四区| 久久综合狠狠综合久久激情| 久久久91精品国产一区二区精品| 国产精品嫩草影院av蜜臀| 亚洲欧洲日韩综合一区二区| 亚洲国产一区在线观看| 狠狠久久亚洲欧美| 97久久久精品综合88久久| 欧美日韩免费高清一区色橹橹| 在线成人免费视频| 国产精品乱码久久久久久| 图片区小说区区亚洲影院| 国产成人免费在线观看不卡| 欧美日韩在线播放一区| 免费在线成人网| 91久久线看在观草草青青| 久久久精品天堂| 亚洲高清免费在线| 成人av影视在线观看| 欧美不卡一区二区三区四区| 一区二区三区中文字幕在线观看| 国产69精品久久777的优势| 欧美videos中文字幕| 日韩精品一二三| 91福利国产精品| 国产精品久久午夜| 高清不卡一二三区| 国产婷婷精品av在线| 乱中年女人伦av一区二区| 欧美日韩一本到| 久久精品国产免费| 欧美三区免费完整视频在线观看| 中文字幕亚洲视频| 成人黄动漫网站免费app| 国产婷婷色一区二区三区在线| 国产精品一色哟哟哟| 久久免费看少妇高潮| 成人99免费视频| 最新久久zyz资源站| 91日韩一区二区三区| 一区二区三区在线播| 欧美日韩国产综合草草| 亚洲综合色在线| 欧美精品黑人性xxxx| 国内欧美视频一区二区| 久久久亚洲午夜电影| www.性欧美| 婷婷国产在线综合| 精品免费日韩av| 成人午夜视频在线观看| 亚洲乱码日产精品bd| 欧美一区二区成人| 国产在线精品一区在线观看麻豆| 国产精品久久久久久久久晋中 | 国产精品久久二区二区| 欧美亚洲综合一区| 国模娜娜一区二区三区| |精品福利一区二区三区| 欧美一区二区成人6969| 91免费视频观看| 久久成人免费网| 一区二区三区精密机械公司| 精品国产免费人成电影在线观看四季 | 欧美区在线观看| 国产91精品久久久久久久网曝门| 亚洲美女在线国产| 亚洲国产精品激情在线观看| 在线播放日韩导航| 91蜜桃在线免费视频| 国产在线精品免费av| 日韩av中文字幕一区二区三区| 亚洲同性同志一二三专区| 国产网站一区二区| 欧美大片一区二区| 欧美一区二区三区播放老司机| 91亚洲精品乱码久久久久久蜜桃| 国产精品一区二区视频| 国产揄拍国内精品对白| 精品制服美女丁香| 99久久久精品| 91丝袜美腿高跟国产极品老师 | 18成人在线视频| 中文字幕一区二区不卡| 国产精品人妖ts系列视频| 欧美高清在线精品一区| 中文字幕巨乱亚洲| 国产精品国产三级国产普通话99 | 色综合中文字幕| 欧日韩精品视频| 欧美日韩国产另类一区| 在线成人免费观看| 日韩免费高清视频| 久久久午夜电影| 国产日韩欧美不卡在线| 欧美国产综合一区二区| 亚洲欧洲av色图| 亚洲观看高清完整版在线观看| 午夜精品一区在线观看| 久久精工是国产品牌吗| 国产精品性做久久久久久| 91香蕉视频在线| 日韩免费一区二区三区在线播放| 欧美国产综合色视频| 午夜影院在线观看欧美| 国产精品资源在线| 色诱视频网站一区| 久久夜色精品一区| 亚洲蜜臀av乱码久久精品蜜桃| 久久不见久久见中文字幕免费| 国产成人综合在线观看| 777色狠狠一区二区三区| 国产精品视频观看| 蜜桃精品在线观看| 一本一本久久a久久精品综合麻豆 一本一道波多野结衣一区二区 | 国产在线精品一区二区夜色| 色狠狠综合天天综合综合| 精品久久久三级丝袜| 亚洲一区二区精品视频| 盗摄精品av一区二区三区| 日韩一本二本av| 丝袜美腿亚洲一区二区图片| 成人av动漫在线| 久久嫩草精品久久久精品一| 日韩成人精品视频| 在线观看av一区| 亚洲女子a中天字幕| 成人黄色a**站在线观看| 国产欧美日韩中文久久| 日本sm残虐另类| 777午夜精品免费视频| 午夜欧美一区二区三区在线播放| 色久综合一二码| 亚洲一区二区av电影| 色哟哟欧美精品| 亚洲线精品一区二区三区| 欧美日韩激情在线| 爽好多水快深点欧美视频| 欧美日韩精品高清|