M. Mateen Yaqoob The University of Lahore Spring 2014

Slides:



Advertisements
Similar presentations
BASIC COMPUTER ORGANIZATION AND DESIGN
Advertisements

Basic Computer Organization
M. Mateen Yaqoob The University of Lahore Spring 2014.
PART 5: (2/2) Processor Internals CHAPTER 15: CONTROL UNIT OPERATION 1.
ARITHMETIC LOGIC SHIFT UNIT
Basic Computer Organization, CPU L1 Prof. Sin-Min Lee Department of Computer Science.
5 Computer Organization
Computer Organization and Architecture
Dr. Bernard Chen Ph.D. University of Central Arkansas Spring 2009
Bus Architecture Memory unit AR PC DR E ALU AC INPR 16-bit Bus IR TR
Computer System Architecture ESGD2204
Chapter No 5 Basic Computer Organization And Design.
1 Basic Computer Organization & Design Computer Organization Computer Architectures Lab BASIC COMPUTER ORGANIZATION AND DESIGN Instruction Codes Computer.
Eng. Mohammed Timraz Electronics & Communication Engineer University of Palestine Faculty of Engineering and Urban planning Software Engineering Department.
Bus Architecture Memory unit AR PC DR E ALU AC INPR 16-bit Bus IR TR
CPU Design. Introduction – The CPU must perform three main tasks: Communication with memory – Fetching Instructions – Fetching and storing data Interpretation.
Exam2 Review Dr. Bernard Chen Ph.D. University of Central Arkansas Spring 2009.
CSC321 Making a Computer Binary number system → Boolean functions Boolean functions → Combinational circuits Combinational circuits → Sequential circuits.
Model Computer CPU Arithmetic Logic Unit Control Unit Memory Unit
1 Purpose of This Chapter In this chapter we introduce a basic computer and show how its operation can be specified with register transfer statements.
M. Mateen Yaqoob The University of Lahore Spring 2014.
Lec 5 Basic Computer Organization
Fetch-execute cycle.
5-6 Memory Ref. Instruction
CSE 241 Computer Organization Lecture # 8 Ch. 7 Control Unit Dr. Tamer Samy Gaafar Dept. of Computer & Systems Engineering.
September 26, 2001Systems Architecture I1 Systems Architecture I (CS ) Lecture 2: Implementation of a Simplified Computer Jeremy R. Johnson Wednesday,
Dale & Lewis Chapter 5 Computing components
1 Basic Computer Organization & Design Computer Organization Prof. H. Yoon BASIC COMPUTER ORGANIZATION AND DESIGN Instruction Codes Computer Registers.
Instruction.
Computer Organization and Assembly Languages Yung-Yu Chuang 2005/09/29
Ch5. 기본 컴퓨터의 구조와 설계.
Basic architecture.
Chapter 4 Register Transfer and Microoperations Dr. Bernard Chen Ph.D. University of Central Arkansas Spring 2010.
Bus Architecture Memory unit AR PC DR E ALU AC INPR 16-bit Bus IR TR
COMMON BUS SYSTEM Registers The registers in the Basic Computer are connected using a bus This gives a savings in circuitry over complete connections between.
8085 processor.
Control Unit Operations Chapter10:. What is Control Unit (CU)?(1)  Part of a CPU or other device that directs its operation.  Tells the rest of the.
Chapter 10 Control Unit Operation “Controls the operation of the processor”
Processor Organization
Processor Organization and Architecture Module III.
Basic Computer The following discussions are based on a fictitious computer called “Basic Computer” by the author of the textbook It’s a much better way.
Jeremy R. Johnson William M. Mongan
Basic Computer Organization - Part 2 Designing your first computer
1 BASIC COMPUTER ORGANIZATION AND DESIGN Instruction Codes Computer Registers Computer Instructions Timing and Control Instruction Cycle Memory Reference.
Chapter 5 Computer Organization TIT 304/TCS 303. Purpose of This Chapter In this chapter we introduce a basic computer and show how its operation can.
Functions of Processor Operation Addressing modes Registers i/o module interface Memory module interface Interrupts.
Basic Computer Organization and Design
COMPUTER ARCHITECTURE
Symbol Hex Code Description I=0 I=1
Micro-Operations A computer executes a program Fetch/execute cycle
William Stallings Computer Organization and Architecture
ADVANCED PROCESSOR ARCHITECTURE
William Stallings Computer Organization and Architecture 7th Edition
Computer Organization and Design
BASIC COMPUTER ORGANIZATION AND DESIGN
Overview Instruction Codes Computer Registers Computer Instructions
Chapter 15 Control Unit Operation
BASIC COMPUTER ORGANIZATION AND DESIGN
BASIC COMPUTER ORGANIZATION AND DESIGN
By: A. H. Abdul Hafez CAO, by Dr. A.H. Abdul Hafez, CE Dept. HKU
سازمان و طراحي کامپيوتر پايه.
Instruction and Control II
Processor Organization and Architecture
Computer Architecture and Organization: L11: Design Control Lines
William Stallings Computer Organization and Architecture 7th Edition
By: A. H. Abdul Hafez Computer Architecture and Organization: L06: Stored program and Instruction code.
Computer Architecture and Organization: L07: Control Sequence
Computer Architecture
Presentation transcript:

M. Mateen Yaqoob The University of Lahore Spring 2014 Lecture#08 M. Mateen Yaqoob The University of Lahore Spring 2014

Indirect address Occurs When the Operand Contains the Address of the Address of Needed Data. 1. Address part of IR is placed on the bus and loaded back into the AR 2. Address is selected in memory and placed on the bus to be loaded Back into the AR 3. New Address is selected in memory and placed on the bus to be loaded into the DR to use later

Indirect address

Effective address: • Effective address: Address where an operand is physically located Effective address: 457 Effective address: 1350

Direct and Indirect addressing example Addressing Mode 5

Mano’s Computer Figure Bus Memory Unit 4096x16 7 Address WRITE READ 1 AR LD INR CLR PC 2 LD INR CLR DR 3 LD INR CLR E Adder & Logic AC 4 LD INR CLR INPR 5 IR LD TR 6 LD INR CLR OUTR Clock LD 16-bit common bus Computer System Architecture, Mano, Copyright (C) 1993 Prentice-Hall, Inc. 6

Computer Registers Accumulator(AC) : takes input from ALU The ALU takes input from DR, AC and INPR : ADD DR to AC, AND DR to AC Note) Input register is not connected to the bus. The input register is connected only to the ALU 7

Computer Registers Data Register(DR) : hold the operand(Data) read from memory Accumulator Register(AC) : general purpose processing register Instruction Register(IR) : hold the instruction read from memory Temporary Register(TR) : hold a temporary data during processing Address Register(AR) : hold a memory address, 12 bit width

Computer Registers Program Counter(PC) : hold the address of the next instruction to be read from memory after the current instruction is executed Instruction words are read and executed in sequence unless a branch instruction is encountered A branch instruction calls for a transfer to a nonconsecutive instruction in the program The address part of a branch instruction is transferred to PC to become the address of the next instruction To read instruction, memory read cycle is initiated, and PC is incremented by one(next instruction fetch)

Computer Registers Input Register(INPR) : receive an 8-bit character from an input device Output Register(OUTR) : hold an 8-bit character for an output device

Computer Registers Register Number Register Register symbol of bits name Function----------------------- DR 16 Data register Holds memory operands AR 12 Address register Holds address for memory AC 16 Accumulator Processor register IR 16 Instruction register Holds instruction code PC 12 Program counter Holds address of instruction TR 16 Temporary register Holds temporary data INPR 8 Input register Holds input character OUTR 8 Output register Holds output character

Mano’s Computer: each instruction occupies one Memory Words 15 12 11 4-bit opcode Bits 15-12 How many possible instructions? 24=16 This leaves 12 bits for the address How many words of memory? 212 = 22•210 = 4K = 4096 16-bit words 12

Mano's simple Computer: Instructions 15 12 11 Any bits other than 0111 and 1111 are called memory reference instructions I 000 AND 100 BUN 001 ADD (Branch Unconditional) 010 LDA 101 BSA (Load Accumulator) (Branch and Store Address) 011 STA 110 ISZ (Store Accumulator) (Increment and Skip if Zero) 13