1 / 32

Computer Operations

Computer Operations. Part 2. Many, Many Simple Operations. Computers have small instr. set Decoder may only recognize 100 instr About 20 kinds of operations All other operations must be reduced to these. Cycling the Fetch/Execute Cycle. ADD is average complexity instr.

fala
Télécharger la présentation

Computer Operations

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Computer Operations Part 2

  2. Many, Many Simple Operations • Computers have small instr. set • Decoder may only recognize 100 instr • About 20 kinds of operations • All other operations must be reduced to these

  3. Cycling the Fetch/Execute Cycle • ADD is average complexity instr. • CPUs execute many such instr / sec • MIPS • FLOPS, GFLOPS, TFLOPS

  4. The Computer Clock • CPUs are instruction execution engines, synchronized by clock • Clock speed measured in ticks / sec (Hz) • Clock cycles are short • 2 GHz => cycle time of 0.5 ns

  5. Standard Prefixes

  6. One Cycle per Clock Tick • Perspective • Light travels about 1 ft / ns • CPUs try to start an instr. on each clock tick

  7. One Cycle per Clock Tick • CPUs use pipelining • Overlap instr. execution • Laundry analogy

  8. Schematic Fetch/Execute Cycle

  9. A Computer’s View of Software

  10. Computer’s View of Software • Executable program • Binary object file • Sequence of 4-byte groups(words) • Can be millions of words long

  11. Computer’s View of Software • CPU executes program by • copying binary instructions into RAM • interpreting them using Fetch/Execute Cycle

  12. Assembly language • CPU only “speaks” machine language (executes binary object files) • Near impossible to write binary code • What to do? • Need higher-level language and translation • Assembly => object code • E.g.: ADD 15, 21, 19 => 010011100…001

  13. Assembly language • Assembly language uses letters and #s • Computer scans assembly code • Looks up words in table to convert to binary • Converts #s to binary • Assembles binary pieces into object file

  14. Programming Languages • Most programs written in High-level programming language • Translated (compiled) to assembly • Assembled to binary

  15. JavaScript Fragment

  16. Operating Systems • Operating system (OS) • Manages resources • Most popular OS’s? • Microsoft Windows • Apple's Mac OS X • Unix / Linux

  17. Operating Systems • Sits atop h/w • Apps • OS • Hardware • Responsible for • Booting • Process, memory, file, and device management

  18. Programming • Programmers utilize s/w stack • Software stack • Layers of software of increasing complexity • Higher-level abstractions toward top

  19. Integrated Circuits (ICs) • IC • “Chip” • Electrical components integrated into silicon • Smaller = faster • Speed of light

  20. Photolithography • Photolithography: process of making IC • Si wafer covered with light-sensitive photoresistand patterned mask • Exposed to uv light which causes open areas to harden (unexposed areas are washed away leaving pattern) • Hot gases etch original layer • When remaining photoresist is removed, the pattern from mask remains

  21. Making a CPU • Intel: From Sand to Silicon – the Making of a Chip • http://newsroom.intel.com/docs/DOC-2476#

  22. How Semiconductor Technology Works • Silicon is semiconductor • Making chip entails controlling conductivity

  23. How Semiconductor Technology Works Searching for red AND giant

  24. On-Again, Off-Again • Two switches can compute logical AND • Other combinations of switches in ALU perform • AND • OR • NOT • etc.

  25. Transistors • Transistor • Controllable switch • Key component in IC

  26. Big Picture: Running App • Start with information-processing task • Task is performed by a program • Program consists of instr. • Instr. were written in high-level language, but have been compiled and assembled into binary code • CPU uses Fetch/Execute cycle to run instr.

  27. Summary • Computer • CPU • ALU • CU • Memory • Storage • I/O • Fetch/Execute Cycle

  28. Summary • Machine instructions • Programming languages • Software stack • Integrated circuits

  29. Quiz  • What part of the CPU is responsible for arithmetic and logical operations? • Memory is a sequence of cells, each of which can hold 1 ___________. • The last stage of the Fetch/Execute cycle is ____________.

More Related