Main Memory Lecture 2 CSCI 1405, CSCI 1301 Introduction to Computer Science Fall 2009.
-
date post
20-Dec-2015 -
Category
Documents
-
view
217 -
download
0
Transcript of Main Memory Lecture 2 CSCI 1405, CSCI 1301 Introduction to Computer Science Fall 2009.
![Page 1: Main Memory Lecture 2 CSCI 1405, CSCI 1301 Introduction to Computer Science Fall 2009.](https://reader031.fdocuments.us/reader031/viewer/2022032704/56649d435503460f94a1ef3b/html5/thumbnails/1.jpg)
Main Memory
Lecture 2CSCI 1405, CSCI 1301
Introduction to Computer ScienceFall 2009
![Page 2: Main Memory Lecture 2 CSCI 1405, CSCI 1301 Introduction to Computer Science Fall 2009.](https://reader031.fdocuments.us/reader031/viewer/2022032704/56649d435503460f94a1ef3b/html5/thumbnails/2.jpg)
Basic Components of a Computer
Input devices Keyboards and pointing devices
(mouse) Output devices
Display or video monitor Printer Speakers
Central Processing Unit (CPU)
![Page 3: Main Memory Lecture 2 CSCI 1405, CSCI 1301 Introduction to Computer Science Fall 2009.](https://reader031.fdocuments.us/reader031/viewer/2022032704/56649d435503460f94a1ef3b/html5/thumbnails/3.jpg)
Basic Components of a Computer
Memory and storage devices
Primary storage: RAM (Random Access Memory) Secondary storage: Storage devices that serve as
long-term repositories for data:Hard disk drivesRecordable CD and DVD drivesTape drivesFlash Drives
![Page 4: Main Memory Lecture 2 CSCI 1405, CSCI 1301 Introduction to Computer Science Fall 2009.](https://reader031.fdocuments.us/reader031/viewer/2022032704/56649d435503460f94a1ef3b/html5/thumbnails/4.jpg)
A Bit About Bits
Information Communication that has value
because it informs Anything that can be
communicated, whether it has value or not
Information comes in many forms
Words, numbers, pictures Sound, movies
![Page 5: Main Memory Lecture 2 CSCI 1405, CSCI 1301 Introduction to Computer Science Fall 2009.](https://reader031.fdocuments.us/reader031/viewer/2022032704/56649d435503460f94a1ef3b/html5/thumbnails/5.jpg)
A Bit About Bits
Computer’s information is digital Bit, or binary digit
The smallest unit of informationCan have one of two values: 1 or 0Can represent words, numbers, pictures, sounds, movies,
codes, or instructions
Byte: a collection of 8 bits
![Page 6: Main Memory Lecture 2 CSCI 1405, CSCI 1301 Introduction to Computer Science Fall 2009.](https://reader031.fdocuments.us/reader031/viewer/2022032704/56649d435503460f94a1ef3b/html5/thumbnails/6.jpg)
A Bit About Bits
Using two symbols all numbers can be represented on a calculator as well as performing arithmetic A calculator translates the touch on the numeric keypad into series of 0s and 1s.
19 will be represented as 00010011.
Imagine 0=false, 1=trueOperations that manipulate true/false called boolean/logic operations
![Page 7: Main Memory Lecture 2 CSCI 1405, CSCI 1301 Introduction to Computer Science Fall 2009.](https://reader031.fdocuments.us/reader031/viewer/2022032704/56649d435503460f94a1ef3b/html5/thumbnails/7.jpg)
A Bit About Bits
Bits as NumbersBinary number system
Binary denotes all numbers with combinations of two digits.
Decimal numbers are automatically converted into binary numbers and vice versa.
Binary number processing is completely hidden from the user.
![Page 8: Main Memory Lecture 2 CSCI 1405, CSCI 1301 Introduction to Computer Science Fall 2009.](https://reader031.fdocuments.us/reader031/viewer/2022032704/56649d435503460f94a1ef3b/html5/thumbnails/8.jpg)
Bit-related terminology
• Byte• Kilobyte (KB)• Megabytes (MB)• Gigabytes (GB)
= 8 bits= 1 Thousand Bytes =1024 Bytes = 210
= 1 Million Bytes = 1,048,576 Bytes = 220
= 1 Billion Bytes = 230
![Page 9: Main Memory Lecture 2 CSCI 1405, CSCI 1301 Introduction to Computer Science Fall 2009.](https://reader031.fdocuments.us/reader031/viewer/2022032704/56649d435503460f94a1ef3b/html5/thumbnails/9.jpg)
The Computer’s Core: The CPU and Memory
The CPU: The Real ComputerCPU (microprocessor)
Interprets and executes the instructions in each program
Supervises arithmetic and logical data manipulations
![Page 10: Main Memory Lecture 2 CSCI 1405, CSCI 1301 Introduction to Computer Science Fall 2009.](https://reader031.fdocuments.us/reader031/viewer/2022032704/56649d435503460f94a1ef3b/html5/thumbnails/10.jpg)
The Computer’s Core: The CPU and Memory
CPU (microprocessor) Communicates with all the other parts of the computer
system indirectly through memoryAn extraordinarily complex collection of electronic circuits Housed along with other chips and electronic components on
the motherboard
![Page 11: Main Memory Lecture 2 CSCI 1405, CSCI 1301 Introduction to Computer Science Fall 2009.](https://reader031.fdocuments.us/reader031/viewer/2022032704/56649d435503460f94a1ef3b/html5/thumbnails/11.jpg)
The Computer’s Memory
RAM (random access memory) Used to store program instructions and data
temporarily Unique addresses and data can be stored in any
location Can quickly retrieve information Will not remain if power goes off (volatile)
![Page 12: Main Memory Lecture 2 CSCI 1405, CSCI 1301 Introduction to Computer Science Fall 2009.](https://reader031.fdocuments.us/reader031/viewer/2022032704/56649d435503460f94a1ef3b/html5/thumbnails/12.jpg)
The Computer’s Memory
RAM (random access memory) Organized in units called cells Cell = 8 bits = 1 Byte Each cell has a unique address (numeric) Read Operation: retrieving the content of a certain
address Write Operation: placing bit pattern in the cell at a
particular address
![Page 13: Main Memory Lecture 2 CSCI 1405, CSCI 1301 Introduction to Computer Science Fall 2009.](https://reader031.fdocuments.us/reader031/viewer/2022032704/56649d435503460f94a1ef3b/html5/thumbnails/13.jpg)
The Computer’s Memory
0
1
2
3
4
5
6
high order bitMost Significant
low order bitleast Significant
![Page 14: Main Memory Lecture 2 CSCI 1405, CSCI 1301 Introduction to Computer Science Fall 2009.](https://reader031.fdocuments.us/reader031/viewer/2022032704/56649d435503460f94a1ef3b/html5/thumbnails/14.jpg)
The Computer’s Memory
ROM (read-only memory) Information stored permanently on a chipContains startup instructions and other permanent data
Flash memory Used for phones, pagers, portable computers, handheld
computers, and PDAs
![Page 15: Main Memory Lecture 2 CSCI 1405, CSCI 1301 Introduction to Computer Science Fall 2009.](https://reader031.fdocuments.us/reader031/viewer/2022032704/56649d435503460f94a1ef3b/html5/thumbnails/15.jpg)
Buses, Ports, and Peripherals
Information travels between components on the motherboard through groups of wires called system buses, or just buses. Connect to expansion slotsConnect to external buses and ports
Slots and ports Make it easy to add external devices, called peripherals.
![Page 16: Main Memory Lecture 2 CSCI 1405, CSCI 1301 Introduction to Computer Science Fall 2009.](https://reader031.fdocuments.us/reader031/viewer/2022032704/56649d435503460f94a1ef3b/html5/thumbnails/16.jpg)
Thank You