47
Inside the Ultimate Machine Monika Gope Lecturer IICT

Inside the Ultimate Machine Monika Gope Lecturer IICT

Embed Size (px)

Citation preview

Page 1: Inside the Ultimate Machine Monika Gope Lecturer IICT

Inside the Ultimate Machine

Monika Gope

LecturerIICT

Page 2: Inside the Ultimate Machine Monika Gope Lecturer IICT

Inside The Computer

04/10/23

2

Page 3: Inside the Ultimate Machine Monika Gope Lecturer IICT

ROM(Read Only Memory)

04/10/23

3

Page 4: Inside the Ultimate Machine Monika Gope Lecturer IICT

ROM• Permanently stores data; non-volatile, never loses its

content.

• ROM holds the instructions that the computer needs to operate.

•  Data stored in ROM cannot be modified, or can be modified only slowly or with difficulty

• Every  computer needs some form of non-volatile storage to store the initial program that runs when the computer is powered on or otherwise begins execution (a process known as bootstrapping, often abbreviated to "booting" or "booting up").

04/10/23

4

Page 5: Inside the Ultimate Machine Monika Gope Lecturer IICT

Types of ROM

• PROM (Programmable Read Only Memory) memories were developed at the end of the 70s by a company called Texas Instruments. These memories are chips comprising thousands of fuses (or diodes) that can be "burnt" using a device called a " ROM programmer", applying high voltage (12V) to the memory boxes to be marked. The fuses thus burnt correspond to 0 and the others to 1. 

04/10/23

5

Page 6: Inside the Ultimate Machine Monika Gope Lecturer IICT

Types of ROM• EPROM (Erasable Programmable Read Only Memory)

memories are PROMs that can be deleted. These chips have a glass panel that lets ultra-violet rays through. When the chip is subjected to ultra-violet rays with a certain wavelength, the fuses are reconstituted, meaning that all the memory bits return to 1. This is why this type of PROM is called erasable. 

• EEPROM (Electrically Erasable Read Only Memory memories are also erasable PROMs, but unlike EPROMs, they can be erased by a simple electric current, meaning that they can be erased even when they are in position in the computer. 

04/10/23

6

Page 7: Inside the Ultimate Machine Monika Gope Lecturer IICT

Processor

04/10/23

7

Page 8: Inside the Ultimate Machine Monika Gope Lecturer IICT

Processor • Computer uses two components : Memory,

Processor .

• Processor is like the brain of the computer. Processor’s power- How many Transistors it has.

• Processor usually consists of one or more special chips called microprocessor.

• Microprocessor is a multipurpose, programmable device that accepts digital data as input, processes it according to instructions stored in its memory, and provides results as output.

04/10/23

8

Page 9: Inside the Ultimate Machine Monika Gope Lecturer IICT

Processor

04/10/23

9

Page 10: Inside the Ultimate Machine Monika Gope Lecturer IICT

Processor

04/10/23

10

• Mother board is the master circuit board.

• Term CPU (Central Processing Unit) refers Processor .

Page 11: Inside the Ultimate Machine Monika Gope Lecturer IICT

Processor

Performances of a Processor depends:

• Number of registers• Word size• Bus speed• Cache size

04/10/23

11

Page 12: Inside the Ultimate Machine Monika Gope Lecturer IICT

How to process Processor

04/10/23

12

Page 13: Inside the Ultimate Machine Monika Gope Lecturer IICT

How Computers Represent Data• Computer processing is performed by transistors,

which are switches with only two possible states: on and off.

• All computer data is converted to a series of binary numbers– 1 and 0. For example, you see a sentence as a collection of letters, but the computer sees each letter as a collection of 1s and 0s.

• If a transistor is assigned a value of 1, it is on. If it has a value of 0, it is off. A computer's transistors can be switched on and off millions of times each second.

04/10/23

13

Page 14: Inside the Ultimate Machine Monika Gope Lecturer IICT

How Computers Represent Data

04/10/23

14

Page 15: Inside the Ultimate Machine Monika Gope Lecturer IICT

How Computers Represent Data

04/10/23

15

To convert data into strings ofnumbers, computers use the binary number system.

Humans use the decimal system (“deci” stands for “ten”).

The binary number system works thesame way as the decimal system, buthas only two available symbols (0 and1) rather than ten (0, 1, 2, 3, 4, 5, 6, 7,8, and 9).

Page 16: Inside the Ultimate Machine Monika Gope Lecturer IICT

How Computers Represent Data• A single unit of data is called a bit, having a value of

1 or 0.

• Computers work with collections of bits, grouping them to represent larger pieces of data, such as letters of the alphabet.

• Eight bits make up one byte. A byte is the amount of memory needed to store one alphanumeric character.

• With one byte, the computer can represent one of 256

• different symbols or characters.

04/10/23

16

Page 17: Inside the Ultimate Machine Monika Gope Lecturer IICT

How Computers Represent Data

04/10/23

17

Page 18: Inside the Ultimate Machine Monika Gope Lecturer IICT

How Computers Represent Data• A text code is a system that uses binary numbers (1s

and 0s) to represent characters understood by humans (letters and numerals).

• An early text code system, called EBCDIC uses eight bit codes, but is used primarily in older mainframe systems.

• In the most common text-code set, ASCII, each character consists of eight bits (one byte) of data. ASCII is used in nearly all personal computers.

• In the Unicode text-code set, each character consists of 16 bits (two bytes) of data.

04/10/23

18

Page 19: Inside the Ultimate Machine Monika Gope Lecturer IICT

How Computers Represent Data• EBCDIC-Extended Binary Coded Decimal

Interchange Code 8 bits, 0-256 Character • ASCII-American Standard Code for

Information Interchange 8 bits, 0-127 Character• Extended ASCII 8 bits, 128-256 Character• Unicode- Unicode World Wide Character

Standard 32 bits, 4 Billion Character

04/10/23

19

Page 20: Inside the Ultimate Machine Monika Gope Lecturer IICT

Example of ASCII Text Code

04/10/23

20

Page 21: Inside the Ultimate Machine Monika Gope Lecturer IICT

How Computers Process Data

04/10/23

21

Page 22: Inside the Ultimate Machine Monika Gope Lecturer IICT

How Computers Process Data

04/10/23

22

Page 23: Inside the Ultimate Machine Monika Gope Lecturer IICT

The Arithmetic Logic Unit• The actual manipulation of data takes place in the

ALU.

• The ALU can perform arithmetic and logic operations.

• The ALU is connected to a set of registers—small memory areas in the CPU, which hold data and program instructions while they are being processed.

• Everything has to be broken down into these few operations.

04/10/23

23

Page 24: Inside the Ultimate Machine Monika Gope Lecturer IICT

ALU Operations List

04/10/23

24

Page 25: Inside the Ultimate Machine Monika Gope Lecturer IICT

Bus• A bus is a path between the components of a

computer. Data and instructions travel along these paths.

• The data bus' width determines how many bits can be transmitted between the CPU and other devices.

• The address bus runs only between the CPU and RAM, and carries nothing but memory addresses for the CPU to use.

• Peripheral devices are connected to the CPU by an expansion bus.

04/10/23

25

Page 26: Inside the Ultimate Machine Monika Gope Lecturer IICT

Bus

04/10/23

26

Page 27: Inside the Ultimate Machine Monika Gope Lecturer IICT

Cache Memory

• Cache memory is high-speed memory that holds the most recent data and instructions that have been loaded by the CPU.

• Cache is located directly on the CPU or between the CPU and RAM, making it faster than normal RAM.

04/10/23

27

Page 28: Inside the Ultimate Machine Monika Gope Lecturer IICT

Cache Memory

04/10/23

28

Page 29: Inside the Ultimate Machine Monika Gope Lecturer IICT

Storage device• Computer needs a place to keep the data and

program files when they are not in use.

• The hardware that writes data to or reads data from a

storage medium is called a storage device.

• RAM is like a work table and storage is like a file cabinet.

• Users often confuse storage with memory.

04/10/23

29

Page 30: Inside the Ultimate Machine Monika Gope Lecturer IICT

Storage device

Distinction between storage and memory:

• There is more room in storage than there is in memory.

• Contents are retained in storage when the computer is turned off, whereas the programs or data you put into memory disappear when you shut down the computer.

• Storage is much slower compared to memory, but also much cheaper than memory.

04/10/23

30

Page 31: Inside the Ultimate Machine Monika Gope Lecturer IICT

Storage device

04/10/23

31

The two primary storage technologies are magnetic and optical.

The primary types of magnetic storage are:

• Diskettes (floppy disks)• Hard disks• High-capacity floppy disks• Disk cartridges• Magnetic tape

Page 32: Inside the Ultimate Machine Monika Gope Lecturer IICT

Storage device

04/10/23

32

The two primary storage technologies are magnetic and optical.

The primary types of optical storage are:

• Compact Disk Read-Only Memory (CD-ROM)• Digital Video Disk Read-Only Memory (DVD-

ROM)• CD-Recordable (CD-R)• CD-Rewritable (CD-RW)• PhotoCD

Page 33: Inside the Ultimate Machine Monika Gope Lecturer IICT

Magnetic Storage Device

04/10/23

33

-How Magnetic Storage Works

• A magnetic disk's medium contains iron particles, which can be polarized—given a magnetic charge—in one of two directions.

• Each particle's direction represents a 1 (on) or 0 (off), representing each bit of data that the CPU can recognize.

• A disk drive uses read/write heads containing electromagnets to create magnetic charges on the medium.

Page 34: Inside the Ultimate Machine Monika Gope Lecturer IICT

Magnetic Storage Devices – Formatting• Before a magnetic disk can be used, it must be

formatted—a process that maps the disk's surface and determines how data will be stored.

• During formatting, the drive creates circular tracks around the disk's surface, then divides each track into sectors.

• The OS organizes sectors into groups, called clusters, then tracks each file's location according to the clusters it occupies.

04/10/23

34

Page 35: Inside the Ultimate Machine Monika Gope Lecturer IICT

Magnetic Storage Devices – Formatting

04/10/23

35

Page 36: Inside the Ultimate Machine Monika Gope Lecturer IICT

Magnetic Storage Devices - How OS finds Data When a disk is formatted, the OS creates four areas on

its surface:• Boot sector – stores the master boot record, a small

program that runs when you first start (boot) the computer

• File allocation table (FAT) – a log that records each file's location and each sector's status

• Root folder – enables the user to store data on the disk in a logical way

• Data area – the portion of the disk that actually holds data

04/10/23

36

Page 37: Inside the Ultimate Machine Monika Gope Lecturer IICT

How OS finds Data

04/10/23

37

Page 38: Inside the Ultimate Machine Monika Gope Lecturer IICT

Magnetic Storage Devices - Hard Disks• Hard disks use multiple platters, stacked on a

spindle. Each platter has two read/write heads, one for each side.

• Hard disks use higher-quality media and a faster rotational speed than diskettes.

• Removable hard disks combine high capacity with the convenience of diskettes.

04/10/23

38

Page 39: Inside the Ultimate Machine Monika Gope Lecturer IICT

Hard Disks

04/10/23

39

Page 40: Inside the Ultimate Machine Monika Gope Lecturer IICT

Hard Disks

04/10/23

40

Page 41: Inside the Ultimate Machine Monika Gope Lecturer IICT

Optical Storage Devices –How Optical Storage Works• An optical disk is a high-capacity storage

medium. An optical drive uses reflected light to read data.

• To store data, the disk's metal surface is covered with tiny dents (pits) and flat spots (lands), which cause light to be reflected differently.

• When an optical drive shines light into a pit, the light cannot be reflected back. This represents a bit value of 0 (off). A land reflects light back to its source, representing a bit value of 1 (on).

04/10/23

41

Page 42: Inside the Ultimate Machine Monika Gope Lecturer IICT

How Optical Storage Works

04/10/23

42

Page 43: Inside the Ultimate Machine Monika Gope Lecturer IICT

Optical Storage Devices –CD-ROM

04/10/23

43

• In PCs, the most commonly used optical storage technology is called Compact Disk Read-Only Memory (CD-ROM).

• A standard CD-ROM disk can store up to 650 MB of data, or about 70 minutes of audio.

• Once data is written to a standard CD-ROM disk, the data cannot be altered or overwritten.

Page 44: Inside the Ultimate Machine Monika Gope Lecturer IICT

Optical Storage Devices –DVD-ROM

04/10/23

44

• A variation of CD-ROM is called Digital Video Disk Read-Only Memory (DVD-ROM), and is being used in place of CD-ROM in many newer PCs.

• Standard DVD disks store up to 9.4 GB of data—enough to store an entire movie. Dual-layer DVD disks can store up to 17 GB.

• DVD disks can store so much data because both sides of the disk are used, along with sophisticated data compression technologies.

Page 45: Inside the Ultimate Machine Monika Gope Lecturer IICT

Ports

04/10/23

45

Page 46: Inside the Ultimate Machine Monika Gope Lecturer IICT

Ports

04/10/23

46

Page 47: Inside the Ultimate Machine Monika Gope Lecturer IICT

04/10/23

47

Education is what remains after one has

forgotten everything he learned in school.

Einstein