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

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

?? or1200_immu_top.v

?? 一個開放的risc
?? V
字號:
//////////////////////////////////////////////////////////////////////////                                                              ////////  OR1200's Instruction MMU top level                          ////////                                                              ////////  This file is part of the OpenRISC 1200 project              ////////  http://www.opencores.org/cores/or1k/                        ////////                                                              ////////  Description                                                 ////////  Instantiation of all IMMU blocks.                           ////////                                                              ////////  To Do:                                                      ////////   - cache inhibit                                            ////////                                                              ////////  Author(s):                                                  ////////      - Damjan Lampret, lampret@opencores.org                 ////////                                                              //////////////////////////////////////////////////////////////////////////////                                                              //////// Copyright (C) 2000 Authors and OPENCORES.ORG                 ////////                                                              //////// This source file may be used and distributed without         //////// restriction provided that this copyright statement is not    //////// removed from the file and that any derivative work contains  //////// the original copyright notice and the associated disclaimer. ////////                                                              //////// This source file is free software; you can redistribute it   //////// and/or modify it under the terms of the GNU Lesser General   //////// Public License as published by the Free Software Foundation; //////// either version 2.1 of the License, or (at your option) any   //////// later version.                                               ////////                                                              //////// This source is distributed in the hope that it will be       //////// useful, but WITHOUT ANY WARRANTY; without even the implied   //////// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR      //////// PURPOSE.  See the GNU Lesser General Public License for more //////// details.                                                     ////////                                                              //////// You should have received a copy of the GNU Lesser General    //////// Public License along with this source; if not, download it   //////// from http://www.opencores.org/lgpl.shtml                     ////////                                                              ////////////////////////////////////////////////////////////////////////////// CVS Revision History//// $Log: or1200_immu_top.v,v $// Revision 1.12  2003/06/06 02:54:47  lampret// When OR1200_NO_IMMU and OR1200_NO_IC are not both defined or undefined at the same time, results in a IC bug. Fixed.//// Revision 1.11  2002/10/17 20:04:40  lampret// Added BIST scan. Special VS RAMs need to be used to implement BIST.//// Revision 1.10  2002/09/16 03:08:56  lampret// Disabled cache inhibit atttribute.//// Revision 1.9  2002/08/18 19:54:17  lampret// Added store buffer.//// Revision 1.8  2002/08/14 06:23:50  lampret// Disabled ITLB translation when 1) doing access to ITLB SPRs or 2) crossing page. This modification was tested only with parts of IMMU test - remaining test cases needs to be run.//// Revision 1.7  2002/08/12 05:31:30  lampret// Delayed external access at page crossing.//// Revision 1.6  2002/03/29 15:16:56  lampret// Some of the warnings fixed.//// Revision 1.5  2002/02/11 04:33:17  lampret// Speed optimizations (removed duplicate _cyc_ and _stb_). Fixed D/IMMU cache-inhibit attr.//// Revision 1.4  2002/02/01 19:56:54  lampret// Fixed combinational loops.//// Revision 1.3  2002/01/28 01:16:00  lampret// Changed 'void' nop-ops instead of insn[0] to use insn[16]. Debug unit stalls the tick timer. Prepared new flag generation for add and and insns. Blocked DC/IC while they are turned off. Fixed I/D MMU SPRs layout except WAYs. TODO: smart IC invalidate, l.j 2 and TLB ways.//// Revision 1.2  2002/01/14 06:18:22  lampret// Fixed mem2reg bug in FAST implementation. Updated debug unit to work with new genpc/if.//// Revision 1.1  2002/01/03 08:16:15  lampret// New prefixes for RTL files, prefixed module names. Updated cache controllers and MMUs.//// Revision 1.6  2001/10/21 17:57:16  lampret// Removed params from generic_XX.v. Added translate_off/on in sprs.v and id.v. Removed spr_addr from dc.v and ic.v. Fixed CR+LF.//// Revision 1.5  2001/10/14 13:12:09  lampret// MP3 version.//// Revision 1.1.1.1  2001/10/06 10:18:36  igorm// no message//// Revision 1.1  2001/08/17 08:03:35  lampret// *** empty log message ***//// Revision 1.2  2001/07/22 03:31:53  lampret// Fixed RAM's oen bug. Cache bypass under development.//// Revision 1.1  2001/07/20 00:46:03  lampret// Development version of RTL. Libraries are missing.////// synopsys translate_off`include "timescale.v"// synopsys translate_on`include "or1200_defines.v"//// Insn MMU//module or1200_immu_top(	// Rst and clk	clk, rst,	// CPU i/f	ic_en, immu_en, supv, icpu_adr_i, icpu_cycstb_i,	icpu_adr_o, icpu_tag_o, icpu_rty_o, icpu_err_o,	// SPR access	spr_cs, spr_write, spr_addr, spr_dat_i, spr_dat_o,`ifdef OR1200_BIST	// RAM BIST	scanb_rst, scanb_si, scanb_so, scanb_en, scanb_clk,`endif	// IC i/f	icimmu_rty_i, icimmu_err_i, icimmu_tag_i, icimmu_adr_o, icimmu_cycstb_o, icimmu_ci_o);parameter dw = `OR1200_OPERAND_WIDTH;parameter aw = `OR1200_OPERAND_WIDTH;//// I/O////// Clock and reset//input				clk;input				rst;//// CPU I/F//input				ic_en;input				immu_en;input				supv;input	[aw-1:0]		icpu_adr_i;input				icpu_cycstb_i;output	[aw-1:0]		icpu_adr_o;output	[3:0]			icpu_tag_o;output				icpu_rty_o;output				icpu_err_o;//// SPR access//input				spr_cs;input				spr_write;input	[aw-1:0]		spr_addr;input	[31:0]			spr_dat_i;output	[31:0]			spr_dat_o;`ifdef OR1200_BIST//// RAM BIST//input			scanb_rst,			scanb_si,			scanb_en,			scanb_clk;output			scanb_so;`endif//// IC I/F//input				icimmu_rty_i;input				icimmu_err_i;input	[3:0]			icimmu_tag_i;output	[aw-1:0]		icimmu_adr_o;output				icimmu_cycstb_o;output				icimmu_ci_o;//// Internal wires and regs//wire				itlb_spr_access;wire	[31:`OR1200_IMMU_PS]	itlb_ppn;wire				itlb_hit;wire				itlb_uxe;wire				itlb_sxe;wire	[31:0]			itlb_dat_o;wire				itlb_en;wire				itlb_ci;wire				itlb_done;wire				fault;wire				miss;wire				page_cross;reg	[31:0]			icpu_adr_o;reg	[31:`OR1200_IMMU_PS]	icpu_vpn_r;`ifdef OR1200_NO_IMMU`elsereg				itlb_en_r;reg				dis_spr_access;`endif//// Implemented bits inside match and translate registers//// itlbwYmrX: vpn 31-10  v 0// itlbwYtrX: ppn 31-10  uxe 7  sxe 6//// itlb memory width:// 19 bits for ppn// 13 bits for vpn// 1 bit for valid// 2 bits for protection// 1 bit for cache inhibit//// icpu_adr_o//`ifdef OR1200_REGISTERED_OUTPUTSalways @(posedge rst or posedge clk)	if (rst)		icpu_adr_o <= #1 32'h0000_0100;	else		icpu_adr_o <= #1 icpu_adr_i;`elseUnsupported !!!`endif//// Page cross//// Asserted when CPU address crosses page boundary. Most of the time it is zero.//assign page_cross = icpu_adr_i[31:`OR1200_IMMU_PS] != icpu_vpn_r;//// Register icpu_adr_i's VPN for use when IMMU is not enabled but PPN is expected to come// one clock cycle after offset part.//always @(posedge clk or posedge rst)	if (rst)		icpu_vpn_r <= #1 {31-`OR1200_IMMU_PS{1'b0}};	else		icpu_vpn_r <= #1 icpu_adr_i[31:`OR1200_IMMU_PS];`ifdef OR1200_NO_IMMU//// Put all outputs in inactive state//assign spr_dat_o = 32'h00000000;assign icimmu_adr_o = icpu_adr_i;assign icpu_tag_o = icimmu_tag_i;assign icimmu_cycstb_o = icpu_cycstb_i & ~page_cross;assign icpu_rty_o = icimmu_rty_i;assign icpu_err_o = icimmu_err_i;assign icimmu_ci_o = `OR1200_IMMU_CI;`ifdef OR1200_BISTassign scanb_so = scanb_si;`endif`else//// ITLB SPR access//// 1200 - 12FF  itlbmr w0// 1200 - 123F  itlbmr w0 [63:0]//// 1300 - 13FF  itlbtr w0// 1300 - 133F  itlbtr w0 [63:0]//assign itlb_spr_access = spr_cs & ~dis_spr_access;//// Disable ITLB SPR access//// This flop is used to mask ITLB miss/fault exception// during first clock cycle of accessing ITLB SPR. In// subsequent clock cycles it is assumed that ITLB SPR// access was accomplished and that normal instruction fetching// can proceed.//// spr_cs sets dis_spr_access and icpu_rty_o clears it.//always @(posedge clk or posedge rst)	if (rst)		dis_spr_access <= #1 1'b0;	else if (!icpu_rty_o)		dis_spr_access <= #1 1'b0;	else if (spr_cs)		dis_spr_access <= #1 1'b1;//// Tags://// OR1200_DTAG_TE - TLB miss Exception// OR1200_DTAG_PE - Page fault Exception//assign icpu_tag_o = miss ? `OR1200_DTAG_TE : fault ? `OR1200_DTAG_PE : icimmu_tag_i;//// icpu_rty_o//// assign icpu_rty_o = !icpu_err_o & icimmu_rty_i;assign icpu_rty_o = icimmu_rty_i | itlb_spr_access & immu_en;//// icpu_err_o//assign icpu_err_o = miss | fault | icimmu_err_i;//// Assert itlb_en_r after one clock cycle and when there is no// ITLB SPR access//always @(posedge clk or posedge rst)	if (rst)		itlb_en_r <= #1 1'b0;	else		itlb_en_r <= #1 itlb_en & ~itlb_spr_access;//// ITLB lookup successful//assign itlb_done = itlb_en_r & ~page_cross;//// Cut transfer if something goes wrong with translation. If IC is disabled,// use delayed signals.//// assign icimmu_cycstb_o = (!ic_en & immu_en) ? ~(miss | fault) & icpu_cycstb_i & ~page_cross : (miss | fault) ? 1'b0 : icpu_cycstb_i & ~page_cross; // DLassign icimmu_cycstb_o = immu_en ? ~(miss | fault) & icpu_cycstb_i & ~page_cross & itlb_done : icpu_cycstb_i & ~page_cross;//// Cache Inhibit//// Cache inhibit is not really needed for instruction memory subsystem.// If we would do it, we would do it like this.// assign icimmu_ci_o = immu_en ? itlb_done & itlb_ci : `OR1200_IMMU_CI;// However this causes a async combinational loop so we stick to// no cache inhibit.assign icimmu_ci_o = `OR1200_IMMU_CI;//// Physical address is either translated virtual address or// simply equal when IMMU is disabled//assign icimmu_adr_o = itlb_done ? {itlb_ppn, icpu_adr_i[`OR1200_IMMU_PS-1:0]} : {icpu_vpn_r, icpu_adr_i[`OR1200_IMMU_PS-1:0]}; // DL: immu_en//// Output to SPRS unit//assign spr_dat_o = spr_cs ? itlb_dat_o : 32'h00000000;//// Page fault exception logic//assign fault = itlb_done &			(  (!supv & !itlb_uxe)		// Execute in user mode not enabled			|| (supv & !itlb_sxe));		// Execute in supv mode not enabled//// TLB Miss exception logic//assign miss = itlb_done & !itlb_hit;//// ITLB Enable//assign itlb_en = immu_en & icpu_cycstb_i;//// Instantiation of ITLB//or1200_immu_tlb or1200_immu_tlb(	// Rst and clk        .clk(clk),	.rst(rst),        // I/F for translation        .tlb_en(itlb_en),	.vaddr(icpu_adr_i),	.hit(itlb_hit),	.ppn(itlb_ppn),	.uxe(itlb_uxe),	.sxe(itlb_sxe),	.ci(itlb_ci),`ifdef OR1200_BIST	// RAM BIST	.scanb_rst(scanb_rst),	.scanb_si(scanb_si),	.scanb_so(scanb_so),	.scanb_en(scanb_en),	.scanb_clk(scanb_clk),`endif        // SPR access        .spr_cs(itlb_spr_access),	.spr_write(spr_write),	.spr_addr(spr_addr),	.spr_dat_i(spr_dat_i),	.spr_dat_o(itlb_dat_o));`endifendmodule

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲激情中文1区| 久久久久久久久99精品| 伊人色综合久久天天| 91视频精品在这里| 亚洲国产一区视频| 日韩三级av在线播放| 国产精一品亚洲二区在线视频| 精品久久久久久久久久久久久久久久久 | 美女网站在线免费欧美精品| 91精品欧美综合在线观看最新| 久久精品久久99精品久久| 久久久久成人黄色影片| 9久草视频在线视频精品| 亚洲综合av网| 日韩精品专区在线| www.日韩大片| 日韩电影免费在线观看网站| 亚洲精品在线免费播放| caoporen国产精品视频| 亚洲国产cao| 国产日韩欧美综合一区| 在线看日韩精品电影| 麻豆精品精品国产自在97香蕉| 欧美高清一级片在线观看| 欧美日韩免费在线视频| 国产一区二区伦理片| 亚洲精品国产a久久久久久| 91麻豆精品国产91久久久久久久久 | 欧美专区日韩专区| 久久精品久久精品| 中文字幕五月欧美| 日韩一区二区高清| 成人免费观看视频| 日本伊人色综合网| 综合在线观看色| 欧美成人女星排行榜| 91视频免费观看| 国内精品视频666| 亚洲综合网站在线观看| 久久久久久久久久久黄色| 在线观看日韩av先锋影音电影院| 国产综合久久久久影院| 亚洲一区二区四区蜜桃| 国产三级欧美三级日产三级99 | 日本丰满少妇一区二区三区| 久久国产精品99精品国产| 亚洲影院在线观看| 欧美国产日韩亚洲一区| 欧美一级高清片| 欧美色视频在线观看| 成人妖精视频yjsp地址| 久久99精品国产91久久来源| 一区二区三区日韩精品视频| 国产欧美1区2区3区| 日韩精品在线看片z| 欧美高清一级片在线| 色八戒一区二区三区| 粉嫩绯色av一区二区在线观看| 日本欧美一区二区三区乱码| 亚洲国产欧美在线| 亚洲黄网站在线观看| 国产精品国产成人国产三级| 国产午夜精品久久久久久久 | 日本在线不卡视频| 亚洲丶国产丶欧美一区二区三区| 中文字幕一区二区三区av| 国产色产综合产在线视频| 精品国产一区二区在线观看| 91精品国产综合久久久蜜臀粉嫩| 欧美亚洲另类激情小说| 91久久国产最好的精华液| 9人人澡人人爽人人精品| 成人av午夜电影| 9l国产精品久久久久麻豆| 成人午夜激情片| eeuss影院一区二区三区| 粉嫩13p一区二区三区| 高清成人免费视频| 丁香婷婷综合色啪| av高清久久久| 91视频免费播放| 欧美日韩一区二区三区四区| 欧美亚一区二区| 欧美日韩一本到| 欧美一区中文字幕| 精品欧美黑人一区二区三区| 精品日韩在线观看| 久久久精品人体av艺术| 国产精品欧美久久久久无广告| 欧美激情一区不卡| 亚洲特黄一级片| 亚洲精品成人少妇| 午夜电影一区二区三区| 丝袜美腿亚洲一区| 韩国女主播一区| 不卡的看片网站| 欧美日本一区二区在线观看| 欧美一区二区三区人| 久久综合九色欧美综合狠狠| 国产偷国产偷精品高清尤物| 中文字幕在线不卡| 亚洲国产精品影院| 狠狠色狠狠色综合日日91app| 成人一区二区在线观看| 91成人看片片| 欧美一区二区三区视频在线观看| 久久精品视频网| 一区二区三区欧美亚洲| 麻豆精品国产91久久久久久| 成人网在线免费视频| 欧美三级欧美一级| 久久综合色之久久综合| 亚洲精品网站在线观看| 另类欧美日韩国产在线| 99久久精品费精品国产一区二区| 欧美精品日韩精品| 国产精品久久久久久妇女6080| 亚洲精品久久7777| 国产一区免费电影| 在线免费亚洲电影| 久久伊人中文字幕| 亚洲国产视频一区| 国产成人免费xxxxxxxx| 欧美日本视频在线| 国产精品美女视频| 久久精品99国产国产精| 91福利区一区二区三区| 国产欧美日产一区| 日本不卡一区二区三区| 91美女片黄在线观看91美女| 欧美v国产在线一区二区三区| 亚洲麻豆国产自偷在线| 国产精品一区二区久久不卡| 欧美三日本三级三级在线播放| 国产亚洲一二三区| 免费高清不卡av| 在线观看欧美日本| 亚洲视频一二三区| 国产美女一区二区| 日韩欧美一级在线播放| 亚洲与欧洲av电影| 91视频免费播放| 国产精品剧情在线亚洲| 国产精品自拍在线| 精品久久久网站| 奇米亚洲午夜久久精品| 欧美男女性生活在线直播观看| 国产精品美女久久久久久久久久久| 久久黄色级2电影| 91精品国产91综合久久蜜臀| 亚州成人在线电影| 在线观看国产91| **性色生活片久久毛片| 国产成a人亚洲精| 国产午夜一区二区三区| 国产一区二区三区黄视频| 欧美一二区视频| 秋霞av亚洲一区二区三| 69堂精品视频| 日av在线不卡| 日韩一区二区三区电影在线观看| 亚洲777理论| 欧美日韩成人综合| 天天做天天摸天天爽国产一区| 在线观看网站黄不卡| 国产精品久久久久aaaa樱花| 成人亚洲一区二区一| 欧美激情一区二区在线| jlzzjlzz亚洲日本少妇| 国产精品国产三级国产a| 99精品欧美一区二区三区小说 | av激情综合网| 亚洲天天做日日做天天谢日日欢 | 日韩免费观看2025年上映的电影| 日韩国产在线观看| 日韩免费视频一区二区| 国产米奇在线777精品观看| 欧美高清一级片在线观看| 成人99免费视频| 亚洲欧美国产77777| 91极品视觉盛宴| 丝袜美腿亚洲综合| 欧美成人a∨高清免费观看| 国产一区二区三区电影在线观看 | 亚洲欧洲无码一区二区三区| 99久久99精品久久久久久| 亚洲欧美二区三区| 欧美精品在线观看一区二区| 另类小说视频一区二区| 国产精品理伦片| 欧美色综合网站| 国产资源在线一区| 亚洲婷婷在线视频| 91精品国产一区二区三区香蕉| 国产在线精品免费av| 亚洲色欲色欲www在线观看| 欧美日韩精品系列| 91免费国产在线观看| 日本一区中文字幕| 亚洲国产精品v|