登陆注册
27082000000010

第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).

同类推荐
  • 说出日本人的每一天:日语会话4000句

    说出日本人的每一天:日语会话4000句

    本书共分13个单元,涵盖工作、学习和生活中的方方面面,根据不同主题中的关键词衍生出4000句日语会话,内容丰富实用且新颖,语言生动形象且地道。因为每句会话都有其关键词,所以读者可以通过关键词快速方便地检索到所需要的词句,并通过关键词进行记忆,在阅读本书的过程中同时提升词汇量和会话能力,日语能力也得以短时间内突飞猛进。
  • 儿子和情人

    儿子和情人

    矿工瓦尔特原本性格开朗,充满活力,后因酗酒而日渐沉沦。妻子格特鲁德失望之余,转而将希望寄托在两个儿子身上,长子威廉又不幸早夭,遂对次子保罗产生了强烈的感情。面对情感变态的母亲,以及两个各有其不同恋爱观的女友,年轻的保罗一时颇感迷惘。
  • 美丽英文:那些触动我心扉的故事

    美丽英文:那些触动我心扉的故事

    每一次阅读,都犹如自我的映照,每一次回味,都会有别样的感悟。人生最好的启示,皆来自于生活中的故事。
  • 一本书读懂消失的文明:英汉对照

    一本书读懂消失的文明:英汉对照

    《一本书读懂消失的文明(英汉对照)》主要内容包括世界上已经消失的14大古代文明,它们是古希腊文明、古罗马文明、古埃及文明、古巴比伦明、古印度文明、奥尔梅克文明、印加文明、玛雅文明、阿兹特克文明、吴哥文明、波斯波利斯文明、蒲甘文明、楼兰古国文明。曾经的它们抑或奇特璀璨,抑或神奇飘渺,抑或深蕴着乡土文化,抑或笼罩着城市风采,这些早已逝去的文明却留下了醉人的印记,带领着我们走进古老神秘的文明探索之旅。
  • 中小学生必读丛书:鲁滨逊漂流记

    中小学生必读丛书:鲁滨逊漂流记

    本书是被称为“现代小说之父”的英国著名作家丹尼尔·笛福的代表作。在西方文学史上,鲁滨孙的形象众所周之,他航海遇险,一个人漂流到南美洲某荒岛,靠着双手和工具,造房子,修田地、种粮食,养牲畜,还从土著的刀下救了一个人,取名礼拜五,收为自己的奴隶……鲁滨孙用28年的时间把荒岛建设成为一个世外桃源,最后又奇迹般地回到欧洲,成为巨富。
热门推荐
  • 时尚先锋

    时尚先锋

    新书《穿越东晋末年》简介:淝水之战的硝烟早已散尽,昔日不可一世的前秦大帝国也已分崩离析!北国大地,拓跋氏正在快速崛起,慕容氏已是穷途末路,羌族姚兴占据关中,赫连勃勃潜伏漠北窥伺中原,而江东地面,士族日渐衰微,寒门蠢蠢欲动,司马氏在作着垂死挣扎,孙恩、卢循、徐道覆将祸乱东南,桓玄、刘裕也将相继踏入历史舞台,一场改朝换代的风暴正在蕴酿当中!值此乱世,枪下亡魂卫风魂穿东晋,他又将给天下带来怎样的变数?
  • 天上掉下个打工妹

    天上掉下个打工妹

    大约每个女生都有过“灰姑娘”的梦想?但是童话里的灰姑娘总是那么悲惨,那么可怜,好像被王子看上之前,都只能过着悲惨的生活。此篇的灰姑娘却又不同的命运……
  • 一世情殇换你武媚一生

    一世情殇换你武媚一生

    万里江山不过云烟过眼,金銮大殿也不过是轻描淡写。锦秀山河中你笑嫣如花,然而,你又可知命远的魔掌早已伸向你的喉径。尽管后世王朝中男人们为了维护自己的统治权而对你唇字诛讥,但是在历史的舞台上你依旧是光彩夺目。这一代女皇的称号,有多少是无奈多少是你原本就已预谋已久的,又或是这一步一个脚印都只是你顺着历史的巨轮而留下的,是喜是悲,是乐是忧,都留给后人众说纷纭,你也不过武媚一生罢了…(此文纯属虚构,并不是真实历史!!!!)
  • 长门酱的随笔之陈晓的日常

    长门酱的随笔之陈晓的日常

    是不是对陈晓这个名字很熟悉?没错,这里就是陈晓君的前传,讲述他的无节操往事
  • 异世机遇记

    异世机遇记

    一个小白,踏入未知领域所发生的一些故事!
  • 英雄联盟之神话

    英雄联盟之神话

    带领一只王者之师连续4年夺得英雄联盟世界总决赛冠军的少年,在众多荣誉加身后选择了回国,一边陪着自己的未婚妻完成学业,一边带领中国电子竞技走向世界巅峰的故事。
  • 错位青春:年少初念

    错位青春:年少初念

    ①:“不哭了,嗯?”他柔柔的安慰着在自己怀里哭得梨花带雨的她。“5555……”见她没有要停下来的意思,他微一皱眉,捧起她的小脸吻了上去……嗯,不哭了,乖。②:“明寻,你家思思被‘围攻’了。”“什么?”“思思,被围攻了……”“嗯?你再说一遍?”“思……您家思哥被围攻了,脱不了身,需寻哥您前去解围!”“嗯,这还差不多。”说完丢下笔就往外走,身后来通报的小弟抹了抹额头上后知后觉冒出来了冷汗。一转身,吓了一个酿跄。叶明寻还站着门口看着他,目光冷得渗人。“在哪儿?”“……哦!篮球场!”“呵呵,看来我家思思的魅力还是太强。”说完,踱步离去。留下小弟一个人在哪里抽嘴角(甜宠文,强力不保证粘不掉你的牙~)
  • 崆峒山文化研究论文集2007年卷

    崆峒山文化研究论文集2007年卷

    文章讲述的是:崆峒文化价值的多维性与多层次性,关于崆峒文化研究的一些思考程金城,崆峒华夏远古文化之源刘亚民刘启文等内容。
  • 天行

    天行

    号称“北辰骑神”的天才玩家以自创的“牧马冲锋流”战术击败了国服第一弓手北冥雪,被誉为天纵战榜第一骑士的他,却受到小人排挤,最终离开了效力已久的银狐俱乐部。是沉沦,还是再次崛起?恰逢其时,月恒集团第四款游戏“天行”正式上线,虚拟世界再起风云!
  • 仙门遍地是奇葩

    仙门遍地是奇葩

    原来仙门竟是这般不以为耻,当真是脸皮厚到极致。师傅喜欢徒弟,徒弟却为魔界鬼祭哭得死去活来。好一个郎艳独绝,遗世独立的灵澈仙人。又好一个不知羞耻,仙门之辱的徒弟。不愧是仙门之境,遍地奇葩,魔为仙成仙,仙为魔堕魔;不疯不魔,不魔不仙(ps:纯属瞎七八扯,毫无逻辑。)