DIGITAL 2 : EKT 221. Today’s Outline Register Transfer Clock Gating Load Control Feedback Register Transfer Language Type of Registers Basic Symbols Mathematical.

Slides:



Advertisements
Similar presentations
Computer Architecture CS 215
Advertisements

CPEN Digital System Design
KU College of Engineering Elec 204: Digital Systems Design
REGISTER TRANSFER LANGUAGE (RTL)
Princess Sumaya Univ. Computer Engineering Dept. د. بســام كحـالــه Dr. Bassam Kahhaleh.
Chapter 7 Henry Hexmoor Registers and RTL
ARITHMETIC LOGIC SHIFT UNIT
1 Register Transfer &  -operations Computer Organization Computer Architectures Lab REGISTER TRANSFER AND MICROOPERATIONS Register Transfer Language Register.
8085 processor. Bus system in microprocessor.
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.
Chapter 7. Register Transfer and Computer Operations
Cpe 252: Computer Organization1 Lo’ai Tawalbeh Lecture #4 Register Transfer and Microoperations 23/2/2006 Chapter 4:
Logic and Computer Design Fundamentals Registers and Counters
Logic and Computer Design Dr. Sanjay P. Ahuja, Ph.D. FIS Distinguished Professor of CIS ( ) School of Computing, UNF.
1 Sequential Circuits Registers and Counters. 2 Master Slave Flip Flops.
The von Neumann Model – Chapter 4 COMP 2620 Dr. James Money COMP
Micro-operations Are the functional, or atomic, operations of a processor. A single micro-operation generally involves a transfer between registers, transfer.
Computer System Configuration and Function Computer Architecture and Design Lecture 6.
Digital 2 : EKT 221. Today’s Outline RTL Arithmetic Operations Conditional Register Transfer RTL Logical Operations RTL Shift Operations.
EKT 221/4 DIGITAL ELECTRONICS II  Registers, Micro-operations and Implementations - Part2.
Unit I Digital computer: functional units and their interconnections Mr. Mukul Varshney.
Rabie A. Ramadan Lecture 3
Lecture 16 Today’s topics: –MARIE Instruction Decoding and Control –Hardwired control –Micro-programmed control 1.
CSC321 Where We’ve Been Binary representations Boolean logic Logic gates – combinational circuits Flip-flops – sequential circuits Complex gates – modules.
Chapter 4 Register Transfer and Micro -operations
REGISTER TRANSFER AND MICROOPERATIONS
Eng. Mohammed Timraz Electronics & Communication Engineer University of Palestine Faculty of Engineering and Urban planning Software Engineering Department.
EKT 221/4 DIGITAL ELECTRONICS II  Registers, Micro-operations and Implementations - Part3.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 7 – Registers and Register Transfers Part.
REGISTER TRANSFER & MICROOPERATIONS By Sohaib. Digital System Overview  Each module is built from digital components  Registers  Decoders  Arithmetic.
1 COMP541 Sequential Circuits Montek Singh Feb 1, 2012.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 7 – Registers and Register Transfers Part.
Lec 5 Basic Computer 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.
DIGITAL 2 : EKT 221 RTL : Microoperations on a Single Register
The von Neumann Model – Chapter 4 COMP 2620 Dr. James Money COMP
EKT 221 : Chapter 4 Computer Design Basics
1 Chapter 7 Henry Hexmoor Registers and RTL. REGISTER TRANSFER AND MICROOPERATIONS Register Transfer Language Register Transfer Bus and Memory Transfers.
Register Transfer Languages (RTL)
Designing a CPU –Reading a programs instruction from memory –Decoding the instruction –Executing the instruction –Transferring Data to/From memory / IO.
Chapter 1_0 Registers & Register Transfer. Chapter 1- Registers & Register Transfer  Chapter 7 in textbook.
REGISTER TRANSFER LANGUAGE (RTL) INTRODUCTION TO REGISTER Registers1.
REGISTER TRANSFER & MICROOPERATIONS By Sohaib. Digital System Overview  Each module is built from digital components  Registers  Decoders  Arithmetic.
1 Register Transfer and Microoperations Acknowledgment: Most of the slides are adapted from Prof. Hyunsoo Yoon’s slides.
1 REGISTER TRANSFER & MICROOPERATIONS. 2 OUTLINES Register Transfer Language Register Transfer Bus and Memory Transfers Arithmetic Microoperations Logic.
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.
REGISTER TRANSFER AND MICROOPERATIONS
Basic Computer Organization and Design
REGISTER TRANSFER LANGUAGE (RTL)
Overview Register Transfer Language Register Transfer
REGISTER TRANSFER AND MICROOPERATIONS
Chap 7. Register Transfers and Datapaths
KU College of Engineering Elec 204: Digital Systems Design
Chapter 7 – Registers and Register Transfers
DIGITAL 2 : EKT 221 RTL : Microoperations on a Single Register
Register Transfer and Microoperations
REGISTER TRANSFER LANGUAGE AND DESIGN OF CONTROL UNIT
Computer Organization and Design
Control Unit.
REGISTER TRANSFER LANGUAGE
Computer Architecture and Design Lecture 6
CSC 220: Computer Organization
Overview Part 1 - Registers, Microoperations and Implementations
Overview Part 1 - Registers, Microoperations and Implementations
A Discussion on Assemblers
Registers and Counters
CHAPTER-3 REGISTER TRANSFER LANGUAGE AND MICROOPERATIONS
Presentation transcript:

DIGITAL 2 : EKT 221

Today’s Outline Register Transfer Clock Gating Load Control Feedback Register Transfer Language Type of Registers Basic Symbols Mathematical & Logical Symbols RTL Arithmetic Operations Conditional Register Transfer

LOAD ENABLE Transfer of new info into register is referred to as LOADING the register PARALLEL LOADING : when all bits loaded simultaneously on clock pulse (same source). A control signal is used to control the clock cycles. Using this control, input clock pulses are prevented from reaching the register when its content is not to be changed.

REGISTERS Definition : Registers consist of a set of Flip- flops (FFs), together with gates that implement their state transition 1 FFs = 1 bit Therefore, n bit register – n number of FFs Registers are useful for storing and manipulating information.(eg: arithmetic, logical, boolean)

Example : 4 bit Register D D D D D0D0 D1D1 D2D2 D3D3 CLK CLEAR Q0Q0 Q1Q1 Q2Q2 Q3Q3 Q0Q0 Q1Q1 Q2Q2 Q3Q3 D0D0 D1D1 D2D2 D3D3 4 BIT REGISTER SYMBOL LOGIC DIAGRAM Clear = Active LOW Clear = 0 = reset register

LOAD as Control Signal LOAD CLK CLK input to Flip Flop CLK LOAD CLK FF -When Load =1, CLK FF will follow the CLK (Master Clock) input. - When CLK FF has a PGT (+ve going Transition) new data will be loaded into register Q0Q0 Q1Q1 Q2Q2 Q3Q3 D0D0 D1D1 D2D2 D3D3 CLEAR Data Transfer

REGISTER with Clock Gating Load signal is used to enable the clock signal to pass through if 1 and prevent the clock signal from passing through if 0. This is called a clock gating. What logic is needed for gating? CLK + LOAD What is the problem? Gated Clock to FF Clock Skew of gated clocks with respect to clock or each other * Skew = Clock Signals arrive at different FFs or REG at different times

REGISTERS with Load Controlled Feedback A more reliable way to selectively load a register: – Run the clock continuously, and – Selectively use a load control to change the register contents. Example: 2-bit register with Load Control: For Load = 0,loads register contents (hold current values) For Load = 1,loads input values (load new values) Hardware more complex than clock gating, but free of timing problems Load Input1 Input2 Feedback Input x Load

Register Transfer Language (RTL)

HIGH LEVEL LANGUAGE Example : C+, VB, JAVA ASSEMBLY LANGUAGE Example : uP and uC OPCODE MICROCODE Mircocode (Micro-operations): Operations executed on data stored in registers, performed in one clock cycle Register Transfer Language (RTL): Symbolic notation used to describe micro-operations Register Transfer Language (RTL)

RTL Is an algebraic notation used to define machine level operations It is not executed by a computer It is used to explain how the computer works. Example: In assembly language instruction ADD#3, D2 is define in RTL as [D2] [D2] + 3 Register Transfer Language (RTL)

Types of Registers AR (Address Registers) DR (Data Registers) PC (Program Counters) IR (Instruction Registers) Rn (n indicates the Register number, eg R2)

Block Diagram of Registers R PC(H) Register 16 bit Register 7 8 bit Register Bit 7Bit Bit 16 Bit 0 PC(L) 8 bit = 1 byte H = High order byte L = Low order byte PC(H) = PC(15:8) PC(L) = PC(7:0)

BASIC SYMBOLS R followed by a number is referring to a register: R2 = second register/register no 2 R2

BASIC SYMBOLS M refers to Memory with addresses in square braces: Direct Addressing : M[10] = contents of memory address 10 In this example, M[10] refers to AddressContent MEMORY

BASIC SYMBOLS M refers to Memory with addresses in square braces In-direct Addressing : M[R3] = content of the memory address in R AddressContent MEMORY AddressContent REGISTER = 15 Ans : M[R3] refers to

BASIC SYMBOLS Arrow pointing to the right shows transfer of data : R4R3 = Stores the value of R3 to R4 * The word transfer is misleading, since it implies that data is moved from one location to another. In fact, the data is copied from one location to another since it also still resides in register R3

BASIC SYMBOLS A comma represents simultaneous transfer: R1 R2, R6 R7 = Stores R2 into R1 and at the same time stores R7 into R6.

BASIC SYMBOLS Parenthesis indicates part of the register. R8(1) = bit 1of R8 R Bit Position Content MSB LSB LSB : Least Significant Bit MSB : Most Significant Bit

BASIC SYMBOLS Parenthesis indicates part of the register. R3(7:0) = the least significant byte of R3 Note : 1 byte = 8 bit R

MATHEMATICAL AND LOGICAL SYMBOLS Addition is indicated by the + sign: R1R2+R3 Add R2 and R3, stores in R1 R2R4+R1 Add R4 and R1, stores in R2 Example 1 : Example 2 :

MATHEMATICAL AND LOGICAL SYMBOLS Subtraction is handled not with the minus sign but with complementing. 1’s complement : 2’s complement : R5R3+R4 R5R3+R4+1 R3 minus R4 in 1’s complement R3 minus R4 in 2’s complement

MATHEMATICAL AND LOGICAL SYMBOLS QUIZ : Minus R2 from R1 and stores the answer in R8 (use 2’s comp method) RTL : R8 R1+R2+1 What is the value of R8 if R1 = and R2 =

Summary SymbolDescriptionExample Square bracketsSpecifies an address for memory M[R2] LettersDenotes a registerAR, IR, PC, R2 ParenthesesDenotes part of a register R2(1), R2(7:0), PC(L) ArrowDenotes Transfer of dataR1 R2 CommaSeparates simultaneous transfers R1 R2, R3 R2

Arithmetic Operations + Addition - Subtraction * Multiplication / Division Example:R2R1+R2 Example:R2R1+R2+1 Example:R2R1*R2 Example:R2R1/R2

Conditional Register Transfer Conditional Statement Using control signal to control the transfer Can be symbolised by if-then statement If (K 1 = 1) then (R2 R1) In RTL we can write it as: K 1 : R2 R1 A subscripted letter followed by a colon is a conditional

Conditional Register Transfer R2 R1 K1K1 CLK n K1K1 Transfer occurs here n = no of lines = no of bits Transfer occurs in parallel K 1 : R2 R1

Conditional Register Transfer Content of R2 will be stored in R5 when condition K 1 occurs: R5 R2 K K1 :R5 R2 Example:

Summary Note : Any register may be specified for source 1, source 2, or destination.

Thank You