pacoblaze_idu.v.html
来自「和picoblaze完全兼容的mcu ip core」· HTML 代码 · 共 606 行 · 第 1/4 页
HTML
606 行
'<img border=0 src="v2html-b1.gif"></a></td>' +'<td style="font-family:sans-serif; font-weight:bold; font-size:14px;"> '+text+'</td></tr>\n';}function copy_into_loc0 (w,extra_info_index) {for (var i=1;i<extra_info[extra_info_index].length;i++) {w.loc[0][i-1] = extra_info[extra_info_index][i];}w.document.forms[0].elements[0].selectedIndex=1;w.document.forms[0].elements[0].selectedIndex=0;setbuttons(w);}function search(text,y,i,inc,relative) {var nextpage,wrappage,linkText,linkY;window.status="Searching...";if (last_class) document.links[i].className=last_class;while (1) {for (i+=inc;i<document.links.length && i>=0;i+=inc) {linkText = is_nav4up ? document.links[i].text : document.links[i].innerText;linkY = is_nav4up && ! is_nav5up ? document.links[i].y : document.links[i].offsetTop;if ((linkText == text) && (linkY != y)) {window.status="";if (is_nav4up) if (relative) window.scrollBy(0,linkY - y);else window.scrollTo(0,linkY); else if (is_ie4up)document.links[i].scrollIntoView(true); last_link=i;last_class=document.links[i].className;document.links[i].className='HI';return false;}}nextpage = (inc==1) ? next_page() : prev_page();wrappage = (inc==1) ? first_page() : last_page();if (nextpage!="" || wrappage!="") {if (nextpage=="") { if (!confirm(text + " not found. Search again from "+((inc==1)?"first":"last")+" page?"))return false;nextpage=wrappage;}location=nextpage+ "?" + escape(text) + "&" + ( y - window.pageYOffset ) + "&" + inc;return false;}if (confirm(text + " not found. Search again from "+((inc==1)?"start":"end")+"?")) {if (inc==1) i=-1;else i=document.links.length;} else return false;}return true;}function loadqs() {var opt=location.search, text="", s="", y=0, si=0, inc=1;if (opt.length==0) return true; for (var i=1;i<opt.length;i++) { if (opt.charAt(i) != "&") s += opt.charAt(i);else {if (text=="") text=unescape(s);else y=s;s="";}}if (text=="") return true;if (s == "-1") { si=document.links.length-1; inc=-1; }window.scrollTo(0,0);search(text,y,si,inc);return true;}// --></script><body onload='loadqs();'><script language="JavaScript"type="text/javascript"><!--function prev_page() { return ""; }function last_page() { return ""; }// --></script><center><table class=NB cols=7 ><tr><td align="center" width="14%" onmousedown="this.style.border='inset';" onmouseup="this.style.border='outset';" onclick="location='index.html';"><a target="_top" href="index.html">Hierarchy</a></td><td align="center" width="14%" onmousedown="this.style.border='inset';" onmouseup="this.style.border='outset';" onclick="location='index-f.html';"><a target="_top" href="index-f.html">Files</a></td><td align="center" width="14%" onmousedown="this.style.border='inset';" onmouseup="this.style.border='outset';" onclick="location='index-m.html';"><a target="_top" href="index-m.html">Modules</a></td><td align="center" width="14%" onmousedown="this.style.border='inset';" onmouseup="this.style.border='outset';" onclick="location='index-s.html';"><a target="_top" href="index-s.html">Signals</a></td><td align="center" width="14%" onmousedown="this.style.border='inset';" onmouseup="this.style.border='outset';" onclick="location='index-t.html';"><a target="_top" href="index-t.html">Tasks</a></td><td align="center" width="14%" onmousedown="this.style.border='inset';" onmouseup="this.style.border='outset';" onclick="location='index-fn.html';"><a target="_top" href="index-fn.html">Functions</a></td><td align="center" width="14%" onmousedown="this.style.border='inset';" onmouseup="this.style.border='outset';" onclick="location='http://www.burbleland.com/v2html/help_7_30.html?htf-ni-s-';"><a target="_top" href="http://www.burbleland.com/v2html/help_7_30.html?htf-ni-s-">Help</a></td></tr></table></center><pre><span class=C>/* Copyright (C) 2004, 2006 Pablo Bleyer Kocik. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.*/</span><span class=C>/** @file PacoBlaze Instruction Decode Unit.*/</span><span class=M>`ifndef</span> <a onClick="return qs(event,this,0)" class=D href="#34">PACOBLAZE_IDU_V_</a><span class=M>`define</span> <a onClick="return qs(event,this,0)" class=D href="#34">PACOBLAZE_IDU_V_</a><span class=M>`include</span> <a onClick="return qs(event,this,0)" class=S href="pacoblaze_inc.v.html">"pacoblaze_inc.v"</a><span class=M>`ifdef</span> <span class=D>USE_ONEHOT_ENCODING</span><span class=M>`define</span> <a onClick="return qs(event,this,0)" class=D href="#43">operation_set</a>(x) operation = (1<<x)<span class=C>// `define operation_set(x) operation[x] = 1'b1</span><span class=M>`define</span> <a onClick="return qs(event,this,0)" class=D href="#44">operation</a>(x) operation[(x)]<span class=M>`else</span><span class=M>`define</span> <a onClick="return qs(event,this,0)" class=D href="#43">operation_set</a>(x) operation = (x)<span class=M>`define</span> <a onClick="return qs(event,this,0)" class=D href="#44">operation</a>(x) (x)<span class=M>`endif</span><span class=K>module</span> <span class=D>`</span><a onClick="return qs(event,this,0)" class=D href="pacoblaze1.v.html#13">PACOBLAZE_IDU</a>( instruction, operation, shift_operation, shift_direction, shift_constant, operand_selection, x_address, y_address, implied_value, port_address,<span class=M>`ifdef</span> <a onClick="return qs(event,this,0)" class=D href="pacoblaze_inc.v.html#41">HAS_SCRATCH_MEMORY</a> scratch_address,<span class=M>`endif</span> code_address, conditional, condition_flags, interrupt_enable<span class=M>`ifdef</span> <a onClick="return qs(event,this,0)" class=D href="pacoblaze_idu_tb.v.html#36">HAS_DEBUG</a> , debug<span class=M>`endif</span>);<span class=K>input</span> [<span class=D>`</span><a onClick="return qs(event,this,0)" class=D href="pacoblaze_inc.v.html#72">code_width</a>-1:0] instruction; <span class=C>///< Instruction</span><span class=K>output</span> <span class=K>reg</span> [<span class=D>`</span><a onClick="return qs(event,this,0)" class=D href="pacoblaze_inc.v.html#149">operation_width</a>-1:0] operation; <span class=C>///< Main operation</span><span class=K>output</span> [2:0] shift_operation; <span class=C>///< Rotate/shift operation</span><span class=K>output</span> shift_direction; <span class=C>///< Rotate/shift left(0)/right(1)</span><span class=K>output</span> shift_constant; <span class=C>///< Shift constant value</span><span class=K>output</span> operand_selection; <span class=C>///< Operand selection (k/p/s:0, y:1)</span><span class=K>output</span> [<span class=D>`</span><a onClick="return qs(event,this,0)" class=D href="pacoblaze_inc.v.html#110">register_depth</a>-1:0] x_address, y_address; <span class=C>///< Operation x source/target, y source</span><span class=K>output</span> [<span class=D>`</span><a onClick="return qs(event,this,0)" class=D href="pacoblaze_inc.v.html#60">operand_width</a>-1:0] implied_value; <span class=C>///< Operand constant source</span><span class=K>output</span> [<span class=D>`</span><a onClick="return qs(event,this,0)" class=D href="pacoblaze_inc.v.html#82">port_depth</a>-1:0] port_address; <span class=C>///< Port address</span><span class=M>`ifdef</span> <a onClick="return qs(event,this,0)" class=D href="pacoblaze_inc.v.html#41">HAS_SCRATCH_MEMORY</a><span class=K>output</span> [<span class=D>`</span><a onClick="return qs(event,this,0)" class=D href="pacoblaze_inc.v.html#119">scratch_depth</a>-1:0] scratch_address; <span class=C>///< Scratchpad address
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?