DOC PREVIEW
Princeton COS 109 - What's in a computer

This preview shows page 1-2 out of 7 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 7 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 7 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 7 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

What's in a computer?• logical or functional organization: "architecture"– what the pieces are, what they do, how they work– how they are connected, how they work together– what their properties are• physical structure– what they look like, how they are made• major pieces– processor ("central processing unit" or CPU)does the work, controls the rest– memory (RAM = random access memory)stores instructions and data while computer is running– disks ("secondary storage")stores everything even when computer is turned off– other devices ("peripherals")Block diagram of typical laptop/desktopCPU(processor)Memory(RAM)Harddiskmousekeyboarddisplay(and many others)BusCD/DVDnetwork/wirelessCPU• can perform a small set of basic operations ("instructions")– arithmetic: add, subtract, multiply, divide, …– memory access: fetch information from memory, store results back into memory– decision making: compare numbers, letters, …decide what to do next depending on result of previous computations– control the rest of the machinetell memory to send data to display; tell disk to read data from network; ...• operates by performing sequences of simple operations veryfast• instructions to be performed are stored in the same memory as the data is– instructions are encoded as numbers: e,g., Add = 1, Subtract = 2, ...• CPU is a general-purpose device: putting different instructions into the memory makes it do a different task– this is what happens when you run different programsHow fast is fast?• CPU uses an internal "clock" (like a heartbeat) to step through instructions• 900 MHz, 2.4 GHz, etc., is the number of clock ticks per second– 1 Hertz = 1 tick per second; abbreviated 1 Hz–mega = million–giga= billion– 1 MHz = 1 megaHertz = 1 million ticks per second– 1 GHz = 1 gigaHertz = 1 billion ticks per second = 1000 MHz• one instruction (like adding two numbers) might take one, two or several ticks, depending on design of the CPU– might even complete more than one instruction in one tick• very rough approximations: – PC/Mac processors execute about 2 billion instructions/sec– cellphone processors execute about 200 million instructions/secMemory (Random Access Memory = "RAM") • a place to store information while the computer is running– the programs that are running–their data– the operating system (Windows, Mac OS X, Unix/Linux, ...)• volatile: forgets everything when power is turned off• limited (though large) capacity• logically, a set of numbered boxes ("pigeonholes"? mailboxes?)– each capable of storing one byte = 8 bits of informationa small number or a single character like A or part of a larger value– random access CPU can access any location as quickly as any other location012 1GWhat's a bit? What's a byte?• a bit is the smallest unit of information• represents one 2-way decision or a choice out of two possibilities– yes / no, true / false, on / off, M / F, ...• abstraction of all of these is represented as 0 or 1– enough to tell which of TWO possibilities has been chosen– a single digit with one of two values– hence "binary digit"–hence bit• binary is used in computers because it's easy to make fast, reliable, small devices that have only two states– high voltage/low voltage, current flowing/not flowing (chips)– electrical charge present/not present (Flash)– magnetized this way or that (disks)– light bounces off/doesn't bounce off (cd-rom, dvd)• all information in a computer is stored and processed as bits• a byte is 8 bits that are treated as a unitDisks• a place to store information when the power is turned off• usually based on magnetic surfaces, rotating machinery• logical / functional structure: folders (directories) and files– your information: papers, mail, music, web page, …– programs and their data: Firefox, Word, iTunes, …– operating system(s): Windows, MacOS, Unix, Linux, PalmOS, ...– bookkeeping info: where things are physicallyOther views of a disk: Window, UnixOther things• CD-ROM, CD-R, CD-RW; DVD– read-only, recordable, rewritable, ~ 650 MB capacitysame format as audio CD but spins much faster– DVD: typically 4.7 or 8.4 GB• modem– converts info to/from sound for sending by telephone– 56 kilobitsper second (56 Kbps): ~ 5000 characters/second• network interface– connects computer to network, usually Ethernet (as in Dormnet)– Ethernet transfers data at 10-1000 megabitsper second (10 Mbps ~ 1 MB/sec)– wireless is compatible with Ethernet ("wireless Ethernet")802.11b (11 Mbps), 802.11g (55 Mbps), 802.11n (600 Mbps) [max]– DSL and cable modems are Ethernet-compatibleslower than Ethernet (typically 0.5 - 4 Mbps); usually at home– fiber (e.g., Verizon FiOS) might be 10 Mbps down, 2 Mbps up• gadgets ("peripherals") on the bus, especially USBUSB 2.0 is 480 Mbps (max)Functional design is not physical implementation• block diagram is "architectural" or "functional" or "logical" design– gives components, shows how they are connected, maybe what they do• physical construction is how it's built– usually many different ways to build same functional or logical design– will all behave more or less the same (same functions)• important general rule: the logical / functional organization does not describe a physical implementation– logical abstracts away irrelevant physical detailsMotherboard (~1998)2.5" laptop disk2013 freshman offering:Wrapup on components• the logical or functional components of computer hardware• how they fit together, what the numbers measure• some neat Greek/Latin/... prefixes:– (femto, pico), nano, micro, milli, kilo, mega, giga, (tera, peta, exa)• what the basic physical pieces look like• one logical organization can have different physical forms• logical organization hasn't changed much in 60+ years• physical form has changed rapidly for the entire time– many tradeoffs among physical forms (size, weight, power,


View Full Document

Princeton COS 109 - What's in a computer

Download What's in a computer
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view What's in a computer and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view What's in a computer 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?