Computer Architecture and Design Lecture 6

Slides:



Advertisements
Similar presentations
Computer Architecture CS 215
Advertisements

CPEN Digital System Design
REGISTER TRANSFER LANGUAGE (RTL)
Princess Sumaya Univ. Computer Engineering Dept. د. بســام كحـالــه Dr. Bassam Kahhaleh.
Chapter 7 Henry Hexmoor Registers and RTL
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.
Chapter 7. Register Transfer and Computer Operations
Logic and Computer Design Dr. Sanjay P. Ahuja, Ph.D. FIS Distinguished Professor of CIS ( ) School of Computing, UNF.
Chapter 7 – Registers and Register Transfers Part 1 – Registers, Microoperations and Implementations Logic and Computer Design Fundamentals.
Computer Organization and Architecture
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.
EKT 221/4 DIGITAL ELECTRONICS II  Registers, Micro-operations and Implementations - Part2.
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.
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.
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 & MICROOPERATIONS By Sohaib. Digital System Overview  Each module is built from digital components  Registers  Decoders  Arithmetic.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 7 – Registers and Register Transfers Part.
A four function ALU A 00 ADD B MUX SUB 11 Result AND OR
September 26, 2001Systems Architecture I1 Systems Architecture I (CS ) Lecture 2: Implementation of a Simplified Computer Jeremy R. Johnson Wednesday,
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 10 Control Unit Operation “Controls the operation of the processor”
Chapter 1_0 Registers & Register Transfer. Chapter 1- Registers & Register Transfer  Chapter 7 in textbook.
Jeremy R. Johnson William M. Mongan
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.
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
Overview Register Transfer Language Register Transfer
REGISTER TRANSFER AND MICROOPERATIONS
Chap 7. Register Transfers and Datapaths
Micro-Operations A computer executes a program Fetch/execute cycle
William Stallings Computer Organization and Architecture
William Stallings Computer Organization and Architecture 7th Edition
KU College of Engineering Elec 204: Digital Systems Design
DIGITAL 2 : EKT 221 RTL : Microoperations on a Single Register
Overview Register Transfer Language Register Transfer
Register Transfer and Microoperations
Instruction Execution (Load and Store instructions)
REGISTER TRANSFER LANGUAGE AND DESIGN OF CONTROL UNIT
Chapter 15 Control Unit Operation
Computer Organization and Design
BASIC COMPUTER ORGANIZATION AND DESIGN
Control Unit.
The Processor and Machine Language
Systems Architecture I (CS ) Lecture 2: A Simplified Computer
William Stallings Computer Organization and Architecture 7th Edition
CSC 220: Computer Organization
Registers.
Overview Part 1 - Registers, Microoperations and Implementations
Chapter 14 Control Unit Operation
William Stallings Computer Organization and Architecture 8th Edition
Overview Part 1 - Registers, Microoperations and Implementations
The Verilog Hardware Description Language
CHAPTER-3 REGISTER TRANSFER LANGUAGE AND MICROOPERATIONS
Information Representation: Machine Instructions
Instruction execution and ALU
Computer Architecture
Presentation transcript:

Computer Architecture and Design Lecture 6 Bus System Computer Architecture and Design Lecture 6

Micro-operation Digital Modules are best defined by Registers Microoperation : Operations performed on the data stored in them Microoperation (-op) An elementary operation performed on data stored in register(s) Results of operations may Replace previous data, or Be transferred to another register Example: Shift, Count, Clear, Load, Add, Sub, ...

Definition of RTL Hardware Organization is Best Defined by specifying Set of registers in it & their functions Sequence of -ops performed on data stored in registers Controls governing the execution of -ops RTL (Register Transfer Language) Definition: Symbolic notation describing data xfers & -ops between registers Usefulness: -ops imply the availability of hardware logic circuits that can perform specified -ops RTL can be transformed to hardware by tools

-operations that we will learn Register Transfer Bus & Memory Transfer Arithmetic -ops Logic -ops Shift -ops Arithmetic Logic Shift Unit (ALU)

Registers Notation: Capital letters (for naming) + optional numerals Name Description Usage AR Address Register To designate memory location PC Program Counter To designate next instruction IR Instruction Register To store the instr. to execute DR Data Register To store operands / results R1 General Register To store temporary data

Register Transfer Example: R2  R1 Hardware Operation  There are at least two registers (R1 & R2) in the system  There is a connected path between R1 & R2 for data movement  R2 has “parallel load” function Operation  Transfer of the content in R1 into R2  Content of R1 does not change

Notations for RTL Symbol Letters (+ Num) Parenthesis Arrow Comma Description Denotes register Denotes part of a register Denotes information xfer Separate simultaneous -ops Examples R1, AR, PC R1(0-7), R2(L) R2  R1 R2 R1, R1 R2

Bus Bus : Set of wires, one for each bit, thru which binary data are xferred Paths must exist to xfer data among many registers Control Signal determines registers for data movement Register Register Register Register Register Register Register Register Register Register Register-to-Register Connection Common Bus-based Connection

BUS Implementation MUX Tri-state Buffer

Mux-Based BUS Sender Side Receiver Side MUX selects the sender Load signal is selected Control Unit Select R1 NR x 1 MUX R2 IR DR Common Bus Load

Tri-State Bus Buffers 3-State Gates Bus line with Tri-state buffers Output : 0, 1 & High Impedance Buffer gate is the most popular Bus line with Tri-state buffers Input A Output: Y = A if C=1 H.I. If C = 0 Cmtr C Bus line for bit 0 A0 B0 C0 D0 Select 2x4 Dec. S1 S0 1 2 3 Enable E

HW #4 Design a Mux-based bus system using behavioral coding. Let “control unit” be testbench in this HW. Initialize R1=1, R2=2, R3=3, DR=4 Execute the following using testbench. R1 -> IR R1 -> DR DR -> R1 Create a text file “register.dat” to store the final values in the four registers. Submit DUT, TB, Waveform, and “register.dat”. Control Unit Select R1 NR x 1 MUX R2 IR DR Common Bus Load

module hw3_dut(clk, ); input clk; reg [15:0] R1, R2, IR, DR; always @ (posedge clk) begin if( ) IR <= R1; else if ( ) DR <= R1; . endmodule module hw3_tb; reg ; wire ; . hw3_dut( ); endmodule