登陆注册
3667600000010

第10章 Computer Hardware(3)

An instruction is made up of operations which specify the function to be performed and operands that represent the data to be manipulated. For example, if an instruction is to perform the operation of adding two numbers, it must know what the two numbers are and where the two numbers are. When the numbers are stored in the computer’s memory, they have an address to indicate where they are, so if an operand refers to data in the computer’s memory, it’s called an address. The processor’s job is to retrieve instructions and data from memory and to perform each operation. Having done that, it signals memory to send the next instruction.

The step by step operation is repeated over and over again at speeds measured in millions of a second. A timer called a clock releases precisely timed electrical signals that provide a regular heartbeat for the processor’s work. Megahertz, which means million cycles per second, are used to measure the computer’s speed. A processor is composed of two functional units — a control unit and an arithmetic/logical unit — as well as a set of special workspaces called registers.

1.TheArithmetic and Logic Unit

The arithmetic and logical unit performs the calculations on the numbers and words in the computer. The main operations are addition, subtraction, multiplication and division. Most computers can also perform certain logical operations on words.

The arithmetic and logical unit (ALU) is the functional unit that provides the computer with logical and computational capabilities. Data are brought into the ALU by the control unit, and the ALU performs whatever arithmetic or logic operations are required to help carry out the instruction.

2.The Control Unit

The control unit is the functional unit that is responsible for supervising the operation of the entire computer system. It makes the connections between various functional units of the computer system and calls into operation each unit that is required by the program currently in operation.

The first phase of control is to provide signals to activate the operations in the ALU, the memory unit and the input/ output units. After completing an instruction, the control calls for the next instruction from the memory unit. Usually, the instructions are stored in an increasing order of address. An instruction counter is used in the control unit to record the address of the instruction under examination. By incrementing the address counter, the control unit turns to the next instruction to be fetched.

The control unit fetches instructions from memory and determines their types or decodes them. It then breaks each instruction into a serious of simple small steps

or actions. By doing this, it controls the step by step operation of the entire computer system.

3.Registers

A register is a storage location inside the processor. Register in the control unit are used to keep track of the overall status of the program that is running. Control unit registers store information such as the current instruction, the location of the next instruction to be executed, and the operands of the instruction. In the ALU, registers store data items that are added, subtracted, multiplied, divided, and compared. Other registers store the results of arithmetic and logical operations.

An important factor that affects the speed and performance of a processor is the size of the registers. Technically, the term word size describes the size of an operand register, but it is also used more loosely to describe the size of the pathways to and from the processor. Currently, word sizes in general purpose computer range from 8 to 64 bits.

【Vocabulary】

processor

n. 处理器

instruction

n. 指令

instruction set

指令系统

peripheral

adj. 外围的 n. 外围设备

arithmetic

n. 算术、算法

operation

n. 操作、操作码指令

decode

vt. 解码、解译

operand

n. 操作数

register

n. 寄存器

megahertz

n. 兆赫兹

bit

n. 位、比特

control unit

控制单元

machine language

机器语言

trigger pulse

触发脉冲

【参考译文】

计算机处理器

处理器是解释和执行指令的功能单元,它是计算机的中枢神经系统,与处理器和内存周围被称为外设的设备如键盘、显示器、磁盘等形成对比。每一套处理器都有一套独特的操作命令,例如加、存储、调入等之类的操作命令称为处理器的指令集。计算机系统设计者喜欢将计算机称为机器,所以该指令系统有时也称为机器指令系统,而书写机器指令的二进制语言叫做机器语言。但是不要将处理器的指令系统与BASIC或PASCAL这样的高级程序设计语言相混淆。

一条指令由代表执行特定功能的操作和代表被操作数据的操作数组成。例如,如果一条指令执行两个数相加的操作,那么必须知道这两个数是什么以及这两个数在什么位置。当这两个数存储到了计算机的内存中,它们就有了一个地址指示它的位置。一个操作数只是数据在计算机内存中的位置称为地址。处理器的任务就是从内存中检索指令和数据,执行每一条指令,在完成指令后指示内存送出下一条指令。

一次又一次地执行这些操作步骤,以百万次每秒计算它的速度。一个被称为时钟的计时器准确地发送定时信号,为处理器的工作提供规则的频率。一兆赫兹表示每秒一百万次循环,用它来衡量计算机的速度。每个处理器有两个功能单元,控制单元和算术逻辑单元,和一组称作寄存器的特殊工作空间组成。

1.算术逻辑单元

算术逻辑单元在计算机内执行数字和字符的运算,主要的操作有加法、减法、乘法和除法,大多数计算机也能够执行特定的字符逻辑运算。

算术逻辑单元(ALU)是为计算机提供逻辑及计算能力的部件。控制部件将数据输入算术逻辑部件,然后由算术逻辑部件完成执行指令所需的任何算术或逻辑运算。

2.控制单元

控制单元是负责监控整个计算机系统操作的功能部件。它将计算机系统的各个功能部件连接起来,并按照当前运行程序的需要对每个部件进行操作。

控制单元的第一个步骤是提供信号来激活存储在ALU、内存单元和输入输出单元中的操作指令,完成一个指令后,控制单元从内存中调出下一个指令。通常情况下,指令按照地址的上升序列存储。控制单元中使用指令计数器记录正在校验的指令地址,通过递增地址计数器控制单元指向所要取出的下一条指令。

控制单元从存储器中取出指令,并确定其类型或对其进行译码。然后将每条指令都分解成一系列简单的小步骤。这样它就控制了整个计算机系统的步进操作。

3.寄存器

寄存器是处理器内的存储单元。控制部件中的寄存器用来跟踪正在运行的程序的总体状态。控制器寄存器存储当前指令、下一条将要执行的指令地址以及该指令的操作数等信息。在算术逻辑部件中,寄存器存放要进行加、减、乘、除及比较的数据项。而其他寄存器则存放算术和逻辑运算的结果。

影响处理器速度和性能的一个重要因素是寄存器的大小。从技术上讲,术语“字长”描述了操作数寄存器的大小,但它也可用于简单描述出处理器的通道的大小。现在通用的计算机的字长从8位到64位不等。

【Reading Material】

VLIW Microprocessors

When Transmute Crop revealed its new Crusoe family of processors last month, experts weren’t surprised to learn that the chips are based on Very Long Instruction Word (VLIW) technology. VLIW has become the prevailing philosophy of microprocessor design, eclipsing older approaches such as RISC and complex instruction set computing (CISC).

同类推荐
  • Songs of a Savoyard

    Songs of a Savoyard

    本书为公版书,为不受著作权法限制的作家、艺术家及其它人士发布的作品,供广大读者阅读交流。
  • 从Hello到玩转英语

    从Hello到玩转英语

    本书从生活中最常用的英语短句到模拟场景会话,循序渐进。本书亮点在于常用短句大全,重点则在场景会话部分。场景会话部分包含135个模拟情景,每个情景后都附有欧美文化介绍。语言与文化同步学习,掌握最地道英语。
  • 加州之旅(Aunt Jane's Nieces on the Ranch)

    加州之旅(Aunt Jane's Nieces on the Ranch)

    莱曼.弗兰克.鲍姆(wkkk.net Baum,1856—1919)是美国知名儿童文学作家。本书讲述的是约翰叔叔和两个侄女在加州露易丝的农场度假时,发生在农场里一所老房子的奇特故事。农场的原主人私藏了属于米尔德里德的财富,于是她以保姆之名来到农场寻找自己的财富,而其过程并不顺利。
  • 玩转生活英语

    玩转生活英语

    本书是一本涵盖日常生活的英语口语书籍。全书信息量丰富,趣味性强,适合不同英语阶段的学习者使用。本书在内容编排上为了帮助读者巩固和提高英语能力,专门设计了“跟我练”栏目,保证能活学活用。
  • 计算机英语

    计算机英语

    本书共九章,包括:计算机的发展及总体介绍,计算机硬件,计算机操作系统,数据库系统,软件工程,计算机网络和因特网,办公自动化系统,多媒体技术以及计算机安全。每个章节都配有正文的参考译文,帮助读者更加方便地学习和理解。每章的后面配有练习题并附参考答案,以利于对本单元内容进行巩固。课后的附录包含了单词表,词组表,计算机英语语法及科技英语写作要点,全方位地给读者提供丰富的相关知识。
热门推荐
  • 都市之妖孽公子

    都市之妖孽公子

    【一日十更,唯我萌靓】三年前,他被人陷害,不知所踪。三年后王者归来,尔等,唯有臣服,或者死亡。已有百万字老书《都市超级神尊》
  • 林则徐家书

    林则徐家书

    综观林则徐一生,是典型的宦海人生,与家人聚少离多,然而,林氏之于家的责任心却并未因此少一分半分,此次结集的十多万字的家信,皆依其有据可查的手稿整理而得。细读起来,字里行间,无不催人泪下,其文纵横捭阖,气势磅礴,论述精当,感情真挚;有涉及行政治理难题,军事布局谋略,民族问题剖析,治安暴乱平定,鸦片治理前因后果,其内容之丰富,文笔之精妙,两百多年来,窃以为除后来者梁启超先生稍稍足以并肩,余人皆不可及。
  • 好习惯故事(语文新课标课外必读第九辑)

    好习惯故事(语文新课标课外必读第九辑)

    习惯的养成,并非一朝一夕之事;而要想改正某种不良习惯,也常常需要一段时间。根据专家的研究发现,21天以上的重复会形成习惯,90天的重复会形成稳定的习惯。所以一个观念如果被别人或者是自己验证了21次以上,它一定会变成你的信念。 人应该支配习惯,而决不能让习惯支配人,一个人不能去掉他的坏习惯,那简直一文不值。
  • 一个人也要过得好

    一个人也要过得好

    本书围绕当下年轻人最有共鸣的话题“一个人”展开,用50篇文章,讲述了一个单身女孩的成长。作者用形式各异却又直抵内心的温暖笔触,讲述了她自己与自己在人生最美好时光里的蜕变。书中写有她最感动的小故事,知足的小回忆,读过的书,看过的电影,走过的城市,以及经历的过往……
  • 盛世启灵
  • 告诉你一个毕加索的故事

    告诉你一个毕加索的故事

    《告诉你一个毕加索的故事》精选了毕加索人生中富有代表性的事件和故事,以点带面,从而折射出他充满传奇的人生经历和各具特点的鲜明个性。通过阅读《告诉你一个毕加索的故事》。我们不仅要了解他的生活经历,更要了解他的奋斗历程,以及学习他在面对困难、失败和挫折时所表现出来的杰出品质。
  • 天医皇妃

    天医皇妃

    一朝穿越,前主灵力尽失。五年荏苒时间匆匆而过,他们之间那段被世人传颂的佳人之约再起争议,她身上的契约代表着怎样不可违背的命运轮回?那一眼定情带来的无边风月,在岁月蹉跎下愈发如希世之珍,那扑朔迷离的前因后果,在朝夕相处下愈发清晰明了……那年,历经世事。她说:“放下成败,便可争一世风情万种,但我……从不认输。”
  • 台长大人,对你爱爱爱不完!

    台长大人,对你爱爱爱不完!

    余果第N次被台长大人欺负了——唐致深,我要跟你生猴子,呸,孩子!于是,漫漫征途中,余果不仅要升级自己的记者生涯,还得打怪唐致深身边的各种妖艳女人。直到有一天,她移情别恋,摸着鼓起的肚子,眼瞅着台长大人,说:报告台长大人,能否让我带球跑?唐致深:你敢!
  • 佛说大乘善见变化文殊师利化问法经

    佛说大乘善见变化文殊师利化问法经

    本书为公版书,为不受著作权法限制的作家、艺术家及其它人士发布的作品,供广大读者阅读交流。汇聚授权电子版权。
  • 医学纲目

    医学纲目

    本书为公版书,为不受著作权法限制的作家、艺术家及其它人士发布的作品,供广大读者阅读交流。汇聚授权电子版权。