Computer Architecture and Organization: L08: Design Control Lines

Similar documents
Computer Architecture and Organization:

EC4205 Microprocessor and Microcontroller

Controller Implementation--Part I. Cascading Edge-triggered Flip-Flops

Java Bread Board Introductory Digital Electronics Exercise 2, Page 1

Design of Microprogrammed Control Units (MCU) using VHDL Description. Arvutitehnika erikusus

Understanding Engineers #2

Lecture 02: Digital Logic Review

CSE 370 Winter Homework 5 Solutions

ICS 151 Final. (Last Name) (First Name)

Solutions. ICS 151 Final. Q1 Q2 Q3 Q4 Total Credit Score. Instructions: Student ID. (Last Name) (First Name) Signature

RISC Central Processing Unit

Learning Outcomes. Spiral 2 3. DeMorgan Equivalents NEGATIVE (ACTIVE LO) LOGIC. Negative Logic One hot State Assignment System Design Examples

Practical Workbook Logic Design & Switching Theory

Brought to you by. Priti Srinivas Sajja. PS01CMCA02 Course Content. Tutorial Practice Material. Acknowldgement References. Website pritisajja.

On Built-In Self-Test for Adders

Exam #2 EE 209: Fall 2017

Digital Electronics 8. Multiplexer & Demultiplexer

EC4205 Microprocessor and Microcontroller

Design For Test. VLSI Design I. Design for Test. page 1. What can we do to increase testability?

Class Project: Low power Design of Electronic Circuits (ELEC 6970) 1

Adder Comparator 7 segment display Decoder for 7 segment display D flip flop Analysis of sequential circuits. Sequence detector

IES Digital Mock Test

Microprocessor & Interfacing Lecture Programmable Interval Timer

Types of Control. Programmed Non-programmed. Program Counter Hardwired

Project Board Game Counter: Digital

CS302 - Digital Logic Design Glossary By

Unit-6 PROGRAMMABLE INTERRUPT CONTROLLERS 8259A-PROGRAMMABLE INTERRUPT CONTROLLER (PIC) INTRODUCTION

COURSE LEARNING OUTCOMES AND OBJECTIVES

MICROPROCESSORS AND MICROCONTROLLER 1

Datapath Components. Control vs. Datapath, Registers, Adders (Binary Addition) Copyright (c) 2012 Sean Key

6.111 Lecture # 19. Controlling Position. Some General Features of Servos: Servomechanisms are of this form:

Multiplier and Accumulator Using Csla

Lecture 18. BUS and MEMORY

Computer Hardware. Pipeline

What you can do with very little:

74F161A 74F163A Synchronous Presettable Binary Counter

COMPUTER ORGANIZATION & ARCHITECTURE DIGITAL LOGIC CSCD211- DEPARTMENT OF COMPUTER SCIENCE, UNIVERSITY OF GHANA

Lecture 20: Several Commercial Counters & Shift Register


LOGIC DIAGRAM: HALF ADDER TRUTH TABLE: A B CARRY SUM. 2012/ODD/III/ECE/DE/LM Page No. 1

Positive and Negative Logic

CS/EE Homework 9 Solutions

LIST OF EXPERIMENTS. KCTCET/ /Odd/3rd/ETE/CSE/LM

Topics Introduction to Microprocessors

EECS150 - Digital Design Lecture 2 - Synchronous Digital Systems Review Part 1. Outline

Serial Addition. Lecture 29 1

Circuits in CMOS VLSI. Darshana Sankhe

Datapath Components. Multipliers, Counters, Timers, Register Files

Digital Logic and Design (Course Code: EE222) Lecture 14: Combinational Contd.. Decoders/Encoders

HCC/HCF4017B HCC/HCF4022B

Asahi Kasei Microsystems AKM5451 Cell Phone Receiver with Interface Circuitry Circuit Analysis

Department of Electronics and Communication Engineering

! Sequential Logic. ! Timing Hazards. ! Dynamic Logic. ! Add state elements (registers, latches) ! Compute. " From state elements

Data output signals May or may not be same a input signals

Code No: R Set No. 1

Combinational Circuits DC-IV (Part I) Notes

EECS 270 Winter 2017, Lecture 15 Page 1 of 8

GATE Online Free Material

Lecture 3: Logic circuit. Combinational circuit and sequential circuit

COLLEGE OF ENGINEERING, NASIK

EXPERIMENT NO 1 TRUTH TABLE (1)

EE 308 Spring 2006 FINAL PROJECT: INTERFACING AND MOTOR CONTROL WEEK 1 PORT EXPANSION FOR THE MC9S12

ICS312 Machine-level and Systems Programming

DELD MODEL ANSWER DEC 2018

MSI Design Examples. Designing a circuit that adds three 4-bit numbers

Combinatorial Logic Design Multiplexers and ALUs CS 64: Computer Organization and Design Logic Lecture #14

UNIVERSITY OF BOLTON SCHOOL OF ENGINEERING BENG (HONS) ELECTRICAL & ELECTRONICS ENGINEERING SEMESTER TWO EXAMINATION 2017/2018

Combinational Logic Circuits. Combinational Logic

Digital Circuits Laboratory LAB no. 12. REGISTERS

ELECTROVATE. Electromania Problem Statement Discussion

TABLE 3-2 Truth Table for Code Converter Example

MM58174A Microprocessor-Compatible Real-Time Clock

Electronic Instrumentation

Number system: the system used to count discrete units is called number. Decimal system: the number system that contains 10 distinguished

DIGITAL DESIGN WITH SM CHARTS

ELECTRICAL AND COMPUTER ENGINEERING DEPARTMENT, OAKLAND UNIVERSITY ECE-2700:

SRV ENGINEERING COLLEGE SEMBODAI RUKMANI VARATHARAJAN ENGINEERING COLLEGE SEMBODAI

HCF40103B 8-STAGE PRESETTABLE SYNCHRONOUS 8 BIT BINARY DOWN COUNTERS

CSE 260 Digital Computers: Organization and Logical Design. Midterm Solutions

First Name: Last Name: Lab Cover Page. Teaching Assistant to whom you are submitting

Topics. Low Power Techniques. Based on Penn State CSE477 Lecture Notes 2002 M.J. Irwin and adapted from Digital Integrated Circuits 2002 J.

Basic Symbols for Register Transfers. Symbol Description Examples

A New Capacitive Sensing Circuit using Modified Charge Transfer Scheme

Digital Integrated CircuitDesign

Project Part 1 A. The task was to design a 4 to 1 multiplexer that uses 8 bit buses on the inputs with an output of a single 8 bit bus.

HCF4017B DECADE COUNTER WITH 10 DECODED OUTPUTS

Hardware Flags. and the RTI system. Microcomputer Architecture and Interfacing Colorado School of Mines Professor William Hoff

Power Spring /7/05 L11 Power 1

FPGA IMPLEMENTATION OF POWER EFFICIENT ALL DIGITAL PHASE LOCKED LOOP

Introduction. BME208 Logic Circuits Yalçın İŞLER

Chapter 9. sequential logic technologies

Digital Design and System Implementation. Overview of Physical Implementations

Chapter 5 Sequential Logic Circuits Part II Hiroaki Kobayashi 7/11/2011

Module 2.B. 9S12C Multiplexed Bus Expansion. Tim Rogers 2017

D f ref. Low V dd (~ 1.8V) f in = D f ref

Computer Architecture: Part II. First Semester 2013 Department of Computer Science Faculty of Science Chiang Mai University

Chapter 9. sequential logic technologies

Sequential Logic Circuits

CHAPTER IV DESIGN AND ANALYSIS OF VARIOUS PWM TECHNIQUES FOR BUCK BOOST CONVERTER

CS61c: Introduction to Synchronous Digital Systems

Transcription:

Computer Architecture and Organization: L08: Design Control Lines By: A. H. Abdul Hafez Abdul.hafez@hku.edu.tr, ah.abdulhafez@gmail.com, hafez@research.iiit.ac.in 1 CAO, by Dr. A.H. Abdul Hafez, CE Dept. HKU December 20, 2016

Outlines 1. Simple example: revision to bus system 2. Registers and Memory Control lines circuits 1. Design of TR and AR registers 2. Design of memory read and write lines 3. Common bus selection lines 3. Accumulator logic design 1. AC control lines 2. Adder logic design 4. End 2 CAO, by Dr. A.H. Abdul Hafez, CE Dept. HKU December 20, 2016

3 CAO, by Dr. A.H. Abdul Hafez, CE Dept. HKU December 20, 2016

Fetch Table (5-6) Control Functions and Microoperations for the basic computer (Mano computer) R T0: R T1: AR PC IR M[AR], PC PC + 1 Decode R T2: D0.D7 IR (12-14), I IR (15), AR IR (0-11) Indirect D 7 IT3: AR M[AR] Interrupt T0 T1 T2 IEN (FGI + FGO): R 1 RT0: Memory Reference AND D 0 T4: D 0 T5: ADD D 1 T4: D 1 T5: LDA D 2 T4: D 2 T5: AR 0, TR PC RT1: M[AR] TR, PC 0 RT2: PC PC + 1, IEN 0, R 0, SC 0 DR M[AR] AC AC ^ DR, SC 0 DR M[AR] AC AC ^ DR, E Cout, SC 0 DR M[AR] AC DR, SC 0 STA D 3 T4: M[AR] AC, SC 0 BUN D 4 T4: PC AR, SC 0 BSA D 5 T4: D 5 T5: ISZ D 6 T4: D 6 T5: D 6 T6: M[AR] PC, AR AR+1 PC AR, SC 0 DR M[AR] DR DR + 1 M[AR] DR, if DR=0 then PC PC + 1 Register Reference D7 I T3 = r IR( I ) = Bi [bit in IR (0-11) that specifies the operation] r: SC 0 CLA rb 11 : AC 0 CLE rb 10 : E 0 CMA rb 9 : AC AC CME rb 8 : E E CIR rb 7 : AC shr AC, AC(15) E, E AC (0) CIL rb 6 : AC shl AC, AC(0) E, E AC (15) INC rb 5 : AC AC+1 SPA rb 4 : If (AC (15)=0) then (PC PC+1) SNA rb 3 : If (AC (15)=1) then (PC PC+1) SZA rb 2 : If (AC =0) then (PC PC+1) SZE rb 1 : If (E=0) then (PC PC+1) HLT rb 0 : S 0 (S is a start-stop flip-flop) Input-output D7 I T3 =p (common for all input-output instructions) IR( I ) = Bi [bit in IR (6-11) that specifies the instructions] p: SC 0 INP pb 11 : AC(0-7) INPR, FGI 0 OUT pb 10 : OUTR AC (0-7), FGO 0 SKI pb 9 : if (FGI=1) then (PC PC + 1) SKO pb 8 : if (FGO=1) then (PC PC + 1) ION pb 7 : IEN 1 IOF pb 6 : IEN 0 4

Design of Basic Computer The proposed basic computer consists of the following hardware components: 1- A memory unit with 4096 words of 16 bits each. 2- Nine registers : AR, PC, DR, AC, IR, TR, OUTR, INPR, and SC. 3- Seven Flip Flops: I, S, E, R, IEN, FGI, and FGO. 4- Two decoders: 3-to-8 op-code decoder and 4-to-16 timing decoder. 5-16-bit common bus. 6- Control logic gates. 7- Adder and logic circuit connected to the input of the accumulator. December 20, 2016 CAO, by Dr. A.H. Abdul Hafez, CE Dept. HKU 5

...... S E R IEN FGI FGO DR instruction register (IR) 15 14 13 12 11-0 AC 3x8 decoder 7 6 5 4 3 2 1 0 D0 I D7 T15 Control logic gates... 15 14... 2 1 0 4x6 decoder T0 4-bit Sequence Counter (SC) (CLR) Clock (INR) 6

Control Lines: Simple Example The multiplexer selects one of the four registers as the source register. Control lines for the MUX are driven by external circuitry. The data is made available to all registers, but only one actually loads the data. Again, external hardware generates load signals for the four registers such that no more than one is active at any given time. The symbolic statement for a bus transfer may mention the bus or its presence may be implied in the statement. When bus is included in the statement we write: BUS C, A BUS (however it is A C) P: A B Q: A C R: B D S: C A T: D C U: D B 7 CAO, by Dr. A.H. Abdul Hafez, CE Dept. HKU December 20, 2016

Registers and Memory Control lines circuits Note: To design the control circuit for any register or memory input control lines, we have to scan table (5-6) to find the required control functions for each control line. Ex: Design of TR After the scanning of table (5-6), TR is modified only by the microoperation RTo: TR PC, So the control circuit will be From Bus 12 TR 12 To the Bus LD R To CLK 8

Ex: Design of AR register Scan table (5-6) for the transfer statements that change the content of AR: R T0: AR PC R T2: AR IR(0-11) D 7IT3: AR M[AR] LD (AR) LD (AR) LD (AR) LD(AR)= R T0+R T2+D 7IT3 RT0: AR 0 D5T4: AR AR+1 CLR (AR) INR (AR) D 7 I T3 T2 From bus 1 2 AR LD INR CLR 1 2 to bus clock R T0 D5 T4 9

Ex: Design of Memory Read and Write control circuits Scanning the table, lead to the control functions for the Read and Write memory input lines: Read= R T 1 +D 7 IT 3 +(D 0 +D 1 +D 2 +D 6 ) T 4 Write= RT 1 +D 3 T 4 +D 5 T 4 +D 6 T 6 Memory Do D1 D2 D6 R T1 D 7 I T3 Read Write R T1 D3 T4 D5 T4 D6 T6 T4 10

Control circuit of single Flip Flop Ex: For the IEN Flip Flop, table 5-6 shows that IEN may change as a result of the instructions: ION, IOF, and is reset at the end of the interrupt cycle. The control functions and microoperations are: pb7: IEN 1 pb6: IEN 0 RT2: IEN 0 ION instruction IOF instruction ION instruction at the end of the interrupt cycle D'7 I T3 p B7 J SET Q J KQ(t+1) 0 1 0 1 0 1 Clock IEN B6 R K CLR Q T2 11

Control of Common Bus Encoder for Bus Selection : Table. 5-6 S0 = x1 + x3 + x5 + x7 S1 = x2 + x3 + x6 + x7 S2 = x4 + x5 + x6 + x7 x1 = 1 : D T 4 D T 5 Control Function : x2 = 1 : Bus AR 4 5 : PC : PC AR AR Bus PC x D T D 1 4 4 5T5 x1 = 1 corresponds to the bus connection of AR as a source x 1 x 2 x 3 x 4 x 5 x 6 x 7 Encoder So S1 S2 Multiplexer Bus Select Input x7 = 1 : Bus Memory Same as Memory Read Control Function : x 7 R' T1 D7 ' IT3 ( D0 D1 D2 D3 ) T 4 12

Design of Accumulator Logic Circuit The circuits associated with the AC register are shown in the Figure below. The Adder has three inputs: one set of 16-bit from the output of the accumulator. Another set of 16-bit comes from the DR register. A third set of 8-bit comes from the INPR. The AC is provided with three control lines: LD, INR, and CLR. 16 From DR From INPR 16 8 Adder and logic circuit Accumulator register (AC) 16 16 To Bus LD INR CLR Clock Control gates 13

Design of AC Register Search table 5-6 for the statements that change the content of AC. The statements, their control functions and the corresponding logic circuit are shown below. From adder and logic 16 16 AC To Bus D0 AND LD INR CLR Clock D T 0 D T 1 2 pb rb rb rb rb rb 9 7 6 11 5 5 5 D T 5 11 : AC AC DR : AC AC DR : AC DR : AC(0 7) INPR : AC AC : AC shr AC, AC(15) E : AC shr AC, AC(0) E : AC 0 : AC AC 1 LD CLR INR T5 D1 D2 T5 p B11 r B9 B7 B6 ADD DR INPR COM SHR SHL INC B5 CLR Fig. (5-20) B11 14

Adder and Logic Circuit This circuit consists of 16 single-bit adder and logic duplicated circuits. The carry output of the first stage is connected to the carry input of the next stage, and so on. INPR (1) INPR (0) DR (14) AC (15) Cin DR (14) AC (14) DR (1) AC (1) Cin DR (0) AC (0) Stage15 Stage 14 Stage 1 Stage 0 Cout Cout Cout E AC (15) AC (14) AC (1) AC (0) Detail connection of single stage 15

Adder and Logic circuit DR(i) AC(i) AND (Output of OR gate in Fig. 5-20) LD Ci FA ADD Ii (Fig.2-11) J Q AC(i) Ci+1 DR K bit(i) From INPR INPR COM Clock SHR AC(i+1) SHL AC(i-1) 16

The end of the Lecture Thanks for your time Questions are welcome 17 CAO, by Dr. A.H. Abdul Hafez, CE Dept. HKU December 20, 2016