计算机文化基础双语课件-Chapter2-computer-hardware.ppt
- 【下载声明】
1. 本站全部试题类文档,若标题没写含答案,则无答案;标题注明含答案的文档,主观题也可能无答案。请谨慎下单,一旦售出,不予退换。
2. 本站全部PPT文档均不含视频和音频,PPT中出现的音频或视频标识(或文字)仅表示流程,实际无音频或视频文件。请谨慎下单,一旦售出,不予退换。
3. 本页资料《计算机文化基础双语课件-Chapter2-computer-hardware.ppt》由用户(晟晟文业)主动上传,其收益全归该用户。163文库仅提供信息存储空间,仅对该用户上传内容的表现方式做保护处理,对上传内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知163文库(点击联系客服),我们立即给予删除!
4. 请根据预览情况,自愿下载本文。本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
5. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007及以上版本和PDF阅读器,压缩文件请下载最新的WinRAR软件解压。
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 计算机 文化 基础 双语 课件 Chapter2 computer hardware
- 资源描述:
-
1、 Hardware System System unit CPU(program control unit+Arithmetic Logic unit)Memory&Storage(External Memory)Input Output 2.1:An Overview 2.2:Microprocessors 2.3:Memory 2.4:Storage Devices 2.5:Input and Output DevicesKM chart of Chapter TwoWhats a personal computer system?What are the components of a
2、typical PC?System Unit Keyboard Mouse Hard disk drive CD and DVD drivers Other storage Sound system Display system:graphics card monitor Network and Internet access printer Information processing cycleWhat is a microprocessor?is an integrated circuit designed to process instructions P27 of E Whats a
3、 computer chip?the terms computer chip,microchip,and chip originated as technical jargon for integrated circuit.integrated circuit is an super-thin slice of semiconducting material packed with microscopic circuit elements,such as wires,transistors,capacitors,logic gates,and resistors.(p28)Motherboar
4、d(circuit board)many chips are housed on motherboard.processor chip;computer memory;system bus;CPUs functions1)Executes instructions to process data,for example,perform arithmetic,sort list,format document.2)Retrieves instructions and data from RAM,after processing instructions,places the results ba
5、ck into RAM.CPURAMInstructionsDataPrograms and instruction sets:How do digital devices process data?The data is manipulated under the control of a computer program.The human-readable version of a program is called source code.How does source code get converted?The procedure for translating source co
6、de into 0s and 1s can be accomplished by a compiler or an interpreter.A compiler converts all the statements in a program in a single batch,and the resulting collection of instructions,called object code,is placed in a new file.(p30 f1-34)“语言”是人机交流的工具 程序是用“语言”写成的计算机可以识别的“文章”用于编写计算机可以执行的程序的语言称为程序设计语言
7、机器语言机器语言机器指令机器指令0 0 或或 1 1 代码代码 与语言习惯差别很大难以学与语言习惯差别很大难以学习和记忆依赖机器的类型习和记忆依赖机器的类型汇编语言汇编语言用助记符代替机器代用助记符代替机器代码;用变量代替各类码;用变量代替各类地址地址克服记忆的难点其他与假期克服记忆的难点其他与假期语言类似语言类似高级语言高级语言类似数学语言、接近自然语言、具有通用性和可移植类似数学语言、接近自然语言、具有通用性和可移植性、不依赖具体的计算机类型性、不依赖具体的计算机类型可执行程序可执行程序编译程序编译程序高级语言程序高级语言程序目标程序目标程序连接程序连接程序编译编译连接连接Compiler
8、 An interpreter converts and executes one statement at a time while the program is running.执行执行解释程序解释程序高级语言程序高级语言程序解释解释Interpreter What does the conversion process produce?Instruction set:collection of preprogrammed activitiesis designed to be general purpose so that programmers can use it in creati
9、ve ways for the wide variety of tasks performed by all kinds of digital devices.Instruction:each instruction has a corresponding sequence of 0s and 1s.E.g add-00000100 Machine language:can be directly executed by the processors circuitry A machine code instruction has two parts:the op code and the o
10、perand.Eg:instruction:add 1 00000100 00000001Op codeOperandP31 f1-36 指令:计算机能够识别并执行的“操作命令”指令一般由操作码和操作数组成操作码操作码 目标操作数目标操作数 源操作数源操作数操作码操作码 操作数操作数表示功能(操作)表示功能(操作)表示操作的对象表示操作的对象Program ControlCentral Processing UnitArithmetic LogicUnit(ALU)Main memory I/OEquip-mentregisterProcessor logic What happens whe
11、n a computer executes an instruction?(p30)1.Fetch instruction 4.Increment pointer to the next instruction3.Execute instruction2.Interpret instructionCPU ArchitectureALUControl unitA CPU have two main partsALU performs:arithmetic operations addition,subtraction,multiplication,division;logical operati
12、ons AND,OR,Exclusive-OR,NOT.Program control unit(程序控制单元)(程序控制单元)-Control the operation of CPU;Arithmetic and logic unit(ALU)(运算器)(运算器)-Perform data processing;Registers (寄存器组)寄存器组)-Internal storage;CPU interconnection(CPU内部总线)内部总线)-Provides communication among them.The Control Units function(p.32)-R
13、etrieves an instruction from RAM and puts it in the instruction register.-The RAM address of the instruction is kept in the instruction pointer.-When the instruction has been executed,the address in the instruction pointer changes to the RAM address of the next instruction to be executed.Control Uni
14、tInstruction pointer Instruction RegisterM1ADD two numberRAMAddress M1Address M2Address M3M2MUL two numberCPU Performance Factors-Moore law-“A chain is only as strong as its weakest link”.A high-performance processor with a slow hard disk,no disk cache,and a small amount of RAM is likely to be slow
15、at tasks such as starting programs,loading large amount of data,printing and scrolling through long document.-CPU speed is influenced by clock speed,bus speed,word size,cache size,instruction set,number of cores,and processing techniques.Specifications for these factors allow you to compare differen
16、t CPUs.CPU Performance FactorsMicroprocessor Clock microprocessor clock-a timing device that sets the pace for executing instructionsMegahertz(MHz)-a million cycles per secondGigahertz(GHz)-a billion cycles per second-Instruction cycle(the time to complete an instruction cycle)is measured in megaher
17、tz(million of cycles per second or MIPS)(CPU 的主频);-If all other specifications are identical,higher MHz ratings faster processing-The original IBMPC is 4.77MHz,todays exceed GHz.refers to the circuitry that transports data to and from the microprocessor.A fast front side bus moves data quickly and a
18、llows the processor to work at full capacity.200MHz1250MHzWord Size(字长)(字长)The number of bits that the CPU can manipulate at one time.-Word size is based on the size of the register in CPU and the number of data line in the bus;For example,a CPU with a 8-bit word size is referred to as an 8-bit proc
19、essor.-Larger word size process more data in each instruction cycle increased performance-The first microcomputers contained 8-bit microprocessor,but todays computers contain 32-bit or 64-bit microprocessor.Cache (高速缓存高速缓存)Sometimes called“RAM cache”or “cache memory”;-It is special high speed memory
20、 that speeds access to data from RAM.-As you begin a task,the computer loads the possible data into the cache area.The CPU first checks to see if the required data is in the cache;-If all other factors are same,cache means faster processing.Instruction Set (P.31)-Instruction set is the complete coll
21、ection of instructions which are used by a particular type of central processor.-Two of the main approaches to the design of microprocessors are the Complex Instruction Set Computer(CISC)and the Reduced Instruction Set Computer(RISC).More cores usually produce faster performance multiple cores can r
22、un multiple instructions at the same time Pipelining processing-Computers with a single processor execute instructions“serially”,that is,one instruction at a time.Instruction cycle fetch-decode-execute-output-Pipelining technology:the processor can began executing an instruction before it completes
23、the previous instruction;-Pipelining speeds up processing.ControlUnitRegisters(Instruction2)Accumulator(Instruction1)RAMInstruction1Instruction2Instruction3The controlUnit decodesInstruction3The data for Instuction2 moves into a registerInstruction1 is completed1234 Parallel Processing-A computer ha
24、s more than one processor and can execute multiple instructions at the same time;This is called parallel processing;-A computer that is capable of parallel processing is called a parallel computer or“Non-von Neumann machine”;-It is the simultaneous use of several processors to perform a single job.A
25、 job may be split into tasks each of which may be processed by any available processor.Processor1Processor2Processor3ControlUnit(4)Data (1)Instruction(2)(3)Result1)Instructions are queued and waiting to enter the CPU.2)The control unit sends an instruction to the next available processor.3)Each proc
展开阅读全文