• Tidak ada hasil yang ditemukan

INTRODUCTION TO COMPUTING

N/A
N/A
Protected

Academic year: 2025

Membagikan "INTRODUCTION TO COMPUTING"

Copied!
9
0
0

Teks penuh

(1)

INTRODUCTION TO COMPUTING

CPIT 201 WEEK 12 LECTURE 1

Faculty of Computing and Information Technology . Rabegh

(2)

Chapter 5

Computer Organization Computer Organization

Faculty of Computing and Information Technology . Rabegh

(3)

Program Execution:

Today, Today, generalgeneral--purpose computerspurpose computers use a use a set of instructions called a

set of instructions called a programprogram to to process data. A computer executes the process data. A computer executes the program to create output data from

program to create output data from program to create output data from program to create output data from input data. Both the program and the input data. Both the program and the data are stored in memory.

data are stored in memory.

Faculty of Computing and Information Technology . Rabegh

(4)

Machine Cycle

• The CPU uses repeating machine cycles to execute instructions in the program, one by one, from beginning to end. A simplified cycle can consist of three simplified cycle can consist of three phases:

1.Fetch

2.decode 3.execute

Faculty of Computing and Information Technology . Rabegh

(5)

The steps of a machine cycle

Faculty of Computing and Information Technology . Rabegh

(6)

Fetch:

The control unit orders the system to copy the next instruction into instruction register in the CPU.

Decode:

When the instruction is in the instruction register, it When the instruction is in the instruction register, it is decoded by the control unit, the result of this

decode is the binary code for some operation that the system will perform.

Faculty of Computing and Information Technology . Rabegh

(7)

• Execute:

After the instruction is decoded, the control unit sends the task order to a

component in the CPU. For example, the control unit can tell the system to load a data item from memory or the CPU can data item from memory or the CPU can tell the ALU to add the content of two input registers and put the result in an output register.

Faculty of Computing and Information Technology . Rabegh

(8)

Simple Computer

• In order to explain the

architecture of computers and their instruction processing, we their instruction processing, we introduce a simple computer.

Faculty of Computing and Information Technology . Rabegh

(9)

Components of a simple computer.

Faculty of Computing and Information Technology . Rabegh

Referensi

Dokumen terkait

Every computer contains certain elements which in brief include the CPU or central processing unit or the brain of the desktop computer, the memory where information is stored,

Organisasi Prosesor (Single- bus) Y Z MDR MAR PC TEMP R(n-1) R0 IR Instruction Decoder ALU Carry-in Add Sub XOR Address lines Data lines Control lines Memory bus ALU control

The machine code generated by the assembler can be tested either in the hardware simulator or in the CPU emulator.... Assembly

The machine code generated by the assembler can be tested either in the hardware simulator or in the CPU emulator.... Assembly

Programs and their Execution Program in memory : sequence of instructions known to CPU The processorCPU works as follows, Step A: pick next instruction in the sequence.. Step B: get

Hardware Basics Output CPU Devices Input Devices Main Secondary Memory Memory Figure 1.1: Functional view of a computer include mobile computing, networking,

Why Use Parallel Computing  Save time –many processors work together  Solve Larger Problems – larger than one processor’s CPU and memory can handle  Provide Concurrency – do

• Each layer in TCP/IP protocol has specific function when a message is transferred from one device it travels through the different the layers until it reaches the different the layers