首页 \ 问答 \ MIPS:“lw”指令路径(MIPS: “lw” instruction path)

MIPS:“lw”指令路径(MIPS: “lw” instruction path)

从讲义: 在此处输入图像描述

根据我的理解,黑点是否表示二进制位被复制到两条路径向前移动?

例如,指令位I[20-16]应该进入Read register 2Write register 。 最后,由于MUX选择1,最终没有使用Read data 2

我的教授是否选择不将红线绘制到Read register 2路径以强调最重要的路径? 或者Read register 2之前的黑点是否能够关闭不相关的数据路径?


From lecture notes: enter image description here

from what I understand, doesn't the black dots indicate the binary bits is being copied to both paths moving forward?

For example, instruction bits I[20-16] should be going into the Read register 2 and Write register. It's just that in the end, the Read data 2 is not being used due to the MUX selecting 1.

Did my prof choose not to draw the red lines going to the Read register 2 path just to emphasize on the most significant path? Or does the black dot before Read register 2 have the ability to close off irrelevant data path?


原文:https://stackoverflow.com/questions/44338544
更新时间:2023-02-04 16:02

最满意答案

您可以将输出存储在变量中,如下所示:

<?php
    $output = '';
    $webtech = article_custom_field('web-tech');
    if ( !empty($webtech) ) :
        $output .= '<div class="tech-title">Technologies:</div>'
            . '<ul class="tech-ul">' . $webtech . '</ul>';
    endif;

    $url = article_custom_field('site-url');
    if(!empty($url)) :
        $output .= '<div class="site-url"><a href="' . $url . '" target="_blank">Visit</a></div>';
    endif;

    if($output != ''):
        echo '<div class="tech-list">';
        echo $output;
        echo '</div>';
    endif;
?>

这样,只有在输出变量中设置了某些内容时,它才会显示任何内容。

这会解决您的问题吗?


You could store your outputs in a variable, like so:

<?php
    $output = '';
    $webtech = article_custom_field('web-tech');
    if ( !empty($webtech) ) :
        $output .= '<div class="tech-title">Technologies:</div>'
            . '<ul class="tech-ul">' . $webtech . '</ul>';
    endif;

    $url = article_custom_field('site-url');
    if(!empty($url)) :
        $output .= '<div class="site-url"><a href="' . $url . '" target="_blank">Visit</a></div>';
    endif;

    if($output != ''):
        echo '<div class="tech-list">';
        echo $output;
        echo '</div>';
    endif;
?>

This way, only when there is something set in your output variable, will it show anything.

Does this solve your problem?

相关问答

更多
  • 使用: original = original.replaceAll("\\D+", " "); \\D+将匹配1个或更多非数字(包括空格),替换只是一个空格。 RegEx演示 Use: original = original.replaceAll("\\D+", " "); \\D+ will match 1 or more non-digit (including spaces) and replacement is just a single space. RegEx Demo
  • 假设您的GetMany确实只是Where调用,因此它们返回IQueryable,以下应该是我认为的技巧: var users = repository .GetMany(l => l.Priority > ( repository.GetMany( l2 => l2.UserID = currentUser.ID ) .Select(l2 => l2.Priority) .Firs ...
  • 虽然你可以做一个cross join来得到你想要的东西,但我猜想FROM和其余的WHERE子句是相同的。 在这种情况下,只需进行条件聚合: SELECT SUM(CASE WHEN dbo.SEM_AGENT.AGENT_VERSION like '%11.%' THEN 1 ELSE 0 END) as Number_of_SEP11_clients, SUM(CASE WHEN dbo.SEM_AGENT.AGENT_VERSION like '%12.%' THEN 1 ELSE 0 E ...
  • 相关文章

    更多

    最新问答

    更多
  • sp_updatestats是否导致SQL Server 2005中无法访问表?(Does sp_updatestats cause tables to be inaccessible in SQL Server 2005?)
  • 如何创建一个可以与持续运行的服务交互的CLI,类似于MySQL的shell?(How to create a CLI that can interact with a continuously running service, similar to MySQL's shell?)
  • AESGCM解密失败的MAC(AESGCM decryption failing with MAC)
  • Zurb Foundation 4 - 嵌套网格对齐问题(Zurb Foundation 4 - Nested grid alignment issues)
  • 湖北京山哪里有修平板计算机的
  • SimplePie问题(SimplePie Problem)
  • 在不同的任务中,我们可以同时使用多少“上下文”?(How many 'context' we can use at a time simultaneously in different tasks?)
  • HTML / Javascript:从子目录启用文件夹访问(HTML/Javascript: Enabling folder access from a subdirectory)
  • 为什么我会收到链接错误?(Why do I get a linker error?)
  • 如何正确定义析构函数(How to properly define destructor)
  • 垂直切换菜单打开第3级父级。(Vertical toggle menu 3rd level parent stay opened. jQuery)
  • 类型不匹配 - JavaScript(Type mismatch - JavaScript)
  • 为什么当我将模型传递给我的.Net MVC 4控制器操作时,它坚持在部分更新中使用它?(Why is it that when I pass a Model to my .Net MVC 4 Controller Action it insists on using it in the Partial Update?)
  • 在使用熊猫和statsmodels时拉取变量名称(Pulling variable names when using pandas and statsmodels)
  • 如何开启mysql计划事件
  • 检查数组的总和是否大于最大数,反之亦然javascript(checking if sum of array is greater than max number and vice versa javascript)
  • 使用OpenGL ES绘制轮廓(Drawing Outline with OpenGL ES)
  • java日历格式(java Calendar format)
  • Python PANDAS:将pandas / numpy转换为dask数据框/数组(Python PANDAS: Converting from pandas/numpy to dask dataframe/array)
  • 如何搜索附加在elasticsearch索引中的文档的内容(How to search a content of a document attached in elasticsearch index)
  • LinQ to Entities:做相反的查询(LinQ to Entities: Doing the opposite query)
  • 从ExtJs 4.1商店中删除记录时会触发哪些事件(Which events get fired when a record is removed from ExtJs 4.1 store)
  • 运行javascript后如何截取网页截图[关闭](How to take screenshot of a webpage after running javascript [closed])
  • 如何使用GlassFish打印完整的堆栈跟踪?(How can I print the full stack trace with GlassFish?)
  • 如何获取某个exe应用程序的出站HTTP请求?(how to get the outbound HTTP request of a certain exe application?)
  • 嗨,Android重叠背景片段和膨胀异常(Hi, Android overlapping background fragment and inflate exception)
  • Assimp详细说明typedef(Assimp elaborated type refers to typedef)
  • 初始化继承类中不同对象的列表(initialize list of different objects in inherited class)
  • 使用jquery ajax在gridview行中保存星级评分(Save star rating in a gridview row using jquery ajax)
  • Geoxml3 groundOverlay zIndex(Geoxml3 groundOverlay zIndex)