Lecture 26 – Hardwired and Microprogrammed Control

Slides:



Advertisements
Similar presentations
1ASM Algorithmic State Machines (ASM) part 1. ASM2 Algorithmic State Machine (ASM) ‏ Our design methodologies do not scale well to real-world problems.
Advertisements

Give qualifications of instructors: DAP
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Chapter 7 – Registers.
EKT 221 : Digital 2 ASM.
CS 151 Digital Systems Design Lecture 37 Register Transfer Level
Overview Datapath and Control Algorithmic State Machines (ASM)
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Verilog Part 2 – Chapter.
Chapter 8 Sequencing and Control Henry Hexmoor1. 2 Datapath versus Control unit  Datapath - performs data transfer and processing operations  Control.
Charles Kime © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 7 – Registers and Register Transfers Part 3 – Control of.
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.
Overview Part 1 – Datapaths Part 2 – A Simple Computer
Ch 8 - Control Unit and Algorithmic State Machines
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Chapter 3 – Combinational.
Sequencing and Control Mano and Kime Sections 8-1 – 8-7.
CPEN Digital System Design Chapter 9 – Computer Design
1 KU College of Engineering Elec 204: Digital Systems Design Lecture 20 Datapath and Control Datapath - performs data transfer and processing operations.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Chapter 10 – Computer.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Logic and Computer Design.
ENG241 Digital Design Week #10 Sequencing and Control.
Overview Part 1 Part 2 Sequential Circuit Design
Rabie A. Ramadan Lecture 3
1 KU College of Engineering Elec 204: Digital Systems Design Lecture 21 Multiplier Example Example: (101 x 011) Base 2 Note that the partial product summation.
Chap 8. Sequencing and Control. 8.1 Introduction Binary information in a digital computer –data manipulated in a datapath with ALUs, registers, multiplexers,
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.
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.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Logic and Computer Design.
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.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Chapter 7 – Registers.
EKT221 ELECTRONICS DIGITAL II CHAPTER 4: Computer Design Basics
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.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Chapter 10 – Computer.
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.
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.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 7 – Registers and Register Transfers Part.
1 Control Unit Operation and Microprogramming Chap 16 & 17 of CO&A Dr. Farag.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Verilog Part 3 – Chapter.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Logic and Computer Design.
Lecture 11 ALU and Control Unit Design Presented By Dr. Shazzad Hosain Asst. Prof. EECS, NSU.
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.
UNIT-III CONTROL UNIT DESIGN
EKT 221/4 DIGITAL ELECTRONICS II Chapter 2 SEQUENCING AND CONTROL.
EKT 221 : Chapter 4 Computer Design Basics
Algorithmic state machines
Datapath - performs data transfer and processing operations The control unit sends: – Control signals – Control outputs The control unit receives: – External.
 Designing CU – One FF per State Method  5 Transformation Rules  Transformation Process  Microprogrammed Control Unit.
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.
Winter 2017 S. Areibi School of Engineering University of Guelph
Overview Part 1 - Implementation Technology and Logic Design
Computer Organization and Architecture + Networks
Registers and Counters
6.
Lecture 3 – Binary Arithmetic
Chap 7. Register Transfers and Datapaths
EEL 3705 / 3705L Digital Logic Design
SLIDES FOR CHAPTER 12 REGISTERS AND COUNTERS
KU College of Engineering Elec 204: Digital Systems Design
Overview Datapath and Control Algorithmic State Machines (ASM)
Basic Processing Unit Unit- 7 Engineered for Tomorrow CSE, MVJCE.
Overview Part 1 – Datapaths Part 2 – A Simple Computer Introduction
ENG2410 Digital Design “Sequencing and Control Examples”
EE2174: Digital Logic and Lab
Overview Part 1 - Registers, Microoperations and Implementations
CSC 220: Computer Organization
REGISTER TRANSFER LEVEL (RTL) DESIGN Using ASM CHART
Overview Functions and functional blocks Rudimentary logic functions
Overview Last lecture Digital hardware systems Today
KU College of Engineering Elec 204: Digital Systems Design
Forward Design by state transition table, and state graph
Lecture 4 – Binary Logic and Logic Gates
Presentation transcript:

Lecture 26 – Hardwired and Microprogrammed Control

Overview Hardwired Control Microprogrammed control One flip-flop per state Sequence register and decoder Microprogrammed control

Datapath and Control Datapath - performs data transfer and processing operations Control Unit - Determines the enabling and sequencing of the operations The control unit receives: External control inputs Status signals Control inputs Data outputs Datapath Control signals Status signals unit The control unit sends: Control signals Control outputs

Control Unit Types Two distinct classes: Non-programmable or hard-wired Programmable or microprogrammable A hard-wired control units does not fetch or sequence instructions from a memory A programmable control unit has: A program counter (PC) or other sequencing register with contents that points to the next instruction to be executed An external ROM or RAM array for storing instructions and control information Decision logic for determining the sequence of operations and logic to interpret the instructions

Multiplier Example: Block Diagram n 2 1 IN n Multiplicand Counter P Register B log n n 2 Zero detect G (Go) C Parallel adder out Z n n Control Q Multiplier o unit C Shift register A Shift register Q 4 n Product Control signals OUT

Multiplier Example: Control Signal Table Control Signals for Binary Multiplier Bloc k Dia g ram Contr o l Contr o l Mod u l e Mi cr oo pe ra ti on Si gn al N a me Exp r e ssi on Register A : A ← I nitia liz e IDLE · G A ← A + B Load MUL0 · Q C || A || Q ← sr C || A || Q Shift_dec M UL1 Register B : B ← IN Load_B LO ADB F lip-F lop C : C ← C lea r _C IDLE · G + MUL1 C ← C Load — ou t Register Q : Q ← IN Load_Q LO ADQ C || A || Q ← sr C || A || Q Shift_dec — Cou n ter P : P ← n – 1 I nitia liz e — P ← P – 1 Shift_dec —

Multiplier Example: ASM Chart IDLE MUL0 1 G 1 Q C ← 0, A ← P ← n – 1 A ← A + B, C ← C out MUL1 C ← 0, C || A || Q ← sr C || A || Q, P ← P – 1 1 Z

Hardwired Control Control Design Methods Will follow procedure from Chapter 6 Procedure specializations that use a single signal to represent each state One Flip-flop per State Flip-flop outputs as “state,” e. g., 0001, 0010, 0100, 1000. Map directly from ASM chart (previous lecture) Sequence Register and Decoder Sequence register with encoded states, e.g., 00, 01, 10, 11. Decoder outputs produce “state” signals, e.g., 0001, 0010, 0100, 1000.

Multiplier Example: Sequencer and Decoder Design Use sequential circuit design techniques from Chapter 4. First, define: States: IDLE, MUL0, MUL1 Input Signals: G, Z, Q0 (Q0 affects outputs, not next state) Output Signals: Initialize, LOAD, Shift_Dec, Clear_C State Transition Diagram (Use ASM on Slide 7) Output Function: Use Table on Slide 6 Second, find State Assignments (two bits required) We will use two state bits to encode the three state IDLE, MUL0, and MUL1.

Multiplier Example: Sequencer and Decoder Design (continued) Assuming that state variables M1 and M0 are decoded into states, the next state part of the state table is:

Multiplier Example: Sequencer and Decoder Design (continued) Finding the equations for M1 and M0 is easier due to the decoded states: M1 = MUL0 M0 = IDLE · G + MUL1 · Z The output equations using the decoded states: Initialize = IDLE · G Load = MUL0 · Q0 Clear_C = IDLE · G + MUL1 Shift_dec = MUL1

Multiplier Example: Sequencer and Decoder Design (continued) Doing multiple level optimization, extract IDLE · G: START = IDLE · G M1 = MUL0 M0 = START + MUL1 · Z Initialize = START Load = MUL0 · Q0 Clear_C = START + MUL1 Shift_dec = MUL1 The resulting circuit using flip-flops, a decoder, and the above equations is shown on the next slide.

Multiplier Example: Sequencer and Decoder Design (continued) START Initialize G M D Clear_C Z C DECODER IDLE A0 MUL0 1 MUL1 2 Shift_dec A1 3 M 1 D C Load Q

ASM Solution (from Lec. 25) 4 START 5 IDLE Initialize 1 D 4 5 C 2 Clear _C MUL0 1 Q DEMUX Load EN D D G A D 1 C MUL1 1 5 D Shift_dec Clock C 2 DEMUX D 1 A EN Z

Speeding Up the ASM Multiplier In processing each bit of the multiplier, the circuit visits states MUL0 and MUL1 in sequence. By redesigning the multiplier, is it possible to visit only a single state per bit processed?

Speeding Up Multiply (continued) Examining the operations in MUL0 and MUL1: In MUL0, a conditional add of B is performed, and In MUL1, a right shift of C || A || Q in a shift register, the decrementing of P, and a test for P = 0 (on the old value of P) are all performed in MUL1 Any solution that uses one state must combine all of the operations listed into one state The operations involving P are already done in a single state, so are not a problem. The right shift, however, depends on the result of the conditional addition. So these two operations must be combined!

Speeding Up Multiply (continued) By replacing the shift register with a combinational shifter and combining the adder and shifter, the states can be merged. The C-bit is no longer needed. The ASM chart: G IDLE MUL 00 01 10 11 1 Z || Q A || Q sr C out || (A + 0) || Q B) || Q || (A+ P P – A n –

Microprogrammed Control Microprogrammed Control — a control unit with binary control values stored as words in memory. Microinstructions — words in the control memory. Microprogram — a sequence of microinstructions. Control Memory — RAM or ROM memory holding the microinstructions. Writeable Control Memory — RAM Memory into which microinstructions may be written Control signals Register transfers Next uaddress

Microprogrammed Control (continued)

Summary Hardwired Control Microprogrammed control One flip-flop per state Sequence register and decoder Microprogrammed control

Terms of Use © 2004 by Pearson Education,Inc. All rights reserved. The following terms of use apply in addition to the standard Pearson Education Legal Notice. Permission is given to incorporate these materials into classroom presentations and handouts only to instructors adopting Logic and Computer Design Fundamentals as the course text. Permission is granted to the instructors adopting the book to post these materials on a protected website or protected ftp site in original or modified form. All other website or ftp postings, including those offering the materials for a fee, are prohibited. You may not remove or in any way alter this Terms of Use notice or any trademark, copyright, or other proprietary notice, including the copyright watermark on each slide. Return to Title Page

http://www.ustudy.in/node/8196