Lecture 11 ALU and Control Unit Design Presented By Dr. Shazzad Hosain Asst. Prof. EECS, NSU.

Slides:



Advertisements
Similar presentations
Control Unit Implemntation
Advertisements

6-1 Chapter 6 - Datapath and Control Department of Information Technology, Radford University ITEC 352 Computer Organization Principles of Computer Architecture.
Register Transfer Level
1ASM Algorithmic State Machines (ASM) part 1. ASM2 Algorithmic State Machine (ASM) ‏ Our design methodologies do not scale well to real-world problems.
CHAPTER 16 MICROPROGRAMMED CONTROL DR. H. WATSON FRANCISCO VASQUEZ
CS1104: Computer Organisation School of Computing National University of Singapore.
Topics covered: CPU Architecture CSE 243: Introduction to Computer Architecture and Hardware/Software Interface.
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,
The Control Unit: Sequencing the Processor Control Unit: –provides control signals that activate the various microoperations in the datapath the select.
1 COMP541 Sequencing and Control Montek Singh Mar 29, 2007.
CS364 CH17 Micro-programmed Control
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.
CPEN Digital System Design Chapter 9 – Computer Design
George Mason University ECE 448 – FPGA and ASIC Design with VHDL Finite State Machines State Diagrams, State Tables, Algorithmic State Machine (ASM) Charts,
1 COMP541 Sequencing and Control -- II Montek Singh April 5, 2007.
Lecture 8 Presented By Dr. Shazzad Hosain Asst. Prof. EECS, NSU.
Chapter 5 Basic Processing Unit
Lecture 13 Basic I/O Interface
Chapter 4. control unit. Agenda Basic concepts Fundamentals of CU Register transfer notations and descriptions Buses Design methods Hardwired approach.
Lecture 16 Today’s topics: –MARIE Instruction Decoding and Control –Hardwired control –Micro-programmed control 1.
Introduction to Computer Organization and Architecture Micro Program ภาษาเครื่อง ไมโครโปรแกรม.
6-1 Chapter 6 - Datapath and Control Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring Principles of.
Chap 8. Sequencing and Control. 8.1 Introduction Binary information in a digital computer –data manipulated in a datapath with ALUs, registers, multiplexers,
Multiple-bus organization
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use ECE/CS 352: Digital Systems.
Lecture 10 ALU and Control Unit Design Presented By Dr. Shazzad Hosain Asst. Prof. EECS, NSU.
Dr Mohamed Menacer College of Computer Science and Engineering Taibah University CE-321: Computer.
EKT221 ELECTRONICS DIGITAL II CHAPTER 4: Computer Design Basics
Chapter 4 Computer Design Basics. Chapter Overview Part 1 – Datapaths  Introduction  Datapath Example  Arithmetic Logic Unit (ALU)  Shifter  Datapath.
Microprogrammed Control Unit Control Memory Sequencing Microinstructions Microprogram Example Design of Control Unit Microinstruction Format.
Chapter 16 Micro-programmed Control
5-1 Chapter 5 - Datapath and Control Computer Architecture and Organization by M. Murdocca and V. Heuring © 2007 M. Murdocca and V. Heuring Computer Architecture.
1 Control Unit Operation and Microprogramming Chap 16 & 17 of CO&A Dr. Farag.
Microprogrammed Control Chapter11:. Two methods for generating the control signals are: 1)Hardwired control o Sequential logic circuit that generates.
5-1 Chapter 5—Processor Design—Advanced Topics Computer Systems Design and Architecture by V. Heuring and H. Jordan © 1997 V. Heuring and H. Jordan Chapter.
PART 6: (1/2) Enhancing CPU Performance CHAPTER 16: MICROPROGRAMMED CONTROL 1.
EKT 221 : Chapter 4 Computer Design Basics
Lecture 15 Microarchitecture Level: Level 1. Microarchitecture Level The level above digital logic level. Job: to implement the ISA level above it. The.
Basic Elements of Processor ALU Registers Internal data pahs External data paths Control Unit.
MICROPROGRAMMED CONTROL
8085 processor.
Designing a CPU –Reading a programs instruction from memory –Decoding the instruction –Executing the instruction –Transferring Data to/From memory / IO.
Lecture 9 Design of the Computer Instruction Set and the CPU Presented By Dr. Shazzad Hosain Asst. Prof. EECS, NSU.
Chapter 7 Microsequencer Control Unit Design.
Types of Micro-operation  Transfer data between registers  Transfer data from register to external  Transfer data from external to register  Perform.
Controller Implementation
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use ECE/CS 352: Digital Systems.
Class Exercise 1B.
Basic Computer Organization and Design
Computer Organization and Architecture + Networks
Micro-programmed Control
Lecture on Microcomputer
Overview Instruction Codes Computer Registers Computer Instructions
Micro-programmed Control Unit
Instructor: Alexander Stoytchev
Processor: Finite State Machine & Microprogramming
Computer Organization and Design
Control Unit Introduction Types Comparison Control Memory
Processor Organization and Architecture
Lecture 26 – Hardwired and Microprogrammed Control
William Stallings Computer Organization and Architecture 8th Edition
Computer Architecture
ECE 448 Lecture 6 Finite State Machines State Diagrams, State Tables, Algorithmic State Machine (ASM) Charts, and VHDL code ECE 448 – FPGA and ASIC Design.
William Stallings Computer Organization and Architecture
Presentation transcript:

Lecture 11 ALU and Control Unit Design Presented By Dr. Shazzad Hosain Asst. Prof. EECS, NSU

Hardwired Control Design Eight Steps to follow

Step 1: Derive the Flow Chart Start Stop R  0 M  Multiplicand via inbus Q  Multiplier via inbus R  R + M Q  Q – 1 Q=0 Outbus  R no yes

Step 2: Obtain register transfer description

Step 3: Specify processing hardware along with various components

Step 4: Complete the design of the processing section M LCDLCD C 0 : R ← 0 C 1 : M ← inbus C 2 : Q ← inbus C 3 : F ← r + l C 4 : Q ← Q – 1 C 5 : outbus ← R C 6 : R ← F R CLDCLD Q LDCLDC 4 4 C0C bit adder F C1C1 C2C2 C3C3 C4C4 C5C5 C6C6 Z inbus outbus

Step 5: Determine the block diagram of the controller

Step 6: Obtain the state diagram of the controller T0T0 T1T1 T2T2 T3T3 T4T4 T5T5 Z=1 Z=0 State Diagram

Step 7: Specify the characteristics of the hardware for generating the required timing signals T0T0 T1T1 T2T2 T3T3 T4T4 T5T5 Z=1 Z=0 State Diagram

Step 7: Specify the characteristics of the hardware for generating the required timing signals T0T0 T1T1 T2T2 T3T3 T4T4 T5T5 Z=1 Z=0 State Diagram

Step 7: Specify the characteristics of the hardware for generating the required timing signals T0T0 T1T1 T2T2 T3T3 T4T4 T5T5 Z=1 Z=0 State Diagram

Step 8: Draw the logic circuit of the controller Reset 1 3 – to – 8 Decoder T0T1T2T3T4T5T0T1T2T3T4T5 unused C 0, C 1 C 2 C 3, C 4, C 6 C 5 Sequence Controller (SC) Enable Clear Load Clock O2O2 O1O1 O0O0 d 2 d 1 d 0 L Z Logic Diagram of the unsigned multiplier controller

Sequence Controller Design T3T5T3T5 InputsOutputs ZT3T3 T5T5 Ld2d2 d1d1 d0d0 0 1 x1 0 x x Truth Table _ L = Z T 3 + T 5 d 2 = T 5 _ d 1 = Z T 3 d 0 = T 5

SC Alternative Design InputsOutputs ZT3T3 T5T5 Ld2d2 d1d1 d0d0 0 1 x1 0 x x Truth Table Z T3 T5 _ L = Z T 3 + T 5 d 2 = T 5 _ d 1 = Z T 3 d 0 = T 5 L d2d2 d1d1 d0d0

Micro-programmed Control Unit Design Micro-programmed control unit contains programs written using microinstructions The programs written in ROM inside the CPU The microprocessor reads each micro-instruction into instruction register from external memory The control unit translates the micro-instructions for the microprocessor

Micro-instruction format All micro-instructions have two fields – Control word Indicates which control lines are to be activated – Next address Specifies the address of the next instruction to be executed

Design Decisions Cost of CPU depends on size of control memory Size depends on length of micro-instructions Major design decision is to reduce the length of micro-instructions Length depends on two factors – Degree of parallelism: number of microinstructions that can be activated simultaneously i.e. control bits – The method by which the address of next micro- instruction is determined

Control Bit Organization Several ways to organize – Assign a single bit for each control line, unencoded format Allows full parallelism No decoding is necessary – Assign n number of bits for 2 n number of micro instructions, encoded format Decoding is necessary Less parallelism

Unencoded vs. Encoded Format C 0 : outbus  X C 1 : outbus  Y 1.Each operation can be performed one at a time, because there is a one outbus 2.A single can be assigned for each transfer Unencoded format Two operations are performed Encoded format Three operations can be performed

Unencoded vs. Encoded Format Cont. If there are eight (8) different operations then 8 different control bits Ins. Number C0C0 C1C1 C2C2 C3C3 C4C4 C5C5 C6C6 C7C7 Operation Performed outbus  X outbus  Y ***************** X  outbus Ins. Number d2d2 d1d1 d0d0 Operation Performed 1000outbus  X 2001outbus  Y ************ 8111X  outbus Unencoded format Encoded format Horizontal microinstruction Vertical microinstruction

Designing Micro-instructions

Control Memory (CM) 6 x Condition Select Branch Adder Control Functions C 0 C 1 ……… C Micro-program Counter (MPC) Reset Load/increment MUX Z Vcc CWR (Control Word Register)

Components Micro-program Counter (MPC) – Holds the address of the next micro-instruction Control Word Register (CWR) – Contain three fields Condition select Branch address Control function MUX (Multiplexer)

References Chapter 7, Fundamental of Digital Logic and Microcomputer Design – by M. Rafiquzzaman