計(jì)算機(jī)文化基礎(chǔ)雙語(yǔ)課件-Chapter2-computer-hardware_第1頁(yè)
計(jì)算機(jī)文化基礎(chǔ)雙語(yǔ)課件-Chapter2-computer-hardware_第2頁(yè)
計(jì)算機(jī)文化基礎(chǔ)雙語(yǔ)課件-Chapter2-computer-hardware_第3頁(yè)
計(jì)算機(jī)文化基礎(chǔ)雙語(yǔ)課件-Chapter2-computer-hardware_第4頁(yè)
計(jì)算機(jī)文化基礎(chǔ)雙語(yǔ)課件-Chapter2-computer-hardware_第5頁(yè)
已閱讀5頁(yè),還剩86頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、Chapter 2 Computer HardwareHardware SystemSystem unit CPU (program control unit + Arithmetic Logic unit) Memory & Storage (External Memory)InputOutputChapter 2 Computer Hardwar2.1: An Overview2.2 : Microprocessors 2.3 : Memory 2.4 : Storage Devices2.5 : Input and Output DevicesContents2.1: An Overvi

2、ewContentsKM chart of Chapter TwoKM chart of Chapter Two2.1 An Overview of the Computer Hardware鍵盤主機(jī)/System unit鼠標(biāo)電源開(kāi)關(guān)光盤驅(qū)動(dòng)器顯示器軟盤驅(qū)動(dòng)器Whats a personal computer system?What are the components of a typical PC?2.1 An Overview of the ComputSystem UnitKeyboardMouseHard disk driveCD and DVD driversOther stor

3、ageSound systemDisplay system: graphics card monitorNetwork and Internet accessprinterSystem Unit輸入設(shè)備存儲(chǔ)器輸出設(shè)備運(yùn)算器控制器數(shù)據(jù)流控制流 Hardware System輸入設(shè)備存儲(chǔ)器輸出設(shè)備運(yùn)算器控制器數(shù)據(jù)流控制流 HardwaInformation processing cycleInformation processing cycle 2.2: MicroprocessorsWhat is a microprocessor? is an integrated circuit design

4、ed to process instructions P27 of E 2.2: MicroprocessorsWhat is Circuits and chipsWhats a 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 cir

5、cuit elements, such as wires, transistors, capacitors, logic gates, and resistors.(p28 )Circuits and chipsWhats a com Motherboard (circuit board) many chips are housed on motherboard. processor chip;computer memory; system bus; Motherboard (circuit board) pCPUs functions1)Executes instructions to pr

6、ocess data, for example, perform arithmetic, sort list, format document.2)Retrieves instructions and data from RAM, after processing instructions, places the results back into RAM.CPURAMInstructionsDataCPUs functionsCPURAMInstructiProcessor LogicPrograms and instruction sets:How do digital devices p

7、rocess data?The data is manipulated under the control of a computer program.The human-readable version of a program is called source code.Processor LogicPrograms and inHow does source code get converted?The procedure for translating source code into 0s and 1s can be accomplished by a compiler or an

8、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)Digital processingHow does source code get conve“語(yǔ)言”是人機(jī)交流的工具程序是用“語(yǔ)言”寫成的計(jì)算機(jī)可以識(shí)別的“文章”用于編寫計(jì)算機(jī)可以執(zhí)行的程序的語(yǔ)言稱為程序設(shè)計(jì)語(yǔ)言機(jī)器語(yǔ)言機(jī)器指令

9、0 或 1 代碼 與語(yǔ)言習(xí)慣差別很大難以學(xué)習(xí)和記憶依賴機(jī)器的類型匯編語(yǔ)言用助記符代替機(jī)器代碼;用變量代替各類地址克服記憶的難點(diǎn)其他與假期語(yǔ)言類似高級(jí)語(yǔ)言類似數(shù)學(xué)語(yǔ)言、接近自然語(yǔ)言、具有通用性和可移植性、不依賴具體的計(jì)算機(jī)類型“語(yǔ)言”是人機(jī)交流的工具機(jī)器語(yǔ)言機(jī)器指令與語(yǔ)言習(xí)慣差別很大難高級(jí)程序的編譯運(yùn)行方式可執(zhí)行程序編譯程序高級(jí)語(yǔ)言程序目標(biāo)程序連接程序編譯連接Compiler高級(jí)程序的編譯運(yùn)行方式可執(zhí)行程序編譯程序高級(jí)語(yǔ)言程序目標(biāo)程序An interpreter converts and executes one statement at a time while the program is

10、running.執(zhí)行解釋程序高級(jí)語(yǔ)言程序解釋Interpreter高級(jí)程序的解釋運(yùn)行方式An interpreter converts and exWhat does the conversion process produce?Instruction set: collection of preprogrammed activitiesis designed to be general purpose so that programmers can use it in creative ways for the wide variety of tasks performed by all k

11、inds of digital devices.Instruction: each instruction has a corresponding sequence of 0s and 1s. E.g add-00000100Machine language: can be directly executed by the processors circuitryDigital processingWhat does the conversion proceA machine code instruction has two parts: the op code and the operand

12、.Eg: instruction: add 1 00000100 00000001Digital processingOp codeOperandP31 f1-36A machine code instruction has指令的概念指令:計(jì)算機(jī)能夠識(shí)別并執(zhí)行的“操作命令”指令一般由操作碼和操作數(shù)組成操作碼 目標(biāo)操作數(shù) 源操作數(shù)操作碼 操作數(shù)表示功能(操作)表示操作的對(duì)象指令的概念指令:計(jì)算機(jī)能夠識(shí)別并執(zhí)行的“操作命令”操作碼 Components: Program ControlCentral Processing UnitArithmetic LogicUnit (ALU)Main mem

13、ory I/OEquip-mentregisterProcessor logicComponents: Program ControlCeProcessor logicWhat happens when a computer executes an instruction?(p30)Fetch instruction 4.Increment pointer to the next instruction3. Execute instruction2. Interpret instructionProcessor logicWhat happens whCPU ArchitectureALUCo

14、ntrol unitA CPU have two main partsALU performs: arithmetic operations addition, subtraction, multiplication, division; logical operations AND, OR, Exclusive-OR, NOT.CPU ArchitectureALUControl uniCPU Program control unit(程序控制單元) -Control the operation of CPU; Arithmetic and logic unit (ALU) (運(yùn)算器) -P

15、erform data processing; Registers (寄存器組) -Internal storage; CPU interconnection (CPU內(nèi)部總線) -Provides communication among them.CPU Program control unit(程The Control Units function ( p.32) -Retrieves an instruction from RAM and puts it in the instruction register. -The RAM address of the instruction is

16、 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 UnitInstruction pointer Instruction RegisterM1ADD two numberRAMAddress M1Address M2Address M3M2MUL two numberThe

17、 Control Units function ( CPU 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 at tasks such as starting programs, loading large amount of data, printing

18、and scrolling through long document.CPU Performance Factors- 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 different CPUs.CPU Performance Factors- CPU speed

19、is influenced by (Microprocessor 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 megahertz

20、(million of cycles per second or MIPS)(CPU 的主頻);(Microprocessor Clock -If all other specifications are identical, higher MHz ratings faster processing -The original IBMPC is 4.77MHz, todays exceed GHz. -If all other specifications FSBFront Side Busrefers to the circuitry that transports data to and

21、from the microprocessor.A fast front side bus moves data quickly and allows the processor to work at full capacity.200MHz1250MHzFSBFront Side Busrefers to thWord Size(字長(zhǎng)) 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

22、of data line in the bus; For example, a CPU with a 8-bit word size is referred to as an 8-bit processor.-Larger word size process more data in each instruction cycle increased performanceWord Size(字長(zhǎng))-The first microcomputers contained 8-bit microprocessor, but todays computers contain 32-bit or 64-

23、bit microprocessor.-The first microcomputers contCache (高速緩存) Sometimes called “RAM cache” or “cache memory”; -It is special high speed memory 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 requi

24、red data is in the cache; -If all other factors are same, cache means faster processing. Cache (高速緩存)Instruction Set (P.31) -Instruction set is the complete collection of instructions which are used by a particular type of central processor. -Two of the main approaches to the design of microprocesso

25、rs are the Complex Instruction Set Computer(CISC) and the Reduced Instruction Set Computer(RISC).Instruction Set (P.31)Number of coresMore cores usually produce faster performance multiple cores can run multiple instructions at the same timeNumber of coresMore cores usua Pipelining processing -Compu

26、ters 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 the previous instruction; - Pipelining speeds up processing. Pi

27、pelining processingControlUnitRegisters(Instruction2)Accumulator(Instruction1)RAMInstruction1Instruction2Instruction3The controlUnit decodesInstruction3The data for Instuction2 moves into a registerInstruction1 is completed1234ControlRegistersAccumulatorRAM Parallel Processing-A computer has more th

28、an 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 job m

29、ay be split into tasks each of which may be processed by any available processor. Parallel ProcessingProcessor1Processor2Processor3ControlUnit(4)Data (1)Instruction(2)(3)ResultProcessor1Processor2Processor31)Instructions are queued and waiting to enter the CPU.2)The control unit sends an instruction

30、 to the next available processor.3)Each processors completes its assigned instruction. Because the processors finish at different times, the results might not be in sequence.4)The result are places in the correct order out of the CPU.1)Instructions are queued and Data bus: electronic pathway or circ

31、uit on which data travel from one location to another within the computerAddress bus:Control bus:Data bus:4 major types of memory: random access memory (RAM)read-only memory (ROM)EEPROM cache memoryvirtual memory2.3 Memory4 major types of memory: 2.3 Mrandom access memory (RAM)Capacitors hold electr

32、onic signal for data RAM Address most RAM is volatile(易失性)random access memory (RAM)1) random access memoryCapacity Measured in megabyte 256M-2G Speed today 8 nanoseconds (one billionth of second)(毫微秒).Configuration(構(gòu)造) RAM is typically configured as small circuit boards called DIMMs (dual in-line m

33、emory modules).1) random access memory 2) Read-only Memory(ROM) -The instructions in ROM are permanent; -ROM contains a small set of instructions called the ROM BIOS(basic input/output system), tell the computer how to access the disk drives and other peripheral devices; -When the computer is just t

34、urned on, RAM is empty, the CPU executes the instructions in ROM BIOS that search the disk drive for the main operating system files, then load the files into RAM so that they can be used during the reminder of the computing session; 2) Read-only Memory(ROM)-Software in ROM is fixed during manufactu

35、re, but there are other ways of putting programs and data into ROM;-Including PROM, EPROM, etc. PROM(Programmable Read-only Memory) is a type of ROM which is manufactured as an empty storage array and is later permanently programmed by the user. -Software in ROM is fixed duri EPROM(Erasable PROM) is

36、 a type of PROM whose data can be erased by a special process so new data can be written as if it were a new PROM.EEPROM(Electrically Erasable PROM) - no power to hold data - replace CMOS technology(require a small battery) EPROM(Erasable PROM) is a ty3) Cache Memorycache is a used by the central pr

37、ocessing unit (CPU) to reduce the average time to access memorysmaller, faster first check in the cache When the processor needs to read from or write to a location in main memory3) Cache Memorycache is a4) Virtual Memory(虛擬內(nèi)存) -A computers ability to use disk storage to simulate RAM is called virtu

38、al memory; -Allows computers without sufficient amounts of real memory to run large programs, data files; -Not as fast as RAM. Disk access time is 10 milliseconds; -Data becomes inaccessible if power fails, because the instructions that direct the computer to the location of virtual memory are store

39、d in RAM.4) Virtual Memory(虛擬內(nèi)存)Memory HierarchyMemory HierarchyHow computers store mass data? Study storage technology: electronic, magnetic, optical -data storage life spanUse popular software utilities to locate, organize, change, search the data 2.4: Storage Devices (external storage)How compute

40、rs store mass data?1) Storage basicsphysical storage - storage medium (media) logical storage - files , folders the data for a single file can be scattered all over the surface of storage medium storage terminology 1) storage medium: substance that contains data 2) storage device: mechanical apparat

41、us that record and retrieve data from storage medium. 3) read, load, open write, save 2.4 : Storage Devices 1) Storage basics2.4 : Storage2.4.2 Magnetic Storage Technology magnetic storage (hard disk, floppy disk, tape storage) (P36 of E.) mechanism: store data by magnetizing microscopic particles o

42、n a disk or tape surface.2.4.2 Magnetic Storage Technolflexibility for editing data and reusing areas of storage medium.data maintenance : 1) place magnetic medium in a clean environment. 2) recopy the data every 2 years. 2.4.2 Magnetic Storage Technology2.4.2 Magnetic Storage TechnolWhy are hard di

43、sk drives so popular?1) lots of storage capacity2) fast access to files3) economical 2.4.2 Magnetic Storage Technology2.4.2 Magnetic Storage TechnolHard Disk Storage A hard disk platter is a flat, rigid disk made of aluminum or glass and coated with a magnetic oxide. A hard disk is one or more platt

44、er and their associated read-write heads, typically 3 inches in diameter. Several hundreds GB capacity (40 500GB); Random access; Continually in motion, so faster access to file than floppy (6 to 11 ms).Hard Disk Storage扇區(qū)讀寫磁頭柱面磁道各盤片上同一位置的磁道構(gòu)成一個(gè)柱面。cylinder扇區(qū)讀寫磁頭柱面磁道各盤片上同一位置的磁道構(gòu)成一個(gè)柱面。cyFloppy Disk St

45、orage p.68 - 3 inch, 5 inch, zip disk; -Disk may have data stored on one side or on both sides (DSD). - 3 high density 1.44MB ; Floppy Disk Storage p.68 - Takes about 0.5s (3 inch) to spin it to maximum speed and then find a specific sector that contains data; -A zip drive(100MB) is about 20 times f

46、aster; - Random access; - Newer technologies are decreasing the use of floppy disks, using CD-ROM or DVD-ROM instead. - Takes about 0.5s (3 inch) CD(compact disc) technology was originally designed to hold 74 minutes of recorded musicDVD(digital video disc or digital versatile disk) is a variation o

47、f CD technology, 4.7Goptical storage (CD and DVD) (P69 of E.) stores data as microscopic light and dark spots on the disk surface1) pits(凹) and lands(凸) of medium is interpreted as 1s and 0s. 2.4.3 Optical Storage technologyDark spots -pits - 1 CD(compact disc) technology wa optical technology (CD a

48、nd DVD) 2) use a low-power laser beam to read data 3) less susceptible than magnetic storage 易受影響2.4: Storage Devices 2.4.3 Optical Storage technology optical technology (CD and storage deviceThe criteria(標(biāo)準(zhǔn)) for comparing storage devices: Versatility (多面性) -Devices can access data from several diff

49、erent media.Durability(耐用性) -More durable technologies are less susceptible to damage that could cause data loss.Capacity -Higher capacity is almost always preferred.Speed -Measured by its access time and data transfer rate. Fast storage devices are preferred.storage device where the speed is determ

50、ined by: Access time average time it takes a computer to locate data on the storage medium and read it.(1)Random access (also called “direct access”) “Jump” directly to the track or sector that holds the requested data.(2)Sequential access Read through the data from the beginning of the tape. Data t

51、ransfer rate the amount of data that a storage device can move from the storage medium to the computer per second. where the speed is determin CD-ROM Technology-CD-ROM(Compact Disc Read-only Memory) contains data when it was manufactured. -Holds up to 680MB;-Read-only;-Not susceptible to humidity,fi

52、ngerprints,dust or magnets;-relatively inexpensive to manufacture, make it an ideal way for SW publishers to distribute large programs and data files.-The speed has increased. CD-ROM TechnologyCD-R (compact disc-recordable)-Uses a CD-R drive, recording data on CD-R disks;-Allow to record data in mul

53、tiple sessions;-Most of todays optical drives provide multi session support, but not that manufactured before 1998;-Slow, take from 20 to 60 minutes to record a full CD-R;-You cannot delete or change data once it has been recorded.-The disks produced on a CD-R device can be used on CD-ROM or DVD dri

54、ve.CD-R (compact disc-recordable)CD-RW (compact disc-rewritable)-Allows you to write data on a CD-RW disks, then change that data;-Most of todays optical drives now read CD-RW disk;-Process of accessing, saving and modifying data on CD-RW disk is relatively slow. It is not yet an acceptable substitu

55、te for a hard disk.CD-RW (compact disc-rewritable DVD (digital video disc) Being designed to provide enough storage capacity for a full-length movie; Like CD-ROM, DVD-ROM does not allow you to add or change the data on the disk, but DVD-R, DVD-RW do. 4.7GB storage; DVD drive can read data from CD-RO

56、M, CD-R and CD-RW disks, but DVD disk cannot be read by CD-ROM, CD-R or CD-RW drives; Prediction: eventually these devices will be replaced by a single DVD device. DVD (digital video disc) What is solid state storage? Stores data in erasable, rewritable circuitryFlash memoryWidely used in portable c

57、onsumer devicesdigital cameras, MP3, cell phonesPortable , fast access to dataideal for mobile devices and transporting data2.4: Storage Devices 2.4.4 Solid State Storage What is solid state storage? How does solid state storage work?gridwork or circuitryTransistors (晶體管) act as gatesgates open- “1”

58、bitvery litter power to open or close the gateideal for battery-operated devices (digital cameras)Non-volatile (chip retains the data)Fast access to dataDownside Capacity (less than), cost (higher than that for magnetic or optical storage)2.4: Storage Devices 2.4.4 Solid State StorageHow does solid

59、state storage wWhat is a USB flash drive?USB flash drives are often designed with different casesWhat is a USB flash drive?USB What is a USB flash drive?A USB flash drive is a portable storage device that plugs directly into a computers USB port using a built-in connector(Figure 2-16).USB flash driv

60、es have capacities ranging from 16MB to 8GB.Maximum data transfer speeds of about 100Mbps most commonly operate in the range of 18-28 Mbps2.4: Storage Devices 2.4.4 Solid State Storage What is a USB flash drive?2.4Advantages and disadvantagesFloppy diskCD-RWDVD+RWFlash driveHard drive(internal)Hard

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論