EKT 221/4 DIGITAL ELECTRONICS II  Registers, Micro-operations and Implementations - Part2.

Slides:



Advertisements
Similar presentations
Computer Architecture CS 215
Advertisements

CPEN Digital System Design
KU College of Engineering Elec 204: Digital Systems Design
Register Transfer Level
REGISTER TRANSFER LANGUAGE (RTL)
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.
Execution of an instruction
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:
Implementation of a Stored Program Computer
Logic and Computer Design Dr. Sanjay P. Ahuja, Ph.D. FIS Distinguished Professor of CIS ( ) School of Computing, UNF.
The von Neumann Model – Chapter 4 COMP 2620 Dr. James Money COMP
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.
Unit I Digital computer: functional units and their interconnections Mr. Mukul Varshney.
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
Implementation of a Stored Program Computer ITCS 3181 Logic and Computer Systems 2014 B. Wilkinson Slides2.ppt Modification date: Oct 16,
DIGITAL 2 : EKT 221. Today’s Outline Register Transfer Clock Gating Load Control Feedback Register Transfer Language Type of Registers Basic Symbols Mathematical.
REGISTER TRANSFER AND MICROOPERATIONS
Eng. Mohammed Timraz Electronics & Communication Engineer University of Palestine Faculty of Engineering and Urban planning Software Engineering Department.
EKT221 ELECTRONICS DIGITAL II CHAPTER 4: Computer Design Basics
Chap 7. Register Transfers and Datapaths. 7.1 Datapaths and Operations Two types of modules of digital systems –Datapath perform data-processing operations.
REGISTER TRANSFER LANGUAGE MICROOPERATIONS. TODAY OUTLINES Logic Microoperations Shift Microoperations.
REGISTER TRANSFER & MICROOPERATIONS By Sohaib. Digital System Overview  Each module is built from digital components  Registers  Decoders  Arithmetic.
Execution of an instruction
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 7 – Registers and Register Transfers Part.
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.
The von Neumann Model – Chapter 4 COMP 2620 Dr. James Money COMP
COMPUTER ORGANISATION Sri.S.A.Hariprasad Sr.Lecturer R.V.C.E Bangalore.
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)
Chapter 4 Register Transfer and Microoperations Dr. Bernard Chen Ph.D. University of Central Arkansas Spring 2010.
Chapter 10 Control Unit Operation “Controls the operation of the processor”
Processor Organization and Architecture Module III.
Computer Organization Instructions Language of The Computer (MIPS) 2.
Chapter 1_0 Registers & Register Transfer. Chapter 1- Registers & Register Transfer  Chapter 7 in textbook.
MicroProcessors Lec. 4 Dr. Tamer Samy Gaafar. Course Web Page —
REGISTER TRANSFER & MICROOPERATIONS By Sohaib. Digital System Overview  Each module is built from digital components  Registers  Decoders  Arithmetic.
ECEG-3202: Computer Architecture and Organization, Dept of ECE, AAU 1 Register Transfer & Microoperations.
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.
Functions of Processor Operation Addressing modes Registers i/o module interface Memory module interface Interrupts.
REGISTER TRANSFER AND MICROOPERATIONS
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
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
BASIC COMPUTER ORGANIZATION AND DESIGN
Control Unit.
The Processor and Machine Language
REGISTER TRANSFER LANGUAGE
Computer Architecture and Design Lecture 6
Topic 6 LC-3.
CSC 220: Computer Organization
Introduction to Micro Controllers & Embedded System Design
Overview Part 1 - Registers, Microoperations and Implementations
Overview Part 1 - Registers, Microoperations and Implementations
A Discussion on Assemblers
CHAPTER-3 REGISTER TRANSFER LANGUAGE AND MICROOPERATIONS
Part I Data Representation and 8086 Microprocessors
Presentation transcript:

EKT 221/4 DIGITAL ELECTRONICS II  Registers, Micro-operations and Implementations - Part2

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 Level (RTL): Symbolic notation used to describe micro-operations Register Transfer Level (RTL)

RTL  an algebraic notation used to define machine level operations  it is not executed by a computer  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 Level (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

 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 : R4 R3 = 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 Basic Symbols

Mathematical and Logical Symbols  Addition is indicated by the + sign: R1 R2+R3 Add R2 and R3, stores in R1 R2 R4+R1 Add R4 and R1, stores in R2 Example 1 : Example 2 :

 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

 EXERCISE: 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 = Mathematical and Logical Symbols

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 (K1 = 1) then (R2 R1)  In RTL we can write it as: K1 : 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.

Logical Operations  v OR (SETS Bits)  ^ AND (CLEARS Bits)  + EXOR (Complement Bits, 2 Sources)  NOT (Complement Bits, 1 Source) Example:R3R4 v R6 Example:R2DR ^ R1 Example:PCPC + DR Example:R6R1

Logical Operations Example:  Let R1 = and R2 =  After the operations, R0 becomes:

Shift Operations  To Shift left and shift right operations:

Shift Operations Example 1:  Let R2 =  After the Shift operation, R1 becomes: Note: These shifts "zero fill". Sometimes a separate flip- flop is used to provide the data shifted in, or to “catch” the data shifted out

Shift Operations  Example 2 : shift left operation P : R1 sl R1 If R1 = 1001, then sl R1 = 0010 sr R1 = 0100 R1 3 R1 2 R1 1 R1 0 0 P Zero Fill

Assignment#1 Given the 16-bit operand , what operation must be performed and what operand must be used: a)to clear all even bit positions to 0? (Assume bit positions are 15 through 0 from left to right) b) to set the leftmost 4 bits to 1? c) to complement the centre 8 bits?

Thank you