Cs 152 L1 Intro.1 Patterson Fall 97 ©UCB ECE 366 Computer Architecture Lecture 3 Shantanu Dutt (http://www.ece.uic.edu/~dutt) Decomposition of Computer.

Slides:



Advertisements
Similar presentations
Computer Architecture
Advertisements

Computer Organization, Bus Structure
CS/COE1541: Introduction to Computer Architecture Datapath and Control Review Sangyeun Cho Computer Science Department University of Pittsburgh.
PipelineCSCE430/830 Pipeline: Introduction CSCE430/830 Computer Architecture Lecturer: Prof. Hong Jiang Courtesy of Prof. Yifeng Zhu, U of Maine Fall,
Dr. Rabie A. Ramadan Al-Azhar University Lecture 3
Prof. John Nestor ECE Department Lafayette College Easton, Pennsylvania ECE Computer Organization Lecture 13 - A Verilog.
Control path Recall that the control path is the physical entity in a processor which: fetches instructions, fetches operands, decodes instructions, schedules.
COMP25212 Further Pipeline Issues. Cray 1 COMP25212 Designed in 1976 Cost $8,800,000 8MB Main Memory Max performance 160 MFLOPS Weight 5.5 Tons Power.
CS1104: Computer Organisation School of Computing National University of Singapore.
1 Datapath and Control (Multicycle datapath) CDA 3101 Discussion Section 11.
Single-Cycle Processor Design CS 3220 Fall 2014 Hadi Esmaeilzadeh Georgia Institute of Technology Some slides adopted from Prof. Milos.
EEM 486 EEM 486: Computer Architecture Lecture 4 Designing a Multicycle Processor.
331 W08.1Spring :332:331 Computer Architecture and Assembly Language Spring 2006 Week 8: Datapath Design [Adapted from Dave Patterson’s UCB CS152.
Microprocessor Design Multi-cycle Datapath Nia S. Bradley Vijay.
ENEE350 Ankur Srivastava University of Maryland, College Park Based on Slides from Mary Jane Irwin ( )
ENEE350 Ankur Srivastava University of Maryland, College Park Based on Slides from Mary Jane Irwin ( )
Prof. John Nestor ECE Department Lafayette College Easton, Pennsylvania Computer Organization Pipelined Processor Design 1.
Chapter 7. Register Transfer and Computer Operations
©UCB CS 162 Computer Architecture Lecture 3: Pipelining Contd. Instructor: L.N. Bhuyan
331 Lec20.1Fall :332:331 Computer Architecture and Assembly Language Fall 2003 Week 13 Basics of Cache [Adapted from Dave Patterson’s UCB CS152.
Lec 8: Pipelining Kavita Bala CS 3410, Fall 2008 Computer Science Cornell University.
Midterm Tuesday October 23 Covers Chapters 3 through 6 - Buses, Clocks, Timing, Edge Triggering, Level Triggering - Cache Memory Systems - Internal Memory.
Lecture 16: Basic CPU Design
Computer ArchitectureFall 2008 © September 17th, 2008 Majd F. Sakr CS-447– Computer Architecture.
331 Lec20.1Spring :332:331 Computer Architecture and Assembly Language Spring 2005 Week 13 Basics of Cache [Adapted from Dave Patterson’s UCB CS152.
Computer Organization Lecture Set – 06 Chapter 6 Huei-Yung Lin.
331 W10.1Spring :332:331 Computer Architecture and Assembly Language Spring 2005 Week 10 Building a Multi-Cycle Datapath [Adapted from Dave Patterson’s.
CPEN Digital System Design Chapter 9 – Computer Design
ENGS 116 Lecture 51 Pipelining and Hazards Vincent H. Berk September 30, 2005 Reading for today: Chapter A.1 – A.3, article: Patterson&Ditzel Reading for.
Prof. John Nestor ECE Department Lafayette College Easton, Pennsylvania ECE Computer Organization Lecture 17 - Pipelined.
Chapter 6 Memory and Programmable Logic Devices
Princess Sumaya Univ. Computer Engineering Dept. Chapter 4: IT Students.
Princess Sumaya Univ. Computer Engineering Dept. Chapter 4:
CSCI-365 Computer Organization Lecture Note: Some slides and/or pictures in the following are adapted from: Computer Organization and Design, Patterson.
EXECUTION OF COMPLETE INSTRUCTION
Computer Design Basics
Lecture 8: Processors, Introduction EEN 312: Processors: Hardware, Software, and Interfacing Department of Electrical and Computer Engineering Spring 2014,
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.
Princess Sumaya Univ. Computer Engineering Dept. Chapter 5:
Lec 15Systems Architecture1 Systems Architecture Lecture 15: A Simple Implementation of MIPS Jeremy R. Johnson Anatole D. Ruslanov William M. Mongan Some.
1 COMP541 Multicycle MIPS Montek Singh Apr 4, 2012.
COMP541 Multicycle MIPS Montek Singh Apr 8, 2015.
ECE 445 – Computer Organization
ECE Computer Architecture Lecture Notes # 6 Shantanu Dutt How to Add To & Use the Basic Processor Organization To Execute Different Instructions.
Computer Organization CDA 3103 Dr. Hassan Foroosh Dept. of Computer Science UCF © Copyright Hassan Foroosh 2002.
EKT 221 : Chapter 4 Computer Design Basics
COMP541 Multicycle MIPS Montek Singh Mar 25, 2010.
Lecture 16: Basic Pipelining
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.
The System Bus. Conceptual CPU Block Diagram Datapath Regs Buses ALU Control Unit Bus Interface IR etc. PC etc. Control Signals Status Signals PSR System.
How does the CPU work? CPU’s program counter (PC) register has address i of the first instruction Control circuits “fetch” the contents of the location.
EKT 221 : Digital 2 Computer Design Basics Date : Lecture : 2 hrs.
1 3 Computing System Fundamentals 3.2 Computer Architecture.
May 22, 2000Systems Architecture I1 Systems Architecture I (CS ) Lecture 14: A Simple Implementation of MIPS * Jeremy R. Johnson Mon. May 17, 2000.
Note how everything goes left to right, except …
Lecture 16: Basic Pipelining
Systems Architecture I
ECS 154B Computer Architecture II Spring 2009
Processor (I).
Lecture 16: Basic Pipelining
Systems Architecture II
Systems Architecture I
Guest Lecturer TA: Shreyas Chand
The Processor Lecture 3.5: Data Hazards
Systems Architecture I
Instruction Execution Cycle
How does the CPU work? CPU’s program counter (PC) register has address i of the first instruction Control circuits “fetch” the contents of the location.
Systems Architecture I
Presentation transcript:

cs 152 L1 Intro.1 Patterson Fall 97 ©UCB ECE 366 Computer Architecture Lecture 3 Shantanu Dutt ( Decomposition of Computer Organization & Generic Instruction Processing Note: These slides have been solely prepared by Shantanu Dutt. The “Patterson Fall 97 copyright UCB” logo appearing on the bottom right corner is incorrect (as is the logo on the bottom-left corner). They appear because the same template as Dave Patterson’s intro slides used in Lect. 1-2 were used for these slides by mistake. The incorrect logos will be removed later (haven’t yet figured out how to).

cs 152 L1 Intro.2 Patterson Fall 97 ©UCB Overview °Decomposition of a Computer °Basic Functions of a Control Unit -- Read and Write Selects °Generic Instruction Processing in the Control and Datapaths

cs 152 L1 Intro.3 Patterson Fall 97 ©UCB Decomposition of a Computer’s Organization (Hardware) Computer = Processor + Memory + I/O + Interfaces Processor Connections (High/Low-Speed) + Interfaces I/O Devices (Disks, N/W conn., Monitor, Keybd, Prntr) Memory

cs 152 L1 Intro.4 Patterson Fall 97 ©UCB Decomposition of a Computer’s Organization (Hardware) Processor = Datapath + Control Note: The Datapath includes the top levels of the memory hierarchy (e.g., 1st level caches). Some include the entire memory hierarchy as part of the datapath. Datapath (Processing of data according to instructions)) Control Unit (Orchestrates the correct sequence of micro-instructions or micro-stages in the processing of instrs.) Control Signals Status Signals

cs 152 L1 Intro.5 Patterson Fall 97 ©UCB Decomposition of a Computer’s Organization (Hardware) Datapath = (Data Mem?) + Register File + ALU Data Memory Memory Interface (Buses + Regs) Register File ALU O/P Reg.

cs 152 L1 Intro.6 Patterson Fall 97 ©UCB Decomposition of a Computer’s Organization (Hardware) Control = (Instr. Mem?) + PC + Instr. Reg. + C.U. (FSM) Instruction Memory Memory Interface (Addr. Bus) IRPC C.U. FSM PC Upd. Status Control Datapath

cs 152 L1 Intro.7 Patterson Fall 97 ©UCB Basic Functions of the C.U. °The CU functions by sending signals in each state that do the following: Read Selection = Connection to a bus from various sources (e.g., buses, registers, FU o/ps) using Muxes or Tri-State Buffers (+ Decoders). Only one source can be read onto a bus. Write Selection = Loading one or more registers w/ the data at the input of the registers. °Read occurs at the beginning of a clock cycle (cc) and the corresponding write into the target register occurs at the rising edge of the next cc (assuming Read finishes by that time; in general the Write occurs at the rising edge of the next cc after the Read finishes). Control signals for both need to be valid in the current cc r1 2:1 Mux rbrcrdra Bus r2 sel=0 ldra=0ldrb=1ldrc=0ldrd=0 01 Write/Load Read Period sel=0, ldrb=1

cs 152 L1 Intro.8 Patterson Fall 97 ©UCB Basic Functions of the C.U. °The C.U. orchestrates the processing of instructions along a datapath by a simple sequence of Read and Write selects in each cc °A Register-Transfer-Like Notation: Read Operation: r2 => Bus (r2 o/p connected to the bus) Write Operation: rb <= Bus; rd <= Bus (Bus value written/loaded to registers rb, rd Note final effect of the above Read and Write in the same cc (I.e. Read and Write select control signals valid in the same cc) is : rb <= r2; rd <= r2 r1 2:1 Mux rbrcrdra Bus r2 sel=1 ldra=0ldrb=1ldrc=0ldrd=0 01 Write/Load Read Period sel=1, ldrb=1, ldrd=1

cs 152 L1 Intro.9 Patterson Fall 97 ©UCB Instruction Processing: Phase 1 -- Fetch Instruction: ADD r2 r3 r7 [r2 <- r3 + r7] Memory Interface (Addr. + Data Bus) IRPC C.U. FSM PC Upd. Data Memory Memory Interface (Buses + Regs) Register File ALU O/P Reg. 1 1 Instruction Memory Connect PC to Addr. Bus & Read Mem. Onto Data Bus Load IR when Instr. Avail [IR <= Data Bus] Status signals Source & dest reg addr [PC=>Addr Bus; Mem[PC] => Data Bus]

cs 152 L1 Intro.10 Patterson Fall 97 ©UCB Instruction Processing: Phase 2 -- Decode & Incr. PC Instruction: ADD r2 r3 r7 [r2 <- r3 + r7] Memory Interface (Addr. Bus) IRPC C.U. FSM PC Upd. Data Memory Memory Interface (Buses + Regs) Register File ALU O/P Reg. 2 Instruction Memory 2 Start State for ADD Decode State Load PC w/ o/p of Update H/W [PC <= PC Upd o/p]

cs 152 L1 Intro.11 Patterson Fall 97 ©UCB Instruction Processing: Phase 3 --Read Operands in RF Instruction: ADD r2 r3 r7 [r2 <- r3 + r7] Memory Interface (Addr. Bus) IRPC C.U. FSM PC Upd. Data Memory Memory Interface (Buses + Regs) Register File ALU O/P Reg. Instruction Memory 3 r3 r7 Connect regs specified by source fields of IR to Buses A and B [r3 => BusA; r7=> BusB] 3 Load appr. internal regs of ALU w/ Bus A, B data [rega <= Bus A; regb<= BusB

cs 152 L1 Intro.12 Patterson Fall 97 ©UCB Instruction Processing: Phase 4 --Execute (in ALU) Instruction: ADD r2 r3 r7 [r2 <- r3 + r7] Memory Interface (Addr. Bus) IRPC C.U. FSM PC Upd. Data Memory Memory Interface (Buses + Regs) Register File ALU O/P Reg. Instruction Memory 4 4 Select ADD FU to connect to ALU o/p reg [ADD o/p => ALU o/p] Load o/p reg w/ ALU o/p [o/p reg <= ALU o/p] ADD

cs 152 L1 Intro.13 Patterson Fall 97 ©UCB Instruction Processing: Phase 5 --Write Back (to RF) Instruction: ADD r2 r3 r7 [r2 <- r3 + r7] Memory Interface (Addr. Bus) IRPC C.U. FSM PC Upd. Data Memory Memory Interface (Buses + Regs) Register File ALU O/P Reg. Instruction Memory 5 Write data on write port to reg specified in dest filed of IR [r2 <= o/p reg] r2