010.133 Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Datapath.

Slides:



Advertisements
Similar presentations
Memory. Memory.
Advertisements

Computer Architecture CS 215
CPEN Digital System Design
Chapter 4 Register Transfer and Microoperations
Chapter 7 Henry Hexmoor Registers and RTL
7-5 Microoperation An elementary operations performed on data stored in registers or in memory. Transfer Arithmetic Logic: perform bit manipulation on.
1 Register Transfer &  -operations Computer Organization Computer Architectures Lab REGISTER TRANSFER AND MICROOPERATIONS Register Transfer Language Register.
Chapter 9 Computer Design Basics. 9-2 Datapaths Reminding A digital system (or a simple computer) contains datapath unit and control unit. Datapath: A.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Chapter 7 – Registers.
Computer Science 210 Computer Organization Clocks and Memory Elements.
DATAPATHS 3) Shifters. 4) Comparators 5) Counters.
Instructor: Yuzhuang Hu The Shifter 3 clock cycles will be needed if using a bidirectional shift register with parallel load.  A clock.
Computer Systems. Computer System Components Computer Networks.
Henry Hexmoor.
Overview Part 1 – Datapaths Part 2 – A Simple Computer
Chapter 7. Register Transfer and Computer Operations
Computer Organization and Architecture Tutorial 2 Kenneth Lee.
CPEN Digital System Design Chapter 9 – Computer Design
Logic and Computer Design Dr. Sanjay P. Ahuja, Ph.D. FIS Distinguished Professor of CIS ( ) School of Computing, UNF.
Chapter 6 Memory and Programmable Logic Devices
Chapter 7 – Registers and Register Transfers Part 1 – Registers, Microoperations and Implementations Logic and Computer Design Fundamentals.
Micro-operations Are the functional, or atomic, operations of a processor. A single micro-operation generally involves a transfer between registers, transfer.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
Lecture 16 Today’s topics: –MARIE Instruction Decoding and Control –Hardwired control –Micro-programmed control 1.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
EXECUTION OF COMPLETE INSTRUCTION
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 CPU Central Processing Unit. 2 Reminder - how it fits together processor (CPU) memory I/O devices bus.
Chapter 4 MARIE: An Introduction to a Simple Computer.
Computer Design Basics
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.
Chapter 4 Computer Design Basics. Chapter Overview Part 1 – Datapaths  Introduction  Datapath Example  Arithmetic Logic Unit (ALU)  Shifter  Datapath.
REGISTER TRANSFER & MICROOPERATIONS By Sohaib. Digital System Overview  Each module is built from digital components  Registers  Decoders  Arithmetic.
A Simple Computer Architecture Digital Logic Design Instructor: Kasım Sinan YILDIRIM.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Chapter 10 – Computer.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits II.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 7 – Registers and Register Transfers Part.
1 Purpose of This Chapter In this chapter we introduce a basic computer and show how its operation can be specified with register transfer statements.
CoE3DJ4 Digital Systems Design
Computer Structure & Architecture 7b - CPU & Buses.
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.
TEAM FRONT END ECEN 4243 Digital Computer Design.
EKT 221 : Chapter 4 Computer Design Basics
1 Outline Bus Transfer Memory Transfer Microoperations.
Introduction to ComputersS1.1.1 Bina © 1998 Liran & Ofir Programming in C.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Control Unit.
Register Transfer Languages (RTL)
Lecture 5: Register Transfer & Micro-OpsOverview1.
1 COMP541 Datapaths I Montek Singh Mar 8, Topics  Over next 2/3 classes: datapaths  Basic register operations Book sections 7-2 to 7-6 and 7-8.
1 KU College of Engineering Elec 204: Digital Systems Design Lecture 23 Introduction Computer Specification –Instruction Set Architecture (ISA) - the specification.
EKT 221 : Digital 2 Computer Design Basics Date : Lecture : 2 hrs.
REGISTER TRANSFER & MICROOPERATIONS By Sohaib. Digital System Overview  Each module is built from digital components  Registers  Decoders  Arithmetic.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Control Unit.
REGISTER TRANSFER AND MICROOPERATIONS
Control Unit Lecture 6.
REGISTER TRANSFER AND MICROOPERATIONS
Computer Design Basics
Chap 7. Register Transfers and Datapaths
KU College of Engineering Elec 204: Digital Systems Design
Overview Register Transfer Language Register Transfer
Computer Organization and Design
Unit 12 CPU Design & Programming
Overview Part 1 - Registers, Microoperations and Implementations
CSC 220: Computer Organization
Datapath.
Overview Part 1 - Registers, Microoperations and Implementations
Computer Design Basics
CHAPTER-3 REGISTER TRANSFER LANGUAGE AND MICROOPERATIONS
Presentation transcript:

Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Datapath

Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee 2 Digital Systems Digital systems process digital information 0 and 1 Datapath + control unit CPUs too Datapath A collection of functional units, registers, and interconnections between them that together perform data-processing operations Control unit (CU) Controls operations of the datapath and determines the sequence of the operations Coordinates interactions between the datapath and main memory

Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee 3 A 32-bit Datapath Register file + ALU Control bits Description AAspecifies a register for the value on the bus A BAspecifies a register for the value on the bus B DA specifies a register to which the value on the bus D is loaded AS selects one between the value of a register and Address in for the value on the bus A BS selects one between the value of a register and Constant in for the value on the bus B FSselects an ALU operation DS selects one between the result of the ALU and the data from the memory for the value on the bus D RW stores the value on the bus D to the register specified by DA

Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee 4 Simple Memory As an array of 2 m n-bit registers Write occurs on the positive edge of the next clock cycle Example: 64K × 32 memory

Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee 5 Attaching Memory to Datapath MW enables the value that appears on the bus B to be written to the memory location specified by the address on the bus A

Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee 6 Control Words A collection of control bits are called a control word Provided by the control unit in a prescribed manner Its content determines the operation performed in the datapath and memory

Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee 7 Microoperations The elementary operations on the data stored in the registers Loading a constant value to a register Loading the content of one register to another Adding the contents of two registers and storing the result to another Storing the content of one register in the memory... In our case, each microopration completes in a single clock cycle

Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee 8 The Function Table of the ALU

Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee 9 Register Transfer Microoperations U ← V U and V are registers (possibly the same) V may be a constant The content of register or a constant V is transferred to the register U The content of U is overwritten on the positive edge of the next clock cycle The content of V remains unchanged 1 1

Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee 10 1

Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee 11 Arithmetic Microoperations U ← V op a W U and V are registers, and W may be a register or a constant Two or all three of U, V, and W are possibly the same op a One of + and - A binary arithmetic operation op a is performed on the contents of V and W, and the result is transferred to a register U The content of U is overwritten The contents of V and W remain unchanged

Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee 12 Arithmetic Microoperations (contd.)

Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee 13 1

Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee 14 Logic Microoperations U ← V op l W U and V are registers, and W may be a register or a constant Two or all three of U, V, and W are possibly the same op l ⋀, ⋁, and ⊕ A binary logic operation op a is performed on the contents of V and W, and the result is transferred to a register U The content of U is overwritten The contents of V and W remain unchanged

Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee 15 Logic Microoperations (contd.) U ← V ’ U is a register, and V may be a register or a constant U and V are possibly the same The bitwise negation operation is performed on the content of V or a constant V, and the result is transferred to a register U The content of U is overwritten The contents of V remains unchanged

Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee 16 Logic Microoperations (contd.)

Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee 17 1

Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee 18 Memory Transfer Microoperations Memory reads U ← M[V] U and V are possibly the same registers The address of the desired word is given by the content of V The content of U is overwritten The word in the memory remains unchanged

Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee 19 Memory Transfer Microoperations (contd.) Memory writes M[V] ← U U and V are possibly the same registers U may be a constant The address of the desired word is the content of V The content of a register U or a constant U is transferred to the memory word specified by V The content of the specified word in the memory is overwritten U remains unchanged

Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee 20 Memory Transfer Microoperations (contd.) 1 1 1

Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee 21 1