MIPS processor continued. Review Different parts in the processor should be connected appropriately to be able to carry out the functions. Connections.

Slides:



Advertisements
Similar presentations
Goal: Write Programs in Assembly
Advertisements

CIS 314 Fall 2005 MIPS Datapath (Single Cycle and Multi-Cycle)
Datorteknik DatapathControl bild 1 Designing a Single Cycle Datapath & Datapath Control.
331 W08.1Spring :332:331 Computer Architecture and Assembly Language Spring 2006 Week 8: Datapath Design [Adapted from Dave Patterson’s UCB CS152.
The Processor: Datapath & Control
Fall 2007 MIPS Datapath (Single Cycle and Multi-Cycle)
Computer Structure - Datapath and Control Goal: Design a Datapath  We will design the datapath of a processor that includes a subset of the MIPS instruction.
The Processor 2 Andreas Klappenecker CPSC321 Computer Architecture.
Fall EE 333 Lillevik 333f06-l7 University of Portland School of Engineering Computer Organization Lecture 7 ALU design MIPS data path.
COSC 3430 L08 Basic MIPS Architecture.1 COSC 3430 Computer Architecture Lecture 08 Processors Single cycle Datapath PH 3: Sections
Processor: Datapath and Control
CDA 3101 Fall 2013 Introduction to Computer Organization
Computer Organization & Programming Chapter 6 Single Datapath CPU Architecture.
CDA 3101 Fall 2013 Introduction to Computer Organization Multicycle Datapath 9 October 2013.
MIPS processor continued. In Class Exercise Question Show the datapath of a processor that supports only R-type and jr reg instructions.
EE 3755 Datapath Presented by Dr. Alexander Skavantzos.
Chapter 4 From: Dr. Iyad F. Jafar Basic MIPS Architecture: Single-Cycle Datapath and Control.
Datapath and Control AddressInstruction Memory Write Data Reg Addr Register File ALU Data Memory Address Write Data Read Data PC Read Data Read Data.
COM181 Computer Hardware Lecture 6: The MIPs CPU.
MIPS Processor.
MIPS processor continued. Review Different parts in the processor should be connected appropriately to be able to carry out the functions. Connections.
Computer Architecture Lecture 6.  Our implementation of the MIPS is simplified memory-reference instructions: lw, sw arithmetic-logical instructions:
Access the Instruction from Memory
EE204 Computer Architecture
Single-Cycle Datapath and Control
Computer Architecture
Introduction CPU performance factors
MIPS Coding Continued.
Processor Architecture: Introduction to RISC Datapath (MIPS and Nios II) CSCE 230.
MIPS Processor.
Processor (I).
MIPS processor continued
Control Path Catholic University PUCRS.
MIPS processor continued
CSCI206 - Computer Organization & Programming
CS/COE0447 Computer Organization & Assembly Language
CSCE 212 Chapter 5 The Processor: Datapath and Control
Single-Cycle CPU DataPath.
CS/COE0447 Computer Organization & Assembly Language
CSCI206 - Computer Organization & Programming
MIPS Processor.
MIPS Instruction Encoding
Datapath & Control MIPS
MIPS processor continued
Topic 5: Processor Architecture Implementation Methodology
Rocky K. C. Chang 6 November 2017
MIPS Instruction Encoding
Composing the Elements
Composing the Elements
The Processor Lecture 3.2: Building a Datapath with Control
Topic 5: Processor Architecture
Datapath: Instruction Store/Fetch & PC Increment
Systems Architecture I
MIPS Microarchitecture Multicycle Processor
COSC 2021: Computer Organization Instructor: Dr. Amir Asif
Lecture 14: Single Cycle MIPS Processor
Simple Implementation
COMP541 Datapaths I Montek Singh Mar 18, 2010.
Review Fig 4.15 page 320 / Fig page 322
Data Path Diagrams.
MIPS Coding Continued.
MIPS processor continued
MIPS assembly.
CS/COE0447 Computer Organization & Assembly Language
The Processor: Datapath & Control.
COMS 361 Computer Organization
MIPS Processor.
Processor: Datapath and Control
MIPS instructions.
CS/COE0447 Computer Organization & Assembly Language
Presentation transcript:

MIPS processor continued

Review Different parts in the processor should be connected appropriately to be able to carry out the functions. Connections depending on what we need Learnt R-type, lw, sw, beq

lw & sw?

Data path only for lw and sw (answer)

Data path for both R-type and memory-type instructions add $rd, $rs, $rt, format: opcode (6 bits) rs (5 bits) rt (5 bits) rd (5 bits) funct (6 bits) lw $rt, offset_value($rs): opcode (6 bits) rs (5 bits) rt (5 bits) offset (16 bits) sw $rt, offset_value($rs): opcode (6 bits) rs (5 bits) rt (5 bits) offset (16 bits)

Data path for both R-type and memory-type instructions add $rd, $rs, $rt, format: opcode (6 bits) rs (5 bits) rt (5 bits) rd (5 bits) funct (6 bits) lw $rt, offset_value($rs): opcode (6 bits) rs (5 bits) rt (5 bits) offset (16 bits) sw $rt, offset_value($rs): opcode (6 bits) rs (5 bits) rt (5 bits) offset (16 bits)

Answer

Datapath for R-type, memory, and branch operations

Datapath for R-type, memory, and branch operations (Answer)

Datapath for Memory, R-type and Branch Instructions, plus the control signals

11/15/2007 5:02:11 PMweek-13-3.ppt11 Jump Instruction Jump instruction seems easy to implement – We just need to replace the lower 28 bits of the PC with the lower 26 bits of the instruction shifted by 2 bits The shift is achieved by simply concatenating 00 to the jump offset

12 Implementing Jumps The one we have supports arithmetic/logic instructions, branch instructions, load and store instructions – We need also to support the jump instruction – What are the changes we need to make? opcode Address 26250

Add j?

14 Supporting Jump Instruction

Questions Which statement is true about the datapath below? a)The data path supports lw. b)The data path supports sw. c)Both of the above. d)None of the above.

Questions Which statement is true about the datapath below? a)The data path supports lw. b)The data path supports sw. c)Both of the above. d)None of the above.

Questions The following datapath supports R-type, lw, sw, and beq. Which of the following statements is true if we decide to support less instructions? a)If only to support R-type and lw, we need exactly MUX. b)If only to support R-type and beq, we need exactly MUX. c)Both of the above. d)None of the above.

Questions Consider the MIPS processor that supports the R-type, lw, sw, and beq instructions. Suppose $t0 is holding 9, $t1 is holding 4, the data memory location 4*i is holding value i, when we encounter the following instruction: beq $t0, $t1, L1 where L1 is the 4 th instruction after the beq instruction. Suppose the control signal for a 2-1 MUX is 0 if we do not care about its value. What will be the stable values showing at ports WriteData of the register file and WriteData of the data memory during the execution of this instruction? (a) 1 and 9. (b) 5 and 4. (c) 20 and 4. (d) None of the above.

11/25/ :54:43 PMweek-14-1.ppt19 In Class Exercise – Supporting Jump Register