计算机科学中的流水线技术 - 图文 联系客服

发布时间 : 星期三 文章计算机科学中的流水线技术 - 图文更新完毕开始阅读64505f166c175f0e7cd137e0

摘要

流水线技术是提高系统吞吐率的一项强大的实现技术,并且不需要大量重复设置硬件。20世界60年代早期的一些高端机器中第一次采用了流水线技术。第一个采用指令流水线的机器是IBM7030(又称作Stretch计算机)。后来的CDC 6600同时采用了流水线和多功能部件。

到了20世纪80年代,流水线技术成为RISC处理器设计方法中最基本的技术之一。RISC设计方法的大部分技术都直接或者间接以提高流水线性能为目标。从此以后,流水线技术也被有效地应用到CISC处理器的设计中。Intel i486是IA32体系结构中的第一个流水线实现。Digital的VAX和Motorola的M68K的流水线版本在商业上也取得了成功。

流水线技术是当前指令集处理器设计中广泛采用的技术。在这里我们将重点放在(标量)流水线处理器的设计。流水线处理器设计中的许多方法和技术,例如用于检测和化解相关的流水线互锁机制,都是标量处理器设计的基本方法。 当前的趋势是朝着超深度流水线的方向发展。流水线的深度已经从不到10发展到超过20.深度流水是获得高速始终频率的必要条件,这是提高处理器性能的一个非常有效的方法。有迹象表明。这种趋势还将持续下去。

[关键词] 流水线技术 猜测法 中断处理 吞吐率 指令重叠 加快短循环程序的处理

Abstract

Pipeline technology is to improve the system throughput of a powerful technology, and does not require repetitive set hardware. The 20 world early 60's some high-end machines used the first pipeline technology. The first use of the instruction pipeline machine is IBM7030(also called Stretch computer ). Later CDC6600at the same time lines and multiple functional components.

In the nineteen eighties, pipeline technology to become the RISC processor design method is one of the most basic techniques. The design method of RISC most of the techniques are directly or indirectly to improve performance as the goal line. Since then, assembly line techniques have also been applied effectively to the CISC processor. Intel i486 is IA32 architecture is the first in a pipelined implementation. Digital VAX and Motorola M68K pipelined version also achieved success in business. Pipeline technology is the current instruction set processor is widely used in the design of technology. Here we will focus on the ( scalar ) pipelined processor design. A pipelined processor in the design of many methods and techniques, for example, used to detect and resolve the relevant pipeline interlock mechanism, is a scalar processor design method. The current trend is towards super depth line direction. Pipeline depth has less than10 to the development of more than 20depth of water is always necessary to obtain high speed frequency, which is to improve the

performance of a very effective method. There are signs. This trend will continue.

Keywords: Pipeline technology forecast method of interrupt processing

throughput instruction overlapping accelerate short cycle program processing

目录

第一章

绪论 ................................................................................................................. 5 1.1 现代RISC中的流水线技术 ........................................................................... 5

1.1.1 超流水线技术 ....................................................................................... 5 1.1.2 超标量技术 ........................................................................................... 4 1.1.3 流水技术在Pentium系列微处理器中的实现 ................................... 6

第二章

流水线基础 ..................................................................................................... 8

2.1 流水线概念 ..................................................................................................... 8

2.1.1 指令重叠 ............................................................................................... 9 2.1.2 流水线 ................................................................................................. 10 2.1.3 流水线的特点 ..................................................................................... 10 2.1.4 流水线的分类 ..................................................................................... 11 2.2 流水线的主要性能 ....................................................................................... 12

2.2.1 吞吐率 ................................................................................................. 12 2.2.2 加速比和效率 ..................................................................................... 13

第三章

指令流水线设计 ........................................................................................... 14

3.1 流水线理想假设 ........................................................................................... 14

3.1.1 一致的运算分量 ................................................................................. 14 3.1.2 重复的运算 ......................................................................................... 15 3.1.3 独立的运算 ......................................................................................... 16 3.2 指令流水线 ................................................................................................... 17

3.2.1 指令流水线设计 ................................................................................. 17 3.2.2 指令集体系结构的影响 ..................................................................... 18

3.2.3 流水线分级的考虑 ............................................................................. 20 3.3 流水线处理器设计 ....................................................................................... 20

3.3.1 保持流水段均衡 ................................................................................. 20 3.3.2 统一指令类型 ..................................................................................... 21 3.3.3 减少流水线停顿 ................................................................................. 25

第四章

流水线中各种相关及中断处理 ................................................................... 26

4.1 流水线中相关 ............................................................................................... 26 4.2 资源相关 ....................................................................................................... 26 4.3 数据相关 ....................................................................................................... 27

4.3.1 指令相关 ............................................................................................. 27 4.3.2 主存空间操作数相关 ......................................................................... 28 4.3.3 通用寄存器组相关 ............................................................................. 28 4.4 控制相关 ....................................................................................................... 31

4.4.1 猜测法 ................................................................................................. 30 4.4.2 加快和提前形成条件码 ..................................................................... 31 4.4.3 采取转移延迟 ..................................................................................... 31 4.4.4 加快短循环程序的处理 ..................................................................... 31

第五章

中断处理与流水线调度 ............................................................................... 32

5.1 中断处理 ....................................................................................................... 32 5.2 流水线调度 ................................................................................................... 33 第六章

总结与展望 ................................................................................................... 35

致谢 ................................................................................................................................. 41 参考文献 ......................................................................................................................... 38