M. Mateen Yaqoob The University of Lahore Spring 2014.

Slides:



Advertisements
Similar presentations
Basic Computer Organization
Advertisements

Control path Recall that the control path is the physical entity in a processor which: fetches instructions, fetches operands, decodes instructions, schedules.
Chapter 4 Register Transfer and Microoperations
M. Mateen Yaqoob The University of Lahore Spring 2014.
ARITHMETIC LOGIC SHIFT UNIT
Chapter 16 Control Unit Operation No HW problems on this chapter. It is important to understand this material on the architecture of computer control units,
Basic Computer Organization and Design
Chapter 7. Register Transfer and Computer Operations
Chapter 16 Control Unit Implemntation. A Basic Computer Model.
Chapter 15 IA 64 Architecture Review Predication Predication Registers Speculation Control Data Software Pipelining Prolog, Kernel, & Epilog phases Automatic.
5 Computer Organization
Chapter 8 CPU Dr. Bernard Chen Ph.D. University of Central Arkansas Spring 2009.
Computer Organization and Architecture
Dr. Bernard Chen Ph.D. University of Central Arkansas Spring 2009
Micro-operations Are the functional, or atomic, operations of a processor. A single micro-operation generally involves a transfer between registers, transfer.
Review We introduced registers
SAP1 (Simple-As-Possible) Computer
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
Computer Design Basics
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.
M. Mateen Yaqoob The University of Lahore Spring 2014.
Chap 7. Register Transfers and Datapaths. 7.1 Datapaths and Operations Two types of modules of digital systems –Datapath perform data-processing operations.
Lecture 14 Today’s topics MARIE Architecture Registers Buses
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.
Lec 5 Basic Computer Organization
5-6 Memory Ref. Instruction
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
M. Mateen Yaqoob The University of Lahore Spring 2014
1 Basic Computer Organization & Design Computer Organization Prof. H. Yoon BASIC COMPUTER ORGANIZATION AND DESIGN Instruction Codes Computer Registers.
Instruction.
Ch5. 기본 컴퓨터의 구조와 설계.
Basic architecture.
Basic Elements of Processor ALU Registers Internal data pahs External data paths Control Unit.
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
Chapter 3 : Top Level View of Computer Functions Basic CPU function, Interconnection, Instruction Format and Interrupt.
Question What technology differentiates the different stages a computer had gone through from generation 1 to present?
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.
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.
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.
Types of Micro-operation  Transfer data between registers  Transfer data from register to external  Transfer data from external to register  Perform.
Functions of Processor Operation Addressing modes Registers i/o module interface Memory module interface Interrupts.
UNIT 2 REGISTER TRANSFER AND MICROOPERATIONS
Basic Computer Organization and Design
Chapter 4 Register Transfer and Microoperations
COMPUTER ARCHITECTURE
Symbol Hex Code Description I=0 I=1
Chap 7. Register Transfers and Datapaths
ADVANCED PROCESSOR ARCHITECTURE
Computer Organization and Design
BASIC COMPUTER ORGANIZATION AND DESIGN
Overview Instruction Codes Computer Registers Computer Instructions
BASIC COMPUTER ORGANIZATION AND DESIGN
The Processor and Machine Language
BASIC COMPUTER ORGANIZATION AND DESIGN
By: A. H. Abdul Hafez CAO, by Dr. A.H. Abdul Hafez, CE Dept. HKU
سازمان و طراحي کامپيوتر پايه.
Computer Architecture and Organization: L11: Design Control Lines
By: A. H. Abdul Hafez Computer Architecture and Organization: L06: Stored program and Instruction code.
Computer Architecture and Organization: L07: Control Sequence
Presentation transcript:

M. Mateen Yaqoob The University of Lahore Spring 2014

  3 Instruction Code Formats : Fig. 5-5  Memory-reference instruction  Opcode = 000  110  I=0 : 0xxx ~ 6xxx, I=1: 8xxx ~Exxx  Register-reference instruction  7xxx (7800 ~ 7001) : CLA, CMA,  Input-Output instruction  Fxxx(F800 ~ F040) : INP, OUT, ION, SKI, I Opcode Address I=0 : Direct, I=1 : Indirect Register Operation I/O Operation

 A Computer should have a set of instructions so that the user can construct machine language programs to evaluate any function that is known to be computable.  The set of instructions are said to be complete if the computer includes a sufficient number of instructions in each of these categories: 1. Arithmetic, logical and shift instructions 2. Instructions for moving information to and from memory and processor registers 3. Program control instructions together with instructions that check status conditions 4. Input and output instructions

COMMON BUS SYSTEM  The basic computer has eight registers, a memory unit, and a control unit.  Paths must be provided to transfer information from one register to another and between memory and registers  A more efficient scheme for transferring information in a system with many registers is to use a common bus.

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

COMMON BUS SYSTEM  The connection of the registers and memory of the basic computer to a common bus system :  The outputs of seven registers and memory are connected to the common bus  The specific output is selected by mux(S0, S1, S2) :  Memory(7), AR(1), PC(2), DR(3), AC(4), IR(5), TR(6)  When LD(Load Input) is enable, the particular register receives the data from the bus  Control Input : LD, INC, CLR, Write, Read

COMMON BUS SYSTEM  Control variables: the bus is controlled by  1- Selection switches for selecting the source of information and  2- Enable switches at the destination device to accept the information.

 Selection variables: select a register or the memory whose output is used as an input to the common bus.  To select one device out of 8, we need 3 select variables.  For example, if S2S1S0 = 011, the output of DR is selected as an output of the common bus.

Load input (LD): Enables the input of a register to download bits form the common bus. When LD = 1 for a register, the data on the common bus is read into the register during the next clock pulse transition. > Increment input (INR): Increments the content of a register. > Clear input (CLR): Clear the content of a register to zero.

 When the contents of AR or PC (12 bits) are applied to the 16-bit common bus, the four most significant bits are set to zero. When AR or PC receives information from the bus, only the 12 least significant bits are transferred to the register. 12 least significant bits 12 bits

Memory: 4096x16 bits AR,PC 12 bitsDR,AC, IR,TR 16 bitsOUTR,INPR 8 bitsSC 4 bits I(1 bit)S(1 bit)E(1 bit)R(1 bit)IEN(1 bit)FGI(1 bit)FGO(1 bit) ALU 16 bits Control Unit Logic gates 3x8 DEC, 4x16 DEC 9 Registers Seven Flip-Flops BUS: 8x1 MUX 16 bits Nine registers : AR, PC(12bits each), DR, AC, IR, TR(16 bits each), OUTR, INPR(8 bit each), and SC(4bits) Seven F/Fs : I, S, E, R, IEN, FGI, and FGO (1 bit each) A 16-bit common bus The basic computer consists of a 4096 words of 16 bits memory unit Adder and Logic circuit connected to the AC input Control Logic Gates: Signals to control the the nine registers’ inputs memory read and write F/Fs set, clear, or complement S2 S1 S0 bus selection the AC,ALU circuit Two decoders: 3 x 8(opcode) and 4 x 16 timing decoder Mano’s Example of Basic Computer

 The instruction register, IR, can only be loaded; it cannot be incremented nor cleared. Its output is used to generate Di’s and Ti’s control signals.  TR is a temporary register. The CPU uses this register to store intermediate results of operations. It is not accessible by the external programs. It is loaded, incremented and cleared like the other registers.

Accumulator(AC) : Main Register Microoperation : clear AC, shift AC Data Register : ADD DR to AC, AND DR to AC 3) INPR: Input device

3 Instruction Code Formats : 1-Register-reference instruction  7xxx (7800 ~ 7001) : CLA, CMA, …. 2-Input-Output instruction  Fxxx(F800 ~ F040) : INP, OUT, ION, SKI, …. I Opcode Address I=0 : Direct, I=1 : Indirect Register Operation I/O Operation Memory-reference instruction Opcode = 000  110 I=0 : 0xxx ~ 6xxx, I=1: 8xxx ~Exxx

INSTRUCTION CYCLE  A computer goes through the following instruction cycle repeatedly: do 1. Fetch an instruction from memory 2. Decode the instruction 3. Read the effective address from memory if the instruction has an indirect address 4. Execute the instruction until a HALT instruction is encountered

Fetch, decode Next Instruction Fetch, decode Next Instruction Execute Instruction Execute Instruction START HALT Instruction cycle Interrupt cycle Interrupt cycle Interrupt Cycle Interrupts Enabled Interrupts Disabled

 Instruction Fetch : T0, T1  T0 = 1  1) Place the content of PC onto the bus by making the bus selection inputs S 2 S 1 S 0 =010  2) Transfer the content of the bus to AR by enabling the LD input of AR Continue indefinitely unless HALT instruction is encountered –T1 = 1 1) Enable the read input memory 2) Place the content of memory onto the bus by making S 2 S 1 S 0 = 111 3) Transfer the content of the bus to IR by enable the LD input of IR 4) Increment PC by enabling the INR input of PC